Home
last modified time | relevance | path

Searched refs:max_sqes (Results 1 – 8 of 8) sorted by relevance

/linux-4.4.14/drivers/scsi/bnx2i/
Dbnx2i_sysfs.c43 return sprintf(buf, "0x%x\n", hba->max_sqes); in bnx2i_show_sq_info()
76 hba->max_sqes = val; in bnx2i_set_sq_info()
Dbnx2i_hwi.c55 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()
1067 ep->qp.sq_mem_size = hba->max_sqes * BNX2I_SQ_WQE_SIZE; in bnx2i_alloc_qp_resc()
1098 ep->qp.sq_last_qe = &ep->qp.sq_first_qe[hba->max_sqes - 1]; in bnx2i_alloc_qp_resc()
1101 ep->qp.sqe_left = hba->max_sqes; in bnx2i_alloc_qp_resc()
1288 hba->num_ccell = hba->max_sqes >> 1; in bnx2i_send_fw_iscsi_init_msg()
[all …]
Dbnx2i_iscsi.c847 hba->max_sqes = sq_size; in bnx2i_alloc_hba()
849 hba->max_sqes = BNX2I_5770X_SQ_WQES_DEFAULT; in bnx2i_alloc_hba()
852 hba->max_sqes = sq_size; in bnx2i_alloc_hba()
854 hba->max_sqes = BNX2I_570X_SQ_WQES_DEFAULT; in bnx2i_alloc_hba()
858 hba->max_cqes = hba->max_sqes + rq_size; in bnx2i_alloc_hba()
865 hba->num_ccell = hba->max_sqes / 2; in bnx2i_alloc_hba()
1235 hba->max_sqes) in bnx2i_task_xmit()
1311 if (cmds_max > hba->max_sqes) in bnx2i_session_create()
1312 cmds_max = hba->max_sqes; in bnx2i_session_create()
Dbnx2i_init.c398 stats->txq_size = hba->max_sqes; in bnx2i_get_stats()
Dbnx2i.h430 u32 max_sqes; member
/linux-4.4.14/drivers/scsi/bnx2fc/
Dbnx2fc_io.c391 u32 max_sqes; in bnx2fc_elstm_alloc() local
394 max_sqes = tgt->max_sqes; in bnx2fc_elstm_alloc()
397 max_sqes = BNX2FC_TM_MAX_SQES; in bnx2fc_elstm_alloc()
400 max_sqes = BNX2FC_ELS_MAX_SQES; in bnx2fc_elstm_alloc()
413 (tgt->num_active_ios.counter >= max_sqes) || in bnx2fc_elstm_alloc()
414 (free_sqes + max_sqes <= BNX2FC_SQ_WQES_MAX)) { in bnx2fc_elstm_alloc()
417 tgt->num_active_ios.counter, tgt->max_sqes); in bnx2fc_elstm_alloc()
460 u32 max_sqes; in bnx2fc_cmd_alloc() local
464 max_sqes = BNX2FC_SCSI_MAX_SQES; in bnx2fc_cmd_alloc()
472 (tgt->num_active_ios.counter >= max_sqes) || in bnx2fc_cmd_alloc()
[all …]
Dbnx2fc_tgt.c377 tgt->max_sqes = BNX2FC_SQ_WQES_MAX; in bnx2fc_init_tgt()
671 tgt->sq_mem_size = tgt->max_sqes * BNX2FC_SQ_WQE_SIZE; in bnx2fc_alloc_session_resc()
738 tgt->xferq_mem_size = tgt->max_sqes * BNX2FC_XFERQ_WQE_SIZE; in bnx2fc_alloc_session_resc()
752 tgt->confq_mem_size = tgt->max_sqes * BNX2FC_CONFQ_WQE_SIZE; in bnx2fc_alloc_session_resc()
807 tgt->lcq_mem_size = (tgt->max_sqes + 8) * BNX2FC_SQ_WQE_SIZE; in bnx2fc_alloc_session_resc()
Dbnx2fc.h310 u32 max_sqes; member