Home
last modified time | relevance | path

Searched refs:nfc_dev (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/net/nfc/
Dnfc.h29 struct nfc_dev *dev;
46 void nfc_llcp_mac_is_down(struct nfc_dev *dev);
47 void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx,
49 int nfc_llcp_register_device(struct nfc_dev *dev);
50 void nfc_llcp_unregister_device(struct nfc_dev *dev);
51 int nfc_llcp_set_remote_gb(struct nfc_dev *dev, u8 *gb, u8 gb_len);
52 u8 *nfc_llcp_general_bytes(struct nfc_dev *dev, size_t *general_bytes_len);
53 int nfc_llcp_data_received(struct nfc_dev *dev, struct sk_buff *skb);
54 struct nfc_llcp_local *nfc_llcp_find_local(struct nfc_dev *dev);
77 int nfc_genl_targets_found(struct nfc_dev *dev);
[all …]
Ddigital_core.c396 rc = nfc_targets_found(ddev->nfc_dev, target, 1); in digital_target_found()
473 static int digital_start_poll(struct nfc_dev *nfc_dev, __u32 im_protocols, in digital_start_poll() argument
476 struct nfc_digital_dev *ddev = nfc_get_drvdata(nfc_dev); in digital_start_poll()
553 static void digital_stop_poll(struct nfc_dev *nfc_dev) in digital_stop_poll() argument
555 struct nfc_digital_dev *ddev = nfc_get_drvdata(nfc_dev); in digital_stop_poll()
574 static int digital_dev_up(struct nfc_dev *nfc_dev) in digital_dev_up() argument
576 struct nfc_digital_dev *ddev = nfc_get_drvdata(nfc_dev); in digital_dev_up()
583 static int digital_dev_down(struct nfc_dev *nfc_dev) in digital_dev_down() argument
585 struct nfc_digital_dev *ddev = nfc_get_drvdata(nfc_dev); in digital_dev_down()
592 static int digital_dep_link_up(struct nfc_dev *nfc_dev, in digital_dep_link_up() argument
[all …]
Dcore.c33 int nfc_fw_download(struct nfc_dev *dev, const char *firmware_name) in nfc_fw_download()
73 int nfc_fw_download_done(struct nfc_dev *dev, const char *firmware_name, in nfc_fw_download_done()
89 int nfc_dev_up(struct nfc_dev *dev) in nfc_dev_up()
137 int nfc_dev_down(struct nfc_dev *dev) in nfc_dev_down()
172 struct nfc_dev *dev = data; in nfc_rfkill_set_block()
197 int nfc_start_poll(struct nfc_dev *dev, u32 im_protocols, u32 tm_protocols) in nfc_start_poll()
240 int nfc_stop_poll(struct nfc_dev *dev) in nfc_stop_poll()
267 static struct nfc_target *nfc_find_target(struct nfc_dev *dev, u32 target_idx) in nfc_find_target()
279 int nfc_dep_link_up(struct nfc_dev *dev, int target_index, u8 comm_mode) in nfc_dep_link_up()
326 int nfc_dep_link_down(struct nfc_dev *dev) in nfc_dep_link_down()
[all …]
Dnetlink.c107 static struct nfc_dev *__get_device_from_cb(struct netlink_callback *cb) in __get_device_from_cb()
110 struct nfc_dev *dev; in __get_device_from_cb()
129 struct nfc_dev *dev = (struct nfc_dev *) cb->args[1]; in nfc_genl_dump_targets()
162 struct nfc_dev *dev = (struct nfc_dev *) cb->args[1]; in nfc_genl_dump_targets_done()
170 int nfc_genl_targets_found(struct nfc_dev *dev) in nfc_genl_targets_found()
199 int nfc_genl_target_lost(struct nfc_dev *dev, u32 target_idx) in nfc_genl_target_lost()
229 int nfc_genl_tm_activated(struct nfc_dev *dev, u32 protocol) in nfc_genl_tm_activated()
260 int nfc_genl_tm_deactivated(struct nfc_dev *dev) in nfc_genl_tm_deactivated()
289 static int nfc_genl_setup_device_added(struct nfc_dev *dev, struct sk_buff *msg) in nfc_genl_setup_device_added()
300 int nfc_genl_device_added(struct nfc_dev *dev) in nfc_genl_device_added()
[all …]
Dllcp.h53 struct nfc_dev *dev;
105 struct nfc_dev *dev;
204 struct nfc_llcp_local *nfc_llcp_find_local(struct nfc_dev *dev);
237 int nfc_llcp_send_symm(struct nfc_dev *dev);
Drawsock.c80 struct nfc_dev *dev; in rawsock_connect()
179 struct nfc_dev *dev = nfc_rawsock(sk)->dev; in rawsock_tx_work()
205 struct nfc_dev *dev = nfc_rawsock(sk)->dev; in rawsock_sendmsg()
357 void nfc_send_to_raw_sock(struct nfc_dev *dev, struct sk_buff *skb, in nfc_send_to_raw_sock()
/kernel/linux/linux-5.10/include/net/nfc/
Dnfc.h28 struct nfc_dev;
49 int (*dev_up)(struct nfc_dev *dev);
50 int (*dev_down)(struct nfc_dev *dev);
51 int (*start_poll)(struct nfc_dev *dev,
53 void (*stop_poll)(struct nfc_dev *dev);
54 int (*dep_link_up)(struct nfc_dev *dev, struct nfc_target *target,
56 int (*dep_link_down)(struct nfc_dev *dev);
57 int (*activate_target)(struct nfc_dev *dev, struct nfc_target *target,
59 void (*deactivate_target)(struct nfc_dev *dev,
61 int (*im_transceive)(struct nfc_dev *dev, struct nfc_target *target,
[all …]
Ddigital.h193 struct nfc_dev *nfc_dev; member
251 nfc_set_parent_dev(ndev->nfc_dev, dev); in nfc_digital_set_parent_dev()
Dnci_core.h197 struct nfc_dev *nfc_dev; member
333 nfc_set_parent_dev(ndev->nfc_dev, dev); in nci_set_parent_dev()
350 return nfc_set_vendor_cmds(ndev->nfc_dev, cmds, n_cmds); in nci_set_vendor_cmds()
/kernel/linux/linux-5.10/net/nfc/nci/
Dcore.c615 static int nci_dev_up(struct nfc_dev *nfc_dev) in nci_dev_up() argument
617 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_dev_up()
622 static int nci_dev_down(struct nfc_dev *nfc_dev) in nci_dev_down() argument
624 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_dev_down()
746 static int nci_set_local_general_bytes(struct nfc_dev *nfc_dev) in nci_set_local_general_bytes() argument
748 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_set_local_general_bytes()
752 param.val = nfc_get_local_general_bytes(nfc_dev, &param.len); in nci_set_local_general_bytes()
772 static int nci_set_listen_parameters(struct nfc_dev *nfc_dev) in nci_set_listen_parameters() argument
774 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_set_listen_parameters()
795 static int nci_start_poll(struct nfc_dev *nfc_dev, in nci_start_poll() argument
[all …]
Drsp.c141 conn_info = devm_kzalloc(&ndev->nfc_dev->dev, in nci_rf_disc_rsp_packet()
225 conn_info = devm_kzalloc(&ndev->nfc_dev->dev, in nci_core_conn_create_rsp_packet()
232 conn_info->dest_params = devm_kzalloc(&ndev->nfc_dev->dev, in nci_core_conn_create_rsp_packet()
262 devm_kfree(&ndev->nfc_dev->dev, conn_info); in nci_core_conn_create_rsp_packet()
282 devm_kfree(&ndev->nfc_dev->dev, conn_info); in nci_core_conn_close_rsp_packet()
Ddata.c256 if (ndev->nfc_dev->rf_mode == NFC_RF_TARGET) { in nci_add_rx_data_frag()
258 err = nfc_tm_data_received(ndev->nfc_dev, skb); in nci_add_rx_data_frag()
/kernel/linux/linux-5.10/net/nfc/hci/
Dcore.c579 static int hci_dev_up(struct nfc_dev *nfc_dev) in hci_dev_up() argument
581 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_dev_up()
625 static int hci_dev_down(struct nfc_dev *nfc_dev) in hci_dev_down() argument
627 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_dev_down()
639 static int hci_start_poll(struct nfc_dev *nfc_dev, in hci_start_poll() argument
642 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_start_poll()
652 static void hci_stop_poll(struct nfc_dev *nfc_dev) in hci_stop_poll() argument
654 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_stop_poll()
663 static int hci_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target, in hci_dep_link_up() argument
666 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_dep_link_up()
[all …]
/kernel/linux/linux-5.10/drivers/nfc/st-nci/
Dvendor_cmds.c39 static int st_nci_factory_mode(struct nfc_dev *dev, void *data, in st_nci_factory_mode()
64 static int st_nci_hci_clear_all_pipes(struct nfc_dev *dev, void *data, in st_nci_hci_clear_all_pipes()
72 static int st_nci_hci_dm_put_data(struct nfc_dev *dev, void *data, in st_nci_hci_dm_put_data()
82 static int st_nci_hci_dm_update_aid(struct nfc_dev *dev, void *data, in st_nci_hci_dm_update_aid()
91 static int st_nci_hci_dm_get_info(struct nfc_dev *dev, void *data, in st_nci_hci_dm_get_info()
124 static int st_nci_hci_dm_get_data(struct nfc_dev *dev, void *data, in st_nci_hci_dm_get_data()
157 static int st_nci_hci_dm_fwupd_start(struct nfc_dev *dev, void *data, in st_nci_hci_dm_fwupd_start()
172 static int st_nci_hci_dm_fwupd_end(struct nfc_dev *dev, void *data, in st_nci_hci_dm_fwupd_end()
181 static int st_nci_hci_dm_direct_load(struct nfc_dev *dev, void *data, in st_nci_hci_dm_direct_load()
194 static int st_nci_hci_dm_reset(struct nfc_dev *dev, void *data, in st_nci_hci_dm_reset()
[all …]
Dse.c271 nfc_err(&ndev->nfc_dev->dev, "Unexpected event on admin gate\n"); in st_nci_hci_admin_event_received()
296 nfc_err(&ndev->nfc_dev->dev, "Unexpected event on apdu reader gate\n"); in st_nci_hci_apdu_reader_event_received()
314 struct device *dev = &ndev->nfc_dev->dev; in st_nci_hci_connectivity_event_received()
321 r = nfc_se_connectivity(ndev->nfc_dev, host); in st_nci_hci_connectivity_event_received()
352 r = nfc_se_transaction(ndev->nfc_dev, host, transaction); in st_nci_hci_connectivity_event_received()
355 nfc_err(&ndev->nfc_dev->dev, "Unexpected event on connectivity gate\n"); in st_nci_hci_connectivity_event_received()
521 nfc_remove_se(ndev->nfc_dev, se_idx); in st_nci_enable_se()
635 nfc_add_se(ndev->nfc_dev, ST_NCI_UICC_HOST_ID, NFC_SE_UICC); in st_nci_discover_se()
640 nfc_add_se(ndev->nfc_dev, ST_NCI_ESE_HOST_ID, NFC_SE_EMBEDDED); in st_nci_discover_se()
/kernel/linux/linux-5.10/drivers/nfc/pn533/
Dpn533.c950 nfc_targets_found(dev->nfc_dev, &nfc_tgt, 1); in pn533_target_found()
1118 return nfc_tm_data_received(dev->nfc_dev, skb); in pn533_tm_get_data_complete()
1121 nfc_tm_deactivated(dev->nfc_dev); in pn533_tm_get_data_complete()
1238 rc = nfc_tm_activated(dev->nfc_dev, NFC_PROTO_NFC_DEP_MASK, in pn533_init_target_complete()
1340 rc = nfc_targets_found(dev->nfc_dev, &nfc_target, 1); in pn533_poll_dep_complete()
1349 rc = nfc_set_remote_general_bytes(dev->nfc_dev, in pn533_poll_dep_complete()
1352 rc = nfc_dep_link_is_up(dev->nfc_dev, in pn533_poll_dep_complete()
1353 dev->nfc_dev->targets[0].idx, in pn533_poll_dep_complete()
1365 static int pn533_poll_dep(struct nfc_dev *nfc_dev) in pn533_poll_dep() argument
1367 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_poll_dep()
[all …]
Dpn533.h134 struct nfc_dev *nfc_dev; member
Di2c.c224 r = nfc_register_device(priv->nfc_dev); in pn533_i2c_probe()
234 nfc_free_device(priv->nfc_dev); in pn533_i2c_probe()
/kernel/linux/linux-5.10/drivers/nfc/st21nfca/
Dvendor_cmds.c35 static int st21nfca_factory_mode(struct nfc_dev *dev, void *data, in st21nfca_factory_mode()
59 static int st21nfca_hci_clear_all_pipes(struct nfc_dev *dev, void *data, in st21nfca_hci_clear_all_pipes()
67 static int st21nfca_hci_dm_put_data(struct nfc_dev *dev, void *data, in st21nfca_hci_dm_put_data()
77 static int st21nfca_hci_dm_update_aid(struct nfc_dev *dev, void *data, in st21nfca_hci_dm_update_aid()
86 static int st21nfca_hci_dm_get_info(struct nfc_dev *dev, void *data, in st21nfca_hci_dm_get_info()
121 static int st21nfca_hci_dm_get_data(struct nfc_dev *dev, void *data, in st21nfca_hci_dm_get_data()
156 static int st21nfca_hci_dm_load(struct nfc_dev *dev, void *data, in st21nfca_hci_dm_load()
165 static int st21nfca_hci_dm_reset(struct nfc_dev *dev, void *data, in st21nfca_hci_dm_reset()
183 static int st21nfca_hci_get_param(struct nfc_dev *dev, void *data, in st21nfca_hci_get_param()
219 static int st21nfca_hci_dm_field_generator(struct nfc_dev *dev, void *data, in st21nfca_hci_dm_field_generator()
[all …]
/kernel/linux/linux-5.10/drivers/nfc/s3fwrn5/
Dnci.c89 ret = request_firmware(&fw, fw_name, &info->ndev->nfc_dev->dev); in s3fwrn5_nci_rf_configure()
111 dev_info(&info->ndev->nfc_dev->dev, in s3fwrn5_nci_rf_configure()
116 dev_err(&info->ndev->nfc_dev->dev, in s3fwrn5_nci_rf_configure()
131 dev_err(&info->ndev->nfc_dev->dev, in s3fwrn5_nci_rf_configure()
144 dev_err(&info->ndev->nfc_dev->dev, in s3fwrn5_nci_rf_configure()
149 dev_info(&info->ndev->nfc_dev->dev, in s3fwrn5_nci_rf_configure()
Dfirmware.c292 &fw_info->ndev->nfc_dev->dev); in s3fwrn5_fw_request_firmware()
367 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_setup()
376 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_setup()
385 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_setup()
434 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_download()
443 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_download()
450 dev_info(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_download()
456 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_download()
465 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_download()
473 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_download()
[all …]
/kernel/linux/linux-5.10/drivers/nfc/nfcmrvl/
Duart.c163 if (priv->ndev->nfc_dev->fw_download_in_progress) in nfcmrvl_nci_uart_tx_start()
177 if (priv->ndev->nfc_dev->fw_download_in_progress) in nfcmrvl_nci_uart_tx_done()
Dfw_dnld.c130 nfc_fw_download_done(priv->ndev->nfc_dev, priv->fw_dnld.name, error); in fw_dnld_over()
413 nfc_send_to_raw_sock(priv->ndev->nfc_dev, skb, in fw_dnld_rx_work()
460 dev_name(&priv->ndev->nfc_dev->dev)); in nfcmrvl_fw_dnld_init()
514 &ndev->nfc_dev->dev); in nfcmrvl_fw_dnld_start()
Dmain.c198 if (priv->ndev->nfc_dev->fw_download_in_progress) in nfcmrvl_nci_unregister_dev()
225 if (priv->ndev->nfc_dev->fw_download_in_progress) { in nfcmrvl_nci_recv_frame()
/kernel/linux/linux-5.10/drivers/nfc/
Dnfcsim.c16 #define NFCSIM_ERR(d, fmt, args...) nfc_err(&d->nfc_digital_dev->nfc_dev->dev, \
19 #define NFCSIM_DBG(d, fmt, args...) dev_dbg(&d->nfc_digital_dev->nfc_dev->dev, \
362 idx = dev->nfc_digital_dev->nfc_dev->idx; in nfcsim_debugfs_init_dev()

12