Lines Matching refs:hst
47 static inline void ti_st_tx_complete(struct ti_st *hst, int pkt_type) in ti_st_tx_complete() argument
49 struct hci_dev *hdev = hst->hdev; in ti_st_tx_complete()
139 struct ti_st *hst; in ti_st_open() local
145 hst = hci_get_drvdata(hdev); in ti_st_open()
148 ti_st_proto[i].priv_data = hst; in ti_st_open()
154 init_completion(&hst->wait_reg_completion); in ti_st_open()
160 hst->reg_status = -EINPROGRESS; in ti_st_open()
177 (&hst->wait_reg_completion, in ti_st_open()
189 if (hst->reg_status != 0) { in ti_st_open()
191 "status %d", hst->reg_status); in ti_st_open()
196 hst->st_write = ti_st_proto[i].write; in ti_st_open()
197 if (!hst->st_write) { in ti_st_open()
205 hst->st_write = NULL; in ti_st_open()
217 struct ti_st *hst = hci_get_drvdata(hdev); in ti_st_close() local
226 hst->st_write = NULL; in ti_st_close()
233 struct ti_st *hst; in ti_st_send_frame() local
237 hst = hci_get_drvdata(hdev); in ti_st_send_frame()
250 len = hst->st_write(skb); in ti_st_send_frame()
259 ti_st_tx_complete(hst, pkt_type); in ti_st_send_frame()
266 struct ti_st *hst; in bt_ti_probe() local
270 hst = devm_kzalloc(&pdev->dev, sizeof(struct ti_st), GFP_KERNEL); in bt_ti_probe()
271 if (!hst) in bt_ti_probe()
281 hst->hdev = hdev; in bt_ti_probe()
283 hci_set_drvdata(hdev, hst); in bt_ti_probe()
298 dev_set_drvdata(&pdev->dev, hst); in bt_ti_probe()
305 struct ti_st *hst = dev_get_drvdata(&pdev->dev); in bt_ti_remove() local
307 if (!hst) in bt_ti_remove()
310 BT_DBG("%s", hst->hdev->name); in bt_ti_remove()
312 hdev = hst->hdev; in bt_ti_remove()