Home
last modified time | relevance | path

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

/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, const 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);
78 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()
137 struct nfc_dev *dev = (struct nfc_dev *) cb->args[1]; in nfc_genl_dump_targets()
170 struct nfc_dev *dev = (struct nfc_dev *) cb->args[1]; in nfc_genl_dump_targets_done()
178 int nfc_genl_targets_found(struct nfc_dev *dev) in nfc_genl_targets_found()
207 int nfc_genl_target_lost(struct nfc_dev *dev, u32 target_idx) in nfc_genl_target_lost()
237 int nfc_genl_tm_activated(struct nfc_dev *dev, u32 protocol) in nfc_genl_tm_activated()
268 int nfc_genl_tm_deactivated(struct nfc_dev *dev) in nfc_genl_tm_deactivated()
297 static int nfc_genl_setup_device_added(struct nfc_dev *dev, struct sk_buff *msg) in nfc_genl_setup_device_added()
308 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);
236 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()
361 void nfc_send_to_raw_sock(struct nfc_dev *dev, struct sk_buff *skb, in nfc_send_to_raw_sock()
Dllcp_core.c189 struct nfc_dev *dev; in nfc_llcp_local_put()
296 struct nfc_llcp_local *nfc_llcp_find_local(struct nfc_dev *dev) in nfc_llcp_find_local()
312 static struct nfc_llcp_local *nfc_llcp_remove_local(struct nfc_dev *dev) in nfc_llcp_remove_local()
636 u8 *nfc_llcp_general_bytes(struct nfc_dev *dev, size_t *general_bytes_len) in nfc_llcp_general_bytes()
655 int nfc_llcp_set_remote_gb(struct nfc_dev *dev, const u8 *gb, u8 gb_len) in nfc_llcp_set_remote_gb()
1565 int nfc_llcp_data_received(struct nfc_dev *dev, struct sk_buff *skb) in nfc_llcp_data_received()
1582 void nfc_llcp_mac_is_down(struct nfc_dev *dev) in nfc_llcp_mac_is_down()
1599 void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx, in nfc_llcp_mac_is_up()
1626 int nfc_llcp_register_device(struct nfc_dev *ndev) in nfc_llcp_register_device()
1683 void nfc_llcp_unregister_device(struct nfc_dev *dev) in nfc_llcp_unregister_device()
Dllcp_commands.c337 struct nfc_dev *dev; in nfc_llcp_send_disconnect()
359 int nfc_llcp_send_symm(struct nfc_dev *dev) in nfc_llcp_send_symm()
538 struct nfc_dev *dev; in nfc_llcp_allocate_snl()
624 struct nfc_dev *dev; in nfc_llcp_send_dm()
Ddigital_dep.c350 nfc_dep_link_is_up(ddev->nfc_dev, target->idx, NFC_COMM_ACTIVE, in digital_in_recv_psl_res()
451 rc = nfc_set_remote_general_bytes(ddev->nfc_dev, atr_res->gb, gb_len); in digital_in_recv_atr_res()
462 rc = nfc_dep_link_is_up(ddev->nfc_dev, target->idx, NFC_COMM_ACTIVE, in digital_in_recv_atr_res()
1278 rc = nfc_tm_data_received(ddev->nfc_dev, resp); in digital_tg_recv_dep_req()
1501 gb = nfc_get_local_general_bytes(ddev->nfc_dev, &gb_len); in digital_tg_send_atr_res()
1623 rc = nfc_tm_activated(ddev->nfc_dev, NFC_PROTO_NFC_DEP_MASK, in digital_tg_recv_atr_req()
Dllcp_sock.c64 struct nfc_dev *dev; in llcp_sock_bind()
150 struct nfc_dev *dev; in llcp_raw_sock_bind()
659 struct nfc_dev *dev; in llcp_sock_connect()
/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()
Dntf.c368 nfc_targets_found(ndev->nfc_dev, ndev->targets, in nci_rf_discover_ntf_packet()
465 nfc_targets_found(ndev->nfc_dev, ndev->targets, ndev->n_targets); in nci_target_auto_activated()
661 err = nfc_tm_activated(ndev->nfc_dev, in nci_rf_intf_activated_ntf_packet()
/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 …]
Dhcp.c27 struct nfc_dev *ndev = hdev->ndev; in nfc_hci_hcp_message_tx()