Lines Matching defs:length

188 							   sgc->length,
199 sgc->length);
204 * remember the length we asked for. we have to keep track of
208 fc->curr_len = fc->sgc.length;
219 fc->sgc.length = 0;
272 esas2r_calc_byte_cksum((u8 *)pi, ch->length, 0);
278 u32 len = ch->length;
338 * If an upload just completed and the compare length is non-zero,
349 + ch->length /* end of the current image */
362 /* Update fc and determine the length for the next upload */
364 fc->sgc.length = FM_BUF_SZ;
366 fc->sgc.length = fc->cmp_len;
374 * have a length = zero. This can happen since some components are
375 * not required. At the end of this 'while' we set up the length
376 * for the next request and therefore sgc.length can be = 0.
378 while (fc->sgc.length == 0) {
385 if (ch->length == 0)
392 fc->sgc.length = ch->length;
405 fc->cmp_len = ch->length;
406 fc->sgc.length = FM_BUF_SZ;
422 if (ch->length == 0)
429 + fi->cmp_hdr[CH_IT_BIOS].length;
430 fc->sgc.length = ch->length;
439 fc->flsh_addr -= ch->length;
440 fc->cmp_len = ch->length;
441 fc->sgc.length = FM_BUF_SZ;
457 if (ch->length == 0)
464 + fi->cmp_hdr[CH_IT_BIOS].length
465 + fi->cmp_hdr[CH_IT_MAC].length;
466 fc->sgc.length = ch->length;
475 fc->flsh_addr -= ch->length;
476 fc->cmp_len = ch->length;
477 fc->sgc.length = FM_BUF_SZ;
494 if (ch->length == 0)
499 fc->flsh_addr = FLS_OFFSET_CPYR - ch->length;
500 fc->sgc.length = ch->length;
509 fc->flsh_addr = FLS_OFFSET_CPYR - ch->length;
510 fc->cmp_len = ch->length;
511 fc->sgc.length = FM_BUF_SZ;
544 && fc->sgc.length > fc->cmp_len)
545 fc->sgc.length = fc->cmp_len;
587 static u32 chk_cfg(u8 *cfg, u32 length, u32 *flash_ver)
591 u32 len = length;
622 /* See if we are comparing the size to the specified length */
623 if (length && sz != length)
630 static u8 chk_boot(u8 *boot_img, u32 length)
641 || ((u32)hdroffset + sizeof(struct esas2r_boot_header) > length))
671 for (len = (fi->length - fc->fi_hdr_len) / 2,
686 * 3) validate the adap_typ, action and length fields.
688 * length fields
702 /* Verify the length - length must even since we do a word checksum */
703 len = fi->length;
719 * Loop through each component and verify the img_type and length
762 if (ch->length & 0x1ff)
766 if (ch->length == 0)
770 if (chk_boot((u8 *)fi + ch->image_offset, ch->length)
779 if (ch->length == 0) {
785 if (!chk_cfg((u8 *)fi + ch->image_offset + ch->length,
786 ch->length, NULL))
802 len += ch->length;
811 /* Compare fi->length to the sum of ch->length fields */
812 if (len != fi->length - fc->fi_hdr_len) {
900 datalen = le32_to_cpu(fsc->length);
916 sgc->length = datalen;
1312 vrq->data.sge[0].length =
1433 if (ch->length)
1439 if (ch->length)
1457 fc->sgc.length = FLS_LENGTH_BOOT;
1468 fi->length = fc->fi_hdr_len;
1480 ch->length = 0;