Lines Matching refs:buffer
487 #define sysfs_show_gen_prop(buffer, fmt, ...) \ argument
488 snprintf(buffer, PAGE_SIZE, "%s"fmt, buffer, __VA_ARGS__)
489 #define sysfs_show_32bit_prop(buffer, name, value) \ argument
490 sysfs_show_gen_prop(buffer, "%s %u\n", name, value)
491 #define sysfs_show_64bit_prop(buffer, name, value) \ argument
492 sysfs_show_gen_prop(buffer, "%s %llu\n", name, value)
493 #define sysfs_show_32bit_val(buffer, value) \ argument
494 sysfs_show_gen_prop(buffer, "%u\n", value)
495 #define sysfs_show_str_val(buffer, value) \ argument
496 sysfs_show_gen_prop(buffer, "%s\n", value)
499 char *buffer) in sysprops_show() argument
504 buffer[0] = 0; in sysprops_show()
507 ret = sysfs_show_32bit_val(buffer, sys_props.generation_count); in sysprops_show()
509 sysfs_show_64bit_prop(buffer, "platform_oem", in sysprops_show()
511 sysfs_show_64bit_prop(buffer, "platform_id", in sysprops_show()
513 ret = sysfs_show_64bit_prop(buffer, "platform_rev", in sysprops_show()
531 char *buffer) in iolink_show() argument
537 buffer[0] = 0; in iolink_show()
540 sysfs_show_32bit_prop(buffer, "type", iolink->iolink_type); in iolink_show()
541 sysfs_show_32bit_prop(buffer, "version_major", iolink->ver_maj); in iolink_show()
542 sysfs_show_32bit_prop(buffer, "version_minor", iolink->ver_min); in iolink_show()
543 sysfs_show_32bit_prop(buffer, "node_from", iolink->node_from); in iolink_show()
544 sysfs_show_32bit_prop(buffer, "node_to", iolink->node_to); in iolink_show()
545 sysfs_show_32bit_prop(buffer, "weight", iolink->weight); in iolink_show()
546 sysfs_show_32bit_prop(buffer, "min_latency", iolink->min_latency); in iolink_show()
547 sysfs_show_32bit_prop(buffer, "max_latency", iolink->max_latency); in iolink_show()
548 sysfs_show_32bit_prop(buffer, "min_bandwidth", iolink->min_bandwidth); in iolink_show()
549 sysfs_show_32bit_prop(buffer, "max_bandwidth", iolink->max_bandwidth); in iolink_show()
550 sysfs_show_32bit_prop(buffer, "recommended_transfer_size", in iolink_show()
552 ret = sysfs_show_32bit_prop(buffer, "flags", iolink->flags); in iolink_show()
566 char *buffer) in mem_show() argument
572 buffer[0] = 0; in mem_show()
575 sysfs_show_32bit_prop(buffer, "heap_type", mem->heap_type); in mem_show()
576 sysfs_show_64bit_prop(buffer, "size_in_bytes", mem->size_in_bytes); in mem_show()
577 sysfs_show_32bit_prop(buffer, "flags", mem->flags); in mem_show()
578 sysfs_show_32bit_prop(buffer, "width", mem->width); in mem_show()
579 ret = sysfs_show_32bit_prop(buffer, "mem_clk_max", mem->mem_clk_max); in mem_show()
593 char *buffer) in kfd_cache_show() argument
600 buffer[0] = 0; in kfd_cache_show()
603 sysfs_show_32bit_prop(buffer, "processor_id_low", in kfd_cache_show()
605 sysfs_show_32bit_prop(buffer, "level", cache->cache_level); in kfd_cache_show()
606 sysfs_show_32bit_prop(buffer, "size", cache->cache_size); in kfd_cache_show()
607 sysfs_show_32bit_prop(buffer, "cache_line_size", cache->cacheline_size); in kfd_cache_show()
608 sysfs_show_32bit_prop(buffer, "cache_lines_per_tag", in kfd_cache_show()
610 sysfs_show_32bit_prop(buffer, "association", cache->cache_assoc); in kfd_cache_show()
611 sysfs_show_32bit_prop(buffer, "latency", cache->cache_latency); in kfd_cache_show()
612 sysfs_show_32bit_prop(buffer, "type", cache->cache_type); in kfd_cache_show()
613 snprintf(buffer, PAGE_SIZE, "%ssibling_map ", buffer); in kfd_cache_show()
615 ret = snprintf(buffer, PAGE_SIZE, "%s%d%s", in kfd_cache_show()
616 buffer, cache->sibling_map[i], in kfd_cache_show()
632 char *buffer) in node_show() argument
640 buffer[0] = 0; in node_show()
645 return sysfs_show_32bit_val(buffer, dev->gpu_id); in node_show()
658 return sysfs_show_str_val(buffer, public_name); in node_show()
663 sysfs_show_32bit_prop(buffer, "cpu_cores_count", in node_show()
665 sysfs_show_32bit_prop(buffer, "simd_count", in node_show()
672 sysfs_show_32bit_prop(buffer, "mem_banks_count", in node_show()
675 sysfs_show_32bit_prop(buffer, "mem_banks_count", in node_show()
679 sysfs_show_32bit_prop(buffer, "caches_count", in node_show()
681 sysfs_show_32bit_prop(buffer, "io_links_count", in node_show()
683 sysfs_show_32bit_prop(buffer, "cpu_core_id_base", in node_show()
685 sysfs_show_32bit_prop(buffer, "simd_id_base", in node_show()
687 sysfs_show_32bit_prop(buffer, "max_waves_per_simd", in node_show()
689 sysfs_show_32bit_prop(buffer, "lds_size_in_kb", in node_show()
691 sysfs_show_32bit_prop(buffer, "gds_size_in_kb", in node_show()
693 sysfs_show_32bit_prop(buffer, "wave_front_size", in node_show()
695 sysfs_show_32bit_prop(buffer, "array_count", in node_show()
697 sysfs_show_32bit_prop(buffer, "simd_arrays_per_engine", in node_show()
699 sysfs_show_32bit_prop(buffer, "cu_per_simd_array", in node_show()
701 sysfs_show_32bit_prop(buffer, "simd_per_cu", in node_show()
703 sysfs_show_32bit_prop(buffer, "max_slots_scratch_cu", in node_show()
705 sysfs_show_32bit_prop(buffer, "vendor_id", in node_show()
707 sysfs_show_32bit_prop(buffer, "device_id", in node_show()
709 sysfs_show_32bit_prop(buffer, "location_id", in node_show()
726 sysfs_show_32bit_prop(buffer, "max_engine_clk_fcompute", in node_show()
730 sysfs_show_64bit_prop(buffer, "local_mem_size", in node_show()
733 sysfs_show_32bit_prop(buffer, "fw_version", in node_show()
737 sysfs_show_32bit_prop(buffer, "capability", in node_show()
741 return sysfs_show_32bit_prop(buffer, "max_engine_clk_ccompute", in node_show()