Lines Matching refs:genl_data
175 dev->genl_data.poll_req_portid = 0; in nfc_genl_targets_found()
826 mutex_lock(&dev->genl_data.genl_data_mutex); in nfc_genl_start_poll()
830 dev->genl_data.poll_req_portid = info->snd_portid; in nfc_genl_start_poll()
832 mutex_unlock(&dev->genl_data.genl_data_mutex); in nfc_genl_start_poll()
863 mutex_lock(&dev->genl_data.genl_data_mutex); in nfc_genl_stop_poll()
865 if (dev->genl_data.poll_req_portid != info->snd_portid) { in nfc_genl_stop_poll()
871 dev->genl_data.poll_req_portid = 0; in nfc_genl_stop_poll()
874 mutex_unlock(&dev->genl_data.genl_data_mutex); in nfc_genl_stop_poll()
1811 mutex_lock(&dev->genl_data.genl_data_mutex); in nfc_urelease_event_work()
1813 if (dev->genl_data.poll_req_portid == w->portid) { in nfc_urelease_event_work()
1815 dev->genl_data.poll_req_portid = 0; in nfc_urelease_event_work()
1818 mutex_unlock(&dev->genl_data.genl_data_mutex); in nfc_urelease_event_work()
1852 void nfc_genl_data_init(struct nfc_genl_data *genl_data) in nfc_genl_data_init() argument
1854 genl_data->poll_req_portid = 0; in nfc_genl_data_init()
1855 mutex_init(&genl_data->genl_data_mutex); in nfc_genl_data_init()
1858 void nfc_genl_data_exit(struct nfc_genl_data *genl_data) in nfc_genl_data_exit() argument
1860 mutex_destroy(&genl_data->genl_data_mutex); in nfc_genl_data_exit()