Home
last modified time | relevance | path

Searched refs:queue_max_hw_sectors (Results 1 – 19 of 19) sorted by relevance

/openbmc/linux/drivers/usb/storage/
H A Dscsiglue.c107 if (queue_max_hw_sectors(sdev->request_queue) > max_sectors) in slave_configure()
130 min_t(size_t, queue_max_hw_sectors(sdev->request_queue), in slave_configure()
593 return sprintf(buf, "%u\n", queue_max_hw_sectors(sdev->request_queue)); in max_sectors_show()
/openbmc/linux/block/
H A Dblk-map.c276 unsigned int max_sectors = queue_max_hw_sectors(rq->q); in bio_map_user_iov()
573 if (!nr_iter || (nr_iter >> SECTOR_SHIFT) > queue_max_hw_sectors(q)) in blk_rq_map_user_bvec()
788 if (len > (queue_max_hw_sectors(q) << 9)) in blk_rq_map_kern()
H A Dblk-sysfs.c231 max_hw_sectors_kb = queue_max_hw_sectors(q) >> 1, in queue_max_sectors_store()
263 int max_hw_sectors_kb = queue_max_hw_sectors(q) >> 1; in queue_max_hw_sectors_show()
492 QUEUE_RO_ENTRY(queue_max_hw_sectors, "max_hw_sectors_kb");
H A Dbio-integrity.c130 queue_max_hw_sectors(q)) in bio_integrity_add_page()
H A Dbio.c1022 queue_max_hw_sectors(q), &same_page); in bio_add_pc_page()
/openbmc/linux/drivers/nvme/host/
H A Dzns.c136 queue_max_hw_sectors(q) << SECTOR_SHIFT); in nvme_zns_alloc_report_buffer()
/openbmc/linux/drivers/scsi/
H A Dsd_zbc.c220 queue_max_hw_sectors(q) << SECTOR_SHIFT); in sd_zbc_alloc_report_buffer()
H A Dscsi_ioctl.c424 if (hdr->dxfer_len > (queue_max_hw_sectors(sdev->request_queue) << 9)) in sg_io()
H A Dsd.c3543 rw_max = min(rw_max, queue_max_hw_sectors(q)); in sd_revalidate_disk()
/openbmc/linux/drivers/block/rnbd/
H A Drnbd-srv.c546 cpu_to_le32(queue_max_hw_sectors(bdev_get_queue(bdev))); in rnbd_srv_fill_msg_open_rsp()
/openbmc/linux/drivers/target/
H A Dtarget_core_pscsi.c301 min_not_zero(sd->host->max_sectors, queue_max_hw_sectors(q)); in pscsi_add_device_to_list()
H A Dtarget_core_iblock.c129 dev->dev_attrib.hw_max_sectors = mult_frac(queue_max_hw_sectors(q), in iblock_configure_device()
/openbmc/linux/include/linux/
H A Dblkdev.h1118 static inline unsigned int queue_max_hw_sectors(const struct request_queue *q) in queue_max_hw_sectors() function
/openbmc/linux/drivers/block/drbd/
H A Ddrbd_nl.c1283 max_hw_sectors = min(queue_max_hw_sectors(b), max_bio_size >> 9); in drbd_setup_queue_param()
1310 now = queue_max_hw_sectors(device->rq_queue) << 9; in drbd_reconsider_queue_parameters()
1315 local = queue_max_hw_sectors(bdev->backing_bdev->bd_disk->queue) << 9; in drbd_reconsider_queue_parameters()
H A Ddrbd_worker.c622 max_bio_size = queue_max_hw_sectors(device->rq_queue) << 9; in make_resync_request()
H A Ddrbd_main.c939 max_bio_size = queue_max_hw_sectors(q) << 9; in drbd_send_sizes()
/openbmc/linux/drivers/block/
H A Dvirtio_blk.c547 queue_max_hw_sectors(q) << SECTOR_SHIFT); in virtblk_alloc_report_buffer()
H A Dublk_drv.c307 min_t(size_t, bufsize, queue_max_hw_sectors(q) << SECTOR_SHIFT); in ublk_alloc_report_buffer()
H A Drbd.c4991 q->limits.max_sectors = queue_max_hw_sectors(q); in rbd_init_disk()