Searched refs:len_left (Results 1 – 6 of 6) sorted by relevance
| /freebsd-10-stable/sbin/camcontrol/ |
| D | attrib.c | 373 uint32_t len_left, hdr_len, cur_len; in scsiattrib() local 399 for (len_left = MIN(valid_len, hdr_len), in scsiattrib() 400 cur_pos = &hdr->attribute_0[0]; len_left > sizeof(*cur_id); in scsiattrib() 401 len_left -= cur_len, cur_pos += cur_len) { in scsiattrib() 411 error = scsi_attrib_sbuf(sb, cur_id, len_left, in scsiattrib() 432 uint32_t len_left, hdr_len; in scsiattrib() local 452 for (len_left = MIN(valid_len, hdr_len), in scsiattrib() 453 cur_id = &hdr->first_attr_0[0]; len_left > 1; in scsiattrib() 454 len_left -= sizeof(uint16_t), cur_id += sizeof(uint16_t)) { in scsiattrib()
|
| /freebsd-10-stable/sys/geom/vinum/ |
| D | geom_vinum_plex.c | 132 off_t len_left, stripeend, stripeno, stripestart; in gv_plex_offset() local 154 len_left = s->size - (*real_off); in gv_plex_offset() 155 KASSERT(len_left >= 0, ("gv_plex_offset: len_left < 0")); in gv_plex_offset() 156 *real_len = (bcount > len_left) ? len_left : bcount; in gv_plex_offset() 180 len_left = stripeend - *real_off; in gv_plex_offset() 181 KASSERT(len_left >= 0, ("gv_plex_offset: len_left < 0")); in gv_plex_offset() 183 *real_len = (bcount <= len_left) ? bcount : len_left; in gv_plex_offset()
|
| D | geom_vinum_raid5.c | 589 off_t len_left, stripeend, stripeoff, stripestart; in gv_raid5_offset() local 626 len_left = stripeend - *real_off; in gv_raid5_offset() 627 KASSERT(len_left >= 0, ("gv_raid5_offset: len_left < 0")); in gv_raid5_offset() 629 *real_len = (bcount <= len_left) ? bcount : len_left; in gv_raid5_offset()
|
| /freebsd-10-stable/sys/cam/ctl/ |
| D | ctl_backend_block.c | 1279 uint64_t len_left, lba; in ctl_be_block_cw_dispatch_ws() local 1323 len_left = (uint64_t)lbalen->len * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws() 1324 for (i = 0, lba = 0; i < CTLBLK_MAX_SEGS && len_left > 0; i++) { in ctl_be_block_cw_dispatch_ws() 1329 seglen = MIN(CTLBLK_MAX_SEG, len_left); in ctl_be_block_cw_dispatch_ws() 1346 len_left -= seglen; in ctl_be_block_cw_dispatch_ws() 1367 if (len_left > 0) { in ctl_be_block_cw_dispatch_ws() 1548 uint64_t len_left, lbas; in ctl_be_block_dispatch() local 1603 for (i = 0, len_left = beio->io_len; len_left > 0; i++) { in ctl_be_block_dispatch() 1610 beio->sg_segs[i].len = min(CTLBLK_MAX_SEG, len_left); in ctl_be_block_dispatch() 1625 len_left -= beio->sg_segs[i].len; in ctl_be_block_dispatch()
|
| D | ctl.h | 78 uint16_t len_left; member
|
| D | ctl.c | 5976 uint16_t *len_left, *len_used; in ctl_do_mode_select() local 5985 len_left = &modepage_info->header.len_left; in ctl_do_mode_select() 5993 if (*len_left == 0) { in ctl_do_mode_select() 5998 } else if (*len_left < sizeof(struct scsi_mode_page_header)) { in ctl_do_mode_select() 6006 && (*len_left < sizeof(struct scsi_mode_page_header_sp))) { in ctl_do_mode_select() 6101 if (*len_left < page_index->page_len) { in ctl_do_mode_select() 6158 *len_left -= page_index->page_len; in ctl_do_mode_select() 6178 if (*len_left > 0) in ctl_do_mode_select() 6333 modepage_info->header.len_left = param_len - header_size - bd_len; in ctl_mode_select()
|