Home
last modified time | relevance | path

Searched refs:pos (Results 101 – 125 of 151) sorted by relevance

1234567

/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_rw_cbor.c33 #define CPKT_CBOR_W_SZ(pos, cpkt) ((size_t)(pos) - (size_t)(cpkt)->data - (size_t)(cpkt)->offset) argument
35 #define ICTX_CBOR_R_SZ(pos, ictx) ((size_t)pos - (size_t)(ictx)->in_cpkt->data - (ictx)->offset) argument
/Zephyr-latest/kernel/
Dinit.c83 STRUCT_SECTION_FOREACH(k_object_assignment, pos) { in z_init_static_threads()
84 for (int i = 0; pos->objects[i] != NULL; i++) { in z_init_static_threads()
85 k_object_access_grant(pos->objects[i], in z_init_static_threads()
86 pos->thread); in z_init_static_threads()
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_udp_receiver.c59 int pos = 0; in build_reply() local
62 memcpy(&buf[pos], hdr, sizeof(struct zperf_udp_datagram)); in build_reply()
63 pos += sizeof(struct zperf_udp_datagram); in build_reply()
65 stat_hdr = (struct zperf_server_hdr *)&buf[pos]; in build_reply()
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/
Ddtlib.py570 for i, (pos, marker_type, ref) in enumerate(self._markers):
595 pos += 4
602 while pos != end:
603 num = int.from_bytes(self.value[pos:pos + elm_size],
610 pos += elm_size
612 if (pos != 0
618 if pos != len(self.value):
682 pos: int
1817 pos, marker_type, ref = marker
1821 res += prop.value[prev_pos:pos]
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/many_conns/src/
Dmain.c97 int pos = memcmp(buf->data, tx_data, buf->len); in recv_cb() local
99 if (pos != 0) { in recv_cb()
100 LOG_ERR("RX data doesn't match TX: pos %d", pos); in recv_cb()
/Zephyr-latest/tests/modules/thrift/ThriftTest/src/
Dserver.hpp190 map<int32_t, int32_t> pos; in testMapMap() local
195 pos.insert(make_pair(i, i)); in testMapMap()
199 mapmap.insert(make_pair(4, pos)); in testMapMap()
/Zephyr-latest/include/zephyr/display/
Dcfb.h113 int cfb_draw_point(const struct device *dev, const struct cfb_position *pos);
/Zephyr-latest/subsys/bluetooth/host/classic/
Dat.h93 uint8_t pos; member
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dmcc_test.c155 static void mcc_read_track_position_cb(struct bt_conn *conn, int err, int32_t pos) in mcc_read_track_position_cb() argument
162 g_pos = pos; in mcc_read_track_position_cb()
166 static void mcc_set_track_position_cb(struct bt_conn *conn, int err, int32_t pos) in mcc_set_track_position_cb() argument
173 g_pos = pos; in mcc_set_track_position_cb()
1666 static void test_write_track_position(int32_t pos) in test_write_track_position() argument
1671 err = bt_mcc_set_track_position(NULL, pos); in test_write_track_position()
1680 err = bt_mcc_set_track_position(default_conn, pos); in test_write_track_position()
1687 if (g_pos != pos) { in test_write_track_position()
2503 int32_t pos = g_pos + 1200; /*12 seconds further into the track */ in test_main() local
2505 test_write_track_position(pos); in test_main()
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/
Dbtp_mcp.h34 int32_t pos; member
203 int32_t pos; member
/Zephyr-latest/drivers/gpio/
Dgpio_smartbond.c297 int pos = find_lsb_set(two_edge_triggered) - 1; in gpio_smartbond_isr() local
299 two_edge_triggered &= ~BIT(pos); in gpio_smartbond_isr()
301 gpio_smartbond_arm_next_edge_interrupt(dev, BIT(pos)); in gpio_smartbond_isr()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/stress/src/
Dmain.c139 int pos = memcmp(buf->data, tx_data, buf->len); in recv_cb() local
141 if (pos != 0) { in recv_cb()
142 LOG_ERR("RX data doesn't match TX: pos %d", pos); in recv_cb()
/Zephyr-latest/drivers/modem/
Dwncm14a2a.c401 uint16_t len = 0U, pos = 0U; in net_buf_findcrlf() local
403 while (buf && !is_crlf(*(buf->data + pos))) { in net_buf_findcrlf()
404 if (pos + 1 >= buf->len) { in net_buf_findcrlf()
407 pos = 0U; in net_buf_findcrlf()
409 pos++; in net_buf_findcrlf()
413 if (buf && is_crlf(*(buf->data + pos))) { in net_buf_findcrlf()
414 len += pos; in net_buf_findcrlf()
415 *offset = pos; in net_buf_findcrlf()
Dsimcom-sim7080.c2051 size_t len = 0, pos = 0; in net_buf_find_crlf() local
2065 pos = skip; in net_buf_find_crlf()
2067 while (frag && !is_crlf(frag->data + pos, frag->len - pos)) { in net_buf_find_crlf()
2068 if (pos + 1 >= frag->len) { in net_buf_find_crlf()
2071 pos = 0U; in net_buf_find_crlf()
2073 pos++; in net_buf_find_crlf()
2077 if (frag && is_crlf(frag->data + pos, frag->len - pos)) { in net_buf_find_crlf()
2078 len += pos; in net_buf_find_crlf()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_mcp.c161 static void btp_send_mcp_track_position_ev(struct bt_conn *conn, uint8_t status, int32_t pos) in btp_send_mcp_track_position_ev() argument
168 ev.pos = sys_cpu_to_le32(pos); in btp_send_mcp_track_position_ev()
456 static void mcc_read_track_position_cb(struct bt_conn *conn, int err, int32_t pos) in mcc_read_track_position_cb() argument
460 btp_send_mcp_track_position_ev(conn, err ? BTP_STATUS_FAILED : BTP_STATUS_SUCCESS, pos); in mcc_read_track_position_cb()
463 static void mcc_set_track_position_cb(struct bt_conn *conn, int err, int32_t pos) in mcc_set_track_position_cb() argument
467 btp_send_mcp_track_position_ev(conn, err ? BTP_STATUS_FAILED : BTP_STATUS_SUCCESS, pos); in mcc_set_track_position_cb()
774 uint32_t pos = sys_le32_to_cpu(cp->pos); in mcp_track_position_set() local
786 err = bt_mcc_set_track_position(conn, pos); in mcp_track_position_set()
/Zephyr-latest/drivers/usb/common/nrf_usbd_common/
Dnrf_usbd_common.c841 uint8_t pos; in usbd_dmareq_process() local
845 pos = usbd_dma_scheduler_algorithm(req & USBD_EPISO_BIT_MASK); in usbd_dmareq_process()
847 pos = usbd_dma_scheduler_algorithm(req); in usbd_dmareq_process()
849 nrf_usbd_common_ep_t ep = bit2ep(pos); in usbd_dmareq_process()
877 m_ep_dma_waiting &= ~(1U << pos); in usbd_dmareq_process()
898 m_ep_ready &= ~(1U << pos); in usbd_dmareq_process()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dmcc.c137 static void mcc_read_track_position_cb(struct bt_conn *conn, int err, int32_t pos) in mcc_read_track_position_cb() argument
144 shell_print(ctx_shell, "Track Position: %d", pos); in mcc_read_track_position_cb()
149 static void mcc_set_track_position_cb(struct bt_conn *conn, int err, int32_t pos) in mcc_set_track_position_cb() argument
156 shell_print(ctx_shell, "Track Position: %d", pos); in mcc_set_track_position_cb()
803 long pos; in cmd_mcc_set_track_position() local
805 pos = shell_strtol(argv[1], 0, &result); in cmd_mcc_set_track_position()
812 if (sizeof(long) != sizeof(int32_t) && !IN_RANGE(pos, INT32_MIN, INT32_MAX)) { in cmd_mcc_set_track_position()
813 shell_error(sh, "Invalid pos: %ld", pos); in cmd_mcc_set_track_position()
818 result = bt_mcc_set_track_position(default_conn, pos); in cmd_mcc_set_track_position()
/Zephyr-latest/drivers/adc/
Dadc_ads114s0x.c84 #define ADS114S0X_REGISTER_GET_VALUE(value, pos, length) \ argument
85 FIELD_GET(GENMASK(pos + length - 1, pos), value)
86 #define ADS114S0X_REGISTER_SET_VALUE(target, value, pos, length) \ argument
87 target &= ~GENMASK(pos + length - 1, pos); \
88 target |= FIELD_PREP(GENMASK(pos + length - 1, pos), value)
/Zephyr-latest/drivers/sensor/bosch/bmi08x/
Dbmi08x.h559 int bmi08x_accel_reg_field_update(const struct device *dev, uint8_t reg_addr, uint8_t pos,
571 int bmi08x_gyro_reg_field_update(const struct device *dev, uint8_t reg_addr, uint8_t pos,
/Zephyr-latest/subsys/bluetooth/audio/
Dmcc.c282 int32_t pos = 0; in mcc_track_position_cb() local
286 } else if ((!data) || (length != sizeof(pos))) { in mcc_track_position_cb()
290 pos = sys_get_le32((uint8_t *)data); in mcc_track_position_cb()
291 LOG_DBG("Track position: %d", pos); in mcc_track_position_cb()
292 LOG_HEXDUMP_DBG(data, sizeof(pos), "Track position"); in mcc_track_position_cb()
296 mcc_cb->read_track_position(conn, cb_err, pos); in mcc_track_position_cb()
319 int32_t pos = 0; in mcs_write_track_position_cb() local
324 } else if (!params->data || params->length != sizeof(pos)) { in mcs_write_track_position_cb()
328 pos = sys_get_le32((uint8_t *)params->data); in mcs_write_track_position_cb()
329 LOG_DBG("Track position: %d", pos); in mcs_write_track_position_cb()
[all …]
/Zephyr-latest/subsys/fb/
Dcfb.c297 int cfb_draw_point(const struct device *dev, const struct cfb_position *pos) in cfb_draw_point() argument
301 draw_point(fb, pos->x, pos->y); in cfb_draw_point()
/Zephyr-latest/tests/net/lib/mdns_responder/src/
Dmain.c368 res = net_buf_data_match(pkt->cursor.buf, pkt->cursor.pos - pkt->cursor.buf->data, in check_service_type_enum_resp()
379 res = net_buf_data_match(pkt->cursor.buf, pkt->cursor.pos - pkt->cursor.buf->data, payload, in check_service_type_enum_resp()
/Zephyr-latest/soc/nordic/nrf54h/bicr/
Dbicrgen.py84 msk, pos = self._msk_pos(field)
86 return (raw & msk) >> pos
92 msk, pos = self._msk_pos(field)
95 raw |= (value << pos) & msk
/Zephyr-latest/samples/bluetooth/iso_connected_benchmark/src/
Dmain.c518 size_t pos = 0; in get_chars() local
520 while (pos < max_size) { in get_chars()
527 buffer[pos++] = c; in get_chars()
530 buffer[pos] = '\0'; in get_chars()
532 return pos; in get_chars()
/Zephyr-latest/include/zephyr/net/
Dnet_pkt.h80 uint8_t *pos; member
2172 backup->pos = pkt->cursor.pos; in net_pkt_cursor_backup()
2185 pkt->cursor.pos = backup->pos; in net_pkt_cursor_restore()
2197 return pkt->cursor.pos; in net_pkt_cursor_get_pos()

1234567