Searched refs:hpdev (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/drivers/pci/controller/ |
D | pci-hyperv.c | 546 static void get_pcichild(struct hv_pci_dev *hpdev) in get_pcichild() argument 548 refcount_inc(&hpdev->refs); in get_pcichild() 551 static void put_pcichild(struct hv_pci_dev *hpdev) in put_pcichild() argument 553 if (refcount_dec_and_test(&hpdev->refs)) in put_pcichild() 554 kfree(hpdev); in put_pcichild() 630 static void _hv_pcifront_read_config(struct hv_pci_dev *hpdev, int where, in _hv_pcifront_read_config() argument 634 void __iomem *addr = hpdev->hbus->cfg_addr + CFG_PAGE_OFFSET + where; in _hv_pcifront_read_config() 640 memcpy(val, ((u8 *)&hpdev->desc.v_id) + where, size); in _hv_pcifront_read_config() 643 memcpy(val, ((u8 *)&hpdev->desc.rev) + where - in _hv_pcifront_read_config() 647 memcpy(val, (u8 *)&hpdev->desc.subsystem_id + where - in _hv_pcifront_read_config() [all …]
|
/Linux-v4.19/drivers/platform/x86/ |
D | mlx-platform.c | 263 .hpdev.brdinfo = &mlxplat_mlxcpld_psu[0], 264 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR, 270 .hpdev.brdinfo = &mlxplat_mlxcpld_psu[1], 271 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR, 280 .hpdev.brdinfo = &mlxplat_mlxcpld_pwr[0], 281 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR, 287 .hpdev.brdinfo = &mlxplat_mlxcpld_pwr[1], 288 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR, 297 .hpdev.brdinfo = &mlxplat_mlxcpld_fan[0], 298 .hpdev.nr = MLXPLAT_CPLD_FAN1_DEFAULT_NR, [all …]
|
/Linux-v4.19/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-v4.19/include/linux/platform_data/ |
D | mlxreg.h | 77 struct mlxreg_hotplug_device hpdev; member
|