Home
last modified time | relevance | path

Searched refs:num_segs (Results 1 – 18 of 18) sorted by relevance

/linux-6.12.1/drivers/usb/cdns3/
Dcdnsp-mem.c140 unsigned int num_segs) in cdnsp_link_rings() argument
150 ring->num_segs += num_segs; in cdnsp_link_rings()
151 ring->num_trbs_free += (TRBS_PER_SEGMENT - 1) * num_segs; in cdnsp_link_rings()
318 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in cdnsp_initialize_ring_info()
325 unsigned int num_segs, in cdnsp_alloc_segments_for_ring() argument
338 num_segs--; in cdnsp_alloc_segments_for_ring()
342 while (num_segs > 0) { in cdnsp_alloc_segments_for_ring()
355 num_segs--; in cdnsp_alloc_segments_for_ring()
371 unsigned int num_segs, in cdnsp_ring_alloc() argument
383 ring->num_segs = num_segs; in cdnsp_ring_alloc()
[all …]
Dcdnsp-trace.h707 __field(unsigned int, num_segs)
716 __entry->num_segs = ring->num_segs;
733 __entry->num_segs,
Dcdnsp-gadget.h1263 unsigned int num_segs; member
Dcdnsp-gadget.c1370 for (i = 0; i < pdev->cmd_ring->num_segs; i++) { in cdnsp_clear_cmd_ring()
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.c108 for (seg = 0; seg < sg->num_segs; seg++) { in otx2_dma_unmap_skb_frags()
112 sg->num_segs = 0; in otx2_dma_unmap_skb_frags()
618 struct sk_buff *skb, int num_segs, int *offset) in otx2_sqe_add_sg() argument
625 sq->sg[sq->head].num_segs = 0; in otx2_sqe_add_sg()
627 for (seg = 0; seg < num_segs; seg++) { in otx2_sqe_add_sg()
638 if ((num_segs - seg) >= (MAX_SEGS_PER_SG - 1)) in otx2_sqe_add_sg()
654 sq->sg[sq->head].num_segs++; in otx2_sqe_add_sg()
805 int num_segs = skb_shinfo(skb)->nr_frags + 1; in otx2_dma_map_tso_skb() local
810 sg->num_segs = 0; in otx2_dma_map_tso_skb()
815 for (seg = 0; seg < num_segs; seg++) { in otx2_dma_map_tso_skb()
[all …]
Dotx2_txrx.h78 u16 num_segs; member
/linux-6.12.1/arch/mips/cavium-octeon/executive/
Dcvmx-helper.c794 int size, num_segs = 0, wqe_pcnt, pkt_pcnt; in __cvmx_helper_errata_fix_ipd_ptr_alignment() local
832 num_segs = (2 + pkt_pcnt - wqe_pcnt) & 3; in __cvmx_helper_errata_fix_ipd_ptr_alignment()
834 if (num_segs == 0) in __cvmx_helper_errata_fix_ipd_ptr_alignment()
837 num_segs += 1; in __cvmx_helper_errata_fix_ipd_ptr_alignment()
841 ((num_segs - 1) * FIX_IPD_NON_FIRST_BUFF_PAYLOAD_BYTES) - in __cvmx_helper_errata_fix_ipd_ptr_alignment()
858 g_buffer.s.size = num_segs; in __cvmx_helper_errata_fix_ipd_ptr_alignment()
878 for (i = 0; i < num_segs; i++) { in __cvmx_helper_errata_fix_ipd_ptr_alignment()
883 if (i == (num_segs - 1)) in __cvmx_helper_errata_fix_ipd_ptr_alignment()
892 pko_command.s.segs = num_segs; in __cvmx_helper_errata_fix_ipd_ptr_alignment()
961 if (num_segs) in __cvmx_helper_errata_fix_ipd_ptr_alignment()
[all …]
/linux-6.12.1/drivers/usb/host/
Dxhci-mem.c131 unsigned int num_segs) in xhci_link_rings() argument
144 ring->num_segs += num_segs; in xhci_link_rings()
321 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in xhci_initialize_ring_info()
329 unsigned int num_segs, in xhci_alloc_segments_for_ring() argument
347 while (num < num_segs) { in xhci_alloc_segments_for_ring()
377 unsigned int num_segs, unsigned int cycle_state, in xhci_ring_alloc() argument
388 ring->num_segs = num_segs; in xhci_ring_alloc()
392 if (num_segs == 0) in xhci_ring_alloc()
395 ret = xhci_alloc_segments_for_ring(xhci, &ring->first_seg, &ring->last_seg, num_segs, in xhci_ring_alloc()
450 ring->num_segs); in xhci_ring_expansion()
[all …]
Dxhci-trace.h459 __field(unsigned int, num_segs)
467 __entry->num_segs = ring->num_segs;
480 __entry->num_segs,
Dxhci-ring.c193 if (link_trb_count++ > ring->num_segs) { in inc_deq()
269 if (link_trb_count++ > ring->num_segs) { in inc_enq()
300 return ring->num_segs * (TRBS_PER_SEGMENT - 1); in xhci_num_trbs_free()
309 } while (i++ < ring->num_segs); in xhci_num_trbs_free()
3247 if (link_trb_count++ > ep_ring->num_segs) { in prepare_ring()
Dxhci-debugfs.c221 for (i = 0; i < ring->num_segs; i++) { in xhci_ring_trb_show()
Dxhci.h1358 unsigned int num_segs; member
1792 unsigned int num_segs, unsigned int cycle_state,
Dxhci-dbgcap.c449 ring->num_segs = 1; in xhci_dbc_ring_alloc()
/linux-6.12.1/drivers/net/wireless/ath/ath10k/
Dswap.h36 __le32 num_segs; member
Dswap.c115 seg_info->seg_hw_info.num_segs = in ath10k_swap_code_seg_alloc()
/linux-6.12.1/include/trace/events/
Drpcrdma.h1916 unsigned int num_segs
1919 TP_ARGS(cid, remaining, seg_no, num_segs),
1926 __field(unsigned int, num_segs)
1934 __entry->num_segs = num_segs;
1939 __entry->remaining, __entry->seg_no, __entry->num_segs
/linux-6.12.1/drivers/infiniband/hw/hfi1/
Dtid_rdma.c3668 u32 bth0, psn, len, rkey, num_segs; in hfi1_rc_rcv_tid_rdma_write_req() local
3692 num_segs = DIV_ROUND_UP(len, qpriv->tid_rdma.local.max_len); in hfi1_rc_rcv_tid_rdma_write_req()
3750 qp->r_psn += num_segs - 1; in hfi1_rc_rcv_tid_rdma_write_req()
3757 req->n_flows = min_t(u16, num_segs, qpriv->tid_rdma.local.max_write); in hfi1_rc_rcv_tid_rdma_write_req()
3766 req->total_segs = num_segs; in hfi1_rc_rcv_tid_rdma_write_req()
/linux-6.12.1/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c8115 int num_segs, sb_idx, prod_offset; in bnx2x_init_hw_func() local
8149 num_segs = CHIP_INT_MODE_IS_BC(bp) ? in bnx2x_init_hw_func()
8153 num_segs; in bnx2x_init_hw_func()
8155 for (i = 0; i < num_segs; i++) { in bnx2x_init_hw_func()
8168 num_segs = CHIP_INT_MODE_IS_BC(bp) ? in bnx2x_init_hw_func()
8184 for (i = 0; i < (num_segs * E1HVN_MAX); in bnx2x_init_hw_func()