/illumos-gate/usr/src/cmd/boot/installgrub/ |
H A D | pcfs_glue.c | 44 static int dev_fd; variable 103 ret = pread(dev_fd, filep->fi_memp, filep->fi_count, diskloc); 170 dev_fd = device_fd;
|
H A D | installgrub.c | 1213 read_stage1_from_disk(int dev_fd, char *stage1_buf) argument 1217 if (read_in(dev_fd, stage1_buf, SECTOR_SIZE, 0) != BC_SUCCESS) { 1225 read_stage2_from_disk(int dev_fd, ig_stage2_t *stage2, int type) argument 1233 assert(dev_fd != -1); 1235 if (read_in(dev_fd, mboot_scan, sizeof (mboot_scan), 1272 if (read_in(dev_fd, stage2->buf, buf_size, STAGE2_BLKOFF(type) * 1298 int dev_fd = device->part_fd; local 1306 if (read_stage2_from_disk(dev_fd, &stage2_disk, device->type)
|
/illumos-gate/usr/src/lib/libfdisk/common/ |
H A D | libfdisk.c | 71 if (ioctl(epp->dev_fd, DKIOCG_VIRTGEOM, &disk_geom)) { 94 if (ioctl(epp->dev_fd, DKIOCG_PHYGEOM, &disk_geom)) { 107 if (ioctl(epp->dev_fd, DKIOCGGEOM, &disk_geom)) { 121 if (ioctl(epp->dev_fd, DKIOCGMEDIAINFO, (caddr_t)&disk_info) < 0) { 203 if ((temp->dev_fd = open(temp->device_name, O_RDWR, 0666)) < 0) { 269 (void) close((*epp)->dev_fd); 303 if (lseek(epp->dev_fd, label_offset, SEEK_SET) < 0) { 308 if ((rval = read(epp->dev_fd, buf, sec_sz)) < sec_sz) { 329 if (lseek(epp->dev_fd, seek_offset, SEEK_SET) < 0) { 334 if ((rval = read(epp->dev_fd, bu [all...] |
H A D | libfdisk.h | 204 int dev_fd; member in struct:ext_part
|
/illumos-gate/usr/src/cmd/ucodeadm/ |
H A D | ucodeadm.c | 483 int dev_fd = -1; local 660 if ((dev_fd = open(ucode_dev, O_RDONLY)) == -1) { 692 tmprc = ioctl(dev_fd, UCODE_GET_VERSION, &info32); 698 tmprc = ioctl(dev_fd, UCODE_GET_VERSION, &info); 733 tmprc = ioctl(dev_fd, UCODE_UPDATE, &uw_struct32); 740 tmprc = ioctl(dev_fd, UCODE_UPDATE, &uw_struct); 757 if (dev_fd != -1) 758 (void) close(dev_fd);
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | qlgcupdate.c | 770 static int dev_fd, fcode_size; local 826 if ((dev_fd = open(device, O_RDWR|O_EXCL)) < 0) { 837 if (ioctl(dev_fd, IFPIO_FCODE_DOWNLOAD, download_p) < 0) { 841 (void) close(dev_fd); 852 if (ioctl(dev_fd, FCIO_CMD, &fcio) != 0) { 856 (void) close(dev_fd); 861 (void) close(dev_fd); 979 static int dev_fd, fcode_size; local 1013 if ((dev_fd = open(device, O_RDWR|O_EXCL)) < 0) { 1026 if (ioctl(dev_fd, FCIO_CM [all...] |
/illumos-gate/usr/src/cmd/boot/installboot/sparc/ |
H A D | installboot.c | 180 read_bootblock_from_disk(int dev_fd, ib_bootblock_t *bblock) argument 189 assert(dev_fd != -1); 196 if (read_in(dev_fd, mboot_scan, sizeof (mboot_scan), 232 if (read_in(dev_fd, dest, size, SECTOR_SIZE) != BC_SUCCESS) { 243 if (read_in(dev_fd, dest, size, BBLK_ZFS_EXTRA_OFF) != BC_SUCCESS) { 269 int dev_fd = device->fd; local 280 if (read_bootblock_from_disk(dev_fd, &bblock_disk) != BC_SUCCESS) {
|
/illumos-gate/usr/src/cmd/boot/installboot/i386/ |
H A D | installboot.c | 241 int dev_fd; local 251 dev_fd = device->target.fd; 255 dev_fd = device->stage.fd; 260 if (read_in(dev_fd, mboot_scan, sizeof (mboot_scan), offset) 300 if (read_in(dev_fd, bblock->buf, buf_size, offset) != BC_SUCCESS) { 490 int dev_fd, ret; local 506 dev_fd = device->target.fd; 511 dev_fd = device->stage.fd; 522 ret = write_out(dev_fd, bblock->buf, bblock->buf_size, offset);
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | rq.c | 283 smb_t2_request(int dev_fd, int setupcount, uint16_t *setup, argument 315 if (ioctl(dev_fd, SMBIOC_T2RQ, krq) == -1) {
|
H A D | ctx.c | 1324 smb_fh_getssnkey(int dev_fd, uchar_t *key, size_t len) argument 1329 if (ioctl(dev_fd, SMBIOC_GETSSNKEY, key) == -1)
|