Home
last modified time | relevance | path

Searched refs:len_left (Results 1 – 6 of 6) sorted by relevance

/freebsd-14.2/sbin/camcontrol/
H A Dattrib.c363 uint32_t len_left, hdr_len, cur_len; in scsiattrib() local
389 for (len_left = MIN(valid_len, hdr_len), in scsiattrib()
390 cur_pos = &hdr->attribute_0[0]; len_left > sizeof(*cur_id); in scsiattrib()
391 len_left -= cur_len, cur_pos += cur_len) { in scsiattrib()
401 error = scsi_attrib_sbuf(sb, cur_id, len_left, in scsiattrib()
422 uint32_t len_left, hdr_len; in scsiattrib() local
442 for (len_left = MIN(valid_len, hdr_len), in scsiattrib()
443 cur_id = &hdr->first_attr_0[0]; len_left > 1; in scsiattrib()
444 len_left -= sizeof(uint16_t), cur_id += sizeof(uint16_t)) { in scsiattrib()
/freebsd-14.2/sys/geom/vinum/
H A Dgeom_vinum_plex.c133 off_t len_left, stripeend, stripeno, stripestart; in gv_plex_offset() local
155 len_left = s->size - (*real_off); in gv_plex_offset()
156 KASSERT(len_left >= 0, ("gv_plex_offset: len_left < 0")); in gv_plex_offset()
157 *real_len = (bcount > len_left) ? len_left : bcount; in gv_plex_offset()
181 len_left = stripeend - *real_off; in gv_plex_offset()
182 KASSERT(len_left >= 0, ("gv_plex_offset: len_left < 0")); in gv_plex_offset()
184 *real_len = (bcount <= len_left) ? bcount : len_left; in gv_plex_offset()
H A Dgeom_vinum_raid5.c590 off_t len_left, stripeend, stripeoff, stripestart; in gv_raid5_offset() local
627 len_left = stripeend - *real_off; in gv_raid5_offset()
628 KASSERT(len_left >= 0, ("gv_raid5_offset: len_left < 0")); in gv_raid5_offset()
630 *real_len = (bcount <= len_left) ? bcount : len_left; in gv_raid5_offset()
/freebsd-14.2/sys/cam/ctl/
H A Dctl.h80 uint16_t len_left; member
H A Dctl_backend_block.c1356 uint64_t len_left, lba; in ctl_be_block_cw_dispatch_ws() local
1400 len_left = (uint64_t)lbalen->len * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws()
1401 for (i = 0, lba = 0; i < CTLBLK_MAX_SEGS && len_left > 0; i++) { in ctl_be_block_cw_dispatch_ws()
1405 seglen = MIN(CTLBLK_MAX_SEG, len_left); in ctl_be_block_cw_dispatch_ws()
1421 len_left -= seglen; in ctl_be_block_cw_dispatch_ws()
1442 if (len_left > 0) { in ctl_be_block_cw_dispatch_ws()
1623 uint64_t len_left, lbas; in ctl_be_block_dispatch() local
1679 for (i = 0, len_left = beio->io_len; len_left > 0; i++) { in ctl_be_block_dispatch()
1687 MIN(CTLBLK_MAX_SEG, len_left)); in ctl_be_block_dispatch()
1700 len_left -= beio->sg_segs[i].len; in ctl_be_block_dispatch()
H A Dctl.c6049 uint16_t *len_left, *len_used; in ctl_do_mode_select() local
6058 len_left = &modepage_info->header.len_left; in ctl_do_mode_select()
6066 if (*len_left == 0) { in ctl_do_mode_select()
6071 } else if (*len_left < sizeof(struct scsi_mode_page_header)) { in ctl_do_mode_select()
6078 && (*len_left < sizeof(struct scsi_mode_page_header_sp))) { in ctl_do_mode_select()
6171 if (*len_left < page_index->page_len) { in ctl_do_mode_select()
6228 *len_left -= page_index->page_len; in ctl_do_mode_select()
6248 if (*len_left > 0) in ctl_do_mode_select()
6399 modepage_info->header.len_left = param_len - header_size - bd_len; in ctl_mode_select()