Home
last modified time | relevance | path

Searched refs:num_frags (Results 1 – 25 of 35) sorted by relevance

12

/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/
Diwl-dbg-tlv.c399 for (i = 0; i < fw_mon->num_frags; i++) { in iwl_dbg_tlv_fragments_free()
412 fw_mon->num_frags = 0; in iwl_dbg_tlv_fragments_free()
579 u32 num_frags, remain_pages, frag_pages; in iwl_dbg_tlv_alloc_fragments() local
589 if (fw_mon->num_frags) { in iwl_dbg_tlv_alloc_fragments()
590 for (i = 0; i < fw_mon->num_frags; i++) in iwl_dbg_tlv_alloc_fragments()
600 num_frags = le32_to_cpu(fw_mon_cfg->max_frags_num); in iwl_dbg_tlv_alloc_fragments()
604 num_frags = 1; in iwl_dbg_tlv_alloc_fragments()
612 num_frags = min_t(u32, num_frags, BUF_ALLOC_MAX_NUM_FRAGS); in iwl_dbg_tlv_alloc_fragments()
613 num_frags = min_t(u32, num_frags, remain_pages); in iwl_dbg_tlv_alloc_fragments()
614 frag_pages = DIV_ROUND_UP(remain_pages, num_frags); in iwl_dbg_tlv_alloc_fragments()
[all …]
Diwl-trans.h755 u32 num_frags; member
/Linux-v6.6/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c33 int num_frags = 0; in bnxt_xmit_bd() local
40 num_frags = sinfo->nr_frags; in bnxt_xmit_bd()
46 tx_buf->nr_frags = num_frags; in bnxt_xmit_bd()
52 ((num_frags + 1) << TX_BD_FLAGS_BD_CNT_SHIFT) | in bnxt_xmit_bd()
59 for (i = 0; i < num_frags ; i++) { in bnxt_xmit_bd()
476 bnxt_xdp_build_skb(struct bnxt *bp, struct sk_buff *skb, u8 num_frags, in bnxt_xdp_build_skb() argument
491 xdp_update_skb_shared_info(skb, num_frags, in bnxt_xdp_build_skb()
Dbnxt_xdp.h35 u8 num_frags, struct page_pool *pool,
/Linux-v6.6/drivers/net/wireguard/
Dsend.c168 int num_frags; in encrypt_packet() local
181 num_frags = skb_cow_data(skb, trailer_len, &trailer); in encrypt_packet()
182 if (unlikely(num_frags < 0 || num_frags > ARRAY_SIZE(sg))) in encrypt_packet()
212 sg_init_table(sg, num_frags); in encrypt_packet()
Dreceive.c247 int num_frags; in decrypt_packet() local
268 num_frags = skb_cow_data(skb, 0, &trailer); in decrypt_packet()
271 if (unlikely(num_frags < 0 || num_frags > ARRAY_SIZE(sg))) in decrypt_packet()
274 sg_init_table(sg, num_frags); in decrypt_packet()
/Linux-v6.6/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_common.c759 u8 cmd_op, num_frags, t_num_frags; in qlcnic_sriov_prepare_bc_hdr() local
771 num_frags = (trans->req_pay_size) / (bc_pay_sz); in qlcnic_sriov_prepare_bc_hdr()
773 num_frags++; in qlcnic_sriov_prepare_bc_hdr()
774 t_num_frags = num_frags; in qlcnic_sriov_prepare_bc_hdr()
775 if (qlcnic_sriov_alloc_bc_msg(&trans->req_hdr, num_frags)) in qlcnic_sriov_prepare_bc_hdr()
778 num_frags = (trans->rsp_pay_size) / (bc_pay_sz); in qlcnic_sriov_prepare_bc_hdr()
780 num_frags++; in qlcnic_sriov_prepare_bc_hdr()
781 if (qlcnic_sriov_alloc_bc_msg(&trans->rsp_hdr, num_frags)) in qlcnic_sriov_prepare_bc_hdr()
783 num_frags = t_num_frags; in qlcnic_sriov_prepare_bc_hdr()
791 num_frags = (trans->rsp_pay_size) / (bc_pay_sz); in qlcnic_sriov_prepare_bc_hdr()
[all …]
Dqlcnic_sriov.h29 u8 num_frags; member
35 u8 num_frags;
/Linux-v6.6/drivers/net/ethernet/google/gve/
Dgve_rx_dqo.c535 int num_frags; in gve_rx_copy_ondemand() local
544 num_frags = skb_shinfo(rx->ctx.skb_tail)->nr_frags; in gve_rx_copy_ondemand()
545 skb_add_rx_frag(rx->ctx.skb_tail, num_frags, page, in gve_rx_copy_ondemand()
564 int num_frags = skb_shinfo(rx->ctx.skb_tail)->nr_frags; in gve_rx_append_frags() local
566 if (unlikely(num_frags == MAX_SKB_FRAGS)) { in gve_rx_append_frags()
578 num_frags = 0; in gve_rx_append_frags()
590 skb_add_rx_frag(rx->ctx.skb_tail, num_frags, in gve_rx_append_frags()
Dgve_rx.c370 int num_frags = 0; in gve_rx_add_frags() local
380 num_frags = skb_shinfo(ctx->skb_tail)->nr_frags; in gve_rx_add_frags()
381 if (num_frags == MAX_SKB_FRAGS) { in gve_rx_add_frags()
391 num_frags = 0; in gve_rx_add_frags()
400 skb_add_rx_frag(skb, num_frags, page_info->page, in gve_rx_add_frags()
/Linux-v6.6/drivers/infiniband/ulp/ipoib/
Dipoib_cm.c101 for (i = 0; i < priv->cm.num_frags; ++i) in ipoib_cm_post_receive_srq()
107 ipoib_cm_dma_unmap_rx(priv, priv->cm.num_frags - 1, in ipoib_cm_post_receive_srq()
335 for (i = 0; i < priv->cm.num_frags; ++i) in ipoib_cm_init_rx_wr()
339 for (i = 1; i < priv->cm.num_frags; ++i) in ipoib_cm_init_rx_wr()
344 wr->num_sge = priv->cm.num_frags; in ipoib_cm_init_rx_wr()
530 int i, num_frags; in skb_put_frags() local
539 num_frags = skb_shinfo(skb)->nr_frags; in skb_put_frags()
540 for (i = 0; i < num_frags; i++) { in skb_put_frags()
1609 priv->cm.num_frags = max_srq_sge; in ipoib_cm_dev_init()
1611 priv->cm.max_cm_mtu, priv->cm.num_frags); in ipoib_cm_dev_init()
[all …]
Dipoib.h286 int num_frags; member
/Linux-v6.6/drivers/mailbox/
Dbcm-pdc-mailbox.c586 u32 num_frags; in pdc_receive_one() local
608 num_frags = pdcs->txin_numd[pdcs->txin]; in pdc_receive_one()
609 WARN_ON(num_frags == 0); in pdc_receive_one()
614 pdcs->txin = (pdcs->txin + num_frags) & pdcs->ntxpost; in pdc_receive_one()
617 pdcs->pdc_idx, num_frags); in pdc_receive_one()
621 num_frags = rx_ctx->rxin_numd; in pdc_receive_one()
630 pdcs->rxin = (pdcs->rxin + num_frags) & pdcs->nrxpost; in pdc_receive_one()
633 pdcs->pdc_idx, num_frags); in pdc_receive_one()
/Linux-v6.6/net/tls/
Dtls_device.c145 for (i = 0; i < record->num_frags; i++) in destroy_record()
267 frag = &record->frags[record->num_frags - 1]; in tls_append_frag()
275 ++record->num_frags; in tls_append_frag()
303 for (i = 0; i < record->num_frags; i++) { in tls_push_record()
311 sg_mark_end(&offload_ctx->sg_tx_data[record->num_frags - 1]); in tls_push_record()
364 record->num_frags = 1; in tls_create_new_record()
546 (record->num_frags >= MAX_SKB_FRAGS - 1)) { in tls_push_data()
1135 start_marker_record->num_frags = 0; in tls_set_device_offload()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c82 for (i = 0; i < priv->num_frags; i++, frags++) { in mlx4_en_alloc_frags()
116 for (i = 0; i < priv->num_frags; i++) { in mlx4_en_init_rx_desc()
126 for (i = priv->num_frags; i < possible_frags; i++) { in mlx4_en_init_rx_desc()
176 for (nr = 0; nr < priv->num_frags; nr++) { in mlx4_en_free_rx_desc()
333 DS_SIZE * priv->num_frags); in mlx4_en_activate_rx_rings()
1096 priv->num_frags = i; in mlx4_en_calc_rx_buf()
1101 eff_mtu, priv->num_frags); in mlx4_en_calc_rx_buf()
1102 for (i = 0; i < priv->num_frags; i++) { in mlx4_en_calc_rx_buf()
Dmlx4_en.h589 u8 num_frags; member
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
Dparams.c700 for (i = 0; i < info->num_frags; i++) in mlx5e_rx_compute_wqe_bulk_params()
754 info->num_frags = 1; in mlx5e_build_rq_frags_info()
810 info->num_frags = i; in mlx5e_build_rq_frags_info()
835 info->wqe_index_mask = info->num_frags % 2; in mlx5e_build_rq_frags_info()
848 info->log_num_frags = order_base_2(info->num_frags); in mlx5e_build_rq_frags_info()
850 *xdp_frag_size = info->num_frags > 1 && params->xdp_prog ? PAGE_SIZE : 0; in mlx5e_build_rq_frags_info()
1000 ndsegs = param->frags_info.num_frags; in mlx5e_build_rq_param()
Dxdp.c497 int num_frags = 0; in mlx5e_xmit_xdp_frame() local
525 num_frags = xdptxdf->sinfo->nr_frags; in mlx5e_xmit_xdp_frame()
574 for (i = 0; i < num_frags; i++) { in mlx5e_xmit_xdp_frame()
/Linux-v6.6/drivers/infiniband/sw/siw/
Dsiw_qp.c400 int num_frags, len_terminate, rv; in siw_send_terminate() local
567 num_frags = 3; in siw_send_terminate()
572 num_frags = 2; in siw_send_terminate()
593 if (num_frags == 3) { in siw_send_terminate()
602 rv = kernel_sendmsg(s, &msg, iov, num_frags, len_terminate); in siw_send_terminate()
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/fw/api/
Ddebug.h377 __le32 num_frags; member
/Linux-v6.6/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c1178 u8 num_frags; in qede_rx_build_jumbo() local
1183 for (num_frags = cqe->bd_num - 1; num_frags > 0; num_frags--) { in qede_rx_build_jumbo()
1190 num_frags); in qede_rx_build_jumbo()
1220 return num_frags; in qede_rx_build_jumbo()
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/pcie/
Dctxt-info-gen3.c54 if (trans->dbg.fw_mon_ini[alloc_id].num_frags) { in iwl_pcie_ctxt_info_dbg_enable()
67 trans->dbg.fw_mon_ini[alloc_id].num_frags); in iwl_pcie_ctxt_info_dbg_enable()
/Linux-v6.6/include/net/
Dtls.h148 int num_frags; member
/Linux-v6.6/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c1663 for (i = 0; i < record->num_frags; i++) { in chcr_ktls_copy_record_in_skb()
1669 skb_shinfo(nskb)->nr_frags = record->num_frags; in chcr_ktls_copy_record_in_skb()
1737 record->num_frags, in chcr_end_part_handler()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c350 for (i = 0; i < rq->wqe.info.num_frags; i++, frag++) { in mlx5e_alloc_rx_wqe()
379 for (i = 0; i < rq->wqe.info.num_frags; i++, wi++) in mlx5e_free_rx_wqe()
402 for (int i = 0; i < rq->wqe.info.num_frags; i++, wi++) in mlx5e_dealloc_rx_wqe()
490 for (int k = 0; k < rq->wqe.info.num_frags; k++, frag++) in mlx5e_refill_rx_wqes()

12