Lines Matching refs:offset

466 	unsigned int offset;  in efx_vpd_hunk_length()  local
470 offset = 0; in efx_vpd_hunk_length()
473 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_length()
476 offset += taglen; in efx_vpd_hunk_length()
481 *lengthp = offset; in efx_vpd_hunk_length()
499 unsigned int offset; in efx_vpd_hunk_verify() local
512 offset = 0; in efx_vpd_hunk_verify()
515 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_verify()
530 if ((rc = efx_vpd_next_keyword(data + offset, in efx_vpd_hunk_verify()
536 for (i = 0; i < offset + pos + 4; i++) in efx_vpd_hunk_verify()
549 offset += taglen; in efx_vpd_hunk_verify()
598 unsigned int offset = 0; in efx_vpd_hunk_reinit() local
610 (void) memcpy(data + offset, __efx_vpd_blank_pid, in efx_vpd_hunk_reinit()
612 offset += sizeof (__efx_vpd_blank_pid); in efx_vpd_hunk_reinit()
615 (void) memcpy(data + offset, __efx_vpd_blank_r, in efx_vpd_hunk_reinit()
617 offset += sizeof (__efx_vpd_blank_r); in efx_vpd_hunk_reinit()
621 for (pos = 0; pos < offset; pos++) in efx_vpd_hunk_reinit()
623 data[offset - 1] -= cksum; in efx_vpd_hunk_reinit()
630 data[offset] = EFX_BYTE_FIELD(byte, EFX_BYTE_0); in efx_vpd_hunk_reinit()
631 offset++; in efx_vpd_hunk_reinit()
653 unsigned int offset; in efx_vpd_hunk_next() local
661 offset = index = 0; in efx_vpd_hunk_next()
664 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_next()
685 if ((rc = efx_vpd_next_keyword(data + offset, in efx_vpd_hunk_next()
690 offset += pos + 3; in efx_vpd_hunk_next()
698 offset += taglen; in efx_vpd_hunk_next()
705 *payloadp = offset; in efx_vpd_hunk_next()
731 unsigned int offset; in efx_vpd_hunk_get() local
737 offset = 0; in efx_vpd_hunk_get()
740 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_get()
751 *payloadp = offset; in efx_vpd_hunk_get()
756 if ((rc = efx_vpd_next_keyword(data + offset, in efx_vpd_hunk_get()
762 *payloadp = offset + pos + 3; in efx_vpd_hunk_get()
768 offset += taglen; in efx_vpd_hunk_get()
791 unsigned int offset; in efx_vpd_hunk_set() local
833 offset = 0; in efx_vpd_hunk_set()
836 taghead = offset; in efx_vpd_hunk_set()
837 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_set()
843 offset += taglen; in efx_vpd_hunk_set()
848 if (offset - taghead != 3) { in efx_vpd_hunk_set()
859 source = offset + taglen; in efx_vpd_hunk_set()
860 dest = offset + evvp->evv_length; in efx_vpd_hunk_set()
867 if ((rc = efx_vpd_next_keyword(data + offset, in efx_vpd_hunk_set()
874 source = offset + pos + 3 + keylen; in efx_vpd_hunk_set()
875 dest = offset + pos; in efx_vpd_hunk_set()
880 source = offset + pos + 3 + keylen; in efx_vpd_hunk_set()
881 dest = offset + pos + 3 + evvp->evv_length; in efx_vpd_hunk_set()
897 source = offset + pos; in efx_vpd_hunk_set()
898 dest = offset + pos + 3 + evvp->evv_length; in efx_vpd_hunk_set()
920 data[offset + pos + 0] = in efx_vpd_hunk_set()
922 data[offset + pos + 1] = in efx_vpd_hunk_set()
924 data[offset + pos + 2] = evvp->evv_length; in efx_vpd_hunk_set()
930 data[offset - 2] = EFX_WORD_FIELD(word, EFX_BYTE_0); in efx_vpd_hunk_set()
931 data[offset - 1] = EFX_WORD_FIELD(word, EFX_BYTE_1); in efx_vpd_hunk_set()
942 offset = 0; in efx_vpd_hunk_set()
945 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_set()
952 if ((rc = efx_vpd_next_keyword(data + offset, in efx_vpd_hunk_set()
958 for (i = 0; i < offset + pos + 3; i++) in efx_vpd_hunk_set()
966 offset += taglen; in efx_vpd_hunk_set()
970 (void) memset(data + offset + taglen, 0xff, size - offset - taglen); in efx_vpd_hunk_set()