Lines Matching refs:se_info

56 		td = ST21NFCA_ATR_GET_Y_FROM_TD(info->se_info.atr[i]);  in st21nfca_se_get_bwi()
61 return info->se_info.atr[i] >> 4; in st21nfca_se_get_bwi()
79 memcpy(info->se_info.atr, skb->data, skb->len); in st21nfca_se_get_atr()
80 info->se_info.wt_timeout = in st21nfca_se_get_atr()
100 info->se_info.count_pipes = 0; in st21nfca_hci_control_se()
101 info->se_info.expected_pipes = ST21NFCA_SE_COUNT_PIPE_UICC; in st21nfca_hci_control_se()
108 info->se_info.count_pipes = 0; in st21nfca_hci_control_se()
109 info->se_info.expected_pipes = ST21NFCA_SE_COUNT_PIPE_EMBEDDED; in st21nfca_hci_control_se()
119 reinit_completion(&info->se_info.req_completion); in st21nfca_hci_control_se()
125 mod_timer(&info->se_info.se_active_timer, jiffies + in st21nfca_hci_control_se()
127 info->se_info.se_active = true; in st21nfca_hci_control_se()
130 wait_for_completion_interruptible(&info->se_info.req_completion); in st21nfca_hci_control_se()
230 info->se_info.cb = cb; in st21nfca_hci_se_io()
231 info->se_info.cb_context = cb_context; in st21nfca_hci_se_io()
232 mod_timer(&info->se_info.bwi_timer, jiffies + in st21nfca_hci_se_io()
233 msecs_to_jiffies(info->se_info.wt_timeout)); in st21nfca_hci_se_io()
234 info->se_info.bwi_active = true; in st21nfca_hci_se_io()
265 se_info.timeout_work); in st21nfca_se_wt_work()
267 info->se_info.bwi_active = false; in st21nfca_se_wt_work()
269 if (!info->se_info.xch_error) { in st21nfca_se_wt_work()
270 info->se_info.xch_error = true; in st21nfca_se_wt_work()
274 info->se_info.xch_error = false; in st21nfca_se_wt_work()
278 info->se_info.cb(info->se_info.cb_context, NULL, 0, -ETIME); in st21nfca_se_wt_work()
283 struct st21nfca_hci_info *info = from_timer(info, t, se_info.bwi_timer); in st21nfca_se_wt_timeout()
285 schedule_work(&info->se_info.timeout_work); in st21nfca_se_wt_timeout()
291 se_info.se_active_timer); in st21nfca_se_activation_timeout()
293 info->se_info.se_active = false; in st21nfca_se_activation_timeout()
295 complete(&info->se_info.req_completion); in st21nfca_se_activation_timeout()
383 del_timer_sync(&info->se_info.bwi_timer); in st21nfca_apdu_reader_event_received()
384 cancel_work_sync(&info->se_info.timeout_work); in st21nfca_apdu_reader_event_received()
385 info->se_info.bwi_active = false; in st21nfca_apdu_reader_event_received()
391 info->se_info.cb(info->se_info.cb_context, in st21nfca_apdu_reader_event_received()
395 mod_timer(&info->se_info.bwi_timer, jiffies + in st21nfca_apdu_reader_event_received()
396 msecs_to_jiffies(info->se_info.wt_timeout)); in st21nfca_apdu_reader_event_received()
413 init_completion(&info->se_info.req_completion); in st21nfca_se_init()
414 INIT_WORK(&info->se_info.timeout_work, st21nfca_se_wt_work); in st21nfca_se_init()
416 timer_setup(&info->se_info.bwi_timer, st21nfca_se_wt_timeout, 0); in st21nfca_se_init()
417 info->se_info.bwi_active = false; in st21nfca_se_init()
419 timer_setup(&info->se_info.se_active_timer, in st21nfca_se_init()
421 info->se_info.se_active = false; in st21nfca_se_init()
423 info->se_info.count_pipes = 0; in st21nfca_se_init()
424 info->se_info.expected_pipes = 0; in st21nfca_se_init()
426 info->se_info.xch_error = false; in st21nfca_se_init()
428 info->se_info.wt_timeout = in st21nfca_se_init()
437 if (info->se_info.bwi_active) in st21nfca_se_deinit()
438 del_timer_sync(&info->se_info.bwi_timer); in st21nfca_se_deinit()
439 if (info->se_info.se_active) in st21nfca_se_deinit()
440 del_timer_sync(&info->se_info.se_active_timer); in st21nfca_se_deinit()
442 cancel_work_sync(&info->se_info.timeout_work); in st21nfca_se_deinit()
443 info->se_info.bwi_active = false; in st21nfca_se_deinit()
444 info->se_info.se_active = false; in st21nfca_se_deinit()