Home
last modified time | relevance | path

Searched refs:pkt_size (Results 1 – 25 of 64) sorted by relevance

123

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_bpf2bpf.c15 int pkt_size; member
29 ASSERT_EQ(meta->pkt_len, tst_ctx->pkt_size, "check_meta_pkt_len"); in on_sample()
46 int pkt_size) in run_xdp_bpf2bpf_pkt_size() argument
52 if (!ASSERT_LE(pkt_size, BUF_SZ, "pkt_size") || in run_xdp_bpf2bpf_pkt_size()
53 !ASSERT_GE(pkt_size, sizeof(pkt_v4), "pkt_size")) in run_xdp_bpf2bpf_pkt_size()
67 test_ctx.pkt_size = pkt_size; in run_xdp_bpf2bpf_pkt_size()
70 if (pkt_size > sizeof(pkt_v4)) { in run_xdp_bpf2bpf_pkt_size()
71 for (int i = 0; i < (pkt_size - sizeof(pkt_v4)); i++) in run_xdp_bpf2bpf_pkt_size()
77 topts.data_size_in = pkt_size; in run_xdp_bpf2bpf_pkt_size()
85 ASSERT_EQ(topts.data_size_out, pkt_size, "ipv4 size"); in run_xdp_bpf2bpf_pkt_size()
H A Dsockmap_strp.c291 int zero = 0, pkt_size = STRP_PKT_FULL_LEN, sent, recvd, avail; in test_sockmap_strp_pass() local
310 sent = xsend(c, packet, pkt_size, 0); in test_sockmap_strp_pass()
311 if (!ASSERT_EQ(sent, pkt_size, "xsend(pre-data)")) in test_sockmap_strp_pass()
329 sent = xsend(c, packet, pkt_size, 0); in test_sockmap_strp_pass()
330 if (!ASSERT_EQ(sent, pkt_size, "xsend(c)")) in test_sockmap_strp_pass()
335 if (!ASSERT_EQ(recvd, pkt_size, "recv_timeout(p)") || in test_sockmap_strp_pass()
336 !ASSERT_OK(memcmp(packet, rcv, pkt_size), in test_sockmap_strp_pass()
342 sent = xsend(c, packet, pkt_size, 0); in test_sockmap_strp_pass()
343 if (!ASSERT_EQ(sent, pkt_size, "second xsend(c)")) in test_sockmap_strp_pass()
348 !ASSERT_EQ(avail, pkt_size, "ioctl(FIONREAD)")) in test_sockmap_strp_pass()
[all …]
/linux/sound/soc/qcom/qdsp6/
H A Dq6asm.c283 uint32_t pkt_size, bool cmd_flg, in q6asm_add_hdr() argument
289 hdr->pkt_size = pkt_size; in q6asm_add_hdr()
337 int rc, pkt_size; in __q6asm_memory_unmap() local
344 pkt_size = APR_HDR_SIZE + sizeof(*mem_unmap); in __q6asm_memory_unmap()
345 void *p __free(kfree) = kzalloc(pkt_size, GFP_KERNEL); in __q6asm_memory_unmap()
355 pkt->hdr.pkt_size = pkt_size; in __q6asm_memory_unmap()
432 int i, pkt_size; in __q6asm_memory_map_regions() local
445 pkt_size = APR_HDR_SIZE + sizeof(*cmd) + in __q6asm_memory_map_regions()
448 void *p __free(kfree) = kzalloc(pkt_size, GFP_KERNEL); in __q6asm_memory_map_regions()
459 pkt->hdr.pkt_size = pkt_size; in __q6asm_memory_map_regions()
[all …]
H A Dq6afe.c1124 int ret, pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; in q6afe_port_set_param_v2()
1127 void *p __free(kfree) = kzalloc(pkt_size, GFP_KERNEL); in q6afe_port_set_param_v2()
1140 pkt->hdr.pkt_size = pkt_size; in q6afe_port_set_param_v2()
1176 int ret, pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; in q6afe_set_lpass_clock_v2()
1179 void *p __free(kfree) = kzalloc(pkt_size, GFP_KERNEL); in q6afe_set_lpass_clock_v2()
1192 pkt->hdr.pkt_size = pkt_size; in q6afe_set_lpass_clock()
1327 int index, pkt_size; in q6afe_slim_port_prepare()
1335 pkt_size in q6afe_slim_port_prepare()
1076 int ret, pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; q6afe_set_param() local
1128 int ret, pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; q6afe_port_set_param_v2() local
1279 int index, pkt_size; q6afe_port_stop() local
1668 int pkt_size; q6afe_port_start() local
1834 int pkt_size = APR_HDR_SIZE + sizeof(*vote_cfg); q6afe_unvote_lpass_core_hw() local
1869 int pkt_size = APR_HDR_SIZE + sizeof(*vote_cfg); q6afe_vote_lpass_core_hw() local
[all...]
H A Dq6adm.c162 close.hdr.pkt_size = sizeof(close); in q6adm_device_close()
333 int ret, pkt_size = APR_HDR_SIZE + sizeof(*open); in q6adm_device_open() local
335 void *p __free(kfree) = kzalloc(pkt_size, GFP_KERNEL); in q6adm_device_open()
344 pkt->hdr.pkt_size = pkt_size; in q6adm_device_open()
468 int pkt_size = (APR_HDR_SIZE + sizeof(*route) + sizeof(*node) + in q6adm_matrix_map() local
471 void *matrix_map __free(kfree) = kzalloc(pkt_size, GFP_KERNEL); in q6adm_matrix_map()
483 pkt->hdr.pkt_size = pkt_size; in q6adm_matrix_map()
H A Dq6core.c159 pkt.hdr.pkt_size = APR_HDR_SIZE; in q6core_get_fwk_versions()
189 pkt.hdr.pkt_size = APR_HDR_SIZE; in q6core_get_svc_versions()
216 pkt.hdr.pkt_size = APR_HDR_SIZE; in __q6core_is_adsp_ready()
/linux/tools/testing/selftests/net/forwarding/
H A Dmin_max_mtu.sh160 local pkt_size=$((mtu - ping_headers_len))
162 ping_do $h1.10 192.0.2.1 "-s $pkt_size -M do"
163 check_err_fail $should_fail $? "Ping, packet size: $pkt_size"
173 local pkt_size=$((mtu - ping6_headers_len))
175 ping6_do $h1.10 2001:db8:1::1 "-s $pkt_size -M do"
176 check_err_fail $should_fail $? "Ping6, packet size: $pkt_size"
/linux/tools/testing/selftests/drivers/net/
H A Dgro.c
H A Dring_reconfig.py281 def _send_sotxtime_burst(cfg, sock, port, count, delay_ns, pkt_size): argument
283 payload = b'\x00' * pkt_size
356 pkt_size = cfg.dev['mtu'] - (48 if int(cfg.addr_ipver) == 6 else 28)
360 sock = _create_sotxtime_socket(cfg, pkt_count * pkt_size * 2)
365 delay_ms * 1_000_000, pkt_size)
/linux/drivers/net/wireless/morsemicro/mm81x/
H A Dyaps_hw.c339 u32 pkt_size = in mm81x_yaps_hw_write_pkts() local
341 tx_len = pkt_size + sizeof(delim); in mm81x_yaps_hw_write_pkts()
377 yaps, pkt_size, pkts[i].tc_queue, delim_irq); in mm81x_yaps_hw_write_pkts()
404 int pkt_size = YAPS_DELIM_GET_PHANDLE_SIZE(delim); in mm81x_read_pkts_h_is_valid_delim() local
410 if (pkt_size == 0) in mm81x_read_pkts_h_is_valid_delim()
413 if ((pkt_size + padding) > YAPS_MAX_PKT_SIZE_BYTES) in mm81x_read_pkts_h_is_valid_delim()
417 if (YAPS_CALC_PADDING(pkt_size) != padding) in mm81x_read_pkts_h_is_valid_delim()
487 int pkt_size; in mm81x_yaps_hw_read_pkts() local
509 pkt_size = YAPS_DELIM_GET_PKT_SIZE(delim); in mm81x_yaps_hw_read_pkts()
510 total_len = pkt_size + YAPS_DELIM_GET_PADDING(delim); in mm81x_yaps_hw_read_pkts()
[all …]
/linux/drivers/net/ethernet/marvell/
H A Dmvneta_bm.h87 #define MVNETA_RX_BUF_SIZE(pkt_size) ((pkt_size) + NET_SKB_PAD) argument
117 int pkt_size; member
146 int pkt_size);
178 int pkt_size) in mvneta_bm_pool_use() argument
H A Dmvneta_bm.c162 int pkt_size) in mvneta_bm_pool_use() argument
180 if (new_pool->pkt_size == 0 || type != MVNETA_BM_SHORT) in mvneta_bm_pool_use()
181 new_pool->pkt_size = pkt_size; in mvneta_bm_pool_use()
189 new_pool->buf_size = MVNETA_RX_BUF_SIZE(new_pool->pkt_size); in mvneta_bm_pool_use()
191 SKB_DATA_ALIGN(MVNETA_RX_BUF_SIZE(new_pool->pkt_size)) + in mvneta_bm_pool_use()
336 if (of_property_read_u32(dn, prop, &bm_pool->pkt_size)) in mvneta_bm_pools_init()
337 bm_pool->pkt_size = 0; in mvneta_bm_pools_init()
/linux/drivers/input/rmi4/
H A Drmi_f12.c263 u32 valid_bytes = sensor->pkt_size; in rmi_f12_attention()
273 sensor->data_pkt, sensor->pkt_size); in rmi_f12_attention()
392 size_t pkt_size; in rmi_f12_probe() local
439 pkt_size = rmi_register_desc_calc_size(&f12->data_reg_desc); in rmi_f12_probe()
440 if (pkt_size > SZ_1M) { in rmi_f12_probe()
441 dev_err(&fn->dev, "Invalid data packet size: %zu\n", pkt_size); in rmi_f12_probe()
444 sensor->pkt_size = pkt_size; in rmi_f12_probe()
456 sensor->pkt_size); in rmi_f12_probe()
457 sensor->data_pkt = devm_kmalloc(&fn->dev, sensor->pkt_size, GFP_KERNEL); in rmi_f12_probe()
H A Drmi_f11.c666 sensor->pkt_size = DIV_ROUND_UP(sensor->nbr_fingers, 4); in f11_2d_construct_data()
669 sensor->pkt_size += (sensor->nbr_fingers * 5); in f11_2d_construct_data()
670 sensor->attn_size = sensor->pkt_size; in f11_2d_construct_data()
674 sensor->pkt_size += (sensor->nbr_fingers * 2); in f11_2d_construct_data()
678 sensor->pkt_size += sizeof(u8); in f11_2d_construct_data()
682 sensor->pkt_size += sizeof(u8); in f11_2d_construct_data()
685 sensor->pkt_size += 3; in f11_2d_construct_data()
687 sensor->pkt_size--; in f11_2d_construct_data()
689 sensor->pkt_size--; in f11_2d_construct_data()
693 sensor->pkt_size += in f11_2d_construct_data()
[all …]
H A Drmi_2d_sensor.h59 u32 pkt_size; member
/linux/tools/testing/selftests/drivers/net/hw/
H A Dethtool_std_stats.sh106 local pkt_size=100
107 local pkt_size_fcs=$((pkt_size + 4))
108 local bcast_pkt_format="-a own -b bcast -p $pkt_size"
109 local mcast_pkt_format="-a own -b 01:00:5E:00:00:01 -p $pkt_size"
/linux/net/sctp/
H A Doutput.c442 int pkt_count = 0, pkt_size; in sctp_packet_pack() local
452 pkt_size = packet->size; in sctp_packet_pack()
458 pkt_size = packet->overhead; in sctp_packet_pack()
468 else if (pkt_size + padded > tp->pathmtu) in sctp_packet_pack()
470 pkt_size += padded; in sctp_packet_pack()
472 nskb = alloc_skb(pkt_size + MAX_HEADER, gfp); in sctp_packet_pack()
479 pkt_size -= packet->overhead; in sctp_packet_pack()
510 pkt_size -= SCTP_PAD4(chunk->skb->len); in sctp_packet_pack()
515 if (!pkt_size) in sctp_packet_pack()
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Doffload.c448 u32 pkt_size, data_size, map_id; in nfp_bpf_event_output() local
454 pkt_size = be32_to_cpu(cbe->pkt_size); in nfp_bpf_event_output()
459 if (size_add(pkt_size, data_size) > INT_MAX || in nfp_bpf_event_output()
460 len < sizeof(struct cmsg_bpf_event) + pkt_size + data_size) in nfp_bpf_event_output()
476 &cbe->data[round_up(pkt_size, 4)], data_size, in nfp_bpf_event_output()
477 cbe->data, pkt_size, nfp_bpf_perf_event_copy); in nfp_bpf_event_output()
/linux/drivers/net/wwan/t7xx/
H A Dt7xx_hif_cldma.c155 queue->tr_ring->pkt_size, DMA_FROM_DEVICE); in t7xx_cldma_gpd_rx_from_q()
176 ret = t7xx_cldma_alloc_and_map_skb(md_ctrl, req, queue->tr_ring->pkt_size, GFP_KERNEL); in t7xx_cldma_gpd_rx_from_q()
375 ring->pkt_size, tx_rx); in t7xx_cldma_ring_free()
389 static struct cldma_request *t7xx_alloc_rx_request(struct cldma_ctrl *md_ctrl, size_t pkt_size) in t7xx_alloc_rx_request() argument
402 val = t7xx_cldma_alloc_and_map_skb(md_ctrl, req, pkt_size, GFP_KERNEL); in t7xx_alloc_rx_request()
427 req = t7xx_alloc_rx_request(md_ctrl, ring->pkt_size); in t7xx_cldma_rx_ring_init()
435 gpd->rx_data_allow_len = cpu_to_le16(ring->pkt_size); in t7xx_cldma_rx_ring_init()
801 ret = t7xx_cldma_alloc_and_map_skb(md_ctrl, req, rxq->tr_ring->pkt_size, GFP_ATOMIC); in t7xx_cldma_clear_rxq()
997 md_ctrl->rx_ring[qno].pkt_size = CLDMA_SHARED_Q_BUFF_SZ; in t7xx_cldma_adjust_config()
1001 md_ctrl->rx_ring[CLDMA_RXQ_NUM - 1].pkt_size = CLDMA_JUMBO_BUFF_SZ; in t7xx_cldma_adjust_config()
[all …]
/linux/drivers/bluetooth/
H A Dhci_nokia.c351 u16 pkt_size = get_unaligned_le16(fw_ptr); in nokia_setup_fw() local
357 if (pkt_size > fw_size - 2) { in nokia_setup_fw()
366 if (pkt_size < 1 + HCI_COMMAND_HDR_SIZE) { in nokia_setup_fw()
374 if (cmd->plen > pkt_size - 1 - HCI_COMMAND_HDR_SIZE) { in nokia_setup_fw()
399 fw_ptr += pkt_size + 2; in nokia_setup_fw()
400 fw_size -= pkt_size + 2; in nokia_setup_fw()
/linux/include/linux/soc/qcom/
H A Dapr.h57 uint16_t pkt_size; member
82 uint32_t pkt_size:24; member
/linux/drivers/net/ethernet/
H A Dec_bhf.c210 int pkt_size = (le16_to_cpu(desc->header.len) & in ec_bhf_process_rx() local
215 skb = netdev_alloc_skb_ip_align(priv->net_dev, pkt_size); in ec_bhf_process_rx()
217 skb_put_data(skb, data, pkt_size); in ec_bhf_process_rx()
219 priv->stat_rx_bytes += pkt_size; in ec_bhf_process_rx()
225 pkt_size); in ec_bhf_process_rx()
/linux/drivers/net/ethernet/atheros/atlx/
H A Datl2.h223 unsigned pkt_size:11; member
237 unsigned pkt_size:11; member
286 unsigned pkt_size:11; /* packet size, max 2047 bytes */ member
/linux/drivers/net/ethernet/silan/
H A Dsc92031.c760 unsigned rx_size, rx_size_align, pkt_size; in _sc92031_rx_tasklet() local
768 pkt_size = rx_size - 4; // Omit the four octet CRC from the length. in _sc92031_rx_tasklet()
788 skb = netdev_alloc_skb_ip_align(dev, pkt_size); in _sc92031_rx_tasklet()
792 dev->name, pkt_size); in _sc92031_rx_tasklet()
796 if ((rx_ring_offset + pkt_size) > RX_BUF_LEN) { in _sc92031_rx_tasklet()
800 pkt_size - (RX_BUF_LEN - rx_ring_offset)); in _sc92031_rx_tasklet()
802 skb_put_data(skb, rx_ring + rx_ring_offset, pkt_size); in _sc92031_rx_tasklet()
808 dev->stats.rx_bytes += pkt_size; in _sc92031_rx_tasklet()
/linux/drivers/staging/greybus/
H A Dcamera.c227 unsigned int pkt_size; in gb_camera_get_max_pkt_size() local
237 pkt_size = le32_to_cpu(cfg->max_pkt_size); in gb_camera_get_max_pkt_size()
239 if (pkt_size == 0) { in gb_camera_get_max_pkt_size()
246 pkt_size = le16_to_cpu(cfg->width) * fmt_info->bpp / 8; in gb_camera_get_max_pkt_size()
248 if (pkt_size != le32_to_cpu(cfg->max_pkt_size)) { in gb_camera_get_max_pkt_size()
251 i, pkt_size, cfg->max_pkt_size); in gb_camera_get_max_pkt_size()
256 max_pkt_size = max(pkt_size, max_pkt_size); in gb_camera_get_max_pkt_size()

123