Lines Matching refs:ndev
43 static int nxp_nci_open(struct nci_dev *ndev) in nxp_nci_open() argument
45 struct nxp_nci_info *info = nci_get_drvdata(ndev); in nxp_nci_open()
65 static int nxp_nci_close(struct nci_dev *ndev) in nxp_nci_close() argument
67 struct nxp_nci_info *info = nci_get_drvdata(ndev); in nxp_nci_close()
81 static int nxp_nci_send(struct nci_dev *ndev, struct sk_buff *skb) in nxp_nci_send() argument
83 struct nxp_nci_info *info = nci_get_drvdata(ndev); in nxp_nci_send()
113 struct nci_dev **ndev) in nxp_nci_probe() argument
140 info->ndev = nci_allocate_device(&nxp_nci_ops, NXP_NCI_NFC_PROTOCOLS, in nxp_nci_probe()
142 if (!info->ndev) { in nxp_nci_probe()
147 nci_set_parent_dev(info->ndev, pdev); in nxp_nci_probe()
148 nci_set_drvdata(info->ndev, info); in nxp_nci_probe()
149 r = nci_register_device(info->ndev); in nxp_nci_probe()
153 *ndev = info->ndev; in nxp_nci_probe()
158 nci_free_device(info->ndev); in nxp_nci_probe()
164 void nxp_nci_remove(struct nci_dev *ndev) in nxp_nci_remove() argument
166 struct nxp_nci_info *info = nci_get_drvdata(ndev); in nxp_nci_remove()
177 nci_unregister_device(ndev); in nxp_nci_remove()
178 nci_free_device(ndev); in nxp_nci_remove()