Lines Matching refs:tcp
16 print_sg_io_buffer(struct tcb *tcp, unsigned char *addr, int len) in print_sg_io_buffer() argument
26 umoven(tcp, (unsigned long) addr, allocated, (char *) buf) < 0) { in print_sg_io_buffer()
40 print_sg_io_req(struct tcb *tcp, struct sg_io_hdr *sg_io) in print_sg_io_req() argument
46 print_sg_io_buffer(tcp, sg_io->cmdp, sg_io->cmd_len); in print_sg_io_req()
56 printstr(tcp, (unsigned long) sg_io->dxferp, in print_sg_io_req()
63 print_sg_io_res(struct tcb *tcp, struct sg_io_hdr *sg_io) in print_sg_io_res() argument
68 printstr(tcp, (unsigned long) sg_io->dxferp, in print_sg_io_res()
75 print_sg_io_buffer(tcp, sg_io->sbp, sg_io->sb_len_wr); in print_sg_io_res()
84 scsi_ioctl(struct tcb *tcp, long code, long arg) in scsi_ioctl() argument
88 if (entering(tcp)) { in scsi_ioctl()
91 if (umove(tcp, arg, &sg_io) < 0) in scsi_ioctl()
95 print_sg_io_req(tcp, &sg_io); in scsi_ioctl()
98 if (exiting(tcp)) { in scsi_ioctl()
101 if (!syserror(tcp) && umove(tcp, arg, &sg_io) >= 0) in scsi_ioctl()
102 print_sg_io_res(tcp, &sg_io); in scsi_ioctl()
108 if (entering(tcp)) in scsi_ioctl()