Searched refs:hpdev (Results 1 – 4 of 4) sorted by relevance
| /Linux-v5.4/drivers/pci/controller/ |
| D | pci-hyperv.c | 578 static void get_pcichild(struct hv_pci_dev *hpdev) in get_pcichild() argument 580 refcount_inc(&hpdev->refs); in get_pcichild() 583 static void put_pcichild(struct hv_pci_dev *hpdev) in put_pcichild() argument 585 if (refcount_dec_and_test(&hpdev->refs)) in put_pcichild() 586 kfree(hpdev); in put_pcichild() 662 static void _hv_pcifront_read_config(struct hv_pci_dev *hpdev, int where, in _hv_pcifront_read_config() argument 666 void __iomem *addr = hpdev->hbus->cfg_addr + CFG_PAGE_OFFSET + where; in _hv_pcifront_read_config() 672 memcpy(val, ((u8 *)&hpdev->desc.v_id) + where, size); in _hv_pcifront_read_config() 675 memcpy(val, ((u8 *)&hpdev->desc.rev) + where - in _hv_pcifront_read_config() 679 memcpy(val, (u8 *)&hpdev->desc.subsystem_id + where - in _hv_pcifront_read_config() [all …]
|
| /Linux-v5.4/drivers/platform/mellanox/ |
| D | mlxreg-hotplug.c | 112 if (data->hpdev.nr < 0) in mlxreg_hotplug_device_create() 116 data->hpdev.adapter = i2c_get_adapter(data->hpdev.nr + in mlxreg_hotplug_device_create() 118 if (!data->hpdev.adapter) { in mlxreg_hotplug_device_create() 120 data->hpdev.nr + pdata->shift_nr); in mlxreg_hotplug_device_create() 124 data->hpdev.client = i2c_new_device(data->hpdev.adapter, in mlxreg_hotplug_device_create() 125 data->hpdev.brdinfo); in mlxreg_hotplug_device_create() 126 if (!data->hpdev.client) { in mlxreg_hotplug_device_create() 128 data->hpdev.brdinfo->type, data->hpdev.nr + in mlxreg_hotplug_device_create() 129 pdata->shift_nr, data->hpdev.brdinfo->addr); in mlxreg_hotplug_device_create() 131 i2c_put_adapter(data->hpdev.adapter); in mlxreg_hotplug_device_create() [all …]
|
| /Linux-v5.4/drivers/platform/x86/ |
| D | mlx-platform.c | 285 .hpdev.brdinfo = &mlxplat_mlxcpld_psu[0], 286 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR, 292 .hpdev.brdinfo = &mlxplat_mlxcpld_psu[1], 293 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR, 302 .hpdev.brdinfo = &mlxplat_mlxcpld_pwr[0], 303 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR, 309 .hpdev.brdinfo = &mlxplat_mlxcpld_pwr[1], 310 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR, 319 .hpdev.brdinfo = &mlxplat_mlxcpld_fan[0], 320 .hpdev.nr = MLXPLAT_CPLD_FAN1_DEFAULT_NR, [all …]
|
| /Linux-v5.4/include/linux/platform_data/ |
| D | mlxreg.h | 92 struct mlxreg_hotplug_device hpdev; member
|