/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_eeprom.c | 93 u8 *eeprom_buf, u16 buf_size, bool read) in __amdgpu_eeprom_xfer() argument 106 const u8 *p = eeprom_buf; in __amdgpu_eeprom_xfer() 111 buf_size -= len, eeprom_addr += len, eeprom_buf += len) { in __amdgpu_eeprom_xfer() 147 msgs[1].buf = eeprom_buf; in __amdgpu_eeprom_xfer() 168 return r < 0 ? r : eeprom_buf - p; in __amdgpu_eeprom_xfer() 182 u8 *eeprom_buf, u32 buf_size, bool read) in amdgpu_eeprom_xfer() argument 198 eeprom_buf, buf_size, read); in amdgpu_eeprom_xfer() 213 buf_size -= ps, eeprom_addr += ps, eeprom_buf += ps) { in amdgpu_eeprom_xfer() 217 eeprom_buf, ps, read); in amdgpu_eeprom_xfer() 227 u32 eeprom_addr, u8 *eeprom_buf, in amdgpu_eeprom_read() argument [all …]
|
H A D | amdgpu_eeprom.h | 30 u32 eeprom_addr, u8 *eeprom_buf, 34 u32 eeprom_addr, u8 *eeprom_buf,
|
/openbmc/u-boot/board/siemens/common/ |
H A D | factoryset.c | 29 #define fact_get_char(i) *((char *)&eeprom_buf[i]) 31 static int fact_match(unsigned char *eeprom_buf, uchar *s1, int i2) in fact_match() argument 46 static int get_factory_val(unsigned char *eeprom_buf, int size, uchar *name, in get_factory_val() argument 59 val = fact_match(eeprom_buf, (uchar *)name, i); in get_factory_val() 82 int get_factory_record_val(unsigned char *eeprom_buf, int size, uchar *record, in get_factory_record_val() argument 99 c = strncmp((char *)&eeprom_buf[i + 1], (char *)record, in get_factory_record_val() 126 tmp = eeprom_buf[endpos]; in get_factory_record_val() 127 eeprom_buf[endpos] = end; in get_factory_record_val() 128 ret = get_factory_val(&eeprom_buf[pos], in get_factory_record_val() 131 eeprom_buf[endpos] = tmp; in get_factory_record_val() [all …]
|
/openbmc/qemu/hw/i2c/ |
H A D | smbus_eeprom.c | 165 void smbus_eeprom_init_one(I2CBus *smbus, uint8_t address, uint8_t *eeprom_buf) in DEFINE_TYPES() 172 SMBUS_EEPROM(dev)->init_data = eeprom_buf; in DEFINE_TYPES() 183 uint8_t *eeprom_buf = g_malloc0(8 * SMBUS_EEPROM_SIZE); in smbus_eeprom_init() local 185 memcpy(eeprom_buf, eeprom_spd, eeprom_spd_size); in smbus_eeprom_init() 190 eeprom_buf + (i * SMBUS_EEPROM_SIZE)); in smbus_eeprom_init()
|
/openbmc/linux/drivers/parisc/ |
H A D | eisa_enumerator.c | 485 static char eeprom_buf[HPEE_MAX_LENGTH]; in eisa_enumerator() local 488 eeprom_buf[i] = gsc_readb(eeprom_addr+i); in eisa_enumerator() 493 eh = (struct eeprom_header*)(eeprom_buf); in eisa_enumerator() 498 (&eeprom_buf[HPEE_SLOT_INFO(i)]); in eisa_enumerator() 505 if (parse_slot_config(i+1, &eeprom_buf[es->config_data_offset], in eisa_enumerator()
|
/openbmc/u-boot/cmd/ |
H A D | eeprom.c | 269 static unsigned char eeprom_buf[CONFIG_SYS_EEPROM_SIZE]; variable 329 rcode = eeprom_read(i2c_addr, 0, eeprom_buf, CONFIG_SYS_EEPROM_SIZE); in eeprom_execute_command() 333 eeprom_layout_setup(&layout, eeprom_buf, CONFIG_SYS_EEPROM_SIZE, in eeprom_execute_command()
|
/openbmc/qemu/include/hw/i2c/ |
H A D | smbus_eeprom.h | 29 void smbus_eeprom_init_one(I2CBus *bus, uint8_t address, uint8_t *eeprom_buf);
|
/openbmc/qemu/hw/arm/ |
H A D | aspeed.c | 488 uint8_t *eeprom_buf = g_malloc0(32 * 1024); in palmetto_bmc_i2c_init() local 497 eeprom_buf); in palmetto_bmc_i2c_init() 543 uint8_t *eeprom_buf = g_malloc0(8 * 1024); in ast2500_evb_i2c_init() local 546 eeprom_buf); in ast2500_evb_i2c_init() 556 uint8_t *eeprom_buf = g_malloc0(8 * 1024); in ast2600_evb_i2c_init() local 559 eeprom_buf); in ast2600_evb_i2c_init() 667 uint8_t *eeprom_buf = g_malloc0(8 * 1024); in witherspoon_bmc_i2c_init() local 713 eeprom_buf); in witherspoon_bmc_i2c_init() 745 static uint8_t eeprom_buf[2 * 1024] = { in g220a_bmc_i2c_init() local 755 eeprom_buf); in g220a_bmc_i2c_init() [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp_nsp.c | 1068 struct eeprom_buf { in nfp_nsp_read_module_eeprom() struct 1078 BUILD_BUG_ON(offsetof(struct eeprom_buf, data) % 8); in nfp_nsp_read_module_eeprom() 1087 offsetof(struct eeprom_buf, data) / NSP_SFF_EEPROM_BLOCK_LEN; in nfp_nsp_read_module_eeprom()
|