/drivers/bluetooth/ |
D | bpa10x.c | 50 struct hci_dev *hdev; member 67 static int bpa10x_recv(struct hci_dev *hdev, int queue, void *buf, int count) in bpa10x_recv() argument 69 struct bpa10x_data *data = hdev->driver_data; in bpa10x_recv() 71 BT_DBG("%s queue %d buffer %p count %d", hdev->name, in bpa10x_recv() 77 hdev->stat.byte_rx += count; in bpa10x_recv() 128 BT_ERR("%s no memory for packet", hdev->name); in bpa10x_recv() 132 skb->dev = (void *) hdev; in bpa10x_recv() 170 struct hci_dev *hdev = (struct hci_dev *) skb->dev; in bpa10x_tx_complete() local 172 BT_DBG("%s urb %p status %d count %d", hdev->name, in bpa10x_tx_complete() 175 if (!test_bit(HCI_RUNNING, &hdev->flags)) in bpa10x_tx_complete() [all …]
|
D | btusb.c | 150 struct hci_dev *hdev; member 181 struct hci_dev *hdev = urb->context; in btusb_intr_complete() local 182 struct btusb_data *data = hdev->driver_data; in btusb_intr_complete() 185 BT_DBG("%s urb %p status %d count %d", hdev->name, in btusb_intr_complete() 188 if (!test_bit(HCI_RUNNING, &hdev->flags)) in btusb_intr_complete() 192 hdev->stat.byte_rx += urb->actual_length; in btusb_intr_complete() 194 if (hci_recv_fragment(hdev, HCI_EVENT_PKT, in btusb_intr_complete() 197 BT_ERR("%s corrupted event packet", hdev->name); in btusb_intr_complete() 198 hdev->stat.err_rx++; in btusb_intr_complete() 210 hdev->name, urb, -err); in btusb_intr_complete() [all …]
|
D | btsdio.c | 55 struct hci_dev *hdev; member 78 BT_DBG("%s", data->hdev->name); in btsdio_tx_packet() 94 data->hdev->stat.byte_tx += skb->len; in btsdio_tx_packet() 107 BT_DBG("%s", data->hdev->name); in btsdio_work() 114 data->hdev->stat.err_tx++; in btsdio_work() 129 BT_DBG("%s", data->hdev->name); in btsdio_rx_packet() 155 data->hdev->stat.byte_rx += len; in btsdio_rx_packet() 157 skb->dev = (void *) data->hdev; in btsdio_rx_packet() 174 BT_DBG("%s", data->hdev->name); in btsdio_interrupt() 181 data->hdev->stat.err_rx++; in btsdio_interrupt() [all …]
|
D | hci_ldisc.c | 91 struct hci_dev *hdev = hu->hdev; in hci_uart_tx_complete() local 96 hdev->stat.cmd_tx++; in hci_uart_tx_complete() 100 hdev->stat.acl_tx++; in hci_uart_tx_complete() 104 hdev->stat.cmd_tx++; in hci_uart_tx_complete() 124 struct hci_dev *hdev = hu->hdev; in hci_uart_tx_wakeup() local 142 hdev->stat.byte_tx += len; in hci_uart_tx_wakeup() 163 static int hci_uart_open(struct hci_dev *hdev) in hci_uart_open() argument 165 BT_DBG("%s %p", hdev->name, hdev); in hci_uart_open() 169 set_bit(HCI_RUNNING, &hdev->flags); in hci_uart_open() 175 static int hci_uart_flush(struct hci_dev *hdev) in hci_uart_flush() argument [all …]
|
D | bfusb.c | 65 struct hci_dev *hdev; member 149 data->hdev->name, urb, err); in bfusb_send_bulk() 194 if (!test_bit(HCI_RUNNING, &data->hdev->flags)) in bfusb_tx_complete() 198 data->hdev->stat.byte_tx += skb->len; in bfusb_tx_complete() 200 data->hdev->stat.err_tx++; in bfusb_tx_complete() 245 data->hdev->name, urb, err); in bfusb_rx_submit() 259 BT_ERR("%s error in block", data->hdev->name); in bfusb_recv_block() 271 BT_ERR("%s unexpected start block", data->hdev->name); in bfusb_recv_block() 277 BT_ERR("%s no packet type found", data->hdev->name); in bfusb_recv_block() 289 BT_ERR("%s event block is too short", data->hdev->name); in bfusb_recv_block() [all …]
|
D | hci_vhci.c | 48 struct hci_dev *hdev; member 62 static int vhci_open_dev(struct hci_dev *hdev) in vhci_open_dev() argument 64 set_bit(HCI_RUNNING, &hdev->flags); in vhci_open_dev() 69 static int vhci_close_dev(struct hci_dev *hdev) in vhci_close_dev() argument 71 struct vhci_data *data = hdev->driver_data; in vhci_close_dev() 73 if (!test_and_clear_bit(HCI_RUNNING, &hdev->flags)) in vhci_close_dev() 81 static int vhci_flush(struct hci_dev *hdev) in vhci_flush() argument 83 struct vhci_data *data = hdev->driver_data; in vhci_flush() 92 struct hci_dev* hdev = (struct hci_dev *) skb->dev; in vhci_send_frame() local 95 if (!hdev) { in vhci_send_frame() [all …]
|
D | btuart_cs.c | 72 struct hci_dev *hdev; member 170 info->hdev->stat.byte_tx += len; in btuart_write_wakeup() 191 info->hdev->stat.byte_rx++; in btuart_receive() 205 info->rx_skb->dev = (void *) info->hdev; in btuart_receive() 228 info->hdev->stat.err_rx++; in btuart_receive() 229 clear_bit(HCI_RUNNING, &(info->hdev->flags)); in btuart_receive() 298 BUG_ON(!info->hdev); in btuart_interrupt() 399 static int btuart_hci_flush(struct hci_dev *hdev) in btuart_hci_flush() argument 401 btuart_info_t *info = (btuart_info_t *)(hdev->driver_data); in btuart_hci_flush() 410 static int btuart_hci_open(struct hci_dev *hdev) in btuart_hci_open() argument [all …]
|
D | dtl1_cs.c | 72 struct hci_dev *hdev; member 177 info->hdev->stat.byte_tx += len; in dtl1_write_wakeup() 222 info->hdev->stat.byte_rx++; in dtl1_receive() 266 info->rx_skb->dev = (void *) info->hdev; in dtl1_receive() 302 BUG_ON(!info->hdev); in dtl1_interrupt() 361 static int dtl1_hci_open(struct hci_dev *hdev) in dtl1_hci_open() argument 363 set_bit(HCI_RUNNING, &(hdev->flags)); in dtl1_hci_open() 369 static int dtl1_hci_flush(struct hci_dev *hdev) in dtl1_hci_flush() argument 371 dtl1_info_t *info = (dtl1_info_t *)(hdev->driver_data); in dtl1_hci_flush() 380 static int dtl1_hci_close(struct hci_dev *hdev) in dtl1_hci_close() argument [all …]
|
D | bt3c_cs.c | 77 struct hci_dev *hdev; member 215 info->hdev->stat.byte_tx += len; in bt3c_write_wakeup() 239 info->hdev->stat.byte_rx++; in bt3c_receive() 254 info->rx_skb->dev = (void *) info->hdev; in bt3c_receive() 279 info->hdev->stat.err_rx++; in bt3c_receive() 280 clear_bit(HCI_RUNNING, &(info->hdev->flags)); in bt3c_receive() 348 BUG_ON(!info->hdev); in bt3c_interrupt() 363 BT_INFO("%s: Antenna %s", info->hdev->name, in bt3c_interrupt() 391 static int bt3c_hci_flush(struct hci_dev *hdev) in bt3c_hci_flush() argument 393 bt3c_info_t *info = (bt3c_info_t *)(hdev->driver_data); in bt3c_hci_flush() [all …]
|
D | bluecard_cs.c | 70 struct hci_dev *hdev; member 334 info->hdev->stat.byte_tx += len; in bluecard_write_wakeup() 405 info->rx_skb->dev = (void *) info->hdev; in bluecard_receive() 441 info->hdev->stat.err_rx++; in bluecard_receive() 496 info->hdev->stat.byte_rx += len; in bluecard_receive() 506 BUG_ON(!info->hdev); in bluecard_interrupt() 563 static int bluecard_hci_set_baud_rate(struct hci_dev *hdev, int baud) in bluecard_hci_set_baud_rate() argument 565 bluecard_info_t *info = (bluecard_info_t *)(hdev->driver_data); in bluecard_hci_set_baud_rate() 611 static int bluecard_hci_flush(struct hci_dev *hdev) in bluecard_hci_flush() argument 613 bluecard_info_t *info = (bluecard_info_t *)(hdev->driver_data); in bluecard_hci_flush() [all …]
|
/drivers/hid/ |
D | hid-sony.c | 33 static void sony_report_fixup(struct hid_device *hdev, __u8 *rdesc, in sony_report_fixup() argument 36 struct sony_sc *sc = hid_get_drvdata(hdev); in sony_report_fixup() 40 dev_info(&hdev->dev, "Fixing up Sony Vaio VGX report " in sony_report_fixup() 51 static int sony_set_operational(struct hid_device *hdev) in sony_set_operational() argument 53 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in sony_set_operational() 69 dev_err(&hdev->dev, "can't set operational mode\n"); in sony_set_operational() 76 static int sony_probe(struct hid_device *hdev, const struct hid_device_id *id) in sony_probe() argument 84 dev_err(&hdev->dev, "can't alloc apple descriptor\n"); in sony_probe() 89 hid_set_drvdata(hdev, sc); in sony_probe() 91 ret = hid_parse(hdev); in sony_probe() [all …]
|
D | hid-core.c | 1116 static bool hid_match_one_id(struct hid_device *hdev, in hid_match_one_id() argument 1119 return id->bus == hdev->bus && in hid_match_one_id() 1120 (id->vendor == HID_ANY_ID || id->vendor == hdev->vendor) && in hid_match_one_id() 1121 (id->product == HID_ANY_ID || id->product == hdev->product); in hid_match_one_id() 1124 static const struct hid_device_id *hid_match_id(struct hid_device *hdev, in hid_match_id() argument 1128 if (hid_match_one_id(hdev, id)) in hid_match_id() 1140 static bool hid_hiddev(struct hid_device *hdev) in hid_hiddev() argument 1142 return !!hid_match_id(hdev, hid_hiddev_list); in hid_hiddev() 1145 int hid_connect(struct hid_device *hdev, unsigned int connect_mask) in hid_connect() argument 1156 if (hdev->bus != BUS_USB) in hid_connect() [all …]
|
D | hid-a4tech.c | 35 static int a4_input_mapped(struct hid_device *hdev, struct hid_input *hi, in a4_input_mapped() argument 39 struct a4tech_sc *a4 = hid_get_drvdata(hdev); in a4_input_mapped() 50 static int a4_event(struct hid_device *hdev, struct hid_field *field, in a4_event() argument 53 struct a4tech_sc *a4 = hid_get_drvdata(hdev); in a4_event() 56 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in a4_event() 88 static int a4_probe(struct hid_device *hdev, const struct hid_device_id *id) in a4_probe() argument 95 dev_err(&hdev->dev, "can't alloc device descriptor\n"); in a4_probe() 102 hid_set_drvdata(hdev, a4); in a4_probe() 104 ret = hid_parse(hdev); in a4_probe() 106 dev_err(&hdev->dev, "parse failed\n"); in a4_probe() [all …]
|
D | hid-cypress.c | 34 static void cp_report_fixup(struct hid_device *hdev, __u8 *rdesc, in cp_report_fixup() argument 37 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_report_fixup() 55 static int cp_input_mapped(struct hid_device *hdev, struct hid_input *hi, in cp_input_mapped() argument 59 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_input_mapped() 72 static int cp_event(struct hid_device *hdev, struct hid_field *field, in cp_event() argument 75 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_event() 77 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in cp_event() 86 hid_set_drvdata(hdev, (void *)quirks); in cp_event() 100 static int cp_probe(struct hid_device *hdev, const struct hid_device_id *id) in cp_probe() argument 105 hid_set_drvdata(hdev, (void *)quirks); in cp_probe() [all …]
|
D | hid-microsoft.c | 36 static void ms_report_fixup(struct hid_device *hdev, __u8 *rdesc, in ms_report_fixup() argument 39 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in ms_report_fixup() 43 dev_info(&hdev->dev, "fixing up Microsoft Wireless Receiver " in ms_report_fixup() 90 static int ms_input_mapping(struct hid_device *hdev, struct hid_input *hi, in ms_input_mapping() argument 94 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in ms_input_mapping() 112 static int ms_event(struct hid_device *hdev, struct hid_field *field, in ms_event() argument 115 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in ms_event() 117 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in ms_event() 145 static int ms_probe(struct hid_device *hdev, const struct hid_device_id *id) in ms_probe() argument 150 hid_set_drvdata(hdev, (void *)quirks); in ms_probe() [all …]
|
D | hid-lg.c | 42 static void lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, in lg_report_fixup() argument 45 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in lg_report_fixup() 49 dev_info(&hdev->dev, "fixing up Logitech keyboard report " in lg_report_fixup() 144 static int lg_input_mapping(struct hid_device *hdev, struct hid_input *hi, in lg_input_mapping() argument 160 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in lg_input_mapping() 163 if (hdev->product == USB_DEVICE_ID_LOGITECH_RECEIVER && in lg_input_mapping() 193 static int lg_input_mapped(struct hid_device *hdev, struct hid_input *hi, in lg_input_mapped() argument 197 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in lg_input_mapped() 210 static int lg_event(struct hid_device *hdev, struct hid_field *field, in lg_event() argument 213 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in lg_event() [all …]
|
D | hid-petalynx.c | 26 static void pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, in pl_report_fixup() argument 32 dev_info(&hdev->dev, "fixing up Petalynx Maxter Remote report " in pl_report_fixup() 41 static int pl_input_mapping(struct hid_device *hdev, struct hid_input *hi, in pl_input_mapping() argument 71 static int pl_probe(struct hid_device *hdev, const struct hid_device_id *id) in pl_probe() argument 75 hdev->quirks |= HID_QUIRK_NOGET; in pl_probe() 77 ret = hid_parse(hdev); in pl_probe() 79 dev_err(&hdev->dev, "parse failed\n"); in pl_probe() 83 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in pl_probe() 85 dev_err(&hdev->dev, "hw start failed\n"); in pl_probe()
|
D | hid-belkin.c | 30 static int belkin_input_mapping(struct hid_device *hdev, struct hid_input *hi, in belkin_input_mapping() argument 34 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in belkin_input_mapping() 50 static int belkin_probe(struct hid_device *hdev, const struct hid_device_id *id) in belkin_probe() argument 55 hid_set_drvdata(hdev, (void *)quirks); in belkin_probe() 57 ret = hid_parse(hdev); in belkin_probe() 59 dev_err(&hdev->dev, "parse failed\n"); in belkin_probe() 63 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT | in belkin_probe() 66 dev_err(&hdev->dev, "hw start failed\n"); in belkin_probe()
|
D | hid-apple.c | 213 static int apple_event(struct hid_device *hdev, struct hid_field *field, in apple_event() argument 216 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_event() 218 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in apple_event() 230 hidinput_apple_event(hdev, field->hidinput->input, in apple_event() 241 static void apple_report_fixup(struct hid_device *hdev, __u8 *rdesc, in apple_report_fixup() argument 244 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_report_fixup() 248 dev_info(&hdev->dev, "fixing up MacBook JIS keyboard report " in apple_report_fixup() 274 static int apple_input_mapping(struct hid_device *hdev, struct hid_input *hi, in apple_input_mapping() argument 290 static int apple_input_mapped(struct hid_device *hdev, struct hid_input *hi, in apple_input_mapped() argument 294 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_mapped() [all …]
|
D | hid-samsung.c | 34 static void samsung_report_fixup(struct hid_device *hdev, __u8 *rdesc, in samsung_report_fixup() argument 41 dev_info(&hdev->dev, "fixing up Samsung IrDA report " in samsung_report_fixup() 50 static int samsung_probe(struct hid_device *hdev, in samsung_probe() argument 55 ret = hid_parse(hdev); in samsung_probe() 57 dev_err(&hdev->dev, "parse failed\n"); in samsung_probe() 61 ret = hid_hw_start(hdev, (HID_CONNECT_DEFAULT & ~HID_CONNECT_HIDINPUT) | in samsung_probe() 64 dev_err(&hdev->dev, "hw start failed\n"); in samsung_probe()
|
D | hid-pl.c | 152 static int pl_probe(struct hid_device *hdev, const struct hid_device_id *id) in pl_probe() argument 157 hdev->quirks |= HID_QUIRK_MULTI_INPUT; in pl_probe() 159 ret = hid_parse(hdev); in pl_probe() 161 dev_err(&hdev->dev, "parse failed\n"); in pl_probe() 165 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in pl_probe() 167 dev_err(&hdev->dev, "hw start failed\n"); in pl_probe() 171 plff_init(hdev); in pl_probe()
|
D | hid-lg.h | 7 int lgff_init(struct hid_device *hdev); 9 static inline int lgff_init(struct hid_device *hdev) { return -1; } in lgff_init() argument 13 int lg2ff_init(struct hid_device *hdev); 15 static inline int lg2ff_init(struct hid_device *hdev) { return -1; } in lg2ff_init() argument
|
D | hid-gaff.c | 134 static int ga_probe(struct hid_device *hdev, const struct hid_device_id *id) in ga_probe() argument 138 dev_dbg(&hdev->dev, "Greenasia HID hardware probe..."); in ga_probe() 140 ret = hid_parse(hdev); in ga_probe() 142 dev_err(&hdev->dev, "parse failed\n"); in ga_probe() 146 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in ga_probe() 148 dev_err(&hdev->dev, "hw start failed\n"); in ga_probe() 152 gaff_init(hdev); in ga_probe()
|
D | hid-zpff.c | 112 static int zp_probe(struct hid_device *hdev, const struct hid_device_id *id) in zp_probe() argument 116 ret = hid_parse(hdev); in zp_probe() 118 dev_err(&hdev->dev, "parse failed\n"); in zp_probe() 122 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in zp_probe() 124 dev_err(&hdev->dev, "hw start failed\n"); in zp_probe() 128 zpff_init(hdev); in zp_probe()
|
/drivers/usb/core/ |
D | hub.c | 42 struct usb_device *hdev; member 163 static inline struct usb_hub *hdev_to_hub(struct usb_device *hdev) in hdev_to_hub() argument 165 return usb_get_intfdata(hdev->actconfig->interface[0]); in hdev_to_hub() 169 static int get_hub_descriptor(struct usb_device *hdev, void *data, int size) in get_hub_descriptor() argument 174 ret = usb_control_msg(hdev, usb_rcvctrlpipe(hdev, 0), in get_hub_descriptor() 187 static int clear_hub_feature(struct usb_device *hdev, int feature) in clear_hub_feature() argument 189 return usb_control_msg(hdev, usb_sndctrlpipe(hdev, 0), in clear_hub_feature() 196 static int clear_port_feature(struct usb_device *hdev, int port1, int feature) in clear_port_feature() argument 198 return usb_control_msg(hdev, usb_sndctrlpipe(hdev, 0), in clear_port_feature() 206 static int set_port_feature(struct usb_device *hdev, int port1, int feature) in set_port_feature() argument [all …]
|