Home
last modified time | relevance | path

Searched refs:max_cmds (Results 1 – 25 of 27) sorted by relevance

12

/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_cmd.c94 &hr_dev->cmd.context[token % hr_dev->cmd.max_cmds]; in hns_roce_cmd_event()
125 context->token += cmd->max_cmds; in __hns_roce_cmd_mbox_wait()
201 hr_dev->cmd.max_cmds = CMD_MAX_NUM; in hns_roce_cmd_init()
222 kcalloc(hr_cmd->max_cmds, sizeof(*hr_cmd->context), GFP_KERNEL); in hns_roce_cmd_use_events()
228 for (i = 0; i < hr_cmd->max_cmds; ++i) { in hns_roce_cmd_use_events()
233 hr_cmd->context[hr_cmd->max_cmds - 1].next = 0; in hns_roce_cmd_use_events()
236 sema_init(&hr_cmd->event_sem, hr_cmd->max_cmds); in hns_roce_cmd_use_events()
H A Dhns_roce_device.h564 int max_cmds; member
/linux/fs/smb/server/
H A Dsmb2ops.c203 conn->max_cmds = ARRAY_SIZE(smb2_0_server_cmds); in init_smb2_1_server()
220 conn->max_cmds = ARRAY_SIZE(smb2_0_server_cmds); in init_smb3_0_server()
250 conn->max_cmds = ARRAY_SIZE(smb2_0_server_cmds); in init_smb3_02_server()
279 conn->max_cmds = ARRAY_SIZE(smb2_0_server_cmds); in init_smb3_11_server()
H A Dconnection.h44 unsigned int max_cmds; member
H A Dserver.c127 if (command >= conn->max_cmds) { in __process_request()
H A Dsmb_common.c404 conn->max_cmds = ARRAY_SIZE(smb1_server_cmds); in init_smb1_server()
/linux/drivers/scsi/
H A Dips.c669 scb = &ha->scbs[ha->max_cmds - 1]; in ips_release()
736 scb = &ha->scbs[ha->max_cmds - 1]; in ips_halt()
873 scb = &ha->scbs[ha->max_cmds - 1]; in __ips_eh_reset()
1184 min = ha->max_cmds / 2; in ips_slave_configure()
1186 min = ha->max_cmds - 1; in ips_slave_configure()
2103 ha->max_cmds); in ips_host_info()
2314 scb = &ha->scbs[ha->max_cmds - 1]; in ips_get_bios_version()
2456 ha->max_cmds = ha->enq->ucConcurrentCmdCount; in ips_hainit()
2461 ha->max_cmds = 32; in ips_hainit()
2465 ha->max_cmds = 16; in ips_hainit()
[all …]
H A Dmegaraid.c296 adapter->max_cmds = adapter->product_info.max_commands; in mega_query_adapter()
298 if(adapter->max_cmds > MAX_COMMANDS) in mega_query_adapter()
299 adapter->max_cmds = MAX_COMMANDS; in mega_query_adapter()
301 adapter->host->can_queue = adapter->max_cmds - 1; in mega_query_adapter()
1803 for(i = 0; i < adapter->max_cmds; i++) { in mega_free_sgl()
2079 adapter->product_info.max_commands, adapter->max_cmds); in proc_show_config()
2858 for( i = 0; i < adapter->max_cmds; i++ ) { in mega_init_scb()
2868 for( i = 0; i < adapter->max_cmds; i++ ) { in mega_init_scb()
H A Dipr.h42 #define IPR_NUM_BASE_CMD_BLKS (ioa_cfg->max_cmds)
1341 u16 max_cmds; member
1526 u32 max_cmds; member
H A Dmyrb.h280 unsigned short max_cmds; /* Bytes 60-61 */ member
H A Dmegaraid.h816 u8 max_cmds; member
H A Dips.h1015 uint32_t max_cmds; /* Max concurrent commands */ member
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_cmd.c562 dev->cmd.context = kmalloc_array(dev->cmd.max_cmds, in mthca_cmd_use_events()
568 for (i = 0; i < dev->cmd.max_cmds; ++i) { in mthca_cmd_use_events()
573 dev->cmd.context[dev->cmd.max_cmds - 1].next = -1; in mthca_cmd_use_events()
576 sema_init(&dev->cmd.event_sem, dev->cmd.max_cmds); in mthca_cmd_use_events()
580 dev->cmd.token_mask < dev->cmd.max_cmds; in mthca_cmd_use_events()
601 for (i = 0; i < dev->cmd.max_cmds; ++i) in mthca_cmd_use_polling()
826 dev->cmd.max_cmds = 1 << lg; in mthca_QUERY_FW()
829 (unsigned long long) dev->fw_ver, dev->cmd.max_cmds); in mthca_QUERY_FW()
H A Dmthca_dev.h124 int max_cmds; member
/linux/drivers/scsi/megaraid/
H A Dmega_common.h181 int max_cmds; member
H A Dmegaraid_mbox.c634 host->can_queue = adapter->max_cmds; in megaraid_io_attach()
2963 adapter->max_cmds = MBOX_MAX_SCSI_CMDS; in megaraid_mbox_product_info()
/linux/drivers/scsi/ibmvscsi/
H A Dibmvfc.h176 __be32 max_cmds; member
229 __be32 max_cmds; member
H A Dibmvfc.c1491 u16 max_cmds; in ibmvfc_set_login_info() local
1493 max_cmds = scsi_qdepth + IBMVFC_NUM_INTERNAL_REQ; in ibmvfc_set_login_info()
1495 max_cmds += (scsi_qdepth + IBMVFC_NUM_INTERNAL_SUBQ_REQ) * in ibmvfc_set_login_info()
1511 login_info->max_cmds = cpu_to_be32(max_cmds); in ibmvfc_set_login_info()
5228 if (be32_to_cpu(rsp->max_cmds) <= IBMVFC_NUM_INTERNAL_REQ) { in ibmvfc_npiv_login_done()
5230 rsp->max_cmds); in ibmvfc_npiv_login_done()
5257 vhost->host->can_queue = be32_to_cpu(rsp->max_cmds) - IBMVFC_NUM_INTERNAL_REQ; in ibmvfc_npiv_login_done()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dcmd.c2628 priv->cmd.context = kmalloc_array(priv->cmd.max_cmds, in mlx4_cmd_use_events()
2637 for (i = 0; i < priv->cmd.max_cmds; ++i) { in mlx4_cmd_use_events()
2647 priv->cmd.context[priv->cmd.max_cmds - 1].next = -1; in mlx4_cmd_use_events()
2650 sema_init(&priv->cmd.event_sem, priv->cmd.max_cmds); in mlx4_cmd_use_events()
2653 priv->cmd.token_mask < priv->cmd.max_cmds; in mlx4_cmd_use_events()
2680 for (i = 0; i < priv->cmd.max_cmds; ++i) in mlx4_cmd_use_polling()
2757 for (i = 0; i < priv->cmd.max_cmds; ++i) { in mlx4_cmd_wake_completions()
H A Dmlx4.h637 int max_cmds; member
H A Dfw.c1693 cmd->max_cmds = 1 << lg; in mlx4_QUERY_FW()
1699 cmd_if_rev, cmd->max_cmds); in mlx4_QUERY_FW()
/linux/drivers/scsi/aacraid/
H A Dcommsup.c138 u32 max_cmds; in aac_fib_setup() local
142 max_cmds = (dev->scsi_host_ptr->can_queue+AAC_NUM_MGT_FIB) >> 1; in aac_fib_setup()
143 dev->scsi_host_ptr->can_queue = max_cmds - AAC_NUM_MGT_FIB; in aac_fib_setup()
145 dev->init->r7.max_io_commands = cpu_to_le32(max_cmds); in aac_fib_setup()
/linux/drivers/infiniband/ulp/iser/
H A Discsi_iser.c632 shost->can_queue = min_t(u16, cmds_max, iser_conn->max_cmds); in iscsi_iser_session_create()
H A Diser_verbs.c273 iser_conn->max_cmds = ISER_GET_MAX_XMIT_CMDS(max_send_wr - 1); in iser_create_ib_conn_res()
/linux/drivers/scsi/cxgbi/cxgb4i/
H A Dcxgb4i.c2218 u32 max_cmds = CXGB4I_SCSI_HOST_QDEPTH; in t4_uld_add() local
2269 max_cmds = CXGB4I_SCSI_HOST_QDEPTH >> 2; in t4_uld_add()
2290 cxgb4i_host_template.can_queue = max_cmds; in t4_uld_add()

12