Searched refs:eeprom (Results 1 – 3 of 3) sorted by relevance
/device/soc/rockchip/common/sdk_linux/drivers/nvmem/ |
D | core.c | 34 struct bin_attribute eeprom; member 292 nvmem->eeprom = bin_attr_nvmem_eeprom_compat; in nvmem_sysfs_setup_compat() 293 nvmem->eeprom.attr.mode = nvmem_bin_attr_get_umode(nvmem); in nvmem_sysfs_setup_compat() 294 nvmem->eeprom.size = nvmem->size; in nvmem_sysfs_setup_compat() 296 nvmem->eeprom.attr.key = &eeprom_lock_key; in nvmem_sysfs_setup_compat() 298 nvmem->eeprom.private = &nvmem->dev; in nvmem_sysfs_setup_compat() 301 rval = device_create_bin_file(nvmem->base_dev, &nvmem->eeprom); in nvmem_sysfs_setup_compat() 315 device_remove_bin_file(nvmem->base_dev, &nvmem->eeprom); in nvmem_sysfs_remove_compat() 748 device_remove_bin_file(nvmem->base_dev, &nvmem->eeprom); in nvmem_device_release()
|
/device/soc/rockchip/rk3588/kernel/drivers/net/ethernet/realtek/r8168/ |
D | r8168_n.c | 5824 static int rtl_get_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom, u8 *buf) in rtl_get_eeprom() argument 5836 } else if (eeprom->len == 0 || (eeprom->offset+eeprom->len) > tp->eeprom_len) { in rtl_get_eeprom() 5861 start_w = eeprom->offset >> 2; in rtl_get_eeprom() 5862 end_w = (eeprom->offset + eeprom->len - 1) >> 2; in rtl_get_eeprom() 5890 memcpy(buf, (u8 *)eeprom_buff + (eeprom->offset & 3), eeprom->len); in rtl_get_eeprom() 24385 struct ethtool_eeprom eeprom; in ethtool_get_eeprom() local 24393 if (copy_from_user(&eeprom, useraddr, sizeof(eeprom))) in ethtool_get_eeprom() 24397 if (eeprom.offset + eeprom.len <= eeprom.offset) in ethtool_get_eeprom() 24401 if (eeprom.offset + eeprom.len > ops->get_eeprom_len(dev)) in ethtool_get_eeprom() 24404 data = kmalloc(eeprom.len, GFP_USER); in ethtool_get_eeprom() [all …]
|
/device/soc/rockchip/rk3588/kernel/arch/arm64/boot/dts/rockchip/ |
D | rk3588s-tablet.dtsi | 529 eeprom-ctrl = <&otp_eeprom>;
|