/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_bpf2bpf.c | 15 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 D | q6asm.c | 280 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 D | q6afe.c | 981 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...] |
H A D | q6adm.c | 287 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...] |
/kernel/linux/linux-6.6/sound/soc/qcom/qdsp6/ |
H A D | q6asm.c | 280 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 D | q6afe.c | 987 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...] |
H A D | q6adm.c | 287 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...] |
/third_party/ffmpeg/libavcodec/ |
H A D | msp2dec.c | 57 unsigned int pkt_size = bytestream2_get_le16(&idx); in msp2_decode_frame() local 58 if (!pkt_size) { in msp2_decode_frame() 63 if (pkt_size > buf_size) { in msp2_decode_frame() 65 pkt_size = buf_size; in msp2_decode_frame() 68 bytestream2_init(&gb, buf, pkt_size); in msp2_decode_frame() 87 buf += pkt_size; in msp2_decode_frame() 88 buf_size -= pkt_size; in msp2_decode_frame()
|
H A D | vbnenc.c | 51 int64_t pkt_size; in vbn_encode() local 91 pkt_size = VBN_HEADER_SIZE + linesize * frame->height; in vbn_encode() 92 if (pkt_size > INT_MAX) in vbn_encode() 95 if ((ret = ff_get_encode_buffer(avctx, pkt, pkt_size, 0)) < 0) in vbn_encode() 99 bytestream2_init_writer(pb, pkt->data, pkt_size); in vbn_encode() 109 bytestream2_put_le32u(pb, pkt_size - VBN_HEADER_SIZE); in vbn_encode() 111 bytestream2_put_le32u(pb, pkt_size - VBN_HEADER_SIZE); in vbn_encode()
|
H A D | pcm-blurayenc.c | 115 unsigned pkt_size; in pcm_bluray_encode_frame() local 124 pkt_size = sample_size * samples + 4; in pcm_bluray_encode_frame() 126 if ((ret = ff_get_encode_buffer(avctx, avpkt, pkt_size, 0)) < 0) in pcm_bluray_encode_frame() 129 AV_WB16(avpkt->data, pkt_size - 4); in pcm_bluray_encode_frame()
|
/third_party/ffmpeg/libavformat/ |
H A D | binka.c | 67 int pkt_size; in binka_read_packet() local 75 pkt_size = avio_rl16(pb) + 4; in binka_read_packet() 76 if (pkt_size <= 4) in binka_read_packet() 78 ret = av_new_packet(pkt, pkt_size); in binka_read_packet() 82 avio_read(pb, pkt->data + 4, pkt_size - 4); in binka_read_packet() 83 AV_WL32(pkt->data, pkt_size); in binka_read_packet()
|
H A D | qcp.c | 153 int pkt_size, ret, mode = avio_r8(pb); in qcp_read_packet() local 156 pkt_size = s->packet_size - 1; in qcp_read_packet() 157 } else if (mode > QCP_MAX_MODE || (pkt_size = c->rates_per_mode[mode]) < 0) { in qcp_read_packet() 162 if (c->data_size <= pkt_size) { in qcp_read_packet() 164 pkt_size = c->data_size - 1; in qcp_read_packet() 167 if ((ret = av_get_packet(pb, pkt, pkt_size)) >= 0) { in qcp_read_packet() 168 if (pkt_size != ret) in qcp_read_packet() 171 c->data_size -= pkt_size + 1; in qcp_read_packet()
|
H A D | dsicin.c | 171 int64_t pkt_size; in cin_read_packet() local 187 pkt_size = (palette_type + 3LL) * hdr->pal_colors_count + hdr->video_frame_size; in cin_read_packet() 188 if (pkt_size + 4 > INT_MAX) in cin_read_packet() 191 pkt_size = ffio_limit(pb, pkt_size); in cin_read_packet() 193 ret = av_new_packet(pkt, 4 + pkt_size); in cin_read_packet() 205 ret = avio_read(pb, &pkt->data[4], pkt_size); in cin_read_packet() 209 if (ret < pkt_size) in cin_read_packet()
|
H A D | cafdec.c | 424 int res, pkt_size = 0, pkt_frames = 0; in read_packet() local 440 pkt_size = caf->bytes_per_packet; in read_packet() 442 if (pkt_size > 0 && pkt_frames == 1) { in read_packet() 443 pkt_size = (CAF_MAX_PKT_SIZE / pkt_size) * pkt_size; in read_packet() 444 pkt_size = FFMIN(pkt_size, left); in read_packet() 445 pkt_frames = pkt_size / caf->bytes_per_packet; in read_packet() 448 pkt_size in read_packet() [all...] |
H A D | luodatdec.c | 60 int index, ret, key, stream_id, stream_index, width, height, fps, pkt_size; in dat_read_packet() local 78 pkt_size = avio_rl32(pb); in dat_read_packet() 81 if (pkt_size == 0) in dat_read_packet() 106 ret = av_get_packet(pb, pkt, pkt_size); in dat_read_packet()
|
H A D | libzmq.c | 35 int pkt_size; member 43 { "pkt_size", "Maximum send/read packet size", OFFSET(pkt_size), AV_OPT_TYPE_INT, { .i64 = 131072 }, -1, INT_MAX, .flags = D | E }, 87 if (s->pkt_size > 0) in zmq_proto_open() 88 h->max_packet_size = s->pkt_size; in zmq_proto_open() 174 av_log(h, AV_LOG_WARNING, "Message exceeds available space in the buffer. Message will be truncated. Setting -pkt_size %d may resolve the issue.\n", s->pkt_size_overflow); in zmq_proto_read()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | gro.c | 302 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 D | mvneta_bm.h | 87 #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 D | mvneta_bm.c | 160 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 D | mvneta_bm.h | 87 #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 D | mvneta_bm.c | 160 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-5.10/drivers/input/rmi4/ |
H A D | rmi_f11.c | 644 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...] |
/kernel/linux/linux-6.6/drivers/input/rmi4/ |
H A D | rmi_f11.c | 666 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...] |
/kernel/linux/linux-6.6/drivers/soc/qcom/ |
H A D | apr.c | 70 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/net/sctp/ |
H A D | output.c | 412 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...] |