Lines Matching refs:se_info
131 td = ST21NFCB_ATR_GET_Y_FROM_TD(info->se_info.atr[i]); in st21nfcb_se_get_bwi()
136 return info->se_info.atr[i] >> 4; in st21nfcb_se_get_bwi()
154 memcpy(info->se_info.atr, skb->data, skb->len); in st21nfcb_se_get_atr()
156 info->se_info.wt_timeout = in st21nfcb_se_get_atr()
263 if (info->se_info.se_active) { in st21nfcb_hci_admin_event_received()
265 del_timer_sync(&info->se_info.se_active_timer); in st21nfcb_hci_admin_event_received()
266 info->se_info.se_active = false; in st21nfcb_hci_admin_event_received()
267 complete(&info->se_info.req_completion); in st21nfcb_hci_admin_event_received()
269 mod_timer(&info->se_info.se_active_timer, in st21nfcb_hci_admin_event_received()
289 del_timer_sync(&info->se_info.bwi_timer); in st21nfcb_hci_apdu_reader_event_received()
290 info->se_info.bwi_active = false; in st21nfcb_hci_apdu_reader_event_received()
291 info->se_info.cb(info->se_info.cb_context, in st21nfcb_hci_apdu_reader_event_received()
295 mod_timer(&info->se_info.bwi_timer, jiffies + in st21nfcb_hci_apdu_reader_event_received()
296 msecs_to_jiffies(info->se_info.wt_timeout)); in st21nfcb_hci_apdu_reader_event_received()
396 del_timer_sync(&info->se_info.se_active_timer); in st21nfcb_hci_cmd_received()
397 info->se_info.se_active = false; in st21nfcb_hci_cmd_received()
399 complete(&info->se_info.req_completion); in st21nfcb_hci_cmd_received()
435 reinit_completion(&info->se_info.req_completion); in st21nfcb_nci_control_se()
440 mod_timer(&info->se_info.se_active_timer, jiffies + in st21nfcb_nci_control_se()
442 info->se_info.se_active = true; in st21nfcb_nci_control_se()
445 wait_for_completion_interruptible(&info->se_info.req_completion); in st21nfcb_nci_control_se()
618 info->se_info.cb = cb; in st21nfcb_nci_se_io()
619 info->se_info.cb_context = cb_context; in st21nfcb_nci_se_io()
620 mod_timer(&info->se_info.bwi_timer, jiffies + in st21nfcb_nci_se_io()
621 msecs_to_jiffies(info->se_info.wt_timeout)); in st21nfcb_nci_se_io()
622 info->se_info.bwi_active = true; in st21nfcb_nci_se_io()
649 info->se_info.bwi_active = false; in st21nfcb_se_wt_timeout()
651 if (!info->se_info.xch_error) { in st21nfcb_se_wt_timeout()
652 info->se_info.xch_error = true; in st21nfcb_se_wt_timeout()
656 info->se_info.xch_error = false; in st21nfcb_se_wt_timeout()
660 info->se_info.cb(info->se_info.cb_context, NULL, 0, -ETIME); in st21nfcb_se_wt_timeout()
669 info->se_info.se_active = false; in st21nfcb_se_activation_timeout()
671 complete(&info->se_info.req_completion); in st21nfcb_se_activation_timeout()
678 init_completion(&info->se_info.req_completion); in st21nfcb_se_init()
680 init_timer(&info->se_info.bwi_timer); in st21nfcb_se_init()
681 info->se_info.bwi_timer.data = (unsigned long)info; in st21nfcb_se_init()
682 info->se_info.bwi_timer.function = st21nfcb_se_wt_timeout; in st21nfcb_se_init()
683 info->se_info.bwi_active = false; in st21nfcb_se_init()
685 init_timer(&info->se_info.se_active_timer); in st21nfcb_se_init()
686 info->se_info.se_active_timer.data = (unsigned long)info; in st21nfcb_se_init()
687 info->se_info.se_active_timer.function = in st21nfcb_se_init()
689 info->se_info.se_active = false; in st21nfcb_se_init()
691 info->se_info.xch_error = false; in st21nfcb_se_init()
693 info->se_info.wt_timeout = in st21nfcb_se_init()
704 if (info->se_info.bwi_active) in st21nfcb_se_deinit()
705 del_timer_sync(&info->se_info.bwi_timer); in st21nfcb_se_deinit()
706 if (info->se_info.se_active) in st21nfcb_se_deinit()
707 del_timer_sync(&info->se_info.se_active_timer); in st21nfcb_se_deinit()
709 info->se_info.se_active = false; in st21nfcb_se_deinit()
710 info->se_info.bwi_active = false; in st21nfcb_se_deinit()