/device/linaro/hikey/gralloc/ |
D | gralloc_module.cpp | 71 private_handle_t *hnd = (private_handle_t *)handle; in gralloc_register_buffer() local 95 hnd->pid = getpid(); in gralloc_register_buffer() 97 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) in gralloc_register_buffer() 101 else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_UMP) in gralloc_register_buffer() 104 hnd->ump_mem_handle = (int)ump_handle_create_from_secure_id(hnd->ump_id); in gralloc_register_buffer() 106 if (UMP_INVALID_MEMORY_HANDLE != (ump_handle)hnd->ump_mem_handle) in gralloc_register_buffer() 108 hnd->base = ump_mapped_pointer_get((ump_handle)hnd->ump_mem_handle); in gralloc_register_buffer() 110 if (0 != hnd->base) in gralloc_register_buffer() 112 hnd->writeOwner = 0; in gralloc_register_buffer() 113 hnd->lockState &= ~(private_handle_t::LOCK_STATE_UNREGISTERED); in gralloc_register_buffer() [all …]
|
D | alloc_device.cpp | 146 …private_handle_t *hnd = new private_handle_t(private_handle_t::PRIV_FLAGS_USES_ION, usage, size, c… in gralloc_alloc_buffer() local 148 if (NULL != hnd) in gralloc_alloc_buffer() 150 hnd->share_fd = shared_fd; in gralloc_alloc_buffer() 151 hnd->ion_hnd = ion_hnd; in gralloc_alloc_buffer() 152 *pHandle = hnd; in gralloc_alloc_buffer() 220 …private_handle_t *hnd = new private_handle_t(private_handle_t::PRIV_FLAGS_USES_UMP, usage, size, c… in gralloc_alloc_buffer() local 223 if (NULL != hnd) in gralloc_alloc_buffer() 225 *pHandle = hnd; in gralloc_alloc_buffer() 310 …private_handle_t *hnd = new private_handle_t(private_handle_t::PRIV_FLAGS_FRAMEBUFFER, usage, size… in gralloc_alloc_framebuffer_locked() local 313 hnd->ump_id = m->framebuffer->ump_id; in gralloc_alloc_framebuffer_locked() [all …]
|
D | gralloc_priv.h | 314 const private_handle_t *hnd = (const private_handle_t *)h; in validate() local 318 hnd->magic != sMagic) in validate()
|
D | framebuffer_device.cpp | 74 private_handle_t const *hnd = reinterpret_cast<private_handle_t const *>(buffer); in fb_post() local 83 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) in fb_post() 88 const size_t offset = (uintptr_t)hnd->base - (uintptr_t)m->framebuffer->base; in fb_post()
|
/device/google/dragon/recovery/updater/ |
D | flash_mtd.c | 79 static void mtd_close(void *hnd) in mtd_close() argument 81 struct mtd_data *dev = hnd; in mtd_close() 87 static int mtd_read(void *hnd, off_t offset, void *buffer, size_t count) in mtd_read() argument 89 struct mtd_data *dev = hnd; in mtd_read() 111 static int mtd_write(void *hnd, off_t offset, void *buffer, size_t count) in mtd_write() argument 113 struct mtd_data *dev = hnd; in mtd_write() 134 static int mtd_erase(void *hnd, off_t offset, size_t count) in mtd_erase() argument 136 struct mtd_data *dev = hnd; in mtd_erase() 162 static size_t mtd_get_size(void *hnd) in mtd_get_size() argument 164 struct mtd_data *dev = hnd; in mtd_get_size() [all …]
|
D | flash_file.cpp | 94 static void file_close(void *hnd) in file_close() argument 96 struct file_data *dev = reinterpret_cast<struct file_data*>(hnd); in file_close() 105 static int file_read(void *hnd, off_t offset, void *buffer, size_t count) in file_read() argument 107 struct file_data *dev = reinterpret_cast<struct file_data*>(hnd); in file_read() 120 static int file_write(void *hnd, off_t offset, void *buffer, size_t count) in file_write() argument 122 struct file_data *dev = reinterpret_cast<struct file_data*>(hnd); in file_write() 135 static int file_erase(void *hnd, off_t offset, size_t count) in file_erase() argument 137 struct file_data *dev = reinterpret_cast<struct file_data*>(hnd); in file_erase() 150 static size_t file_get_size(void *hnd) in file_get_size() argument 152 struct file_data *dev = reinterpret_cast<struct file_data*>(hnd); in file_get_size() [all …]
|
D | flash_ec.c | 58 static int ec_command(void *hnd, int command, int version, in ec_command() argument 61 struct ec_data *ec = hnd; in ec_command() 141 static void ec_close(void *hnd) in ec_close() argument 143 struct ec_data *dev = hnd; in ec_close() 149 static int ec_read(void *hnd, off_t offset, void *buffer, size_t count) in ec_read() argument 151 struct ec_data *dev = hnd; in ec_read() 174 static int ec_write(void *hnd, off_t offset, void *buffer, size_t count) in ec_write() argument 176 struct ec_data *dev = hnd; in ec_write() 206 static int ec_erase(void *hnd, off_t offset, size_t count) in ec_erase() argument 208 struct ec_data *dev = hnd; in ec_erase() [all …]
|
D | flash_device.h | 28 void (*close)(void *hnd); 29 int (*read)(void *hnd, off_t offset, void *buffer, size_t count); 30 int (*write)(void *hnd, off_t offset, void *buffer, size_t count); 31 int (*erase)(void *hnd, off_t offset, size_t count); 32 size_t (*get_size)(void *hnd); 33 size_t (*get_write_size)(void *hnd); 34 size_t (*get_erase_size)(void *hnd); 35 off_t (*get_fmap_offset)(void *hnd); 36 int (*cmd)(void *hnd, int cmd, int ver, const void *odata, int osize,
|
/device/generic/goldfish/opengl/system/OpenglSystemCommon/ |
D | gralloc_cb.h | 74 static bool validate(const cb_handle_t* hnd) { in validate() 75 return (hnd && in validate() 76 hnd->version == sizeof(native_handle) && in validate() 77 hnd->magic == BUFFER_HANDLE_MAGIC && in validate() 78 hnd->numInts == CB_HANDLE_NUM_INTS(hnd->numFds)); in validate()
|