Lines Matching refs:index
169 static void sisusb_free_outbuf(struct sisusb_usb_data *sisusb, int index)
171 if ((index >= 0) && (index < sisusb->numobufs))
172 sisusb->urbstatus[index] &= ~SU_URB_ALLOC;
199 static int sisusb_bulkout_msg(struct sisusb_usb_data *sisusb, int index,
203 struct urb *urb = sisusb->sisurbout[index];
211 &sisusb->urbout_context[index]);
217 sisusb->urbout_context[index].actual_length = (timeout) ?
221 sisusb->urbstatus[index] |= SU_URB_BUSY;
229 (!(sisusb->urbstatus[index] & SU_URB_BUSY)),
231 if (sisusb->urbstatus[index] & SU_URB_BUSY) {
307 * buffer "sisusb->obuf[index]" is set up with the data to send.
316 char *kernbuffer, const char __user *userbuffer, int index,
334 * the transfer buffer[index] already, reuse the buffer/URB
341 index = -1;
351 if (index < 0)
352 index = sisusb_get_free_outbuf(sisusb);
354 if (index < 0)
357 buffer = sisusb->obuf[index];
379 result = sisusb_bulkout_msg(sisusb, index, pipe,
409 index = -1;
737 * that the data already is in the transfer buffer "sisusb->obuf[index]".
742 int index, ssize_t *bytes_written)
756 kernbuffer = sisusb->obuf[index];
876 NULL, NULL, index,
920 NULL, NULL, index,
1188 u8 index, u8 data)
1192 ret = sisusb_write_memio_byte(sisusb, SISUSB_TYPE_IO, port, index);
1198 u8 index, u8 *data)
1202 ret = sisusb_write_memio_byte(sisusb, SISUSB_TYPE_IO, port, index);
1236 u8 index, u8 myor)
1238 return sisusb_setidxregandor(sisusb, port, index, 0xff, myor);
1524 int index, u8 rankno, u8 chab, const u8 dramtype[][5], int bw)
1531 if ((rankno == 2) && (dramtype[index][0] == 2))
1534 ranksize = dramtype[index][3] / 2 * bw / 32;