Searched refs:len_left (Results 1 – 6 of 6) sorted by relevance
| /freebsd-13.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-13.1/sys/geom/vinum/ |
| H A D | geom_vinum_plex.c | 135 off_t len_left, stripeend, stripeno, stripestart; in gv_plex_offset() local 157 len_left = s->size - (*real_off); in gv_plex_offset() 158 KASSERT(len_left >= 0, ("gv_plex_offset: len_left < 0")); in gv_plex_offset() 159 *real_len = (bcount > len_left) ? len_left : bcount; in gv_plex_offset() 183 len_left = stripeend - *real_off; in gv_plex_offset() 184 KASSERT(len_left >= 0, ("gv_plex_offset: len_left < 0")); in gv_plex_offset() 186 *real_len = (bcount <= len_left) ? bcount : len_left; in gv_plex_offset()
|
| H A D | geom_vinum_raid5.c | 595 off_t len_left, stripeend, stripeoff, stripestart; in gv_raid5_offset() local 632 len_left = stripeend - *real_off; in gv_raid5_offset() 633 KASSERT(len_left >= 0, ("gv_raid5_offset: len_left < 0")); in gv_raid5_offset() 635 *real_len = (bcount <= len_left) ? bcount : len_left; in gv_raid5_offset()
|
| /freebsd-13.1/sys/cam/ctl/ |
| H A D | ctl.h | 81 uint16_t len_left; member
|
| H A D | ctl_backend_block.c | 1274 uint64_t len_left, lba; in ctl_be_block_cw_dispatch_ws() local 1318 len_left = (uint64_t)lbalen->len * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws() 1319 for (i = 0, lba = 0; i < CTLBLK_MAX_SEGS && len_left > 0; i++) { in ctl_be_block_cw_dispatch_ws() 1323 seglen = MIN(CTLBLK_MAX_SEG, len_left); in ctl_be_block_cw_dispatch_ws() 1339 len_left -= seglen; in ctl_be_block_cw_dispatch_ws() 1360 if (len_left > 0) { in ctl_be_block_cw_dispatch_ws() 1541 uint64_t len_left, lbas; in ctl_be_block_dispatch() local 1597 for (i = 0, len_left = beio->io_len; len_left > 0; i++) { in ctl_be_block_dispatch() 1605 MIN(CTLBLK_MAX_SEG, len_left)); in ctl_be_block_dispatch() 1618 len_left -= beio->sg_segs[i].len; in ctl_be_block_dispatch()
|
| H A D | ctl.c | 5964 uint16_t *len_left, *len_used; in ctl_do_mode_select() local 5973 len_left = &modepage_info->header.len_left; in ctl_do_mode_select() 5981 if (*len_left == 0) { in ctl_do_mode_select() 5986 } else if (*len_left < sizeof(struct scsi_mode_page_header)) { in ctl_do_mode_select() 5993 && (*len_left < sizeof(struct scsi_mode_page_header_sp))) { in ctl_do_mode_select() 6086 if (*len_left < page_index->page_len) { in ctl_do_mode_select() 6143 *len_left -= page_index->page_len; in ctl_do_mode_select() 6163 if (*len_left > 0) in ctl_do_mode_select() 6314 modepage_info->header.len_left = param_len - header_size - bd_len; in ctl_mode_select()
|