Lines Matching refs:dev
57 static int tv_input_initialize(struct tv_input_device* dev, in tv_input_initialize() argument
60 if (dev == NULL || callback == NULL) { in tv_input_initialize()
63 tv_input_private_t* priv = (tv_input_private_t*)dev; in tv_input_initialize()
103 static int tv_input_device_close(struct hw_device_t *dev) in tv_input_device_close() argument
105 tv_input_private_t* priv = (tv_input_private_t*)dev; in tv_input_device_close()
119 tv_input_private_t* dev = (tv_input_private_t*)malloc(sizeof(*dev)); in tv_input_device_open() local
122 memset(dev, 0, sizeof(*dev)); in tv_input_device_open()
125 dev->device.common.tag = HARDWARE_DEVICE_TAG; in tv_input_device_open()
126 dev->device.common.version = TV_INPUT_DEVICE_API_VERSION_0_1; in tv_input_device_open()
127 dev->device.common.module = const_cast<hw_module_t*>(module); in tv_input_device_open()
128 dev->device.common.close = tv_input_device_close; in tv_input_device_open()
130 dev->device.initialize = tv_input_initialize; in tv_input_device_open()
131 dev->device.get_stream_configurations = in tv_input_device_open()
133 dev->device.open_stream = tv_input_open_stream; in tv_input_device_open()
134 dev->device.close_stream = tv_input_close_stream; in tv_input_device_open()
135 dev->device.request_capture = tv_input_request_capture; in tv_input_device_open()
136 dev->device.cancel_capture = tv_input_cancel_capture; in tv_input_device_open()
138 *device = &dev->device.common; in tv_input_device_open()