Home
last modified time | relevance | path

Searched refs:packet_len (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-3.5.0/tests/net/ipv4_fragment/src/
Dmain.c603 uint16_t packet_len; in ZTEST() local
632 packet_len = net_pkt_get_len(pkt); in ZTEST()
633 NET_IPV4_HDR(pkt)->len = htons(packet_len); in ZTEST()
656 zassert_equal(lower_layer_total_size, (NET_IPV4H_LEN * 3) + packet_len, in ZTEST()
658 zassert_equal(upper_layer_total_size, packet_len, in ZTEST()
670 uint16_t packet_len; in ZTEST() local
700 packet_len = net_pkt_get_len(pkt); in ZTEST()
702 NET_IPV4_HDR(pkt)->len = htons(packet_len); in ZTEST()
726 zassert_equal(lower_layer_total_size, (NET_IPV4H_LEN * 3) + packet_len, in ZTEST()
728 zassert_equal(upper_layer_total_size, packet_len, in ZTEST()
[all …]
/Zephyr-Core-3.5.0/drivers/usb/device/
Dusb_dc_sam_usbc.c1142 uint32_t packet_len) in usb_dc_ep_write_stp() argument
1162 if (packet_len == 0) { in usb_dc_ep_write_stp()
1189 data, packet_len); in usb_dc_ep_write_stp()
1192 dev_desc[ep_bank].sizes = packet_len; in usb_dc_ep_write_stp()
1228 uint32_t packet_len; in usb_dc_ep_write() local
1259 packet_len = MIN(data_len, dev_data.ep_data[ep_idx].mps); in usb_dc_ep_write()
1262 *ret_bytes = packet_len; in usb_dc_ep_write()
1266 if (usb_dc_ep_write_stp(ep_bank, data, packet_len)) { in usb_dc_ep_write()
1270 if (data && packet_len > 0) { in usb_dc_ep_write()
1271 memcpy(dev_desc[ep_bank].ep_pipe_addr, data, packet_len); in usb_dc_ep_write()
[all …]
Dusb_dc_sam_usbhs.c724 uint32_t packet_len; in usb_dc_ep_write() local
748 packet_len = MIN(data_len, dev_data.ep_data[ep_idx].mps); in usb_dc_ep_write()
749 for (int i = 0; i < packet_len; i++) { in usb_dc_ep_write()
771 *ret_bytes = packet_len; in usb_dc_ep_write()
774 LOG_DBG("ep 0x%x write %d bytes from %d", ep, packet_len, data_len); in usb_dc_ep_write()
/Zephyr-Core-3.5.0/drivers/bluetooth/hci/
Duserchan.c104 static uint16_t packet_len(const uint8_t *buf) in packet_len() function
207 const uint16_t decoded_len = packet_len(frame_start); in rx_thread()
/Zephyr-Core-3.5.0/subsys/net/l2/ppp/
Doptions.c215 struct net_pkt *ppp_my_options_add(struct ppp_fsm *fsm, size_t packet_len) in ppp_my_options_add() argument
224 pkt = net_pkt_alloc_with_buffer(ppp_fsm_iface(fsm), packet_len, in ppp_my_options_add()
Dppp_internal.h195 struct net_pkt *ppp_my_options_add(struct ppp_fsm *fsm, size_t packet_len);