Home
last modified time | relevance | path

Searched refs:pos (Results 126 – 150 of 151) sorted by relevance

1234567

/Zephyr-latest/soc/intel/intel_adsp/tools/
Dcavstool.py876 pos = hda_str.mem.tell()
878 if pos + buf_len >= hda_str.buf_len*2:
879 read_lens[0] = hda_str.buf_len*2 - pos
882 assert (read_lens[0] + pos) <= (hda_str.buf_len*2)
893 pos = hda_str.mem.tell()
/Zephyr-latest/drivers/sensor/bosch/bmi08x/
Dbmi08x_gyro.c123 int bmi08x_gyro_reg_field_update(const struct device *dev, uint8_t reg_addr, uint8_t pos, in bmi08x_gyro_reg_field_update() argument
134 return bmi08x_gyro_byte_write(dev, reg_addr, (old_val & ~mask) | ((val << pos) & mask)); in bmi08x_gyro_reg_field_update()
Dbmi08x_accel.c255 int bmi08x_accel_reg_field_update(const struct device *dev, uint8_t reg_addr, uint8_t pos, in bmi08x_accel_reg_field_update() argument
266 return bmi08x_accel_byte_write(dev, reg_addr, (old_val & ~mask) | ((val << pos) & mask)); in bmi08x_accel_reg_field_update()
/Zephyr-latest/subsys/net/lib/dns/
Ddns_pack.h422 struct dns_msg_t *dns_msg, uint16_t pos);
Dresolve.c968 uint16_t pos = dns_msg->response_position; in dns_validate_msg() local
978 dns_msg, pos); in dns_validate_msg()
/Zephyr-latest/samples/bluetooth/bap_broadcast_sink/src/
Dmain.c1158 for (size_t pos = 0; pos < str_len; pos++) { in is_substring() local
1159 if (pos + sub_str_len > str_len) { in is_substring()
1163 if (strncasecmp(substr, &str[pos], sub_str_len) == 0) { in is_substring()
/Zephyr-latest/subsys/net/ip/
Droute.c769 int pos = mcast_route_iface_lookup(entry, iface); in net_route_mcast_iface_del() local
771 if (pos < 0) { in net_route_mcast_iface_del()
775 entry->ifaces[pos] = NULL; in net_route_mcast_iface_del()
Dtcp.c100 static int tcp_pkt_linearize(struct net_pkt *pkt, size_t pos, size_t len) in tcp_pkt_linearize() argument
106 if (net_pkt_get_len(pkt) < (pos + len)) { in tcp_pkt_linearize()
108 net_pkt_get_len(pkt), pos + len); in tcp_pkt_linearize()
123 net_buf_linearize(buf->data, net_buf_max_len(buf), pkt->frags, pos, len); in tcp_pkt_linearize()
126 len1 = first->len - (pkt->cursor.pos - pkt->cursor.buf->data); in tcp_pkt_linearize()
1637 static int tcp_pkt_peek(struct net_pkt *to, struct net_pkt *from, size_t pos, in tcp_pkt_peek() argument
1643 if (pos) { in tcp_pkt_peek()
1645 net_pkt_skip(from, pos); in tcp_pkt_peek()
/Zephyr-latest/tests/net/6lo/src/
Dmain.c465 uint8_t bytes, pos; in create_pkt() local
501 pos = 0U; in create_pkt()
532 memcpy(net_buf_add(frag, copy), &user_data[pos], copy); in create_pkt()
534 pos += copy; in create_pkt()
/Zephyr-latest/subsys/shell/
Dshell_ops.c122 static uint16_t shift_calc(const char *str, uint16_t pos, uint16_t len, int16_t sign) in shift_calc() argument
129 idx = pos + ret * sign; in shift_calc()
/Zephyr-latest/drivers/modem/
Dhl7800.c1517 uint16_t len = 0U, pos = 0U; in net_buf_findcrlf() local
1519 while (buf && !is_crlf(*(buf->data + pos))) { in net_buf_findcrlf()
1520 if (pos + 1 >= buf->len) { in net_buf_findcrlf()
1523 pos = 0U; in net_buf_findcrlf()
1525 pos++; in net_buf_findcrlf()
1529 if (buf && is_crlf(*(buf->data + pos))) { in net_buf_findcrlf()
1530 len += pos; in net_buf_findcrlf()
3428 char *pos; in on_cmd_network_report_query() local
3433 pos = strchr(value, ','); in on_cmd_network_report_query()
3434 if (pos) { in on_cmd_network_report_query()
[all …]
/Zephyr-latest/scripts/
Dcheckpatch.pl2287 my $pos = 0;
2300 for ($pos = 0; $pos < $len; $pos++) {
2301 my $string = substr($line, $pos);
2303 $pos += length($1) - 1;
2304 } elsif (substr($line, $pos, 1) eq '(') {
2305 $last_openparen = $pos;
3388 my $pos = pos_last_openparen($rest);
3389 if ($pos >= 0) {
3394 "\t" x ($pos / $tabsize) .
3395 " " x ($pos % $tabsize);
[all …]
/Zephyr-latest/include/zephyr/data/
Djson.h63 char *pos; member
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dmedia_controller_test.c1353 int32_t pos = g_pos + 1200; /*12 seconds further into the track */ in test_media_controller_player() local
1356 err = media_proxy_ctrl_set_track_position(current_player, pos); in test_media_controller_player()
1363 if (g_pos != pos) { in test_media_controller_player()
/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/src/sub_sets/
Disoal_test_tx.c21 size_t pos; member
44 size_t pos = custom_source_pdu_alloc_test_pdu_buffers.pos; in custom_source_pdu_alloc_test() local
48 zassert_true(pos < buffer_size, in custom_source_pdu_alloc_test()
51 pos); in custom_source_pdu_alloc_test()
53 &custom_source_pdu_alloc_test_pdu_buffers.out[pos], in custom_source_pdu_alloc_test()
56 custom_source_pdu_alloc_test_pdu_buffers.pos++; in custom_source_pdu_alloc_test()
89 size_t pos; member
112 size_t pos = custom_source_pdu_write_test_sdu_payloads.pos; in check_next_custom_source_pdu_write_test_sdu_payload() local
115 zassert_true(pos < buffer_size, "%u exceeds received SDU payloads %u", pos, buffer_size); in check_next_custom_source_pdu_write_test_sdu_payload()
117 custom_source_pdu_write_test_sdu_payloads.out_size[pos], in check_next_custom_source_pdu_write_test_sdu_payload()
[all …]
/Zephyr-latest/tests/net/net_pkt/src/
Dmain.c95 if (!pkt || !pkt->cursor.buf || !pkt->cursor.pos) { in pkt_print_cursor()
99 pkt->cursor.pos - pkt->cursor.buf->data, in pkt_print_cursor()
100 pkt->cursor.pos, pkt->cursor.buf, in pkt_print_cursor()
/Zephyr-latest/arch/x86/
Dgen_mmu.py87 def bit(pos): argument
89 return 1 << pos
/Zephyr-latest/lib/os/
Dcbprintf_packaged.c763 uint8_t pos = str_ptr_pos[i] & STR_POS_MASK; in cbvprintf_package() local
770 *(uint8_t *)buf = pos; in cbvprintf_package()
Dcbprintf_complete.c986 size_t pos = 4 * (FRACTION_HEX - precision) - 1; in encode_float() local
987 uint64_t mask = BIT64(pos); in encode_float()
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Dbmi160.h536 uint8_t pos, uint8_t mask, uint8_t val);
Dbmi160.c176 uint8_t pos, uint8_t mask, uint8_t val) in bmi160_reg_field_update() argument
185 (old_val & ~mask) | ((val << pos) & mask)); in bmi160_reg_field_update()
/Zephyr-latest/subsys/bluetooth/audio/
Dmedia_proxy.c346 static void mcc_read_track_position_cb(struct bt_conn *conn, int err, int32_t pos) in mcc_read_track_position_cb() argument
353 mprx.ctrlr.cbs->track_position_recv(&mprx.remote_player, err, pos); in mcc_read_track_position_cb()
361 static void mcc_set_track_position_cb(struct bt_conn *conn, int err, int32_t pos) in mcc_set_track_position_cb() argument
368 mprx.ctrlr.cbs->track_position_write(&mprx.remote_player, err, pos); in mcc_set_track_position_cb()
/Zephyr-latest/drivers/wifi/nrf_wifi/src/
Dwpa_supp_if.c163 unsigned char *pos = NULL; in nrf_wifi_wpa_supp_event_proc_scan_res() local
225 pos = (unsigned char *)(r + 1); in nrf_wifi_wpa_supp_event_proc_scan_res()
228 memcpy(pos, ie, ie_len); in nrf_wifi_wpa_supp_event_proc_scan_res()
230 pos += ie_len; in nrf_wifi_wpa_supp_event_proc_scan_res()
236 memcpy(pos, beacon_ie, beacon_ie_len); in nrf_wifi_wpa_supp_event_proc_scan_res()
/Zephyr-latest/subsys/bluetooth/host/shell/
Dbt.c293 for (size_t pos = 0; pos < str_len; pos++) { in is_substring() local
294 if (pos + sub_str_len > str_len) { in is_substring()
298 if (strncasecmp(substr, &str[pos], sub_str_len) == 0) { in is_substring()
/Zephyr-latest/subsys/bluetooth/controller/hci/
Dhci.c5253 uint32_t file_name_len = 0U, pos = 0U; local
5260 pos = file_name_len + 1;
5264 file_path += pos;
5265 file_name_len -= pos;

1234567