Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 34) sorted by relevance

12

/tests/unit/winstream/
A Dmain.c29 uint32_t bytes = sys_winstream_read(ws, &seq, &c, 1); in ZTEST() local
31 zassert_true(bytes == 1, ""); in ZTEST()
36 bytes = sys_winstream_read(ws, &seq, &c, 1); in ZTEST()
37 zassert_true(bytes == 0, ""); in ZTEST()
52 bytes = sys_winstream_read(ws, &seq, readback, sizeof(readback)); in ZTEST()
54 zassert_true(bytes == 0, ""); in ZTEST()
59 bytes = sys_winstream_read(ws, &seq, readback, sizeof(readback)); in ZTEST()
61 zassert_true(bytes == 0, ""); in ZTEST()
69 zassert_true(bytes == ws->len / 2, ""); in ZTEST()
78 zassert_true(bytes == ws->len / 2, ""); in ZTEST()
[all …]
/tests/subsys/ipc/ipc_sessions/src/
A Ddata_queue.c17 void data_queue_init(struct data_queue *q, void *mem, size_t bytes) in data_queue_init() argument
19 k_heap_init(&q->h, mem, bytes); in data_queue_init()
23 int data_queue_put(struct data_queue *q, const void *data, size_t bytes, k_timeout_t timeout) in data_queue_put() argument
28 bytes + sizeof(struct data_queue_format), in data_queue_put()
34 buffer->size = bytes; in data_queue_put()
35 memcpy(buffer->data, data, bytes); in data_queue_put()
A Ddata_queue.h15 void data_queue_init(struct data_queue *q, void *mem, size_t bytes);
17 int data_queue_put(struct data_queue *q, const void *data, size_t bytes, k_timeout_t timeout);
/tests/drivers/can/api/src/
A Dutilities.c47 uint8_t bytes; in ZTEST() local
50 for (bytes = 0; bytes <= 8; bytes++) { in ZTEST()
51 zassert_equal(can_bytes_to_dlc(bytes), bytes, "wrong DLC for %u byte(s)", bytes); in ZTEST()
/tests/bluetooth/classic/rfcomm_c/pytest/
A Drfcomm_utility.py24 mcc_test_data = bytes.fromhex('01 02 03 04 05')
25 send_value = bytes([0xFF])
92 def from_bytes(data: bytes) -> RFCOMM_MCC_RLS: argument
95 def __bytes__(self) -> bytes:
113 def from_bytes(data: bytes) -> RFCOMM_MCC_RPN: argument
116 def __bytes__(self) -> bytes:
117 return bytes(
134 mcc = RFCOMM_Frame.make_mcc(mcc_type=MccType.RLS, c_r=1, data=bytes(rls))
172 def send_test_command(self, test_data: bytes) -> None: argument
178 def on_mcc_test(self, c_r: bool, test_data: bytes) -> None: argument
[all …]
A Dtest_rfcomm_c.py140 parameters=bytes([0x01]) + iac, # num_current_iac=1, iac_lap
564 mcc = RFCOMM_Frame.make_mcc(mcc_type=MccType.PN, c_r=0, data=bytes(pn))
730 dlc_9.write(bytes([0xFF]))
732 send_value = bytes([0xFF] * data_length)
805 dlc_9.write(bytes([0xFF]))
807 send_value = bytes([0xFF] * data_length)
879 send_value = bytes([0xFF])
948 send_value = bytes([0xFF])
/tests/bluetooth/classic/rfcomm_s/pytest/
A Drfcomm_utility.py24 mcc_test_data = bytes.fromhex('01 02 03 04 05')
91 def from_bytes(data: bytes) -> RFCOMM_MCC_RLS: argument
96 def __bytes__(self) -> bytes:
114 def from_bytes(data: bytes) -> RFCOMM_MCC_RPN: argument
128 def __bytes__(self) -> bytes:
129 return bytes(
146 mcc = RFCOMM_Frame.make_mcc(mcc_type=MccType.RLS, c_r=1, data=bytes(rls))
166 mcc = RFCOMM_Frame.make_mcc(mcc_type=MccType.RPN, c_r=1, data=bytes(rpn))
184 def send_test_command(self, test_data: bytes) -> None: argument
190 def on_mcc_test(self, c_r: bool, test_data: bytes) -> None: argument
[all …]
/tests/lib/heap/src/
A Dmain.c116 void *testalloc(void *arg, size_t bytes) in testalloc() argument
118 void *ret = sys_heap_alloc(arg, bytes); in testalloc()
130 size_t expect = ROUND_UP(bytes + hdr, 8) - hdr; in testalloc()
134 bytes, blksz); in testalloc()
137 fill_block(ret, bytes); in testalloc()
395 static void heap_alloc_cb(uintptr_t heap_id, void *mem, size_t bytes) in heap_alloc_cb() argument
401 heap_id, mem, (uint32_t)bytes); in heap_alloc_cb()
404 static void heap_free_cb(uintptr_t heap_id, void *mem, size_t bytes) in heap_free_cb() argument
410 heap_id, mem, (uint32_t)bytes); in heap_free_cb()
/tests/net/ieee802154/6lo_fragment/src/
A Dmain.c193 uint32_t bytes, pos, compare, offset; in compare_data() local
214 bytes = frag->len - offset; in compare_data()
215 compare = remaining > bytes ? bytes : remaining; in compare_data()
236 uint32_t bytes, pos; in create_pkt() local
273 bytes = net_buf_tailroom(buf); in create_pkt()
274 copy = remaining > bytes ? bytes : remaining; in create_pkt()
277 pos += bytes; in create_pkt()
278 remaining -= bytes; in create_pkt()
280 if (net_buf_tailroom(buf) - (bytes - copy)) { in create_pkt()
/tests/modules/nanopb/proto/
A Dsimple.proto10 bytes buffer = 1;
/tests/drivers/flash/common/boards/
A Dnrf52840_size_in_bytes.overlay9 size-in-bytes = <8388608>;
/tests/boards/silabs/dma/block_append/
A DKconfig9 int "Number of bytes to transfer"
/tests/drivers/dma/cyclic/
A DKconfig13 int "Number of bytes to transfer"
/tests/drivers/dma/scatter_gather/
A DKconfig13 int "Number of bytes to transfer"
/tests/drivers/retained_mem/api/
A DKconfig12 Will limit data size for test to 1 byte instead of 10 bytes
/tests/benchmarks/app_kernel/
A DREADME.txt23 | enqueue 4 bytes msg in FIFO | NNNNNN|
24 | dequeue 4 bytes msg in FIFO | NNNNNN|
25 | enqueue 192 bytes msg in MSGQ | NNNNNN|
26 | dequeue 192 bytes msg in MSGQ | NNNNNN|
28 | enqueue 4 bytes in MSGQ to a waiting higher priority task | NNNNNN|
29 | enqueue 192 bytes in MSGQ to a waiting higher priority task | NNNNNN|
/tests/drivers/uart/uart_errors/
A DREADME.txt3 certain bytes with parity enabled when receiver is configured without parity.
/tests/drivers/dma/loop_transfer/
A DKconfig22 int "Number of bytes to transfer"
/tests/subsys/fs/fat_fs_api/
A DREADME.txt54 File size after shrinking by 5 bytes = 7
57 File size after expanding by 10 bytes = 17
/tests/drivers/sensor/ina230/src/
A Dina230_emul.c23 uint8_t bytes; member
42 while (c_reg->bytes) { in get_register()
/tests/bluetooth/controller/ctrl_isoal/
A DKconfig47 int "Minimum number of playload data bytes in a new segment"
52 Minimum number of payload bytes that would make inserting a new
/tests/drivers/uart/uart_mix_fifo_poll/
A DREADME.txt5 any bytes being dropped.
/tests/drivers/sensor/ina237/src/
A Dina237_emul.c24 uint8_t bytes; member
/tests/bsim/bluetooth/host/l2cap/general/src/
A Dmain_l2cap_ecred.c370 static void send_sdu(int iteration, int chan_idx, int bytes) in send_sdu() argument
396 net_buf_add_mem(buf, channels[chan_idx].payload, bytes); in send_sdu()
398 LOG_DBG("bt_l2cap_chan_sending ch: %i bytes: %i iteration: %i", chan_idx, bytes, iteration); in send_sdu()
/tests/net/lib/mqtt/v3_1_1/mqtt_client/src/
A Dmain.c179 uint8_t bytes = 0U; in encode_fixed_hdr() local
181 bytes++; in encode_fixed_hdr()
186 bytes++; in encode_fixed_hdr()
195 return bytes; in encode_fixed_hdr()

Completed in 74 milliseconds

12