Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 25 of 562) sorted by relevance

12345678910>>...23

/hardware/google/aemu/base/
DAlignedBuf_unittest.cpp38 AlignedBuf<uint32_t, 64> buf(numItems); in TEST() local
39 checkAligned(64, buf.data()); in TEST()
40 EXPECT_EQ(numItems, buf.size()); in TEST()
44 AlignedBuf<uint32_t, 256> buf(numItems); in TEST() local
45 checkAligned(256, buf.data()); in TEST()
46 EXPECT_EQ(numItems, buf.size()); in TEST()
50 AlignedBuf<uint32_t, 4096> buf(numItems); in TEST() local
51 checkAligned(4096, buf.data()); in TEST()
52 EXPECT_EQ(numItems, buf.size()); in TEST()
59 AlignedBuf<uint32_t, 64> buf(numManyItems); in TEST() local
[all …]
/hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib/
Ddriver_cmd_wext.c77 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 …]
Ddriver_cmd_nl80211.c69 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/synaptics/wlan/synadhd/wpa_supplicant_8_lib/
Ddriver_cmd_wext.c77 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 …]
Ddriver_cmd_nl80211.c69 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/qcom/wlan/legacy/qcwcn/wpa_supplicant_8_lib/
Ddriver_cmd_nl80211.c39 char *buf; member
67 int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, in wpa_driver_nl80211_driver_cmd() argument
87 ret = os_snprintf(buf, buf_len, in wpa_driver_nl80211_driver_cmd()
92 os_memcpy(buf, cmd, strlen(cmd) + 1); in wpa_driver_nl80211_driver_cmd()
95 priv_cmd.buf = buf; in wpa_driver_nl80211_driver_cmd()
113 ret = strlen(buf); in wpa_driver_nl80211_driver_cmd()
116 __func__, MAC2STR(buf)); in wpa_driver_nl80211_driver_cmd()
118 wpa_printf(MSG_DEBUG, "%s: P2P: %s ", __func__, buf); in wpa_driver_nl80211_driver_cmd()
120 wpa_printf(MSG_DEBUG, "%s: P2P: %s ", __func__, buf); in wpa_driver_nl80211_driver_cmd()
122 wpa_printf(MSG_DEBUG, "%s: %s ", __func__, buf); in wpa_driver_nl80211_driver_cmd()
[all …]
/hardware/st/secure_element2/secure_element/1.0/esehal/src/
Diso7816_t1.c53 t1_init_recv_window(struct t1_state *t1, void *buf, size_t n) in t1_init_recv_window() argument
55 t1->recv.start = t1->recv.end = buf; in t1_init_recv_window()
66 t1_recv_window_append(struct t1_state *t1, const void *buf, int n) in t1_recv_window_append() argument
73 memcpy(t1->recv.end, buf, (size_t)n); in t1_recv_window_append()
92 t1_init_send_window(struct t1_state *t1, const void *buf, size_t n) in t1_init_send_window() argument
94 t1->send.start = buf; in t1_init_send_window()
111 do_chk(struct t1_state *t1, uint8_t *buf) in do_chk() argument
113 int n = 3 + buf[2]; in do_chk()
117 buf[n] = lrc8(buf, n); in do_chk()
122 uint16_t crc = crc_ccitt(0xFFFF, buf, n); in do_chk()
[all …]
/hardware/st/secure_element2/secure_element/esehal/src/
Diso7816_t1.c53 t1_init_recv_window(struct t1_state *t1, void *buf, size_t n) in t1_init_recv_window() argument
55 t1->recv.start = t1->recv.end = buf; in t1_init_recv_window()
66 t1_recv_window_append(struct t1_state *t1, const void *buf, int n) in t1_recv_window_append() argument
72 memcpy(t1->recv.end, buf, (size_t)n); in t1_recv_window_append()
91 t1_init_send_window(struct t1_state *t1, const void *buf, size_t n) in t1_init_send_window() argument
93 t1->send.start = buf; in t1_init_send_window()
110 do_chk(struct t1_state *t1, uint8_t *buf) in do_chk() argument
112 int n = 3 + buf[2]; in do_chk()
116 buf[n] = lrc8(buf, n); in do_chk()
121 uint16_t crc = crc_ccitt(0xFFFF, buf, n); in do_chk()
[all …]
/hardware/google/pixel/pixelstats/
DWirelessChargeStats.cpp112 int32_t buf[11] = {0}; in CalculateWirelessChargeStats() local
113 if (sscanf(line.c_str(), "%d:%d, %d,%d,%d, %d,%d, %d,%d,%d,%d", &buf[0], &buf[1], &buf[2], in CalculateWirelessChargeStats()
114 &buf[3], &buf[4], &buf[5], &buf[6], &buf[7], &buf[8], &buf[9], &buf[10]) == 11) { in CalculateWirelessChargeStats()
115 const int32_t soc = buf[0]; in CalculateWirelessChargeStats()
119 const int32_t alignment = buf[6]; in CalculateWirelessChargeStats()
124 CalculateWirelessChargeMetrics(buf[2], buf[3], buf[4], buf[5], buf[6]); in CalculateWirelessChargeStats()
/hardware/interfaces/automotive/can/1.0/default/libnl++/
DAttributes.cpp45 Attributes Attributes::parse(Buffer<nlattr> buf) { in parse() argument
46 return buf.data<nlattr>(); in parse()
50 std::string Attributes::parse(Buffer<nlattr> buf) { in parse() argument
51 const auto rawString = buf.data<char>().getRaw(); in parse()
60 static T parseUnsigned(Buffer<nlattr> buf) { in parseUnsigned() argument
61 return buf.data<T>().copyFirst(); in parseUnsigned()
65 uint8_t Attributes::parse(Buffer<nlattr> buf) { in parse() argument
66 return parseUnsigned<uint8_t>(buf); in parse()
70 uint16_t Attributes::parse(Buffer<nlattr> buf) { in parse() argument
71 return parseUnsigned<uint16_t>(buf); in parse()
[all …]
/hardware/knowles/athletico/sound_trigger_hal/tests/
Dcrash_event_logger.c140 int split_crash_dump_buffer(unsigned char *buf, const int len, in split_crash_dump_buffer() argument
152 if (buf == NULL || time_stamp == NULL || len <= 0) { in split_crash_dump_buffer()
159 file_index = buf[tot_len]; in split_crash_dump_buffer()
161 size = buf[tot_len + 8] | in split_crash_dump_buffer()
162 buf[tot_len + 9] << 8 | in split_crash_dump_buffer()
163 buf[tot_len + 10] << 16 | in split_crash_dump_buffer()
164 buf[tot_len + 11] << 24; in split_crash_dump_buffer()
175 dump_crash_reason(buf, len, buf + tot_len, size, time_stamp, in split_crash_dump_buffer()
185 ptr = buf + tot_len; in split_crash_dump_buffer()
202 unsigned char *buf; in split_crash_dump_file() local
[all …]
/hardware/libhardware/tests/hwc/
Dcnativewindow.c83 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 …]
/hardware/qcom/gps/msm8994/loc_api/libloc_api-rpc/gen-3200/
Dloc_api_xdr.c11 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/msm8994/loc_api/libloc_api-rpc/gen-1240/
Dloc_api_xdr.c11 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 …]
Dloc_api_common_xdr.c11 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 …]
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc/gen-1240/
Dloc_api_xdr.c11 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 …]
Dloc_api_common_xdr.c11 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 …]
/hardware/qcom/gps/loc_api/libloc_api-rpc/gen-1240/
Dloc_api_xdr.c11 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 …]
Dloc_api_common_xdr.c11 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 …]
/hardware/qcom/gps/loc_api/libloc_api-rpc/gen-3200/
Dloc_api_xdr.c11 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/msm8084/loc_api/libloc_api-rpc/gen-3200/
Dloc_api_xdr.c11 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/interfaces/camera/common/default/include/
DHandleImporter.h49 void* lock(buffer_handle_t& buf, uint64_t cpuUsage, size_t size);
52 void* lock(buffer_handle_t& buf, uint64_t cpuUsage, const IMapper::Rect& accessRegion);
55 YCbCrLayout lockYCbCr(buffer_handle_t& buf, uint64_t cpuUsage,
59 status_t getMonoPlanarStrideBytes(buffer_handle_t& buf, uint32_t* stride /*out*/);
61 int unlock(buffer_handle_t& buf); // returns release fence
64 bool isSmpte2086Present(const buffer_handle_t& buf);
65 bool isSmpte2094_10Present(const buffer_handle_t& buf);
66 bool isSmpte2094_40Present(const buffer_handle_t& buf);
75 YCbCrLayout lockYCbCrInternal(const sp<M> mapper, buffer_handle_t& buf, uint64_t cpuUsage,
78 int unlockInternal(const sp<M> mapper, buffer_handle_t& buf);
/hardware/interfaces/automotive/can/1.0/default/libnl++/include/libnl++/
DMessage.h45 static std::optional<Message<T>> parse(Buffer<nlmsghdr> buf) { in parse() argument
46 const auto& [nlOk, nlHeader] = buf.getFirst(); in parse()
49 const auto& [dataOk, dataHeader] = buf.data<T>().getFirst(); in parse()
52 const auto attributes = buf.data<nlattr>(sizeof(T)); in parse()
54 return Message<T>(buf, nlHeader, dataHeader, attributes); in parse()
65 static std::optional<Message<T>> parse(Buffer<nlmsghdr> buf, in parse() argument
67 const auto& [nlOk, nlHeader] = buf.getFirst(); // we're doing it twice, but it's fine in parse()
72 return parse(buf); in parse()
/hardware/invensense/65xx/libsensors_iio/
DMPLSupport.cpp32 char buf[sizeof(long) * 4]; in inv_read_data() local
40 memset(buf, 0, sizeof(buf)); in inv_read_data()
41 count = read_attribute_sensor(fd, buf, sizeof(buf)); in inv_read_data()
46 count = sscanf(buf, "%ld", data); in inv_read_data()
109 char buf[80]; in write_attribute_sensor() local
110 sprintf(buf, "%ld", data); in write_attribute_sensor()
111 num_b = write(fd, buf, strlen(buf) + 1); in write_attribute_sensor()
132 char buf[80]; in write_attribute_sensor_continuous() local
133 sprintf(buf, "%ld", data); in write_attribute_sensor_continuous()
134 num_b = write(fd, buf, strlen(buf) + 1); in write_attribute_sensor_continuous()
[all …]
/hardware/qcom/display/msm8960/liboverlay/
DoverlayUtils.cpp329 void getDump(char *buf, size_t len, const char *prefix, in getDump() argument
336 strncat(buf, str, strlen(str)); in getDump()
337 getDump(buf, len, "\tsrc(msmfb_img)", ov.src); in getDump()
338 getDump(buf, len, "\tsrc_rect(mdp_rect)", ov.src_rect); in getDump()
339 getDump(buf, len, "\tdst_rect(mdp_rect)", ov.dst_rect); in getDump()
342 void getDump(char *buf, size_t len, const char *prefix, in getDump() argument
349 strncat(buf, str_src, strlen(str_src)); in getDump()
352 void getDump(char *buf, size_t len, const char *prefix, in getDump() argument
358 strncat(buf, str_rect, strlen(str_rect)); in getDump()
361 void getDump(char *buf, size_t len, const char *prefix, in getDump() argument
[all …]

12345678910>>...23