/src/sbin/dkscan_bsdlabel/ |
dkscan_bsdlabel.c | 40 #include <sys/disk.h> 45 struct disk { struct 46 const char *dk_name; /* disk name */ 73 struct disk d;
|
dkscan_bsdlabel.c | 40 #include <sys/disk.h> 45 struct disk { struct 46 const char *dk_name; /* disk name */ 73 struct disk d;
|
/src/sys/arch/ews4800mips/stand/common/ |
devopen.c | 66 int disk, partition; local in function:devopen 134 /* Disk boot */ 138 printf("Disk disabled.\n"); 142 disk = fname[2] - '0'; 144 if (disk < 0 || disk > 9 || partition < 0 || partition > 15) { 146 printf("disk(boot):%s ", filename); 150 printf("disk(%d,%d):/%s ", 151 disk, partition, filename); 152 device_attach(NVSRAM_BOOTDEV_HARDDISK, disk, partition) [all...] |
devopen.c | 66 int disk, partition; local in function:devopen 134 /* Disk boot */ 138 printf("Disk disabled.\n"); 142 disk = fname[2] - '0'; 144 if (disk < 0 || disk > 9 || partition < 0 || partition > 15) { 146 printf("disk(boot):%s ", filename); 150 printf("disk(%d,%d):/%s ", 151 disk, partition, filename); 152 device_attach(NVSRAM_BOOTDEV_HARDDISK, disk, partition) [all...] |
disk.c | 1 /* $NetBSD: disk.c,v 1.9 2019/01/09 03:28:31 christos Exp $ */ 54 struct disk { struct 110 printf("unknown floppy disk format %d.\n", 115 printf("unknown disk type %d.\n", __disk.type);
|
disk.c | 1 /* $NetBSD: disk.c,v 1.9 2019/01/09 03:28:31 christos Exp $ */ 54 struct disk { struct 110 printf("unknown floppy disk format %d.\n", 115 printf("unknown disk type %d.\n", __disk.type);
|
/src/sys/dev/ata/ |
ata_raid_promise.c | 45 #include <sys/disk.h> 73 u_int disk; local in function:ata_raid_read_config_promise 83 /* Get a vnode for the raw partition of this disk. */ 185 for (disk = 0; disk < aai->aai_ndisks; disk++) { 186 adi = &aai->aai_disks[disk]; 188 if (info->raid.disk[disk].flags & PR_F_ONLINE) 190 if (info->raid.disk[disk].flags & PR_F_ASSIGNED [all...] |
ata_raid_promise.c | 45 #include <sys/disk.h> 73 u_int disk; local in function:ata_raid_read_config_promise 83 /* Get a vnode for the raw partition of this disk. */ 185 for (disk = 0; disk < aai->aai_ndisks; disk++) { 186 adi = &aai->aai_disks[disk]; 188 if (info->raid.disk[disk].flags & PR_F_ONLINE) 190 if (info->raid.disk[disk].flags & PR_F_ASSIGNED [all...] |
ata_raid_jmicron.c | 45 #include <sys/disk.h> 129 int bmajor, error, count, disk, total_disks; local in function:ata_raid_read_config_jmicron 136 /* Get a vnode for the raw partition of this disk. */ 185 for (total_disks = 0, disk = 0; disk < JM_MAX_DISKS; disk++) 186 if (info->disks[disk] == info->disk_id) 250 "%d-disk array\n", dksc->sc_xname,
|
ata_raid_via.c | 45 #include <sys/disk.h> 103 printf("DISK# disk_id\n"); 123 int count, disk; local in function:ata_raid_read_config_via 131 /* Get a vnode for the raw partition of this disk. */ 229 for (count = 0, disk = 0; disk < 4; disk++) 230 if (info->disks[disk]) 246 * VIA V-RAID configuration blocks store the disk index as a value 248 * the value left by 2 to obtain the disk number [all...] |
ata_raid_jmicron.c | 45 #include <sys/disk.h> 129 int bmajor, error, count, disk, total_disks; local in function:ata_raid_read_config_jmicron 136 /* Get a vnode for the raw partition of this disk. */ 185 for (total_disks = 0, disk = 0; disk < JM_MAX_DISKS; disk++) 186 if (info->disks[disk] == info->disk_id) 250 "%d-disk array\n", dksc->sc_xname,
|
ata_raid_via.c | 45 #include <sys/disk.h> 103 printf("DISK# disk_id\n"); 123 int count, disk; local in function:ata_raid_read_config_via 131 /* Get a vnode for the raw partition of this disk. */ 229 for (count = 0, disk = 0; disk < 4; disk++) 230 if (info->disks[disk]) 246 * VIA V-RAID configuration blocks store the disk index as a value 248 * the value left by 2 to obtain the disk number [all...] |
/src/usr.sbin/mscdlabel/ |
main.c | 33 * - support simulation of multisession CDs in a vnd(4) disk 57 const char *disk = "cd0"; variable in typeref:typename:const char * 135 disk = argv[1]; 137 fd = opendisk(disk, O_RDWR, fullname, MAXPATHLEN, 0); 139 warn("opendisk (read-write) %s", disk); 140 fd = opendisk(disk, O_RDONLY, fullname, MAXPATHLEN, 0); 142 err(1, "opendisk %s", disk);
|
main.c | 33 * - support simulation of multisession CDs in a vnd(4) disk 57 const char *disk = "cd0"; variable in typeref:typename:const char * 135 disk = argv[1]; 137 fd = opendisk(disk, O_RDWR, fullname, MAXPATHLEN, 0); 139 warn("opendisk (read-write) %s", disk); 140 fd = opendisk(disk, O_RDONLY, fullname, MAXPATHLEN, 0); 142 err(1, "opendisk %s", disk);
|
/src/lib/libc/gen/ |
disklabel.c | 94 static struct disklabel disk; local in function:getdiskbyname 95 struct disklabel *dp = &disk; 109 memset(&disk, 0, sizeof(disk));
|
disklabel.c | 94 static struct disklabel disk; local in function:getdiskbyname 95 struct disklabel *dp = &disk; 109 memset(&disk, 0, sizeof(disk));
|
/src/sys/fs/v7fs/ |
v7fs_inode.c | 162 struct v7fs_inode *mem, struct v7fs_inode_diskimage *disk) 164 #define conv16(m) (mem->m = V7FS_VAL16(fs, (disk->m))) 165 #define conv32(m) (mem->m = V7FS_VAL32(fs, (disk->m))) 182 addr = V7FS_VAL24_READ(fs, &disk->addr[j]); 196 struct v7fs_inode *mem, struct v7fs_inode_diskimage *disk) 198 #define conv16(m) (disk->m = V7FS_VAL16(fs, (mem->m))) 199 #define conv32(m) (disk->m = V7FS_VAL32(fs, (mem->m))) 213 V7FS_VAL24_WRITE(fs, mem->addr[i], disk->addr + j); 219 /* Load inode from disk. */ 238 /* Decode disk address, convert endian. * 251 struct v7fs_inode_diskimage disk; local in function:v7fs_inode_writeback [all...] |
v7fs_inode.c | 162 struct v7fs_inode *mem, struct v7fs_inode_diskimage *disk) 164 #define conv16(m) (mem->m = V7FS_VAL16(fs, (disk->m))) 165 #define conv32(m) (mem->m = V7FS_VAL32(fs, (disk->m))) 182 addr = V7FS_VAL24_READ(fs, &disk->addr[j]); 196 struct v7fs_inode *mem, struct v7fs_inode_diskimage *disk) 198 #define conv16(m) (disk->m = V7FS_VAL16(fs, (mem->m))) 199 #define conv32(m) (disk->m = V7FS_VAL32(fs, (mem->m))) 213 V7FS_VAL24_WRITE(fs, mem->addr[i], disk->addr + j); 219 /* Load inode from disk. */ 238 /* Decode disk address, convert endian. * 251 struct v7fs_inode_diskimage disk; local in function:v7fs_inode_writeback [all...] |
/src/sys/arch/mipsco/stand/installboot/ |
installboot.c | 71 fprintf(stderr, "\t%s [-nv] disk bootstrap [name]\n", getprogname()); 72 fprintf(stderr, "\t%s -r [-nv] disk [name]\n", getprogname()); 73 fprintf(stderr, "\t%s -l [-nv] disk\n", getprogname()); 80 const char *disk; local in function:main 115 disk = argv[0]; 118 do_list(disk); 120 do_remove(disk, argc==2?argv[1]:DEFAULT_BOOTFILE); 122 do_install(disk, argv[1], argc==3?argv[2]:DEFAULT_BOOTFILE); 128 do_list(const char *disk) 134 read_volheader(disk, &vh) [all...] |
installboot.c | 71 fprintf(stderr, "\t%s [-nv] disk bootstrap [name]\n", getprogname()); 72 fprintf(stderr, "\t%s -r [-nv] disk [name]\n", getprogname()); 73 fprintf(stderr, "\t%s -l [-nv] disk\n", getprogname()); 80 const char *disk; local in function:main 115 disk = argv[0]; 118 do_list(disk); 120 do_remove(disk, argc==2?argv[1]:DEFAULT_BOOTFILE); 122 do_install(disk, argv[1], argc==3?argv[2]:DEFAULT_BOOTFILE); 128 do_list(const char *disk) 134 read_volheader(disk, &vh) [all...] |
/src/usr.sbin/sysinst/arch/luna68k/ |
md.c | 98 * Compute whole disk size. Take max of (pm->dlcyl*pm->dlhead*pm->dlsec) 99 * and secperunit, just in case the disk is already labelled. 168 * hook called after writing disklabel to new target disk. 197 * hook called after install() has finished setting up the target disk 204 char rdisk[STRSIZE], disk[STRSIZE]; local in function:md_post_newfs 218 disk, sizeof disk, NULL, plain_name, true, true)) 225 return copy_bootloader(disk); 260 char disk[STRSIZE]; local in function:md_update 269 disk, sizeof disk, NULL, plain_name, true, true) [all...] |
md.c | 98 * Compute whole disk size. Take max of (pm->dlcyl*pm->dlhead*pm->dlsec) 99 * and secperunit, just in case the disk is already labelled. 168 * hook called after writing disklabel to new target disk. 197 * hook called after install() has finished setting up the target disk 204 char rdisk[STRSIZE], disk[STRSIZE]; local in function:md_post_newfs 218 disk, sizeof disk, NULL, plain_name, true, true)) 225 return copy_bootloader(disk); 260 char disk[STRSIZE]; local in function:md_update 269 disk, sizeof disk, NULL, plain_name, true, true) [all...] |
/src/distrib/utils/embedded/conf/ |
x86.conf | 31 disk: STORAGE DEVICE key
|
evbppc.conf | 43 disk: STORAGE DEVICE key
|
x86.conf | 31 disk: STORAGE DEVICE key
|