Lines Matching refs:nfc_digital_dev
16 #define NFCSIM_ERR(d, fmt, args...) nfc_err(&d->nfc_digital_dev->nfc_dev->dev, \
19 #define NFCSIM_DBG(d, fmt, args...) dev_dbg(&d->nfc_digital_dev->nfc_dev->dev, \
32 struct nfc_digital_dev *nfc_digital_dev; member
199 dev->cb(dev->nfc_digital_dev, dev->arg, skb); in nfcsim_recv_wq()
202 static int nfcsim_send(struct nfc_digital_dev *ddev, struct sk_buff *skb, in nfcsim_send()
241 static void nfcsim_abort_cmd(struct nfc_digital_dev *ddev) in nfcsim_abort_cmd()
248 static int nfcsim_switch_rf(struct nfc_digital_dev *ddev, bool on) in nfcsim_switch_rf()
257 static int nfcsim_in_configure_hw(struct nfc_digital_dev *ddev, in nfcsim_in_configure_hw()
280 static int nfcsim_in_send_cmd(struct nfc_digital_dev *ddev, in nfcsim_in_send_cmd()
287 static int nfcsim_tg_configure_hw(struct nfc_digital_dev *ddev, in nfcsim_tg_configure_hw()
310 static int nfcsim_tg_send_cmd(struct nfc_digital_dev *ddev, in nfcsim_tg_send_cmd()
317 static int nfcsim_tg_listen(struct nfc_digital_dev *ddev, u16 timeout, in nfcsim_tg_listen()
363 idx = dev->nfc_digital_dev->nfc_dev->idx; in nfcsim_debugfs_init_dev()
393 dev->nfc_digital_dev = in nfcsim_device_new()
398 if (!dev->nfc_digital_dev) { in nfcsim_device_new()
403 nfc_digital_set_drvdata(dev->nfc_digital_dev, dev); in nfcsim_device_new()
408 rc = nfc_digital_register_device(dev->nfc_digital_dev); in nfcsim_device_new()
411 nfc_digital_free_device(dev->nfc_digital_dev); in nfcsim_device_new()
424 nfc_digital_unregister_device(dev->nfc_digital_dev); in nfcsim_device_free()
433 nfc_digital_free_device(dev->nfc_digital_dev); in nfcsim_device_free()