Home
last modified time | relevance | path

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

/linux-4.1.27/net/nfc/
Dnfc.h38 struct nfc_dev *dev;
55 void nfc_llcp_mac_is_down(struct nfc_dev *dev);
56 void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx,
58 int nfc_llcp_register_device(struct nfc_dev *dev);
59 void nfc_llcp_unregister_device(struct nfc_dev *dev);
60 int nfc_llcp_set_remote_gb(struct nfc_dev *dev, u8 *gb, u8 gb_len);
61 u8 *nfc_llcp_general_bytes(struct nfc_dev *dev, size_t *general_bytes_len);
62 int nfc_llcp_data_received(struct nfc_dev *dev, struct sk_buff *skb);
63 struct nfc_llcp_local *nfc_llcp_find_local(struct nfc_dev *dev);
86 int nfc_genl_targets_found(struct nfc_dev *dev);
[all …]
Ddigital_core.c394 rc = nfc_targets_found(ddev->nfc_dev, target, 1); in digital_target_found()
470 static int digital_start_poll(struct nfc_dev *nfc_dev, __u32 im_protocols, in digital_start_poll() argument
473 struct nfc_digital_dev *ddev = nfc_get_drvdata(nfc_dev); in digital_start_poll()
550 static void digital_stop_poll(struct nfc_dev *nfc_dev) in digital_stop_poll() argument
552 struct nfc_digital_dev *ddev = nfc_get_drvdata(nfc_dev); in digital_stop_poll()
571 static int digital_dev_up(struct nfc_dev *nfc_dev) in digital_dev_up() argument
573 struct nfc_digital_dev *ddev = nfc_get_drvdata(nfc_dev); in digital_dev_up()
580 static int digital_dev_down(struct nfc_dev *nfc_dev) in digital_dev_down() argument
582 struct nfc_digital_dev *ddev = nfc_get_drvdata(nfc_dev); in digital_dev_down()
589 static int digital_dep_link_up(struct nfc_dev *nfc_dev, in digital_dep_link_up() argument
[all …]
Dcore.c45 int nfc_fw_download(struct nfc_dev *dev, const char *firmware_name) in nfc_fw_download()
85 int nfc_fw_download_done(struct nfc_dev *dev, const char *firmware_name, in nfc_fw_download_done()
101 int nfc_dev_up(struct nfc_dev *dev) in nfc_dev_up()
149 int nfc_dev_down(struct nfc_dev *dev) in nfc_dev_down()
184 struct nfc_dev *dev = data; in nfc_rfkill_set_block()
209 int nfc_start_poll(struct nfc_dev *dev, u32 im_protocols, u32 tm_protocols) in nfc_start_poll()
252 int nfc_stop_poll(struct nfc_dev *dev) in nfc_stop_poll()
279 static struct nfc_target *nfc_find_target(struct nfc_dev *dev, u32 target_idx) in nfc_find_target()
291 int nfc_dep_link_up(struct nfc_dev *dev, int target_index, u8 comm_mode) in nfc_dep_link_up()
338 int nfc_dep_link_down(struct nfc_dev *dev) in nfc_dep_link_down()
[all …]
Dnetlink.c113 static struct nfc_dev *__get_device_from_cb(struct netlink_callback *cb) in __get_device_from_cb()
115 struct nfc_dev *dev; in __get_device_from_cb()
142 struct nfc_dev *dev = (struct nfc_dev *) cb->args[1]; in nfc_genl_dump_targets()
175 struct nfc_dev *dev = (struct nfc_dev *) cb->args[1]; in nfc_genl_dump_targets_done()
183 int nfc_genl_targets_found(struct nfc_dev *dev) in nfc_genl_targets_found()
213 int nfc_genl_target_lost(struct nfc_dev *dev, u32 target_idx) in nfc_genl_target_lost()
244 int nfc_genl_tm_activated(struct nfc_dev *dev, u32 protocol) in nfc_genl_tm_activated()
276 int nfc_genl_tm_deactivated(struct nfc_dev *dev) in nfc_genl_tm_deactivated()
306 int nfc_genl_device_added(struct nfc_dev *dev) in nfc_genl_device_added()
339 int nfc_genl_device_removed(struct nfc_dev *dev) in nfc_genl_device_removed()
[all …]
Dllcp.h65 struct nfc_dev *dev;
117 struct nfc_dev *dev;
216 struct nfc_llcp_local *nfc_llcp_find_local(struct nfc_dev *dev);
249 int nfc_llcp_send_symm(struct nfc_dev *dev);
Drawsock.c92 struct nfc_dev *dev; in rawsock_connect()
191 struct nfc_dev *dev = nfc_rawsock(sk)->dev; in rawsock_tx_work()
217 struct nfc_dev *dev = nfc_rawsock(sk)->dev; in rawsock_sendmsg()
369 void nfc_send_to_raw_sock(struct nfc_dev *dev, struct sk_buff *skb, in nfc_send_to_raw_sock()
Dllcp_core.c295 struct nfc_llcp_local *nfc_llcp_find_local(struct nfc_dev *dev) in nfc_llcp_find_local()
594 u8 *nfc_llcp_general_bytes(struct nfc_dev *dev, size_t *general_bytes_len) in nfc_llcp_general_bytes()
611 int nfc_llcp_set_remote_gb(struct nfc_dev *dev, u8 *gb, u8 gb_len) in nfc_llcp_set_remote_gb()
1510 int nfc_llcp_data_received(struct nfc_dev *dev, struct sk_buff *skb) in nfc_llcp_data_received()
1525 void nfc_llcp_mac_is_down(struct nfc_dev *dev) in nfc_llcp_mac_is_down()
1540 void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx, in nfc_llcp_mac_is_up()
1565 int nfc_llcp_register_device(struct nfc_dev *ndev) in nfc_llcp_register_device()
1615 void nfc_llcp_unregister_device(struct nfc_dev *dev) in nfc_llcp_unregister_device()
Dllcp_commands.c343 struct nfc_dev *dev; in nfc_llcp_send_disconnect()
365 int nfc_llcp_send_symm(struct nfc_dev *dev) in nfc_llcp_send_symm()
516 struct nfc_dev *dev; in nfc_llcp_allocate_snl()
603 struct nfc_dev *dev; in nfc_llcp_send_dm()
Ddigital_dep.c327 nfc_dep_link_is_up(ddev->nfc_dev, target->idx, NFC_COMM_ACTIVE, in digital_in_recv_psl_res()
422 rc = nfc_set_remote_general_bytes(ddev->nfc_dev, atr_res->gb, gb_len); in digital_in_recv_atr_res()
433 rc = nfc_dep_link_is_up(ddev->nfc_dev, target->idx, NFC_COMM_ACTIVE, in digital_in_recv_atr_res()
1189 rc = nfc_tm_data_received(ddev->nfc_dev, resp); in digital_tg_recv_dep_req()
1407 gb = nfc_get_local_general_bytes(ddev->nfc_dev, &gb_len); in digital_tg_send_atr_res()
1529 rc = nfc_tm_activated(ddev->nfc_dev, NFC_PROTO_NFC_DEP_MASK, in digital_tg_recv_atr_req()
Dllcp_sock.c75 struct nfc_dev *dev; in llcp_sock_bind()
149 struct nfc_dev *dev; in llcp_raw_sock_bind()
652 struct nfc_dev *dev; in llcp_sock_connect()
/linux-4.1.27/include/net/nfc/
Dnfc.h39 struct nfc_dev;
60 int (*dev_up)(struct nfc_dev *dev);
61 int (*dev_down)(struct nfc_dev *dev);
62 int (*start_poll)(struct nfc_dev *dev,
64 void (*stop_poll)(struct nfc_dev *dev);
65 int (*dep_link_up)(struct nfc_dev *dev, struct nfc_target *target,
67 int (*dep_link_down)(struct nfc_dev *dev);
68 int (*activate_target)(struct nfc_dev *dev, struct nfc_target *target,
70 void (*deactivate_target)(struct nfc_dev *dev,
72 int (*im_transceive)(struct nfc_dev *dev, struct nfc_target *target,
[all …]
Ddigital.h202 struct nfc_dev *nfc_dev; member
260 nfc_set_parent_dev(ndev->nfc_dev, dev); in nfc_digital_set_parent_dev()
Dnci_core.h184 struct nfc_dev *nfc_dev; member
308 nfc_set_parent_dev(ndev->nfc_dev, dev); in nci_set_parent_dev()
Dhci.h112 struct nfc_dev *ndev;
/linux-4.1.27/drivers/nfc/
Dnfcsim.c22 #define DEV_ERR(_dev, fmt, args...) nfc_err(&_dev->nfc_dev->dev, \
25 #define DEV_DBG(_dev, fmt, args...) dev_dbg(&_dev->nfc_dev->dev, \
36 struct nfc_dev *nfc_dev; member
92 nfc_targets_found(dev->nfc_dev, &nfc_tgt, 1); in nfcsim_target_found()
97 static int nfcsim_dev_up(struct nfc_dev *nfc_dev) in nfcsim_dev_up() argument
99 struct nfcsim *dev = nfc_get_drvdata(nfc_dev); in nfcsim_dev_up()
112 static int nfcsim_dev_down(struct nfc_dev *nfc_dev) in nfcsim_dev_down() argument
114 struct nfcsim *dev = nfc_get_drvdata(nfc_dev); in nfcsim_dev_down()
127 static int nfcsim_dep_link_up(struct nfc_dev *nfc_dev, in nfcsim_dep_link_up() argument
132 struct nfcsim *dev = nfc_get_drvdata(nfc_dev); in nfcsim_dep_link_up()
[all …]
Dpn533.c347 struct nfc_dev *nfc_dev; member
1489 nfc_targets_found(dev->nfc_dev, &nfc_tgt, 1); in pn533_target_found()
1661 return nfc_tm_data_received(dev->nfc_dev, skb); in pn533_tm_get_data_complete()
1664 nfc_tm_deactivated(dev->nfc_dev); in pn533_tm_get_data_complete()
1785 rc = nfc_tm_activated(dev->nfc_dev, NFC_PROTO_NFC_DEP_MASK, in pn533_init_target_complete()
1887 rc = nfc_targets_found(dev->nfc_dev, &nfc_target, 1); in pn533_poll_dep_complete()
1896 rc = nfc_set_remote_general_bytes(dev->nfc_dev, in pn533_poll_dep_complete()
1899 rc = nfc_dep_link_is_up(dev->nfc_dev, in pn533_poll_dep_complete()
1900 dev->nfc_dev->targets[0].idx, in pn533_poll_dep_complete()
1912 static int pn533_poll_dep(struct nfc_dev *nfc_dev) in pn533_poll_dep() argument
[all …]
/linux-4.1.27/net/nfc/nci/
Dcore.c447 static int nci_dev_up(struct nfc_dev *nfc_dev) in nci_dev_up() argument
449 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_dev_up()
454 static int nci_dev_down(struct nfc_dev *nfc_dev) in nci_dev_down() argument
456 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_dev_down()
566 static int nci_set_local_general_bytes(struct nfc_dev *nfc_dev) in nci_set_local_general_bytes() argument
568 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_set_local_general_bytes()
572 param.val = nfc_get_local_general_bytes(nfc_dev, &param.len); in nci_set_local_general_bytes()
592 static int nci_set_listen_parameters(struct nfc_dev *nfc_dev) in nci_set_listen_parameters() argument
594 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_set_listen_parameters()
615 static int nci_start_poll(struct nfc_dev *nfc_dev, in nci_start_poll() argument
[all …]
Drsp.c153 conn_info = devm_kzalloc(&ndev->nfc_dev->dev, in nci_rf_disc_rsp_packet()
237 conn_info = devm_kzalloc(&ndev->nfc_dev->dev, in nci_core_conn_create_rsp_packet()
277 devm_kfree(&ndev->nfc_dev->dev, conn_info); in nci_core_conn_close_rsp_packet()
Ddata.c255 if (ndev->nfc_dev->rf_mode == NFC_RF_TARGET) { in nci_add_rx_data_frag()
257 err = nfc_tm_data_received(ndev->nfc_dev, skb); in nci_add_rx_data_frag()
Dntf.c374 nfc_targets_found(ndev->nfc_dev, ndev->targets, in nci_rf_discover_ntf_packet()
471 nfc_targets_found(ndev->nfc_dev, ndev->targets, ndev->n_targets); in nci_target_auto_activated()
667 err = nfc_tm_activated(ndev->nfc_dev, in nci_rf_intf_activated_ntf_packet()
/linux-4.1.27/net/nfc/hci/
Dcore.c568 static int hci_dev_up(struct nfc_dev *nfc_dev) in hci_dev_up() argument
570 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_dev_up()
614 static int hci_dev_down(struct nfc_dev *nfc_dev) in hci_dev_down() argument
616 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_dev_down()
628 static int hci_start_poll(struct nfc_dev *nfc_dev, in hci_start_poll() argument
631 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_start_poll()
641 static void hci_stop_poll(struct nfc_dev *nfc_dev) in hci_stop_poll() argument
643 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_stop_poll()
652 static int hci_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target, in hci_dep_link_up() argument
655 struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev); in hci_dep_link_up()
[all …]
Dhcp.c39 struct nfc_dev *ndev = hdev->ndev; in nfc_hci_hcp_message_tx()
/linux-4.1.27/drivers/nfc/st21nfcb/
Dst21nfcb_se.c314 struct device *dev = &ndev->nfc_dev->dev; in st21nfcb_hci_connectivity_event_received()
349 r = nfc_se_transaction(ndev->nfc_dev, host, transaction); in st21nfcb_hci_connectivity_event_received()
590 nfc_add_se(ndev->nfc_dev, ST21NFCB_UICC_HOST_ID, NFC_SE_UICC); in st21nfcb_nci_discover_se()
598 nfc_add_se(ndev->nfc_dev, ST21NFCB_HCI_HOST_ID_ESE, in st21nfcb_nci_discover_se()
/linux-4.1.27/drivers/nfc/nxp-nci/
Dfirmware.c81 nfc_fw_download_done(info->ndev->nfc_dev, fw_info->name, (u32) -result); in nxp_nci_fw_work_complete()
232 ndev->nfc_dev->dev.parent); in nxp_nci_fw_download()
/linux-4.1.27/drivers/nfc/st21nfca/
Dst21nfca_dep.c128 struct nfc_dev *dev; in st21nfca_tx_work()