• Home
  • Raw
  • Download

Lines Matching refs:ops

63 	if (!dev->ops->fw_download) {  in nfc_fw_download()
69 rc = dev->ops->fw_download(dev, firmware_name); in nfc_fw_download()
129 if (dev->ops->dev_up) in nfc_dev_up()
130 rc = dev->ops->dev_up(dev); in nfc_dev_up()
136 if (dev->ops->discover_se && dev->ops->discover_se(dev)) in nfc_dev_up()
172 if (dev->ops->dev_down) in nfc_dev_down()
173 dev->ops->dev_down(dev); in nfc_dev_down()
236 rc = dev->ops->start_poll(dev, im_protocols, tm_protocols); in nfc_start_poll()
270 dev->ops->stop_poll(dev); in nfc_stop_poll()
300 if (!dev->ops->dep_link_up) in nfc_dep_link_up()
327 rc = dev->ops->dep_link_up(dev, target, comm_mode, gb, gb_len); in nfc_dep_link_up()
344 if (!dev->ops->dep_link_down) in nfc_dep_link_down()
359 rc = dev->ops->dep_link_down(dev); in nfc_dep_link_down()
431 rc = dev->ops->activate_target(dev, target, protocol); in nfc_activate_target()
436 if (dev->ops->check_presence && !dev->shutting_down) in nfc_activate_target()
476 if (dev->ops->check_presence) in nfc_deactivate_target()
479 dev->ops->deactivate_target(dev, dev->active_target); in nfc_deactivate_target()
521 if (dev->ops->check_presence) in nfc_data_exchange()
524 rc = dev->ops->im_transceive(dev, dev->active_target, skb, cb, in nfc_data_exchange()
527 if (!rc && dev->ops->check_presence && !dev->shutting_down) in nfc_data_exchange()
530 } else if (dev->rf_mode == NFC_RF_TARGET && dev->ops->tm_send != NULL) { in nfc_data_exchange()
531 rc = dev->ops->tm_send(dev, skb); in nfc_data_exchange()
581 if (!dev->ops->enable_se || !dev->ops->disable_se) { in nfc_enable_se()
597 rc = dev->ops->enable_se(dev, se_idx); in nfc_enable_se()
626 if (!dev->ops->enable_se || !dev->ops->disable_se) { in nfc_disable_se()
642 rc = dev->ops->disable_se(dev, se_idx); in nfc_disable_se()
967 rc = dev->ops->check_presence(dev, dev->active_target); in nfc_check_pres_work()
1024 struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops, in nfc_allocate_device() argument
1031 if (!ops->start_poll || !ops->stop_poll || !ops->activate_target || in nfc_allocate_device()
1032 !ops->deactivate_target || !ops->im_transceive) in nfc_allocate_device()
1051 dev->ops = ops; in nfc_allocate_device()
1064 if (ops->check_presence) { in nfc_allocate_device()
1138 if (dev->ops->check_presence) { in nfc_unregister_device()