Lines Matching refs:hdev

131 		dev = info->hdev->ndev;  in st21nfca_tx_work()
136 nfc_hci_send_cmd_async(info->hdev, ST21NFCA_RF_READER_F_GATE, in st21nfca_tx_work()
151 static int st21nfca_tm_send_atr_res(struct nfc_hci_dev *hdev, in st21nfca_tm_send_atr_res() argument
158 struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); in st21nfca_tm_send_atr_res()
185 r = nfc_set_remote_general_bytes(hdev->ndev, atr_res->gbi, in st21nfca_tm_send_atr_res()
193 r = nfc_hci_send_event(hdev, ST21NFCA_RF_CARD_F_GATE, in st21nfca_tm_send_atr_res()
199 static int st21nfca_tm_recv_atr_req(struct nfc_hci_dev *hdev, in st21nfca_tm_recv_atr_req() argument
225 r = st21nfca_tm_send_atr_res(hdev, atr_req); in st21nfca_tm_recv_atr_req()
231 r = nfc_tm_activated(hdev->ndev, NFC_PROTO_NFC_DEP_MASK, in st21nfca_tm_recv_atr_req()
242 static int st21nfca_tm_send_psl_res(struct nfc_hci_dev *hdev, in st21nfca_tm_send_psl_res() argument
262 r = nfc_hci_send_event(hdev, ST21NFCA_RF_CARD_F_GATE, in st21nfca_tm_send_psl_res()
281 r = nfc_hci_send_event(hdev, ST21NFCA_RF_CARD_F_GATE, in st21nfca_tm_send_psl_res()
288 static int st21nfca_tm_recv_psl_req(struct nfc_hci_dev *hdev, in st21nfca_tm_recv_psl_req() argument
308 r = st21nfca_tm_send_psl_res(hdev, psl_req); in st21nfca_tm_recv_psl_req()
313 int st21nfca_tm_send_dep_res(struct nfc_hci_dev *hdev, struct sk_buff *skb) in st21nfca_tm_send_dep_res() argument
316 struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); in st21nfca_tm_send_dep_res()
323 r = nfc_hci_send_event(hdev, ST21NFCA_RF_CARD_F_GATE, in st21nfca_tm_send_dep_res()
331 static int st21nfca_tm_recv_dep_req(struct nfc_hci_dev *hdev, in st21nfca_tm_recv_dep_req() argument
337 struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); in st21nfca_tm_recv_dep_req()
375 return nfc_tm_data_received(hdev->ndev, skb); in st21nfca_tm_recv_dep_req()
380 static int st21nfca_tm_event_send_data(struct nfc_hci_dev *hdev, in st21nfca_tm_event_send_data() argument
392 r = st21nfca_tm_recv_atr_req(hdev, skb); in st21nfca_tm_event_send_data()
395 r = st21nfca_tm_recv_psl_req(hdev, skb); in st21nfca_tm_event_send_data()
398 r = st21nfca_tm_recv_dep_req(hdev, skb); in st21nfca_tm_event_send_data()
414 int st21nfca_dep_event_received(struct nfc_hci_dev *hdev, in st21nfca_dep_event_received() argument
418 struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); in st21nfca_dep_event_received()
433 r = st21nfca_tm_event_send_data(hdev, skb); in st21nfca_dep_event_received()
438 nfc_err(&hdev->ndev->dev, "Unexpected event on card f gate\n"); in st21nfca_dep_event_received()
446 static void st21nfca_im_send_psl_req(struct nfc_hci_dev *hdev, u8 did, u8 bsi, in st21nfca_im_send_psl_req() argument
451 struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); in st21nfca_im_send_psl_req()
492 r = nfc_set_remote_general_bytes(info->hdev->ndev, in st21nfca_im_recv_atr_res_cb()
505 r = nfc_dep_link_is_up(info->hdev->ndev, info->dep_info.idx, in st21nfca_im_recv_atr_res_cb()
512 st21nfca_im_send_psl_req(info->hdev, atr_res->did, in st21nfca_im_recv_atr_res_cb()
522 int st21nfca_im_send_atr_req(struct nfc_hci_dev *hdev, u8 *gb, size_t gb_len) in st21nfca_im_send_atr_req() argument
525 struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); in st21nfca_im_send_atr_req()
552 target = hdev->ndev->targets; in st21nfca_im_send_atr_req()
569 atr_req->length = sizeof(struct st21nfca_atr_req) + hdev->gb_len; in st21nfca_im_send_atr_req()
580 return nfc_hci_send_cmd_async(hdev, ST21NFCA_RF_READER_F_GATE, in st21nfca_im_send_atr_req()
627 nfc_tm_data_received(info->hdev->ndev, skb); in st21nfca_im_recv_dep_res_cb()
650 int st21nfca_im_send_dep_req(struct nfc_hci_dev *hdev, struct sk_buff *skb) in st21nfca_im_send_dep_req() argument
652 struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); in st21nfca_im_send_dep_req()
665 return nfc_hci_send_cmd_async(hdev, ST21NFCA_RF_READER_F_GATE, in st21nfca_im_send_dep_req()
672 void st21nfca_dep_init(struct nfc_hci_dev *hdev) in st21nfca_dep_init() argument
674 struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); in st21nfca_dep_init()
683 void st21nfca_dep_deinit(struct nfc_hci_dev *hdev) in st21nfca_dep_deinit() argument
685 struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); in st21nfca_dep_deinit()