Home
last modified time | relevance | path

Searched refs:hpdev (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/drivers/platform/x86/
H A Dmlx-platform.c650 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
656 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
666 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
672 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
681 .hpdev.brdinfo = &mlxplat_mlxcpld_pwr[0],
682 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR,
688 .hpdev.brdinfo = &mlxplat_mlxcpld_pwr[1],
689 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR,
698 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
704 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
[all …]
/openbmc/linux/drivers/pci/controller/
H A Dpci-hyperv.c970 static void get_pcichild(struct hv_pci_dev *hpdev) in get_pcichild() argument
972 refcount_inc(&hpdev->refs); in get_pcichild()
975 static void put_pcichild(struct hv_pci_dev *hpdev) in put_pcichild() argument
977 if (refcount_dec_and_test(&hpdev->refs)) in put_pcichild()
978 kfree(hpdev); in put_pcichild()
1115 static void _hv_pcifront_read_config(struct hv_pci_dev *hpdev, int where, in _hv_pcifront_read_config() argument
1118 struct hv_pcibus_device *hbus = hpdev->hbus; in _hv_pcifront_read_config()
1127 memcpy(val, ((u8 *)&hpdev->desc.v_id) + where, size); in _hv_pcifront_read_config()
1130 memcpy(val, ((u8 *)&hpdev->desc.rev) + where - in _hv_pcifront_read_config()
1134 memcpy(val, (u8 *)&hpdev->desc.subsystem_id + where - in _hv_pcifront_read_config()
[all …]
/openbmc/linux/drivers/platform/mellanox/
H A Dmlxreg-lc.c510 struct device *dev = &data->hpdev.client->dev; in mlxreg_lc_sn4800_c16_config_init()
717 struct device *dev = &data->hpdev.client->dev; in mlxreg_lc_config_init()
732 data->hpdev.brdinfo->type, data->hpdev.nr, in mlxreg_lc_config_init()
733 data->hpdev.brdinfo->addr); in mlxreg_lc_config_init()
745 mlxreg_lc->mux = platform_device_register_resndata(dev, "i2c-mux-mlxcpld", data->hpdev.nr, in mlxreg_lc_config_init()
750 data->hpdev.brdinfo->type, data->hpdev.nr, data->hpdev.brdinfo->addr); in mlxreg_lc_config_init()
758 platform_device_register_resndata(dev, "mlxreg-io", data->hpdev.nr, NULL, 0, in mlxreg_lc_config_init()
762 data->hpdev.brdinfo->type, data->hpdev.nr, in mlxreg_lc_config_init()
763 data->hpdev.brdinfo->addr); in mlxreg_lc_config_init()
773 platform_device_register_resndata(dev, "leds-mlxreg", data->hpdev.nr, NULL, 0, in mlxreg_lc_config_init()
[all …]
H A Dmlxreg-hotplug.c104 struct i2c_board_info *brdinfo = data->hpdev.brdinfo; in mlxreg_hotplug_device_create()
115 if (data->hpdev.nr < 0 && data->hpdev.action != MLXREG_HOTPLUG_DEVICE_NO_ACTION) in mlxreg_hotplug_device_create()
119 switch (data->hpdev.action) { in mlxreg_hotplug_device_create()
121 data->hpdev.adapter = i2c_get_adapter(data->hpdev.nr + in mlxreg_hotplug_device_create()
123 if (!data->hpdev.adapter) { in mlxreg_hotplug_device_create()
125 data->hpdev.nr + pdata->shift_nr); in mlxreg_hotplug_device_create()
133 client = i2c_new_client_device(data->hpdev.adapter, in mlxreg_hotplug_device_create()
137 brdinfo->type, data->hpdev.nr + in mlxreg_hotplug_device_create()
140 i2c_put_adapter(data->hpdev.adapter); in mlxreg_hotplug_device_create()
141 data->hpdev.adapter = NULL; in mlxreg_hotplug_device_create()
[all …]
H A Dnvsw-sn2201.c399 .hpdev.nr = NVSW_SN2201_NR_NONE,
405 .hpdev.nr = NVSW_SN2201_NR_NONE,
414 .hpdev.brdinfo = &nvsw_sn2201_pwr_devices[0],
415 .hpdev.nr = NVSW_SN2201_MAIN_MUX_CH1_NR,
421 .hpdev.brdinfo = &nvsw_sn2201_pwr_devices[1],
422 .hpdev.nr = NVSW_SN2201_MAIN_MUX_CH2_NR,
431 .hpdev.brdinfo = &nvsw_sn2201_fan_devices[0],
432 .hpdev.nr = NVSW_SN2201_2ND_MUX_CH0_NR,
438 .hpdev.brdinfo = &nvsw_sn2201_fan_devices[1],
439 .hpdev.nr = NVSW_SN2201_2ND_MUX_CH1_NR,
[all …]
/openbmc/linux/include/linux/platform_data/
H A Dmlxreg.h147 struct mlxreg_hotplug_device hpdev; member