/hardware/ti/wlan/wl1271/platforms/os/linux/src/ |
D | osRgstry_parser.c | 89 char *mem_str(char *buf, char *str, char *end_buf) in mem_str() argument 93 for( ; buf <= end_buf; buf++ ) in mem_str() 95 if( *buf == '#' ) in mem_str() 97 buf = strchr(buf+1, '\n' ); in mem_str() 98 if( !buf ) in mem_str() 102 … for( i=0; &buf[i] <= end_buf && buf[i] && str[i] && (tolower(buf[i]) == tolower(str[i])); i++ ) ; in mem_str() 104 if ((!str[i]) && (!((tolower(*(buf-1))>='a') && (tolower(*(buf-1))<='z')))) in mem_str() 105 return buf; in mem_str() 120 char *s, *buf = init_file, *end_buf = init_file + init_file_length; in NdisReadConfiguration() local 137 while(buf < end_buf) in NdisReadConfiguration() [all …]
|
/hardware/libhardware_legacy/power/ |
D | power.c | 150 char buf[32]; in set_last_user_activity_timeout() local 152 len = snprintf(buf, sizeof(buf), "%d", ((int)(delay))); in set_last_user_activity_timeout() 153 buf[sizeof(buf) - 1] = '\0'; in set_last_user_activity_timeout() 154 len = write(fd, buf, len); in set_last_user_activity_timeout() 176 char buf[32]; in set_screen_state() local 179 len = snprintf(buf, sizeof(buf), "%s", on_state); in set_screen_state() 181 len = snprintf(buf, sizeof(buf), "%s", off_state); in set_screen_state() 183 buf[sizeof(buf) - 1] = '\0'; in set_screen_state() 184 len = write(g_fds[REQUEST_STATE], buf, len); in set_screen_state()
|
/hardware/qcom/gps/loc_api/libloc_api-rpc/gen-1240/ |
D | loc_api_common_xdr.c | 11 register int32_t *buf; in xdr_rpc_boolean() local 21 register int32_t *buf; in xdr_rpc_uint32() local 31 register int32_t *buf; in xdr_rpc_uint16() local 41 register int32_t *buf; in xdr_rpc_uint8() local 51 register int32_t *buf; in xdr_rpc_int32() local 61 register int32_t *buf; in xdr_rpc_byte() local 71 register int32_t *buf; in xdr_rpc_uint64() local 81 register int32_t *buf; in xdr_rpc_loc_client_handle_type() local 91 register int32_t *buf; in xdr_rpc_loc_event_mask_type() local 101 register int32_t *buf; in xdr_rpc_loc_position_valid_mask_type() local [all …]
|
D | loc_api_xdr.c | 11 register int32_t *buf; in xdr_rpc_loc_api_api_versions_return_type() local 22 register int32_t *buf; in xdr_rpc_loc_event_cb_f_type() local 32 register int32_t *buf; in xdr_rpc_loc_open_args() local 44 register int32_t *buf; in xdr_rpc_loc_close_args() local 54 register int32_t *buf; in xdr_rpc_loc_start_fix_args() local 64 register int32_t *buf; in xdr_rpc_loc_stop_fix_args() local 74 register int32_t *buf; in xdr_rpc_loc_ioctl_args() local 88 register int32_t *buf; in xdr_rpc_loc_api_api_version_s_args() local 98 register int32_t *buf; in xdr_rpc_loc_api_rpc_glue_code_info_remote_rets() local 114 register int32_t *buf; in xdr_rpc_loc_open_rets() local [all …]
|
/hardware/qcom/gps/loc_api/libloc_api-rpc/gen-3200/ |
D | loc_api_common_xdr.c | 11 register int32_t *buf; in xdr_rpc_boolean() local 21 register int32_t *buf; in xdr_rpc_uint32() local 31 register int32_t *buf; in xdr_rpc_uint16() local 41 register int32_t *buf; in xdr_rpc_uint8() local 51 register int32_t *buf; in xdr_rpc_int32() local 61 register int32_t *buf; in xdr_rpc_byte() local 71 register int32_t *buf; in xdr_rpc_uint64() local 81 register int32_t *buf; in xdr_rpc_loc_client_handle_type() local 91 register int32_t *buf; in xdr_rpc_loc_event_mask_type() local 101 register int32_t *buf; in xdr_rpc_loc_position_valid_mask_type() local [all …]
|
D | loc_api_xdr.c | 11 register int32_t *buf; in xdr_rpc_loc_api_api_versions_return_type() local 22 register int32_t *buf; in xdr_rpc_loc_event_cb_f_type() local 32 register int32_t *buf; in xdr_rpc_loc_open_args() local 44 register int32_t *buf; in xdr_rpc_loc_close_args() local 54 register int32_t *buf; in xdr_rpc_loc_start_fix_args() local 64 register int32_t *buf; in xdr_rpc_loc_stop_fix_args() local 74 register int32_t *buf; in xdr_rpc_loc_ioctl_args() local 88 register int32_t *buf; in xdr_rpc_loc_api_api_version_s_args() local 98 register int32_t *buf; in xdr_rpc_loc_api_rpc_glue_code_info_remote_rets() local 114 register int32_t *buf; in xdr_rpc_loc_open_rets() local [all …]
|
/hardware/broadcom/wlan/bcm4329/src/dhd/exe/ |
D | dhdu_linux.c | 64 dhd_ioctl(void *dhd, int cmd, void *buf, int len, bool set) in dhd_ioctl() argument 77 ioc.buf = buf; in dhd_ioctl() 94 dhd_get_dev_type(char *name, void *buf, int len) in dhd_get_dev_type() argument 117 *(char *)buf = '\0'; in dhd_get_dev_type() 120 strncpy(buf, info.driver, len); in dhd_get_dev_type() 127 dhd_get(void *dhd, int cmd, void *buf, int len) in dhd_get() argument 129 return dhd_ioctl(dhd, cmd, buf, len, FALSE); in dhd_get() 133 dhd_set(void *dhd, int cmd, void *buf, int len) in dhd_set() argument 135 return dhd_ioctl(dhd, cmd, buf, len, TRUE); in dhd_set() 143 char buf[1000], *c, *name; in dhd_find() local [all …]
|
D | dhdu.c | 82 char *buf, uint buflen, int *perr); 88 static int read_vars(char *fname, char *buf, int buf_maxlen); 98 static char *buf = (char*) &bufstruct_dhd.bufdata; variable 369 char *buf; in dhd_list() local 383 buf = malloc(len); in dhd_list() 384 if (buf == NULL) { in dhd_list() 389 *(buf+i) = 0; in dhd_list() 395 strcat(buf+row*80, cmd->name); in dhd_list() 396 pad = 18 * (col + 1) - strlen(buf+row*80); in dhd_list() 400 strcat(buf+row*80, " "); in dhd_list() [all …]
|
D | dhdu_cmd.h | 47 extern int dhd_get(void *dhd, int cmd, void *buf, int len); 48 extern int dhd_set(void *dhd, int cmd, void *buf, int len);
|
/hardware/ti/omap3/liboverlay/ |
D | v4l2_utils.c | 510 static int is_mmaped(struct v4l2_buffer *buf) in is_mmaped() argument 512 return buf->flags == V4L2_BUF_FLAG_MAPPED; in is_mmaped() 515 static int is_queued(struct v4l2_buffer *buf) in is_queued() argument 518 return (buf->flags & V4L2_BUF_FLAG_QUEUED) || in is_queued() 519 (buf->flags & V4L2_BUF_FLAG_DONE); in is_queued() 522 static int is_dequeued(struct v4l2_buffer *buf) in is_dequeued() argument 525 return (!(buf->flags & V4L2_BUF_FLAG_QUEUED) && in is_dequeued() 526 !(buf->flags & V4L2_BUF_FLAG_DONE)); in is_dequeued() 529 int v4l2_overlay_query_buffer(int fd, int index, struct v4l2_buffer *buf) in v4l2_overlay_query_buffer() argument 533 memset(buf, 0, sizeof(struct v4l2_buffer)); in v4l2_overlay_query_buffer() [all …]
|
/hardware/msm7k/dspcrashd/ |
D | dspcrashd.c | 79 char buf[4096]; in dump_info() local 86 sprintf(buf,"%s: %s\n", *p, val); in dump_info() 87 write(fd, buf, strlen(buf)); in dump_info() 99 char buf[128*1024]; in dump_dsp_state() local 108 r = read(dsp, buf, sizeof(buf)); in dump_dsp_state() 115 write(fd, buf, r); in dump_dsp_state() 123 sprintf(buf,"*** WROTE DSP RAMDUMP TO %s ***\n",name); in dump_dsp_state() 124 write(fd, buf, strlen(buf)); in dump_dsp_state()
|
/hardware/broadcom/wlan/bcm4329/src/dhd/sys/ |
D | dhd_cdc.c | 69 unsigned char buf[WLC_IOCTL_MAXLEN + ROUND_UP_MARGIN]; member 114 dhdcdc_query_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf, uint len) in dhdcdc_query_ioctl() argument 127 if (cmd == WLC_GET_VAR && buf) in dhdcdc_query_ioctl() 129 if (!strcmp((char *)buf, "bcmerrorstr")) in dhdcdc_query_ioctl() 131 strncpy((char *)buf, bcmerrorstr(dhd->dongle_error), BCME_STRLEN); in dhdcdc_query_ioctl() 134 else if (!strcmp((char *)buf, "bcmerror")) in dhdcdc_query_ioctl() 136 *(int *)buf = dhd->dongle_error; in dhdcdc_query_ioctl() 149 if (buf) in dhdcdc_query_ioctl() 150 memcpy(prot->buf, buf, len); in dhdcdc_query_ioctl() 178 if (buf) in dhdcdc_query_ioctl() [all …]
|
D | dhd_common.c | 48 int wifi_get_mac_addr(unsigned char *buf); 68 extern int dhdcdc_set_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf, uint len); 70 extern int dhd_wl_ioctl(dhd_pub_t *dhd, uint cmd, char *buf, uint buflen); 154 dhd_dump(dhd_pub_t *dhdp, char *buf, int buflen) in dhd_dump() argument 161 bcm_binit(strbuf, buf, buflen); in dhd_dump() 439 dhd_ioctl(dhd_pub_t *dhd_pub, dhd_ioctl_t *ioc, void *buf, uint buflen) in dhd_ioctl() argument 445 if (!buf) return BCME_BADARG; in dhd_ioctl() 452 *(int*)buf = DHD_IOCTL_MAGIC; in dhd_ioctl() 459 *(int*)buf = DHD_IOCTL_VERSION; in dhd_ioctl() 468 for (arg = buf, arglen = buflen; *arg && arglen; arg++, arglen--); in dhd_ioctl() [all …]
|
D | dhd_custom_gpio.c | 49 int wifi_get_mac_addr(unsigned char *buf); 156 dhd_custom_get_mac_address(unsigned char *buf) in dhd_custom_get_mac_address() argument 161 if (!buf) in dhd_custom_get_mac_address() 166 ret = wifi_get_mac_addr(buf); in dhd_custom_get_mac_address() 173 bcopy((char *)&ea_example, buf, sizeof(struct ether_addr)); in dhd_custom_get_mac_address()
|
D | dhd_linux.c | 118 int wifi_get_mac_addr(unsigned char *buf) in wifi_get_mac_addr() argument 121 if (!buf) in wifi_get_mac_addr() 124 return wifi_control_data->get_mac_addr(buf); in wifi_get_mac_addr() 222 extern int dhdcdc_set_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf, uint len); 754 char *buf, *bufp; in _dhd_set_multicast_list() local 774 if (!(bufp = buf = MALLOC(dhd->pub.osh, buflen))) { in _dhd_set_multicast_list() 806 ioc.buf = buf; in _dhd_set_multicast_list() 810 ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_multicast_list() 817 MFREE(dhd->pub.osh, buf, buflen); in _dhd_set_multicast_list() 825 if (!(buf = MALLOC(dhd->pub.osh, buflen))) { in _dhd_set_multicast_list() [all …]
|
/hardware/libhardware_legacy/qemu_tracing/ |
D | qemu_tracing.c | 62 char buf[MAX_BUF_SIZE]; in qemu_add_mapping() local 69 sprintf(buf, "%x %s\n", addr, name); in qemu_add_mapping() 70 write(fd, buf, strlen(buf)); in qemu_add_mapping() 77 char buf[MAX_BUF_SIZE]; in qemu_remove_mapping() local 82 sprintf(buf, "%x\n", addr); in qemu_remove_mapping() 83 write(fd, buf, strlen(buf)); in qemu_remove_mapping()
|
/hardware/libhardware_legacy/wifi/ |
D | wifi.c | 225 char buf[2048]; in ensure_config_file_exists() local 249 while ((nread = read(srcfd, buf, sizeof(buf))) != 0) { in ensure_config_file_exists() 257 write(destfd, buf, nread); in ensure_config_file_exists() 423 int wifi_wait_for_event(char *buf, size_t buflen) in wifi_wait_for_event() argument 434 strncpy(buf, WPA_EVENT_TERMINATING " - connection closed", buflen-1); in wifi_wait_for_event() 435 buf[buflen-1] = '\0'; in wifi_wait_for_event() 436 return strlen(buf); in wifi_wait_for_event() 439 result = wpa_ctrl_recv(monitor_conn, buf, &nread); in wifi_wait_for_event() 442 strncpy(buf, WPA_EVENT_TERMINATING " - recv error", buflen-1); in wifi_wait_for_event() 443 buf[buflen-1] = '\0'; in wifi_wait_for_event() [all …]
|
/hardware/broadcom/wlan/bcm4329/src/shared/ |
D | bcmutils.c | 56 pktcopy(osl_t *osh, void *p, uint offset, int len, uchar *buf) in pktcopy() argument 76 bcopy(PKTDATA(osh, p) + offset, buf, n); in pktcopy() 77 buf += n; in pktcopy() 88 pktfrombuf(osl_t *osh, void *p, uint offset, int len, uchar *buf) in pktfrombuf() argument 105 bcopy(buf, PKTDATA(osh, p) + offset, n); in pktfrombuf() 106 buf += n; in pktfrombuf() 853 bcm_ether_ntoa(const struct ether_addr *ea, char *buf) in bcm_ether_ntoa() argument 856 snprintf(buf, 18, template, in bcm_ether_ntoa() 859 return (buf); in bcm_ether_ntoa() 863 bcm_ip_ntoa(struct ipv4_addr *ia, char *buf) in bcm_ip_ntoa() argument [all …]
|
/hardware/ti/wlan/wl1271/utils/ |
D | bmtrace_api.h | 50 int print_out_buffer(char *buf); 80 #define CL_TRACE_PRINT(buf) print_out_buffer(buf) argument 96 #define CL_TRACE_PRINT(buf) print_out_buffer(buf) argument 112 #define CL_TRACE_PRINT(buf) print_out_buffer(buf) argument 128 #define CL_TRACE_PRINT(buf) print_out_buffer(buf) argument 144 #define CL_TRACE_PRINT(buf) print_out_buffer(buf) argument 162 #define CL_TRACE_PRINT(buf) argument
|
/hardware/broadcom/wlan/bcm4329/src/include/ |
D | bcmendian.h | 76 bcmswap16_buf(uint16 *buf, uint len) in bcmswap16_buf() argument 81 *buf = bcmswap16(*buf); in bcmswap16_buf() 82 buf++; in bcmswap16_buf() 117 #define ltoh16_buf(buf, i) argument 118 #define htol16_buf(buf, i) argument 120 #define ltoh16_buf(buf, i) bcmswap16_buf((uint16 *)buf, i) argument 121 #define htol16_buf(buf, i) bcmswap16_buf((uint16 *)buf, i) argument
|
D | bcmutils.h | 64 char *buf; member 184 extern uint pktcopy(osl_t *osh, void *p, uint offset, int len, uchar *buf); 185 extern uint pktfrombuf(osl_t *osh, void *p, uint offset, int len, uchar *buf); 210 extern char *bcm_ether_ntoa(const struct ether_addr *ea, char *buf); 215 extern char *bcm_ip_ntoa(struct ipv4_addr *ia, char *buf); 226 #define bcmdumplog(buf, size) *buf = '\0' argument 227 #define bcmdumplogent(buf, idx) -1 argument 579 extern int bcm_format_flags(const bcm_bit_desc_t *bd, uint32 flags, char* buf, int len); 581 extern void prhex(const char *msg, uchar *buf, uint len); 583 extern char *bcm_brev_str(uint32 brev, char *buf); [all …]
|
/hardware/msm7k/librpc/ |
D | ops.c | 28 int r_read(int handle, char *buf, uint32 size) in r_read() argument 30 int rc = read((int) handle, (void *)buf, size); in r_read() 36 uint32_t *data = (uint32_t *)buf; in r_read() 46 int r_write (int handle, const char *buf, uint32 size) in r_write() argument 48 int rc = write(handle, (void *)buf, size); in r_write() 54 uint32_t *data = (uint32_t *)buf; in r_write()
|
D | svc_clnt_common.c | 8 extern int r_read(int handle, char *buf, uint32 size); 9 extern int r_write(int handle, const char *buf, uint32 size); 149 static bool_t xdr_std_send_bytes(xdr_s_type *xdr, const uint8 *buf, in xdr_std_send_bytes() argument 154 xdr->out_msg[xdr->out_next++] = *buf++; in xdr_std_send_bytes() 244 static bool_t xdr_std_recv_bytes(xdr_s_type *xdr, uint8 *buf, uint32 len) in xdr_std_recv_bytes() argument 247 if (buf) memcpy(buf, &xdr->in_msg[xdr->in_next], len); in xdr_std_recv_bytes()
|
/hardware/msm7k/libgralloc-qsd8k/tests/ |
D | pmemalloc_test.cpp | 323 uint8_t buf[0x300 + 0x100]; // Create a buffer to get memzero'd in TEST() local 324 pma.set_master_values(1234, buf); // Indicate that the pma has been successfully init'd in TEST() 335 ASSERT_EQ(uint8_t(0), buf[i]); in TEST() 350 uint8_t buf[0x300 + 0x100]; // Create a buffer to get memzero'd in TEST() local 351 pma.set_master_values(1234, buf); // Indicate that the pma has been successfully init'd in TEST() 362 ASSERT_EQ(0, buf[i]); in TEST() 389 uint8_t buf[0x300 + 0x100]; // Create a buffer to get memzero'd in TEST() local 390 pma.set_master_values(1234, buf); // Indicate that the pma has been successfully init'd in TEST() 422 uint8_t buf[0x300 + 0x100]; // Create a buffer to get memzero'd in TEST() local 423 pma.set_master_values(1234, buf); // Indicate that the pma has been successfully init'd in TEST() [all …]
|
/hardware/ril/mock-ril/src/cpp/ |
D | node_util.cpp | 51 v8::Local<v8::Value> Encode(const void *buf, size_t len, enum encoding encoding) { in Encode() argument 57 const unsigned char *cbuf = static_cast<const unsigned char*>(buf); in Encode() 69 v8::Local<v8::String> chunk = v8::String::New((const char*)buf, len); in Encode() 96 ssize_t DecodeWrite(char *buf, in DecodeWrite() argument 118 str->WriteUtf8(buf, buflen); in DecodeWrite() 123 str->WriteAscii(buf, 0, buflen); in DecodeWrite() 138 buf[i] = b[0]; in DecodeWrite()
|