Lines Matching refs:chan_idx
128 int chan_idx; member
890 int chan_idx = chan_num >> 1; in process_in_opcode() local
892 if (chan_idx >= xdev->num_channels) { in process_in_opcode()
898 chan = &xdev->channels[chan_idx]; in process_in_opcode()
948 int chan_idx; in process_bulk_in() local
995 chan_idx = chan_num >> 1; in process_bulk_in()
997 if (!(chan_num & 1) || chan_idx >= xdev->num_channels || in process_bulk_in()
998 !xdev->channels[chan_idx].read_data_ok) { in process_bulk_in()
1003 chan = &xdev->channels[chan_idx]; in process_bulk_in()
1134 int chan_num = chan->chan_idx << 1; in flush_downstream()
1233 int chan_num = (chan->chan_idx << 1) | 1; in request_read_anything()
1303 (chan->chan_idx + 2) | USB_DIR_OUT, in xillyusb_open()
1376 rc = xillyusb_send_opcode(xdev, (chan->chan_idx << 1) | 1, in xillyusb_open()
1440 int chan_num = (chan->chan_idx << 1) | 1; in xillyusb_read()
1718 rc_read = xillyusb_send_opcode(xdev, (chan->chan_idx << 1) | 1, in xillyusb_release()
1767 rc_write = xillyusb_send_opcode(xdev, chan->chan_idx << 1, in xillyusb_release()
1825 rc = xillyusb_send_opcode(xdev, chan->chan_idx << 1, in xillyusb_llseek()
1957 chan->chan_idx = i; in setup_channels()