Searched refs:ctrl_idx (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/net/can/usb/peak_usb/ |
H A D | pcan_usb_pro.c | 367 pcan_msg_add_rec(&um, PCAN_USBPRO_SETBTR, dev->ctrl_idx, ccbt); in pcan_usb_pro_set_bitrate() 433 pcan_msg_add_rec(&um, PCAN_USBPRO_GETDEVID, dev->ctrl_idx); in pcan_usb_pro_get_can_channel_id() 455 pcan_msg_add_rec(&um, PCAN_USBPRO_SETDEVID, dev->ctrl_idx, in pcan_usb_pro_set_can_channel_id() 495 pcan_msg_add_rec(&um, PCAN_USBPRO_SETBUSACT, dev->ctrl_idx, 1); in pcan_usb_pro_restart_async() 536 const unsigned int ctrl_idx = (rx->len >> 4) & 0x0f; in pcan_usb_pro_handle_canmsg() local 537 struct peak_usb_device *dev = usb_if->dev[ctrl_idx]; in pcan_usb_pro_handle_canmsg() 575 const unsigned int ctrl_idx = (er->channel >> 4) & 0x0f; in pcan_usb_pro_handle_error() local 576 struct peak_usb_device *dev = usb_if->dev[ctrl_idx]; in pcan_usb_pro_handle_error() 790 len = (dev->ctrl_idx << 4) | (cf->len & 0x0f); in pcan_usb_pro_encode_msg() 925 usb_if->dev[dev->ctrl_idx] = dev; in pcan_usb_pro_init() [all …]
|
H A D | pcan_usb_fd.c | 264 prc->opcode_channel = pucan_cmd_opcode_channel(dev->ctrl_idx, in pcan_usb_fd_build_restart_cmd() 283 pucan_cmd_opcode_channel(dev->ctrl_idx, in pcan_usb_fd_build_restart_cmd() 285 pucan_cmd_opcode_channel(dev->ctrl_idx, in pcan_usb_fd_build_restart_cmd() 301 cmd->opcode_channel = pucan_cmd_opcode_channel(dev->ctrl_idx, in pcan_usb_fd_build_restart_cmd() 379 cmd->opcode_channel = pucan_cmd_opcode_channel(dev->ctrl_idx, in pcan_usb_fd_set_options() 395 cmd->opcode_channel = pucan_cmd_opcode_channel(dev->ctrl_idx, in pcan_usb_fd_set_can_led() 409 cmd->opcode_channel = pucan_cmd_opcode_channel(dev->ctrl_idx, in pcan_usb_fd_set_clock_domain() 1017 pdev->usb_if->dev[dev->ctrl_idx] = dev; in pcan_usb_fd_init() 1019 le32_to_cpu(pdev->usb_if->fw_info.dev_id[dev->ctrl_idx]); in pcan_usb_fd_init() 1027 dev->ep_msg_out = fw_info->data_out_ep[dev->ctrl_idx]; in pcan_usb_fd_init() [all …]
|
H A D | pcan_usb_core.c | 920 struct usb_interface *intf, int ctrl_idx) in peak_usb_create_dev() argument 951 dev->ctrl_idx = ctrl_idx; in peak_usb_create_dev() 955 dev->ep_msg_out = peak_usb_adapter->ep_msg_out[ctrl_idx]; in peak_usb_create_dev() 988 netdev->dev_id = ctrl_idx; in peak_usb_create_dev() 1020 peak_usb_adapter->name, ctrl_idx, dev->can_channel_id); in peak_usb_create_dev()
|
H A D | pcan_usb_core.h | 113 unsigned int ctrl_idx; member
|