Home
last modified time | relevance | path

Searched refs:platform_data (Results 1 – 25 of 537) sorted by relevance

12345678910>>...22

/drivers/mfd/
Dtimberdale.c61 .platform_data = &timberdale_tsc2007_platform_data,
120 .platform_data = &timberdale_max7301_platform_data
130 .platform_data = &timberdale_mc33880_platform_data
370 .platform_data = &timb_dma_platform_data,
382 .platform_data = &timberdale_xiic_platform_data,
389 .platform_data = &timberdale_gpio_platform_data,
396 .platform_data = &timberdale_video_platform_data,
403 .platform_data = &timberdale_radio_platform_data,
410 .platform_data = &timberdale_xspi_platform_data,
417 .platform_data = &timberdale_ks8842_platform_data,
[all …]
Dmax8925-core.c734 reg_devs[0].platform_data = pdata->sd1; in init_regulator()
738 reg_devs[1].platform_data = pdata->sd2; in init_regulator()
742 reg_devs[2].platform_data = pdata->sd3; in init_regulator()
746 reg_devs[3].platform_data = pdata->ldo1; in init_regulator()
750 reg_devs[4].platform_data = pdata->ldo2; in init_regulator()
754 reg_devs[5].platform_data = pdata->ldo3; in init_regulator()
758 reg_devs[6].platform_data = pdata->ldo4; in init_regulator()
762 reg_devs[7].platform_data = pdata->ldo5; in init_regulator()
766 reg_devs[8].platform_data = pdata->ldo6; in init_regulator()
770 reg_devs[9].platform_data = pdata->ldo7; in init_regulator()
[all …]
D88pm860x-core.c758 bk_devs[i].platform_data = &pdata->backlight[i]; in device_bk_init()
778 led_devs[i].platform_data = &pdata->led[i]; in device_led_init()
799 reg_devs[0].platform_data = pdata->buck1; in device_regulator_init()
803 reg_devs[1].platform_data = pdata->buck2; in device_regulator_init()
807 reg_devs[2].platform_data = pdata->buck3; in device_regulator_init()
811 reg_devs[3].platform_data = pdata->ldo1; in device_regulator_init()
815 reg_devs[4].platform_data = pdata->ldo2; in device_regulator_init()
819 reg_devs[5].platform_data = pdata->ldo3; in device_regulator_init()
823 reg_devs[6].platform_data = pdata->ldo4; in device_regulator_init()
827 reg_devs[7].platform_data = pdata->ldo5; in device_regulator_init()
[all …]
Das3711.c172 as3711_subdevs[AS3711_REGULATOR].platform_data = in as3711_i2c_probe()
176 as3711_subdevs[AS3711_BACKLIGHT].platform_data = in as3711_i2c_probe()
181 as3711_subdevs[AS3711_REGULATOR].platform_data = NULL; in as3711_i2c_probe()
183 as3711_subdevs[AS3711_BACKLIGHT].platform_data = NULL; in as3711_i2c_probe()
/drivers/mmc/host/
Dof_mmc_spi.c36 return container_of(dev->platform_data, struct of_mmc_spi, pdata); in to_of_mmc_spi()
61 if (dev->platform_data || !np) in mmc_spi_get_pdata()
62 return dev->platform_data; in mmc_spi_get_pdata()
79 dev->platform_data = &oms->pdata; in mmc_spi_get_pdata()
80 return dev->platform_data; in mmc_spi_get_pdata()
93 if (!dev->platform_data || !np) in mmc_spi_put_pdata()
97 dev->platform_data = NULL; in mmc_spi_put_pdata()
/drivers/media/i2c/
Dadp1653.c218 flash->platform_data->max_flash_timeout, in adp1653_init_controls()
220 flash->platform_data->max_flash_timeout); in adp1653_init_controls()
225 flash->platform_data->max_flash_intensity, in adp1653_init_controls()
226 1, flash->platform_data->max_flash_intensity); in adp1653_init_controls()
231 flash->platform_data->max_torch_intensity, in adp1653_init_controls()
233 flash->platform_data->max_torch_intensity); in adp1653_init_controls()
238 flash->platform_data->max_indicator_intensity, in adp1653_init_controls()
300 if (flash->platform_data->power) { in __adp1653_set_power()
301 ret = flash->platform_data->power(&flash->subdev, on); in __adp1653_set_power()
305 gpiod_set_value(flash->platform_data->enable_gpio, on); in __adp1653_set_power()
[all …]
/drivers/parisc/
Diommu.h13 if (likely(dev->platform_data)) in parisc_walk_tree()
14 return dev->platform_data; in parisc_walk_tree()
20 if (otherdev->platform_data) { in parisc_walk_tree()
21 dev->platform_data = otherdev->platform_data; in parisc_walk_tree()
26 return dev->platform_data; in parisc_walk_tree()
/drivers/base/
Disa.c30 if (dev->platform_data == isa_driver) { in isa_bus_match()
34 dev->platform_data = NULL; in isa_bus_match()
41 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_probe()
51 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_remove()
61 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_shutdown()
69 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_suspend()
79 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_resume()
141 isa_dev->dev.platform_data = isa_driver; in isa_register_driver()
154 if (isa_dev->dev.platform_data) { in isa_register_driver()
/drivers/of/
Dplatform.c169 void *platform_data, in of_platform_device_create_pdata() argument
186 dev->dev.platform_data = platform_data; in of_platform_device_create_pdata()
221 void *platform_data, in of_amba_device_create() argument
246 dev->dev.platform_data = platform_data; in of_amba_device_create()
286 void *platform_data, in of_amba_device_create() argument
355 void *platform_data = NULL; in of_platform_bus_create() local
380 platform_data = auxdata->platform_data; in of_platform_bus_create()
388 of_amba_device_create(bus, bus_id, platform_data, parent); in of_platform_bus_create()
392 dev = of_platform_device_create_pdata(bus, bus_id, platform_data, parent); in of_platform_bus_create()
/drivers/staging/media/atomisp/i2c/
Datomisp-gc0310.c742 if (!dev || !dev->platform_data) in power_ctrl()
755 ret |= dev->platform_data->v1p8_ctrl(sd, 1); in power_ctrl()
756 ret |= dev->platform_data->v2p8_ctrl(sd, 1); in power_ctrl()
761 ret |= dev->platform_data->v1p8_ctrl(sd, 0); in power_ctrl()
762 ret |= dev->platform_data->v2p8_ctrl(sd, 0); in power_ctrl()
772 if (!dev || !dev->platform_data) in gpio_ctrl()
778 ret = dev->platform_data->gpio0_ctrl(sd, 0); in gpio_ctrl()
780 ret |= dev->platform_data->gpio0_ctrl(sd, 1); in gpio_ctrl()
782 ret |= dev->platform_data->gpio1_ctrl(sd, 0); in gpio_ctrl()
785 ret = dev->platform_data->gpio1_ctrl(sd, 1); in gpio_ctrl()
[all …]
Datomisp-gc2235.c554 if (!dev || !dev->platform_data) in power_ctrl()
558 ret = dev->platform_data->v1p8_ctrl(sd, 1); in power_ctrl()
561 ret |= dev->platform_data->v2p8_ctrl(sd, 1); in power_ctrl()
563 ret = dev->platform_data->v1p8_ctrl(sd, 0); in power_ctrl()
564 ret |= dev->platform_data->v2p8_ctrl(sd, 0); in power_ctrl()
574 if (!dev || !dev->platform_data) in gpio_ctrl()
577 ret |= dev->platform_data->gpio1_ctrl(sd, !flag); in gpio_ctrl()
579 return dev->platform_data->gpio0_ctrl(sd, flag); in gpio_ctrl()
588 if (!dev->platform_data) { in power_up()
601 ret = dev->platform_data->flisclk_ctrl(sd, 1); in power_up()
[all …]
Datomisp-ov2722.c655 if (!dev || !dev->platform_data) in power_ctrl()
659 ret = dev->platform_data->v1p8_ctrl(sd, 1); in power_ctrl()
661 ret = dev->platform_data->v2p8_ctrl(sd, 1); in power_ctrl()
663 dev->platform_data->v1p8_ctrl(sd, 0); in power_ctrl()
666 ret = dev->platform_data->v1p8_ctrl(sd, 0); in power_ctrl()
667 ret |= dev->platform_data->v2p8_ctrl(sd, 0); in power_ctrl()
678 if (!dev || !dev->platform_data) in gpio_ctrl()
684 ret = dev->platform_data->gpio0_ctrl(sd, flag); in gpio_ctrl()
688 ret |= dev->platform_data->gpio1_ctrl(sd, !flag); in gpio_ctrl()
698 if (!dev->platform_data) { in power_up()
[all …]
Datomisp-ov2680.c704 if (!dev || !dev->platform_data) in power_ctrl()
710 ret |= dev->platform_data->v1p8_ctrl(sd, 1); in power_ctrl()
711 ret |= dev->platform_data->v2p8_ctrl(sd, 1); in power_ctrl()
716 ret |= dev->platform_data->v1p8_ctrl(sd, 0); in power_ctrl()
717 ret |= dev->platform_data->v2p8_ctrl(sd, 0); in power_ctrl()
727 if (!dev || !dev->platform_data) in gpio_ctrl()
736 ret = dev->platform_data->gpio0_ctrl(sd, 1); in gpio_ctrl()
739 dev->platform_data->gpio1_ctrl(sd, 1); in gpio_ctrl()
742 dev->platform_data->gpio1_ctrl(sd, 0); in gpio_ctrl()
743 ret = dev->platform_data->gpio0_ctrl(sd, 0); in gpio_ctrl()
[all …]
Datomisp-lm3554.c806 static struct lm3554_platform_data platform_data; in lm3554_platform_data_func() local
808 platform_data.gpio_reset = gpiod_get_index(&client->dev, in lm3554_platform_data_func()
810 if (IS_ERR(platform_data.gpio_reset)) in lm3554_platform_data_func()
811 return ERR_CAST(platform_data.gpio_reset); in lm3554_platform_data_func()
812 platform_data.gpio_strobe = gpiod_get_index(&client->dev, in lm3554_platform_data_func()
814 if (IS_ERR(platform_data.gpio_strobe)) in lm3554_platform_data_func()
815 return ERR_CAST(platform_data.gpio_strobe); in lm3554_platform_data_func()
816 platform_data.gpio_torch = gpiod_get_index(&client->dev, in lm3554_platform_data_func()
818 if (IS_ERR(platform_data.gpio_torch)) in lm3554_platform_data_func()
819 return ERR_CAST(platform_data.gpio_torch); in lm3554_platform_data_func()
[all …]
Datomisp-mt9m114.c453 if (!dev || !dev->platform_data) in power_ctrl()
457 ret = dev->platform_data->v2p8_ctrl(sd, 1); in power_ctrl()
459 ret = dev->platform_data->v1p8_ctrl(sd, 1); in power_ctrl()
461 ret = dev->platform_data->v2p8_ctrl(sd, 0); in power_ctrl()
464 ret = dev->platform_data->v2p8_ctrl(sd, 0); in power_ctrl()
465 ret = dev->platform_data->v1p8_ctrl(sd, 0); in power_ctrl()
475 if (!dev || !dev->platform_data) in gpio_ctrl()
484 ret = dev->platform_data->gpio0_ctrl(sd, 0); in gpio_ctrl()
485 ret = dev->platform_data->gpio1_ctrl(sd, 0); in gpio_ctrl()
487 ret |= dev->platform_data->gpio0_ctrl(sd, 1); in gpio_ctrl()
[all …]
/drivers/scsi/aic7xxx/
Daic7xxx_osm.c256 ahc->platform_data->host->host_no, in ahc_print_path()
481 scb->platform_data->xfer_len += len; in ahc_linux_map_seg()
531 if (ahc->platform_data->qfrozen == 0) { in ahc_linux_queue_lck()
554 return &ahc->platform_data->starget[target_offset]; in DEF_SCSI_QCMD()
1084 ahc->platform_data->host = host; in ahc_linux_register_host()
1089 host->irq = ahc->platform_data->irq; in ahc_linux_register_host()
1196 ahc->platform_data = in ahc_platform_alloc()
1198 if (ahc->platform_data == NULL) in ahc_platform_alloc()
1200 ahc->platform_data->irq = AHC_LINUX_NOIRQ; in ahc_platform_alloc()
1216 if (ahc->platform_data != NULL) { in ahc_platform_free()
[all …]
Daic7770_osm.c72 ahc->platform_data->irq = irq; in aic7770_map_int()
115 if (ahc->platform_data && ahc->platform_data->host) in aic7770_remove()
116 scsi_remove_host(ahc->platform_data->host); in aic7770_remove()
Daic79xx_osm.c227 ahd->platform_data->host->host_no, in ahd_print_path()
604 return &ahd->platform_data->starget[target_offset]; in DEF_SCSI_QCMD()
821 reset_scb->platform_data->dev = dev; in ahd_linux_dev_reset()
825 reset_scb->platform_data->xfer_len = 0; in ahd_linux_dev_reset()
846 ahd->platform_data->eh_done = &done; in ahd_linux_dev_reset()
852 ahd->platform_data->eh_done = NULL; in ahd_linux_dev_reset()
1223 ahd->platform_data->host = host; in ahd_linux_register_host()
1228 host->irq = ahd->platform_data->irq; in ahd_linux_register_host()
1312 ahd->platform_data = in ahd_platform_alloc()
1314 if (ahd->platform_data == NULL) in ahd_platform_alloc()
[all …]
Daic7xxx_osm.h387 spin_lock_init(&ahc->platform_data->spin_lock); in ahc_lockinit()
393 spin_lock_irqsave(&ahc->platform_data->spin_lock, *flags); in ahc_lock()
399 spin_unlock_irqrestore(&ahc->platform_data->spin_lock, *flags); in ahc_unlock()
604 return (scb->platform_data->xfer_len); in ahc_get_transfer_length()
622 scb->platform_data->sense_resid = resid; in ahc_set_sense_residual()
634 return (scb->platform_data->sense_resid); in ahc_get_sense_residual()
675 scb->platform_data->dev->qfrozen++; in ahc_freeze_scb()
Daic79xx_osm.h374 spin_lock_init(&ahd->platform_data->spin_lock); in ahd_lockinit()
380 spin_lock_irqsave(&ahd->platform_data->spin_lock, *flags); in ahd_lock()
386 spin_unlock_irqrestore(&ahd->platform_data->spin_lock, *flags); in ahd_unlock()
586 return (scb->platform_data->xfer_len); in ahd_get_transfer_length()
604 scb->platform_data->sense_resid = resid; in ahd_set_sense_residual()
616 return (scb->platform_data->sense_resid); in ahd_get_sense_residual()
659 scb->platform_data->dev->qfrozen++; in ahd_freeze_scb()
Daic79xx_osm_pci.c129 if (ahd->platform_data && ahd->platform_data->host) in ahd_linux_pci_dev_remove()
130 scsi_remove_host(ahd->platform_data->host); in ahd_linux_pci_dev_remove()
325 ahd->platform_data->mem_busaddr = base; in ahd_pci_map_registers()
341 release_mem_region(ahd->platform_data->mem_busaddr, in ahd_pci_map_registers()
388 ahd->platform_data->irq = ahd->dev_softc->irq; in ahd_pci_map_int()
/drivers/input/touchscreen/
Dmcs5000_ts.c102 const struct mcs_platform_data *platform_data; member
160 const struct mcs_platform_data *platform_data) in mcs5000_ts_phys_init() argument
170 platform_data->x_size >> 8); in mcs5000_ts_phys_init()
172 platform_data->x_size & 0xff); in mcs5000_ts_phys_init()
174 platform_data->y_size >> 8); in mcs5000_ts_phys_init()
176 platform_data->y_size & 0xff); in mcs5000_ts_phys_init()
/drivers/input/mouse/
Dpsmouse-smbus.c70 kfree(client->dev.platform_data); in psmouse_smbus_detach_i2c_client()
71 client->dev.platform_data = NULL; in psmouse_smbus_detach_i2c_client()
246 smbdev->board.platform_data = kmemdup(pdata, pdata_size, in psmouse_smbus_init()
248 if (!smbdev->board.platform_data) { in psmouse_smbus_init()
280 kfree(smbdev->board.platform_data); in psmouse_smbus_init()
281 smbdev->board.platform_data = NULL; in psmouse_smbus_init()
/drivers/hwmon/
Dcoretemp.c88 struct platform_data { struct
107 struct platform_data *pdata = dev_get_drvdata(dev); in show_label() argument
121 struct platform_data *pdata = dev_get_drvdata(dev); in show_crit_alarm()
135 struct platform_data *pdata = dev_get_drvdata(dev); in show_tjmax()
144 struct platform_data *pdata = dev_get_drvdata(dev); in show_ttarget()
154 struct platform_data *pdata = dev_get_drvdata(dev); in show_temp()
463 struct platform_data *pdata = platform_get_drvdata(pdev); in create_core_data()
537 static void coretemp_remove_core(struct platform_data *pdata, int indx) in coretemp_remove_core()
558 struct platform_data *pdata; in coretemp_device_add()
593 struct platform_data *pdata = platform_get_drvdata(pdev); in coretemp_device_remove()
[all …]
/drivers/iio/dac/
Dmax517.c149 struct max517_platform_data *platform_data = client->dev.platform_data; in max517_probe() local
183 if (id->driver_data == ID_MAX518 || !platform_data) in max517_probe()
186 data->vref_mv[chan] = platform_data->vref_mv[chan]; in max517_probe()

12345678910>>...22