Lines Matching defs:dev
27 static int hal_open(const struct nfc_nci_device *dev,
33 static int hal_write(const struct nfc_nci_device *dev,
39 static int hal_core_initialized(const struct nfc_nci_device *dev,
45 static int hal_pre_discover(const struct nfc_nci_device *dev) {
50 static int hal_close(const struct nfc_nci_device *dev) {
72 static int nfc_close(hw_device_t *dev) {
73 free(dev);
80 nfc_nci_device_t *dev = calloc(1, sizeof(nfc_nci_device_t));
82 dev->common.tag = HARDWARE_DEVICE_TAG;
83 dev->common.version = 0x00010000; // [31:16] major, [15:0] minor
84 dev->common.module = (struct hw_module_t*) module;
85 dev->common.close = nfc_close;
88 dev->open = hal_open;
89 dev->write = hal_write;
90 dev->core_initialized = hal_core_initialized;
91 dev->pre_discover = hal_pre_discover;
92 dev->close = hal_close;
93 dev->control_granted = hal_control_granted;
94 dev->power_cycle = hal_power_cycle;
96 *device = (hw_device_t*) dev;