Home
last modified time | relevance | path

Searched refs:dsSize (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/contrib/ncsw/Peripherals/QM/
H A Dqm.c766 uint32_t dsSize, exp, i; in QM_Init() local
777 dsSize = (uint32_t)(p_QmDriverParams->totalNumOfFqids * FQD_ENTRY_SIZE); in QM_Init()
778 LOG2(dsSize, exp); in QM_Init()
779 if (!POWER_OF_2(dsSize)) (exp++); in QM_Init()
780 dsSize = (uint32_t)(1 << exp); in QM_Init()
781 if (dsSize < (4*KILOBYTE)) in QM_Init()
783 dsSize = (4*KILOBYTE); in QM_Init()
784 LOG2(dsSize, exp); in QM_Init()
786 p_Qm->p_FqdBase = XX_MallocSmart(dsSize, (int)p_QmDriverParams->fqdMemPartitionId, dsSize); in QM_Init()
791 memset(p_Qm->p_FqdBase, 0, dsSize); in QM_Init()
[all …]
/freebsd/sys/contrib/ncsw/Peripherals/BM/
H A Dbm.c529 uint32_t dsSize, exp; in BM_Init() local
537 dsSize = (uint32_t)(p_Bm->p_BmDriverParams->totalNumOfBuffers * (FBPR_ENTRY_SIZE / 8)); in BM_Init()
538 LOG2(dsSize, exp); in BM_Init()
539 if (!POWER_OF_2(dsSize)) (exp++); in BM_Init()
540 dsSize = (uint32_t)(1 << exp); in BM_Init()
541 if (dsSize < (4*KILOBYTE)) in BM_Init()
543 dsSize = (4*KILOBYTE); in BM_Init()
544 LOG2(dsSize, exp); in BM_Init()
546 …p_Bm->p_FbprBase = XX_MallocSmart(dsSize, (int)p_Bm->p_BmDriverParams->fbprMemPartitionId, dsSize); in BM_Init()