Home
last modified time | relevance | path

Searched refs:queue_depth (Results 1 – 25 of 72) sorted by relevance

123

/linux/drivers/target/
H A Dtarget_core_tpg.c158 struct se_node_acl *acl, u32 queue_depth) in target_set_nacl_queue_depth() argument
160 acl->queue_depth = queue_depth; in target_set_nacl_queue_depth()
162 if (!acl->queue_depth) { in target_set_nacl_queue_depth()
166 acl->queue_depth = 1; in target_set_nacl_queue_depth()
174 u32 queue_depth; in target_alloc_node_acl() local
191 queue_depth = tpg->se_tpg_tfo->tpg_get_default_depth(tpg); in target_alloc_node_acl()
193 queue_depth = 1; in target_alloc_node_acl()
194 target_set_nacl_queue_depth(tpg, acl, queue_depth); in target_alloc_node_acl()
218 acl->queue_depth, in target_add_node_acl()
369 tpg->se_tpg_tfo->tpg_get_tag(tpg), acl->queue_depth, in core_tpg_del_initiator_node_acl()
[all …]
/linux/arch/um/drivers/
H A Dvector_kern.c266 atomic_sub(advance, &qi->queue_depth); in vector_advancehead()
267 return atomic_read(&qi->queue_depth); in vector_advancehead()
280 atomic_add(advance, &qi->queue_depth); in vector_advancetail()
281 return atomic_read(&qi->queue_depth); in vector_advancetail()
328 int queue_depth; in vector_enqueue() local
334 queue_depth = atomic_read(&qi->queue_depth); in vector_enqueue()
339 if (queue_depth < qi->max_depth) { in vector_enqueue()
354 queue_depth = vector_advancetail(qi, 1); in vector_enqueue()
358 return queue_depth; in vector_enqueue()
367 return queue_depth; in vector_enqueue()
[all …]
H A Dvector_kern.h48 atomic_t queue_depth; member
/linux/drivers/infiniband/ulp/rtrs/
H A Drtrs-clt.c71 size_t max_depth = clt->queue_depth; in __rtrs_get_permit()
497 if (WARN_ON(msg_id >= clt_path->queue_depth)) in process_io_rsp()
551 if (WARN_ON(buf_id >= clt_path->queue_depth)) in rtrs_clt_rkey_rsp_done()
724 q_size = clt_path->queue_depth; in post_recv_path()
1323 for (i = 0; i < clt_path->queue_depth; ++i) { in fail_all_outstanding_reqs()
1349 for (i = 0; i < clt_path->queue_depth; ++i) { in free_path_reqs()
1365 clt_path->reqs = kcalloc(clt_path->queue_depth, in alloc_path_reqs()
1371 for (i = 0; i < clt_path->queue_depth; ++i) { in alloc_path_reqs()
1411 clt->permits_map = bitmap_zalloc(clt->queue_depth, GFP_KERNEL); in alloc_permits()
1416 clt->permits = kcalloc(clt->queue_depth, permit_size(clt), GFP_KERNEL); in alloc_permits()
[all …]
H A Drtrs-srv.c112 for (i = 0; i < srv->queue_depth; i++) in rtrs_srv_free_ops_ids()
141 srv_path->ops_ids = kcalloc(srv->queue_depth, in rtrs_srv_alloc_ops_ids()
147 for (i = 0; i < srv->queue_depth; ++i) { in rtrs_srv_alloc_ops_ids()
588 mrs_num = srv->queue_depth; in map_cont_bufs()
592 mrs_num = DIV_ROUND_UP(srv->queue_depth, chunks_per_mr); in map_cont_bufs()
593 chunks_per_mr = DIV_ROUND_UP(srv->queue_depth, mrs_num); in map_cont_bufs()
610 srv->queue_depth - chunks); in map_cont_bufs()
658 chunk_bits = ilog2(srv->queue_depth - 1) + 1; in map_cont_bufs()
995 q_size = srv->queue_depth; in post_recv_path()
1263 if (msg_id >= srv->queue_depth || off >= max_chunk_size) { in rtrs_srv_rdma_done()
[all …]
H A Drtrs-clt.h143 size_t queue_depth; member
172 size_t queue_depth; member
H A Drtrs.h111 u32 queue_depth; member
H A Drtrs-srv.h110 size_t queue_depth; member
/linux/drivers/target/iscsi/
H A Discsi_target_device.c41 sess->cmdsn_window = se_nacl->queue_depth; in iscsit_determine_maxcmdsn()
42 atomic_add(se_nacl->queue_depth - 1, &sess->max_cmd_sn); in iscsit_determine_maxcmdsn()
H A Discsi_target_nego.c1118 u32 payload_length, queue_depth = 0; in iscsi_target_locate_portal() local
1299 queue_depth = se_nacl->queue_depth; in iscsi_target_locate_portal()
1309 tag_num = max_t(u32, ISCSIT_MIN_TAGS, queue_depth); in iscsi_target_locate_portal()
/linux/drivers/ata/
H A Dlibata-sata.c1281 int queue_depth) in ata_change_queue_depth() argument
1290 if (!dev || queue_depth < 1 || queue_depth == sdev->queue_depth) { in ata_change_queue_depth()
1292 return sdev->queue_depth; in ata_change_queue_depth()
1301 if (queue_depth > max_queue_depth) { in ata_change_queue_depth()
1310 if (queue_depth == 1 || !ata_ncq_supported(dev)) { in ata_change_queue_depth()
1312 queue_depth = 1; in ata_change_queue_depth()
1319 if (queue_depth == sdev->queue_depth) in ata_change_queue_depth()
1320 return sdev->queue_depth; in ata_change_queue_depth()
1322 return scsi_change_queue_depth(sdev, queue_depth); in ata_change_queue_depth()
1341 int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth) in ata_scsi_change_queue_depth() argument
[all …]
/linux/include/net/mana/
H A Dhw_channel.h150 u16 queue_depth;
164 u16 queue_depth;
148 u16 queue_depth; global() member
162 u16 queue_depth; global() member
/linux/block/
H A Dblk-rq-qos.c122 if (rqd->queue_depth == 1) { in rq_depth_calc_max_depth()
138 rqd->queue_depth); in rq_depth_calc_max_depth()
142 unsigned int maxd = 3 * rqd->queue_depth / 4; in rq_depth_calc_max_depth()
H A Dblk-mq.c3918 unsigned int queue_depth, struct request *flush_rq) in blk_mq_clear_flush_rq_mapping() argument
3928 for (i = 0; i < queue_depth; i++) in blk_mq_clear_flush_rq_mapping()
3952 set->queue_depth, flush_rq); in blk_mq_exit_hctx()
4137 set->queue_depth); in __blk_mq_alloc_map_and_rqs()
4652 q->nr_requests = set->queue_depth; in blk_mq_init_allocated_queue()
4685 set->queue_depth); in __blk_mq_alloc_rq_maps()
4720 depth = set->queue_depth; in blk_mq_alloc_set_map_and_rqs()
4726 set->queue_depth >>= 1; in blk_mq_alloc_set_map_and_rqs()
4727 if (set->queue_depth < set->reserved_tags + BLK_MQ_TAG_MIN) { in blk_mq_alloc_set_map_and_rqs()
4731 } while (set->queue_depth); in blk_mq_alloc_set_map_and_rqs()
[all …]
/linux/tools/testing/selftests/ublk/
H A Dkublk.c338 ublk_log("dev id %d: nr_hw_queues %d queue_depth %d block size %d dev_capacity %lld\n", in ublk_ctrl_dump()
339 info->dev_id, info->nr_hw_queues, info->queue_depth, in ublk_ctrl_dump()
438 int depth = dev->dev_info.queue_depth; in ublk_queue_init()
505 unsigned nr_ios = dev->dev_info.queue_depth * dev->dev_info.nr_hw_queues; in ublk_thread_init()
726 int nr_ios = dinfo->nr_hw_queues * dinfo->queue_depth; in ublksrv_handle_tgt_cqe()
728 int q_id = i / dinfo->queue_depth; in ublksrv_handle_tgt_cqe()
729 int tag = i % dinfo->queue_depth; in ublksrv_handle_tgt_cqe()
1181 unsigned depth = ctx->queue_depth; in __cmd_dev_add()
1246 info->queue_depth = depth; in cmd_dev_add()
1621 .queue_depth in main()
[all...]
H A Dstripe.c345 dev->tgt.sq_depth = mul * dev->dev_info.queue_depth * conf->nr_files; in ublk_stripe_tgt_init()
346 dev->tgt.cq_depth = mul * dev->dev_info.queue_depth * conf->nr_files; in ublk_stripe_tgt_init()
H A Dnull.c41 dev->tgt.sq_depth = dev->tgt.cq_depth = 2 * info->queue_depth; in ublk_null_tgt_init()
/linux/drivers/block/rnbd/
H A Drnbd-srv.h25 int queue_depth; member
H A Drnbd-clt.h86 size_t queue_depth; member
/linux/drivers/scsi/snic/
H A Dsnic_main.c91 if (qsz < sdev->queue_depth) in snic_change_queue_depth()
93 else if (qsz > sdev->queue_depth) in snic_change_queue_depth()
96 atomic64_set(&snic->s_stats.misc.last_qsz, sdev->queue_depth); in snic_change_queue_depth()
100 return sdev->queue_depth; in snic_change_queue_depth()
/linux/rust/kernel/block/mq/
H A Dtag_set.rs52 queue_depth: num_tags, in new()
/linux/drivers/scsi/
H A Dscsi.c225 sdev->queue_depth = depth; in scsi_change_queue_depth()
232 sbitmap_resize(&sdev->budget_map, sdev->queue_depth); in scsi_change_queue_depth()
234 return sdev->queue_depth; in scsi_change_queue_depth()
H A Dstorvsc_drv.c343 static int storvsc_change_queue_depth(struct scsi_device *sdev, int queue_depth);
2127 static int storvsc_change_queue_depth(struct scsi_device *sdev, int queue_depth) in storvsc_change_queue_depth() argument
2129 if (queue_depth > scsi_driver.can_queue) in storvsc_change_queue_depth()
2130 queue_depth = scsi_driver.can_queue; in storvsc_change_queue_depth()
2132 return scsi_change_queue_depth(sdev, queue_depth); in storvsc_change_queue_depth()
/linux/include/target/
H A Dtarget_core_base.h581 u32 queue_depth; member
729 u32 queue_depth; member
832 u32 queue_depth; member
/linux/drivers/mmc/core/
H A Dqueue.c439 mq->tag_set.queue_depth = in mmc_init_queue()
442 mq->tag_set.queue_depth = MMC_QUEUE_DEPTH; in mmc_init_queue()

123