Lines Matching refs:offs

235 #define sysfs_show_gen_prop(buffer, offs, fmt, ...)		\  argument
236 (offs += snprintf(buffer+offs, PAGE_SIZE-offs, \
238 #define sysfs_show_32bit_prop(buffer, offs, name, value) \ argument
239 sysfs_show_gen_prop(buffer, offs, "%s %u\n", name, value)
240 #define sysfs_show_64bit_prop(buffer, offs, name, value) \ argument
241 sysfs_show_gen_prop(buffer, offs, "%s %llu\n", name, value)
242 #define sysfs_show_32bit_val(buffer, offs, value) \ argument
243 sysfs_show_gen_prop(buffer, offs, "%u\n", value)
244 #define sysfs_show_str_val(buffer, offs, value) \ argument
245 sysfs_show_gen_prop(buffer, offs, "%s\n", value)
250 int offs = 0; in sysprops_show() local
256 sysfs_show_32bit_val(buffer, offs, in sysprops_show()
259 sysfs_show_64bit_prop(buffer, offs, "platform_oem", in sysprops_show()
261 sysfs_show_64bit_prop(buffer, offs, "platform_id", in sysprops_show()
263 sysfs_show_64bit_prop(buffer, offs, "platform_rev", in sysprops_show()
266 offs = -EINVAL; in sysprops_show()
269 return offs; in sysprops_show()
289 int offs = 0; in iolink_show() local
298 sysfs_show_32bit_prop(buffer, offs, "type", iolink->iolink_type); in iolink_show()
299 sysfs_show_32bit_prop(buffer, offs, "version_major", iolink->ver_maj); in iolink_show()
300 sysfs_show_32bit_prop(buffer, offs, "version_minor", iolink->ver_min); in iolink_show()
301 sysfs_show_32bit_prop(buffer, offs, "node_from", iolink->node_from); in iolink_show()
302 sysfs_show_32bit_prop(buffer, offs, "node_to", iolink->node_to); in iolink_show()
303 sysfs_show_32bit_prop(buffer, offs, "weight", iolink->weight); in iolink_show()
304 sysfs_show_32bit_prop(buffer, offs, "min_latency", iolink->min_latency); in iolink_show()
305 sysfs_show_32bit_prop(buffer, offs, "max_latency", iolink->max_latency); in iolink_show()
306 sysfs_show_32bit_prop(buffer, offs, "min_bandwidth", in iolink_show()
308 sysfs_show_32bit_prop(buffer, offs, "max_bandwidth", in iolink_show()
310 sysfs_show_32bit_prop(buffer, offs, "recommended_transfer_size", in iolink_show()
312 sysfs_show_32bit_prop(buffer, offs, "flags", iolink->flags); in iolink_show()
314 return offs; in iolink_show()
329 int offs = 0; in mem_show() local
338 sysfs_show_32bit_prop(buffer, offs, "heap_type", mem->heap_type); in mem_show()
339 sysfs_show_64bit_prop(buffer, offs, "size_in_bytes", in mem_show()
341 sysfs_show_32bit_prop(buffer, offs, "flags", mem->flags); in mem_show()
342 sysfs_show_32bit_prop(buffer, offs, "width", mem->width); in mem_show()
343 sysfs_show_32bit_prop(buffer, offs, "mem_clk_max", in mem_show()
346 return offs; in mem_show()
361 int offs = 0; in kfd_cache_show() local
370 sysfs_show_32bit_prop(buffer, offs, "processor_id_low", in kfd_cache_show()
372 sysfs_show_32bit_prop(buffer, offs, "level", cache->cache_level); in kfd_cache_show()
373 sysfs_show_32bit_prop(buffer, offs, "size", cache->cache_size); in kfd_cache_show()
374 sysfs_show_32bit_prop(buffer, offs, "cache_line_size", in kfd_cache_show()
376 sysfs_show_32bit_prop(buffer, offs, "cache_lines_per_tag", in kfd_cache_show()
378 sysfs_show_32bit_prop(buffer, offs, "association", cache->cache_assoc); in kfd_cache_show()
379 sysfs_show_32bit_prop(buffer, offs, "latency", cache->cache_latency); in kfd_cache_show()
380 sysfs_show_32bit_prop(buffer, offs, "type", cache->cache_type); in kfd_cache_show()
382 offs += snprintf(buffer+offs, PAGE_SIZE-offs, "sibling_map "); in kfd_cache_show()
386 offs += snprintf(buffer+offs, PAGE_SIZE-offs, "%d,", in kfd_cache_show()
390 buffer[offs-1] = '\n'; in kfd_cache_show()
391 return offs; in kfd_cache_show()
413 int offs = 0; in perf_show() local
421 return sysfs_show_32bit_val(buf, offs, attr->data); in perf_show()
440 int offs = 0; in node_show() local
452 return sysfs_show_32bit_val(buffer, offs, dev->gpu_id); in node_show()
461 return sysfs_show_str_val(buffer, offs, dev->node_props.name); in node_show()
468 sysfs_show_32bit_prop(buffer, offs, "cpu_cores_count", in node_show()
470 sysfs_show_32bit_prop(buffer, offs, "simd_count", in node_show()
472 sysfs_show_32bit_prop(buffer, offs, "mem_banks_count", in node_show()
474 sysfs_show_32bit_prop(buffer, offs, "caches_count", in node_show()
476 sysfs_show_32bit_prop(buffer, offs, "io_links_count", in node_show()
478 sysfs_show_32bit_prop(buffer, offs, "p2p_links_count", in node_show()
480 sysfs_show_32bit_prop(buffer, offs, "cpu_core_id_base", in node_show()
482 sysfs_show_32bit_prop(buffer, offs, "simd_id_base", in node_show()
484 sysfs_show_32bit_prop(buffer, offs, "max_waves_per_simd", in node_show()
486 sysfs_show_32bit_prop(buffer, offs, "lds_size_in_kb", in node_show()
488 sysfs_show_32bit_prop(buffer, offs, "gds_size_in_kb", in node_show()
490 sysfs_show_32bit_prop(buffer, offs, "num_gws", in node_show()
492 sysfs_show_32bit_prop(buffer, offs, "wave_front_size", in node_show()
494 sysfs_show_32bit_prop(buffer, offs, "array_count", in node_show()
496 sysfs_show_32bit_prop(buffer, offs, "simd_arrays_per_engine", in node_show()
498 sysfs_show_32bit_prop(buffer, offs, "cu_per_simd_array", in node_show()
500 sysfs_show_32bit_prop(buffer, offs, "simd_per_cu", in node_show()
502 sysfs_show_32bit_prop(buffer, offs, "max_slots_scratch_cu", in node_show()
504 sysfs_show_32bit_prop(buffer, offs, "gfx_target_version", in node_show()
506 sysfs_show_32bit_prop(buffer, offs, "vendor_id", in node_show()
508 sysfs_show_32bit_prop(buffer, offs, "device_id", in node_show()
510 sysfs_show_32bit_prop(buffer, offs, "location_id", in node_show()
512 sysfs_show_32bit_prop(buffer, offs, "domain", in node_show()
514 sysfs_show_32bit_prop(buffer, offs, "drm_render_minor", in node_show()
516 sysfs_show_64bit_prop(buffer, offs, "hive_id", in node_show()
518 sysfs_show_32bit_prop(buffer, offs, "num_sdma_engines", in node_show()
520 sysfs_show_32bit_prop(buffer, offs, "num_sdma_xgmi_engines", in node_show()
522 sysfs_show_32bit_prop(buffer, offs, "num_sdma_queues_per_engine", in node_show()
524 sysfs_show_32bit_prop(buffer, offs, "num_cp_queues", in node_show()
545 sysfs_show_32bit_prop(buffer, offs, "max_engine_clk_fcompute", in node_show()
548 sysfs_show_64bit_prop(buffer, offs, "local_mem_size", 0ULL); in node_show()
550 sysfs_show_32bit_prop(buffer, offs, "fw_version", in node_show()
552 sysfs_show_32bit_prop(buffer, offs, "capability", in node_show()
554 sysfs_show_32bit_prop(buffer, offs, "sdma_fw_version", in node_show()
556 sysfs_show_64bit_prop(buffer, offs, "unique_id", in node_show()
561 return sysfs_show_32bit_prop(buffer, offs, "max_engine_clk_ccompute", in node_show()