Home
last modified time | relevance | path

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

/openbmc/linux/drivers/scsi/bnx2i/
H A Dbnx2i_sysfs.c44 return sprintf(buf, "0x%x\n", hba->max_sqes); in bnx2i_show_sq_info()
78 hba->max_sqes = val; in bnx2i_set_sq_info()
H A 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()
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()
[all …]
H A Dbnx2i_iscsi.c845 hba->max_sqes = sq_size; in bnx2i_alloc_hba()
847 hba->max_sqes = BNX2I_5770X_SQ_WQES_DEFAULT; in bnx2i_alloc_hba()
850 hba->max_sqes = sq_size; in bnx2i_alloc_hba()
852 hba->max_sqes = BNX2I_570X_SQ_WQES_DEFAULT; in bnx2i_alloc_hba()
856 hba->max_cqes = hba->max_sqes + rq_size; in bnx2i_alloc_hba()
863 hba->num_ccell = hba->max_sqes / 2; in bnx2i_alloc_hba()
1231 hba->max_sqes) in bnx2i_task_xmit()
1308 if (cmds_max > hba->max_sqes) in bnx2i_session_create()
1309 cmds_max = hba->max_sqes; in bnx2i_session_create()
H A Dbnx2i_init.c390 stats->txq_size = hba->max_sqes; in bnx2i_get_stats()
H A Dbnx2i.h430 u32 max_sqes; member
/openbmc/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_io.c404 u32 max_sqes; in bnx2fc_elstm_alloc() local
407 max_sqes = tgt->max_sqes; in bnx2fc_elstm_alloc()
410 max_sqes = BNX2FC_TM_MAX_SQES; in bnx2fc_elstm_alloc()
413 max_sqes = BNX2FC_ELS_MAX_SQES; in bnx2fc_elstm_alloc()
426 (tgt->num_active_ios.counter >= max_sqes) || in bnx2fc_elstm_alloc()
427 (free_sqes + max_sqes <= BNX2FC_SQ_WQES_MAX)) { in bnx2fc_elstm_alloc()
430 tgt->num_active_ios.counter, tgt->max_sqes); in bnx2fc_elstm_alloc()
473 u32 max_sqes; in bnx2fc_cmd_alloc() local
477 max_sqes = BNX2FC_SCSI_MAX_SQES; in bnx2fc_cmd_alloc()
485 (tgt->num_active_ios.counter >= max_sqes) || in bnx2fc_cmd_alloc()
[all …]
H A Dbnx2fc_tgt.c377 tgt->max_sqes = BNX2FC_SQ_WQES_MAX; in bnx2fc_init_tgt()
670 tgt->sq_mem_size = tgt->max_sqes * BNX2FC_SQ_WQE_SIZE; in bnx2fc_alloc_session_resc()
733 tgt->xferq_mem_size = tgt->max_sqes * BNX2FC_XFERQ_WQE_SIZE; in bnx2fc_alloc_session_resc()
747 tgt->confq_mem_size = tgt->max_sqes * BNX2FC_CONFQ_WQE_SIZE; in bnx2fc_alloc_session_resc()
800 tgt->lcq_mem_size = (tgt->max_sqes + 8) * BNX2FC_SQ_WQE_SIZE; in bnx2fc_alloc_session_resc()
H A Dbnx2fc.h311 u32 max_sqes; member
/openbmc/linux/drivers/scsi/qedi/
H A Dqedi.h310 u32 max_sqes; member
H A Dqedi_iscsi.c254 if (cmds_max > qedi->max_sqes) in qedi_session_create()
255 cmds_max = qedi->max_sqes; in qedi_session_create()
H A Dqedi_main.c657 qedi->max_sqes = QEDI_SQ_SIZE; in qedi_host_alloc()