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()
259 se_info.timeout_work); in st21nfca_se_wt_work()
263 info->se_info.bwi_active = false; in st21nfca_se_wt_work()
265 if (!info->se_info.xch_error) { in st21nfca_se_wt_work()
266 info->se_info.xch_error = true; in st21nfca_se_wt_work()
270 info->se_info.xch_error = false; in st21nfca_se_wt_work()
274 info->se_info.cb(info->se_info.cb_context, NULL, 0, -ETIME); in st21nfca_se_wt_work()
279 struct st21nfca_hci_info *info = from_timer(info, t, se_info.bwi_timer); in st21nfca_se_wt_timeout()
281 schedule_work(&info->se_info.timeout_work); in st21nfca_se_wt_timeout()
287 se_info.se_active_timer); in st21nfca_se_activation_timeout()
291 info->se_info.se_active = false; in st21nfca_se_activation_timeout()
293 complete(&info->se_info.req_completion); in st21nfca_se_activation_timeout()
381 del_timer_sync(&info->se_info.bwi_timer); in st21nfca_apdu_reader_event_received()
382 cancel_work_sync(&info->se_info.timeout_work); in st21nfca_apdu_reader_event_received()
383 info->se_info.bwi_active = false; in st21nfca_apdu_reader_event_received()
389 info->se_info.cb(info->se_info.cb_context, in st21nfca_apdu_reader_event_received()
393 mod_timer(&info->se_info.bwi_timer, jiffies + in st21nfca_apdu_reader_event_received()
394 msecs_to_jiffies(info->se_info.wt_timeout)); in st21nfca_apdu_reader_event_received()
411 init_completion(&info->se_info.req_completion); in st21nfca_se_init()
412 INIT_WORK(&info->se_info.timeout_work, st21nfca_se_wt_work); in st21nfca_se_init()
414 timer_setup(&info->se_info.bwi_timer, st21nfca_se_wt_timeout, 0); in st21nfca_se_init()
415 info->se_info.bwi_active = false; in st21nfca_se_init()
417 timer_setup(&info->se_info.se_active_timer, in st21nfca_se_init()
419 info->se_info.se_active = false; in st21nfca_se_init()
421 info->se_info.count_pipes = 0; in st21nfca_se_init()
422 info->se_info.expected_pipes = 0; in st21nfca_se_init()
424 info->se_info.xch_error = false; in st21nfca_se_init()
426 info->se_info.wt_timeout = in st21nfca_se_init()
435 if (info->se_info.bwi_active) in st21nfca_se_deinit()
436 del_timer_sync(&info->se_info.bwi_timer); in st21nfca_se_deinit()
437 if (info->se_info.se_active) in st21nfca_se_deinit()
438 del_timer_sync(&info->se_info.se_active_timer); in st21nfca_se_deinit()
440 cancel_work_sync(&info->se_info.timeout_work); in st21nfca_se_deinit()
441 info->se_info.bwi_active = false; in st21nfca_se_deinit()
442 info->se_info.se_active = false; in st21nfca_se_deinit()