Lines Matching refs:nfc_dev
950 nfc_targets_found(dev->nfc_dev, &nfc_tgt, 1);
1118 return nfc_tm_data_received(dev->nfc_dev, skb);
1121 nfc_tm_deactivated(dev->nfc_dev);
1238 rc = nfc_tm_activated(dev->nfc_dev, NFC_PROTO_NFC_DEP_MASK,
1340 rc = nfc_targets_found(dev->nfc_dev, &nfc_target, 1);
1349 rc = nfc_set_remote_general_bytes(dev->nfc_dev,
1352 rc = nfc_dep_link_is_up(dev->nfc_dev,
1353 dev->nfc_dev->targets[0].idx,
1365 static int pn533_poll_dep(struct nfc_dev *nfc_dev)
1367 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
1376 dev->gb = nfc_get_local_general_bytes(nfc_dev, &dev->gb_len);
1504 nfc_targets_found(dev->nfc_dev, &nfc_tgt, 1);
1605 return pn533_poll_dep(dev->nfc_dev);
1656 static int pn533_start_poll(struct nfc_dev *nfc_dev,
1659 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
1682 dev->gb = nfc_get_local_general_bytes(nfc_dev, &dev->gb_len);
1771 static void pn533_stop_poll(struct nfc_dev *nfc_dev)
1773 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
1820 rc = nfc_set_remote_general_bytes(dev->nfc_dev, rsp->gt, gt_len);
1826 static int pn533_activate_target(struct nfc_dev *nfc_dev,
1829 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
1898 static void pn533_deactivate_target(struct nfc_dev *nfc_dev,
1901 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
1970 rc = nfc_targets_found(dev->nfc_dev, &nfc_target, 1);
1981 rc = nfc_set_remote_general_bytes(dev->nfc_dev,
1984 rc = nfc_dep_link_is_up(dev->nfc_dev,
1985 dev->nfc_dev->targets[0].idx,
1993 static int pn533_rf_field(struct nfc_dev *nfc_dev, u8 rf);
1994 static int pn533_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target,
1997 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2065 pn533_rf_field(dev->nfc_dev, 0);
2078 static int pn533_dep_link_down(struct nfc_dev *nfc_dev)
2080 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2295 static int pn533_transceive(struct nfc_dev *nfc_dev,
2299 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2386 nfc_tm_deactivated(dev->nfc_dev);
2398 static int pn533_tm_send(struct nfc_dev *nfc_dev, struct sk_buff *skb)
2400 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2612 static int pn533_rf_field(struct nfc_dev *nfc_dev, u8 rf)
2614 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2630 static int pn532_sam_configuration(struct nfc_dev *nfc_dev)
2632 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2650 static int pn533_dev_up(struct nfc_dev *nfc_dev)
2652 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2663 rc = pn532_sam_configuration(nfc_dev);
2669 return pn533_rf_field(nfc_dev, 1);
2672 static int pn533_dev_down(struct nfc_dev *nfc_dev)
2674 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2677 ret = pn533_rf_field(nfc_dev, 0);
2871 priv->nfc_dev = nfc_allocate_device(&pn533_nfc_ops, protocols,
2875 if (!priv->nfc_dev)
2878 nfc_set_parent_dev(priv->nfc_dev, parent);
2879 nfc_set_drvdata(priv->nfc_dev, priv);
2893 rc = nfc_register_device(priv->nfc_dev);
2895 nfc_free_device(priv->nfc_dev);
2903 nfc_unregister_device(priv->nfc_dev);
2904 nfc_free_device(priv->nfc_dev);