Lines Matching refs:num_sg_entries
114 u8 num_sg_entries; /* Number of scatter/gather entries for packets. */ member
484 u8 num_sg_entries; in mlxsw_pci_elem_info_pages_ref_store() local
487 num_sg_entries = mlxsw_pci_num_sg_entries_get(byte_count); in mlxsw_pci_elem_info_pages_ref_store()
488 if (WARN_ON_ONCE(num_sg_entries > q->pci->num_sg_entries)) in mlxsw_pci_elem_info_pages_ref_store()
491 for (i = 0; i < num_sg_entries; i++) in mlxsw_pci_elem_info_pages_ref_store()
494 *p_num_sg_entries = num_sg_entries; in mlxsw_pci_elem_info_pages_ref_store()
501 u8 num_sg_entries) in mlxsw_pci_rdq_pages_alloc() argument
507 for (i = 0; i < num_sg_entries; i++) { in mlxsw_pci_rdq_pages_alloc()
527 u8 num_sg_entries) in mlxsw_pci_rdq_pages_recycle() argument
532 for (i = 0; i < num_sg_entries; i++) in mlxsw_pci_rdq_pages_recycle()
575 for (j = 0; j < mlxsw_pci->num_sg_entries; j++) { in mlxsw_pci_rdq_init()
592 j = mlxsw_pci->num_sg_entries; in mlxsw_pci_rdq_init()
610 for (j = 0; j < mlxsw_pci->num_sg_entries; j++) in mlxsw_pci_rdq_fini()
749 u8 num_sg_entries; in mlxsw_pci_cqe_rdq_handle() local
763 pages, &num_sg_entries); in mlxsw_pci_cqe_rdq_handle()
767 err = mlxsw_pci_rdq_pages_alloc(q, elem_info, num_sg_entries); in mlxsw_pci_cqe_rdq_handle()
774 mlxsw_pci_rdq_pages_recycle(q, pages, num_sg_entries); in mlxsw_pci_cqe_rdq_handle()
1000 pp_params.pool_size = MLXSW_PCI_WQE_COUNT * mlxsw_pci->num_sg_entries; in mlxsw_pci_cq_page_pool_init()
1908 u8 num_sg_entries; in mlxsw_pci_num_sg_entries_set() local
1910 num_sg_entries = mlxsw_pci_num_sg_entries_get(MLXSW_PORT_MAX_MTU); in mlxsw_pci_num_sg_entries_set()
1911 mlxsw_pci->num_sg_entries = min(num_sg_entries, in mlxsw_pci_num_sg_entries_set()
1914 WARN_ON(num_sg_entries > MLXSW_PCI_WQE_SG_ENTRIES); in mlxsw_pci_num_sg_entries_set()