Lines Matching refs:max_sqes
55 if (!is_power_of_2(hba->max_sqes)) in bnx2i_adjust_qp_size()
56 hba->max_sqes = rounddown_pow_of_two(hba->max_sqes); 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()
1052 ep->qp.sq_mem_size = hba->max_sqes * BNX2I_SQ_WQE_SIZE; in bnx2i_alloc_qp_resc()
1082 ep->qp.sq_last_qe = &ep->qp.sq_first_qe[hba->max_sqes - 1]; in bnx2i_alloc_qp_resc()
1085 ep->qp.sqe_left = hba->max_sqes; in bnx2i_alloc_qp_resc()
1271 hba->num_ccell = hba->max_sqes >> 1; in bnx2i_send_fw_iscsi_init_msg()
1273 ((hba->num_ccell & 0xFFFF) | (hba->max_sqes << 16)); in bnx2i_send_fw_iscsi_init_msg()
1275 iscsi_init.num_tasks_per_conn = hba->max_sqes; in bnx2i_send_fw_iscsi_init_msg()
1277 iscsi_init.sq_num_wqes = hba->max_sqes; in bnx2i_send_fw_iscsi_init_msg()
1283 iscsi_init.sq_num_pages = (hba->max_sqes * BNX2I_SQ_WQE_SIZE + in bnx2i_send_fw_iscsi_init_msg()