Home
last modified time | relevance | path

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

1234

/linux-6.12.1/sound/soc/qcom/qdsp6/
Dq6asm.c281 uint32_t pkt_size, bool cmd_flg, in q6asm_add_hdr() argument
287 hdr->pkt_size = pkt_size; in q6asm_add_hdr()
335 int rc, pkt_size; in __q6asm_memory_unmap() local
343 pkt_size = APR_HDR_SIZE + sizeof(*mem_unmap); in __q6asm_memory_unmap()
344 p = kzalloc(pkt_size, GFP_KERNEL); in __q6asm_memory_unmap()
354 pkt->hdr.pkt_size = pkt_size; in __q6asm_memory_unmap()
435 int rc, i, pkt_size; in __q6asm_memory_map_regions() local
448 pkt_size = APR_HDR_SIZE + sizeof(*cmd) + in __q6asm_memory_map_regions()
451 p = kzalloc(pkt_size, GFP_KERNEL); in __q6asm_memory_map_regions()
462 pkt->hdr.pkt_size = pkt_size; in __q6asm_memory_map_regions()
[all …]
Dq6afe.c988 int ret, pkt_size; in q6afe_set_param() local
991 pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; in q6afe_set_param()
992 p = kzalloc(pkt_size, GFP_KERNEL); in q6afe_set_param()
1005 pkt->hdr.pkt_size = pkt_size; in q6afe_set_param()
1042 int ret, pkt_size; in q6afe_port_set_param_v2() local
1045 pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; in q6afe_port_set_param_v2()
1046 p = kzalloc(pkt_size, GFP_KERNEL); in q6afe_port_set_param_v2()
1059 pkt->hdr.pkt_size = pkt_size; in q6afe_port_set_param_v2()
1195 int index, pkt_size; in q6afe_port_stop() local
1204 pkt_size = APR_HDR_SIZE + sizeof(*stop); in q6afe_port_stop()
[all …]
Dq6adm.c287 close.hdr.pkt_size = sizeof(close); in q6adm_device_close()
329 int ret, pkt_size; in q6adm_device_open() local
331 pkt_size = APR_HDR_SIZE + sizeof(*open); in q6adm_device_open()
332 p = kzalloc(pkt_size, GFP_KERNEL); in q6adm_device_open()
341 pkt->hdr.pkt_size = pkt_size; in q6adm_device_open()
467 int pkt_size, ret, i, copp_idx; in q6adm_matrix_map() local
472 pkt_size = (APR_HDR_SIZE + sizeof(*route) + sizeof(*node) + in q6adm_matrix_map()
475 matrix_map = kzalloc(pkt_size, GFP_KERNEL); in q6adm_matrix_map()
487 pkt->hdr.pkt_size = pkt_size; in q6adm_matrix_map()
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()
Daudioreach.c210 int pkt_size = GPR_HDR_SIZE + payload_size; in __audioreach_alloc_pkt() local
213 pkt_size += APM_CMD_HDR_SIZE; in __audioreach_alloc_pkt()
215 p = kzalloc(pkt_size, GFP_KERNEL); in __audioreach_alloc_pkt()
222 pkt->hdr.pkt_size = pkt_size; in __audioreach_alloc_pkt()
249 void *audioreach_alloc_apm_pkt(int pkt_size, uint32_t opcode, uint32_t token, uint32_t src_port) in audioreach_alloc_apm_pkt() argument
251 return __audioreach_alloc_pkt(pkt_size, opcode, token, src_port, APM_MODULE_INSTANCE_ID, in audioreach_alloc_apm_pkt()
263 void *audioreach_alloc_apm_cmd_pkt(int pkt_size, uint32_t opcode, uint32_t token) in audioreach_alloc_apm_cmd_pkt() argument
265 return __audioreach_alloc_pkt(pkt_size, opcode, token, GPR_APM_MODULE_IID, in audioreach_alloc_apm_cmd_pkt()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
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()
/linux-6.12.1/tools/testing/selftests/net/
Dgro.c328 int payload_len, pkt_size, flag, i; in send_flags() local
332 pkt_size = total_hdr_len + payload_len; in send_flags()
347 write_packet(fd, flag_buf, pkt_size, daddr); in send_flags()
499 int pkt_size = total_hdr_len + PAYLOAD_LEN; in send_changed_checksum() local
502 write_packet(fd, buf, pkt_size, daddr); in send_changed_checksum()
506 write_packet(fd, buf, pkt_size, daddr); in send_changed_checksum()
514 int pkt_size = total_hdr_len + PAYLOAD_LEN; in send_changed_seq() local
517 write_packet(fd, buf, pkt_size, daddr); in send_changed_seq()
523 write_packet(fd, buf, pkt_size, daddr); in send_changed_seq()
533 int pkt_size = total_hdr_len + PAYLOAD_LEN + TCPOLEN_TSTAMP_APPA; in send_changed_ts() local
[all …]
/linux-6.12.1/tools/testing/selftests/net/forwarding/
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-6.12.1/drivers/net/ethernet/marvell/
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
Dmvneta_bm.c160 int pkt_size) in mvneta_bm_pool_use() argument
178 if (new_pool->pkt_size == 0 || type != MVNETA_BM_SHORT) in mvneta_bm_pool_use()
179 new_pool->pkt_size = pkt_size; in mvneta_bm_pool_use()
187 new_pool->buf_size = MVNETA_RX_BUF_SIZE(new_pool->pkt_size); in mvneta_bm_pool_use()
189 SKB_DATA_ALIGN(MVNETA_RX_BUF_SIZE(new_pool->pkt_size)) + in mvneta_bm_pool_use()
334 if (of_property_read_u32(dn, prop, &bm_pool->pkt_size)) in mvneta_bm_pools_init()
335 bm_pool->pkt_size = 0; in mvneta_bm_pools_init()
/linux-6.12.1/drivers/soc/qcom/
Dapr.c70 ret = rpmsg_trysend(apr->ch, pkt, hdr->pkt_size); in apr_send_pkt()
73 return ret ? ret : hdr->pkt_size; in apr_send_pkt()
136 ret = rpmsg_trysend(pr->ch, pkt, hdr->pkt_size); in pkt_router_send_svc_pkt()
139 return ret ? ret : hdr->pkt_size; in pkt_router_send_svc_pkt()
213 if (hdr->pkt_size < APR_HDR_SIZE || hdr->pkt_size != len) { in apr_do_rx_callback()
248 resp.payload_size = hdr->pkt_size - hdr_size; in apr_do_rx_callback()
283 if (hdr->pkt_size < GPR_PKT_HEADER_BYTE_SIZE || hdr->pkt_size != len) { in gpr_do_rx_callback()
289 resp.payload_size = hdr->pkt_size - (hdr_size * 4); in gpr_do_rx_callback()
/linux-6.12.1/drivers/input/rmi4/
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 …]
Drmi_f12.c229 int valid_bytes = sensor->pkt_size; in rmi_f12_attention()
242 sensor->data_pkt, sensor->pkt_size); in rmi_f12_attention()
429 sensor->pkt_size = rmi_register_desc_calc_size(&f12->data_reg_desc); in rmi_f12_probe()
443 sensor->pkt_size); in rmi_f12_probe()
444 sensor->data_pkt = devm_kzalloc(&fn->dev, sensor->pkt_size, GFP_KERNEL); in rmi_f12_probe()
/linux-6.12.1/net/sctp/
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-6.12.1/drivers/net/ethernet/netronome/nfp/bpf/
Doffload.c450 u32 pkt_size, data_size, map_id; in nfp_bpf_event_output() local
456 pkt_size = be32_to_cpu(cbe->pkt_size); in nfp_bpf_event_output()
461 if (len < sizeof(struct cmsg_bpf_event) + pkt_size + data_size) in nfp_bpf_event_output()
477 &cbe->data[round_up(pkt_size, 4)], data_size, in nfp_bpf_event_output()
478 cbe->data, pkt_size, nfp_bpf_perf_event_copy); in nfp_bpf_event_output()
/linux-6.12.1/drivers/net/wwan/t7xx/
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()
377 ring->pkt_size, tx_rx); in t7xx_cldma_ring_free()
391 static struct cldma_request *t7xx_alloc_rx_request(struct cldma_ctrl *md_ctrl, size_t pkt_size) in t7xx_alloc_rx_request() argument
404 val = t7xx_cldma_alloc_and_map_skb(md_ctrl, req, pkt_size, GFP_KERNEL); in t7xx_alloc_rx_request()
429 req = t7xx_alloc_rx_request(md_ctrl, ring->pkt_size); in t7xx_cldma_rx_ring_init()
437 gpd->rx_data_allow_len = cpu_to_le16(ring->pkt_size); in t7xx_cldma_rx_ring_init()
803 ret = t7xx_cldma_alloc_and_map_skb(md_ctrl, req, rxq->tr_ring->pkt_size, GFP_ATOMIC); in t7xx_cldma_clear_rxq()
1000 md_ctrl->rx_ring[qno].pkt_size = CLDMA_SHARED_Q_BUFF_SZ; in t7xx_cldma_adjust_config()
1004 md_ctrl->rx_ring[CLDMA_RXQ_NUM - 1].pkt_size = CLDMA_JUMBO_BUFF_SZ; in t7xx_cldma_adjust_config()
[all …]
/linux-6.12.1/drivers/rpmsg/
Dqcom_smd.c224 int pkt_size; member
407 channel->pkt_size = 0; in qcom_smd_channel_reset()
553 if (tail + channel->pkt_size >= channel->fifo_size) { in qcom_smd_channel_recv_single()
555 len = qcom_smd_channel_peek(channel, ptr, channel->pkt_size); in qcom_smd_channel_recv_single()
558 len = channel->pkt_size; in qcom_smd_channel_recv_single()
568 channel->pkt_size = 0; in qcom_smd_channel_recv_single()
610 if (!channel->pkt_size && avail >= SMD_PACKET_HEADER_LEN) { in qcom_smd_channel_intr()
613 channel->pkt_size = le32_to_cpu(pktlen); in qcom_smd_channel_intr()
614 } else if (channel->pkt_size && avail >= channel->pkt_size) { in qcom_smd_channel_intr()
/linux-6.12.1/include/linux/soc/qcom/
Dapr.h57 uint16_t pkt_size; member
82 uint32_t pkt_size:24; member
/linux-6.12.1/drivers/net/ethernet/
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-6.12.1/drivers/net/ethernet/atheros/atlx/
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-6.12.1/drivers/gpu/drm/mcde/
Dmcde_display.c751 int pkt_size) in mcde_configure_dsi_formatter() argument
827 writel(pkt_size, mcde->regs + pkt); in mcde_configure_dsi_formatter()
1080 int pkt_size; in mcde_setup_dsi() local
1133 pkt_size = (formatter_ppl * formatter_cpp) / pkt_div; in mcde_setup_dsi()
1136 pkt_size++; in mcde_setup_dsi()
1139 pkt_size, pkt_div); in mcde_setup_dsi()
1143 formatter_frame = pkt_size * pkt_div * formatter_lpf; in mcde_setup_dsi()
1147 *dsi_pkt_size = pkt_size; in mcde_setup_dsi()
/linux-6.12.1/drivers/net/ethernet/silan/
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-6.12.1/drivers/gpu/drm/msm/dsi/
Ddsi_host.c1386 u8 *buf, int rx_byte, int pkt_size) in dsi_cmd_dma_rx() argument
1403 read_cnt = pkt_size + 6; in dsi_cmd_dma_rx()
2109 int short_response, diff, pkt_size, ret = 0; in msm_dsi_host_cmd_rx() local
2116 pkt_size = rlen; in msm_dsi_host_cmd_rx()
2122 pkt_size = rlen; in msm_dsi_host_cmd_rx()
2124 pkt_size = data_byte; in msm_dsi_host_cmd_rx()
2131 u8 tx[2] = {pkt_size & 0xff, pkt_size >> 8}; in msm_dsi_host_cmd_rx()
2140 rlen, pkt_size, rx_byte); in msm_dsi_host_cmd_rx()
2175 dlen = dsi_cmd_dma_rx(msm_host, buf, rx_byte, pkt_size); in msm_dsi_host_cmd_rx()
2197 pkt_size += rlen; in msm_dsi_host_cmd_rx()
[all …]
/linux-6.12.1/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c54 int pkt_size; member
442 bm_pool->pkt_size = 0; in mvpp2_bm_pool_create()
665 mvpp2_pools[pn].pkt_size, in mvpp2_bm_init()
708 mvpp2_pools[MVPP2_BM_SHORT].pkt_size = MVPP2_BM_SHORT_PKT_SIZE; in mvpp2_setup_bm_pool()
712 mvpp2_pools[MVPP2_BM_LONG].pkt_size = MVPP2_BM_LONG_PKT_SIZE; in mvpp2_setup_bm_pool()
716 mvpp2_pools[MVPP2_BM_JUMBO].pkt_size = MVPP2_BM_JUMBO_PKT_SIZE; in mvpp2_setup_bm_pool()
782 MVPP2_RX_BUF_SIZE(bm_pool->pkt_size), in mvpp2_buf_alloc()
1053 bm_pool->pkt_size > MVPP2_BM_LONG_PKT_SIZE) { in mvpp2_bm_bufs_add()
1059 buf_size = MVPP2_RX_BUF_SIZE(bm_pool->pkt_size); in mvpp2_bm_bufs_add()
1087 bm_pool->id, bm_pool->pkt_size, buf_size, total_size); in mvpp2_bm_bufs_add()
[all …]
/linux-6.12.1/drivers/staging/greybus/
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()

1234