Home
last modified time | relevance | path

Searched refs:max_len (Results 26 – 50 of 69) sorted by relevance

123

/Zephyr-latest/tests/unit/util/
Dmain.c702 const size_t max_len = 128; in ZTEST() local
703 uint8_t expected_result[max_len]; in ZTEST()
704 uint8_t src1[max_len]; in ZTEST()
705 uint8_t src2[max_len]; in ZTEST()
706 uint8_t dst[max_len]; in ZTEST()
713 for (size_t i = 0U; i < max_len; i++) { in ZTEST()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/radio/
Dradio.h24 void radio_pkt_configure(uint8_t bits_len, uint8_t max_len, uint8_t flags);
/Zephyr-latest/subsys/net/lib/coap/
Dcoap_link_format.c30 if (cpkt->max_len - cpkt->offset < 1) { in append_u8()
45 if (cpkt->max_len - cpkt->offset < 2) { in append_be16()
61 if (cpkt->max_len - cpkt->offset < len) { in append()
Dcoap_client.c51 static int receive(int sock, void *buf, size_t max_len, int flags, in receive() argument
57 err = zsock_recvfrom(sock, buf, max_len, flags, NULL, NULL); in receive()
59 err = zsock_recvfrom(sock, buf, max_len, flags, src_addr, addrlen); in receive()
/Zephyr-latest/subsys/tracing/ctf/
Dctf_top.c478 void sys_trace_socket_recvfrom_enter(int sock, int max_len, int flags, in sys_trace_socket_recvfrom_enter() argument
481 ctf_top_socket_recvfrom_enter(sock, max_len, flags, in sys_trace_socket_recvfrom_enter()
506 uint32_t max_len = 0; in sys_trace_socket_recvmsg_enter() local
509 max_len += msg->msg_iov[i].iov_len; in sys_trace_socket_recvmsg_enter()
512 ctf_top_socket_recvmsg_enter(sock, (uint32_t)(uintptr_t)msg, max_len, flags); in sys_trace_socket_recvmsg_enter()
Dctf_top.h526 static inline void ctf_top_socket_recvfrom_enter(int32_t sock, uint32_t max_len, uint32_t flags, in ctf_top_socket_recvfrom_enter() argument
529 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_SOCKET_RECVFROM_ENTER), sock, max_len, flags, in ctf_top_socket_recvfrom_enter()
539 static inline void ctf_top_socket_recvmsg_enter(int32_t sock, uint32_t msg, uint32_t max_len, in ctf_top_socket_recvmsg_enter() argument
542 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_SOCKET_RECVMSG_ENTER), sock, msg, max_len, flags); in ctf_top_socket_recvmsg_enter()
Dtracing_ctf.h482 #define sys_port_trace_socket_recvfrom_enter(sock, max_len, flags, addr, addrlen) \ argument
483 sys_trace_socket_recvfrom_enter(sock, max_len, flags, addr, addrlen)
549 void sys_trace_socket_recvfrom_enter(int sock, int max_len, int flags, struct sockaddr *addr,
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_common.h513 int osdp_phy_packet_init(struct osdp_pd *p, uint8_t *buf, int max_len);
515 int len, int max_len);
/Zephyr-latest/samples/net/sockets/websocket_client/src/
Dmain.c143 static size_t how_much_to_send(size_t max_len) in how_much_to_send() argument
148 amount = sys_rand32_get() % max_len; in how_much_to_send()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_internal.h66 ssize_t (*recvfrom)(void *obj, void *buf, size_t max_len, int flags,
Dsocket_dispatcher.c289 size_t max_len, int flags, in sock_dispatch_recvfrom_vmeth() argument
299 return zsock_recvfrom(fd, buf, max_len, flags, addr, addrlen); in sock_dispatch_recvfrom_vmeth()
Dsocketpair.c1120 static ssize_t spair_recvfrom(void *obj, void *buf, size_t max_len, in spair_recvfrom() argument
1141 return spair_read(obj, buf, max_len); in spair_recvfrom()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_object.h145 #define CPKT_BUF_WRITE(cpkt) (cpkt)->data, &(cpkt)->offset, (cpkt)->max_len
146 #define CPKT_BUF_READ(cpkt) (cpkt)->data, (cpkt)->max_len
148 #define CPKT_BUF_W_SIZE(cpkt) ((cpkt)->max_len - (cpkt)->offset)
153 #define ICTX_BUF_R_LEFT_SZ(i_ctx) ((i_ctx)->in_cpkt->max_len - (i_ctx)->offset)
Dlwm2m_engine.c949 uint16_t max_len; in load_tls_type() local
951 ret = lwm2m_get_res_buf(&LWM2M_OBJ(0, client_ctx->sec_obj_inst, res_id), &cred, &max_len, in load_tls_type()
968 if (cred_len >= max_len) { in load_tls_type()
Dlwm2m_rw_oma_tlv.c582 uint8_t max_len) in get_number() argument
594 if (tlv.length > max_len) { in get_number()
/Zephyr-latest/subsys/bluetooth/audio/
Dtbs_internal.h52 uint16_t max_len);
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/
Dradio.c410 void radio_pkt_configure(uint8_t bits_len, uint8_t max_len, uint8_t flags) in radio_pkt_configure() argument
489 ((((uint32_t)max_len) << RADIO_PCNF1_MAXLEN_Pos) & RADIO_PCNF1_MAXLEN_Msk) | in radio_pkt_configure()
2080 uint8_t max_len = (NRF_RADIO->PCNF1 & RADIO_PCNF1_MAXLEN_Msk) >> in radio_ccm_ext_rx_pkt_set() local
2084 NRF_CCM->MAXPACKETSIZE = max_len - 4U; in radio_ccm_ext_rx_pkt_set()
2160 uint8_t max_len = (NRF_RADIO->PCNF1 & RADIO_PCNF1_MAXLEN_Msk) >> in radio_ccm_ext_tx_pkt_set() local
2164 NRF_CCM->MAXPACKETSIZE = max_len - 4U; in radio_ccm_ext_tx_pkt_set()
Dradio.h74 void radio_pkt_configure(uint8_t bits_len, uint8_t max_len, uint8_t flags);
/Zephyr-latest/tests/net/lib/lwm2m/block_transfer/src/
Dmain.c79 zassert_equal(EXPECTED_LWM2M_COAP_FULL_BUFFER_SIZE, msg->cpkt.max_len, in ZTEST_F()
89 zassert_equal(msg->cpkt.max_len, msg->cpkt.offset, "Buffer should be full"); in ZTEST_F()
/Zephyr-latest/drivers/modem/
Dsimcom-sim7080.c375 static ssize_t offload_recvfrom(void *obj, void *buf, size_t max_len, int flags, in offload_recvfrom() argument
391 if (!buf || max_len == 0) { in offload_recvfrom()
412 max_len = (max_len > MDM_MAX_DATA_LENGTH) ? MDM_MAX_DATA_LENGTH : max_len; in offload_recvfrom()
413 snprintk(sendbuf, sizeof(sendbuf), "AT+CARECV=%d,%zd", sock->id, max_len); in offload_recvfrom()
417 sock_data.recv_buf_len = max_len; in offload_recvfrom()
/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4_server.c473 size_t max_len) in dhcpv4_encode_string() argument
475 if (buf == NULL || *buflen < max_len) { in dhcpv4_encode_string()
479 memset(buf, 0, max_len); in dhcpv4_encode_string()
485 strncpy(buf, str, max_len - 1); in dhcpv4_encode_string()
488 *buflen -= max_len; in dhcpv4_encode_string()
490 return buf + max_len; in dhcpv4_encode_string()
/Zephyr-latest/samples/subsys/debug/fuzz/
DREADME.rst46 INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes
/Zephyr-latest/tests/net/socket/offload_dispatcher/src/
Dmain.c174 static ssize_t offload_recvfrom(void *obj, void *buf, size_t max_len, in offload_recvfrom() argument
181 ARG_UNUSED(max_len); in offload_recvfrom()
/Zephyr-latest/tests/net/lib/lwm2m/content_link_format/src/
Dmain.c99 test_packet.max_len = sizeof(test_payload); in context_reset()
/Zephyr-latest/subsys/net/lib/dns/
Dresolve.c89 uint8_t *buf, size_t buf_len, size_t max_len,
1053 uint8_t *buf, size_t buf_len, size_t max_len, in dns_write() argument
1072 ret = dns_msg_pack_query(buf, &len, (uint16_t)max_len, in dns_write()

123