Lines Matching refs:iolink

138 	struct kfd_iolink_properties *iolink;  in kfd_release_topology_device()  local
158 iolink = container_of(dev->io_link_props.next, in kfd_release_topology_device()
160 list_del(&iolink->list); in kfd_release_topology_device()
161 kfree(iolink); in kfd_release_topology_device()
266 struct kfd_iolink_properties *iolink; in iolink_show() local
271 iolink = container_of(attr, struct kfd_iolink_properties, attr); in iolink_show()
272 sysfs_show_32bit_prop(buffer, "type", iolink->iolink_type); in iolink_show()
273 sysfs_show_32bit_prop(buffer, "version_major", iolink->ver_maj); in iolink_show()
274 sysfs_show_32bit_prop(buffer, "version_minor", iolink->ver_min); in iolink_show()
275 sysfs_show_32bit_prop(buffer, "node_from", iolink->node_from); in iolink_show()
276 sysfs_show_32bit_prop(buffer, "node_to", iolink->node_to); in iolink_show()
277 sysfs_show_32bit_prop(buffer, "weight", iolink->weight); in iolink_show()
278 sysfs_show_32bit_prop(buffer, "min_latency", iolink->min_latency); in iolink_show()
279 sysfs_show_32bit_prop(buffer, "max_latency", iolink->max_latency); in iolink_show()
280 sysfs_show_32bit_prop(buffer, "min_bandwidth", iolink->min_bandwidth); in iolink_show()
281 sysfs_show_32bit_prop(buffer, "max_bandwidth", iolink->max_bandwidth); in iolink_show()
283 iolink->rec_transfer_size); in iolink_show()
284 ret = sysfs_show_32bit_prop(buffer, "flags", iolink->flags); in iolink_show()
532 struct kfd_iolink_properties *iolink; in kfd_remove_sysfs_node_entry() local
538 list_for_each_entry(iolink, &dev->io_link_props, list) in kfd_remove_sysfs_node_entry()
539 if (iolink->kobj) { in kfd_remove_sysfs_node_entry()
540 kfd_remove_sysfs_file(iolink->kobj, in kfd_remove_sysfs_node_entry()
541 &iolink->attr); in kfd_remove_sysfs_node_entry()
542 iolink->kobj = NULL; in kfd_remove_sysfs_node_entry()
595 struct kfd_iolink_properties *iolink; in kfd_build_sysfs_node_entry() local
695 list_for_each_entry(iolink, &dev->io_link_props, list) { in kfd_build_sysfs_node_entry()
696 iolink->kobj = kzalloc(sizeof(struct kobject), GFP_KERNEL); in kfd_build_sysfs_node_entry()
697 if (!iolink->kobj) in kfd_build_sysfs_node_entry()
699 ret = kobject_init_and_add(iolink->kobj, &iolink_type, in kfd_build_sysfs_node_entry()
704 iolink->attr.name = "properties"; in kfd_build_sysfs_node_entry()
705 iolink->attr.mode = KFD_SYSFS_FILE_MODE; in kfd_build_sysfs_node_entry()
706 sysfs_attr_init(&iolink->attr); in kfd_build_sysfs_node_entry()
707 ret = sysfs_create_file(iolink->kobj, &iolink->attr); in kfd_build_sysfs_node_entry()