/linux/drivers/iio/adc/ |
H A D | lpc32xx_adc.c | 150 struct iio_dev *iodev = NULL; in lpc32xx_adc_probe() local 159 iodev = devm_iio_device_alloc(&pdev->dev, sizeof(*st)); in lpc32xx_adc_probe() 160 if (!iodev) in lpc32xx_adc_probe() 163 st = iio_priv(iodev); in lpc32xx_adc_probe() 191 iodev->channels = lpc32xx_adc_iio_channels; in lpc32xx_adc_probe() 195 iodev->channels = lpc32xx_adc_iio_scale_channels; in lpc32xx_adc_probe() 198 platform_set_drvdata(pdev, iodev); in lpc32xx_adc_probe() 202 iodev->name = LPC32XXAD_NAME; in lpc32xx_adc_probe() 203 iodev->info = &lpc32xx_adc_iio_info; in lpc32xx_adc_probe() 204 iodev->modes = INDIO_DIRECT_MODE; in lpc32xx_adc_probe() [all …]
|
/linux/drivers/regulator/ |
H A D | s5m8767.c | 23 struct sec_pmic_dev *iodev; member 478 return regmap_update_bits(s5m8767->iodev->regmap_pmic, in s5m8767_enable_ext_control() 485 static int s5m8767_pmic_dt_parse_dvs_gpio(struct sec_pmic_dev *iodev, in s5m8767_pmic_dt_parse_dvs_gpio() argument 495 dev_err(iodev->dev, "invalid gpio[%d]: %d\n", i, gpio); in s5m8767_pmic_dt_parse_dvs_gpio() 503 static int s5m8767_pmic_dt_parse_ds_gpio(struct sec_pmic_dev *iodev, in s5m8767_pmic_dt_parse_ds_gpio() argument 513 dev_err(iodev->dev, "invalid gpio[%d]: %d\n", i, gpio); in s5m8767_pmic_dt_parse_ds_gpio() 524 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s5m8767_pmic_dt_parse_pdata() local 530 pmic_np = iodev->dev->of_node; in s5m8767_pmic_dt_parse_pdata() 532 dev_err(iodev->dev, "could not find pmic sub-node\n"); in s5m8767_pmic_dt_parse_pdata() 539 dev_err(iodev->dev, "could not find regulators sub-node\n"); in s5m8767_pmic_dt_parse_pdata() [all …]
|
H A D | max8998.c | 27 struct max8998_dev *iodev; member 87 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_is_enabled() 110 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_enable() 123 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_disable() 199 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_get_voltage_sel() 221 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_set_voltage_ldo_sel() 248 struct max8998_platform_data *pdata = max8998->iodev->pdata; in max8998_set_voltage_buck_sel() 249 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_set_voltage_buck_sel() 350 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_set_voltage_buck_time_sel() 365 if (max8998->iodev->type == TYPE_MAX8998 && !(val & MAX8998_ENRAMP)) in max8998_set_voltage_buck_time_sel() [all …]
|
H A D | max8997-regulator.c | 25 struct max8997_dev *iodev; member 245 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_reg_is_enabled() 263 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_reg_enable() 276 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_reg_disable() 355 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_get_voltage_sel() 400 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_set_voltage_charger_cv() 452 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_set_voltage_ldobuck() 694 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_set_voltage_safeout_sel() 711 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_reg_disable_suspend() 879 struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max8997_pmic_dt_parse_pdata() local [all …]
|
H A D | max77693-regulator.c | 231 struct max77693_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max77693_pmic_probe() local 237 config.dev = iodev->dev; in max77693_pmic_probe() 258 config.regmap = max77693_get_regmap(type, iodev, in max77693_pmic_probe()
|
H A D | max77802-regulator.c | 492 struct max77686_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max77802_pmic_probe() local 503 config.dev = iodev->dev; in max77802_pmic_probe() 504 config.regmap = iodev->regmap; in max77802_pmic_probe() 514 ret = regmap_read(iodev->regmap, regulators[i].enable_reg, &val); in max77802_pmic_probe()
|
H A D | s2mpa01.c | 341 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s2mpa01_pmic_probe() local 350 config.dev = iodev->dev; in s2mpa01_pmic_probe() 351 config.regmap = iodev->regmap_pmic; in s2mpa01_pmic_probe()
|
H A D | max77686-regulator.c | 483 struct max77686_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max77686_pmic_probe() local 496 config.dev = iodev->dev; in max77686_pmic_probe() 497 config.regmap = iodev->regmap; in max77686_pmic_probe()
|
H A D | s2mps11.c | 1123 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s2mps11_pmic_probe() local 1188 config.regmap = iodev->regmap_pmic; in s2mps11_pmic_probe()
|
/linux/drivers/clk/ |
H A D | clk-s2mps11.c | 23 struct sec_pmic_dev *iodev; member 41 return regmap_update_bits(s2mps11->iodev->regmap_pmic, in s2mps11_clk_prepare() 50 regmap_update_bits(s2mps11->iodev->regmap_pmic, s2mps11->reg, in s2mps11_clk_unprepare() 60 ret = regmap_read(s2mps11->iodev->regmap_pmic, in s2mps11_clk_is_prepared() 100 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s2mps11_clk_parse_dt() local 104 if (!iodev->dev->of_node) in s2mps11_clk_parse_dt() 107 clk_np = of_get_child_by_name(iodev->dev->of_node, "clocks"); in s2mps11_clk_parse_dt() 122 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s2mps11_clk_probe() local 166 s2mps11_clks[i].iodev = iodev; in s2mps11_clk_probe()
|
/linux/drivers/leds/ |
H A D | leds-max8997.c | 39 struct max8997_dev *iodev; member 51 struct i2c_client *client = led->iodev->i2c; in max8997_led_set_mode() 90 dev_err(led->iodev->dev, in max8997_led_set_mode() 100 struct i2c_client *client = led->iodev->i2c; in max8997_led_enable() 110 dev_err(led->iodev->dev, in max8997_led_enable() 120 struct i2c_client *client = led->iodev->i2c; in max8997_led_set_current() 143 dev_err(led->iodev->dev, in max8997_led_set_current() 235 struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max8997_led_probe() local 236 struct max8997_platform_data *pdata = dev_get_platdata(iodev->dev); in max8997_led_probe() 253 led->iodev = iodev; in max8997_led_probe()
|
/linux/drivers/power/supply/ |
H A D | max8998_charger.c | 19 struct max8998_dev *iodev; member 35 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_battery_get_property() 93 struct max8998_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max8998_battery_probe() local 94 struct max8998_platform_data *pdata = iodev->pdata; in max8998_battery_probe() 111 max8998->iodev = iodev; in max8998_battery_probe() 113 i2c = max8998->iodev->i2c; in max8998_battery_probe()
|
H A D | max8997_charger.c | 35 struct max8997_dev *iodev; member 55 struct i2c_client *i2c = charger->iodev->i2c; in max8997_battery_get_property() 164 struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max8997_battery_probe() local 166 struct i2c_client *i2c = iodev->i2c; in max8997_battery_probe() 167 struct max8997_platform_data *pdata = iodev->pdata; in max8997_battery_probe() 223 charger->iodev = iodev; in max8997_battery_probe() 236 pdev->dev.of_node = iodev->dev->of_node; in max8997_battery_probe()
|
/linux/arch/arm64/kvm/vgic/ |
H A D | vgic-mmio.c | 950 vgic_get_mmio_region(struct kvm_vcpu *vcpu, struct vgic_io_device *iodev, in vgic_get_mmio_region() argument 955 region = vgic_find_mmio_region(iodev->regions, iodev->nr_regions, in vgic_get_mmio_region() 956 addr - iodev->base_addr); in vgic_get_mmio_region() 963 static int vgic_uaccess_read(struct kvm_vcpu *vcpu, struct vgic_io_device *iodev, in vgic_uaccess_read() argument 969 region = vgic_get_mmio_region(vcpu, iodev, addr, sizeof(u32)); in vgic_uaccess_read() 975 r_vcpu = iodev->redist_vcpu ? iodev->redist_vcpu : vcpu; in vgic_uaccess_read() 984 static int vgic_uaccess_write(struct kvm_vcpu *vcpu, struct vgic_io_device *iodev, in vgic_uaccess_write() argument 990 region = vgic_get_mmio_region(vcpu, iodev, addr, sizeof(u32)); in vgic_uaccess_write() 994 r_vcpu = iodev->redist_vcpu ? iodev->redist_vcpu : vcpu; in vgic_uaccess_write() 1017 struct vgic_io_device *iodev = kvm_to_vgic_iodev(dev); in dispatch_mmio_read() local [all …]
|
H A D | vgic-mmio-v2.c | 500 struct vgic_io_device iodev; in vgic_v2_has_attr_regs() local 515 iodev.regions = vgic_v2_dist_registers; in vgic_v2_has_attr_regs() 516 iodev.nr_regions = ARRAY_SIZE(vgic_v2_dist_registers); in vgic_v2_has_attr_regs() 517 iodev.base_addr = 0; in vgic_v2_has_attr_regs() 520 iodev.regions = vgic_v2_cpu_registers; in vgic_v2_has_attr_regs() 521 iodev.nr_regions = ARRAY_SIZE(vgic_v2_cpu_registers); in vgic_v2_has_attr_regs() 522 iodev.base_addr = 0; in vgic_v2_has_attr_regs() 532 region = vgic_get_mmio_region(vcpu, &iodev, addr, sizeof(u32)); in vgic_v2_has_attr_regs()
|
H A D | vgic-mmio-v3.c | 970 struct vgic_io_device iodev; in vgic_v3_has_attr_regs() local 985 iodev.regions = vgic_v3_dist_registers; in vgic_v3_has_attr_regs() 986 iodev.nr_regions = ARRAY_SIZE(vgic_v3_dist_registers); in vgic_v3_has_attr_regs() 987 iodev.base_addr = 0; in vgic_v3_has_attr_regs() 990 iodev.regions = vgic_v3_rd_registers; in vgic_v3_has_attr_regs() 991 iodev.nr_regions = ARRAY_SIZE(vgic_v3_rd_registers); in vgic_v3_has_attr_regs() 992 iodev.base_addr = 0; in vgic_v3_has_attr_regs() 1005 region = vgic_get_mmio_region(vcpu, &iodev, addr, sizeof(u32)); in vgic_v3_has_attr_regs()
|
H A D | vgic-its.c | 511 struct vgic_io_device *iodev; in __vgic_doorbell_to_its() local 520 iodev = container_of(kvm_io_dev, struct vgic_io_device, dev); in __vgic_doorbell_to_its() 521 if (iodev->iodev_type != IODEV_ITS) in __vgic_doorbell_to_its() 524 return iodev->its; in __vgic_doorbell_to_its() 1788 struct vgic_io_device *iodev = &its->iodev; in vgic_register_its_iodev() local 1798 iodev->regions = its_registers; in vgic_register_its_iodev() 1799 iodev->nr_regions = ARRAY_SIZE(its_registers); in vgic_register_its_iodev() 1800 kvm_iodevice_init(&iodev->dev, &kvm_io_gic_ops); in vgic_register_its_iodev() 1802 iodev->base_addr = its->vgic_its_base; in vgic_register_its_iodev() 1803 iodev->iodev_type = IODEV_ITS; in vgic_register_its_iodev() [all …]
|
H A D | vgic.h | 180 vgic_get_mmio_region(struct kvm_vcpu *vcpu, struct vgic_io_device *iodev,
|
/linux/drivers/input/misc/ |
H A D | max8997_haptic.c | 236 struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max8997_haptic_probe() local 238 dev_get_platdata(iodev->dev); in max8997_haptic_probe() 263 chip->client = iodev->haptic; in max8997_haptic_probe()
|
/linux/arch/riscv/kvm/ |
H A D | aia_aplic.c | 30 struct kvm_io_device iodev; member 600 kvm_iodevice_init(&aplic->iodev, &aplic_iodoev_ops); in kvm_riscv_aia_aplic_init() 605 &aplic->iodev); in kvm_riscv_aia_aplic_init() 619 kvm_io_bus_unregister_dev(kvm, KVM_MMIO_BUS, &aplic->iodev); in kvm_riscv_aia_aplic_init() 637 kvm_io_bus_unregister_dev(kvm, KVM_MMIO_BUS, &aplic->iodev); in kvm_riscv_aia_aplic_cleanup()
|
/linux/drivers/leds/flash/ |
H A D | leds-max77693.c | 843 struct max77693_dev *iodev = dev_get_drvdata(dev->parent); in max77693_init_v4l2_flash_config() local 844 struct i2c_client *i2c = iodev->i2c; in max77693_init_v4l2_flash_config() 943 struct max77693_dev *iodev = dev_get_drvdata(dev->parent); in max77693_led_probe() local 955 led->regmap = iodev->regmap; in max77693_led_probe()
|
/linux/include/kvm/ |
H A D | arm_vgic.h | 193 struct vgic_io_device iodev; member
|
/linux/virt/kvm/ |
H A D | kvm_main.c | 6049 struct kvm_io_device *iodev = NULL; in kvm_io_bus_get_dev() local 6061 iodev = bus->range[dev_idx].dev; in kvm_io_bus_get_dev() 6066 return iodev; in kvm_io_bus_get_dev()
|