HomeSort by: relevance | last modified time | path
    Searched defs:disk (Results 1 - 25 of 54) sorted by relevancy

1 2 3

  /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
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
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
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
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
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
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
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
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
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
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
95 struct disklabel *dp = &disk;
109 memset(&disk, 0, sizeof(disk));
disklabel.c 94 static struct disklabel disk; local
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
    [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
    [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
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
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
218 disk, sizeof disk, NULL, plain_name, true, true))
225 return copy_bootloader(disk);
260 char disk[STRSIZE]; local
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
218 disk, sizeof disk, NULL, plain_name, true, true))
225 return copy_bootloader(disk);
260 char disk[STRSIZE]; local
269 disk, sizeof disk, NULL, plain_name, true, true)
    [all...]
  /src/sys/dev/raidframe/
rf_disks.c 100 * easily substitue a spare for a failed disk. But, the driver code assumes
153 DPRINTF6("Disk at col %d: dev %s numBlocks %" PRIu64 " blockSize %d (%ld MB)\n",
206 RF_ERRORMSG1("Error: block size of disk at c %d different from disk at c 0\n", c);
211 RF_ERRORMSG2("WARNING: truncating disk at c %d to %d blocks\n",
234 * recall from the above comment that the spare disk descriptors are stored
258 RF_ERRORMSG1("Warning: spare disk %s failed TUR\n",
263 DPRINTF6("Spare Disk %d: dev %s numBlocks %" PRIu64 " blockSize %d (%ld MB)\n", i,
276 RF_ERRORMSG3("Block size of %d on spare disk %s is not the same as on other disks (%d)\n", disks[i].blockSize, disks[i].devname, bs);
281 RF_ERRORMSG3("Spare disk %s (%d blocks) is too small to serve as a spare (need %" PRIu64 " blocks)\n"
1113 RF_RaidDisk_t *disk; local
1183 RF_RaidDisk_t *disk; local
    [all...]
rf_disks.c 100 * easily substitue a spare for a failed disk. But, the driver code assumes
153 DPRINTF6("Disk at col %d: dev %s numBlocks %" PRIu64 " blockSize %d (%ld MB)\n",
206 RF_ERRORMSG1("Error: block size of disk at c %d different from disk at c 0\n", c);
211 RF_ERRORMSG2("WARNING: truncating disk at c %d to %d blocks\n",
234 * recall from the above comment that the spare disk descriptors are stored
258 RF_ERRORMSG1("Warning: spare disk %s failed TUR\n",
263 DPRINTF6("Spare Disk %d: dev %s numBlocks %" PRIu64 " blockSize %d (%ld MB)\n", i,
276 RF_ERRORMSG3("Block size of %d on spare disk %s is not the same as on other disks (%d)\n", disks[i].blockSize, disks[i].devname, bs);
281 RF_ERRORMSG3("Spare disk %s (%d blocks) is too small to serve as a spare (need %" PRIu64 " blocks)\n"
1113 RF_RaidDisk_t *disk; local
1183 RF_RaidDisk_t *disk; local
    [all...]
  /src/usr.sbin/diskpart/
diskpart.c 45 * Program to calculate standard disk partition sizes.
75 * Each array defines a layout for a disk;
77 * covers the physical space on a disk.
87 * Default disk block and disk block fragment
104 * Each disk has some space reserved for a bad sector
166 fprintf(stderr, "%s: unknown disk type\n", *argv);
182 * If disk size was specified explicitly, use specified size.
194 * If disk size was specified, recompute number of cylinders
204 * Figure out if disk is large enough fo
363 static struct disklabel disk; variable in typeref:struct:disklabel
    [all...]

Completed in 37 milliseconds

1 2 3