Lines Matching refs:dev
24 static int pn544_close(hw_device_t *dev) { in pn544_close() argument
25 free(dev); in pn544_close()
35 nfc_pn544_device_t *dev = calloc(1, sizeof(nfc_pn544_device_t)); in nfc_open() local
37 dev->common.tag = HARDWARE_DEVICE_TAG; in nfc_open()
38 dev->common.version = 0; in nfc_open()
39 dev->common.module = (struct hw_module_t*) module; in nfc_open()
40 dev->common.close = pn544_close; in nfc_open()
43 dev->num_eeprom_settings = 0; in nfc_open()
44 dev->eeprom_settings = NULL; in nfc_open()
45 dev->linktype = PN544_LINK_TYPE_INVALID; in nfc_open()
46 dev->device_node = NULL; in nfc_open()
47 dev->enable_i2c_workaround = 0; in nfc_open()
48 dev->i2c_device_address = 0; in nfc_open()
50 *device = (hw_device_t*) dev; in nfc_open()