Home
last modified time | relevance | path

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

12345

/openbmc/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()
/openbmc/linux/sound/soc/qcom/qdsp6/
H A Dq6asm.c286 hdr->pkt_size = pkt_size; in q6asm_add_hdr()
334 int rc, pkt_size; in __q6asm_memory_unmap() local
353 pkt->hdr.pkt_size = pkt_size; in __q6asm_memory_unmap()
461 pkt->hdr.pkt_size = pkt_size; in __q6asm_memory_map_regions()
933 int rc, pkt_size; in q6asm_open_write() local
1014 int pkt_size, rc; in __q6asm_run() local
1101 int rc, pkt_size; in q6asm_media_format_block_multi_ch_pcm() local
1147 int rc, pkt_size; in q6asm_stream_media_format_block_flac() local
1184 int rc, pkt_size; in q6asm_stream_media_format_block_wma_v9() local
1458 int pkt_size; in q6asm_read() local
[all …]
H A Dq6afe.c987 int ret, pkt_size; in q6afe_set_param() local
1004 pkt->hdr.pkt_size = pkt_size; in q6afe_set_param()
1041 int ret, pkt_size; in q6afe_port_set_param_v2() local
1058 pkt->hdr.pkt_size = pkt_size; in q6afe_port_set_param_v2()
1214 pkt->hdr.pkt_size = pkt_size; in q6afe_port_stop()
1492 int pkt_size; in q6afe_port_start() local
1526 pkt->hdr.pkt_size = pkt_size; in q6afe_port_start()
1659 int pkt_size; in q6afe_unvote_lpass_core_hw() local
1673 pkt->hdr.pkt_size = pkt_size; in q6afe_unvote_lpass_core_hw()
1697 int pkt_size; in q6afe_vote_lpass_core_hw() 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 = 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()
/openbmc/linux/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()
476 write_packet(fd, buf, pkt_size, daddr); in send_changed_checksum()
480 write_packet(fd, buf, pkt_size, daddr); in send_changed_checksum()
491 write_packet(fd, buf, pkt_size, daddr); in send_changed_seq()
497 write_packet(fd, buf, pkt_size, daddr); in send_changed_seq()
606 write_packet(fd, buf, pkt_size, daddr); in send_fragment4()
620 write_packet(fd, buf, pkt_size, daddr); in send_fragment4()
631 write_packet(fd, buf, pkt_size, daddr); in send_changed_ttl()
752 int pkt_size = -1; in check_recv_pkts() local
[all …]
/openbmc/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.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()
/openbmc/linux/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 - (hdr_size * 4); in gpr_do_rx_callback()
/openbmc/linux/drivers/input/rmi4/
H A Drmi_f11.c669 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()
1307 int valid_bytes = f11->sensor.pkt_size; in rmi_f11_attention()
[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()
H A Drmi_2d_sensor.h56 int pkt_size; member
/openbmc/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()
/openbmc/qemu/hw/net/
H A Ddp8393x.c722 size_t pkt_size) in dp8393x_receive() argument
735 return pkt_size; in dp8393x_receive()
738 rx_len = pkt_size + sizeof(checksum); in dp8393x_receive()
746 trace_dp8393x_receive_oversize(pkt_size); in dp8393x_receive()
753 packet_type = dp8393x_receive_filter(s, buf, pkt_size); in dp8393x_receive()
782 checksum = cpu_to_le32(crc32(0, buf, pkt_size)); in dp8393x_receive()
788 buf, pkt_size); in dp8393x_receive()
789 address += pkt_size; in dp8393x_receive()
861 return pkt_size; in dp8393x_receive()
H A De1000x_common.c247 size_t pkt_size, in e1000x_update_rx_total_stats() argument
261 e1000x_grow_8reg_if_not_full(mac, TORL, pkt_size + 4); in e1000x_update_rx_total_stats()
262 e1000x_grow_8reg_if_not_full(mac, GORCL, pkt_size + 4); in e1000x_update_rx_total_stats()
/openbmc/linux/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()
/openbmc/qemu/net/
H A Deth.c524 const void *pkt, size_t pkt_size) in eth_pad_short_frame() argument
528 if (pkt_size >= ETH_ZLEN) { in eth_pad_short_frame()
533 memcpy(padded_pkt, pkt, pkt_size); in eth_pad_short_frame()
534 memset(&padded_pkt[pkt_size], 0, ETH_ZLEN - pkt_size); in eth_pad_short_frame()
/openbmc/linux/include/linux/soc/qcom/
H A Dapr.h57 uint16_t pkt_size; member
82 uint32_t pkt_size:24; member
/openbmc/linux/drivers/rpmsg/
H A 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()
/openbmc/linux/drivers/net/wwan/t7xx/
H A Dt7xx_hif_cldma.c157 queue->tr_ring->pkt_size, DMA_FROM_DEVICE); in t7xx_cldma_gpd_rx_from_q()
178 ret = t7xx_cldma_alloc_and_map_skb(md_ctrl, req, queue->tr_ring->pkt_size, GFP_KERNEL); in t7xx_cldma_gpd_rx_from_q()
379 ring->pkt_size, tx_rx); in t7xx_cldma_ring_free()
393 static struct cldma_request *t7xx_alloc_rx_request(struct cldma_ctrl *md_ctrl, size_t pkt_size) in t7xx_alloc_rx_request() argument
406 val = t7xx_cldma_alloc_and_map_skb(md_ctrl, req, pkt_size, GFP_KERNEL); in t7xx_alloc_rx_request()
431 req = t7xx_alloc_rx_request(md_ctrl, ring->pkt_size); in t7xx_cldma_rx_ring_init()
439 gpd->rx_data_allow_len = cpu_to_le16(ring->pkt_size); in t7xx_cldma_rx_ring_init()
805 ret = t7xx_cldma_alloc_and_map_skb(md_ctrl, req, rxq->tr_ring->pkt_size, GFP_ATOMIC); in t7xx_cldma_clear_rxq()
1023 md_ctrl->tx_ring[i].pkt_size = CLDMA_MTU; in t7xx_cldma_late_init()
1027 md_ctrl->rx_ring[j].pkt_size = CLDMA_MTU; in t7xx_cldma_late_init()
[all …]
/openbmc/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()
/openbmc/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
/openbmc/linux/drivers/gpu/drm/mcde/
H A 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()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/msm/dsi/
H A Ddsi_host.c1343 u8 *buf, int rx_byte, int pkt_size) in dsi_cmd_dma_rx() argument
1360 read_cnt = pkt_size + 6; in dsi_cmd_dma_rx()
2081 int short_response, diff, pkt_size, ret = 0; in msm_dsi_host_cmd_rx() local
2088 pkt_size = rlen; in msm_dsi_host_cmd_rx()
2094 pkt_size = rlen; in msm_dsi_host_cmd_rx()
2096 pkt_size = data_byte; in msm_dsi_host_cmd_rx()
2103 u8 tx[2] = {pkt_size & 0xff, pkt_size >> 8}; in msm_dsi_host_cmd_rx()
2112 rlen, pkt_size, rx_byte); in msm_dsi_host_cmd_rx()
2169 pkt_size += rlen; in msm_dsi_host_cmd_rx()
2171 pkt_size += data_byte; in msm_dsi_host_cmd_rx()
[all …]

12345