Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/pci/controller/
Dpci-hyperv.c586 static void get_pcichild(struct hv_pci_dev *hpdev) in get_pcichild() argument
588 refcount_inc(&hpdev->refs); in get_pcichild()
591 static void put_pcichild(struct hv_pci_dev *hpdev) in put_pcichild() argument
593 if (refcount_dec_and_test(&hpdev->refs)) in put_pcichild()
594 kfree(hpdev); in put_pcichild()
670 static void _hv_pcifront_read_config(struct hv_pci_dev *hpdev, int where, in _hv_pcifront_read_config() argument
674 void __iomem *addr = hpdev->hbus->cfg_addr + CFG_PAGE_OFFSET + where; in _hv_pcifront_read_config()
680 memcpy(val, ((u8 *)&hpdev->desc.v_id) + where, size); in _hv_pcifront_read_config()
683 memcpy(val, ((u8 *)&hpdev->desc.rev) + where - in _hv_pcifront_read_config()
687 memcpy(val, (u8 *)&hpdev->desc.subsystem_id + where - in _hv_pcifront_read_config()
[all …]
/Linux-v5.10/drivers/platform/mellanox/
Dmlxreg-hotplug.c105 if (data->hpdev.nr < 0) in mlxreg_hotplug_device_create()
109 data->hpdev.adapter = i2c_get_adapter(data->hpdev.nr + in mlxreg_hotplug_device_create()
111 if (!data->hpdev.adapter) { in mlxreg_hotplug_device_create()
113 data->hpdev.nr + pdata->shift_nr); in mlxreg_hotplug_device_create()
117 client = i2c_new_client_device(data->hpdev.adapter, in mlxreg_hotplug_device_create()
118 data->hpdev.brdinfo); in mlxreg_hotplug_device_create()
121 data->hpdev.brdinfo->type, data->hpdev.nr + in mlxreg_hotplug_device_create()
122 pdata->shift_nr, data->hpdev.brdinfo->addr); in mlxreg_hotplug_device_create()
124 i2c_put_adapter(data->hpdev.adapter); in mlxreg_hotplug_device_create()
125 data->hpdev.adapter = NULL; in mlxreg_hotplug_device_create()
[all …]
/Linux-v5.10/drivers/platform/x86/
Dmlx-platform.c370 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
376 .hpdev.nr = MLXPLAT_CPLD_NR_NONE,
386 .hpdev.brdinfo = &mlxplat_mlxcpld_psu[0],
387 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR,
393 .hpdev.brdinfo = &mlxplat_mlxcpld_psu[1],
394 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR,
403 .hpdev.brdinfo = &mlxplat_mlxcpld_pwr[0],
404 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR,
410 .hpdev.brdinfo = &mlxplat_mlxcpld_pwr[1],
411 .hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR,
[all …]
/Linux-v5.10/include/linux/platform_data/
Dmlxreg.h70 struct mlxreg_hotplug_device hpdev; member