Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/infiniband/hw/hns/
Dhns_roce_cmd.c80 &hr_dev->cmd.context[token % hr_dev->cmd.max_cmds]; in hns_roce_cmd_event()
110 context->token += cmd->max_cmds; in __hns_roce_cmd_mbox_wait()
186 hr_dev->cmd.max_cmds = CMD_MAX_NUM; in hns_roce_cmd_init()
207 kcalloc(hr_cmd->max_cmds, sizeof(*hr_cmd->context), GFP_KERNEL); in hns_roce_cmd_use_events()
213 for (i = 0; i < hr_cmd->max_cmds; ++i) { in hns_roce_cmd_use_events()
218 hr_cmd->context[hr_cmd->max_cmds - 1].next = 0; in hns_roce_cmd_use_events()
221 sema_init(&hr_cmd->event_sem, hr_cmd->max_cmds); in hns_roce_cmd_use_events()
Dhns_roce_device.h542 int max_cmds; member
/linux-6.6.21/fs/smb/server/
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()
245 conn->max_cmds = ARRAY_SIZE(smb2_0_server_cmds); in init_smb3_02_server()
271 conn->max_cmds = ARRAY_SIZE(smb2_0_server_cmds); in init_smb3_11_server()
Dconnection.h44 unsigned int max_cmds; member
Dserver.c127 if (command >= conn->max_cmds) { in __process_request()
Dsmb_common.c404 conn->max_cmds = ARRAY_SIZE(smb1_server_cmds); in init_smb1_server()
/linux-6.6.21/drivers/gpu/drm/i915/display/
Dintel_dsb.h17 unsigned int max_cmds);
Dintel_dsb.c284 unsigned int max_cmds) in intel_dsb_prepare() argument
304 size = ALIGN(max_cmds * 8, CACHELINE_BYTES); in intel_dsb_prepare()
/linux-6.6.21/drivers/scsi/
Dips.c669 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()
1202 min = ha->max_cmds / 2; in ips_slave_configure()
1204 min = ha->max_cmds - 1; in ips_slave_configure()
2121 ha->max_cmds); in ips_host_info()
2332 scb = &ha->scbs[ha->max_cmds - 1]; in ips_get_bios_version()
2474 ha->max_cmds = ha->enq->ucConcurrentCmdCount; in ips_hainit()
2479 ha->max_cmds = 32; in ips_hainit()
2483 ha->max_cmds = 16; in ips_hainit()
[all …]
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()
2084 adapter->product_info.max_commands, adapter->max_cmds); in proc_show_config()
2863 for( i = 0; i < adapter->max_cmds; i++ ) { in mega_init_scb()
2873 for( i = 0; i < adapter->max_cmds; i++ ) { in mega_init_scb()
Dipr.h42 #define IPR_NUM_BASE_CMD_BLKS (ioa_cfg->max_cmds)
1341 u16 max_cmds; member
1526 u32 max_cmds; member
Dmyrb.h280 unsigned short max_cmds; /* Bytes 60-61 */ member
Dmegaraid.h816 u8 max_cmds; member
Dips.h1015 uint32_t max_cmds; /* Max concurrent commands */ member
/linux-6.6.21/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
/linux-6.6.21/drivers/scsi/megaraid/
Dmega_common.h181 int max_cmds; member
/linux-6.6.21/drivers/vhost/
Dscsi.c189 int max_cmds; member
1575 for (i = 0; i < svq->max_cmds; i++) { in vhost_scsi_destroy_vq_cmds()
1589 static int vhost_scsi_setup_vq_cmds(struct vhost_virtqueue *vq, int max_cmds) in vhost_scsi_setup_vq_cmds() argument
1599 if (sbitmap_init_node(&svq->scsi_tags, max_cmds, -1, GFP_KERNEL, in vhost_scsi_setup_vq_cmds()
1602 svq->max_cmds = max_cmds; in vhost_scsi_setup_vq_cmds()
1604 svq->scsi_cmds = kcalloc(max_cmds, sizeof(*tv_cmd), GFP_KERNEL); in vhost_scsi_setup_vq_cmds()
1610 for (i = 0; i < max_cmds; i++) { in vhost_scsi_setup_vq_cmds()
/linux-6.6.21/drivers/infiniband/ulp/iser/
Discsi_iser.h410 u16 max_cmds; member
Discsi_iser.c632 shost->can_queue = min_t(u16, cmds_max, iser_conn->max_cmds); in iscsi_iser_session_create()
Diser_verbs.c273 iser_conn->max_cmds = ISER_GET_MAX_XMIT_CMDS(max_send_wr - 1); in iser_create_ib_conn_res()
/linux-6.6.21/drivers/scsi/ibmvscsi/
Dibmvfc.h173 __be32 max_cmds; member
226 __be32 max_cmds; member
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c2627 priv->cmd.context = kmalloc_array(priv->cmd.max_cmds, in mlx4_cmd_use_events()
2636 for (i = 0; i < priv->cmd.max_cmds; ++i) { in mlx4_cmd_use_events()
2646 priv->cmd.context[priv->cmd.max_cmds - 1].next = -1; in mlx4_cmd_use_events()
2649 sema_init(&priv->cmd.event_sem, priv->cmd.max_cmds); in mlx4_cmd_use_events()
2652 priv->cmd.token_mask < priv->cmd.max_cmds; in mlx4_cmd_use_events()
2679 for (i = 0; i < priv->cmd.max_cmds; ++i) in mlx4_cmd_use_polling()
2756 for (i = 0; i < priv->cmd.max_cmds; ++i) { in mlx4_cmd_wake_completions()
/linux-6.6.21/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()
/linux-6.6.21/drivers/scsi/cxgbi/cxgb4i/
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