Searched refs:len_left (Results 1 – 6 of 6) sorted by relevance
| /freebsd-12.1/sbin/camcontrol/ |
| H A D | attrib.c | 367 uint32_t len_left, hdr_len, cur_len; in scsiattrib() local 393 for (len_left = MIN(valid_len, hdr_len), in scsiattrib() 394 cur_pos = &hdr->attribute_0[0]; len_left > sizeof(*cur_id); in scsiattrib() 395 len_left -= cur_len, cur_pos += cur_len) { in scsiattrib() 405 error = scsi_attrib_sbuf(sb, cur_id, len_left, in scsiattrib() 426 uint32_t len_left, hdr_len; in scsiattrib() local 446 for (len_left = MIN(valid_len, hdr_len), in scsiattrib() 447 cur_id = &hdr->first_attr_0[0]; len_left > 1; in scsiattrib() 448 len_left -= sizeof(uint16_t), cur_id += sizeof(uint16_t)) { in scsiattrib()
|
| /freebsd-12.1/sys/geom/vinum/ |
| H A D | geom_vinum_plex.c | 134 off_t len_left, stripeend, stripeno, stripestart; in gv_plex_offset() local 156 len_left = s->size - (*real_off); in gv_plex_offset() 157 KASSERT(len_left >= 0, ("gv_plex_offset: len_left < 0")); in gv_plex_offset() 158 *real_len = (bcount > len_left) ? len_left : bcount; in gv_plex_offset() 182 len_left = stripeend - *real_off; in gv_plex_offset() 183 KASSERT(len_left >= 0, ("gv_plex_offset: len_left < 0")); in gv_plex_offset() 185 *real_len = (bcount <= len_left) ? bcount : len_left; in gv_plex_offset()
|
| H A D | geom_vinum_raid5.c | 591 off_t len_left, stripeend, stripeoff, stripestart; in gv_raid5_offset() local 628 len_left = stripeend - *real_off; in gv_raid5_offset() 629 KASSERT(len_left >= 0, ("gv_raid5_offset: len_left < 0")); in gv_raid5_offset() 631 *real_len = (bcount <= len_left) ? bcount : len_left; in gv_raid5_offset()
|
| /freebsd-12.1/sys/cam/ctl/ |
| H A D | ctl_backend_block.c | 1280 uint64_t len_left, lba; in ctl_be_block_cw_dispatch_ws() local 1324 len_left = (uint64_t)lbalen->len * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws() 1325 for (i = 0, lba = 0; i < CTLBLK_MAX_SEGS && len_left > 0; i++) { in ctl_be_block_cw_dispatch_ws() 1330 seglen = MIN(CTLBLK_MAX_SEG, len_left); in ctl_be_block_cw_dispatch_ws() 1347 len_left -= seglen; in ctl_be_block_cw_dispatch_ws() 1368 if (len_left > 0) { in ctl_be_block_cw_dispatch_ws() 1549 uint64_t len_left, lbas; in ctl_be_block_dispatch() local 1604 for (i = 0, len_left = beio->io_len; len_left > 0; i++) { in ctl_be_block_dispatch() 1611 beio->sg_segs[i].len = min(CTLBLK_MAX_SEG, len_left); in ctl_be_block_dispatch() 1626 len_left -= beio->sg_segs[i].len; in ctl_be_block_dispatch()
|
| H A D | ctl.h | 81 uint16_t len_left; member
|
| H A D | ctl.c | 6037 uint16_t *len_left, *len_used; in ctl_do_mode_select() local 6046 len_left = &modepage_info->header.len_left; in ctl_do_mode_select() 6054 if (*len_left == 0) { in ctl_do_mode_select() 6059 } else if (*len_left < sizeof(struct scsi_mode_page_header)) { in ctl_do_mode_select() 6067 && (*len_left < sizeof(struct scsi_mode_page_header_sp))) { in ctl_do_mode_select() 6162 if (*len_left < page_index->page_len) { in ctl_do_mode_select() 6219 *len_left -= page_index->page_len; in ctl_do_mode_select() 6239 if (*len_left > 0) in ctl_do_mode_select() 6390 modepage_info->header.len_left = param_len - header_size - bd_len; in ctl_mode_select()
|