Home
last modified time | relevance | path

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

12

/drivers/infiniband/hw/hns/
Dhns_roce_cmd.c97 &hr_dev->cmd.context[token % hr_dev->cmd.max_cmds]; in hns_roce_cmd_event()
214 hr_dev->cmd.max_cmds = CMD_MAX_NUM; in hns_roce_cmd_init()
235 kcalloc(hr_cmd->max_cmds, sizeof(*hr_cmd->context), GFP_KERNEL); in hns_roce_cmd_use_events()
239 for (i = 0; i < hr_cmd->max_cmds; ++i) { in hns_roce_cmd_use_events()
244 hr_cmd->context[hr_cmd->max_cmds - 1].next = -1; in hns_roce_cmd_use_events()
247 sema_init(&hr_cmd->event_sem, hr_cmd->max_cmds); in hns_roce_cmd_use_events()
Dhns_roce_device.h573 int max_cmds; member
/drivers/scsi/
Dips.c667 scb = &ha->scbs[ha->max_cmds - 1]; in ips_release()
736 scb = &ha->scbs[ha->max_cmds - 1]; in ips_halt()
891 scb = &ha->scbs[ha->max_cmds - 1]; in __ips_eh_reset()
1198 min = ha->max_cmds / 2; in ips_slave_configure()
1200 min = ha->max_cmds - 1; in ips_slave_configure()
2118 ha->max_cmds); in ips_host_info()
2329 scb = &ha->scbs[ha->max_cmds - 1]; in ips_get_bios_version()
2471 ha->max_cmds = ha->enq->ucConcurrentCmdCount; in ips_hainit()
2476 ha->max_cmds = 32; in ips_hainit()
2480 ha->max_cmds = 16; in ips_hainit()
[all …]
Dmegaraid.c294 adapter->max_cmds = adapter->product_info.max_commands; in mega_query_adapter()
296 if(adapter->max_cmds > MAX_COMMANDS) in mega_query_adapter()
297 adapter->max_cmds = MAX_COMMANDS; in mega_query_adapter()
299 adapter->host->can_queue = adapter->max_cmds - 1; in mega_query_adapter()
1817 for(i = 0; i < adapter->max_cmds; i++) { in mega_free_sgl()
2098 adapter->product_info.max_commands, adapter->max_cmds); in proc_show_config()
2877 for( i = 0; i < adapter->max_cmds; i++ ) { in mega_init_scb()
2887 for( i = 0; i < adapter->max_cmds; i++ ) { in mega_init_scb()
Dipr.h44 #define IPR_NUM_BASE_CMD_BLKS (ioa_cfg->max_cmds)
1401 u16 max_cmds; member
1587 u32 max_cmds; member
Dmyrb.h280 unsigned short max_cmds; /* Bytes 60-61 */ member
Dmegaraid.h795 u8 max_cmds; member
Dips.h1015 uint32_t max_cmds; /* Max concurrent commands */ member
Dipr.c95 .max_cmds = 100,
120 .max_cmds = 100,
145 .max_cmds = 1000,
9992 host->can_queue = ioa_cfg->max_cmds; in ipr_init_ioa_cfg()
10208 ioa_cfg->max_cmds = ioa_cfg->chip_cfg->max_cmds; in ipr_probe_ioa()
Dmyrb.c1112 shost->can_queue = enquiry2->max_cmds; in myrb_get_hba_config()
/drivers/infiniband/hw/mthca/
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()
Dmthca_dev.h124 int max_cmds; member
/drivers/vhost/
Dscsi.c194 int max_cmds; member
1491 for (i = 0; i < svq->max_cmds; i++) { in vhost_scsi_destroy_vq_cmds()
1504 static int vhost_scsi_setup_vq_cmds(struct vhost_virtqueue *vq, int max_cmds) in vhost_scsi_setup_vq_cmds() argument
1514 if (sbitmap_init_node(&svq->scsi_tags, max_cmds, -1, GFP_KERNEL, in vhost_scsi_setup_vq_cmds()
1517 svq->max_cmds = max_cmds; in vhost_scsi_setup_vq_cmds()
1519 svq->scsi_cmds = kcalloc(max_cmds, sizeof(*tv_cmd), GFP_KERNEL); in vhost_scsi_setup_vq_cmds()
1525 for (i = 0; i < max_cmds; i++) { in vhost_scsi_setup_vq_cmds()
/drivers/scsi/megaraid/
Dmega_common.h181 int max_cmds; member
Dmegaraid_mbox.c632 host->can_queue = adapter->max_cmds; in megaraid_io_attach()
2970 adapter->max_cmds = MBOX_MAX_SCSI_CMDS; in megaraid_mbox_product_info()
/drivers/scsi/ibmvscsi/
Dibmvfc.h166 __be32 max_cmds; member
215 __be32 max_cmds; member
Dibmvfc.c1234 login_info->max_cmds = cpu_to_be32(max_requests + IBMVFC_NUM_INTERNAL_REQ); in ibmvfc_set_login_info()
4340 if (be32_to_cpu(rsp->max_cmds) <= IBMVFC_NUM_INTERNAL_REQ) { in ibmvfc_npiv_login_done()
4342 rsp->max_cmds); in ibmvfc_npiv_login_done()
4369 vhost->host->can_queue = be32_to_cpu(rsp->max_cmds) - IBMVFC_NUM_INTERNAL_REQ; in ibmvfc_npiv_login_done()
/drivers/infiniband/ulp/iser/
Discsi_iser.h426 u16 max_cmds; member
Discsi_iser.c635 shost->can_queue = min_t(u16, cmds_max, iser_conn->max_cmds); in iscsi_iser_session_create()
Diser_verbs.c278 iser_conn->max_cmds = ISER_GET_MAX_XMIT_CMDS(max_send_wr - 1); in iser_create_ib_conn_res()
/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c2629 priv->cmd.context = kmalloc_array(priv->cmd.max_cmds, in mlx4_cmd_use_events()
2638 for (i = 0; i < priv->cmd.max_cmds; ++i) { in mlx4_cmd_use_events()
2648 priv->cmd.context[priv->cmd.max_cmds - 1].next = -1; in mlx4_cmd_use_events()
2651 sema_init(&priv->cmd.event_sem, priv->cmd.max_cmds); in mlx4_cmd_use_events()
2654 priv->cmd.token_mask < priv->cmd.max_cmds; in mlx4_cmd_use_events()
2681 for (i = 0; i < priv->cmd.max_cmds; ++i) in mlx4_cmd_use_polling()
2758 for (i = 0; i < priv->cmd.max_cmds; ++i) { in mlx4_cmd_wake_completions()
Dmlx4.h634 int max_cmds; member
Dfw.c1693 cmd->max_cmds = 1 << lg; in mlx4_QUERY_FW()
1699 cmd_if_rev, cmd->max_cmds); in mlx4_QUERY_FW()
/drivers/scsi/aacraid/
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()
/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c2217 u32 max_cmds = CXGB4I_SCSI_HOST_QDEPTH; in t4_uld_add() local
2268 max_cmds = CXGB4I_SCSI_HOST_QDEPTH >> 2; in t4_uld_add()
2289 cxgb4i_host_template.can_queue = max_cmds; in t4_uld_add()

12