Searched refs:buf (Results 1 - 25 of 209) sorted by relevance

123456789

/hardware/invensense/60xx/mlsdk/platform/linux/
H A Dlog_printf_linux.c35 int _MLWriteLog (const char * buf, int buflen) argument
37 return fputs(buf, stdout);
H A Dlog_linux.c60 char buf[LOG_BUFFER_SIZE]; local
101 result = vsnprintf(buf,sizeof(buf),new_fmt, args);
106 result = _MLWriteLog(buf, strlen(buf));
/hardware/akm/AK8975_FS/akmdfs/
H A DAKFS_Disp.c43 void Disp_Result(int buf[YPR_DATA_SIZE]) argument
46 "Flag=%d\n", buf[0]);
49 buf[4], REVERT_ACC(buf[1]), REVERT_ACC(buf[2]), REVERT_ACC(buf[3]));
52 buf[8], REVERT_MAG(buf[5]), REVERT_MAG(buf[6]), REVERT_MAG(buf[
[all...]
H A DAKFS_FileIO.c46 char buf[LOAD_BUF_SIZE]; local
58 if (fscanf(fp, AKFS_SCANF_FORMAT, buf, &prms->mfv_ho.u.x) != 2) {
61 if (strncmp(buf, "HO.x", sizeof(buf)) != 0) {
65 if (fscanf(fp, AKFS_SCANF_FORMAT, buf, &prms->mfv_ho.u.y) != 2) {
68 if (strncmp(buf, "HO.y", sizeof(buf)) != 0) {
72 if (fscanf(fp, AKFS_SCANF_FORMAT, buf, &prms->mfv_ho.u.z) != 2) {
75 if (strncmp(buf, "HO.z", sizeof(buf)) !
[all...]
H A DAK8975Driver.c82 char buf[RWBUF_SIZE]; local
93 buf[0] = numberOfBytesToWrite + 1;
94 buf[1] = address;
97 buf[i + 2] = data[i];
99 if (ioctl(s_fdDev, ECS_IOCTL_WRITE, buf) < 0) {
133 char buf[RWBUF_SIZE]; local
146 buf[0] = numberOfBytesToRead;
147 buf[1] = address;
149 if (ioctl(s_fdDev, ECS_IOCTL_READ, buf) < 0) {
154 data[i] = buf[
200 AKD_SetYPR(const int buf[YPR_DATA_SIZE]) argument
[all...]
H A DAKFS_Disp.h48 void Disp_Result(int buf[YPR_DATA_SIZE]);
H A DAKFS_Measure.c241 int buf[YPR_DATA_SIZE]; local
244 buf[0] = flag; /* Data flag */
245 buf[1] = CONVERT_ACC(acc->x); /* Ax */
246 buf[2] = CONVERT_ACC(acc->y); /* Ay */
247 buf[3] = CONVERT_ACC(acc->z); /* Az */
248 buf[4] = acc->status; /* Acc status */
249 buf[5] = CONVERT_MAG(mag->x); /* Mx */
250 buf[6] = CONVERT_MAG(mag->y); /* My */
251 buf[7] = CONVERT_MAG(mag->z); /* Mz */
252 buf[
[all...]
/hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib/
H A Ddriver_cmd_nl80211.c23 char *buf; member in struct:android_wifi_priv_cmd
39 int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, argument
59 ret = os_snprintf(buf, buf_len,
64 os_memcpy(buf, cmd, strlen(cmd) + 1);
67 priv_cmd.buf = buf;
80 ret = strlen(buf);
88 __func__, MAC2STR(buf));
90 wpa_printf(MSG_DEBUG, "%s: P2P: %s ", __func__, buf);
92 wpa_printf(MSG_DEBUG, "%s: P2P: %s ", __func__, buf);
102 char buf[MAX_DRV_CMD_SIZE]; local
110 wpa_driver_get_p2p_noa(void *priv, u8 *buf, size_t len) argument
118 char buf[MAX_DRV_CMD_SIZE]; local
130 char buf[MAX_WPSP2PIE_CMD_SIZE]; local
[all...]
/hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib/
H A Ddriver_cmd_nl80211.c23 char *buf; member in struct:android_wifi_priv_cmd
39 int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, argument
59 ret = os_snprintf(buf, buf_len,
62 os_memcpy(buf, cmd, strlen(cmd) + 1);
67 priv_cmd.buf = buf;
82 ret = strlen(buf);
87 wpa_printf(MSG_DEBUG, "%s %s len = %d, %d", __func__, buf, ret, strlen(buf));
95 char buf[MAX_DRV_CMD_SIZ local
103 wpa_driver_get_p2p_noa(void *priv, u8 *buf, size_t len) argument
111 char buf[MAX_DRV_CMD_SIZE]; local
123 char buf[MAX_WPSP2PIE_CMD_SIZE]; local
[all...]
H A Ddriver_cmd_wext.c77 char buf[WEXT_CSCAN_BUF_LEN]; local
92 os_memcpy(buf, WEXT_CSCAN_HEADER, bp);
94 if ((bp + IW_ESSID_MAX_SIZE + 10) >= (int)sizeof(buf))
97 buf[bp++] = WEXT_CSCAN_SSID_SECTION;
98 buf[bp++] = params->ssids[i].ssid_len;
99 os_memcpy(&buf[bp], params->ssids[i].ssid, params->ssids[i].ssid_len);
104 buf[bp++] = WEXT_CSCAN_CHANNEL_SECTION;
105 buf[bp++] = 0;
108 buf[bp++] = WEXT_CSCAN_PASV_DWELL_SECTION;
109 buf[b
131 wpa_driver_wext_set_cscan_params(char *buf, size_t buf_len, char *cmd) argument
208 char buf[WEXT_PNO_MAX_COMMAND_SIZE]; local
281 wpa_driver_wext_driver_cmd( void *priv, char *cmd, char *buf, size_t buf_len ) argument
374 char buf[MAX_DRV_CMD_SIZE]; local
[all...]
/hardware/libhardware_legacy/qemu_tracing/
H A Dqemu_tracing.c62 char buf[MAX_BUF_SIZE]; local
69 sprintf(buf, "%x %s\n", addr, name);
70 write(fd, buf, strlen(buf));
77 char buf[MAX_BUF_SIZE]; local
82 sprintf(buf, "%x\n", addr);
83 write(fd, buf, strlen(buf));
/hardware/broadcom/wlan/bcmdhd/dhdutil/
H A Ddhdu_cmd.h46 extern int dhd_get(void *dhd, int cmd, void *buf, int len);
47 extern int dhd_set(void *dhd, int cmd, void *buf, int len);
H A Ddhdu_linux.c145 dhd_ioctl(void *dhd, int cmd, void *buf, int len, bool set) argument
157 if (remote_type == NO_REMOTE && strncmp (buf, RWL_WIFI_ACTION_CMD,
158 strlen(RWL_WIFI_ACTION_CMD)) && strncmp(buf, RWL_WIFI_GET_ACTION_CMD,
166 ioc.buf = buf;
180 int wl_ioctl(void *wl, int cmd, void *buf, int len, bool set) argument
182 return dhd_ioctl(wl, cmd, buf, len, set); /* Call actual wl_ioctl here: Shubhro */
191 dhd_get_dev_type(char *name, void *buf, char *type) argument
214 *(char *)buf = '\0';
217 strcpy(buf, inf
231 dhd_get(void *dhd, int cmd, void *buf, int len) argument
244 dhd_set(void *dhd, int cmd, void *buf, int len) argument
311 static char buf[400]; local
363 ioctl_setinformation_fe(void *wl, int cmd, void* buf, int *len) argument
382 wl_get(void *wl, int cmd, void *buf, int len) argument
404 wl_set(void *wl, int cmd, void *buf, int len) argument
[all...]
/hardware/ti/wlan/mac80211/ti-utils/
H A Dnvs.c32 int nvs_fill_radio_params(int fd, struct wl12xx_ini *ini, char *buf) argument
51 char *p = buf + 0x1D4;
58 static int nvs_fill_radio_params_128x(int fd, struct wl12xx_ini *ini, char *buf) argument
74 char *p = buf + 0x1D4;
81 int nvs_set_autofem(int fd, char *buf, unsigned char val) argument
88 if (buf == NULL) {
92 gp = (struct wl1271_ini *)(buf+0x1d4);
106 int nvs_set_autofem_128x(int fd, char *buf, unsigned char val) argument
113 if (buf == NULL) {
117 gp = (struct wl128x_ini *)(buf
131 nvs_set_fem_manuf(int fd, char *buf, unsigned char val) argument
156 nvs_set_fem_manuf_128x(int fd, char *buf, unsigned char val) argument
224 struct stat buf; local
251 read_from_current_nvs(const char *nvs_file, char *buf, int size, int *nvs_sz) argument
282 read_nvs(const char *nvs_file, char *buf, int size, int *nvs_sz) argument
326 nvs_parse_data(const unsigned char *buf, struct wl1271_cmd_cal_p2g *pdata, unsigned int *pver) argument
409 nvs_fill_old_rx_data(int fd, const unsigned char *buf, unsigned short len) argument
429 nvs_upd_nvs_part(int fd, char *buf) argument
516 char buf[2048]; local
652 char buf[2048]; local
685 char buf[2048]; local
723 char buf[2048]; local
747 char buf[2048]; local
794 char buf[2048]; local
[all...]
/hardware/invensense/60xx/libsensors_iio/
H A DMPLSupport.cpp46 char buf[sizeof(long) * 4]; local
54 memset(buf, 0, sizeof(buf));
55 count = read_attribute_sensor(fd, buf, sizeof(buf));
60 count = sscanf(buf, "%ld", data);
123 char buf[80]; local
124 sprintf(buf, "%ld", data);
125 num_b = write(fd, buf, strlen(buf)
[all...]
/hardware/libhardware/tests/hwc/
H A Dcnativewindow.c83 static inline CNativeBuffer *from_abuffer(aBuffer *buf) { argument
84 return (CNativeBuffer*) buf;
88 CNativeBuffer *buf = queue->next; local
89 if (buf == queue)
91 buf->next->prev = queue;
92 queue->next = buf->next;
93 buf->next = buf->prev = 0;
94 return buf;
98 struct CNativeBuffer *buf local
106 struct CNativeBuffer *buf = (struct CNativeBuffer *) _buf; local
131 cnw_dequeue_buffer1(aWindow *base, aBuffer **buf, int *ffd) argument
154 set_layer(hwc_layer_1_t *dl, aBuffer *buf, int ffd) argument
180 hwc_post(CNativeWindow *win, aBuffer *buf, int ffd) argument
252 cnw_cancel_buffer1(aWindow *base, aBuffer *buf, int ffd) argument
263 cnw_dequeue_buffer0(aWindow *base, aBuffer **buf) argument
272 cnw_queue_buffer0(aWindow *base, aBuffer *buf) argument
276 cnw_cancel_buffer0(aWindow *base, aBuffer *buf) argument
430 aBuffer *buf; local
508 aBuffer *buf = cnw_alloc(win, win->format, usage); local
[all...]
/hardware/invensense/65xx/libsensors_iio/
H A DMPLSupport.cpp32 char buf[sizeof(long) * 4]; local
40 memset(buf, 0, sizeof(buf));
41 count = read_attribute_sensor(fd, buf, sizeof(buf));
46 count = sscanf(buf, "%ld", data);
109 char buf[80]; local
110 sprintf(buf, "%ld", data);
111 num_b = write(fd, buf, strlen(buf)
132 char buf[80]; local
262 char buf[sizeof(long) *4]; local
[all...]
/hardware/qcom/display/msm8960/liboverlay/
H A DoverlayUtils.cpp329 void getDump(char *buf, size_t len, const char *prefix, argument
336 strncat(buf, str, strlen(str));
337 getDump(buf, len, "\tsrc(msmfb_img)", ov.src);
338 getDump(buf, len, "\tsrc_rect(mdp_rect)", ov.src_rect);
339 getDump(buf, len, "\tdst_rect(mdp_rect)", ov.dst_rect);
342 void getDump(char *buf, size_t len, const char *prefix, argument
349 strncat(buf, str_src, strlen(str_src));
352 void getDump(char *buf, size_t len, const char *prefix, argument
358 strncat(buf, str_rect, strlen(str_rect));
361 void getDump(char *buf, size_ argument
371 getDump(char *buf, size_t len, const char *prefix, const msmfb_data& ov) argument
381 getDump(char *buf, size_t len, const char *prefix, const msm_rotator_img_info& rot) argument
393 getDump(char *buf, size_t len, const char *prefix, const msm_rotator_data_info& rot) argument
[all...]
/hardware/qcom/display/msm8x26/liboverlay/
H A DoverlayUtils.cpp329 void getDump(char *buf, size_t len, const char *prefix, argument
336 strncat(buf, str, strlen(str));
337 getDump(buf, len, "\tsrc(msmfb_img)", ov.src);
338 getDump(buf, len, "\tsrc_rect(mdp_rect)", ov.src_rect);
339 getDump(buf, len, "\tdst_rect(mdp_rect)", ov.dst_rect);
342 void getDump(char *buf, size_t len, const char *prefix, argument
349 strncat(buf, str_src, strlen(str_src));
352 void getDump(char *buf, size_t len, const char *prefix, argument
358 strncat(buf, str_rect, strlen(str_rect));
361 void getDump(char *buf, size_ argument
371 getDump(char *buf, size_t len, const char *prefix, const msmfb_data& ov) argument
381 getDump(char *buf, size_t len, const char *prefix, const msm_rotator_img_info& rot) argument
393 getDump(char *buf, size_t len, const char *prefix, const msm_rotator_data_info& rot) argument
[all...]
/hardware/qcom/display/msm8974/liboverlay/
H A DoverlayUtils.cpp379 void getDump(char *buf, size_t len, const char *prefix, argument
387 strncat(buf, str, strlen(str));
388 getDump(buf, len, "\tsrc", ov.src);
389 getDump(buf, len, "\tsrc_rect", ov.src_rect);
390 getDump(buf, len, "\tdst_rect", ov.dst_rect);
393 void getDump(char *buf, size_t len, const char *prefix, argument
400 strncat(buf, str_src, strlen(str_src));
403 void getDump(char *buf, size_t len, const char *prefix, argument
409 strncat(buf, str_rect, strlen(str_rect));
412 void getDump(char *buf, size_ argument
422 getDump(char *buf, size_t len, const char *prefix, const msmfb_data& ov) argument
431 getDump(char *buf, size_t len, const char *prefix, const msm_rotator_img_info& rot) argument
443 getDump(char *buf, size_t len, const char *prefix, const msm_rotator_data_info& rot) argument
[all...]
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
H A Dhndrte_cons.h30 uint32 buf; /* Can't be pointer on (64-bit) hosts */ member in struct:__anon26
/hardware/qcom/media/mm-video-legacy/vidc/common/src/
H A Dextra_data_handler.cpp126 OMX_S32 extra_data_handler::parse_rbsp(OMX_U8 *buf, OMX_U32 len) argument
134 startcode = buf[0] << 16 | buf[1] <<8 | buf[2];
137 startcode |= buf[i++];
143 forbidden_zero_bit = (buf[i] & 0x80) >>7;
148 nal_ref_idc = (buf[i] & 0x60) >>5;
151 nal_unit_type = (buf[i++] & 0x1F);
154 if(!(buf[i] + buf[
398 create_rbsp(OMX_U8 *buf, OMX_U32 nalu_type) argument
[all...]
/hardware/qcom/media/mm-video-v4l2/vidc/common/src/
H A Dextra_data_handler.cpp133 OMX_S32 extra_data_handler::parse_rbsp(OMX_U8 *buf, OMX_U32 len) argument
141 startcode = buf[0] << 16 | buf[1] <<8 | buf[2];
144 startcode |= buf[i++];
152 forbidden_zero_bit = (buf[i] & 0x80) >>7;
159 nal_ref_idc = (buf[i] & 0x60) >>5;
162 nal_unit_type = (buf[i++] & 0x1F);
165 if (!(buf[i] + buf[
467 create_rbsp(OMX_U8 *buf, OMX_U32 nalu_type) argument
[all...]
/hardware/ti/omap4xxx/camera/V4LCameraAdapter/
H A DV4LCameraAdapter.cpp132 mVideoInfo->buf.index = i;
133 mVideoInfo->buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
134 mVideoInfo->buf.memory = V4L2_MEMORY_MMAP;
136 ret = ioctl(mCameraHandle, VIDIOC_QBUF, &mVideoInfo->buf);
248 memset (&mVideoInfo->buf, 0, sizeof (struct v4l2_buffer));
250 mVideoInfo->buf.index = i;
251 mVideoInfo->buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
252 mVideoInfo->buf.memory = V4L2_MEMORY_MMAP;
254 ret = ioctl (mCameraHandle, VIDIOC_QUERYBUF, &mVideoInfo->buf);
261 mVideoInfo->buf
[all...]
/hardware/samsung_slsi/exynos5/exynos_omx/codecs/exynos_codecs/video/exynos5/mfc_v4l2/dec/src/
H A DExynosVideoDecoder.c842 struct v4l2_buffer buf; local
892 memset(&buf, 0, sizeof(buf));
895 buf.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
896 buf.memory = V4L2_MEMORY_MMAP;
897 buf.m.planes = planes;
898 buf.length = VIDEO_DECODER_INBUF_PLANES;
901 buf.index = i;
902 if (exynos_v4l2_querybuf(pCtx->hDec, &buf) != 0) {
910 buf
961 struct v4l2_buffer buf; local
1429 struct v4l2_buffer buf; local
1525 struct v4l2_buffer buf; local
1606 struct v4l2_buffer buf; local
1656 struct v4l2_buffer buf; local
1955 struct v4l2_buffer buf; local
2058 struct v4l2_buffer buf; local
[all...]

Completed in 664 milliseconds

123456789