Home
last modified time | relevance | path

Searched full:pb (Results 1 – 25 of 60) sorted by relevance

123

/Zephyr-latest/subsys/ipc/ipc_service/lib/
Dpbuf.c65 void pbuf_native_addr_remap(struct pbuf *pb) in pbuf_native_addr_remap() argument
67 native_emb_addr_remap((void **)&pb->cfg->rd_idx_loc); in pbuf_native_addr_remap()
68 native_emb_addr_remap((void **)&pb->cfg->wr_idx_loc); in pbuf_native_addr_remap()
69 native_emb_addr_remap((void **)&pb->cfg->data_loc); in pbuf_native_addr_remap()
73 int pbuf_tx_init(struct pbuf *pb) in pbuf_tx_init() argument
75 if (validate_cfg(pb->cfg) != 0) { in pbuf_tx_init()
79 pbuf_native_addr_remap(pb); in pbuf_tx_init()
83 pb->data.wr_idx = 0; in pbuf_tx_init()
84 pb->data.rd_idx = 0; in pbuf_tx_init()
87 *(pb->cfg->wr_idx_loc) = pb->data.wr_idx; in pbuf_tx_init()
[all …]
/Zephyr-latest/tests/subsys/ipc/ipc_sessions/interoperability/
Dpbuf_v1.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 …]
Dpbuf_v1.h168 * @param pb Pointer to the packed buffer containing
174 int pbuf_tx_init(struct pbuf *pb);
184 * @param pb Pointer to the packed buffer containing
190 int pbuf_rx_init(struct pbuf *pb);
198 * @param pb A buffer to which to write.
206 int pbuf_write(struct pbuf *pb, const char *buf, uint16_t len);
214 * @param pb A buffer from which data will be read.
224 int pbuf_read(struct pbuf *pb, char *buf, uint16_t len);
/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/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/include/zephyr/dt-bindings/pinctrl/
Dch32v20x_30x-pinctrl.h79 #define USART1_TX_PB6_1 CH32V20X_V30X_PINMUX_DEFINE(PB, 6, USART1, 1)
80 #define USART1_TX_PB15_2 CH32V20X_V30X_PINMUX_DEFINE(PB, 15, USART1, 2)
83 #define USART1_RX_PB7_1 CH32V20X_V30X_PINMUX_DEFINE(PB, 7, USART1, 1)
106 #define USART3_CK_PB12_0 CH32V20X_V30X_PINMUX_DEFINE(PB, 12, USART3, 0)
110 #define USART3_TX_PB10_0 CH32V20X_V30X_PINMUX_DEFINE(PB, 10, USART3, 0)
114 #define USART3_RX_PB11_0 CH32V20X_V30X_PINMUX_DEFINE(PB, 11, USART3, 0)
118 #define USART3_CTS_PB13_0 CH32V20X_V30X_PINMUX_DEFINE(PB, 13, USART3, 0)
119 #define USART3_CTS_PB13_1 CH32V20X_V30X_PINMUX_DEFINE(PB, 13, USART3, 1)
122 #define USART3_RTS_PB14_0 CH32V20X_V30X_PINMUX_DEFINE(PB, 14, USART3, 0)
123 #define USART3_RTS_PB14_1 CH32V20X_V30X_PINMUX_DEFINE(PB, 14, USART3, 1)
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/provision/
Dpb_remote_pst_ncrp.sh9 # PB-Remote client (1st device):
10 # - provision the 2nd device over PB-Adv
11 # - provision the 3rd device over PB-Remote
12 # PB-Remote server (2nd device):
14 # - run PB-Remote bearer
15 # PB-Remote server (3rd device):
19 # PB-Remote client (1st device):
25 # PB-Remote server (3rd device):
28 # PB-Remote client (1st device):
30 # PB-Remote server (3rd device):
Dpb_remote_nppi_robustness.sh9 # PB-Adv
/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/include/zephyr/sys/
Dspsc_pbuf.h119 * @param pb A buffer.
123 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()
154 * @param pb A buffer to which to write.
162 int spsc_pbuf_write(struct spsc_pbuf *pb, const char *buf, uint16_t len);
181 * @param[in] pb A buffer to which to write.
192 int spsc_pbuf_alloc(struct spsc_pbuf *pb, uint16_t len, char **buf);
200 * @param pb A buffer to which to write.
203 void spsc_pbuf_commit(struct spsc_pbuf *pb, uint16_t len);
213 * @param pb A buffer from which data will be read.
[all …]
/Zephyr-latest/include/zephyr/ipc/
Dpbuf.h180 * @param pb Pointer to the packed buffer containing
186 int pbuf_tx_init(struct pbuf *pb);
196 * @param pb Pointer to the packed buffer containing
202 int pbuf_rx_init(struct pbuf *pb);
210 * @param pb A buffer to which to write.
218 int pbuf_write(struct pbuf *pb, const char *buf, uint16_t len);
226 * @param pb A buffer from which data will be read.
236 int pbuf_read(struct pbuf *pb, char *buf, uint16_t len);
241 * The pb must be defined with "PBUF_DEFINE" with "use_handshake" set.
243 * @param pb A buffer from which data will be read.
[all …]
/Zephyr-latest/scripts/tests/twister/
Dtest_runner.py803 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
807 pb.log_info(filename, inline_logs)
863 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
870 pb.log_info_file(None)
1527 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
1528 pb.options = mock.Mock()
1529 pb.options.coverage = options_coverage
1530 pb.options.prep_artifacts_for_testing = options_prep_artifacts
1531 pb.options.runtime_artifact_cleanup = options_runtime_artifacts
1532 pb.options.cmake_only = options_cmake_only
[all …]
/Zephyr-latest/tests/modules/nanopb/lib/
Dlib.h10 #include <proto/simple.pb.h>
/Zephyr-latest/tests/modules/nanopb/src/
Dmain.c14 #include <proto/simple.pb.h>
15 #include <proto/complex.pb.h>
/Zephyr-latest/samples/bluetooth/mesh/
DREADME.rst12 Advertising and the GATT Provisioning Bearers (i.e. PB-ADV and PB-GATT).
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dgatt_common.h15 uint8_t transmits; /* number of frame (pb gatt or proxy beacon) transmits */
Dtest_provision.c111 .name = "{invalid, PB-ADV, PB-GATT}", in test_args_parse()
649 /** @brief Verify that this device pb-adv provision.
687 /** @brief Verify that this provisioner pb-adv provision.
844 /* stop responding for 30s to timeout PB-ADV link establishment. */ in test_device_unresponsive()
869 LOG_INF("Waiting for a device with RPR Server to be provisioned over PB-Adv..."); in provision_adv()
944 LOG_INF("Enabling PB-Remote server"); in device_pb_remote_server_setup()
963 * PB-Remote and RPR models.
971 /* Provision the 2nd device over PB-Adv. */ in test_provisioner_pb_remote_client_reprovision()
1019 /* Provision the 2nd device over PB-Adv. */ in test_provisioner_pb_remote_client_parallel()
1068 /* Provision the 2nd device over PB-Adv. */ in test_provisioner_pb_remote_client_provision_timeout()
[all …]
Dgatt_common.c21 /* MshPRT Figure 7.1: PB-GATT Advertising Data */ in bt_mesh_test_parse_mesh_pb_gatt_service()
/Zephyr-latest/doc/connectivity/bluetooth/
Dfeatures.rst78 * Both Provisioning roles and bearers supported (PB-ADV & PB-GATT)
/Zephyr-latest/samples/modules/nanopb/src/
Dmain.c13 #include "src/simple.pb.h"
22 * - check out the contents of simple.pb.h! in encode_message()
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/suspend/
Dgatt_suspend_resume.sh13 # 1. Tester (Device 1) observes PB-GATT advs, and will fail the test if the expected
Dgatt_suspend_disable_resume.sh13 # 1. Tester (Device 1) observes PB-GATT advs, and will fail the test if the expected
/Zephyr-latest/tests/bluetooth/mesh_shell/src/
Dmain.c154 printk("Use \"prov pb-adv on\" or \"prov pb-gatt on\" to " in bt_ready()
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/advertiser/
Dproxy_mixin.sh10 # With a separate scanner device, observe PB-GATT beacons being sent

123