Lines Matching refs:props

176 	struct kfd_mem_properties *props;  in kfd_parse_subtype_mem()  local
186 props = kfd_alloc_struct(props); in kfd_parse_subtype_mem()
187 if (props == NULL) in kfd_parse_subtype_mem()
191 props->heap_type = HSA_MEM_HEAP_TYPE_FB_PRIVATE; in kfd_parse_subtype_mem()
193 props->heap_type = HSA_MEM_HEAP_TYPE_SYSTEM; in kfd_parse_subtype_mem()
196 props->flags |= HSA_MEM_FLAGS_HOT_PLUGGABLE; in kfd_parse_subtype_mem()
198 props->flags |= HSA_MEM_FLAGS_NON_VOLATILE; in kfd_parse_subtype_mem()
200 props->size_in_bytes = in kfd_parse_subtype_mem()
203 props->width = mem->width; in kfd_parse_subtype_mem()
206 list_add_tail(&props->list, &dev->mem_props); in kfd_parse_subtype_mem()
222 struct kfd_cache_properties *props; in kfd_parse_subtype_cache() local
234 props = kfd_alloc_struct(props); in kfd_parse_subtype_cache()
235 if (props == NULL) in kfd_parse_subtype_cache()
238 props->processor_id_low = id; in kfd_parse_subtype_cache()
239 props->cache_level = cache->cache_level; in kfd_parse_subtype_cache()
240 props->cache_size = cache->cache_size; in kfd_parse_subtype_cache()
241 props->cacheline_size = cache->cache_line_size; in kfd_parse_subtype_cache()
242 props->cachelines_per_tag = cache->lines_per_tag; in kfd_parse_subtype_cache()
243 props->cache_assoc = cache->associativity; in kfd_parse_subtype_cache()
244 props->cache_latency = cache->cache_latency; in kfd_parse_subtype_cache()
247 props->cache_type |= HSA_CACHE_TYPE_DATA; in kfd_parse_subtype_cache()
249 props->cache_type |= HSA_CACHE_TYPE_INSTRUCTION; in kfd_parse_subtype_cache()
251 props->cache_type |= HSA_CACHE_TYPE_CPU; in kfd_parse_subtype_cache()
253 props->cache_type |= HSA_CACHE_TYPE_HSACU; in kfd_parse_subtype_cache()
257 list_add_tail(&props->list, &dev->cache_props); in kfd_parse_subtype_cache()
271 struct kfd_iolink_properties *props; in kfd_parse_subtype_iolink() local
285 props = kfd_alloc_struct(props); in kfd_parse_subtype_iolink()
286 if (props == NULL) in kfd_parse_subtype_iolink()
289 props->node_from = id_from; in kfd_parse_subtype_iolink()
290 props->node_to = id_to; in kfd_parse_subtype_iolink()
291 props->ver_maj = iolink->version_major; in kfd_parse_subtype_iolink()
292 props->ver_min = iolink->version_minor; in kfd_parse_subtype_iolink()
297 props->weight = 1; in kfd_parse_subtype_iolink()
299 props->min_latency = iolink->minimum_latency; in kfd_parse_subtype_iolink()
300 props->max_latency = iolink->maximum_latency; in kfd_parse_subtype_iolink()
301 props->min_bandwidth = iolink->minimum_bandwidth_mbs; in kfd_parse_subtype_iolink()
302 props->max_bandwidth = iolink->maximum_bandwidth_mbs; in kfd_parse_subtype_iolink()
303 props->rec_transfer_size = in kfd_parse_subtype_iolink()
308 list_add_tail(&props->list, &dev->io_link_props); in kfd_parse_subtype_iolink()