Lines Matching refs:chan_idx
128 int chan_idx; member
882 int chan_idx = chan_num >> 1; in process_in_opcode() local
884 if (chan_idx >= xdev->num_channels) { in process_in_opcode()
890 chan = &xdev->channels[chan_idx]; in process_in_opcode()
940 int chan_idx; in process_bulk_in() local
987 chan_idx = chan_num >> 1; in process_bulk_in()
989 if (!(chan_num & 1) || chan_idx >= xdev->num_channels || in process_bulk_in()
990 !xdev->channels[chan_idx].read_data_ok) { in process_bulk_in()
995 chan = &xdev->channels[chan_idx]; in process_bulk_in()
1126 int chan_num = chan->chan_idx << 1; in flush_downstream()
1225 int chan_num = (chan->chan_idx << 1) | 1; in request_read_anything()
1290 (chan->chan_idx + 2) | USB_DIR_OUT, in xillyusb_open()
1363 rc = xillyusb_send_opcode(xdev, (chan->chan_idx << 1) | 1, in xillyusb_open()
1426 int chan_num = (chan->chan_idx << 1) | 1; in xillyusb_read()
1704 rc_read = xillyusb_send_opcode(xdev, (chan->chan_idx << 1) | 1, in xillyusb_release()
1753 rc_write = xillyusb_send_opcode(xdev, chan->chan_idx << 1, in xillyusb_release()
1811 rc = xillyusb_send_opcode(xdev, chan->chan_idx << 1, in xillyusb_llseek()
1943 chan->chan_idx = i; in setup_channels()