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()
114 struct nci_dev **ndev) in nxp_nci_probe() argument
141 info->ndev = nci_allocate_device(&nxp_nci_ops, NXP_NCI_NFC_PROTOCOLS, in nxp_nci_probe()
143 if (!info->ndev) { in nxp_nci_probe()
148 nci_set_parent_dev(info->ndev, pdev); in nxp_nci_probe()
149 nci_set_drvdata(info->ndev, info); in nxp_nci_probe()
150 r = nci_register_device(info->ndev); in nxp_nci_probe()
154 *ndev = info->ndev; in nxp_nci_probe()
159 nci_free_device(info->ndev); in nxp_nci_probe()
165 void nxp_nci_remove(struct nci_dev *ndev) in nxp_nci_remove() argument
167 struct nxp_nci_info *info = nci_get_drvdata(ndev); in nxp_nci_remove()
178 nci_unregister_device(ndev); in nxp_nci_remove()
179 nci_free_device(ndev); in nxp_nci_remove()