Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/platform/x86/
Dmlx-platform.c503 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
509 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
519 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
525 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
534 .hpdev.brdinfo = &mlxplat_mlxcpld_pwr[0],
535 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR,
541 .hpdev.brdinfo = &mlxplat_mlxcpld_pwr[1],
542 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR,
551 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
557 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
[all …]
/Linux-v6.1/drivers/pci/controller/
Dpci-hyperv.c991 static void get_pcichild(struct hv_pci_dev *hpdev) in get_pcichild() argument
993 refcount_inc(&hpdev->refs); in get_pcichild()
996 static void put_pcichild(struct hv_pci_dev *hpdev) in put_pcichild() argument
998 if (refcount_dec_and_test(&hpdev->refs)) in put_pcichild()
999 kfree(hpdev); in put_pcichild()
1072 static void _hv_pcifront_read_config(struct hv_pci_dev *hpdev, int where, in _hv_pcifront_read_config() argument
1076 void __iomem *addr = hpdev->hbus->cfg_addr + CFG_PAGE_OFFSET + where; in _hv_pcifront_read_config()
1082 memcpy(val, ((u8 *)&hpdev->desc.v_id) + where, size); in _hv_pcifront_read_config()
1085 memcpy(val, ((u8 *)&hpdev->desc.rev) + where - in _hv_pcifront_read_config()
1089 memcpy(val, (u8 *)&hpdev->desc.subsystem_id + where - in _hv_pcifront_read_config()
[all …]
/Linux-v6.1/drivers/platform/mellanox/
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 …]
Dmlxreg-hotplug.c105 struct i2c_board_info *brdinfo = data->hpdev.brdinfo; in mlxreg_hotplug_device_create()
116 if (data->hpdev.nr < 0) in mlxreg_hotplug_device_create()
120 switch (data->hpdev.action) { in mlxreg_hotplug_device_create()
122 data->hpdev.adapter = i2c_get_adapter(data->hpdev.nr + in mlxreg_hotplug_device_create()
124 if (!data->hpdev.adapter) { in mlxreg_hotplug_device_create()
126 data->hpdev.nr + pdata->shift_nr); in mlxreg_hotplug_device_create()
134 client = i2c_new_client_device(data->hpdev.adapter, in mlxreg_hotplug_device_create()
138 brdinfo->type, data->hpdev.nr + in mlxreg_hotplug_device_create()
141 i2c_put_adapter(data->hpdev.adapter); in mlxreg_hotplug_device_create()
142 data->hpdev.adapter = NULL; in mlxreg_hotplug_device_create()
[all …]
Dnvsw-sn2201.c395 .hpdev.nr = NVSW_SN2201_NR_NONE,
401 .hpdev.nr = NVSW_SN2201_NR_NONE,
410 .hpdev.brdinfo = &nvsw_sn2201_pwr_devices[0],
411 .hpdev.nr = NVSW_SN2201_MAIN_MUX_CH1_NR,
417 .hpdev.brdinfo = &nvsw_sn2201_pwr_devices[1],
418 .hpdev.nr = NVSW_SN2201_MAIN_MUX_CH2_NR,
427 .hpdev.brdinfo = &nvsw_sn2201_fan_devices[0],
428 .hpdev.nr = NVSW_SN2201_NR_NONE,
434 .hpdev.brdinfo = &nvsw_sn2201_fan_devices[1],
435 .hpdev.nr = NVSW_SN2201_NR_NONE,
[all …]
/Linux-v6.1/include/linux/platform_data/
Dmlxreg.h147 struct mlxreg_hotplug_device hpdev; member