Home
last modified time | relevance | path

Searched refs:nr_segs (Results 1 – 9 of 9) sorted by relevance

/drivers/scsi/
Dxen-scsifront.c1063 unsigned int sg_grant, nr_segs; in scsifront_read_backend_params() local
1067 nr_segs = min_t(unsigned int, sg_grant, SG_ALL); in scsifront_read_backend_params()
1068 nr_segs = max_t(unsigned int, nr_segs, VSCSIIF_SG_TABLESIZE); in scsifront_read_backend_params()
1069 nr_segs = min_t(unsigned int, nr_segs, in scsifront_read_backend_params()
1074 dev_info(&dev->dev, "using up to %d SG entries\n", nr_segs); in scsifront_read_backend_params()
1075 else if (info->pause && nr_segs < host->sg_tablesize) in scsifront_read_backend_params()
1078 host->sg_tablesize, nr_segs); in scsifront_read_backend_params()
1080 host->sg_tablesize = nr_segs; in scsifront_read_backend_params()
1081 host->max_sectors = (nr_segs - 1) * PAGE_SIZE / 512; in scsifront_read_backend_params()
Dscsi_lib.c986 unsigned short nr_segs = blk_rq_nr_phys_segments(rq); in scsi_alloc_sgtables() local
992 if (WARN_ON_ONCE(!nr_segs)) in scsi_alloc_sgtables()
1000 nr_segs++; in scsi_alloc_sgtables()
1005 if (unlikely(sg_alloc_table_chained(&cmd->sdb.table, nr_segs, in scsi_alloc_sgtables()
/drivers/hwtracing/intel_th/
Dmsu.c73 unsigned int nr_segs; member
330 for_each_sg(win->sgt->sgl, sg, win->nr_segs, blk) { in msc_win_total_sz()
425 for_each_sg(win->sgt->sgl, sg, win->nr_segs, blk) { in msc_win_oldest_sg()
664 for_each_sg(win->sgt->sgl, sg, win->nr_segs, blk) { in msc_buffer_clear_hw_header()
994 unsigned int nr_segs) in __msc_buffer_win_alloc() argument
1000 ret = sg_alloc_table(win->sgt, nr_segs, GFP_KERNEL); in __msc_buffer_win_alloc()
1004 for_each_sg(win->sgt->sgl, sg_ptr, nr_segs, i) { in __msc_buffer_win_alloc()
1014 return nr_segs; in __msc_buffer_win_alloc()
1039 for_each_sg(win->sgt->sgl, sg_ptr, win->nr_segs, i) { in msc_buffer_set_uc()
1059 for_each_sg(win->sgt->sgl, sg_ptr, win->nr_segs, i) { in msc_buffer_set_wb()
[all …]
/drivers/block/xen-blkback/
Dblkback.c710 invcount = xen_blkbk_unmap_prepare(ring, pages, req->nr_segs, in xen_blkbk_unmap_and_respond()
907 pending_req->nr_segs, in xen_blkbk_map_seg()
923 nseg = pending_req->nr_segs; in xen_blkbk_parse_indirect()
1256 pending_req->nr_segs = nseg; in dispatch_rw_block_io()
1377 pending_req->nr_segs); in dispatch_rw_block_io()
Dcommon.h347 int nr_segs; member
/drivers/nvme/target/
Dio-cmd-file.c84 unsigned long nr_segs, size_t count, int ki_flags) in nvmet_file_submit_bvec() argument
101 iov_iter_bvec(&iter, rw, req->f.bvec, nr_segs, count); in nvmet_file_submit_bvec()
/drivers/infiniband/hw/qib/
Dqib_file_ops.c2249 if (!iter_is_iovec(from) || !from->nr_segs || !pq) in qib_write_iter()
2252 return qib_user_sdma_writev(rcd, pq, from->iov, from->nr_segs); in qib_write_iter()
/drivers/infiniband/hw/hfi1/
Dfile_ops.c265 unsigned long dim = from->nr_segs; in hfi1_write_iter()
/drivers/net/
Dtun.c1450 if (it->nr_segs > MAX_SKB_FRAGS + 1 || in tun_napi_alloc_frags()
1469 for (i = 1; i < it->nr_segs; i++) { in tun_napi_alloc_frags()