Home
last modified time | relevance | path

Searched refs:hu (Results 1 – 15 of 15) sorted by relevance

/drivers/bluetooth/
Dhci_ldisc.c78 static inline void hci_uart_tx_complete(struct hci_uart *hu, int pkt_type) in hci_uart_tx_complete() argument
80 struct hci_dev *hdev = hu->hdev; in hci_uart_tx_complete()
98 static inline struct sk_buff *hci_uart_dequeue(struct hci_uart *hu) in hci_uart_dequeue() argument
100 struct sk_buff *skb = hu->tx_skb; in hci_uart_dequeue()
103 percpu_down_read(&hu->proto_lock); in hci_uart_dequeue()
105 if (test_bit(HCI_UART_PROTO_READY, &hu->flags)) in hci_uart_dequeue()
106 skb = hu->proto->dequeue(hu); in hci_uart_dequeue()
108 percpu_up_read(&hu->proto_lock); in hci_uart_dequeue()
110 hu->tx_skb = NULL; in hci_uart_dequeue()
116 int hci_uart_tx_wakeup(struct hci_uart *hu) in hci_uart_tx_wakeup() argument
[all …]
Dhci_serdev.c24 static inline void hci_uart_tx_complete(struct hci_uart *hu, int pkt_type) in hci_uart_tx_complete() argument
26 struct hci_dev *hdev = hu->hdev; in hci_uart_tx_complete()
44 static inline struct sk_buff *hci_uart_dequeue(struct hci_uart *hu) in hci_uart_dequeue() argument
46 struct sk_buff *skb = hu->tx_skb; in hci_uart_dequeue()
49 if (test_bit(HCI_UART_PROTO_READY, &hu->flags)) in hci_uart_dequeue()
50 skb = hu->proto->dequeue(hu); in hci_uart_dequeue()
52 hu->tx_skb = NULL; in hci_uart_dequeue()
59 struct hci_uart *hu = container_of(work, struct hci_uart, write_work); in hci_uart_write_work() local
60 struct serdev_device *serdev = hu->serdev; in hci_uart_write_work()
61 struct hci_dev *hdev = hu->hdev; in hci_uart_write_work()
[all …]
Dhci_qca.c140 struct hci_uart *hu; member
234 static void qca_power_shutdown(struct hci_uart *hu);
239 static enum qca_btsoc_type qca_soc_type(struct hci_uart *hu) in qca_soc_type() argument
243 if (hu->serdev) { in qca_soc_type()
244 struct qca_serdev *qsd = serdev_device_get_drvdata(hu->serdev); in qca_soc_type()
254 static const char *qca_get_firmware_name(struct hci_uart *hu) in qca_get_firmware_name() argument
256 if (hu->serdev) { in qca_get_firmware_name()
257 struct qca_serdev *qsd = serdev_device_get_drvdata(hu->serdev); in qca_get_firmware_name()
282 static void serial_clock_vote(unsigned long vote, struct hci_uart *hu) in serial_clock_vote() argument
284 struct qca_data *qca = hu->priv; in serial_clock_vote()
[all …]
Dhci_mrvl.c48 struct hci_uart hu; member
57 static int mrvl_open(struct hci_uart *hu) in mrvl_open() argument
62 BT_DBG("hu %p", hu); in mrvl_open()
64 if (!hci_uart_has_flow_control(hu)) in mrvl_open()
76 hu->priv = mrvl; in mrvl_open()
78 if (hu->serdev) { in mrvl_open()
79 ret = serdev_device_open(hu->serdev); in mrvl_open()
91 static int mrvl_close(struct hci_uart *hu) in mrvl_close() argument
93 struct mrvl_data *mrvl = hu->priv; in mrvl_close()
95 BT_DBG("hu %p", hu); in mrvl_close()
[all …]
Dhci_ll.c66 struct hci_uart hu; member
85 static int send_hcill_cmd(u8 cmd, struct hci_uart *hu) in send_hcill_cmd() argument
89 struct ll_struct *ll = hu->priv; in send_hcill_cmd()
91 BT_DBG("hu %p cmd 0x%x", hu, cmd); in send_hcill_cmd()
111 static int ll_open(struct hci_uart *hu) in ll_open() argument
115 BT_DBG("hu %p", hu); in ll_open()
127 hu->priv = ll; in ll_open()
129 if (hu->serdev) { in ll_open()
130 struct ll_device *lldev = serdev_device_get_drvdata(hu->serdev); in ll_open()
140 static int ll_flush(struct hci_uart *hu) in ll_flush() argument
[all …]
Dhci_h5.c77 int (*rx_func)(struct hci_uart *hu, u8 c);
80 struct hci_uart *hu; /* Parent HCI UART */ member
126 static void h5_link_control(struct hci_uart *hu, const void *data, size_t len) in h5_link_control() argument
128 struct h5 *h5 = hu->priv; in h5_link_control()
153 struct hci_uart *hu = h5->hu; in h5_timed_event() local
157 BT_DBG("%s", hu->hdev->name); in h5_timed_event()
160 h5_link_control(hu, sync_req, sizeof(sync_req)); in h5_timed_event()
164 h5_link_control(hu, conf_req, sizeof(conf_req)); in h5_timed_event()
177 BT_DBG("hu %p retransmitting %u pkts", hu, h5->unack.qlen); in h5_timed_event()
189 hci_uart_tx_wakeup(hu); in h5_timed_event()
[all …]
Dhci_intel.c59 struct hci_uart *hu; member
71 struct hci_uart *hu; member
107 static int intel_wait_booting(struct hci_uart *hu) in intel_wait_booting() argument
109 struct intel_data *intel = hu->priv; in intel_wait_booting()
117 bt_dev_err(hu->hdev, "Device boot interrupted"); in intel_wait_booting()
122 bt_dev_err(hu->hdev, "Device boot timeout"); in intel_wait_booting()
130 static int intel_wait_lpm_transaction(struct hci_uart *hu) in intel_wait_lpm_transaction() argument
132 struct intel_data *intel = hu->priv; in intel_wait_lpm_transaction()
140 bt_dev_err(hu->hdev, "LPM transaction interrupted"); in intel_wait_lpm_transaction()
145 bt_dev_err(hu->hdev, "LPM transaction timeout"); in intel_wait_lpm_transaction()
[all …]
Dhci_ath.c31 struct hci_uart *hu; member
75 struct hci_uart *hu; in ath_hci_uart_work() local
80 hu = ath->hu; in ath_hci_uart_work()
81 tty = hu->tty; in ath_hci_uart_work()
91 clear_bit(HCI_UART_SENDING, &hu->tx_state); in ath_hci_uart_work()
92 hci_uart_tx_wakeup(hu); in ath_hci_uart_work()
95 static int ath_open(struct hci_uart *hu) in ath_open() argument
99 BT_DBG("hu %p", hu); in ath_open()
101 if (!hci_uart_has_flow_control(hu)) in ath_open()
110 hu->priv = ath; in ath_open()
[all …]
Dhci_h4.c41 static int h4_open(struct hci_uart *hu) in h4_open() argument
45 BT_DBG("hu %p", hu); in h4_open()
53 hu->priv = h4; in h4_open()
58 static int h4_flush(struct hci_uart *hu) in h4_flush() argument
60 struct h4_struct *h4 = hu->priv; in h4_flush()
62 BT_DBG("hu %p", hu); in h4_flush()
70 static int h4_close(struct hci_uart *hu) in h4_close() argument
72 struct h4_struct *h4 = hu->priv; in h4_close()
74 BT_DBG("hu %p", hu); in h4_close()
80 hu->priv = NULL; in h4_close()
[all …]
Dhci_bcm.c143 struct hci_uart *hu; member
170 static inline void host_set_baudrate(struct hci_uart *hu, unsigned int speed) in host_set_baudrate() argument
172 if (hu->serdev) in host_set_baudrate()
173 serdev_device_set_baudrate(hu->serdev, speed); in host_set_baudrate()
175 hci_uart_set_baudrate(hu, speed); in host_set_baudrate()
178 static int bcm_set_baudrate(struct hci_uart *hu, unsigned int speed) in bcm_set_baudrate() argument
180 struct hci_dev *hdev = hu->hdev; in bcm_set_baudrate()
181 struct bcm_data *bcm = hu->priv; in bcm_set_baudrate()
235 if (device && device->hu && device->hu->serdev) in bcm_device_exists()
392 static int bcm_setup_sleep(struct hci_uart *hu) in bcm_setup_sleep() argument
[all …]
Dhci_uart.h53 int (*open)(struct hci_uart *hu);
54 int (*close)(struct hci_uart *hu);
55 int (*flush)(struct hci_uart *hu);
56 int (*setup)(struct hci_uart *hu);
57 int (*set_baudrate)(struct hci_uart *hu, unsigned int speed);
58 int (*recv)(struct hci_uart *hu, const void *data, int len);
59 int (*enqueue)(struct hci_uart *hu, struct sk_buff *skb);
60 struct sk_buff *(*dequeue)(struct hci_uart *hu);
100 int hci_uart_register_device_priv(struct hci_uart *hu,
104 static inline int hci_uart_register_device(struct hci_uart *hu, in hci_uart_register_device() argument
[all …]
Dhci_nokia.c125 struct hci_uart hu; member
149 static int nokia_enqueue(struct hci_uart *hu, struct sk_buff *skb);
181 static int nokia_reset(struct hci_uart *hu) in nokia_reset() argument
183 struct nokia_bt_dev *btdev = hu->priv; in nokia_reset()
221 static int nokia_send_alive_packet(struct hci_uart *hu) in nokia_send_alive_packet() argument
223 struct nokia_bt_dev *btdev = hu->priv; in nokia_send_alive_packet()
245 nokia_enqueue(hu, skb); in nokia_send_alive_packet()
246 hci_uart_tx_wakeup(hu); in nokia_send_alive_packet()
261 static int nokia_send_negotiation(struct hci_uart *hu) in nokia_send_negotiation() argument
263 struct nokia_bt_dev *btdev = hu->priv; in nokia_send_negotiation()
[all …]
Dhci_ag6xx.c33 static int ag6xx_open(struct hci_uart *hu) in ag6xx_open() argument
37 BT_DBG("hu %p", hu); in ag6xx_open()
45 hu->priv = ag6xx; in ag6xx_open()
49 static int ag6xx_close(struct hci_uart *hu) in ag6xx_close() argument
51 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_close()
53 BT_DBG("hu %p", hu); in ag6xx_close()
59 hu->priv = NULL; in ag6xx_close()
63 static int ag6xx_flush(struct hci_uart *hu) in ag6xx_flush() argument
65 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_flush()
67 BT_DBG("hu %p", hu); in ag6xx_flush()
[all …]
Dhci_bcsp.c53 struct hci_uart *hu; member
134 static int bcsp_enqueue(struct hci_uart *hu, struct sk_buff *skb) in bcsp_enqueue() argument
136 struct bcsp_struct *bcsp = hu->priv; in bcsp_enqueue()
271 static struct sk_buff *bcsp_dequeue(struct hci_uart *hu) in bcsp_dequeue() argument
273 struct bcsp_struct *bcsp = hu->priv; in bcsp_dequeue()
341 static int bcsp_flush(struct hci_uart *hu) in bcsp_flush() argument
343 BT_DBG("hu %p", hu); in bcsp_flush()
397 static void bcsp_handle_le_pkt(struct hci_uart *hu) in bcsp_handle_le_pkt() argument
399 struct bcsp_struct *bcsp = hu->priv; in bcsp_handle_le_pkt()
416 hci_uart_tx_wakeup(hu); in bcsp_handle_le_pkt()
[all …]
/drivers/staging/media/ipu3/include/uapi/
Dintel-ipu3.h1938 __u32 hu:8; member