Lines Matching refs:nfc_dev
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
782 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_start_poll()
809 rc = nci_set_local_general_bytes(nfc_dev); in nci_start_poll()
817 rc = nci_set_listen_parameters(nfc_dev); in nci_start_poll()
833 static void nci_stop_poll(struct nfc_dev *nfc_dev) in nci_stop_poll() argument
835 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_stop_poll()
847 static int nci_activate_target(struct nfc_dev *nfc_dev, in nci_activate_target() argument
850 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_activate_target()
913 static void nci_deactivate_target(struct nfc_dev *nfc_dev, in nci_deactivate_target() argument
917 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_deactivate_target()
941 static int nci_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target, in nci_dep_link_up() argument
944 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_dep_link_up()
949 rc = nci_activate_target(nfc_dev, target, NFC_PROTO_NFC_DEP); in nci_dep_link_up()
953 rc = nfc_set_remote_general_bytes(nfc_dev, ndev->remote_gb, in nci_dep_link_up()
956 rc = nfc_dep_link_is_up(nfc_dev, target->idx, NFC_COMM_PASSIVE, in nci_dep_link_up()
962 static int nci_dep_link_down(struct nfc_dev *nfc_dev) in nci_dep_link_down() argument
964 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_dep_link_down()
969 if (nfc_dev->rf_mode == NFC_RF_INITIATOR) { in nci_dep_link_down()
970 nci_deactivate_target(nfc_dev, NULL, NCI_DEACTIVATE_TYPE_IDLE_MODE); in nci_dep_link_down()
978 rc = nfc_tm_deactivated(nfc_dev); in nci_dep_link_down()
987 static int nci_transceive(struct nfc_dev *nfc_dev, struct nfc_target *target, in nci_transceive() argument
991 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_transceive()
1020 static int nci_tm_send(struct nfc_dev *nfc_dev, struct sk_buff *skb) in nci_tm_send() argument
1022 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_tm_send()
1032 static int nci_enable_se(struct nfc_dev *nfc_dev, u32 se_idx) in nci_enable_se() argument
1034 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_enable_se()
1042 static int nci_disable_se(struct nfc_dev *nfc_dev, u32 se_idx) in nci_disable_se() argument
1044 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_disable_se()
1052 static int nci_discover_se(struct nfc_dev *nfc_dev) in nci_discover_se() argument
1055 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_discover_se()
1068 static int nci_se_io(struct nfc_dev *nfc_dev, u32 se_idx, in nci_se_io() argument
1072 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_se_io()
1081 static int nci_fw_download(struct nfc_dev *nfc_dev, const char *firmware_name) in nci_fw_download() argument
1083 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); in nci_fw_download()
1147 ndev->nfc_dev = nfc_allocate_device(&nci_nfc_ops, in nci_allocate_device()
1151 if (!ndev->nfc_dev) in nci_allocate_device()
1158 nfc_set_drvdata(ndev->nfc_dev, ndev); in nci_allocate_device()
1163 nfc_free_device(ndev->nfc_dev); in nci_allocate_device()
1177 nfc_free_device(ndev->nfc_dev); in nci_free_device()
1190 struct device *dev = &ndev->nfc_dev->dev; in nci_register_device()
1229 rc = nfc_register_device(ndev->nfc_dev); in nci_register_device()
1269 nfc_unregister_device(ndev->nfc_dev); in nci_unregister_device()
1310 nfc_send_to_raw_sock(ndev->nfc_dev, skb, in nci_send_frame()
1470 nfc_send_to_raw_sock(ndev->nfc_dev, skb, in nci_rx_work()