Lines Matching refs:dev
40 static int consumerir_transmit(struct consumerir_device *dev __unused, in consumerir_transmit()
56 static int consumerir_get_num_carrier_freqs(struct consumerir_device *dev __unused) in consumerir_get_num_carrier_freqs()
61 static int consumerir_get_carrier_freqs(struct consumerir_device *dev __unused, in consumerir_get_carrier_freqs()
71 static int consumerir_close(hw_device_t *dev) in consumerir_close() argument
73 free(dev); in consumerir_close()
91 consumerir_device_t *dev = malloc(sizeof(consumerir_device_t)); in consumerir_open() local
92 memset(dev, 0, sizeof(consumerir_device_t)); in consumerir_open()
94 dev->common.tag = HARDWARE_DEVICE_TAG; in consumerir_open()
95 dev->common.version = 0; in consumerir_open()
96 dev->common.module = (struct hw_module_t*) module; in consumerir_open()
97 dev->common.close = consumerir_close; in consumerir_open()
99 dev->transmit = consumerir_transmit; in consumerir_open()
100 dev->get_num_carrier_freqs = consumerir_get_num_carrier_freqs; in consumerir_open()
101 dev->get_carrier_freqs = consumerir_get_carrier_freqs; in consumerir_open()
103 *device = (hw_device_t*) dev; in consumerir_open()