Lines Matching refs:ndev
94 struct nci_dev *ndev; member
111 static int nfcwilink_send(struct nci_dev *ndev, struct sk_buff *skb);
164 rc = nfcwilink_send(drv->ndev, skb); in nfcwilink_get_bts_file_name()
228 rc = nfcwilink_send(drv->ndev, skb); in nfcwilink_send_bts_cmd()
360 rc = nci_recv_frame(drv->ndev, skb); in nfcwilink_receive()
382 static int nfcwilink_open(struct nci_dev *ndev) in nfcwilink_open() argument
384 struct nfcwilink *drv = nci_get_drvdata(ndev); in nfcwilink_open()
444 static int nfcwilink_close(struct nci_dev *ndev) in nfcwilink_close() argument
446 struct nfcwilink *drv = nci_get_drvdata(ndev); in nfcwilink_close()
461 static int nfcwilink_send(struct nci_dev *ndev, struct sk_buff *skb) in nfcwilink_send() argument
463 struct nfcwilink *drv = nci_get_drvdata(ndev); in nfcwilink_send()
518 drv->ndev = nci_allocate_device(&nfcwilink_ops, in nfcwilink_probe()
522 if (!drv->ndev) { in nfcwilink_probe()
528 nci_set_parent_dev(drv->ndev, &pdev->dev); in nfcwilink_probe()
529 nci_set_drvdata(drv->ndev, drv); in nfcwilink_probe()
531 rc = nci_register_device(drv->ndev); in nfcwilink_probe()
542 nci_free_device(drv->ndev); in nfcwilink_probe()
551 struct nci_dev *ndev; in nfcwilink_remove() local
556 ndev = drv->ndev; in nfcwilink_remove()
558 nci_unregister_device(ndev); in nfcwilink_remove()
559 nci_free_device(ndev); in nfcwilink_remove()