Home
last modified time | relevance | path

Searched defs:dev (Results 1 – 25 of 58) sorted by relevance

123

/device/google/dragon/recovery/updater/
Dflash_file.cpp40 static void *file_blob_open(struct file_data *dev, const Value *param) in file_blob_open()
52 struct file_data *dev = static_cast<struct file_data*>(calloc(1, sizeof(struct file_data))); in file_open() local
96 struct file_data *dev = static_cast<struct file_data*>(hnd); in file_close() local
107 struct file_data *dev = static_cast<struct file_data*>(hnd); in file_read() local
122 struct file_data *dev = static_cast<struct file_data*>(hnd); in file_write() local
137 struct file_data *dev = static_cast<struct file_data*>(hnd); in file_erase() local
152 struct file_data *dev = static_cast<struct file_data*>(hnd); in file_get_size() local
159 struct file_data *dev = static_cast<struct file_data*>(hnd); in file_get_write_size() local
166 struct file_data *dev = static_cast<struct file_data*>(hnd); in file_get_erase_size() local
173 struct file_data *dev = static_cast<struct file_data*>(hnd); in file_get_fmap_offset() local
Dflash_device.c51 struct flash_device *dev; in flash_open() local
87 void flash_close(struct flash_device *dev) in flash_close()
97 int flash_read(struct flash_device *dev, off_t off, void *buff, size_t len) in flash_read()
102 int flash_write(struct flash_device *dev, off_t off, void *buff, size_t len) in flash_write()
112 int flash_erase(struct flash_device *dev, off_t off, size_t len) in flash_erase()
123 size_t flash_get_size(struct flash_device *dev) in flash_get_size()
128 struct fmap *flash_get_fmap(struct flash_device *dev) in flash_get_fmap()
142 uint8_t *flash_get_gbb(struct flash_device *dev, size_t *size) in flash_get_gbb()
155 int flash_cmd(struct flash_device *dev, int cmd, int ver, in flash_cmd()
Dflash_mtd.c45 struct mtd_data *dev = calloc(1, sizeof(struct mtd_data)); in mtd_open() local
81 struct mtd_data *dev = hnd; in mtd_close() local
89 struct mtd_data *dev = hnd; in mtd_read() local
113 struct mtd_data *dev = hnd; in mtd_write() local
136 struct mtd_data *dev = hnd; in mtd_erase() local
164 struct mtd_data *dev = hnd; in mtd_get_size() local
171 struct mtd_data *dev = hnd; in mtd_get_write_size() local
178 struct mtd_data *dev = hnd; in mtd_get_erase_size() local
Dflash_ec.c93 struct ec_data *dev = calloc(1, sizeof(struct ec_data)); in ec_open() local
143 struct ec_data *dev = hnd; in ec_close() local
151 struct ec_data *dev = hnd; in ec_read() local
176 struct ec_data *dev = hnd; in ec_write() local
208 struct ec_data *dev = hnd; in ec_erase() local
226 struct ec_data *dev = hnd; in ec_get_size() local
233 struct ec_data *dev = hnd; in ec_get_write_size() local
240 struct ec_data *dev = hnd; in ec_get_erase_size() local
247 struct ec_data *dev = hnd; in ec_get_fmap_offset() local
/device/generic/goldfish/lights/
Dlights_qemu.c65 set_light_backlight( struct light_device_t* dev, struct light_state_t const* state ) in set_light_backlight()
101 set_light_buttons( struct light_device_t* dev, struct light_state_t const* state ) in set_light_buttons()
110 set_light_battery( struct light_device_t* dev, struct light_state_t const* state ) in set_light_battery()
119 set_light_keyboard( struct light_device_t* dev, struct light_state_t const* state ) in set_light_keyboard()
128 set_light_notifications( struct light_device_t* dev, struct light_state_t const* state ) in set_light_notifications()
137 set_light_attention( struct light_device_t* dev, struct light_state_t const* state ) in set_light_attention()
147 close_lights( struct light_device_t *dev ) in close_lights()
182 struct light_device_t *dev = malloc( sizeof(struct light_device_t) ); in open_lights() local
/device/google/contexthub/firmware/os/core/
Dspi.c35 struct SpiDevice dev; member
64 struct SpiDevice *dev = &state->dev; in spiMasterStart() local
79 void spi_masterStartAsync_done(struct SpiDevice *dev, int err) in spi_masterStartAsync_done()
95 struct SpiDevice *dev = &state->dev; in spiMasterNext() local
113 void spiMasterRxTxDone(struct SpiDevice *dev, int err) in spiMasterRxTxDone()
134 struct SpiDevice *dev = &state->dev; in spiMasterStop() local
148 void spiMasterStopAsyncDone(struct SpiDevice *dev, int err) in spiMasterStopAsyncDone()
167 struct SpiDevice *dev = &state->dev; in spiSlaveStart() local
181 void spiSlaveStartAsyncDone(struct SpiDevice *dev, int err) in spiSlaveStartAsyncDone()
191 void spiSlaveRxTxDone(struct SpiDevice *dev, int err) in spiSlaveRxTxDone()
[all …]
/device/generic/goldfish/camera/
DEmulatedCamera.cpp945 int EmulatedCamera::set_preview_window(struct camera_device* dev, in set_preview_window()
957 struct camera_device* dev, in set_callbacks()
972 void EmulatedCamera::enable_msg_type(struct camera_device* dev, int32_t msg_type) in enable_msg_type()
982 void EmulatedCamera::disable_msg_type(struct camera_device* dev, int32_t msg_type) in disable_msg_type()
992 int EmulatedCamera::msg_type_enabled(struct camera_device* dev, int32_t msg_type) in msg_type_enabled()
1002 int EmulatedCamera::start_preview(struct camera_device* dev) in start_preview()
1012 void EmulatedCamera::stop_preview(struct camera_device* dev) in stop_preview()
1022 int EmulatedCamera::preview_enabled(struct camera_device* dev) in preview_enabled()
1032 int EmulatedCamera::store_meta_data_in_buffers(struct camera_device* dev, in store_meta_data_in_buffers()
1043 int EmulatedCamera::start_recording(struct camera_device* dev) in start_recording()
[all …]
/device/generic/goldfish/audio/
Daudio_hw_legacy.c54 struct generic_audio_device *dev; member
61 struct generic_audio_device *dev; member
370 static int adev_open_output_stream(struct audio_hw_device *dev, in adev_open_output_stream()
449 static void adev_close_output_stream(struct audio_hw_device *dev, in adev_close_output_stream()
462 static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs) in adev_set_parameters()
467 static char * adev_get_parameters(const struct audio_hw_device *dev, in adev_get_parameters()
473 static int adev_init_check(const struct audio_hw_device *dev) in adev_init_check()
483 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) in adev_set_voice_volume()
489 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) in adev_set_master_volume()
494 static int adev_get_master_volume(struct audio_hw_device *dev, float *volume) in adev_get_master_volume()
[all …]
Daudio_hw.c177 struct generic_audio_device *dev; // Constant after init member
202 struct generic_audio_device *dev; // Constant after init member
1124 static int adev_open_output_stream(struct audio_hw_device *dev, in adev_open_output_stream()
1203 static void adev_close_output_stream(struct audio_hw_device *dev, in adev_close_output_stream()
1220 static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs) in adev_set_parameters()
1225 static char * adev_get_parameters(const struct audio_hw_device *dev, in adev_get_parameters()
1231 static int adev_init_check(const struct audio_hw_device *dev) in adev_init_check()
1236 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) in adev_set_voice_volume()
1242 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) in adev_set_master_volume()
1247 static int adev_get_master_volume(struct audio_hw_device *dev, float *volume) in adev_get_master_volume()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/io/
Dio_storage.c68 const io_dev_info_t *dev = (io_dev_info_t *)dev_handle; in is_valid_dev() local
207 io_dev_info_t *dev = (io_dev_info_t *)dev_handle; in io_dev_init() local
228 io_dev_info_t *dev = (io_dev_info_t *)dev_handle; in io_dev_close() local
251 io_dev_info_t *dev = (io_dev_info_t *)dev_handle; in io_open() local
278 io_dev_info_t *dev = entity->dev_handle; in io_seek() local
297 io_dev_info_t *dev = entity->dev_handle; in io_size() local
319 io_dev_info_t *dev = entity->dev_handle; in io_read() local
341 io_dev_info_t *dev = entity->dev_handle; in io_write() local
361 io_dev_info_t *dev = entity->dev_handle; in io_close() local
/device/google/marlin/liblight/
Dlights.c177 set_light_backlight(struct light_device_t* dev, in set_light_backlight()
210 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked()
261 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked()
272 set_light_battery(struct light_device_t* dev, in set_light_battery()
284 set_light_notifications(struct light_device_t* dev, in set_light_notifications()
295 set_light_attention(struct light_device_t* dev, in set_light_attention()
311 close_lights(struct light_device_t *dev) in close_lights()
348 struct light_device_t *dev = malloc(sizeof(struct light_device_t)); in open_lights() local
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/
Dmorse.py119 def play(line, dev, wave): argument
129 def sine(dev, length, wave): argument
133 def pause(dev, length): argument
/device/linaro/hikey/gralloc/
Dframebuffer_device.cpp51 static int fb_set_swap_interval(struct framebuffer_device_t *dev, int interval) in fb_set_swap_interval()
67 static int fb_post(struct framebuffer_device_t *dev, buffer_handle_t buffer) in fb_post()
418 framebuffer_device_t *dev = reinterpret_cast<framebuffer_device_t *>(device); in fb_close() local
431 int compositionComplete(struct framebuffer_device_t *dev) in compositionComplete()
473 framebuffer_device_t *dev = (framebuffer_device_t *)malloc(sizeof(framebuffer_device_t)); in framebuffer_device_open() local
Dalloc_device.cpp99 static int gralloc_alloc_buffer(alloc_device_t *dev, size_t size, int usage, buffer_handle_t *pHand… in gralloc_alloc_buffer()
253 static int gralloc_alloc_framebuffer_locked(alloc_device_t *dev, size_t size, int usage, buffer_han… in gralloc_alloc_framebuffer_locked()
349 static int gralloc_alloc_framebuffer(alloc_device_t *dev, size_t size, int usage, buffer_handle_t *… in gralloc_alloc_framebuffer()
358 static int alloc_device_alloc(alloc_device_t *dev, int w, int h, int format, int usage, buffer_hand… in alloc_device_alloc()
506 static int alloc_device_free(alloc_device_t *dev, buffer_handle_t handle) in alloc_device_free()
577 alloc_device_t *dev = reinterpret_cast<alloc_device_t *>(device); in alloc_device_close() local
603 alloc_device_t *dev; in alloc_device_open() local
/device/asus/fugu/libaudio/
Daudio_hal_thunks.cpp376 static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs) in adev_set_parameters()
385 static char * adev_get_parameters(const struct audio_hw_device *dev, in adev_get_parameters()
394 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) in adev_set_voice_volume()
401 static int adev_set_mode(struct audio_hw_device *dev, audio_mode_t mode) in adev_set_mode()
408 static int adev_set_mic_mute(struct audio_hw_device *dev, bool state) in adev_set_mic_mute()
416 static int adev_get_mic_mute(const struct audio_hw_device *dev, bool *state) in adev_get_mic_mute()
424 static size_t adev_get_input_buffer_size(const struct audio_hw_device *dev, in adev_get_input_buffer_size()
433 static int adev_open_input_stream(struct audio_hw_device *dev, in adev_open_input_stream()
496 static void adev_close_input_stream(struct audio_hw_device *dev, in adev_close_input_stream()
508 static int adev_open_output_stream(struct audio_hw_device *dev, in adev_open_output_stream()
[all …]
/device/linaro/hikey/audio/
Daudio_hw.c82 struct alsa_audio_device *dev; member
422 static int adev_open_output_stream(struct audio_hw_device *dev, in adev_open_output_stream()
498 static void adev_close_output_stream(struct audio_hw_device *dev, in adev_close_output_stream()
505 static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs) in adev_set_parameters()
511 static char * adev_get_parameters(const struct audio_hw_device *dev, in adev_get_parameters()
518 static int adev_init_check(const struct audio_hw_device *dev) in adev_init_check()
524 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) in adev_set_voice_volume()
530 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) in adev_set_master_volume()
536 static int adev_get_master_volume(struct audio_hw_device *dev, float *volume) in adev_get_master_volume()
542 static int adev_set_master_mute(struct audio_hw_device *dev, bool muted) in adev_set_master_mute()
[all …]
/device/google/contexthub/sensorhal/
Dsensors.cpp172 int SensorContext::CloseWrapper(struct hw_device_t *dev) { in CloseWrapper()
178 struct sensors_poll_device_t *dev, int handle, int enabled) { in ActivateWrapper()
184 struct sensors_poll_device_t *dev, int handle, int64_t delayNs) { in SetDelayWrapper()
190 struct sensors_poll_device_t *dev, sensors_event_t *data, int count) { in PollWrapper()
196 struct sensors_poll_device_1 *dev, in BatchWrapper()
207 int SensorContext::FlushWrapper(struct sensors_poll_device_1 *dev, int handle) { in FlushWrapper()
212 int SensorContext::RegisterDirectChannelWrapper(struct sensors_poll_device_1 *dev, in RegisterDirectChannelWrapper()
219 int SensorContext::ConfigDirectReportWrapper(struct sensors_poll_device_1 *dev, in ConfigDirectReportWrapper()
247 int SensorContext::InjectSensorDataWrapper(struct sensors_poll_device_1 *dev, in InjectSensorDataWrapper()
402 struct hw_device_t **dev) { in open_sensors()
/device/huawei/angler/liblight/
Dlights.c154 set_light_backlight(struct light_device_t* dev, in set_light_backlight()
201 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked()
283 set_light_battery(struct light_device_t* dev, in set_light_battery()
299 set_light_notifications(struct light_device_t* dev, in set_light_notifications()
315 close_lights(struct light_device_t *dev) in close_lights()
350 struct light_device_t *dev = malloc(sizeof(struct light_device_t)); in open_lights() local
/device/generic/goldfish/sensors/
Dsensors_qemu.c174 static int sensor_device_get_fd_locked(SensorDevice* dev) { in sensor_device_get_fd_locked()
191 static int sensor_device_send_command_locked(SensorDevice* dev, in sensor_device_send_command_locked()
256 static int sensor_device_poll_event_locked(SensorDevice* dev) in sensor_device_poll_event_locked()
449 SensorDevice* dev = (void*)dev0; in sensor_device_close() local
473 SensorDevice* dev = (void*)dev0; in sensor_device_poll() local
523 SensorDevice* dev = (void*)dev0; in sensor_device_activate() local
570 SensorDevice* dev = (void*)dev0; in sensor_device_default_flush() local
598 SensorDevice* dev = (void*)dev0; in sensor_device_set_delay() local
616 struct sensors_poll_device_1* dev, in sensor_device_default_batch()
844 SensorDevice *dev = malloc(sizeof(*dev)); in open_sensors() local
/device/linaro/bootloader/edk2/StdLib/Include/Ipf/machine/
Ddisklabel.h48 #define DISKUNIT(dev) ((minor(dev) / OLDMAXPARTITIONS) % __I386_MAXDISKS) argument
49 #define DISKPART(dev) ((minor(dev) % OLDMAXPARTITIONS) + \ argument
/device/google/contexthub/firmware/os/platform/stm32/
Dspi.c229 static int stmSpiMasterStartSync(struct SpiDevice *dev, spi_cs_t cs, in stmSpiMasterStartSync()
250 static int stmSpiSlaveStartSync(struct SpiDevice *dev, in stmSpiSlaveStartSync()
323 static int stmSpiRxTx(struct SpiDevice *dev, void *rxBuf, const void *txBuf, in stmSpiRxTx()
399 static int stmSpiSlaveIdle(struct SpiDevice *dev, const struct SpiMode *mode) in stmSpiSlaveIdle()
415 static inline void stmSpiDisable(struct SpiDevice *dev, bool master) in stmSpiDisable()
432 static int stmSpiMasterStopSync(struct SpiDevice *dev) in stmSpiMasterStopSync()
446 static int stmSpiSlaveStopSync(struct SpiDevice *dev) in stmSpiSlaveStopSync()
472 static void stmSpiSlaveSetCsInterrupt(struct SpiDevice *dev, bool enabled) in stmSpiSlaveSetCsInterrupt()
492 static bool stmSpiSlaveCsIsActive(struct SpiDevice *dev) in stmSpiSlaveCsIsActive()
522 static int stmSpiRelease(struct SpiDevice *dev) in stmSpiRelease()
[all …]
/device/google/dragon/sensor_hub/
Dsensors.cpp695 int cros_ec_sensors_poll_context_t::wrapper_close(struct hw_device_t *dev) in wrapper_close()
709 int cros_ec_sensors_poll_context_t::wrapper_activate(struct sensors_poll_device_t *dev, in wrapper_activate()
716 int cros_ec_sensors_poll_context_t::wrapper_setDelay(struct sensors_poll_device_t *dev, in wrapper_setDelay()
723 int cros_ec_sensors_poll_context_t::wrapper_poll(struct sensors_poll_device_t *dev, in wrapper_poll()
730 int cros_ec_sensors_poll_context_t::wrapper_batch(struct sensors_poll_device_1 *dev, in wrapper_batch()
737 int cros_ec_sensors_poll_context_t::wrapper_flush(struct sensors_poll_device_1 *dev, in wrapper_flush()
765 cros_ec_sensors_poll_context_t *dev = new cros_ec_sensors_poll_context_t( in cros_ec_open_sensors() local
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/
Dplatform.c173 uint32_t dev, in pciwrite32()
186 uint32_t dev, in pciread32()
/device/generic/goldfish/hwcomposer/
Dhwcomposer.cpp56 static int hwc_set(struct hwc_composer_device_1* dev,size_t numDisplays, in hwc_set()
112 static int hwc_query(struct hwc_composer_device_1* dev, int what, int* value) { in hwc_query()
132 static int hwc_event_control(struct hwc_composer_device_1* dev, int dpy __unused, in hwc_event_control()
217 static int hwc_close(hw_device_t* dev) { in hwc_close()
278 static void hwc_register_procs(struct hwc_composer_device_1* dev, in hwc_register_procs()
/device/google/contexthub/firmware/os/platform/native/
Dspi.c25 int spiRequest(struct SpiDevice *dev, uint8_t busId) in spiRequest()

123