Home
last modified time | relevance | path

Searched refs:pkt_size (Results 1 - 25 of 160) sorted by relevance

1234567

/kernel/linux/linux-6.6/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()
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 > sizeo in run_xdp_bpf2bpf_pkt_size()
44 run_xdp_bpf2bpf_pkt_size(int pkt_fd, struct perf_buffer *pb, struct test_xdp_bpf2bpf *ftrace_skel, int pkt_size) run_xdp_bpf2bpf_pkt_size() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/qcom/qdsp6/
H A Dq6asm.c280 uint32_t pkt_size, bool cmd_flg, in q6asm_add_hdr()
286 hdr->pkt_size = pkt_size; in q6asm_add_hdr()
334 int rc, pkt_size; in __q6asm_memory_unmap() local
342 pkt_size = APR_HDR_SIZE + sizeof(*mem_unmap); in __q6asm_memory_unmap()
343 p = kzalloc(pkt_size, GFP_KERNEL); in __q6asm_memory_unmap()
353 pkt->hdr.pkt_size = pkt_size; in __q6asm_memory_unmap()
434 int rc, i, pkt_size; in __q6asm_memory_map_regions() local
447 pkt_size in __q6asm_memory_map_regions()
279 q6asm_add_hdr(struct audio_client *ac, struct apr_hdr *hdr, uint32_t pkt_size, bool cmd_flg, uint32_t stream_id) q6asm_add_hdr() argument
933 int rc, pkt_size; q6asm_open_write() local
1014 int pkt_size, rc; __q6asm_run() local
1101 int rc, pkt_size; q6asm_media_format_block_multi_ch_pcm() local
1147 int rc, pkt_size; q6asm_stream_media_format_block_flac() local
1184 int rc, pkt_size; q6asm_stream_media_format_block_wma_v9() local
1222 int rc, pkt_size; q6asm_stream_media_format_block_wma_v10() local
1261 int rc, pkt_size; q6asm_stream_media_format_block_alac() local
1303 int rc, pkt_size; q6asm_stream_media_format_block_ape() local
1343 int rc, pkt_size; q6asm_stream_remove_silence() local
1405 int pkt_size, rc; q6asm_enc_cfg_blk_pcm_format_support() local
1458 int pkt_size; q6asm_read() local
1505 int pkt_size, rc; __q6asm_open_read() local
1580 int pkt_size; q6asm_write_async() local
[all...]
H A 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 in q6adm_matrix_map()
[all...]
H A Dq6afe.c981 int ret, pkt_size; in q6afe_set_param() local
984 pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; in q6afe_set_param()
985 p = kzalloc(pkt_size, GFP_KERNEL); in q6afe_set_param()
998 pkt->hdr.pkt_size = pkt_size; in q6afe_set_param()
1035 int ret, pkt_size; in q6afe_port_set_param_v2() local
1038 pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; in q6afe_port_set_param_v2()
1039 p = kzalloc(pkt_size, GFP_KERNEL); in q6afe_port_set_param_v2()
1052 pkt->hdr.pkt_size = pkt_size; in q6afe_port_set_param_v2()
1188 int index, pkt_size; q6afe_port_stop() local
1487 int pkt_size; q6afe_port_start() local
1652 int pkt_size; q6afe_unvote_lpass_core_hw() local
1690 int pkt_size; q6afe_vote_lpass_core_hw() local
[all...]
/kernel/linux/linux-6.6/sound/soc/qcom/qdsp6/
H A Dq6asm.c280 uint32_t pkt_size, bool cmd_flg, in q6asm_add_hdr()
286 hdr->pkt_size = pkt_size; in q6asm_add_hdr()
334 int rc, pkt_size; in __q6asm_memory_unmap() local
342 pkt_size = APR_HDR_SIZE + sizeof(*mem_unmap); in __q6asm_memory_unmap()
343 p = kzalloc(pkt_size, GFP_KERNEL); in __q6asm_memory_unmap()
353 pkt->hdr.pkt_size = pkt_size; in __q6asm_memory_unmap()
434 int rc, i, pkt_size; in __q6asm_memory_map_regions() local
447 pkt_size in __q6asm_memory_map_regions()
279 q6asm_add_hdr(struct audio_client *ac, struct apr_hdr *hdr, uint32_t pkt_size, bool cmd_flg, uint32_t stream_id) q6asm_add_hdr() argument
933 int rc, pkt_size; q6asm_open_write() local
1014 int pkt_size, rc; __q6asm_run() local
1101 int rc, pkt_size; q6asm_media_format_block_multi_ch_pcm() local
1147 int rc, pkt_size; q6asm_stream_media_format_block_flac() local
1184 int rc, pkt_size; q6asm_stream_media_format_block_wma_v9() local
1222 int rc, pkt_size; q6asm_stream_media_format_block_wma_v10() local
1261 int rc, pkt_size; q6asm_stream_media_format_block_alac() local
1303 int rc, pkt_size; q6asm_stream_media_format_block_ape() local
1343 int rc, pkt_size; q6asm_stream_remove_silence() local
1405 int pkt_size, rc; q6asm_enc_cfg_blk_pcm_format_support() local
1458 int pkt_size; q6asm_read() local
1505 int pkt_size, rc; __q6asm_open_read() local
1580 int pkt_size; q6asm_write_async() local
[all...]
H A 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 in q6adm_matrix_map()
[all...]
H A Dq6afe.c987 int ret, pkt_size; in q6afe_set_param() local
990 pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; in q6afe_set_param()
991 p = kzalloc(pkt_size, GFP_KERNEL); in q6afe_set_param()
1004 pkt->hdr.pkt_size = pkt_size; in q6afe_set_param()
1041 int ret, pkt_size; in q6afe_port_set_param_v2() local
1044 pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; in q6afe_port_set_param_v2()
1045 p = kzalloc(pkt_size, GFP_KERNEL); in q6afe_port_set_param_v2()
1058 pkt->hdr.pkt_size = pkt_size; in q6afe_port_set_param_v2()
1194 int index, pkt_size; q6afe_port_stop() local
1492 int pkt_size; q6afe_port_start() local
1659 int pkt_size; q6afe_unvote_lpass_core_hw() local
1697 int pkt_size; q6afe_vote_lpass_core_hw() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dgro.c302 int payload_len, pkt_size, flag, i; in send_flags() local
306 pkt_size = total_hdr_len + payload_len; in send_flags()
321 write_packet(fd, flag_buf, pkt_size, daddr); in send_flags()
473 int pkt_size = total_hdr_len + PAYLOAD_LEN; in send_changed_checksum() local
476 write_packet(fd, buf, pkt_size, daddr); in send_changed_checksum()
480 write_packet(fd, buf, pkt_size, daddr); in send_changed_checksum()
488 int pkt_size = total_hdr_len + PAYLOAD_LEN; in send_changed_seq() local
491 write_packet(fd, buf, pkt_size, daddr); in send_changed_seq()
497 write_packet(fd, buf, pkt_size, daddr); in send_changed_seq()
507 int pkt_size in send_changed_ts() local
585 int pkt_size = total_hdr_len + PAYLOAD_LEN + optlen; send_ip_options() local
603 int pkt_size = total_hdr_len + PAYLOAD_LEN; send_fragment4() local
626 int pkt_size = total_hdr_len + PAYLOAD_LEN; send_changed_ttl() local
643 int pkt_size = total_hdr_len + PAYLOAD_LEN; send_changed_tos() local
665 int pkt_size = total_hdr_len + PAYLOAD_LEN; send_changed_ECN() local
752 int pkt_size = -1; check_recv_pkts() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/
H A Dmvneta_bm.h87 #define MVNETA_RX_BUF_SIZE(pkt_size) ((pkt_size) + NET_SKB_PAD)
117 int pkt_size; member
146 int pkt_size);
178 int pkt_size) in mvneta_bm_pool_use()
174 mvneta_bm_pool_use(struct mvneta_bm *priv, u8 pool_id, enum mvneta_bm_type type, u8 port_id, int pkt_size) mvneta_bm_pool_use() argument
H A Dmvneta_bm.c160 int pkt_size) in mvneta_bm_pool_use()
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()
332 /* Obtain custom pkt_size from DT */ in mvneta_bm_pools_init()
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()
158 mvneta_bm_pool_use(struct mvneta_bm *priv, u8 pool_id, enum mvneta_bm_type type, u8 port_id, int pkt_size) mvneta_bm_pool_use() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/
H A Dmvneta_bm.h87 #define MVNETA_RX_BUF_SIZE(pkt_size) ((pkt_size) + NET_SKB_PAD)
117 int pkt_size; member
146 int pkt_size);
178 int pkt_size) in mvneta_bm_pool_use()
174 mvneta_bm_pool_use(struct mvneta_bm *priv, u8 pool_id, enum mvneta_bm_type type, u8 port_id, int pkt_size) mvneta_bm_pool_use() argument
H A Dmvneta_bm.c160 int pkt_size) in mvneta_bm_pool_use()
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()
332 /* Obtain custom pkt_size from DT */ in mvneta_bm_pools_init()
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()
158 mvneta_bm_pool_use(struct mvneta_bm *priv, u8 pool_id, enum mvneta_bm_type type, u8 port_id, int pkt_size) mvneta_bm_pool_use() argument
/kernel/linux/linux-6.6/drivers/soc/qcom/
H A 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 in gpr_do_rx_callback()
[all...]
/kernel/linux/linux-5.10/drivers/input/rmi4/
H A Drmi_f11.c644 sensor->pkt_size = DIV_ROUND_UP(sensor->nbr_fingers, 4); in f11_2d_construct_data()
647 sensor->pkt_size += (sensor->nbr_fingers * 5); in f11_2d_construct_data()
648 sensor->attn_size = sensor->pkt_size; in f11_2d_construct_data()
652 sensor->pkt_size += (sensor->nbr_fingers * 2); in f11_2d_construct_data()
656 sensor->pkt_size += sizeof(u8); in f11_2d_construct_data()
660 sensor->pkt_size += sizeof(u8); in f11_2d_construct_data()
663 sensor->pkt_size += 3; in f11_2d_construct_data()
665 sensor->pkt_size--; in f11_2d_construct_data()
667 sensor->pkt_size--; in f11_2d_construct_data()
671 sensor->pkt_size in f11_2d_construct_data()
[all...]
H A Drmi_f12.c206 int valid_bytes = sensor->pkt_size; in rmi_f12_attention()
219 sensor->data_pkt, sensor->pkt_size); in rmi_f12_attention()
406 sensor->pkt_size = rmi_register_desc_calc_size(&f12->data_reg_desc); in rmi_f12_probe()
420 sensor->pkt_size); in rmi_f12_probe()
421 sensor->data_pkt = devm_kzalloc(&fn->dev, sensor->pkt_size, GFP_KERNEL); in rmi_f12_probe()
/kernel/linux/linux-6.6/drivers/input/rmi4/
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_f12.c206 int valid_bytes = sensor->pkt_size; in rmi_f12_attention()
219 sensor->data_pkt, sensor->pkt_size); in rmi_f12_attention()
406 sensor->pkt_size = rmi_register_desc_calc_size(&f12->data_reg_desc); in rmi_f12_probe()
420 sensor->pkt_size); in rmi_f12_probe()
421 sensor->data_pkt = devm_kzalloc(&fn->dev, sensor->pkt_size, GFP_KERNEL); in rmi_f12_probe()
/kernel/linux/linux-5.10/net/sctp/
H A Doutput.c412 int pkt_count = 0, pkt_size; in sctp_packet_pack() local
422 pkt_size = packet->size; in sctp_packet_pack()
427 /* calculate the pkt_size and alloc nskb */ in sctp_packet_pack()
428 pkt_size = packet->overhead; in sctp_packet_pack()
438 else if (pkt_size + padded > tp->pathmtu) in sctp_packet_pack()
440 pkt_size += padded; in sctp_packet_pack()
442 nskb = alloc_skb(pkt_size + MAX_HEADER, gfp); in sctp_packet_pack()
449 pkt_size -= packet->overhead; in sctp_packet_pack()
480 pkt_size -= SCTP_PAD4(chunk->skb->len); in sctp_packet_pack()
485 if (!pkt_size) in sctp_packet_pack()
[all...]
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dtango_nand.c202 const int pkt_size = chip->ecc.size; in check_erased_page() local
207 res = nand_check_erased_ecc_chunk(buf, pkt_size, ecc, ecc_size, in check_erased_page()
216 buf += pkt_size; in check_erased_page()
406 const int pkt_size = chip->ecc.size; in raw_read() local
415 while (rem > pkt_size) { in raw_read()
416 aux_read(chip, &buf, pkt_size, &pos); in raw_read()
423 aux_read(chip, &buf, pkt_size - rem, &pos); in raw_read()
433 const int pkt_size = chip->ecc.size; in raw_write() local
442 while (rem > pkt_size) { in raw_write()
443 aux_write(chip, &buf, pkt_size, in raw_write()
[all...]
/kernel/linux/linux-6.6/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()
457 /* calculate the pkt_size and alloc nskb */ 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()
[all...]
/kernel/linux/linux-5.10/drivers/soc/qcom/
H A Dapr.c65 ret = rpmsg_trysend(apr->ch, pkt, hdr->pkt_size); in apr_send_pkt()
68 return ret ? ret : hdr->pkt_size; in apr_send_pkt()
131 if (hdr->pkt_size < APR_HDR_SIZE || hdr->pkt_size != len) { in apr_do_rx_callback()
166 resp.payload_size = hdr->pkt_size - hdr_size; in apr_do_rx_callback()
/kernel/linux/linux-5.10/drivers/gpu/drm/mcde/
H A Dmcde_display.c646 int pkt_size) in mcde_configure_dsi_formatter()
717 writel(pkt_size, mcde->regs + pkt); in mcde_configure_dsi_formatter()
876 int pkt_size, fifo_wtrmrk; in mcde_display_enable() local
956 pkt_size = (formatter_ppl * formatter_cpp) / pkt_div; in mcde_display_enable()
959 pkt_size++; in mcde_display_enable()
962 pkt_size, pkt_div); in mcde_display_enable()
969 formatter_frame = pkt_size * pkt_div * formatter_lpf; in mcde_display_enable()
1014 formatter_frame, pkt_size); in mcde_display_enable()
643 mcde_configure_dsi_formatter(struct mcde *mcde, enum mcde_dsi_formatter fmt, u32 formatter_frame, int pkt_size) mcde_configure_dsi_formatter() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/bpf/
H A 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/bpf/
H A 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()
/kernel/linux/linux-5.10/drivers/rpmsg/
H A Dqcom_smd.c195 * @pkt_size: size of the currently handled packet
224 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 in qcom_smd_channel_intr()
[all...]

Completed in 29 milliseconds

1234567