Home
last modified time | relevance | path

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

123

/openbmc/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 Dxdp.c167 unsigned int napi_id, u32 frag_size) in __xdp_rxq_info_reg() argument
189 xdp_rxq->frag_size = frag_size; in __xdp_rxq_info_reg()
/openbmc/linux/drivers/media/pci/netup_unidvb/
H A Dnetup_unidvb_spi.c111 u32 frag_size = (tr_size > sizeof(spi->regs->data)) ? in netup_spi_transfer() local
117 frag_offset + frag_size == t->len) { in netup_spi_transfer()
123 frag_size); in netup_spi_transfer()
126 0, frag_size); in netup_spi_transfer()
129 writew((frag_size & 0x3ff) | in netup_spi_transfer()
143 spi->regs->data, frag_size); in netup_spi_transfer()
158 tr_size -= frag_size; in netup_spi_transfer()
159 msg->actual_length += frag_size; in netup_spi_transfer()
/openbmc/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 …]
/openbmc/linux/drivers/net/wireless/intel/ipw2x00/
H A Dlibipw_tx.c189 txb->frag_size = txb_size; in libipw_alloc_txb()
246 int i, bytes_per_frag, nr_frags, bytes_last_frag, frag_size, in libipw_xmit() local
371 frag_size = MAX_FRAG_THRESHOLD; in libipw_xmit()
373 frag_size = ieee->fts; in libipw_xmit()
379 bytes_per_frag = frag_size - hdr_len; in libipw_xmit()
401 frag_size = bytes + hdr_len; in libipw_xmit()
404 rts_required = (frag_size > ieee->rts in libipw_xmit()
412 txb = libipw_alloc_txb(nr_frags, frag_size, in libipw_xmit()
421 txb->payload_size = frag_size * (nr_frags - 1) + in libipw_xmit()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_rx.c118 cpu_to_be32(priv->frag_info[i].frag_size); in mlx4_en_init_rx_desc()
475 int nr, frag_size; in mlx4_en_complete_rx_desc() local
481 frag_size = min_t(int, length, frag_info->frag_size); in mlx4_en_complete_rx_desc()
489 frag_size, priv->dma_dir); in mlx4_en_complete_rx_desc()
492 frag_size); in mlx4_en_complete_rx_desc()
505 u32 sz_align = ALIGN(frag_size, SMP_CACHE_BYTES); in mlx4_en_complete_rx_desc()
508 release = frags->page_offset + frag_info->frag_size > PAGE_SIZE; in mlx4_en_complete_rx_desc()
518 length -= frag_size; in mlx4_en_complete_rx_desc()
825 priv->frag_info[0].frag_size, in mlx4_en_process_rx_cq()
1057 priv->frag_info[0].frag_size = eff_mtu; in mlx4_en_calc_rx_buf()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dparams.c679 static int mlx5e_max_nonlinear_mtu(int first_frag_size, int frag_size, bool xdp) in mlx5e_max_nonlinear_mtu() argument
683 return first_frag_size + (MLX5E_MAX_RX_FRAGS - 1) * frag_size; in mlx5e_max_nonlinear_mtu()
686 return first_frag_size + (MLX5E_MAX_RX_FRAGS - 2) * frag_size + PAGE_SIZE; in mlx5e_max_nonlinear_mtu()
752 info->arr[0].frag_size = byte_count; in mlx5e_build_rq_frags_info()
786 int frag_size = byte_count - buf_size; in mlx5e_build_rq_frags_info() local
789 frag_size = min(frag_size, first_frag_size_max); in mlx5e_build_rq_frags_info()
791 frag_size = min(frag_size, frag_size_max); in mlx5e_build_rq_frags_info()
793 info->arr[i].frag_size = frag_size; in mlx5e_build_rq_frags_info()
794 buf_size += frag_size; in mlx5e_build_rq_frags_info()
802 frag_size += headroom; in mlx5e_build_rq_frags_info()
[all …]
/openbmc/linux/drivers/soc/qcom/
H A Dwcnss_ctrl.c95 u32 frag_size; member
230 req->frag_size = NV_FRAGMENT_SIZE; in wcnss_download_nv()
236 req->frag_size = left; in wcnss_download_nv()
240 memcpy(req->fragment, data, req->frag_size); in wcnss_download_nv()
/openbmc/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 …]
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/
H A Dparsing.py828 frag_size = len(s_list) / float(options.num)
830 if frag_size > int(frag_size):
831 frag_size = int(frag_size + 1)
833 frag_size = int(frag_size)
836 end = frag_size
848 end = end + frag_size
/openbmc/linux/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_tx.c238 txb->frag_size = __cpu_to_le16(txb_size); in ieee80211_alloc_txb()
534 int i, bytes_per_frag, nr_frags, bytes_last_frag, frag_size; in ieee80211_xmit() local
638 frag_size = MAX_FRAG_THRESHOLD; in ieee80211_xmit()
641 frag_size = ieee->fts;//default:392 in ieee80211_xmit()
660 bytes_per_frag = frag_size - hdr_len; in ieee80211_xmit()
684 txb = ieee80211_alloc_txb(nr_frags, frag_size + ieee->tx_headroom, GFP_ATOMIC); in ieee80211_xmit()
/openbmc/linux/drivers/staging/rtl8192e/
H A Drtllib_tx.c212 txb->frag_size = cpu_to_le16(txb_size); in rtllib_alloc_txb()
548 int i, bytes_per_frag, nr_frags, bytes_last_frag, frag_size; in rtllib_xmit_inter() local
698 frag_size = MAX_FRAG_THRESHOLD; in rtllib_xmit_inter()
701 frag_size = ieee->fts; in rtllib_xmit_inter()
729 bytes_per_frag = frag_size - hdr_len; in rtllib_xmit_inter()
757 txb = rtllib_alloc_txb(nr_frags, frag_size + in rtllib_xmit_inter()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rx.c1642 u32 frag_size, u16 headroom, in mlx5e_build_linear_skb() argument
1645 struct sk_buff *skb = napi_build_skb(va, frag_size); in mlx5e_build_linear_skb()
1682 u32 frag_size; in mlx5e_skb_from_cqe_linear() local
1686 frag_size = MLX5_SKB_FRAG_SZ(rx_headroom + cqe_bcnt); in mlx5e_skb_from_cqe_linear()
1690 frag_size, rq->buff.map_dir); in mlx5e_skb_from_cqe_linear()
1707 frag_size = MLX5_SKB_FRAG_SZ(rx_headroom + cqe_bcnt); in mlx5e_skb_from_cqe_linear()
1708 skb = mlx5e_build_linear_skb(rq, va, frag_size, rx_headroom, cqe_bcnt, metasize); in mlx5e_skb_from_cqe_linear()
1739 frag_consumed_bytes = min_t(u32, frag_info->frag_size, cqe_bcnt); in mlx5e_skb_from_cqe_nonlinear()
1759 frag_consumed_bytes = min_t(u32, frag_info->frag_size, cqe_bcnt); in mlx5e_skb_from_cqe_nonlinear()
2150 u32 frag_size; in mlx5e_skb_from_cqe_mpwrq_linear() local
[all …]
/openbmc/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);
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
H A Dchcr_ktls.c26 u32 frag_size, skb_linear_data_len = skb_headlen(skb); in chcr_get_nfrags_to_send() local
35 frag_size = min(len, skb_linear_data_len - start); in chcr_get_nfrags_to_send()
40 frag_size = skb_frag_size(frag); in chcr_get_nfrags_to_send()
41 while (start >= frag_size) { in chcr_get_nfrags_to_send()
42 start -= frag_size; in chcr_get_nfrags_to_send()
45 frag_size = skb_frag_size(frag); in chcr_get_nfrags_to_send()
47 frag_size = min(len, skb_frag_size(frag) - start); in chcr_get_nfrags_to_send()
49 len -= frag_size; in chcr_get_nfrags_to_send()
53 frag_size = min(len, skb_frag_size(&si->frags[frag_idx])); in chcr_get_nfrags_to_send()
54 len -= frag_size; in chcr_get_nfrags_to_send()
[all …]
/openbmc/linux/drivers/net/ethernet/google/gve/
H A Dgve_rx.c719 u16 frag_size = be16_to_cpu(desc->len); in gve_rx() local
729 u16 len = frag_size; in gve_rx()
745 if (unlikely(frag_size > rx->packet_buffer_size)) { in gve_rx()
747 frag_size, rx->packet_buffer_size); in gve_rx()
770 frag_size -= page_info->pad; in gve_rx()
785 ctx->total_size += frag_size; in gve_rx()
808 ctx->total_size += frag_size; in gve_rx()
/openbmc/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()
/openbmc/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
/openbmc/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()
/openbmc/linux/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_main.c617 u32 frag_size; in xgene_enet_free_pagepool() local
629 frag_size = xgene_enet_get_data_len(le64_to_cpu(desc[i ^ 1])); in xgene_enet_free_pagepool()
630 if (!frag_size) in xgene_enet_free_pagepool()
673 u32 datalen, frag_size, skb_index; in xgene_enet_rx_frame() local
734 frag_size = xgene_enet_get_data_len(le64_to_cpu(desc[i ^ 1])); in xgene_enet_rx_frame()
735 if (!frag_size) in xgene_enet_rx_frame()
743 frag_size, PAGE_SIZE); in xgene_enet_rx_frame()
745 datalen += frag_size; in xgene_enet_rx_frame()
/openbmc/linux/net/wireless/
H A Dutil.c706 int frag_len, frag_size; in __ieee80211_amsdu_copy_frag() local
712 frag_size = head_size; in __ieee80211_amsdu_copy_frag()
714 while (offset >= frag_size) { in __ieee80211_amsdu_copy_frag()
715 offset -= frag_size; in __ieee80211_amsdu_copy_frag()
718 frag_size = skb_frag_size(frag); in __ieee80211_amsdu_copy_frag()
723 frag_len = frag_size - offset; in __ieee80211_amsdu_copy_frag()
727 __frame_add_frag(frame, frag_page, frag_ptr, cur_len, frag_size); in __ieee80211_amsdu_copy_frag()
/openbmc/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()
/openbmc/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_io.c1624 int frag_size, sg_frags; in bnx2fc_split_bd() local
1629 frag_size = BNX2FC_BD_SPLIT_SZ; in bnx2fc_split_bd()
1631 frag_size = sg_len; in bnx2fc_split_bd()
1634 bd[bd_index + sg_frags].buf_len = (u16)frag_size; in bnx2fc_split_bd()
1637 addr += (u64) frag_size; in bnx2fc_split_bd()
1639 sg_len -= frag_size; in bnx2fc_split_bd()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dsge.c911 u32 frag_size, skb_linear_data_len = skb_headlen(skb); in cxgb4_write_partial_sgl() local
920 frag_size = min(len, skb_linear_data_len - start); in cxgb4_write_partial_sgl()
921 sgl->len0 = htonl(frag_size); in cxgb4_write_partial_sgl()
923 len -= frag_size; in cxgb4_write_partial_sgl()
928 frag_size = skb_frag_size(frag); in cxgb4_write_partial_sgl()
930 while (start >= frag_size) { in cxgb4_write_partial_sgl()
931 start -= frag_size; in cxgb4_write_partial_sgl()
934 frag_size = skb_frag_size(frag); in cxgb4_write_partial_sgl()
937 frag_size = min(len, skb_frag_size(frag) - start); in cxgb4_write_partial_sgl()
938 sgl->len0 = cpu_to_be32(frag_size); in cxgb4_write_partial_sgl()
[all …]

123