Searched refs:sv_len (Results 1 – 15 of 15) sorted by relevance
239 n = min(vec->sv_len - off, uiop->uio_resid); in _nsc_rw_uio()330 h->db_bvec[0].sv_len = FBA_SIZE(len); in _nsc_alloc_dbuf()334 h->db_bvec[1].sv_len = 0; in _nsc_alloc_dbuf()494 for (; xpos >= FBA_NUM(vp->sv_len); vp++) in _nsc_dbuf_io()495 xpos -= FBA_NUM(vp->sv_len); in _nsc_dbuf_io()517 ASSERT(FBA_LEN(vp->sv_len) == FBA_NUM(vp->sv_len)); in _nsc_dbuf_io()518 ASSERT((vp->sv_len - firstentryfix) && vp->sv_addr); in _nsc_dbuf_io()520 truedo = min(vp->sv_len - firstentryfix, todo); in _nsc_dbuf_io()
290 for (; pos1 >= FBA_NUM(v1->sv_len); v1++) in _nsc_copy_h()291 pos1 -= FBA_NUM(v1->sv_len); in _nsc_copy_h()294 l1 = v1->sv_len - FBA_SIZE(pos1); in _nsc_copy_h()301 for (; pos2 >= FBA_NUM(v2->sv_len); v2++) in _nsc_copy_h()302 pos2 -= FBA_NUM(v2->sv_len); in _nsc_copy_h()305 l2 = v2->sv_len - FBA_SIZE(pos2); in _nsc_copy_h()323 a1 = (++v1)->sv_addr, l1 = v1->sv_len; in _nsc_copy_h()325 a2 = (++v2)->sv_addr, l2 = v2->sv_len; in _nsc_copy_h()
438 h->vec[0].sv_len = FBA_SIZE(len); in nsc_ncio_allocb()442 h->vec[1].sv_len = 0; in nsc_ncio_allocb()615 if (vec->sv_len == 0 || vec->sv_addr == 0) { in nsc_rncio_copy()620 thischunk = (int)min((nsc_size_t)vec->sv_len, tocopy); in nsc_rncio_copy()629 if (thischunk == vec->sv_len) in nsc_rncio_copy()
292 int sv_len; in r_net_read() local371 for (; pos >= FBA_NUM(vec->sv_len); vec++) in r_net_read()372 pos -= FBA_NUM(vec->sv_len); in r_net_read()375 sv_len = vec->sv_len - FBA_SIZE(pos); in r_net_read()387 if (sv_len >= FBA_SIZE(diskio.len)) { in r_net_read()450 int sv_len; in r_net_read6() local528 for (; pos >= FBA_NUM(vec->sv_len); vec++) in r_net_read6()529 pos -= FBA_NUM(vec->sv_len); in r_net_read6()532 sv_len = vec->sv_len - FBA_SIZE(pos); in r_net_read6()544 if (sv_len >= FBA_SIZE(diskio.len)) { in r_net_read6()[all …]
418 nsc_size_t sv_len; in rdc_net_read() local547 for (; fba_pos >= FBA_NUM(vec->sv_len); vec++) in rdc_net_read()548 fba_pos -= FBA_NUM(vec->sv_len); in rdc_net_read()551 sv_len = vec->sv_len - FBA_SIZE(fba_pos); /* bytes in vector */ in rdc_net_read()561 if (FBA_SIZE(translen) > sv_len) { in rdc_net_read()562 translen = FBA_NUM(sv_len); in rdc_net_read()662 ASSERT(sv_len <= INT32_MAX); in rdc_net_read()663 ASSERT(sv_len >= (nsc_size_t)rr.rr_bufsize); in rdc_net_read()664 sv_len -= rr.rr_bufsize; in rdc_net_read()666 if (sv_len == 0) { in rdc_net_read()[all …]
461 vec[0].sv_len = FBA_SIZE(1); in rdc_stamp_diskq()463 vec[1].sv_len = 0; in rdc_stamp_diskq()1111 vec[numvecs - 1].sv_len = 0; in rdc_diskq_enqueue()1119 vec[i].sv_len = bp->sb_vec[j].sv_len; in rdc_diskq_enqueue()1160 vec[0].sv_len = FBA_SIZE(1); in rdc_diskq_enqueue()1704 vlen = vecp->sv_len; in rdc_diskq_buf2queue()1729 vlen = vecp->sv_len; in rdc_diskq_buf2queue()1816 for (; fpos >= FBA_NUM(vecp->sv_len); vecp++) in rdc_diskq_buf2queue()1817 fpos -= FBA_NUM(vecp->sv_len); in rdc_diskq_buf2queue()1818 vlen = vecp->sv_len - FBA_SIZE(fpos); in rdc_diskq_buf2queue()
1249 vec[0].sv_len = FBA_SIZE(len); in _rdc_alloc_buf()1255 vec[1].sv_len = 0; in _rdc_alloc_buf()2639 for (; pos >= FBA_NUM(v->sv_len); v++) in _rdc_bzero()2640 pos -= FBA_NUM(v->sv_len); in _rdc_bzero()2643 l = v->sv_len - FBA_SIZE(pos); in _rdc_bzero()2664 l = v->sv_len; in _rdc_bzero()
153 vlen = vecp->sv_len; in rdc_ns_io()157 if (vecp->sv_addr == 0 || vecp->sv_len == 0) { in rdc_ns_io()181 vlen = vecp->sv_len; in rdc_ns_io()914 if (off >= v->sv_len) { in rdc_write_bitmap_pattern()919 if (v->sv_addr == 0 || v->sv_len == 0) { in rdc_write_bitmap_pattern()
172 #define buflen sv_len
68 int sv_len; /* Data length in bytes */
206 for (vp = bp->sb_vec; vp->sv_addr && vp->sv_len; vp++) { in node_fba_fill()208 NODE *enode = (NODE *)(vp->sv_addr + vp->sv_len); in node_fba_fill()
5864 vlen = vecp->sv_len; in _ii_nsc_io()5868 if (vecp->sv_addr == 0 || vecp->sv_len == 0) { in _ii_nsc_io()5894 vlen = vecp->sv_len; in _ii_nsc_io()7417 co_len = (user_bm_size > nsc_vecp->sv_len) ? in _ii_ab_co_bmp()7418 nsc_vecp->sv_len : user_bm_size; in _ii_ab_co_bmp()7484 ci_len = (user_bm_size > nsc_vecp->sv_len) ? in _ii_ab_ci_bmp()7485 nsc_vecp->sv_len : user_bm_size; in _ii_ab_ci_bmp()7665 for (; pos1 >= FBA_NUM(v1->sv_len); v1++) in _ii_nsc_or()7666 pos1 -= FBA_NUM(v1->sv_len); in _ii_nsc_or()7669 l1 = v1->sv_len - FBA_SIZE(pos1); in _ii_nsc_or()[all …]
256 int sv_len; /* Data length in bytes */ member
2002 mdb_printf("sv_len: %d\n", vec->sv_len); in nsc_vec()
2252 nbytes = min(tocopy, (nsc_size_t)v->sv_len); in _sv_lyr_strategy()