/Linux-v5.4/net/nfc/ |
D | nfc.h | 29 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 …]
|
D | digital_core.c | 391 rc = nfc_targets_found(ddev->nfc_dev, target, 1); in digital_target_found() 468 static int digital_start_poll(struct nfc_dev *nfc_dev, __u32 im_protocols, in digital_start_poll() argument 471 struct nfc_digital_dev *ddev = nfc_get_drvdata(nfc_dev); in digital_start_poll() 548 static void digital_stop_poll(struct nfc_dev *nfc_dev) in digital_stop_poll() argument 550 struct nfc_digital_dev *ddev = nfc_get_drvdata(nfc_dev); in digital_stop_poll() 569 static int digital_dev_up(struct nfc_dev *nfc_dev) in digital_dev_up() argument 571 struct nfc_digital_dev *ddev = nfc_get_drvdata(nfc_dev); in digital_dev_up() 578 static int digital_dev_down(struct nfc_dev *nfc_dev) in digital_dev_down() argument 580 struct nfc_digital_dev *ddev = nfc_get_drvdata(nfc_dev); in digital_dev_down() 587 static int digital_dep_link_up(struct nfc_dev *nfc_dev, in digital_dep_link_up() argument [all …]
|
D | core.c | 33 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 …]
|
D | netlink.c | 103 static struct nfc_dev *__get_device_from_cb(struct netlink_callback *cb) in __get_device_from_cb() 106 struct nfc_dev *dev; in __get_device_from_cb() 133 struct nfc_dev *dev = (struct nfc_dev *) cb->args[1]; in nfc_genl_dump_targets() 166 struct nfc_dev *dev = (struct nfc_dev *) cb->args[1]; in nfc_genl_dump_targets_done() 174 int nfc_genl_targets_found(struct nfc_dev *dev) in nfc_genl_targets_found() 203 int nfc_genl_target_lost(struct nfc_dev *dev, u32 target_idx) in nfc_genl_target_lost() 233 int nfc_genl_tm_activated(struct nfc_dev *dev, u32 protocol) in nfc_genl_tm_activated() 264 int nfc_genl_tm_deactivated(struct nfc_dev *dev) in nfc_genl_tm_deactivated() 293 static int nfc_genl_setup_device_added(struct nfc_dev *dev, struct sk_buff *msg) in nfc_genl_setup_device_added() 304 int nfc_genl_device_added(struct nfc_dev *dev) in nfc_genl_device_added() [all …]
|
D | llcp.h | 53 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);
|
D | rawsock.c | 80 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() 358 void nfc_send_to_raw_sock(struct nfc_dev *dev, struct sk_buff *skb, in nfc_send_to_raw_sock()
|
D | llcp_core.c | 283 struct nfc_llcp_local *nfc_llcp_find_local(struct nfc_dev *dev) in nfc_llcp_find_local() 598 u8 *nfc_llcp_general_bytes(struct nfc_dev *dev, size_t *general_bytes_len) in nfc_llcp_general_bytes() 615 int nfc_llcp_set_remote_gb(struct nfc_dev *dev, u8 *gb, u8 gb_len) in nfc_llcp_set_remote_gb() 1513 int nfc_llcp_data_received(struct nfc_dev *dev, struct sk_buff *skb) in nfc_llcp_data_received() 1528 void nfc_llcp_mac_is_down(struct nfc_dev *dev) in nfc_llcp_mac_is_down() 1543 void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx, in nfc_llcp_mac_is_up() 1568 int nfc_llcp_register_device(struct nfc_dev *ndev) in nfc_llcp_register_device() 1614 void nfc_llcp_unregister_device(struct nfc_dev *dev) in nfc_llcp_unregister_device()
|
/Linux-v5.4/include/net/nfc/ |
D | nfc.h | 28 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 …]
|
D | digital.h | 193 struct nfc_dev *nfc_dev; member 251 nfc_set_parent_dev(ndev->nfc_dev, dev); in nfc_digital_set_parent_dev()
|
D | nci_core.h | 196 struct nfc_dev *nfc_dev; member 331 nfc_set_parent_dev(ndev->nfc_dev, dev); in nci_set_parent_dev() 348 return nfc_set_vendor_cmds(ndev->nfc_dev, cmds, n_cmds); in nci_set_vendor_cmds()
|
/Linux-v5.4/net/nfc/nci/ |
D | core.c | 599 static int nci_dev_up(struct nfc_dev *nfc_dev) in nci_dev_up() argument 601 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_dev_up() 606 static int nci_dev_down(struct nfc_dev *nfc_dev) in nci_dev_down() argument 608 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_dev_down() 730 static int nci_set_local_general_bytes(struct nfc_dev *nfc_dev) in nci_set_local_general_bytes() argument 732 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_set_local_general_bytes() 736 param.val = nfc_get_local_general_bytes(nfc_dev, ¶m.len); in nci_set_local_general_bytes() 756 static int nci_set_listen_parameters(struct nfc_dev *nfc_dev) in nci_set_listen_parameters() argument 758 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_set_listen_parameters() 779 static int nci_start_poll(struct nfc_dev *nfc_dev, in nci_start_poll() argument [all …]
|
D | rsp.c | 141 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() 280 devm_kfree(&ndev->nfc_dev->dev, conn_info); in nci_core_conn_close_rsp_packet()
|
D | data.c | 256 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()
|
/Linux-v5.4/net/nfc/hci/ |
D | core.c | 566 static int hci_dev_up(struct nfc_dev *nfc_dev) in hci_dev_up() argument 568 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_dev_up() 612 static int hci_dev_down(struct nfc_dev *nfc_dev) in hci_dev_down() argument 614 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_dev_down() 626 static int hci_start_poll(struct nfc_dev *nfc_dev, in hci_start_poll() argument 629 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_start_poll() 639 static void hci_stop_poll(struct nfc_dev *nfc_dev) in hci_stop_poll() argument 641 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_stop_poll() 650 static int hci_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target, in hci_dep_link_up() argument 653 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_dep_link_up() [all …]
|
/Linux-v5.4/drivers/nfc/st-nci/ |
D | vendor_cmds.c | 39 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 …]
|
D | se.c | 271 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() 351 r = nfc_se_transaction(ndev->nfc_dev, host, transaction); in st_nci_hci_connectivity_event_received() 354 nfc_err(&ndev->nfc_dev->dev, "Unexpected event on connectivity gate\n"); in st_nci_hci_connectivity_event_received() 520 nfc_remove_se(ndev->nfc_dev, se_idx); in st_nci_enable_se() 634 nfc_add_se(ndev->nfc_dev, ST_NCI_UICC_HOST_ID, NFC_SE_UICC); in st_nci_discover_se() 639 nfc_add_se(ndev->nfc_dev, ST_NCI_ESE_HOST_ID, NFC_SE_EMBEDDED); in st_nci_discover_se()
|
/Linux-v5.4/drivers/nfc/pn533/ |
D | pn533.c | 921 nfc_targets_found(dev->nfc_dev, &nfc_tgt, 1); in pn533_target_found() 1089 return nfc_tm_data_received(dev->nfc_dev, skb); in pn533_tm_get_data_complete() 1092 nfc_tm_deactivated(dev->nfc_dev); in pn533_tm_get_data_complete() 1209 rc = nfc_tm_activated(dev->nfc_dev, NFC_PROTO_NFC_DEP_MASK, in pn533_init_target_complete() 1309 rc = nfc_targets_found(dev->nfc_dev, &nfc_target, 1); in pn533_poll_dep_complete() 1318 rc = nfc_set_remote_general_bytes(dev->nfc_dev, in pn533_poll_dep_complete() 1321 rc = nfc_dep_link_is_up(dev->nfc_dev, in pn533_poll_dep_complete() 1322 dev->nfc_dev->targets[0].idx, in pn533_poll_dep_complete() 1334 static int pn533_poll_dep(struct nfc_dev *nfc_dev) in pn533_poll_dep() argument 1336 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_poll_dep() [all …]
|
D | pn533.h | 124 struct nfc_dev *nfc_dev; member
|
/Linux-v5.4/drivers/nfc/st21nfca/ |
D | vendor_cmds.c | 35 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 …]
|
/Linux-v5.4/drivers/nfc/s3fwrn5/ |
D | nci.c | 89 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()
|
D | firmware.c | 292 &fw_info->ndev->nfc_dev->dev); in s3fwrn5_fw_request_firmware() 365 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_setup() 374 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_setup() 383 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_setup() 432 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_download() 449 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_download() 456 dev_info(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_download() 462 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_download() 471 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_download() 479 dev_err(&fw_info->ndev->nfc_dev->dev, in s3fwrn5_fw_download() [all …]
|
/Linux-v5.4/drivers/nfc/nfcmrvl/ |
D | uart.c | 163 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()
|
D | fw_dnld.c | 130 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()
|
D | main.c | 197 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()
|
/Linux-v5.4/drivers/nfc/ |
D | nfcsim.c | 16 #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, \ 363 idx = dev->nfc_digital_dev->nfc_dev->idx; in nfcsim_debugfs_init_dev()
|