Lines Matching refs:chan_idx
128 int chan_idx; member
881 int chan_idx = chan_num >> 1; in process_in_opcode() local
883 if (chan_idx >= xdev->num_channels) { in process_in_opcode()
889 chan = &xdev->channels[chan_idx]; in process_in_opcode()
939 int chan_idx; in process_bulk_in() local
986 chan_idx = chan_num >> 1; in process_bulk_in()
988 if (!(chan_num & 1) || chan_idx >= xdev->num_channels || in process_bulk_in()
989 !xdev->channels[chan_idx].read_data_ok) { in process_bulk_in()
994 chan = &xdev->channels[chan_idx]; in process_bulk_in()
1125 int chan_num = chan->chan_idx << 1; in flush_downstream()
1224 int chan_num = (chan->chan_idx << 1) | 1; in request_read_anything()
1289 (chan->chan_idx + 2) | USB_DIR_OUT, in xillyusb_open()
1362 rc = xillyusb_send_opcode(xdev, (chan->chan_idx << 1) | 1, in xillyusb_open()
1425 int chan_num = (chan->chan_idx << 1) | 1; in xillyusb_read()
1703 rc_read = xillyusb_send_opcode(xdev, (chan->chan_idx << 1) | 1, in xillyusb_release()
1752 rc_write = xillyusb_send_opcode(xdev, chan->chan_idx << 1, in xillyusb_release()
1810 rc = xillyusb_send_opcode(xdev, chan->chan_idx << 1, in xillyusb_llseek()
1942 chan->chan_idx = i; in setup_channels()