Home
last modified time | relevance | path

Searched refs:hdev (Results 1 – 25 of 115) sorted by relevance

12345

/linux-3.4.99/net/bluetooth/
Dhci_event.c48 static void hci_cc_inquiry_cancel(struct hci_dev *hdev, struct sk_buff *skb) in hci_cc_inquiry_cancel() argument
52 BT_DBG("%s status 0x%x", hdev->name, status); in hci_cc_inquiry_cancel()
55 hci_dev_lock(hdev); in hci_cc_inquiry_cancel()
56 mgmt_stop_discovery_failed(hdev, status); in hci_cc_inquiry_cancel()
57 hci_dev_unlock(hdev); in hci_cc_inquiry_cancel()
61 clear_bit(HCI_INQUIRY, &hdev->flags); in hci_cc_inquiry_cancel()
63 hci_dev_lock(hdev); in hci_cc_inquiry_cancel()
64 hci_discovery_set_state(hdev, DISCOVERY_STOPPED); in hci_cc_inquiry_cancel()
65 hci_dev_unlock(hdev); in hci_cc_inquiry_cancel()
67 hci_req_complete(hdev, HCI_OP_INQUIRY_CANCEL, status); in hci_cc_inquiry_cancel()
[all …]
Dhci_core.c70 static void hci_notify(struct hci_dev *hdev, int event) in hci_notify() argument
72 hci_sock_dev_event(hdev, event); in hci_notify()
77 void hci_req_complete(struct hci_dev *hdev, __u16 cmd, int result) in hci_req_complete() argument
79 BT_DBG("%s command 0x%04x result 0x%2.2x", hdev->name, cmd, result); in hci_req_complete()
84 if (test_bit(HCI_INIT, &hdev->flags) && hdev->init_last_cmd != cmd) { in hci_req_complete()
85 struct hci_command_hdr *sent = (void *) hdev->sent_cmd->data; in hci_req_complete()
98 skb = skb_clone(hdev->sent_cmd, GFP_ATOMIC); in hci_req_complete()
100 skb_queue_head(&hdev->cmd_q, skb); in hci_req_complete()
101 queue_work(hdev->workqueue, &hdev->cmd_work); in hci_req_complete()
107 if (hdev->req_status == HCI_REQ_PEND) { in hci_req_complete()
[all …]
Dmgmt.c121 #define hdev_is_powered(hdev) (test_bit(HCI_UP, &hdev->flags) && \ argument
122 !test_bit(HCI_AUTO_OFF, &hdev->dev_flags))
270 static int read_version(struct sock *sk, struct hci_dev *hdev, void *data, in read_version() argument
284 static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data, in read_commands() argument
318 static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data, in read_index_list() argument
365 static u32 get_supported_settings(struct hci_dev *hdev) in get_supported_settings() argument
375 if (hdev->features[6] & LMP_SIMPLE_PAIR) in get_supported_settings()
378 if (!(hdev->features[4] & LMP_NO_BREDR)) { in get_supported_settings()
387 if (hdev->features[4] & LMP_LE) in get_supported_settings()
394 static u32 get_current_settings(struct hci_dev *hdev) in get_current_settings() argument
[all …]
Dhci_sysfs.c104 struct hci_dev *hdev = conn->hdev; in hci_conn_init_sysfs() local
110 conn->dev.parent = &hdev->dev; in hci_conn_init_sysfs()
117 struct hci_dev *hdev = conn->hdev; in hci_conn_add_sysfs() local
121 dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle); in hci_conn_add_sysfs()
128 hci_dev_hold(hdev); in hci_conn_add_sysfs()
133 struct hci_dev *hdev = conn->hdev; in hci_conn_del_sysfs() local
151 hci_dev_put(hdev); in hci_conn_del_sysfs()
190 struct hci_dev *hdev = to_hci_dev(dev); in show_bus() local
191 return sprintf(buf, "%s\n", host_bustostr(hdev->bus)); in show_bus()
196 struct hci_dev *hdev = to_hci_dev(dev); in show_type() local
[all …]
Dhci_conn.c49 struct hci_dev *hdev = conn->hdev; in hci_le_connect() local
68 hci_send_cmd(hdev, HCI_OP_LE_CREATE_CONN, sizeof(cp), &cp); in hci_le_connect()
73 hci_send_cmd(conn->hdev, HCI_OP_LE_CREATE_CONN_CANCEL, 0, NULL); in hci_le_connect_cancel()
78 struct hci_dev *hdev = conn->hdev; in hci_acl_connect() local
91 conn->link_policy = hdev->link_policy; in hci_acl_connect()
97 ie = hci_inquiry_cache_lookup(hdev, &conn->dst); in hci_acl_connect()
112 if (lmp_rswitch_capable(hdev) && !(hdev->link_mode & HCI_LM_MASTER)) in hci_acl_connect()
117 hci_send_cmd(hdev, HCI_OP_CREATE_CONN, sizeof(cp), &cp); in hci_acl_connect()
126 if (conn->hdev->hci_ver < BLUETOOTH_VER_1_2) in hci_acl_connect_cancel()
130 hci_send_cmd(conn->hdev, HCI_OP_CREATE_CONN_CANCEL, sizeof(cp), &cp); in hci_acl_connect_cancel()
[all …]
Dhci_sock.c88 void hci_send_to_sock(struct hci_dev *hdev, struct sk_buff *skb) in hci_send_to_sock() argument
94 BT_DBG("hdev %p len %d", hdev, skb->len); in hci_send_to_sock()
102 if (sk->sk_state != BT_BOUND || hci_pi(sk)->hdev != hdev) in hci_send_to_sock()
193 void hci_send_to_monitor(struct hci_dev *hdev, struct sk_buff *skb) in hci_send_to_monitor() argument
203 BT_DBG("hdev %p len %d", hdev, skb->len); in hci_send_to_monitor()
250 hdr->index = cpu_to_le16(hdev->id); in hci_send_to_monitor()
296 static struct sk_buff *create_monitor_event(struct hci_dev *hdev, int event) in create_monitor_event() argument
310 ni->type = hdev->dev_type; in create_monitor_event()
311 ni->bus = hdev->bus; in create_monitor_event()
312 bacpy(&ni->bdaddr, &hdev->bdaddr); in create_monitor_event()
[all …]
/linux-3.4.99/drivers/bluetooth/
Dbtwilink.c53 struct hci_dev *hdev; member
62 struct hci_dev *hdev = hst->hdev; in ti_st_tx_complete() local
67 hdev->stat.cmd_tx++; in ti_st_tx_complete()
71 hdev->stat.acl_tx++; in ti_st_tx_complete()
75 hdev->stat.sco_tx++; in ti_st_tx_complete()
111 skb->dev = (void *) lhst->hdev; in st_receive()
120 lhst->hdev->stat.byte_rx += skb->len; in st_receive()
152 static int ti_st_open(struct hci_dev *hdev) in ti_st_open() argument
158 BT_DBG("%s %p", hdev->name, hdev); in ti_st_open()
160 if (test_and_set_bit(HCI_RUNNING, &hdev->flags)) in ti_st_open()
[all …]
Dbpa10x.c50 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 = hci_get_drvdata(hdev); 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 …]
Dbtsdio.c58 struct hci_dev *hdev; member
81 BT_DBG("%s", data->hdev->name); in btsdio_tx_packet()
97 data->hdev->stat.byte_tx += skb->len; in btsdio_tx_packet()
110 BT_DBG("%s", data->hdev->name); in btsdio_work()
117 data->hdev->stat.err_tx++; in btsdio_work()
132 BT_DBG("%s", data->hdev->name); in btsdio_rx_packet()
158 data->hdev->stat.byte_rx += len; in btsdio_rx_packet()
160 skb->dev = (void *) data->hdev; in btsdio_rx_packet()
177 BT_DBG("%s", data->hdev->name); in btsdio_interrupt()
184 data->hdev->stat.err_rx++; in btsdio_interrupt()
[all …]
Dhci_vhci.c47 struct hci_dev *hdev; member
55 static int vhci_open_dev(struct hci_dev *hdev) in vhci_open_dev() argument
57 set_bit(HCI_RUNNING, &hdev->flags); in vhci_open_dev()
62 static int vhci_close_dev(struct hci_dev *hdev) in vhci_close_dev() argument
64 struct vhci_data *data = hci_get_drvdata(hdev); in vhci_close_dev()
66 if (!test_and_clear_bit(HCI_RUNNING, &hdev->flags)) in vhci_close_dev()
74 static int vhci_flush(struct hci_dev *hdev) in vhci_flush() argument
76 struct vhci_data *data = hci_get_drvdata(hdev); in vhci_flush()
85 struct hci_dev* hdev = (struct hci_dev *) skb->dev; in vhci_send_frame() local
88 if (!hdev) { in vhci_send_frame()
[all …]
Dhci_ldisc.c89 struct hci_dev *hdev = hu->hdev; in hci_uart_tx_complete() local
94 hdev->stat.cmd_tx++; in hci_uart_tx_complete()
98 hdev->stat.acl_tx++; in hci_uart_tx_complete()
102 hdev->stat.sco_tx++; in hci_uart_tx_complete()
122 struct hci_dev *hdev = hu->hdev; in hci_uart_tx_wakeup() local
140 hdev->stat.byte_tx += len; in hci_uart_tx_wakeup()
161 static int hci_uart_open(struct hci_dev *hdev) in hci_uart_open() argument
163 BT_DBG("%s %p", hdev->name, hdev); in hci_uart_open()
167 set_bit(HCI_RUNNING, &hdev->flags); in hci_uart_open()
173 static int hci_uart_flush(struct hci_dev *hdev) in hci_uart_flush() argument
[all …]
Dbtusb.c239 struct hci_dev *hdev; member
288 struct hci_dev *hdev = urb->context; in btusb_intr_complete() local
289 struct btusb_data *data = hci_get_drvdata(hdev); in btusb_intr_complete()
292 BT_DBG("%s urb %p status %d count %d", hdev->name, in btusb_intr_complete()
295 if (!test_bit(HCI_RUNNING, &hdev->flags)) in btusb_intr_complete()
299 hdev->stat.byte_rx += urb->actual_length; in btusb_intr_complete()
301 if (hci_recv_fragment(hdev, HCI_EVENT_PKT, in btusb_intr_complete()
304 BT_ERR("%s corrupted event packet", hdev->name); in btusb_intr_complete()
305 hdev->stat.err_rx++; in btusb_intr_complete()
321 hdev->name, urb, -err); in btusb_intr_complete()
[all …]
Dbfusb.c65 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 …]
Ddtl1_cs.c68 struct hci_dev *hdev; member
170 info->hdev->stat.byte_tx += len; in dtl1_write_wakeup()
215 info->hdev->stat.byte_rx++; in dtl1_receive()
259 info->rx_skb->dev = (void *) info->hdev; in dtl1_receive()
295 if (!info || !info->hdev) in dtl1_interrupt()
356 static int dtl1_hci_open(struct hci_dev *hdev) in dtl1_hci_open() argument
358 set_bit(HCI_RUNNING, &(hdev->flags)); in dtl1_hci_open()
364 static int dtl1_hci_flush(struct hci_dev *hdev) in dtl1_hci_flush() argument
366 dtl1_info_t *info = hci_get_drvdata(hdev); in dtl1_hci_flush()
375 static int dtl1_hci_close(struct hci_dev *hdev) in dtl1_hci_close() argument
[all …]
Dbtuart_cs.c68 struct hci_dev *hdev; member
166 info->hdev->stat.byte_tx += len; in btuart_write_wakeup()
187 info->hdev->stat.byte_rx++; in btuart_receive()
201 info->rx_skb->dev = (void *) info->hdev; in btuart_receive()
224 info->hdev->stat.err_rx++; in btuart_receive()
225 clear_bit(HCI_RUNNING, &(info->hdev->flags)); in btuart_receive()
294 if (!info || !info->hdev) in btuart_interrupt()
397 static int btuart_hci_flush(struct hci_dev *hdev) in btuart_hci_flush() argument
399 btuart_info_t *info = hci_get_drvdata(hdev); in btuart_hci_flush()
408 static int btuart_hci_open(struct hci_dev *hdev) in btuart_hci_open() argument
[all …]
/linux-3.4.99/drivers/media/video/s5p-tv/
Dhdmi_drv.c149 void hdmi_write(struct hdmi_device *hdev, u32 reg_id, u32 value) in hdmi_write() argument
151 writel(value, hdev->regs + reg_id); in hdmi_write()
155 void hdmi_write_mask(struct hdmi_device *hdev, u32 reg_id, u32 value, u32 mask) in hdmi_write_mask() argument
157 u32 old = readl(hdev->regs + reg_id); in hdmi_write_mask()
159 writel(value, hdev->regs + reg_id); in hdmi_write_mask()
163 void hdmi_writeb(struct hdmi_device *hdev, u32 reg_id, u8 value) in hdmi_writeb() argument
165 writeb(value, hdev->regs + reg_id); in hdmi_writeb()
168 static inline u32 hdmi_read(struct hdmi_device *hdev, u32 reg_id) in hdmi_read() argument
170 return readl(hdev->regs + reg_id); in hdmi_read()
175 struct hdmi_device *hdev = dev_data; in hdmi_irq_handler() local
[all …]
/linux-3.4.99/include/net/bluetooth/
Dhci_core.h278 int (*open)(struct hci_dev *hdev);
279 int (*close)(struct hci_dev *hdev);
280 int (*flush)(struct hci_dev *hdev);
282 void (*notify)(struct hci_dev *hdev, unsigned int evt);
283 int (*ioctl)(struct hci_dev *hdev, unsigned int cmd, unsigned long arg);
331 struct hci_dev *hdev; member
357 extern int l2cap_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr);
364 extern int sco_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr);
373 static inline void discovery_init(struct hci_dev *hdev) in discovery_init() argument
375 hdev->discovery.state = DISCOVERY_STOPPED; in discovery_init()
[all …]
/linux-3.4.99/drivers/hid/
Dhid-sony.c42 static __u8 *sony_report_fixup(struct hid_device *hdev, __u8 *rdesc, in sony_report_fixup() argument
45 struct sony_sc *sc = hid_get_drvdata(hdev); in sony_report_fixup()
58 hid_info(hdev, "Fixing up Sony RF Receiver report descriptor\n"); in sony_report_fixup()
67 hid_info(hdev, "Fixing up Sony Sixaxis report descriptor\n"); in sony_report_fixup()
74 static int sony_raw_event(struct hid_device *hdev, struct hid_report *report, in sony_raw_event() argument
77 struct sony_sc *sc = hid_get_drvdata(hdev); in sony_raw_event()
137 static int sixaxis_set_operational_usb(struct hid_device *hdev) in sixaxis_set_operational_usb() argument
139 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in sixaxis_set_operational_usb()
155 hid_err(hdev, "can't set operational mode\n"); in sixaxis_set_operational_usb()
162 static int sixaxis_set_operational_bt(struct hid_device *hdev) in sixaxis_set_operational_bt() argument
[all …]
Dhid-samsung.c57 static inline void samsung_irda_dev_trace(struct hid_device *hdev, in samsung_irda_dev_trace() argument
60 hid_info(hdev, "fixing up Samsung IrDA %d byte report descriptor\n", in samsung_irda_dev_trace()
64 static __u8 *samsung_irda_report_fixup(struct hid_device *hdev, __u8 *rdesc, in samsung_irda_report_fixup() argument
71 samsung_irda_dev_trace(hdev, 184); in samsung_irda_report_fixup()
79 samsung_irda_dev_trace(hdev, 203); in samsung_irda_report_fixup()
85 samsung_irda_dev_trace(hdev, 135); in samsung_irda_report_fixup()
91 samsung_irda_dev_trace(hdev, 171); in samsung_irda_report_fixup()
101 static int samsung_kbd_mouse_input_mapping(struct hid_device *hdev, in samsung_kbd_mouse_input_mapping() argument
105 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in samsung_kbd_mouse_input_mapping()
134 static __u8 *samsung_report_fixup(struct hid_device *hdev, __u8 *rdesc, in samsung_report_fixup() argument
[all …]
Dhid-picolcd.c192 struct hid_device *hdev; member
248 static struct hid_report *picolcd_report(int id, struct hid_device *hdev, int dir) in picolcd_report() argument
250 struct list_head *feature_report_list = &hdev->report_enum[dir].report_list; in picolcd_report()
257 hid_warn(hdev, "No report with id 0x%x found\n", id); in picolcd_report()
263 struct hid_device *hdev, struct hid_report *report);
273 static struct picolcd_pending *picolcd_send_and_wait(struct hid_device *hdev, in picolcd_send_and_wait() argument
276 struct picolcd_data *data = hid_get_drvdata(hdev); in picolcd_send_and_wait()
278 struct hid_report *report = picolcd_out_report(report_id, hdev); in picolcd_send_and_wait()
303 usbhid_submit_report(data->hdev, report, USB_DIR_OUT); in picolcd_send_and_wait()
315 static int picolcd_fb_send_tile(struct hid_device *hdev, int chip, int tile) in picolcd_fb_send_tile() argument
[all …]
Dhid-logitech-dj.c203 hid_destroy_device(dj_dev->hdev); in logi_dj_recv_destroy_djhid_device()
206 dev_err(&djrcv_dev->hdev->dev, "%s: can't destroy a NULL device\n", in logi_dj_recv_destroy_djhid_device()
215 struct hid_device *djrcv_hdev = djrcv_dev->hdev; in logi_dj_recv_add_djhid_device()
279 dj_dev->hdev = dj_hiddev; in logi_dj_recv_add_djhid_device()
319 dev_err(&djrcv_dev->hdev->dev, "%s: workitem triggered without " in delayedwork_callback()
357 dev_err(&djrcv_dev->hdev->dev, in delayedwork_callback()
405 if (hid_input_report(djdev->hdev, in logi_dj_recv_forward_null_report()
442 if (hid_input_report(dj_device->hdev, in logi_dj_recv_forward_report()
453 struct hid_device *hdev = djrcv_dev->hdev; in logi_dj_recv_send_report() local
459 output_report_enum = &hdev->report_enum[HID_OUTPUT_REPORT]; in logi_dj_recv_send_report()
[all …]
Dhid-ntrig.c113 static inline int ntrig_get_mode(struct hid_device *hdev) in ntrig_get_mode() argument
115 struct hid_report *report = hdev->report_enum[HID_FEATURE_REPORT]. in ntrig_get_mode()
122 usbhid_submit_report(hdev, report, USB_DIR_IN); in ntrig_get_mode()
123 usbhid_wait_io(hdev); in ntrig_get_mode()
127 static inline void ntrig_set_mode(struct hid_device *hdev, const int mode) in ntrig_set_mode() argument
135 report = hdev->report_enum[HID_FEATURE_REPORT]. in ntrig_set_mode()
141 usbhid_submit_report(hdev, report, USB_DIR_IN); in ntrig_set_mode()
144 static void ntrig_report_version(struct hid_device *hdev) in ntrig_report_version() argument
148 struct usb_device *usb_dev = hid_to_usb_dev(hdev); in ntrig_report_version()
164 hid_info(hdev, "Firmware version: %s (%02x%02x %02x%02x)\n", in ntrig_report_version()
[all …]
Dhid-wacom.c125 static void wacom_set_features(struct hid_device *hdev) in wacom_set_features() argument
133 ret = hdev->hid_output_raw_report(hdev, rep_data, 2, in wacom_set_features()
138 static void wacom_poke(struct hid_device *hdev, u8 speed) in wacom_poke() argument
140 struct wacom_data *wdata = hid_get_drvdata(hdev); in wacom_poke()
147 ret = hdev->hid_output_raw_report(hdev, rep_data, 2, in wacom_poke()
160 ret = hdev->hid_output_raw_report(hdev, rep_data, 2, in wacom_poke()
174 hid_warn(hdev, "failed to poke device, command %d, err %d\n", in wacom_poke()
192 struct hid_device *hdev = container_of(dev, struct hid_device, dev); in wacom_store_speed() local
199 wacom_poke(hdev, new_speed); in wacom_store_speed()
208 static int wacom_gr_parse_report(struct hid_device *hdev, in wacom_gr_parse_report() argument
[all …]
Dhid-lg.h5 int lgff_init(struct hid_device *hdev);
7 static inline int lgff_init(struct hid_device *hdev) { return -1; } in lgff_init() argument
11 int lg2ff_init(struct hid_device *hdev);
13 static inline int lg2ff_init(struct hid_device *hdev) { return -1; } in lg2ff_init() argument
17 int lg3ff_init(struct hid_device *hdev);
19 static inline int lg3ff_init(struct hid_device *hdev) { return -1; } in lg3ff_init() argument
23 int lg4ff_init(struct hid_device *hdev);
24 int lg4ff_deinit(struct hid_device *hdev);
26 static inline int lg4ff_init(struct hid_device *hdev) { return -1; } in lg4ff_init() argument
27 static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; } in lg4ff_deinit() argument
/linux-3.4.99/drivers/usb/core/
Dhub.c43 struct usb_device *hdev; member
88 static inline int hub_is_superspeed(struct usb_device *hdev) in hub_is_superspeed() argument
90 return (hdev->descriptor.bDeviceProtocol == USB_HUB_PR_SS); in hub_is_superspeed()
163 if (hub_is_superspeed(hub->hdev)) in portspeed()
174 static struct usb_hub *hdev_to_hub(struct usb_device *hdev) in hdev_to_hub() argument
176 if (!hdev || !hdev->actconfig) in hdev_to_hub()
178 return usb_get_intfdata(hdev->actconfig->interface[0]); in hdev_to_hub()
182 static int get_hub_descriptor(struct usb_device *hdev, void *data) in get_hub_descriptor() argument
187 if (hub_is_superspeed(hdev)) { in get_hub_descriptor()
196 ret = usb_control_msg(hdev, usb_rcvctrlpipe(hdev, 0), in get_hub_descriptor()
[all …]

12345