Home
last modified time | relevance | path

Searched refs:frag_size (Results 1 – 25 of 57) sorted by relevance

123

/linux/net/core/
H A Dhwbm.c15 if (likely(bm_pool->frag_size <= PAGE_SIZE)) in hwbm_buf_free()
25 int frag_size = bm_pool->frag_size; in hwbm_pool_refill() local
28 if (likely(frag_size <= PAGE_SIZE)) in hwbm_pool_refill()
29 buf = netdev_alloc_frag(frag_size); in hwbm_pool_refill()
31 buf = kmalloc(frag_size, gfp); in hwbm_pool_refill()
H A Dnet_test.c190 unsigned int frag_size; in gso_test_func() local
195 frag_size = tcase->frag_skbs[i]; in gso_test_func()
197 frag_size + shinfo_size); in gso_test_func()
199 __skb_put(frag_skb, frag_size); in gso_test_func()
207 total_size += frag_size; in gso_test_func()
H A Dxdp.c168 unsigned int napi_id, u32 frag_size) in __xdp_rxq_info_reg() argument
190 xdp_rxq->frag_size = frag_size; in __xdp_rxq_info_reg()
/linux/fs/squashfs/
H A Dinode.c134 int frag_size; in squashfs_read_inode() local
146 frag_size = squashfs_frag_lookup(sb, frag, &frag_blk); in squashfs_read_inode()
147 if (frag_size < 0) { in squashfs_read_inode()
148 err = frag_size; in squashfs_read_inode()
153 frag_size = 0; in squashfs_read_inode()
163 squashfs_i(inode)->fragment_size = frag_size; in squashfs_read_inode()
177 int frag_size; in squashfs_read_inode() local
189 frag_size = squashfs_frag_lookup(sb, frag, &frag_blk); in squashfs_read_inode()
190 if (frag_size < 0) { in squashfs_read_inode()
191 err = frag_size; in squashfs_read_inode()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_rx.c121 cpu_to_be32(priv->frag_info[i].frag_size); in mlx4_en_init_rx_desc()
478 int nr, frag_size; in mlx4_en_complete_rx_desc() local
484 frag_size = min_t(int, length, frag_info->frag_size); in mlx4_en_complete_rx_desc()
492 frag_size, priv->dma_dir); in mlx4_en_complete_rx_desc()
495 frag_size); in mlx4_en_complete_rx_desc()
508 u32 sz_align = ALIGN(frag_size, SMP_CACHE_BYTES); in mlx4_en_complete_rx_desc()
511 release = frags->page_offset + frag_info->frag_size > PAGE_SIZE; in mlx4_en_complete_rx_desc()
521 length -= frag_size; in mlx4_en_complete_rx_desc()
828 priv->frag_info[0].frag_size, in mlx4_en_process_rx_cq()
1060 priv->frag_info[0].frag_size = eff_mtu; in mlx4_en_calc_rx_buf()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dparams.c625 static int mlx5e_max_nonlinear_mtu(int first_frag_size, int frag_size, bool xdp) in mlx5e_max_nonlinear_mtu() argument
629 return first_frag_size + (MLX5E_MAX_RX_FRAGS - 1) * frag_size; in mlx5e_max_nonlinear_mtu()
632 return first_frag_size + (MLX5E_MAX_RX_FRAGS - 2) * frag_size + PAGE_SIZE; in mlx5e_max_nonlinear_mtu()
698 info->arr[0].frag_size = byte_count; in mlx5e_build_rq_frags_info()
732 int frag_size = byte_count - buf_size; in mlx5e_build_rq_frags_info() local
735 frag_size = min(frag_size, first_frag_size_max); in mlx5e_build_rq_frags_info()
737 frag_size = min(frag_size, frag_size_max); in mlx5e_build_rq_frags_info()
739 info->arr[i].frag_size = frag_size; in mlx5e_build_rq_frags_info()
740 buf_size += frag_size; in mlx5e_build_rq_frags_info()
748 frag_size += headroom; in mlx5e_build_rq_frags_info()
[all …]
/linux/drivers/soc/qcom/
H A Dwcnss_ctrl.c96 u32 frag_size; member
231 req->frag_size = NV_FRAGMENT_SIZE; in wcnss_download_nv()
237 req->frag_size = left; in wcnss_download_nv()
241 memcpy(req->fragment, data, req->frag_size); in wcnss_download_nv()
/linux/drivers/infiniband/hw/qib/
H A Dqib_user_sdma.c71 u16 frag_size; /* frag size used by PSM */ member
351 if ((pkt->payload_size + newlen) >= pkt->frag_size) { in qib_user_sdma_page_to_frags()
352 newlen = pkt->frag_size - pkt->payload_size; in qib_user_sdma_page_to_frags()
760 if (pkt->frag_size == pkt->bytes_togo && in qib_user_sdma_init_payload()
814 u16 frag_size; in qib_user_sdma_queue_pkts() local
898 frag_size = ((le32_to_cpu(*pbc))>>16) & 0xFFFF; in qib_user_sdma_queue_pkts()
899 if (((frag_size ? frag_size : bytes_togo) + len) > in qib_user_sdma_queue_pkts()
905 if (frag_size) { in qib_user_sdma_queue_pkts()
908 n = npages*((2*PAGE_SIZE/frag_size)+1); in qib_user_sdma_queue_pkts()
934 pkt->frag_size = frag_size; in qib_user_sdma_queue_pkts()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rx.c1634 u32 frag_size, u16 headroom, in mlx5e_build_linear_skb() argument
1637 struct sk_buff *skb = napi_build_skb(va, frag_size); in mlx5e_build_linear_skb()
1674 u32 frag_size; in mlx5e_skb_from_cqe_linear() local
1678 frag_size = MLX5_SKB_FRAG_SZ(rx_headroom + cqe_bcnt); in mlx5e_skb_from_cqe_linear()
1682 frag_size, rq->buff.map_dir); in mlx5e_skb_from_cqe_linear()
1699 frag_size = MLX5_SKB_FRAG_SZ(rx_headroom + cqe_bcnt); in mlx5e_skb_from_cqe_linear()
1700 skb = mlx5e_build_linear_skb(rq, va, frag_size, rx_headroom, cqe_bcnt, metasize); in mlx5e_skb_from_cqe_linear()
1731 frag_consumed_bytes = min_t(u32, frag_info->frag_size, cqe_bcnt); in mlx5e_skb_from_cqe_nonlinear()
1751 frag_consumed_bytes = min_t(u32, frag_info->frag_size, cqe_bcnt); in mlx5e_skb_from_cqe_nonlinear()
2136 u32 frag_size; in mlx5e_skb_from_cqe_mpwrq_linear() local
[all …]
/linux/include/uapi/linux/
H A Duio.h26 __u32 frag_size; /* size of the frag. */ member
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
H A Dchcr_ktls.c27 u32 frag_size, skb_linear_data_len = skb_headlen(skb); in chcr_get_nfrags_to_send() local
36 frag_size = min(len, skb_linear_data_len - start); in chcr_get_nfrags_to_send()
41 frag_size = skb_frag_size(frag); in chcr_get_nfrags_to_send()
42 while (start >= frag_size) { in chcr_get_nfrags_to_send()
43 start -= frag_size; in chcr_get_nfrags_to_send()
46 frag_size = skb_frag_size(frag); in chcr_get_nfrags_to_send()
48 frag_size = min(len, skb_frag_size(frag) - start); in chcr_get_nfrags_to_send()
50 len -= frag_size; in chcr_get_nfrags_to_send()
54 frag_size = min(len, skb_frag_size(&si->frags[frag_idx])); in chcr_get_nfrags_to_send()
55 len -= frag_size; in chcr_get_nfrags_to_send()
[all …]
/linux/include/net/
H A Dhwbm.h11 int frag_size; member
H A Dxdp.h66 u32 frag_size; member
336 unsigned int napi_id, u32 frag_size);
/linux/drivers/net/ethernet/google/gve/
H A Dgve_rx.c800 u16 frag_size = be16_to_cpu(desc->len); in gve_rx() local
810 u16 len = frag_size; in gve_rx()
826 if (unlikely(frag_size > rx->packet_buffer_size)) { in gve_rx()
828 frag_size, rx->packet_buffer_size); in gve_rx()
851 frag_size -= page_info->pad; in gve_rx()
866 ctx->total_size += frag_size; in gve_rx()
889 ctx->total_size += frag_size; in gve_rx()
/linux/net/ipv6/
H A Dip6_output.c904 u32 frag_size = READ_ONCE(np->frag_size); in ip6_fragment() local
906 if (frag_size && frag_size < mtu) in ip6_fragment()
907 mtu = frag_size; in ip6_fragment()
1346 unsigned int mtu, frag_size; in ip6_setup_cork() local
1396 frag_size = READ_ONCE(np->frag_size); in ip6_setup_cork()
1397 if (frag_size && frag_size < mtu) in ip6_setup_cork()
1398 mtu = frag_size; in ip6_setup_cork()
/linux/sound/usb/line6/
H A Ddriver.c109 int frag_size = min(line6->max_packet_size, size - i); in line6_send_raw_message() local
115 (char *)frag_buf, frag_size, in line6_send_raw_message()
120 (char *)frag_buf, frag_size, in line6_send_raw_message()
130 done += frag_size; in line6_send_raw_message()
/linux/sound/soc/intel/atom/
H A Dsst-mfld-dsp.h378 __u32 frag_size; /*Number of samples after which period elapsed member
404 u32 frag_size; member
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ethtool.c1272 u32 frag_size; in stmmac_get_mm() local
1297 frag_size = stmmac_fpe_get_add_frag_size(priv); in stmmac_get_mm()
1298 state->tx_min_frag_size = ethtool_mm_frag_size_add_to_min(frag_size); in stmmac_get_mm()
1311 u32 frag_size; in stmmac_set_mm() local
1315 &frag_size, extack); in stmmac_set_mm()
1332 stmmac_fpe_set_add_frag_size(priv, frag_size); in stmmac_set_mm()
/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_common.c739 u32 frag_size = skb_frag_size(frag); in icssg_ndo_start_xmit() local
748 buf_dma = skb_frag_dma_map(tx_chn->dma_dev, frag, 0, frag_size, in icssg_ndo_start_xmit()
760 buf_dma, frag_size, buf_dma, frag_size); in icssg_ndo_start_xmit()
767 pkt_len += frag_size; in icssg_ndo_start_xmit()
/linux/sound/soc/intel/atom/sst/
H A Dsst_stream.c50 str_info->alloc_param.frag_size = str_params->aparams.frag_size; in sst_alloc_stream_mrfld()
/linux/drivers/scsi/qedi/
H A Dqedi_fw.c1749 int frag_size, sg_frags; in qedi_split_bd() local
1755 frag_size = in qedi_split_bd()
1758 frag_size = (sg_len > QEDI_BD_SPLIT_SZ) ? 0 : in qedi_split_bd()
1761 if (frag_size == 0) in qedi_split_bd()
1762 frag_size = QEDI_BD_SPLIT_SZ; in qedi_split_bd()
1766 bd[bd_index + sg_frags].sge_len = (u16)frag_size; in qedi_split_bd()
1769 (bd_index + sg_frags), addr, frag_size); in qedi_split_bd()
1771 addr += (u64)frag_size; in qedi_split_bd()
1773 sg_len -= frag_size; in qedi_split_bd()
/linux/net/wireless/
H A Dutil.c700 int frag_len, frag_size; in __ieee80211_amsdu_copy_frag() local
706 frag_size = head_size; in __ieee80211_amsdu_copy_frag()
708 while (offset >= frag_size) { in __ieee80211_amsdu_copy_frag()
709 offset -= frag_size; in __ieee80211_amsdu_copy_frag()
712 frag_size = skb_frag_size(frag); in __ieee80211_amsdu_copy_frag()
717 frag_len = frag_size - offset; in __ieee80211_amsdu_copy_frag()
721 __frame_add_frag(frame, frag_page, frag_ptr, cur_len, frag_size); in __ieee80211_amsdu_copy_frag()
/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_io.c1630 int frag_size, sg_frags; in bnx2fc_split_bd() local
1635 frag_size = BNX2FC_BD_SPLIT_SZ; in bnx2fc_split_bd()
1637 frag_size = sg_len; in bnx2fc_split_bd()
1640 bd[bd_index + sg_frags].buf_len = (u16)frag_size; in bnx2fc_split_bd()
1643 addr += (u64) frag_size; in bnx2fc_split_bd()
1645 sg_len -= frag_size; in bnx2fc_split_bd()
/linux/drivers/nfc/pn533/
H A Dpn533.c2215 int frag_size; in pn533_fill_fragment_skbs() local
2220 frag_size = PN533_CMD_DATAFRAME_MAXLEN; in pn533_fill_fragment_skbs()
2222 frag_size = skb->len; in pn533_fill_fragment_skbs()
2225 frag = pn533_alloc_skb(dev, frag_size); in pn533_fill_fragment_skbs()
2236 if (frag_size == PN533_CMD_DATAFRAME_MAXLEN) in pn533_fill_fragment_skbs()
2243 skb_put_data(frag, skb->data, frag_size); in pn533_fill_fragment_skbs()
2246 skb_pull(skb, frag_size); in pn533_fill_fragment_skbs()
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c1099 static inline int mtk_max_buf_size(int frag_size) in mtk_max_buf_size() argument
1101 int buf_size = frag_size - NET_SKB_PAD - NET_IP_ALIGN - in mtk_max_buf_size()
1456 int frag_size = skb_frag_size(frag); in mtk_tx_map() local
1458 while (frag_size) { in mtk_tx_map()
1474 txd_info.size = min_t(unsigned int, frag_size, in mtk_tx_map()
1478 !(frag_size - txd_info.size); in mtk_tx_map()
1498 frag_size -= txd_info.size; in mtk_tx_map()
2120 if (ring->frag_size <= PAGE_SIZE) in mtk_poll_rx()
2121 new_data = napi_alloc_frag(ring->frag_size); in mtk_poll_rx()
2146 skb = build_skb(data, ring->frag_size); in mtk_poll_rx()
[all …]

123