/kernel/linux/linux-5.10/drivers/visorbus/ |
H A D | visorchipset.c | 452 struct visor_device *bus_info; in visorbus_create() local 456 bus_info = visorbus_get_device_by_id(bus_no, BUS_ROOT_DEVICE, NULL); in visorbus_create() 457 if (bus_info && bus_info->state.created == 1) { in visorbus_create() 463 bus_info = kzalloc(sizeof(*bus_info), GFP_KERNEL); in visorbus_create() 464 if (!bus_info) { in visorbus_create() 468 INIT_LIST_HEAD(&bus_info->list_all); in visorbus_create() 469 bus_info->chipset_bus_no = bus_no; in visorbus_create() 470 bus_info in visorbus_create() 520 struct visor_device *bus_info; visorbus_destroy() local 597 struct visor_device *bus_info; visorbus_configure() local 643 struct visor_device *bus_info; visorbus_device_create() local 1282 visorbus_response(struct visor_device *bus_info, int response, int controlvm_id) visorbus_response() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | minimal.c | 33 const struct mlxsw_bus_info *bus_info; member 84 strlcpy(drvinfo->driver, mlxsw_m->bus_info->device_kind, in mlxsw_m_module_get_drvinfo() 88 mlxsw_m->bus_info->fw_rev.major, in mlxsw_m_module_get_drvinfo() 89 mlxsw_m->bus_info->fw_rev.minor, in mlxsw_m_module_get_drvinfo() 90 mlxsw_m->bus_info->fw_rev.subminor); in mlxsw_m_module_get_drvinfo() 91 strlcpy(drvinfo->bus_info, mlxsw_m->bus_info->device_name, in mlxsw_m_module_get_drvinfo() 92 sizeof(drvinfo->bus_info)); in mlxsw_m_module_get_drvinfo() 171 dev_err(mlxsw_m->bus_info->dev, "Port %d: Failed to init core port\n", in mlxsw_m_port_create() 182 SET_NETDEV_DEV(dev, mlxsw_m->bus_info in mlxsw_m_port_create() [all...] |
H A D | switchib.c | 32 const struct mlxsw_bus_info *bus_info; member 221 dev_err(mlxsw_sib->bus_info->dev, "Port %d: Failed to set SWID\n", in __mlxsw_sib_port_create() 229 dev_err(mlxsw_sib->bus_info->dev, "Port %d: Failed to set IB port\n", in __mlxsw_sib_port_create() 241 dev_err(mlxsw_sib->bus_info->dev, "Port %d: Failed to set speed\n", in __mlxsw_sib_port_create() 251 dev_err(mlxsw_sib->bus_info->dev, "Port %d: Failed to set MTU\n", in __mlxsw_sib_port_create() 258 dev_err(mlxsw_sib->bus_info->dev, "Port %d: Failed to change admin state to UP\n", in __mlxsw_sib_port_create() 287 dev_err(mlxsw_sib->bus_info->dev, "Port %d: Failed to init core port\n", in mlxsw_sib_port_create() 386 dev_warn(mlxsw_sib->bus_info->dev, "Port %d: Link event received for non-existent port\n", in mlxsw_sib_pude_event_func() 456 mlxsw_sib->bus_info = mlxsw_bus_info; in mlxsw_sib_init() 460 dev_err(mlxsw_sib->bus_info in mlxsw_sib_init() [all...] |
H A D | spectrum.c | 462 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Unsupported module config: width value is not power of 2\n", in mlxsw_sp_port_module_info_get() 469 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Unsupported module config: contains multiple modules\n", in mlxsw_sp_port_module_info_get() 476 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Unsupported module config: TX and RX lane numbers are different\n", in mlxsw_sp_port_module_info_get() 481 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Unsupported module config: TX and RX lane numbers are not sequential\n", in mlxsw_sp_port_module_info_get() 1409 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Failed to init core port\n", in mlxsw_sp_port_create() 1419 SET_NETDEV_DEV(dev, mlxsw_sp->bus_info->dev); in mlxsw_sp_port_create() 1447 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Failed to map module\n", in mlxsw_sp_port_create() 1454 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Failed to set SWID\n", in mlxsw_sp_port_create() 1461 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Unable to init port mac address\n", in mlxsw_sp_port_create() 1482 dev_err(mlxsw_sp->bus_info in mlxsw_sp_port_create() [all...] |
H A D | switchx2.c | 31 const struct mlxsw_bus_info *bus_info; member 409 mlxsw_sx->bus_info->fw_rev.major, in mlxsw_sx_port_get_drvinfo() 410 mlxsw_sx->bus_info->fw_rev.minor, in mlxsw_sx_port_get_drvinfo() 411 mlxsw_sx->bus_info->fw_rev.subminor); in mlxsw_sx_port_get_drvinfo() 412 strlcpy(drvinfo->bus_info, mlxsw_sx->bus_info->device_name, in mlxsw_sx_port_get_drvinfo() 413 sizeof(drvinfo->bus_info)); in mlxsw_sx_port_get_drvinfo() 967 SET_NETDEV_DEV(dev, mlxsw_sx->bus_info->dev); in __mlxsw_sx_port_eth_create() 987 dev_err(mlxsw_sx->bus_info->dev, "Port %d: Unable to get port mac address\n", in __mlxsw_sx_port_eth_create() 1007 dev_err(mlxsw_sx->bus_info in __mlxsw_sx_port_eth_create() [all...] |
H A D | core_thermal.c | 98 const struct mlxsw_bus_info *bus_info; member 229 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_bind() 255 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_unbind() 277 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_get_temp() 434 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_module_temp_get() 602 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_get_cur_state() 628 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_set_cur_state() 877 const struct mlxsw_bus_info *bus_info, in mlxsw_thermal_init() 882 struct device *dev = bus_info->dev; in mlxsw_thermal_init() 894 thermal->bus_info in mlxsw_thermal_init() 876 mlxsw_thermal_init(struct mlxsw_core *core, const struct mlxsw_bus_info *bus_info, struct mlxsw_thermal **p_thermal) mlxsw_thermal_init() argument [all...] |
H A D | core_hwmon.c | 45 const struct mlxsw_bus_info *bus_info; member 72 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to query temp sensor\n"); in mlxsw_hwmon_temp_show() 95 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to query temp sensor\n"); in mlxsw_hwmon_temp_max_show() 131 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to reset temp sensor history\n"); in mlxsw_hwmon_temp_rst_store() 150 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to query fan\n"); in mlxsw_hwmon_fan_rpm_show() 169 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to query fan\n"); in mlxsw_hwmon_fan_fault_show() 190 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to query PWM\n"); in mlxsw_hwmon_pwm_show() 217 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to write PWM\n"); in mlxsw_hwmon_pwm_store() 584 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to get number of temp sensors\n"); in mlxsw_hwmon_temp_init() 601 dev_err(mlxsw_hwmon->bus_info in mlxsw_hwmon_temp_init() [all...] |
H A D | i2c.c | 65 * @bus_info: bus info block; 78 struct mlxsw_bus_info bus_info; member 529 mlxsw_i2c->bus_info.fw_rev.major = in mlxsw_i2c_init() 531 mlxsw_i2c->bus_info.fw_rev.minor = in mlxsw_i2c_init() 533 mlxsw_i2c->bus_info.fw_rev.subminor = in mlxsw_i2c_init() 637 mlxsw_i2c->bus_info.device_kind = id->name; in mlxsw_i2c_probe() 638 mlxsw_i2c->bus_info.device_name = client->name; in mlxsw_i2c_probe() 639 mlxsw_i2c->bus_info.dev = &client->dev; in mlxsw_i2c_probe() 640 mlxsw_i2c->bus_info.low_frequency = true; in mlxsw_i2c_probe() 643 err = mlxsw_core_bus_device_register(&mlxsw_i2c->bus_info, in mlxsw_i2c_probe() [all...] |
H A D | core.c | 68 const struct mlxsw_bus_info *bus_info; member 795 dev_dbg(mlxsw_core->bus_info->dev, "EMAD reg access (tid=%llx,reg_id=%x(%s),type=%s)\n", in mlxsw_emad_reg_access() 1044 .psid = mlxsw_core->bus_info->psid, in mlxsw_core_fw_flash() 1045 .psid_size = strlen(mlxsw_core->bus_info->psid), in mlxsw_core_fw_flash() 1123 err = request_firmware_direct(&firmware, params->file_name, mlxsw_core->bus_info->dev); in mlxsw_core_fw_flash_update() 1391 mlxsw_core->bus_info->device_kind); in mlxsw_devlink_info_get() 1443 return mlxsw_core_bus_device_register(mlxsw_core->bus_info, in mlxsw_devlink_core_bus_device_reload_up() 1828 dev_err(mlxsw_core->bus_info->dev, "Failed to create fw fatal reporter"); in mlxsw_core_health_init() 1895 mlxsw_core->bus_info = mlxsw_bus_info; in __mlxsw_core_bus_device_register() 2445 dev_warn(mlxsw_core->bus_info in mlxsw_reg_trans_wait() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | minimal.c | 37 const struct mlxsw_bus_info *bus_info; member 95 strscpy(drvinfo->driver, mlxsw_m->bus_info->device_kind, in mlxsw_m_module_get_drvinfo() 99 mlxsw_m->bus_info->fw_rev.major, in mlxsw_m_module_get_drvinfo() 100 mlxsw_m->bus_info->fw_rev.minor, in mlxsw_m_module_get_drvinfo() 101 mlxsw_m->bus_info->fw_rev.subminor); in mlxsw_m_module_get_drvinfo() 102 strscpy(drvinfo->bus_info, mlxsw_m->bus_info->device_name, in mlxsw_m_module_get_drvinfo() 103 sizeof(drvinfo->bus_info)); in mlxsw_m_module_get_drvinfo() 243 dev_err(mlxsw_m->bus_info->dev, "Port %d: Failed to init core port\n", in mlxsw_m_port_create() 254 SET_NETDEV_DEV(dev, mlxsw_m->bus_info in mlxsw_m_port_create() [all...] |
H A D | core_thermal.c | 119 const struct mlxsw_bus_info *bus_info; member 162 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_bind() 188 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_unbind() 210 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_get_temp() 352 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_get_cur_state() 378 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_set_cur_state() 649 err = mlxsw_thermal_modules_init(thermal->bus_info->dev, thermal->core, in mlxsw_thermal_got_active() 652 dev_err(thermal->bus_info->dev, "Failed to configure thermal objects for line card modules in slot %d\n", in mlxsw_thermal_got_active() 657 err = mlxsw_thermal_gearboxes_init(thermal->bus_info->dev, in mlxsw_thermal_got_active() 660 dev_err(thermal->bus_info in mlxsw_thermal_got_active() 693 mlxsw_thermal_init(struct mlxsw_core *core, const struct mlxsw_bus_info *bus_info, struct mlxsw_thermal **p_thermal) mlxsw_thermal_init() argument [all...] |
H A D | core_hwmon.c | 61 const struct mlxsw_bus_info *bus_info; member 83 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to query temp sensor\n"); in mlxsw_hwmon_temp_show() 108 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to query temp sensor\n"); in mlxsw_hwmon_temp_max_show() 146 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to reset temp sensor history\n"); in mlxsw_hwmon_temp_rst_store() 166 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to query fan\n"); in mlxsw_hwmon_fan_rpm_show() 186 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to query fan\n"); in mlxsw_hwmon_fan_fault_show() 208 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to query PWM\n"); in mlxsw_hwmon_pwm_show() 236 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to write PWM\n"); in mlxsw_hwmon_pwm_store() 615 dev_err(mlxsw_hwmon->bus_info->dev, "Failed to get number of temp sensors\n"); in mlxsw_hwmon_temp_init() 634 dev_err(mlxsw_hwmon->bus_info in mlxsw_hwmon_temp_init() [all...] |
H A D | i2c.c | 75 * @bus_info: bus info block; 91 struct mlxsw_bus_info bus_info; member 545 mlxsw_i2c->bus_info.fw_rev.major = in mlxsw_i2c_init() 547 mlxsw_i2c->bus_info.fw_rev.minor = in mlxsw_i2c_init() 549 mlxsw_i2c->bus_info.fw_rev.subminor = in mlxsw_i2c_init() 611 dev_err(mlxsw_i2c->bus_info.dev, "Failed to request irq: %d\n", in mlxsw_i2c_irq_init() 714 mlxsw_i2c->bus_info.device_kind = id->name; in mlxsw_i2c_probe() 715 mlxsw_i2c->bus_info.device_name = client->name; in mlxsw_i2c_probe() 716 mlxsw_i2c->bus_info.dev = &client->dev; in mlxsw_i2c_probe() 717 mlxsw_i2c->bus_info in mlxsw_i2c_probe() [all...] |
H A D | spectrum.c | 602 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Unsupported module config: width value is not power of 2\n", in mlxsw_sp_port_module_info_parse() 609 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Unsupported module config: contains multiple modules\n", in mlxsw_sp_port_module_info_parse() 614 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Unsupported module config: contains multiple slot indexes\n", in mlxsw_sp_port_module_info_parse() 621 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Unsupported module config: TX and RX lane numbers are different\n", in mlxsw_sp_port_module_info_parse() 626 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Unsupported module config: TX and RX lane numbers are not sequential\n", in mlxsw_sp_port_module_info_parse() 1622 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Failed to map module\n", in mlxsw_sp_port_create() 1629 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Failed to set SWID\n", in mlxsw_sp_port_create() 1637 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Failed to get port label information\n", in mlxsw_sp_port_create() 1648 dev_err(mlxsw_sp->bus_info->dev, "Port %d: Failed to init core port\n", in mlxsw_sp_port_create() 1658 SET_NETDEV_DEV(dev, mlxsw_sp->bus_info in mlxsw_sp_port_create() [all...] |
/kernel/linux/linux-6.6/include/media/ |
H A D | media-device.h | 85 * @bus_info: Unique and stable device location identifier 153 char bus_info[32]; member 214 * The bus_info field is set by media_device_init() for PCI and platform devices 251 * - &media_device.bus_info represents the location of the device in the 253 * &media_device.bus_info must be set to "PCI:" (or "PCIe:") followed by 490 * media_set_bus_info() - Set bus_info field 492 * @bus_info: Variable where to write the bus info (char array) 493 * @bus_info_size: Length of the bus_info 502 media_set_bus_info(char *bus_info, size_t bus_info_size, struct device *dev) in media_set_bus_info() argument 505 strscpy(bus_info, "n in media_set_bus_info() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/wangxun/libwx/ |
H A D | wx_ethtool.c | 16 strscpy(info->bus_info, pci_name(wx->pdev), sizeof(info->bus_info)); in wx_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_ethtool.c | 23 strlcpy(info->bus_info, pci_name(priv->pdev), sizeof(info->bus_info)); in _rtl92e_ethtool_get_drvinfo()
|
/kernel/linux/linux-6.6/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_ethtool.c | 23 strscpy(info->bus_info, pci_name(priv->pdev), sizeof(info->bus_info)); in _rtl92e_ethtool_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/ |
H A D | common.c | 41 snprintf(cap->bus_info, sizeof(cap->bus_info), in __fimc_vidioc_querycap()
|
/kernel/linux/linux-5.10/net/wireless/ |
H A D | ethtool.c | 26 strlcpy(info->bus_info, dev_name(wiphy_dev(wdev->wiphy)), in cfg80211_get_drvinfo() 27 sizeof(info->bus_info)); in cfg80211_get_drvinfo()
|
/kernel/linux/linux-6.6/net/wireless/ |
H A D | ethtool.c | 26 strscpy(info->bus_info, dev_name(wiphy_dev(wdev->wiphy)), in cfg80211_get_drvinfo() 27 sizeof(info->bus_info)); in cfg80211_get_drvinfo()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | devlink_port_split.py | 21 Port = collections.namedtuple('Port', 'bus_info name') 50 Return: Array of tuples (bus_info/port, if_name). 65 arr.append(Port(bus_info=port, name=ports[port]['netdev'])) 113 cmd = "devlink port split %s count %s" % (port.bus_info, k) 199 unsplit(port.bus_info) 220 unsplit(port.bus_info)
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | devlink_port_split.py | 23 Port = collections.namedtuple('Port', 'bus_info name') 52 Return: Array of tuples (bus_info/port, if_name). 67 arr.append(Port(bus_info=port, name=ports[port]['netdev'])) 115 cmd = "devlink port split %s count %s" % (port.bus_info, k) 201 unsplit(port.bus_info) 222 unsplit(port.bus_info)
|
/kernel/linux/linux-5.10/drivers/platform/x86/intel_speed_select_if/ |
H A D | isst_if_common.c | 283 int bus_info[2]; member 309 bus_number = isst_cpu_info[cpu].bus_info[bus_no]; in isst_if_get_pci_dev() 325 isst_cpu_info[cpu].bus_info[0] = -1; in isst_if_cpu_online() 326 isst_cpu_info[cpu].bus_info[1] = -1; in isst_if_cpu_online() 328 isst_cpu_info[cpu].bus_info[0] = data & 0xff; in isst_if_cpu_online() 329 isst_cpu_info[cpu].bus_info[1] = (data >> 8) & 0xff; in isst_if_cpu_online()
|
/kernel/linux/linux-6.6/drivers/media/mc/ |
H A D | mc-device.c | 72 strscpy(info->bus_info, dev->bus_info, sizeof(info->bus_info)); in media_device_get_info() 700 if (!*mdev->bus_info) in media_device_init() 701 media_set_bus_info(mdev->bus_info, sizeof(mdev->bus_info), in media_device_init() 850 sprintf(mdev->bus_info, "PCI:%s", pci_name(pci_dev)); in media_device_pci_init() 880 usb_make_path(udev, mdev->bus_info, sizeof(mdev->bus_info)); in __media_device_usb_init()
|