Lines Matching refs:nfc_dev

947 	nfc_targets_found(dev->nfc_dev, &nfc_tgt, 1);  in pn533_target_found()
1115 return nfc_tm_data_received(dev->nfc_dev, skb); in pn533_tm_get_data_complete()
1118 nfc_tm_deactivated(dev->nfc_dev); in pn533_tm_get_data_complete()
1235 rc = nfc_tm_activated(dev->nfc_dev, NFC_PROTO_NFC_DEP_MASK, in pn533_init_target_complete()
1335 rc = nfc_targets_found(dev->nfc_dev, &nfc_target, 1); in pn533_poll_dep_complete()
1344 rc = nfc_set_remote_general_bytes(dev->nfc_dev, in pn533_poll_dep_complete()
1347 rc = nfc_dep_link_is_up(dev->nfc_dev, in pn533_poll_dep_complete()
1348 dev->nfc_dev->targets[0].idx, in pn533_poll_dep_complete()
1360 static int pn533_poll_dep(struct nfc_dev *nfc_dev) in pn533_poll_dep() argument
1362 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_poll_dep()
1371 dev->gb = nfc_get_local_general_bytes(nfc_dev, &dev->gb_len); in pn533_poll_dep()
1499 nfc_targets_found(dev->nfc_dev, &nfc_tgt, 1); in pn533_autopoll_complete()
1600 return pn533_poll_dep(dev->nfc_dev); in pn533_send_poll_frame()
1651 static int pn533_start_poll(struct nfc_dev *nfc_dev, in pn533_start_poll() argument
1654 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_start_poll()
1677 dev->gb = nfc_get_local_general_bytes(nfc_dev, &dev->gb_len); in pn533_start_poll()
1766 static void pn533_stop_poll(struct nfc_dev *nfc_dev) in pn533_stop_poll() argument
1768 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_stop_poll()
1815 rc = nfc_set_remote_general_bytes(dev->nfc_dev, rsp->gt, gt_len); in pn533_activate_target_nfcdep()
1821 static int pn533_activate_target(struct nfc_dev *nfc_dev, in pn533_activate_target() argument
1824 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_activate_target()
1893 static void pn533_deactivate_target(struct nfc_dev *nfc_dev, in pn533_deactivate_target() argument
1896 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_deactivate_target()
1963 rc = nfc_targets_found(dev->nfc_dev, &nfc_target, 1); in pn533_in_dep_link_up_complete()
1974 rc = nfc_set_remote_general_bytes(dev->nfc_dev, in pn533_in_dep_link_up_complete()
1977 rc = nfc_dep_link_is_up(dev->nfc_dev, in pn533_in_dep_link_up_complete()
1978 dev->nfc_dev->targets[0].idx, in pn533_in_dep_link_up_complete()
1986 static int pn533_rf_field(struct nfc_dev *nfc_dev, u8 rf);
1987 static int pn533_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target, in pn533_dep_link_up() argument
1990 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_dep_link_up()
2058 pn533_rf_field(dev->nfc_dev, 0); in pn533_dep_link_up()
2071 static int pn533_dep_link_down(struct nfc_dev *nfc_dev) in pn533_dep_link_down() argument
2073 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_dep_link_down()
2288 static int pn533_transceive(struct nfc_dev *nfc_dev, in pn533_transceive() argument
2292 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_transceive()
2379 nfc_tm_deactivated(dev->nfc_dev); in pn533_tm_send_complete()
2391 static int pn533_tm_send(struct nfc_dev *nfc_dev, struct sk_buff *skb) in pn533_tm_send() argument
2393 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_tm_send()
2605 static int pn533_rf_field(struct nfc_dev *nfc_dev, u8 rf) in pn533_rf_field() argument
2607 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_rf_field()
2623 static int pn532_sam_configuration(struct nfc_dev *nfc_dev) in pn532_sam_configuration() argument
2625 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn532_sam_configuration()
2643 static int pn533_dev_up(struct nfc_dev *nfc_dev) in pn533_dev_up() argument
2645 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_dev_up()
2656 rc = pn532_sam_configuration(nfc_dev); in pn533_dev_up()
2662 return pn533_rf_field(nfc_dev, 1); in pn533_dev_up()
2665 static int pn533_dev_down(struct nfc_dev *nfc_dev) in pn533_dev_down() argument
2667 struct pn533 *dev = nfc_get_drvdata(nfc_dev); in pn533_dev_down()
2670 ret = pn533_rf_field(nfc_dev, 0); in pn533_dev_down()
2863 priv->nfc_dev = nfc_allocate_device(&pn533_nfc_ops, protocols, in pn532_i2c_nfc_alloc()
2867 if (!priv->nfc_dev) in pn532_i2c_nfc_alloc()
2870 nfc_set_parent_dev(priv->nfc_dev, parent); in pn532_i2c_nfc_alloc()
2871 nfc_set_drvdata(priv->nfc_dev, priv); in pn532_i2c_nfc_alloc()
2885 rc = nfc_register_device(priv->nfc_dev); in pn53x_register_nfc()
2887 nfc_free_device(priv->nfc_dev); in pn53x_register_nfc()
2895 nfc_unregister_device(priv->nfc_dev); in pn53x_unregister_nfc()
2896 nfc_free_device(priv->nfc_dev); in pn53x_unregister_nfc()