Home
last modified time | relevance | path

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

/freebsd-14.2/sys/cam/ctl/
H A Dctl_backend.h150 uint64_t maxlba; /* passed to CTL */ member
H A Dctl.c3123 (lun->be_lun->maxlba > 0) ? in ctl_ioctl()
3124 lun->be_lun->maxlba + 1 : 0); in ctl_ioctl()
5785 MAX(lba, lun->be_lun->maxlba + 1)); in ctl_write_same()
6623 if (lun->be_lun->maxlba != 0) in ctl_mode_sense()
6630 if (lun->be_lun->maxlba != 0) in ctl_mode_sense()
7030 if (lun->be_lun->maxlba > 0xfffffffe) in ctl_read_capacity()
7114 if (lba > lun->be_lun->maxlba) { in ctl_get_lba_status()
8928 MAX(lba, lun->be_lun->maxlba + 1)); in ctl_read_write()
9035 MAX(lba, lun->be_lun->maxlba + 1)); in ctl_cnw()
9145 MAX(lba, lun->be_lun->maxlba + 1)); in ctl_verify()
[all …]
H A Dctl_tpc.c1113 tpc_check_ranges_l(struct scsi_range_desc *range, int nrange, uint64_t maxlba, in tpc_check_ranges_l() argument
1123 if (b1 + l1 < b1 || b1 + l1 > maxlba + 1) { in tpc_check_ranges_l()
1124 *lba = MAX(b1, maxlba + 1); in tpc_check_ranges_l()
2104 lun->be_lun->maxlba, &lba) != 0) { in ctl_populate_token()
2250 lun->be_lun->maxlba, &lba) != 0) { in ctl_write_using_token()
H A Dctl_backend_ramdisk.c1005 cbe_lun->maxlba = be_lun->size_blocks - 1; in ctl_backend_ramdisk_create()
1204 be_lun->cbe_lun.maxlba = be_lun->size_blocks - 1; in ctl_backend_ramdisk_modify()
H A Dctl_backend_block.c1938 cbe_lun->maxlba = (be_lun->size_blocks == 0) ? in ctl_be_block_open_file()
2094 cbe_lun->maxlba = (be_lun->size_blocks == 0) ? in ctl_be_block_open_dev()
2345 cbe_lun->maxlba = (be_lun->size_blocks == 0) ? in ctl_be_block_create()
/freebsd-14.2/usr.sbin/mptutil/
H A Dmptutil.h52 uint64_t maxlba; member
H A Dmpt_cam.c269 disk->maxlba = scsi_4btoul(rcap.addr); in fetch_scsi_capacity()
295 disk->maxlba = scsi_8btou64(rcaplong.addr); in fetch_scsi_capacity()
H A Dmpt_show.c246 humanize_number(buf, sizeof(buf), (disk->maxlba + 1) * 512, in print_standalone()
/freebsd-14.2/usr.sbin/ctladm/
H A Dctladm.c1591 uint64_t maxlba; in cctl_read_capacity() local
1598 maxlba = scsi_4btoul(data->addr); in cctl_read_capacity()
1601 if (maxlba == 0xffffffff) { in cctl_read_capacity()
1608 maxlba = scsi_8btou64(longdata->addr); in cctl_read_capacity()
1613 (uintmax_t)maxlba, blocksize); in cctl_read_capacity()