Lines Matching refs:num_elements_per_pg
50 u32 num_elements_per_pg; in bnx2i_adjust_qp_size() local
66 num_elements_per_pg = CNIC_PAGE_SIZE / BNX2I_SQ_WQE_SIZE; in bnx2i_adjust_qp_size()
67 if (hba->max_sqes < num_elements_per_pg) in bnx2i_adjust_qp_size()
68 hba->max_sqes = num_elements_per_pg; in bnx2i_adjust_qp_size()
69 else if (hba->max_sqes % num_elements_per_pg) in bnx2i_adjust_qp_size()
70 hba->max_sqes = (hba->max_sqes + num_elements_per_pg - 1) & in bnx2i_adjust_qp_size()
71 ~(num_elements_per_pg - 1); in bnx2i_adjust_qp_size()
74 num_elements_per_pg = CNIC_PAGE_SIZE / BNX2I_CQE_SIZE; in bnx2i_adjust_qp_size()
75 if (hba->max_cqes < num_elements_per_pg) in bnx2i_adjust_qp_size()
76 hba->max_cqes = num_elements_per_pg; in bnx2i_adjust_qp_size()
77 else if (hba->max_cqes % num_elements_per_pg) in bnx2i_adjust_qp_size()
78 hba->max_cqes = (hba->max_cqes + num_elements_per_pg - 1) & in bnx2i_adjust_qp_size()
79 ~(num_elements_per_pg - 1); in bnx2i_adjust_qp_size()
82 num_elements_per_pg = CNIC_PAGE_SIZE / BNX2I_RQ_WQE_SIZE; in bnx2i_adjust_qp_size()
83 if (hba->max_rqes < num_elements_per_pg) in bnx2i_adjust_qp_size()
84 hba->max_rqes = num_elements_per_pg; in bnx2i_adjust_qp_size()
85 else if (hba->max_rqes % num_elements_per_pg) in bnx2i_adjust_qp_size()
86 hba->max_rqes = (hba->max_rqes + num_elements_per_pg - 1) & in bnx2i_adjust_qp_size()
87 ~(num_elements_per_pg - 1); in bnx2i_adjust_qp_size()