Home
last modified time | relevance | path

Searched refs:iodev (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/regulator/
H A Ds5m8767.c23 struct sec_pmic_dev *iodev; member
478 return regmap_update_bits(s5m8767->iodev->regmap_pmic, in s5m8767_enable_ext_control()
488 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s5m8767_pmic_dt_parse_pdata() local
494 pmic_np = iodev->dev->of_node; in s5m8767_pmic_dt_parse_pdata()
496 dev_err(iodev->dev, "could not find pmic sub-node\n"); in s5m8767_pmic_dt_parse_pdata()
503 dev_err(iodev->dev, "could not find regulators sub-node\n"); in s5m8767_pmic_dt_parse_pdata()
530 dev_warn(iodev->dev, in s5m8767_pmic_dt_parse_pdata()
558 dev_warn(iodev->dev, in s5m8767_pmic_dt_parse_pdata()
573 dev_err(iodev->dev, "buck2 voltages not specified\n"); in s5m8767_pmic_dt_parse_pdata()
584 dev_err(iodev->dev, "buck3 voltages not specified\n"); in s5m8767_pmic_dt_parse_pdata()
[all …]
H A Dmax8998.c27 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 Dmax8997-regulator.c25 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 Dmax77693-regulator.c231 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 Dmax77802-regulator.c492 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 Ds2mpa01.c341 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 Dmax77686-regulator.c483 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()
/linux/drivers/iio/adc/
H A Dlpc32xx_adc.c150 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/clk/
H A Dclk-s2mps11.c24 struct sec_pmic_dev *iodev; member
42 return regmap_update_bits(s2mps11->iodev->regmap_pmic, in s2mps11_clk_prepare()
51 regmap_update_bits(s2mps11->iodev->regmap_pmic, s2mps11->reg, in s2mps11_clk_unprepare()
61 ret = regmap_read(s2mps11->iodev->regmap_pmic, in s2mps11_clk_is_prepared()
101 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s2mps11_clk_parse_dt() local
105 if (!iodev->dev->of_node) in s2mps11_clk_parse_dt()
108 clk_np = of_get_child_by_name(iodev->dev->of_node, "clocks"); in s2mps11_clk_parse_dt()
123 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s2mps11_clk_probe() local
172 s2mps11_clks[i].iodev = iodev; in s2mps11_clk_probe()
/linux/drivers/leds/
H A Dleds-max8997.c39 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 Dmax8998_charger.c19 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 Dmax8997_charger.c35 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 Dvgic-mmio.c950 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 Dvgic-mmio-v2.c524 struct vgic_io_device iodev; in vgic_v2_has_attr_regs() local
539 iodev.regions = vgic_v2_dist_registers; in vgic_v2_has_attr_regs()
540 iodev.nr_regions = ARRAY_SIZE(vgic_v2_dist_registers); in vgic_v2_has_attr_regs()
541 iodev.base_addr = 0; in vgic_v2_has_attr_regs()
544 iodev.regions = vgic_v2_cpu_registers; in vgic_v2_has_attr_regs()
545 iodev.nr_regions = ARRAY_SIZE(vgic_v2_cpu_registers); in vgic_v2_has_attr_regs()
546 iodev.base_addr = 0; in vgic_v2_has_attr_regs()
556 region = vgic_get_mmio_region(vcpu, &iodev, addr, sizeof(u32)); in vgic_v2_has_attr_regs()
H A Dvgic-mmio-v3.c1002 struct vgic_io_device iodev; in vgic_v3_has_attr_regs() local
1017 iodev.regions = vgic_v3_dist_registers; in vgic_v3_has_attr_regs()
1018 iodev.nr_regions = ARRAY_SIZE(vgic_v3_dist_registers); in vgic_v3_has_attr_regs()
1019 iodev.base_addr = 0; in vgic_v3_has_attr_regs()
1022 iodev.regions = vgic_v3_rd_registers; in vgic_v3_has_attr_regs()
1023 iodev.nr_regions = ARRAY_SIZE(vgic_v3_rd_registers); in vgic_v3_has_attr_regs()
1024 iodev.base_addr = 0; in vgic_v3_has_attr_regs()
1037 region = vgic_get_mmio_region(vcpu, &iodev, addr, sizeof(u32)); in vgic_v3_has_attr_regs()
H A Dvgic-its.c508 struct vgic_io_device *iodev; in __vgic_doorbell_to_its() local
517 iodev = container_of(kvm_io_dev, struct vgic_io_device, dev); in __vgic_doorbell_to_its()
518 if (iodev->iodev_type != IODEV_ITS) in __vgic_doorbell_to_its()
521 return iodev->its; in __vgic_doorbell_to_its()
1805 struct vgic_io_device *iodev = &its->iodev; in vgic_register_its_iodev() local
1815 iodev->regions = its_registers; in vgic_register_its_iodev()
1816 iodev->nr_regions = ARRAY_SIZE(its_registers); in vgic_register_its_iodev()
1817 kvm_iodevice_init(&iodev->dev, &kvm_io_gic_ops); in vgic_register_its_iodev()
1819 iodev->base_addr = its->vgic_its_base; in vgic_register_its_iodev()
1820 iodev->iodev_type = IODEV_ITS; in vgic_register_its_iodev()
[all …]
H A Dvgic.h259 vgic_get_mmio_region(struct kvm_vcpu *vcpu, struct vgic_io_device *iodev,
/linux/drivers/input/misc/
H A Dmax8997_haptic.c234 struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max8997_haptic_probe() local
236 dev_get_platdata(iodev->dev); in max8997_haptic_probe()
261 chip->client = iodev->haptic; in max8997_haptic_probe()
/linux/drivers/leds/flash/
H A Dleds-max77693.c843 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/arch/riscv/kvm/
H A Daia_imsic.c35 struct kvm_io_device iodev; member
1113 kvm_iodevice_init(&imsic->iodev, &imsic_iodoev_ops); in kvm_riscv_vcpu_aia_imsic_init()
1118 &imsic->iodev); in kvm_riscv_vcpu_aia_imsic_init()
1145 kvm_io_bus_unregister_dev(kvm, KVM_MMIO_BUS, &imsic->iodev); in kvm_riscv_vcpu_aia_imsic_cleanup()
/linux/include/kvm/
H A Darm_vgic.h203 struct vgic_io_device iodev; member
/linux/virt/kvm/
H A Dkvm_main.c13 #include <kvm/iodev.h>
6088 struct kvm_io_device *iodev = NULL; in kvm_io_bus_get_dev()
6100 iodev = bus->range[dev_idx].dev; in kvm_debugfs_open()
6105 return iodev; in kvm_debugfs_open()
6073 struct kvm_io_device *iodev = NULL; kvm_io_bus_get_dev() local
/linux/
H A DMAINTAINERS13812 F: include/kvm/iodev.h
24217 M: Ismael Luceno <ismael@iodev.co.uk>