Lines Matching refs:off
396 spd_parse_rev(spd_info_t *si, uint32_t off, uint32_t len, const char *key) in spd_parse_rev() argument
398 const uint8_t data = si->si_data[off]; in spd_parse_rev()
407 spd_parse_jedec_id(spd_info_t *si, uint32_t off, uint32_t len, const char *key) in spd_parse_jedec_id() argument
412 id[0] = SPD_MFG_ID0_CONT(si->si_data[off]); in spd_parse_jedec_id()
413 id[1] = si->si_data[off + 1]; in spd_parse_jedec_id()
419 spd_parse_jedec_id_str(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_jedec_id_str() argument
422 uint8_t cont = SPD_MFG_ID0_CONT(si->si_data[off]); in spd_parse_jedec_id_str()
426 str = libjedec_vendor_string(cont, si->si_data[off + 1]); in spd_parse_jedec_id_str()
432 si->si_data[off + 1]); in spd_parse_jedec_id_str()
443 spd_parse_string(spd_info_t *si, uint32_t off, uint32_t len, const char *key) in spd_parse_string() argument
450 if (si->si_data[off + i] == ' ') { in spd_parse_string()
455 if (isascii(si->si_data[off + i]) == 0 || in spd_parse_string()
456 isprint(si->si_data[off + i]) == 0) { in spd_parse_string()
459 "printable", i, key, off + 1, in spd_parse_string()
460 si->si_data[off + i]); in spd_parse_string()
471 (void) memcpy(buf, &si->si_data[off], nbytes); in spd_parse_string()
484 spd_parse_hex_string(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_hex_string() argument
494 "%02X", si->si_data[off + i]); in spd_parse_hex_string()
515 spd_parse_hex_vers(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_hex_vers() argument
518 const uint8_t data = si->si_data[off]; in spd_parse_hex_vers()
537 spd_parse_raw_u8(spd_info_t *si, uint32_t off, uint32_t len, const char *key) in spd_parse_raw_u8() argument
540 spd_nvl_insert_u32(si, key, si->si_data[off]); in spd_parse_raw_u8()
544 spd_parse_u8_array(spd_info_t *si, uint32_t off, uint32_t len, const char *key) in spd_parse_u8_array() argument
546 uint8_t *data = (uint8_t *)si->si_data + off; in spd_parse_u8_array()
552 spd_parse_dram_step(spd_info_t *si, uint32_t off, uint32_t len, const char *key) in spd_parse_dram_step() argument
556 if (si->si_data[off] == SPD_DRAM_STEP_NOINFO) in spd_parse_dram_step()
559 spd_parse_hex_string(si, off, len, key); in spd_parse_dram_step()
574 spd_parse_height(spd_info_t *si, uint32_t off, uint32_t len, const char *key) in spd_parse_height() argument
576 const uint8_t data = si->si_data[off]; in spd_parse_height()
582 spd_parse_thickness(spd_info_t *si, uint32_t off, uint32_t len, const char *key) in spd_parse_thickness() argument
584 const uint8_t data = si->si_data[off]; in spd_parse_thickness()
634 spd_parse_mtb_ftb_time_pair(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_mtb_ftb_time_pair() argument
637 const uint8_t mtb = si->si_data[off]; in spd_parse_mtb_ftb_time_pair()
638 const uint8_t ftb = si->si_data[off + len - 1]; in spd_parse_mtb_ftb_time_pair()
648 spd_parse_mtb_pair(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_mtb_pair() argument
652 return (spd_parse_ddr_time(si, key, si->si_data[off + 1], in spd_parse_mtb_pair()
653 si->si_data[off], 0)); in spd_parse_mtb_pair()
768 spd_parse_crc_expect(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_crc_expect() argument
774 crc = crc ^ (uint32_t)si->si_data[off + i] << 8; in spd_parse_crc_expect()
798 spd_parse_crc(spd_info_t *si, uint32_t off, uint32_t len, const char *key) in spd_parse_crc() argument
800 const uint16_t expect = si->si_data[off + len - 2] | in spd_parse_crc()
801 (si->si_data[off + len - 1] << 8); in spd_parse_crc()
803 spd_parse_crc_expect(si, off, len - 2, expect, key); in spd_parse_crc()