Home
last modified time | relevance | path

Searched refs:pb (Results 1 – 18 of 18) sorted by relevance

/Zephyr-latest/subsys/ipc/ipc_service/lib/
Dpbuf.c62 void pbuf_native_addr_remap(struct pbuf *pb) in pbuf_native_addr_remap() argument
64 native_emb_addr_remap((void **)&pb->cfg->rd_idx_loc); in pbuf_native_addr_remap()
65 native_emb_addr_remap((void **)&pb->cfg->wr_idx_loc); in pbuf_native_addr_remap()
66 native_emb_addr_remap((void **)&pb->cfg->data_loc); in pbuf_native_addr_remap()
70 int pbuf_tx_init(struct pbuf *pb) in pbuf_tx_init() argument
72 if (validate_cfg(pb->cfg) != 0) { in pbuf_tx_init()
76 pbuf_native_addr_remap(pb); in pbuf_tx_init()
80 pb->data.wr_idx = 0; in pbuf_tx_init()
81 pb->data.rd_idx = 0; in pbuf_tx_init()
84 *(pb->cfg->wr_idx_loc) = pb->data.wr_idx; in pbuf_tx_init()
[all …]
/Zephyr-latest/lib/os/
Dspsc_pbuf.c62 static uint32_t *get_rd_idx_loc(struct spsc_pbuf *pb, uint32_t flags) in get_rd_idx_loc() argument
64 return &pb->common.rd_idx; in get_rd_idx_loc()
67 static uint32_t *get_wr_idx_loc(struct spsc_pbuf *pb, uint32_t flags) in get_wr_idx_loc() argument
71 return &pb->ext.cache.wr_idx; in get_wr_idx_loc()
74 return &pb->ext.nocache.wr_idx; in get_wr_idx_loc()
77 static uint8_t *get_data_loc(struct spsc_pbuf *pb, uint32_t flags) in get_data_loc() argument
81 return pb->ext.cache.data; in get_data_loc()
84 return pb->ext.nocache.data; in get_data_loc()
119 struct spsc_pbuf *pb = buf; in spsc_pbuf_init() local
120 uint32_t *wr_idx_loc = get_wr_idx_loc(pb, flags); in spsc_pbuf_init()
[all …]
/Zephyr-latest/tests/lib/spsc_pbuf/src/
Dmain.c127 static void packet_write(struct spsc_pbuf *pb, in packet_write() argument
137 rv = spsc_pbuf_alloc(pb, len, &buf); in packet_write()
150 spsc_pbuf_commit(pb, outlen); in packet_write()
156 static void packet_consume(struct spsc_pbuf *pb, in packet_consume() argument
164 rv = spsc_pbuf_claim(pb, &buf); in packet_consume()
175 spsc_pbuf_free(pb, rv); in packet_consume()
183 struct spsc_pbuf *pb = spsc_pbuf_init(buffer, sizeof(buffer), 0); in ZTEST() local
184 uint32_t capacity = spsc_pbuf_capacity(pb); in ZTEST()
189 PACKET_WRITE(pb, 0, 0, 0, -EINVAL); in ZTEST()
190 spsc_pbuf_commit(pb, 0); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/sys/
Dspsc_pbuf.h123 static inline uint32_t spsc_pbuf_capacity(struct spsc_pbuf *pb) in spsc_pbuf_capacity() argument
125 return pb->common.len - sizeof(uint32_t); in spsc_pbuf_capacity()
162 int spsc_pbuf_write(struct spsc_pbuf *pb, const char *buf, uint16_t len);
192 int spsc_pbuf_alloc(struct spsc_pbuf *pb, uint16_t len, char **buf);
203 void spsc_pbuf_commit(struct spsc_pbuf *pb, uint16_t len);
222 int spsc_pbuf_read(struct spsc_pbuf *pb, char *buf, uint16_t len);
241 uint16_t spsc_pbuf_claim(struct spsc_pbuf *pb, char **buf);
251 void spsc_pbuf_free(struct spsc_pbuf *pb, uint16_t len);
264 int spsc_pbuf_get_utilization(struct spsc_pbuf *pb);
/Zephyr-latest/tests/subsys/ipc/pbuf/src/
Dmain.c20 static void print_pbuf_info(struct pbuf *pb) in print_pbuf_info() argument
23 printk("cfg->rd_idx_loc: %p, val: %u\n", pb->cfg->rd_idx_loc, *(pb->cfg->rd_idx_loc)); in print_pbuf_info()
24 printk("cfg->wr_idx_loc: %p, val: %u\n", pb->cfg->wr_idx_loc, *(pb->cfg->wr_idx_loc)); in print_pbuf_info()
25 printk("cfg->data_loc: %p\n", pb->cfg->data_loc); in print_pbuf_info()
26 printk("cfg->len: %u\n", pb->cfg->len); in print_pbuf_info()
27 printk("cfg->dcache_alignment: %u\n", pb->cfg->dcache_alignment); in print_pbuf_info()
29 printk("data.rd_idx: %u\n", pb->data.rd_idx); in print_pbuf_info()
30 printk("data.wr_idx: %u\n", pb->data.wr_idx); in print_pbuf_info()
53 static struct pbuf pb = { in ZTEST() local
61 zassert_equal(pbuf_tx_init(&pb), 0); in ZTEST()
[all …]
/Zephyr-latest/samples/boards/nordic/battery/src/
Dbattery.c208 const struct battery_level_point *pb = curve; in battery_level_pptt() local
210 if (batt_mV >= pb->lvl_mV) { in battery_level_pptt()
212 return pb->lvl_pptt; in battery_level_pptt()
215 while ((pb->lvl_pptt > 0) in battery_level_pptt()
216 && (batt_mV < pb->lvl_mV)) { in battery_level_pptt()
217 ++pb; in battery_level_pptt()
219 if (batt_mV < pb->lvl_mV) { in battery_level_pptt()
221 return pb->lvl_pptt; in battery_level_pptt()
225 const struct battery_level_point *pa = pb - 1; in battery_level_pptt()
227 return pb->lvl_pptt in battery_level_pptt()
[all …]
/Zephyr-latest/scripts/tests/twister/
Dtest_runner.py799 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
803 pb.log_info(filename, inline_logs)
859 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
866 pb.log_info_file(None)
1522 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
1523 pb.options = mock.Mock()
1524 pb.options.coverage = options_coverage
1525 pb.options.prep_artifacts_for_testing = options_prep_artifacts
1526 pb.options.runtime_artifact_cleanup = options_runtime_artifacts
1527 pb.options.cmake_only = options_cmake_only
[all …]
/Zephyr-latest/include/zephyr/ipc/
Dpbuf.h174 int pbuf_tx_init(struct pbuf *pb);
190 int pbuf_rx_init(struct pbuf *pb);
206 int pbuf_write(struct pbuf *pb, const char *buf, uint16_t len);
224 int pbuf_read(struct pbuf *pb, char *buf, uint16_t len);
/Zephyr-latest/samples/net/dsa/src/
Ddsa_lldp.c40 uint8_t *pb = p; in dsa_lldp_send() local
85 len = sizeof(struct net_eth_hdr) + (p - pb); in dsa_lldp_send()
/Zephyr-latest/subsys/bluetooth/controller/hci/
Dhci_driver.c188 uint8_t ts, pb; in sink_sdu_emit_hci() local
204 pb = sdu_frag->sdu_state; in sink_sdu_emit_hci()
240 ts = (pb & 0x1) == 0x0; in sink_sdu_emit_hci()
256 handle_packed = bt_iso_handle_pack(handle, pb, ts); in sink_sdu_emit_hci()
/Zephyr-latest/samples/modules/tflite-micro/hello_world/train/
DREADME.md49 | `model.pb` | Keras SavedModel | TensorFlow | Large-Scale/Cloud/Servers |
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/radio/
Dradio.c237 volatile uint16_t *pb = &GENFSK->PACKET_BUFFER[PB_RX_PDU]; in pkt_rx() local
280 *(uint16_t *)ctx_ccm.rx_pkt_out = pb[0]; in pkt_rx()
290 rxb[idx] = pb[idx]; in pkt_rx()
295 tmp = pb[len / 2]; in pkt_rx()
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Drunner.py1936 pb = ProjectBuilder(instance, self.env, self.jobserver)
1937 pb.duts = self.duts
1938 pb.process(pipeline, done_queue, task, lock, results)
1940 pb.instance.status in [TwisterStatus.FAIL, TwisterStatus.ERROR]:
1954 pb = ProjectBuilder(instance, self.env, self.jobserver)
1955 pb.duts = self.duts
1956 pb.process(pipeline, done_queue, task, lock, results)
1958 pb.instance.status in [TwisterStatus.FAIL, TwisterStatus.ERROR]:
/Zephyr-latest/drivers/i3c/
Di3c_cdns.c621 uint16_t pb; in cdns_i3c_ddr_parity() local
625 pb = (payload >> 15) ^ (payload >> 13) ^ (payload >> 11) ^ (payload >> 9) ^ (payload >> 7) ^ in cdns_i3c_ddr_parity()
627 parity = (pb & 1) << 1; in cdns_i3c_ddr_parity()
629 pb = (payload >> 14) ^ (payload >> 12) ^ (payload >> 10) ^ (payload >> 8) ^ (payload >> 6) ^ in cdns_i3c_ddr_parity()
631 parity |= (pb & 1); in cdns_i3c_ddr_parity()
647 uint16_t pb; in prepare_ddr_cmd_parity_adjustment_bit() local
649 pb = (word >> 14) ^ (word >> 12) ^ (word >> 10) ^ (word >> 8) ^ (word >> 6) ^ (word >> 4) ^ in prepare_ddr_cmd_parity_adjustment_bit()
652 if (pb & 1) { in prepare_ddr_cmd_parity_adjustment_bit()
/Zephyr-latest/subsys/bluetooth/host/
Diso.c577 uint8_t pb, ts; in bt_iso_recv() local
580 pb = bt_iso_flags_pb(flags); in bt_iso_recv()
584 flags, pb, ts); in bt_iso_recv()
590 switch (pb) { in bt_iso_recv()
629 pb == BT_ISO_START ? "Start" : "Single", buf->len, len, flags, in bt_iso_recv()
634 pb == BT_ISO_START ? "Start" : "Single"); in bt_iso_recv()
644 if (pb == BT_ISO_SINGLE) { in bt_iso_recv()
701 LOG_ERR("Unexpected ISO pb flags (0x%02x)", pb); in bt_iso_recv()
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Dshell.c1688 SHELL_CMD_ARG(pb-gatt, NULL, "<Val(off, on)>", cmd_pb_gatt, 2, 0),
1691 SHELL_CMD_ARG(pb-adv, NULL, "<Val(off, on)>", cmd_pb_adv, 2, 0),
/Zephyr-latest/include/zephyr/bluetooth/
Dhci_types.h98 #define bt_iso_pack_flags(pb, ts) \ argument
99 (((pb) & 0x0003) | (((ts) & 0x0001) << 2))
100 #define bt_iso_handle_pack(h, pb, ts) \ argument
101 ((h) | (bt_iso_pack_flags(pb, ts) << 12))
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/
Dshell.rst51 ``mesh prov pb-adv on`` or ``mesh prov pb-gatt on``. The beacons can be picked up by an external
288 ``mesh prov pb-gatt <Val(off, on)>``
301 ``mesh prov pb-adv <Val(off, on)>``