Lines Matching refs:hst
60 static inline void ti_st_tx_complete(struct ti_st *hst, int pkt_type) in ti_st_tx_complete() argument
62 struct hci_dev *hdev = hst->hdev; in ti_st_tx_complete()
153 struct ti_st *hst; in ti_st_open() local
162 hst = hci_get_drvdata(hdev); in ti_st_open()
165 ti_st_proto[i].priv_data = hst; in ti_st_open()
171 init_completion(&hst->wait_reg_completion); in ti_st_open()
177 hst->reg_status = -EINPROGRESS; in ti_st_open()
195 (&hst->wait_reg_completion, in ti_st_open()
207 if (hst->reg_status != 0) { in ti_st_open()
210 "status %d", hst->reg_status); in ti_st_open()
215 hst->st_write = ti_st_proto[i].write; in ti_st_open()
216 if (!hst->st_write) { in ti_st_open()
225 hst->st_write = NULL; in ti_st_open()
237 struct ti_st *hst = hci_get_drvdata(hdev); in ti_st_close() local
249 hst->st_write = NULL; in ti_st_close()
256 struct ti_st *hst; in ti_st_send_frame() local
262 hst = hci_get_drvdata(hdev); in ti_st_send_frame()
274 len = hst->st_write(skb); in ti_st_send_frame()
284 ti_st_tx_complete(hst, bt_cb(skb)->pkt_type); in ti_st_send_frame()
291 static struct ti_st *hst; in bt_ti_probe() local
295 hst = devm_kzalloc(&pdev->dev, sizeof(struct ti_st), GFP_KERNEL); in bt_ti_probe()
296 if (!hst) in bt_ti_probe()
306 hst->hdev = hdev; in bt_ti_probe()
308 hci_set_drvdata(hdev, hst); in bt_ti_probe()
323 dev_set_drvdata(&pdev->dev, hst); in bt_ti_probe()
330 struct ti_st *hst = dev_get_drvdata(&pdev->dev); in bt_ti_remove() local
332 if (!hst) in bt_ti_remove()
335 BT_DBG("%s", hst->hdev->name); in bt_ti_remove()
337 hdev = hst->hdev; in bt_ti_remove()