/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
D | vpxstats.c | 25 stats->buf.sz = 0; in stats_open_file() 26 stats->buf.buf = NULL; in stats_open_file() 36 stats->buf.sz = stat_buf.st_size; in stats_open_file() 37 stats->buf.buf = mmap(NULL, stats->buf.sz, PROT_READ, MAP_PRIVATE, fd, 0); in stats_open_file() 38 res = (stats->buf.buf != NULL); in stats_open_file() 47 stats->buf.sz = stats->buf_alloc_sz = ftell(stats->file); in stats_open_file() 50 stats->buf.buf = malloc(stats->buf_alloc_sz); in stats_open_file() 52 if (!stats->buf.buf) in stats_open_file() 56 nbytes = fread(stats->buf.buf, 1, stats->buf.sz, stats->file); in stats_open_file() 57 res = (nbytes == stats->buf.sz); in stats_open_file() [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/m24lr64e/ |
D | m24lr64e.cxx | 61 uint8_t buf[pktLen]; in submitPasswd() local 63 buf[0] = 0x09; in submitPasswd() 64 buf[1] = 0x00; in submitPasswd() 66 buf[2] = ((passwd >> 24) & 0xff); in submitPasswd() 67 buf[3] = ((passwd >> 16) & 0xff); in submitPasswd() 68 buf[4] = ((passwd >> 8) & 0xff); in submitPasswd() 69 buf[5] = (passwd & 0xff); in submitPasswd() 71 buf[6] = 0x09; in submitPasswd() 74 buf[7] = ((passwd >> 24) & 0xff); in submitPasswd() 75 buf[8] = ((passwd >> 16) & 0xff); in submitPasswd() [all …]
|
/hardware/intel/img/psb_video/src/ |
D | psb_buffer.c | 67 psb_buffer_p buf in psb_buffer_create() argument 76 buf->rar_handle = 0; in psb_buffer_create() 77 buf->buffer_ofs = 0; in psb_buffer_create() 79 buf->type = type; in psb_buffer_create() 80 buf->driver_data = driver_data; /* only for RAR buffers */ in psb_buffer_create() 81 buf->size = size; in psb_buffer_create() 174 ret = wsbmGenBuffers(driver_data->main_pool, 1, &buf->drm_buf, in psb_buffer_create() 176 if (!buf->drm_buf) { in psb_buffer_create() 183 ret = wsbmBOData(buf->drm_buf, size, NULL, NULL, 0); in psb_buffer_create() 192 size, wsbmBOOffsetHint(buf->drm_buf)); in psb_buffer_create() [all …]
|
D | psb_buffer_dm.c | 42 psb_buffer_p buf, in psb_buffer_offset_camerav4l2() argument 53 psb_buffer_p buf, in psb_buffer_offset_cameraci() argument 124 psb_buffer_p buf, in psb_buffer_create_camera() argument 147 ret = psb_buffer_reference(driver_data, buf, (psb_buffer_p) driver_data->camera_bo); in psb_buffer_create_camera() 154 ret = psb_buffer_offset_camerav4l2(driver_data, buf, id_or_ofs, &camera_offset); in psb_buffer_create_camera() 156 ret = psb_buffer_offset_cameraci(driver_data, buf, id_or_ofs, &camera_offset); in psb_buffer_create_camera() 158 buf->buffer_ofs = camera_offset; in psb_buffer_create_camera() 169 psb_buffer_p buf, in psb_buffer_create_camera_from_ub() argument 179 buf->rar_handle = 0; in psb_buffer_create_camera_from_ub() 180 buf->buffer_ofs = 0; in psb_buffer_create_camera_from_ub() [all …]
|
/hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib/ |
D | driver_cmd_wext.c | 77 char buf[WEXT_CSCAN_BUF_LEN]; in wpa_driver_wext_combo_scan() local 92 os_memcpy(buf, WEXT_CSCAN_HEADER, bp); in wpa_driver_wext_combo_scan() 94 if ((bp + IW_ESSID_MAX_SIZE + 10) >= (int)sizeof(buf)) in wpa_driver_wext_combo_scan() 97 buf[bp++] = WEXT_CSCAN_SSID_SECTION; in wpa_driver_wext_combo_scan() 98 buf[bp++] = params->ssids[i].ssid_len; in wpa_driver_wext_combo_scan() 99 os_memcpy(&buf[bp], params->ssids[i].ssid, params->ssids[i].ssid_len); in wpa_driver_wext_combo_scan() 104 buf[bp++] = WEXT_CSCAN_CHANNEL_SECTION; in wpa_driver_wext_combo_scan() 105 buf[bp++] = 0; in wpa_driver_wext_combo_scan() 108 buf[bp++] = WEXT_CSCAN_PASV_DWELL_SECTION; in wpa_driver_wext_combo_scan() 109 buf[bp++] = (u8)WEXT_CSCAN_PASV_DWELL_TIME; in wpa_driver_wext_combo_scan() [all …]
|
D | driver_cmd_nl80211.c | 69 int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, in wpa_driver_nl80211_driver_cmd() argument 106 ret = os_snprintf(buf, buf_len, in wpa_driver_nl80211_driver_cmd() 109 os_memcpy(buf, cmd, strlen(cmd) + 1); in wpa_driver_nl80211_driver_cmd() 115 priv_cmd.bufaddr = (u64)(uintptr_t)buf; in wpa_driver_nl80211_driver_cmd() 117 priv_cmd.bufaddr = buf; in wpa_driver_nl80211_driver_cmd() 133 ret = strlen(buf); in wpa_driver_nl80211_driver_cmd() 135 wpa_printf(MSG_DEBUG, "%s %s len = %d, %zu", __func__, buf, ret, strlen(buf)); in wpa_driver_nl80211_driver_cmd() 143 char buf[MAX_DRV_CMD_SIZE]; in wpa_driver_set_p2p_noa() local 145 memset(buf, 0, sizeof(buf)); in wpa_driver_set_p2p_noa() 147 snprintf(buf, sizeof(buf), "P2P_SET_NOA %d %d %d", count, start, duration); in wpa_driver_set_p2p_noa() [all …]
|
/hardware/intel/common/libwsbm/src/ |
D | wsbm_manager.c | 165 node->buf = item; in validateListAddNode() 358 wsbmBOWaitIdle(struct _WsbmBufferObject *buf, int lazy) in wsbmBOWaitIdle() argument 362 storage = buf->storage; in wsbmBOWaitIdle() 370 wsbmBOMap(struct _WsbmBufferObject *buf, unsigned mode) in wsbmBOMap() argument 372 struct _WsbmBufStorage *storage = buf->storage; in wsbmBOMap() 382 wsbmBOUnmap(struct _WsbmBufferObject *buf) in wsbmBOUnmap() argument 384 struct _WsbmBufStorage *storage = buf->storage; in wsbmBOUnmap() 393 wsbmBOSyncForCpu(struct _WsbmBufferObject *buf, unsigned mode) in wsbmBOSyncForCpu() argument 395 struct _WsbmBufStorage *storage = buf->storage; in wsbmBOSyncForCpu() 401 wsbmBOReleaseFromCpu(struct _WsbmBufferObject *buf, unsigned mode) in wsbmBOReleaseFromCpu() argument [all …]
|
D | wsbm_mallocpool.c | 44 struct _WsbmBufStorage buf; member 50 mallocBuf(struct _WsbmBufStorage *buf) in mallocBuf() argument 52 return containerOf(buf, struct _WsbmMallocBuffer, buf); in mallocBuf() 64 wsbmBufStorageInit(&mBuf->buf, pool); in pool_create() 70 return &mBuf->buf; in pool_create() 74 pool_destroy(struct _WsbmBufStorage **buf) in pool_destroy() argument 76 free(mallocBuf(*buf)); in pool_destroy() 77 *buf = NULL; in pool_destroy() 81 pool_waitIdle(struct _WsbmBufStorage *buf __attribute__ ((unused)), int lazy __attribute__ ((unused… in pool_waitIdle() argument 87 pool_map(struct _WsbmBufStorage *buf, unsigned mode __attribute__ ((unused)), void **virtual __attr… in pool_map() argument [all …]
|
D | wsbm_ttmpool.c | 63 struct _WsbmBufStorage buf; member 100 return containerOf(dBuf->buf.pool, struct _TTMPool, pool); in ttmGetPool() 104 ttmBuffer(struct _WsbmBufStorage *buf) in ttmBuffer() argument 106 return containerOf(buf, struct _TTMBuffer, buf); in ttmBuffer() 126 ret = wsbmBufStorageInit(&dBuf->buf, pool); in pool_create() 151 return &dBuf->buf; in pool_create() 156 wsbmBufStorageTakedown(&dBuf->buf); in pool_create() 173 ret = wsbmBufStorageInit(&dBuf->buf, pool); in pool_reference() 196 return &dBuf->buf; in pool_reference() 201 wsbmBufStorageTakedown(&dBuf->buf); in pool_reference() [all …]
|
D | wsbm_manager.h | 78 extern void *wsbmBOMap(struct _WsbmBufferObject *buf, unsigned mode); 79 extern void wsbmBOUnmap(struct _WsbmBufferObject *buf); 80 extern int wsbmBOSyncForCpu(struct _WsbmBufferObject *buf, unsigned mode); 81 extern void wsbmBOReleaseFromCpu(struct _WsbmBufferObject *buf, 84 extern unsigned long wsbmBOOffsetHint(struct _WsbmBufferObject *buf); 85 extern unsigned long wsbmBOPoolOffset(struct _WsbmBufferObject *buf); 87 extern uint32_t wsbmBOPlacementHint(struct _WsbmBufferObject *buf); 89 *buf); 96 extern int wsbmBODataUB(struct _WsbmBufferObject *buf, 100 extern int wsbmBOSetStatus(struct _WsbmBufferObject *buf, [all …]
|
D | wsbm_userpool.c | 60 struct _WsbmBufStorage buf; member 109 userPool(struct _WsbmUserBuffer *buf) in userPool() argument 111 return containerOf(buf->buf.pool, struct _WsbmUserPool, pool); in userPool() 115 userBuf(struct _WsbmBufStorage *buf) in userBuf() argument 117 return containerOf(buf, struct _WsbmUserBuffer, buf); in userBuf() 121 waitIdleLocked(struct _WsbmBufStorage *buf, int lazy) in waitIdleLocked() argument 123 struct _WsbmUserBuffer *vBuf = userBuf(buf); in waitIdleLocked() 127 WSBM_COND_WAIT(&vBuf->event, &buf->mutex); in waitIdleLocked() 134 WSBM_MUTEX_UNLOCK(&buf->mutex); in waitIdleLocked() 137 WSBM_MUTEX_LOCK(&buf->mutex); in waitIdleLocked() [all …]
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/ |
D | Wsbm.cpp | 57 bool Wsbm::allocateTTMBuffer(uint32_t size, uint32_t align, void ** buf) in allocateTTMBuffer() argument 59 int ret = psbWsbmAllocateTTMBuffer(size, align, buf); in allocateTTMBuffer() 68 bool Wsbm::allocateTTMBufferUB(uint32_t size, uint32_t align, void ** buf, void *user_pt) in allocateTTMBufferUB() argument 70 int ret = psbWsbmAllocateFromUB(size, align, buf, user_pt); in allocateTTMBufferUB() 79 bool Wsbm::destroyTTMBuffer(void * buf) in destroyTTMBuffer() argument 81 int ret = psbWsbmDestroyTTMBuffer(buf); in destroyTTMBuffer() 90 void * Wsbm::getCPUAddress(void * buf) in getCPUAddress() argument 92 return psbWsbmGetCPUAddress(buf); in getCPUAddress() 95 uint32_t Wsbm::getGttOffset(void * buf) in getGttOffset() argument 97 return psbWsbmGetGttOffset(buf); in getGttOffset() [all …]
|
D | WsbmWrapper.c | 157 int psbWsbmAllocateFromUB(uint32_t size, uint32_t align, void ** buf, void *user_pt) in psbWsbmAllocateFromUB() argument 164 if(!buf || !user_pt) { in psbWsbmAllocateFromUB() 189 *buf = wsbmBuf; in psbWsbmAllocateFromUB() 191 VLOGTRACE("ttm UB buffer allocated. %p", *buf); in psbWsbmAllocateFromUB() 195 int psbWsbmAllocateTTMBuffer(uint32_t size, uint32_t align, void ** buf) in psbWsbmAllocateTTMBuffer() argument 202 if(!buf) { in psbWsbmAllocateTTMBuffer() 226 *buf = wsbmBuf; in psbWsbmAllocateTTMBuffer() 228 VLOGTRACE("ttm buffer allocated. %p", *buf); in psbWsbmAllocateTTMBuffer() 232 int psbWsbmWrapTTMBuffer(uint32_t handle, void **buf) in psbWsbmWrapTTMBuffer() argument 237 if (!buf) { in psbWsbmWrapTTMBuffer() [all …]
|
D | WsbmWrapper.h | 25 extern int psbWsbmAllocateFromUB(uint32_t size, uint32_t align, void ** buf, void *user_pt); 26 extern int psbWsbmAllocateTTMBuffer(uint32_t size, uint32_t align,void ** buf); 27 extern int psbWsbmDestroyTTMBuffer(void * buf); 28 extern void * psbWsbmGetCPUAddress(void * buf); 29 extern uint32_t psbWsbmGetGttOffset(void * buf); 30 extern int psbWsbmWrapTTMBuffer(uint32_t handle, void **buf); 31 extern int psbWsbmWrapTTMBuffer2(uint32_t handle, void **buf); 32 extern int psbWsbmCreateFromUB(void *buf, uint32_t size, void *vaddr); 33 extern int psbWsbmUnReference(void *buf); 34 extern int psbWsbmWaitIdle(void *buf); [all …]
|
D | Wsbm.h | 34 bool allocateTTMBuffer(uint32_t size, uint32_t align,void ** buf); 35 bool allocateTTMBufferUB(uint32_t size, uint32_t align, void ** buf, void *user_pt); 36 bool destroyTTMBuffer(void * buf); 37 void * getCPUAddress(void * buf); 38 uint32_t getGttOffset(void * buf); 39 bool wrapTTMBuffer(uint32_t handle, void **buf); 40 bool unreferenceTTMBuffer(void *buf); 41 bool waitIdleTTMBuffer(void *buf); 42 uint32_t getKBufHandle(void *buf);
|
/hardware/intel/img/hwcomposer/merrifield/ips/common/ |
D | Wsbm.cpp | 57 bool Wsbm::allocateTTMBuffer(uint32_t size, uint32_t align, void ** buf) in allocateTTMBuffer() argument 59 int ret = psbWsbmAllocateTTMBuffer(size, align, buf); in allocateTTMBuffer() 68 bool Wsbm::allocateTTMBufferUB(uint32_t size, uint32_t align, void ** buf, void *user_pt) in allocateTTMBufferUB() argument 70 int ret = psbWsbmAllocateFromUB(size, align, buf, user_pt); in allocateTTMBufferUB() 79 bool Wsbm::destroyTTMBuffer(void * buf) in destroyTTMBuffer() argument 81 int ret = psbWsbmDestroyTTMBuffer(buf); in destroyTTMBuffer() 90 void * Wsbm::getCPUAddress(void * buf) in getCPUAddress() argument 92 return psbWsbmGetCPUAddress(buf); in getCPUAddress() 95 uint32_t Wsbm::getGttOffset(void * buf) in getGttOffset() argument 97 return psbWsbmGetGttOffset(buf); in getGttOffset() [all …]
|
D | WsbmWrapper.c | 156 int psbWsbmAllocateFromUB(uint32_t size, uint32_t align, void ** buf, void *user_pt) in psbWsbmAllocateFromUB() argument 164 if(!buf || !user_pt) { in psbWsbmAllocateFromUB() 189 *buf = wsbmBuf; in psbWsbmAllocateFromUB() 191 VTRACE("ttm UB buffer allocated. %p", *buf); in psbWsbmAllocateFromUB() 195 int psbWsbmAllocateTTMBuffer(uint32_t size, uint32_t align, void ** buf) in psbWsbmAllocateTTMBuffer() argument 203 if(!buf) { in psbWsbmAllocateTTMBuffer() 227 *buf = wsbmBuf; in psbWsbmAllocateTTMBuffer() 229 VTRACE("ttm buffer allocated. %p", *buf); in psbWsbmAllocateTTMBuffer() 233 int psbWsbmWrapTTMBuffer(uint64_t handle, void **buf) in psbWsbmWrapTTMBuffer() argument 238 if (!buf) { in psbWsbmWrapTTMBuffer() [all …]
|
D | WsbmWrapper.h | 25 extern int psbWsbmAllocateFromUB(uint32_t size, uint32_t align, void ** buf, void *user_pt); 26 extern int psbWsbmAllocateTTMBuffer(uint32_t size, uint32_t align,void ** buf); 27 extern int psbWsbmDestroyTTMBuffer(void * buf); 28 extern void * psbWsbmGetCPUAddress(void * buf); 29 extern uint32_t psbWsbmGetGttOffset(void * buf); 30 extern int psbWsbmWrapTTMBuffer(uint64_t handle, void **buf); 31 extern int psbWsbmWrapTTMBuffer2(uint64_t handle, void **buf); 32 extern int psbWsbmCreateFromUB(void *buf, uint32_t size, void *vaddr); 33 extern int psbWsbmUnReference(void *buf); 34 extern int psbWsbmWaitIdle(void *buf); [all …]
|
D | Wsbm.h | 34 bool allocateTTMBuffer(uint32_t size, uint32_t align,void ** buf); 35 bool allocateTTMBufferUB(uint32_t size, uint32_t align, void ** buf, void *user_pt); 36 bool destroyTTMBuffer(void * buf); 37 void * getCPUAddress(void * buf); 38 uint32_t getGttOffset(void * buf); 39 bool wrapTTMBuffer(int64_t handle, void **buf); 40 bool unreferenceTTMBuffer(void *buf); 41 bool waitIdleTTMBuffer(void *buf); 42 uint64_t getKBufHandle(void *buf);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
D | vp9_lookahead.c | 26 struct lookahead_entry *buf; /* Buffer list */ member 34 struct lookahead_entry *buf = ctx->buf + index; in pop() local 40 return buf; in pop() 46 if (ctx->buf) { in vp9_lookahead_destroy() 50 vp9_free_frame_buffer(&ctx->buf[i].img); in vp9_lookahead_destroy() 51 free(ctx->buf); in vp9_lookahead_destroy() 76 ctx->buf = calloc(depth, sizeof(*ctx->buf)); in vp9_lookahead_init() 77 if (!ctx->buf) in vp9_lookahead_init() 80 if (vp9_alloc_frame_buffer(&ctx->buf[i].img, in vp9_lookahead_init() 95 struct lookahead_entry *buf; in vp9_lookahead_push() local [all …]
|
/hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib/ |
D | driver_cmd_nl80211.c | 38 char *buf; member 75 int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, in wpa_driver_nl80211_driver_cmd() argument 95 ret = os_snprintf(buf, buf_len, in wpa_driver_nl80211_driver_cmd() 100 os_memcpy(buf, cmd, strlen(cmd) + 1); in wpa_driver_nl80211_driver_cmd() 103 priv_cmd.buf = buf; in wpa_driver_nl80211_driver_cmd() 121 ret = strlen(buf); in wpa_driver_nl80211_driver_cmd() 124 __func__, MAC2STR(buf)); in wpa_driver_nl80211_driver_cmd() 126 wpa_printf(MSG_DEBUG, "%s: P2P: %s ", __func__, buf); in wpa_driver_nl80211_driver_cmd() 128 wpa_printf(MSG_DEBUG, "%s: P2P: %s ", __func__, buf); in wpa_driver_nl80211_driver_cmd() 130 wpa_printf(MSG_DEBUG, "%s: %s ", __func__, buf); in wpa_driver_nl80211_driver_cmd() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ |
D | lookahead.c | 24 struct lookahead_entry *buf; /* Buffer list */ member 34 struct lookahead_entry *buf = ctx->buf + index; in pop() local 40 return buf; in pop() 49 if(ctx->buf) in vp8_lookahead_destroy() 54 vp8_yv12_de_alloc_frame_buffer(&ctx->buf[i].img); in vp8_lookahead_destroy() 55 free(ctx->buf); in vp8_lookahead_destroy() 88 ctx->buf = calloc(depth, sizeof(*ctx->buf)); in vp8_lookahead_init() 89 if(!ctx->buf) in vp8_lookahead_init() 92 if (vp8_yv12_alloc_frame_buffer(&ctx->buf[i].img, in vp8_lookahead_init() 111 struct lookahead_entry* buf; in vp8_lookahead_push() local [all …]
|
/hardware/akm/AK8975_FS/akmdfs/ |
D | AKFS_Disp.c | 43 void Disp_Result(int buf[YPR_DATA_SIZE]) in Disp_Result() 46 "Flag=%d\n", buf[0]); in Disp_Result() 49 buf[4], REVERT_ACC(buf[1]), REVERT_ACC(buf[2]), REVERT_ACC(buf[3])); in Disp_Result() 52 buf[8], REVERT_MAG(buf[5]), REVERT_MAG(buf[6]), REVERT_MAG(buf[7])); in Disp_Result() 55 buf[8], REVERT_ORI(buf[9]), REVERT_ORI(buf[10]), REVERT_ORI(buf[11])); in Disp_Result()
|
/hardware/bsp/intel/peripheral/libupm/src/hmtrp/ |
D | hmtrp.cxx | 178 char buf[4]; in checkOK() local 180 int rv = readData(buf, 4, defaultDelay); in checkOK() 190 if (buf[0] == 'O' && buf[1] == 'K' && in checkOK() 191 buf[2] == '\r' && buf[3] == '\n') in checkOK() 223 char buf[16]; in getConfig() local 224 int rv = readData(buf, 16, defaultDelay); in getConfig() 236 *freq = ( ((buf[0] & 0xff) << 24) | in getConfig() 237 ((buf[1] & 0xff) << 16) | in getConfig() 238 ((buf[2] & 0xff) << 8) | in getConfig() 239 (buf[3] & 0xff) ); in getConfig() [all …]
|
/hardware/libhardware/tests/hwc/ |
D | cnativewindow.c | 83 static inline CNativeBuffer *from_abuffer(aBuffer *buf) { in from_abuffer() argument 84 return (CNativeBuffer*) buf; in from_abuffer() 88 CNativeBuffer *buf = queue->next; in get_front() local 89 if (buf == queue) in get_front() 91 buf->next->prev = queue; in get_front() 92 queue->next = buf->next; in get_front() 93 buf->next = buf->prev = 0; in get_front() 94 return buf; in get_front() 98 struct CNativeBuffer *buf = (struct CNativeBuffer *) _buf; in put_front() local 99 buf->prev = queue; in put_front() [all …]
|