Searched refs:ctrl_idx (Results 1 - 6 of 6) sorted by relevance

/linux-4.1.27/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_pro.c371 pcan_msg_add_rec(&um, PCAN_USBPRO_SETBTR, dev->ctrl_idx, ccbt); pcan_usb_pro_set_bitrate()
392 pcan_msg_add_rec(&um, PCAN_USBPRO_SETBUSACT, dev->ctrl_idx, onoff); pcan_usb_pro_set_bus()
402 pcan_msg_add_rec(&um, PCAN_USBPRO_SETSILENT, dev->ctrl_idx, onoff); pcan_usb_pro_set_silent()
412 pcan_msg_add_rec(&um, PCAN_USBPRO_SETFILTR, dev->ctrl_idx, filter_mode); pcan_usb_pro_set_filter()
423 pcan_msg_add_rec(&um, PCAN_USBPRO_SETLED, dev->ctrl_idx, mode, timeout); pcan_usb_pro_set_led()
437 pcan_msg_add_rec(&um, PCAN_USBPRO_GETDEVID, dev->ctrl_idx); pcan_usb_pro_get_device_id()
488 pcan_msg_add_rec(&um, PCAN_USBPRO_SETBUSACT, dev->ctrl_idx, 1); pcan_usb_pro_restart_async()
529 const unsigned int ctrl_idx = (rx->len >> 4) & 0x0f; pcan_usb_pro_handle_canmsg() local
530 struct peak_usb_device *dev = usb_if->dev[ctrl_idx]; pcan_usb_pro_handle_canmsg()
567 const unsigned int ctrl_idx = (er->channel >> 4) & 0x0f; pcan_usb_pro_handle_error() local
568 struct peak_usb_device *dev = usb_if->dev[ctrl_idx]; pcan_usb_pro_handle_error()
786 len = (dev->ctrl_idx << 4) | (cf->can_dlc & 0x0f); pcan_usb_pro_encode_msg()
917 usb_if->dev[dev->ctrl_idx] = dev; pcan_usb_pro_init()
950 if (dev->ctrl_idx == 0) { pcan_usb_pro_exit()
H A Dpcan_usb_core.c753 * create one device which is attached to CAN controller #ctrl_idx of the
757 struct usb_interface *intf, int ctrl_idx) peak_usb_create_dev()
788 dev->ctrl_idx = ctrl_idx; peak_usb_create_dev()
792 dev->ep_msg_out = peak_usb_adapter->ep_msg_out[ctrl_idx]; peak_usb_create_dev()
819 netdev->dev_id = ctrl_idx; peak_usb_create_dev()
852 peak_usb_adapter->name, ctrl_idx, dev->device_number); peak_usb_create_dev()
756 peak_usb_create_dev(const struct peak_usb_adapter *peak_usb_adapter, struct usb_interface *intf, int ctrl_idx) peak_usb_create_dev() argument
H A Dpcan_ucan.h198 return cpu_to_le16(((dev->ctrl_idx) << 12) | ((opcode) & 0x3ff)); pucan_cmd_opcode_channel()
H A Dpcan_usb_core.h116 unsigned int ctrl_idx; member in struct:peak_usb_device
H A Dpcan_usb_fd.c760 tx_msg->channel_dlc = PUCAN_MSG_CHANNEL_DLC(dev->ctrl_idx, can_dlc); pcan_usb_fd_encode_msg()
915 pdev->usb_if->dev[dev->ctrl_idx] = dev; pcan_usb_fd_init()
917 le32_to_cpu(pdev->usb_if->fw_info.dev_id[dev->ctrl_idx]); pcan_usb_fd_init()
964 if (dev->ctrl_idx == 0) { pcan_usb_fd_exit()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_debugfs.c1693 int ctrl_idx = ciq_idx - ciq_entries; sge_qinfo_show() local
1694 int fq_idx = ctrl_idx - ctrl_entries; sge_qinfo_show()
1809 } else if (ctrl_idx < ctrl_entries) { sge_qinfo_show()
1810 const struct sge_ctrl_txq *tx = &adap->sge.ctrlq[ctrl_idx * 4]; sge_qinfo_show()
1811 int n = min(4, adap->params.nports - 4 * ctrl_idx); sge_qinfo_show()

Completed in 154 milliseconds