Home
last modified time | relevance | path

Searched refs:dev_fd (Results 1 – 10 of 10) sorted by relevance

/titanic_50/usr/src/lib/libfdisk/common/
H A Dlibfdisk.c71 if (ioctl(epp->dev_fd, DKIOCG_VIRTGEOM, &disk_geom)) { in fdisk_init_disk_geom()
94 if (ioctl(epp->dev_fd, DKIOCG_PHYGEOM, &disk_geom)) { in fdisk_init_disk_geom()
107 if (ioctl(epp->dev_fd, DKIOCGGEOM, &disk_geom)) { in fdisk_init_disk_geom()
121 if (ioctl(epp->dev_fd, DKIOCGMEDIAINFO, (caddr_t)&disk_info) < 0) { in fdisk_init_disk_geom()
203 if ((temp->dev_fd = open(temp->device_name, O_RDWR, 0666)) < 0) { in libfdisk_init()
269 (void) close((*epp)->dev_fd); in libfdisk_fini()
303 if (lseek(epp->dev_fd, label_offset, SEEK_SET) < 0) { in fdisk_is_linux_swap()
308 if ((rval = read(epp->dev_fd, buf, sec_sz)) < sec_sz) { in fdisk_is_linux_swap()
329 if (lseek(epp->dev_fd, seek_offset, SEEK_SET) < 0) { in fdisk_is_linux_swap()
334 if ((rval = read(epp->dev_fd, buf, sec_sz)) < sec_sz) { in fdisk_is_linux_swap()
[all …]
H A Dlibfdisk.h204 int dev_fd; member
/titanic_50/usr/src/cmd/boot/installgrub/
H A Dpcfs_glue.c44 static int dev_fd; variable
103 ret = pread(dev_fd, filep->fi_memp, filep->fi_count, diskloc); in diskread()
176 dev_fd = device_fd; in read_stage2_blocklist()
H A Dinstallgrub.c1212 read_stage1_from_disk(int dev_fd, char *stage1_buf) in read_stage1_from_disk() argument
1216 if (read_in(dev_fd, stage1_buf, SECTOR_SIZE, 0) != BC_SUCCESS) { in read_stage1_from_disk()
1224 read_stage2_from_disk(int dev_fd, ig_stage2_t *stage2, int type) in read_stage2_from_disk() argument
1232 assert(dev_fd != -1); in read_stage2_from_disk()
1234 if (read_in(dev_fd, mboot_scan, sizeof (mboot_scan), in read_stage2_from_disk()
1271 if (read_in(dev_fd, stage2->buf, buf_size, STAGE2_BLKOFF(type) * in read_stage2_from_disk()
1297 int dev_fd = device->part_fd; in is_update_necessary() local
1305 if (read_stage2_from_disk(dev_fd, &stage2_disk, device->type) in is_update_necessary()
/titanic_50/usr/src/cmd/ucodeadm/
H A Ducodeadm.c483 int dev_fd = -1; in main() local
660 if ((dev_fd = open(ucode_dev, O_RDONLY)) == -1) { in main()
692 tmprc = ioctl(dev_fd, UCODE_GET_VERSION, &info32); in main()
698 tmprc = ioctl(dev_fd, UCODE_GET_VERSION, &info); in main()
733 tmprc = ioctl(dev_fd, UCODE_UPDATE, &uw_struct32); in main()
740 tmprc = ioctl(dev_fd, UCODE_UPDATE, &uw_struct); in main()
757 if (dev_fd != -1) in main()
758 (void) close(dev_fd); in main()
/titanic_50/usr/src/cmd/luxadm/
H A Dqlgcupdate.c770 static int dev_fd, fcode_size; in q_load_file() local
826 if ((dev_fd = open(device, O_RDWR|O_EXCL)) < 0) { in q_load_file()
837 if (ioctl(dev_fd, IFPIO_FCODE_DOWNLOAD, download_p) < 0) { in q_load_file()
841 (void) close(dev_fd); in q_load_file()
852 if (ioctl(dev_fd, FCIO_CMD, &fcio) != 0) { in q_load_file()
856 (void) close(dev_fd); in q_load_file()
861 (void) close(dev_fd); in q_load_file()
979 static int dev_fd, fcode_size; in fcode_load_file() local
1013 if ((dev_fd = open(device, O_RDWR|O_EXCL)) < 0) { in fcode_load_file()
1026 if (ioctl(dev_fd, FCIO_CMD, &fcio) != 0) { in fcode_load_file()
[all …]
/titanic_50/usr/src/cmd/boot/installboot/
H A Dinstallboot.c180 read_bootblock_from_disk(int dev_fd, ib_bootblock_t *bblock) in read_bootblock_from_disk() argument
189 assert(dev_fd != -1); in read_bootblock_from_disk()
196 if (read_in(dev_fd, mboot_scan, sizeof (mboot_scan), in read_bootblock_from_disk()
232 if (read_in(dev_fd, dest, size, SECTOR_SIZE) != BC_SUCCESS) { in read_bootblock_from_disk()
243 if (read_in(dev_fd, dest, size, BBLK_ZFS_EXTRA_OFF) != BC_SUCCESS) { in read_bootblock_from_disk()
269 int dev_fd = device->fd; in is_update_necessary() local
280 if (read_bootblock_from_disk(dev_fd, &bblock_disk) != BC_SUCCESS) { in is_update_necessary()
/titanic_50/usr/src/lib/libsmbfs/smb/
H A Drq.c283 smb_t2_request(int dev_fd, int setupcount, uint16_t *setup, in smb_t2_request() argument
315 if (ioctl(dev_fd, SMBIOC_T2RQ, krq) == -1) { in smb_t2_request()
H A Dctx.c1324 smb_fh_getssnkey(int dev_fd, uchar_t *key, size_t len) in smb_fh_getssnkey() argument
1329 if (ioctl(dev_fd, SMBIOC_GETSSNKEY, key) == -1) in smb_fh_getssnkey()
/titanic_50/usr/src/cmd/zevadm/
H A Dzevadm.c1215 zev_checksum(int dev_fd, char *filename) in zev_checksum() argument
1262 if (ioctl(dev_fd, ZEV_IOC_GET_FILE_SIGNATURES, gs)) { in zev_checksum()