Lines Matching refs:nfc_dev
942 nfc_targets_found(dev->nfc_dev, &nfc_tgt, 1);
1108 return nfc_tm_data_received(dev->nfc_dev, skb);
1111 nfc_tm_deactivated(dev->nfc_dev);
1220 rc = nfc_tm_activated(dev->nfc_dev, NFC_PROTO_NFC_DEP_MASK,
1316 rc = nfc_targets_found(dev->nfc_dev, &nfc_target, 1);
1325 rc = nfc_set_remote_general_bytes(dev->nfc_dev,
1328 rc = nfc_dep_link_is_up(dev->nfc_dev,
1329 dev->nfc_dev->targets[0].idx,
1341 static int pn533_poll_dep(struct nfc_dev *nfc_dev)
1343 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
1350 dev->gb = nfc_get_local_general_bytes(nfc_dev, &dev->gb_len);
1478 nfc_targets_found(dev->nfc_dev, &nfc_tgt, 1);
1577 return pn533_poll_dep(dev->nfc_dev);
1628 static int pn533_start_poll(struct nfc_dev *nfc_dev,
1631 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
1654 dev->gb = nfc_get_local_general_bytes(nfc_dev, &dev->gb_len);
1743 static void pn533_stop_poll(struct nfc_dev *nfc_dev)
1745 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
1790 rc = nfc_set_remote_general_bytes(dev->nfc_dev, rsp->gt, gt_len);
1796 static int pn533_activate_target(struct nfc_dev *nfc_dev,
1799 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
1866 static void pn533_deactivate_target(struct nfc_dev *nfc_dev,
1869 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
1936 rc = nfc_targets_found(dev->nfc_dev, &nfc_target, 1);
1947 rc = nfc_set_remote_general_bytes(dev->nfc_dev,
1950 rc = nfc_dep_link_is_up(dev->nfc_dev,
1951 dev->nfc_dev->targets[0].idx,
1959 static int pn533_rf_field(struct nfc_dev *nfc_dev, u8 rf);
1960 static int pn533_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target,
1963 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2029 pn533_rf_field(dev->nfc_dev, 0);
2042 static int pn533_dep_link_down(struct nfc_dev *nfc_dev)
2044 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2253 static int pn533_transceive(struct nfc_dev *nfc_dev,
2257 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2340 nfc_tm_deactivated(dev->nfc_dev);
2352 static int pn533_tm_send(struct nfc_dev *nfc_dev, struct sk_buff *skb)
2354 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2556 static int pn533_rf_field(struct nfc_dev *nfc_dev, u8 rf)
2558 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2574 static int pn532_sam_configuration(struct nfc_dev *nfc_dev)
2576 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2594 static int pn533_dev_up(struct nfc_dev *nfc_dev)
2596 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2607 rc = pn532_sam_configuration(nfc_dev);
2613 return pn533_rf_field(nfc_dev, 1);
2616 static int pn533_dev_down(struct nfc_dev *nfc_dev)
2618 struct pn533 *dev = nfc_get_drvdata(nfc_dev);
2621 ret = pn533_rf_field(nfc_dev, 0);
2814 priv->nfc_dev = nfc_allocate_device(&pn533_nfc_ops, protocols,
2818 if (!priv->nfc_dev)
2821 nfc_set_parent_dev(priv->nfc_dev, parent);
2822 nfc_set_drvdata(priv->nfc_dev, priv);
2836 rc = nfc_register_device(priv->nfc_dev);
2838 nfc_free_device(priv->nfc_dev);
2846 nfc_unregister_device(priv->nfc_dev);
2847 nfc_free_device(priv->nfc_dev);