Lines Matching refs:offs

217 #define sysfs_show_gen_prop(buffer, offs, fmt, ...)		\  argument
218 (offs += snprintf(buffer+offs, PAGE_SIZE-offs, \
220 #define sysfs_show_32bit_prop(buffer, offs, name, value) \ argument
221 sysfs_show_gen_prop(buffer, offs, "%s %u\n", name, value)
222 #define sysfs_show_64bit_prop(buffer, offs, name, value) \ argument
223 sysfs_show_gen_prop(buffer, offs, "%s %llu\n", name, value)
224 #define sysfs_show_32bit_val(buffer, offs, value) \ argument
225 sysfs_show_gen_prop(buffer, offs, "%u\n", value)
226 #define sysfs_show_str_val(buffer, offs, value) \ argument
227 sysfs_show_gen_prop(buffer, offs, "%s\n", value)
232 int offs = 0; in sysprops_show() local
238 sysfs_show_32bit_val(buffer, offs, in sysprops_show()
241 sysfs_show_64bit_prop(buffer, offs, "platform_oem", in sysprops_show()
243 sysfs_show_64bit_prop(buffer, offs, "platform_id", in sysprops_show()
245 sysfs_show_64bit_prop(buffer, offs, "platform_rev", in sysprops_show()
248 offs = -EINVAL; in sysprops_show()
251 return offs; in sysprops_show()
271 int offs = 0; in iolink_show() local
280 sysfs_show_32bit_prop(buffer, offs, "type", iolink->iolink_type); in iolink_show()
281 sysfs_show_32bit_prop(buffer, offs, "version_major", iolink->ver_maj); in iolink_show()
282 sysfs_show_32bit_prop(buffer, offs, "version_minor", iolink->ver_min); in iolink_show()
283 sysfs_show_32bit_prop(buffer, offs, "node_from", iolink->node_from); in iolink_show()
284 sysfs_show_32bit_prop(buffer, offs, "node_to", iolink->node_to); in iolink_show()
285 sysfs_show_32bit_prop(buffer, offs, "weight", iolink->weight); in iolink_show()
286 sysfs_show_32bit_prop(buffer, offs, "min_latency", iolink->min_latency); in iolink_show()
287 sysfs_show_32bit_prop(buffer, offs, "max_latency", iolink->max_latency); in iolink_show()
288 sysfs_show_32bit_prop(buffer, offs, "min_bandwidth", in iolink_show()
290 sysfs_show_32bit_prop(buffer, offs, "max_bandwidth", in iolink_show()
292 sysfs_show_32bit_prop(buffer, offs, "recommended_transfer_size", in iolink_show()
294 sysfs_show_32bit_prop(buffer, offs, "flags", iolink->flags); in iolink_show()
296 return offs; in iolink_show()
311 int offs = 0; in mem_show() local
320 sysfs_show_32bit_prop(buffer, offs, "heap_type", mem->heap_type); in mem_show()
321 sysfs_show_64bit_prop(buffer, offs, "size_in_bytes", in mem_show()
323 sysfs_show_32bit_prop(buffer, offs, "flags", mem->flags); in mem_show()
324 sysfs_show_32bit_prop(buffer, offs, "width", mem->width); in mem_show()
325 sysfs_show_32bit_prop(buffer, offs, "mem_clk_max", in mem_show()
328 return offs; in mem_show()
343 int offs = 0; in kfd_cache_show() local
352 sysfs_show_32bit_prop(buffer, offs, "processor_id_low", in kfd_cache_show()
354 sysfs_show_32bit_prop(buffer, offs, "level", cache->cache_level); in kfd_cache_show()
355 sysfs_show_32bit_prop(buffer, offs, "size", cache->cache_size); in kfd_cache_show()
356 sysfs_show_32bit_prop(buffer, offs, "cache_line_size", in kfd_cache_show()
358 sysfs_show_32bit_prop(buffer, offs, "cache_lines_per_tag", in kfd_cache_show()
360 sysfs_show_32bit_prop(buffer, offs, "association", cache->cache_assoc); in kfd_cache_show()
361 sysfs_show_32bit_prop(buffer, offs, "latency", cache->cache_latency); in kfd_cache_show()
362 sysfs_show_32bit_prop(buffer, offs, "type", cache->cache_type); in kfd_cache_show()
364 offs += snprintf(buffer+offs, PAGE_SIZE-offs, "sibling_map "); in kfd_cache_show()
368 offs += snprintf(buffer+offs, PAGE_SIZE-offs, "%d,", in kfd_cache_show()
372 buffer[offs-1] = '\n'; in kfd_cache_show()
373 return offs; in kfd_cache_show()
395 int offs = 0; in perf_show() local
403 return sysfs_show_32bit_val(buf, offs, attr->data); in perf_show()
422 int offs = 0; in node_show() local
434 return sysfs_show_32bit_val(buffer, offs, dev->gpu_id); in node_show()
443 return sysfs_show_str_val(buffer, offs, dev->node_props.name); in node_show()
450 sysfs_show_32bit_prop(buffer, offs, "cpu_cores_count", in node_show()
452 sysfs_show_32bit_prop(buffer, offs, "simd_count", in node_show()
454 sysfs_show_32bit_prop(buffer, offs, "mem_banks_count", in node_show()
456 sysfs_show_32bit_prop(buffer, offs, "caches_count", in node_show()
458 sysfs_show_32bit_prop(buffer, offs, "io_links_count", in node_show()
460 sysfs_show_32bit_prop(buffer, offs, "p2p_links_count", in node_show()
462 sysfs_show_32bit_prop(buffer, offs, "cpu_core_id_base", in node_show()
464 sysfs_show_32bit_prop(buffer, offs, "simd_id_base", in node_show()
466 sysfs_show_32bit_prop(buffer, offs, "max_waves_per_simd", in node_show()
468 sysfs_show_32bit_prop(buffer, offs, "lds_size_in_kb", in node_show()
470 sysfs_show_32bit_prop(buffer, offs, "gds_size_in_kb", in node_show()
472 sysfs_show_32bit_prop(buffer, offs, "num_gws", in node_show()
474 sysfs_show_32bit_prop(buffer, offs, "wave_front_size", in node_show()
476 sysfs_show_32bit_prop(buffer, offs, "array_count", in node_show()
479 sysfs_show_32bit_prop(buffer, offs, "simd_arrays_per_engine", in node_show()
481 sysfs_show_32bit_prop(buffer, offs, "cu_per_simd_array", in node_show()
483 sysfs_show_32bit_prop(buffer, offs, "simd_per_cu", in node_show()
485 sysfs_show_32bit_prop(buffer, offs, "max_slots_scratch_cu", in node_show()
487 sysfs_show_32bit_prop(buffer, offs, "gfx_target_version", in node_show()
489 sysfs_show_32bit_prop(buffer, offs, "vendor_id", in node_show()
491 sysfs_show_32bit_prop(buffer, offs, "device_id", in node_show()
493 sysfs_show_32bit_prop(buffer, offs, "location_id", in node_show()
495 sysfs_show_32bit_prop(buffer, offs, "domain", in node_show()
497 sysfs_show_32bit_prop(buffer, offs, "drm_render_minor", in node_show()
499 sysfs_show_64bit_prop(buffer, offs, "hive_id", in node_show()
501 sysfs_show_32bit_prop(buffer, offs, "num_sdma_engines", in node_show()
503 sysfs_show_32bit_prop(buffer, offs, "num_sdma_xgmi_engines", in node_show()
505 sysfs_show_32bit_prop(buffer, offs, "num_sdma_queues_per_engine", in node_show()
507 sysfs_show_32bit_prop(buffer, offs, "num_cp_queues", in node_show()
528 sysfs_show_32bit_prop(buffer, offs, "max_engine_clk_fcompute", in node_show()
531 sysfs_show_64bit_prop(buffer, offs, "local_mem_size", 0ULL); in node_show()
533 sysfs_show_32bit_prop(buffer, offs, "fw_version", in node_show()
535 sysfs_show_32bit_prop(buffer, offs, "capability", in node_show()
537 sysfs_show_64bit_prop(buffer, offs, "debug_prop", in node_show()
539 sysfs_show_32bit_prop(buffer, offs, "sdma_fw_version", in node_show()
541 sysfs_show_64bit_prop(buffer, offs, "unique_id", in node_show()
543 sysfs_show_32bit_prop(buffer, offs, "num_xcc", in node_show()
547 return sysfs_show_32bit_prop(buffer, offs, "max_engine_clk_ccompute", in node_show()