/linux/drivers/infiniband/hw/hns/ |
H A D | hns_roce_cmd.c | 94 &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 D | hns_roce_device.h | 564 int max_cmds; member
|
/linux/fs/smb/server/ |
H A D | smb2ops.c | 203 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 D | connection.h | 44 unsigned int max_cmds; member
|
H A D | server.c | 127 if (command >= conn->max_cmds) { in __process_request()
|
H A D | smb_common.c | 404 conn->max_cmds = ARRAY_SIZE(smb1_server_cmds); in init_smb1_server()
|
/linux/drivers/scsi/ |
H A D | ips.c | 669 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 D | megaraid.c | 296 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 D | ipr.h | 42 #define IPR_NUM_BASE_CMD_BLKS (ioa_cfg->max_cmds) 1341 u16 max_cmds; member 1526 u32 max_cmds; member
|
H A D | myrb.h | 280 unsigned short max_cmds; /* Bytes 60-61 */ member
|
H A D | megaraid.h | 816 u8 max_cmds; member
|
H A D | ips.h | 1015 uint32_t max_cmds; /* Max concurrent commands */ member
|
/linux/drivers/infiniband/hw/mthca/ |
H A D | mthca_cmd.c | 562 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 D | mthca_dev.h | 124 int max_cmds; member
|
/linux/drivers/scsi/megaraid/ |
H A D | mega_common.h | 181 int max_cmds; member
|
H A D | megaraid_mbox.c | 634 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 D | ibmvfc.h | 176 __be32 max_cmds; member 229 __be32 max_cmds; member
|
H A D | ibmvfc.c | 1491 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 D | cmd.c | 2628 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 D | mlx4.h | 637 int max_cmds; member
|
H A D | fw.c | 1693 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 D | commsup.c | 138 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 D | iscsi_iser.c | 632 shost->can_queue = min_t(u16, cmds_max, iser_conn->max_cmds); in iscsi_iser_session_create()
|
H A D | iser_verbs.c | 273 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 D | cxgb4i.c | 2218 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()
|