Lines Matching refs:num_elements_per_pg
45 u32 num_elements_per_pg;
61 num_elements_per_pg = PAGE_SIZE / BNX2I_SQ_WQE_SIZE;
62 if (hba->max_sqes < num_elements_per_pg)
63 hba->max_sqes = num_elements_per_pg;
64 else if (hba->max_sqes % num_elements_per_pg)
65 hba->max_sqes = (hba->max_sqes + num_elements_per_pg - 1) &
66 ~(num_elements_per_pg - 1);
69 num_elements_per_pg = PAGE_SIZE / BNX2I_CQE_SIZE;
70 if (hba->max_cqes < num_elements_per_pg)
71 hba->max_cqes = num_elements_per_pg;
72 else if (hba->max_cqes % num_elements_per_pg)
73 hba->max_cqes = (hba->max_cqes + num_elements_per_pg - 1) &
74 ~(num_elements_per_pg - 1);
77 num_elements_per_pg = PAGE_SIZE / BNX2I_RQ_WQE_SIZE;
78 if (hba->max_rqes < num_elements_per_pg)
79 hba->max_rqes = num_elements_per_pg;
80 else if (hba->max_rqes % num_elements_per_pg)
81 hba->max_rqes = (hba->max_rqes + num_elements_per_pg - 1) &
82 ~(num_elements_per_pg - 1);