iolink 350 drivers/gpu/drm/amd/amdkfd/kfd_crat.c static int kfd_parse_subtype_iolink(struct crat_subtype_iolink *iolink, iolink 358 drivers/gpu/drm/amd/amdkfd/kfd_crat.c id_from = iolink->proximity_domain_from; iolink 359 drivers/gpu/drm/amd/amdkfd/kfd_crat.c id_to = iolink->proximity_domain_to; iolink 371 drivers/gpu/drm/amd/amdkfd/kfd_crat.c props->ver_maj = iolink->version_major; iolink 372 drivers/gpu/drm/amd/amdkfd/kfd_crat.c props->ver_min = iolink->version_minor; iolink 373 drivers/gpu/drm/amd/amdkfd/kfd_crat.c props->iolink_type = iolink->io_interface_type; iolink 378 drivers/gpu/drm/amd/amdkfd/kfd_crat.c props->weight = 15 * iolink->num_hops_xgmi; iolink 382 drivers/gpu/drm/amd/amdkfd/kfd_crat.c props->min_latency = iolink->minimum_latency; iolink 383 drivers/gpu/drm/amd/amdkfd/kfd_crat.c props->max_latency = iolink->maximum_latency; iolink 384 drivers/gpu/drm/amd/amdkfd/kfd_crat.c props->min_bandwidth = iolink->minimum_bandwidth_mbs; iolink 385 drivers/gpu/drm/amd/amdkfd/kfd_crat.c props->max_bandwidth = iolink->maximum_bandwidth_mbs; iolink 387 drivers/gpu/drm/amd/amdkfd/kfd_crat.c iolink->recommended_transfer_size; iolink 404 drivers/gpu/drm/amd/amdkfd/kfd_crat.c if (props && (iolink->flags & CRAT_IOLINK_FLAGS_BI_DIRECTIONAL)) { iolink 432 drivers/gpu/drm/amd/amdkfd/kfd_crat.c struct crat_subtype_iolink *iolink; iolink 461 drivers/gpu/drm/amd/amdkfd/kfd_crat.c iolink = (struct crat_subtype_iolink *)sub_type_hdr; iolink 462 drivers/gpu/drm/amd/amdkfd/kfd_crat.c ret = kfd_parse_subtype_iolink(iolink, device_list); iolink 138 drivers/gpu/drm/amd/amdkfd/kfd_topology.c struct kfd_iolink_properties *iolink; iolink 158 drivers/gpu/drm/amd/amdkfd/kfd_topology.c iolink = container_of(dev->io_link_props.next, iolink 160 drivers/gpu/drm/amd/amdkfd/kfd_topology.c list_del(&iolink->list); iolink 161 drivers/gpu/drm/amd/amdkfd/kfd_topology.c kfree(iolink); iolink 266 drivers/gpu/drm/amd/amdkfd/kfd_topology.c struct kfd_iolink_properties *iolink; iolink 271 drivers/gpu/drm/amd/amdkfd/kfd_topology.c iolink = container_of(attr, struct kfd_iolink_properties, attr); iolink 272 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_show_32bit_prop(buffer, "type", iolink->iolink_type); iolink 273 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_show_32bit_prop(buffer, "version_major", iolink->ver_maj); iolink 274 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_show_32bit_prop(buffer, "version_minor", iolink->ver_min); iolink 275 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_show_32bit_prop(buffer, "node_from", iolink->node_from); iolink 276 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_show_32bit_prop(buffer, "node_to", iolink->node_to); iolink 277 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_show_32bit_prop(buffer, "weight", iolink->weight); iolink 278 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_show_32bit_prop(buffer, "min_latency", iolink->min_latency); iolink 279 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_show_32bit_prop(buffer, "max_latency", iolink->max_latency); iolink 280 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_show_32bit_prop(buffer, "min_bandwidth", iolink->min_bandwidth); iolink 281 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_show_32bit_prop(buffer, "max_bandwidth", iolink->max_bandwidth); iolink 283 drivers/gpu/drm/amd/amdkfd/kfd_topology.c iolink->rec_transfer_size); iolink 284 drivers/gpu/drm/amd/amdkfd/kfd_topology.c ret = sysfs_show_32bit_prop(buffer, "flags", iolink->flags); iolink 532 drivers/gpu/drm/amd/amdkfd/kfd_topology.c struct kfd_iolink_properties *iolink; iolink 538 drivers/gpu/drm/amd/amdkfd/kfd_topology.c list_for_each_entry(iolink, &dev->io_link_props, list) iolink 539 drivers/gpu/drm/amd/amdkfd/kfd_topology.c if (iolink->kobj) { iolink 540 drivers/gpu/drm/amd/amdkfd/kfd_topology.c kfd_remove_sysfs_file(iolink->kobj, iolink 541 drivers/gpu/drm/amd/amdkfd/kfd_topology.c &iolink->attr); iolink 542 drivers/gpu/drm/amd/amdkfd/kfd_topology.c iolink->kobj = NULL; iolink 595 drivers/gpu/drm/amd/amdkfd/kfd_topology.c struct kfd_iolink_properties *iolink; iolink 695 drivers/gpu/drm/amd/amdkfd/kfd_topology.c list_for_each_entry(iolink, &dev->io_link_props, list) { iolink 696 drivers/gpu/drm/amd/amdkfd/kfd_topology.c iolink->kobj = kzalloc(sizeof(struct kobject), GFP_KERNEL); iolink 697 drivers/gpu/drm/amd/amdkfd/kfd_topology.c if (!iolink->kobj) iolink 699 drivers/gpu/drm/amd/amdkfd/kfd_topology.c ret = kobject_init_and_add(iolink->kobj, &iolink_type, iolink 704 drivers/gpu/drm/amd/amdkfd/kfd_topology.c iolink->attr.name = "properties"; iolink 705 drivers/gpu/drm/amd/amdkfd/kfd_topology.c iolink->attr.mode = KFD_SYSFS_FILE_MODE; iolink 706 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_attr_init(&iolink->attr); iolink 707 drivers/gpu/drm/amd/amdkfd/kfd_topology.c ret = sysfs_create_file(iolink->kobj, &iolink->attr);