• Home
  • Raw
  • Download

Lines Matching refs:infd

213 	int infd;  member
247 int infd; member
2212 int infd, outfd, blocks; in do_scsi_device_read_write() local
2255 infd = STDIN_FILENO; in do_scsi_device_read_write()
2268 if ((infd = open(inf, O_RDWR)) < 0) { in do_scsi_device_read_write()
2276 res = ioctl(infd, SG_SET_RESERVED_SIZE, &t); in do_scsi_device_read_write()
2279 res = ioctl(infd, SG_GET_VERSION_NUM, &t); in do_scsi_device_read_write()
2294 infd = open(inf, O_RDONLY | O_DIRECT); in do_scsi_device_read_write()
2296 infd = open(inf, O_RDONLY); in do_scsi_device_read_write()
2297 if (infd < 0) { in do_scsi_device_read_write()
2307 if (llse_llseek(infd, offset, SEEK_SET) < 0) { in do_scsi_device_read_write()
2390 if ((STDIN_FILENO == infd) && (STDOUT_FILENO == outfd)) { in do_scsi_device_read_write()
2398 res = read_capacity(infd, &in_num_sect, &in_sect_sz); in do_scsi_device_read_write()
2403 read_capacity(infd, &in_num_sect, in do_scsi_device_read_write()
2491 sg_read(infd, wrkPos, blocks, skip, bs, scsi_cdbsz, in do_scsi_device_read_write()
2494 if (ioctl(infd, SG_GET_RESERVED_SIZE, &buf_sz) < in do_scsi_device_read_write()
2505 sg_read(infd, wrkPos, blocks, skip, bs, in do_scsi_device_read_write()
2511 sg_read(infd, wrkPos, blocks, skip, bs, in do_scsi_device_read_write()
2524 while (((res = read(infd, wrkPos, blocks * bs)) < 0) && in do_scsi_device_read_write()
2641 if (STDIN_FILENO != infd) in do_scsi_device_read_write()
2642 close(infd); in do_scsi_device_read_write()
6285 int infd, outfd, blocks; in do_scsi_sgm_read_write() local
6316 infd = STDIN_FILENO; in do_scsi_sgm_read_write()
6325 if ((infd = open(inf, O_RDWR)) < 0) { in do_scsi_sgm_read_write()
6331 res = ioctl(infd, SG_GET_VERSION_NUM, &t); in do_scsi_sgm_read_write()
6339 if (ioctl(infd, SG_GET_RESERVED_SIZE, &t) < 0) { in do_scsi_sgm_read_write()
6344 if (ioctl(infd, SG_SET_RESERVED_SIZE, &in_res_sz) < 0) { in do_scsi_sgm_read_write()
6350 MAP_SHARED, infd, 0); in do_scsi_sgm_read_write()
6358 if ((infd = open(inf, O_RDONLY)) < 0) { in do_scsi_sgm_read_write()
6367 if (llse_llseek(infd, offset, SEEK_SET) < 0) { in do_scsi_sgm_read_write()
6462 if ((STDIN_FILENO == infd) && (STDOUT_FILENO == outfd)) { in do_scsi_sgm_read_write()
6475 res = read_capacity(infd, &in_num_sect, &in_sect_sz); in do_scsi_sgm_read_write()
6480 read_capacity(infd, &in_num_sect, in do_scsi_sgm_read_write()
6601 sg_read2(infd, wrkPos, blocks, skip, bs, scsi_cdbsz, in do_scsi_sgm_read_write()
6607 sg_read2(infd, wrkPos, blocks, skip, bs, in do_scsi_sgm_read_write()
6617 while (((res = read(infd, wrkPos, blocks * bs)) < 0) && in do_scsi_sgm_read_write()
6724 if (STDIN_FILENO != infd) in do_scsi_sgm_read_write()
6725 close(infd); in do_scsi_sgm_read_write()
6823 rep->infd = clp->infd; in read_write_thread()
6934 while (((res = read(clp->infd, rep->buffp, in normal_in_operation()
7175 while (((res = write(rep->wr ? rep->outfd : rep->infd, hp, in sg_start_io()
7202 while (((res = read(wr ? rep->outfd : rep->infd, &io_hdr, in sg_finish_io()
7327 rcoll.infd = STDIN_FILENO; in do_scsi_sgp_read_write()
7337 if ((rcoll.infd = open(inf, O_RDWR)) < 0) { in do_scsi_sgp_read_write()
7344 if (sg_prepare(rcoll.infd, rcoll.bs, rcoll.bpt, in do_scsi_sgp_read_write()
7348 if ((rcoll.infd = open(inf, O_RDONLY)) < 0) { in do_scsi_sgp_read_write()
7358 if (llse_llseek(rcoll.infd, offset, SEEK_SET) < in do_scsi_sgp_read_write()
7429 if ((STDIN_FILENO == rcoll.infd) && (STDOUT_FILENO == rcoll.outfd)) { in do_scsi_sgp_read_write()
7437 read_capacity(rcoll.infd, &in_num_sect, in do_scsi_sgp_read_write()
7443 read_capacity(rcoll.infd, &in_num_sect, in do_scsi_sgp_read_write()
7617 if (STDIN_FILENO != rcoll.infd) in do_scsi_sgp_read_write()
7618 close(rcoll.infd); in do_scsi_sgp_read_write()