Lines Matching defs:ddev
428 struct nfc_digital_dev *ddev;
628 trf->cb(trf->ddev, trf->cb_arg, trf->rx_skb);
1123 static int trf7970a_switch_rf(struct nfc_digital_dev *ddev, bool on)
1125 struct trf7970a *trf = nfc_digital_get_drvdata(ddev);
1338 static int trf7970a_in_configure_hw(struct nfc_digital_dev *ddev, int type,
1341 struct trf7970a *trf = nfc_digital_get_drvdata(ddev);
1459 static int trf7970a_send_cmd(struct nfc_digital_dev *ddev,
1463 struct trf7970a *trf = nfc_digital_get_drvdata(ddev);
1516 trf->ddev = ddev;
1681 static int trf7970a_tg_configure_hw(struct nfc_digital_dev *ddev, int type,
1684 struct trf7970a *trf = nfc_digital_get_drvdata(ddev);
1717 static int _trf7970a_tg_listen(struct nfc_digital_dev *ddev, u16 timeout,
1721 struct trf7970a *trf = nfc_digital_get_drvdata(ddev);
1772 trf->ddev = ddev;
1792 static int trf7970a_tg_listen(struct nfc_digital_dev *ddev, u16 timeout,
1795 const struct trf7970a *trf = nfc_digital_get_drvdata(ddev);
1800 return _trf7970a_tg_listen(ddev, timeout, cb, arg, false);
1803 static int trf7970a_tg_listen_md(struct nfc_digital_dev *ddev,
1807 const struct trf7970a *trf = nfc_digital_get_drvdata(ddev);
1813 ret = trf7970a_tg_configure_hw(ddev, NFC_DIGITAL_CONFIG_RF_TECH,
1818 ret = trf7970a_tg_configure_hw(ddev, NFC_DIGITAL_CONFIG_FRAMING,
1823 return _trf7970a_tg_listen(ddev, timeout, cb, arg, true);
1826 static int trf7970a_tg_get_rf_tech(struct nfc_digital_dev *ddev, u8 *rf_tech)
1828 const struct trf7970a *trf = nfc_digital_get_drvdata(ddev);
1838 static void trf7970a_abort_cmd(struct nfc_digital_dev *ddev)
1840 struct trf7970a *trf = nfc_digital_get_drvdata(ddev);
2103 trf->ddev = nfc_digital_allocate_device(&trf7970a_nfc_ops,
2108 if (!trf->ddev) {
2114 nfc_digital_set_parent_dev(trf->ddev, trf->dev);
2115 nfc_digital_set_drvdata(trf->ddev, trf);
2127 ret = nfc_digital_register_device(trf->ddev);
2139 nfc_digital_free_device(trf->ddev);
2157 nfc_digital_unregister_device(trf->ddev);
2158 nfc_digital_free_device(trf->ddev);