Lines Matching refs:devfd
37 sr_prepare_chunk(int devfd, int vol, int disk) in sr_prepare_chunk() argument
44 diskfd = sr_open_chunk(devfd, vol, disk, &bd, &realdev, &part); in sr_prepare_chunk()
55 sr_prepareboot(int devfd, char *dev) in sr_prepareboot() argument
60 if (!sr_volume(devfd, dev, &vol, &ndisks)) { in sr_prepareboot()
61 md_prepareboot(devfd, dev); in sr_prepareboot()
67 sr_prepare_chunk(devfd, vol, disk); in sr_prepareboot()
71 sr_installboot(int devfd, char *dev) in sr_installboot() argument
76 if (!sr_volume(devfd, dev, &vol, &ndisks)) { in sr_installboot()
77 md_installboot(devfd, dev); in sr_installboot()
82 sr_install_bootldr(devfd, dev); in sr_installboot()
86 sr_install_bootblk(devfd, vol, disk); in sr_installboot()
90 sr_volume(int devfd, char *dev, int *vol, int *disks) in sr_volume() argument
102 if (ioctl(devfd, BIOCINQ, &bi) == -1) in sr_volume()
118 if (ioctl(devfd, BIOCVOL, &bv) == -1) in sr_volume()
152 sr_open_chunk(int devfd, int vol, int disk, struct bioc_disk *bd, in sr_open_chunk() argument
161 if (ioctl(devfd, BIOCDISK, bd) == -1) in sr_open_chunk()