Lines Matching refs:length

168 	element->length = cpu_to_le32(rq->vda_req_sz);
193 while (sgc->length) {
203 /* if current length is more than what's left, stop there */
204 if (unlikely(len > sgc->length))
205 len = sgc->length;
208 /* limit to a round number less than the maximum length */
236 /* Calculate the length of the last SGE filled in */
257 sgc->sge.a64.last->length = cpu_to_le32(
264 * update it to contain the length of this segment
269 sgc->sge.a64.chain->length |=
297 * can update the length of this chain entry.
309 sgc->sge.a64.curr->length = cpu_to_le32(SGE_ADDR_64 | len);
313 sgc->length -= len;
328 sgc->sge.a64.last->length |= cpu_to_le32(SGE_LAST);
331 * If there was a previous chain entry, update the length to indicate
332 * the length of this last segment.
335 sgc->sge.a64.chain->length |= cpu_to_le32(
380 while (sgc->length) {
381 /* Get the next address/length pair */
388 /* If current length is more than what's left, stop there */
390 if (unlikely(len > sgc->length))
391 len = sgc->length;
394 /* Limit to a round number less than the maximum length */
410 if (len == sgc->length) {
422 /* Adjust length related fields */
424 sgc->length -= len;
435 * chain the length of this current SGL may not
463 * info that points to the new SGL. The length gets
494 /* Adjust length related fields */
497 sgc->length -= len;
528 u32 len = sgc->length;
596 sgc->length = startlba * t->block_size;
602 if (sgc->length > len)
603 sgc->length = len;
605 sgc->length = len;
608 sgc->length = len;
629 len -= sgc->length;
642 sgc->length = t->inter_byte;
644 sgc->length = len;
804 rqaux->vrq->scsi.length = 0;