Lines Matching refs:sg_io
48 TAIL_ALLOC_OBJECT_CONST_PTR(struct sg_io_v4, sg_io); in main()
49 fill_memory(sg_io, sizeof(*sg_io)); in main()
51 const void *const efault = sg_io + 1; in main()
55 ioctl(-1, SG_IO, sg_io); in main()
56 printf("ioctl(-1, SG_IO, [%u]) = -1 EBADF (%m)\n", sg_io->guard); in main()
63 sg_io->guard = (unsigned char) 'Q'; in main()
64 sg_io->protocol = 0; in main()
65 sg_io->subprotocol = 1; in main()
66 sg_io->flags = -1U; in main()
67 sg_io->info = -1U; in main()
68 sg_io->request = (kernel_ulong_t) 0xfacefeedfffffff1ULL; in main()
69 sg_io->response = (kernel_ulong_t) 0xfacefeedfffffff2ULL; in main()
70 sg_io->dout_xferp = (kernel_ulong_t) 0xfacefeedfffffff3ULL; in main()
71 sg_io->din_xferp = (kernel_ulong_t) 0xfacefeedfffffff4ULL; in main()
72 ioctl(-1, SG_IO, sg_io); in main()
104 sg_io->request_len, in main()
105 (unsigned long long) (kernel_ulong_t) sg_io->request, in main()
106 sg_io->request_tag, in main()
107 sg_io->request_attr, in main()
108 sg_io->request_priority, in main()
109 sg_io->request_extra, in main()
110 sg_io->max_response_len, in main()
111 sg_io->dout_iovec_count, in main()
112 sg_io->dout_xfer_len, in main()
113 sg_io->din_iovec_count, in main()
114 sg_io->din_xfer_len, in main()
115 (unsigned long long) (kernel_ulong_t) sg_io->dout_xferp, in main()
116 sg_io->timeout, in main()
117 sg_io->usr_ptr, in main()
118 sg_io->response_len, in main()
119 (unsigned long long) (kernel_ulong_t) sg_io->response, in main()
120 (unsigned long long) (kernel_ulong_t) sg_io->din_xferp, in main()
121 sg_io->driver_status, in main()
122 sg_io->transport_status, in main()
123 sg_io->device_status, in main()
124 sg_io->retry_delay, in main()
125 sg_io->duration, in main()
126 sg_io->response_len, in main()
127 sg_io->din_resid, in main()
128 sg_io->dout_resid, in main()
129 sg_io->generated_tag); in main()
141 sg_io->dout_iovec_count = ARRAY_SIZE(iov); in main()
142 sg_io->dout_xfer_len = iov[0].iov_len + iov[1].iov_len - 1; in main()
143 sg_io->dout_xferp = (unsigned long) t_iov; in main()
145 sg_io->din_iovec_count = 0; in main()
146 sg_io->din_xfer_len = 5; in main()
147 sg_io->din_resid = 1; in main()
148 sg_io->din_xferp = (unsigned long) efault - in main()
149 (sg_io->dout_xfer_len - sg_io->din_resid); in main()
151 sg_io->request_len = 3; in main()
152 sg_io->request = (unsigned long) efault - sg_io->request_len; in main()
153 sg_io->response_len = 2; in main()
154 sg_io->response = (unsigned long) efault - sg_io->response_len; in main()
156 sg_io->flags = 0x20; in main()
157 sg_io->info = 1; in main()
159 ioctl(-1, SG_IO, sg_io); in main()
191 sg_io->request_len, in main()
192 *(unsigned char *) ((unsigned long) sg_io->request + 0), in main()
193 *(unsigned char *) ((unsigned long) sg_io->request + 1), in main()
194 *(unsigned char *) ((unsigned long) sg_io->request + 2), in main()
195 sg_io->request_tag, in main()
196 sg_io->request_attr, in main()
197 sg_io->request_priority, in main()
198 sg_io->request_extra, in main()
199 sg_io->max_response_len, in main()
200 sg_io->dout_iovec_count, in main()
201 sg_io->dout_xfer_len, in main()
202 sg_io->din_iovec_count, in main()
203 sg_io->din_xfer_len, in main()
211 sg_io->timeout, in main()
212 sg_io->usr_ptr, in main()
213 sg_io->response_len, in main()
214 *(unsigned char *) ((unsigned long) sg_io->response + 0), in main()
215 *(unsigned char *) ((unsigned long) sg_io->response + 1), in main()
216 *(unsigned char *) ((unsigned long) sg_io->din_xferp + 0), in main()
217 *(unsigned char *) ((unsigned long) sg_io->din_xferp + 1), in main()
218 *(unsigned char *) ((unsigned long) sg_io->din_xferp + 2), in main()
219 *(unsigned char *) ((unsigned long) sg_io->din_xferp + 3), in main()
220 sg_io->driver_status, in main()
221 sg_io->transport_status, in main()
222 sg_io->device_status, in main()
223 sg_io->retry_delay, in main()
224 sg_io->duration, in main()
225 sg_io->response_len, in main()
226 sg_io->din_resid, in main()
227 sg_io->dout_resid, in main()
228 sg_io->generated_tag); in main()