/linux-master/drivers/gpu/drm/panfrost/ |
H A D | panfrost_gem.c | 33 * If we still have mappings attached to the BO, there's a problem in 36 WARN_ON_ONCE(!list_empty(&bo->mappings.list)); 61 mutex_lock(&bo->mappings.lock); 62 list_for_each_entry(iter, &bo->mappings.list, node) { 69 mutex_unlock(&bo->mappings.lock); 110 list_for_each_entry(mapping, &bo->mappings.list, node) 158 mutex_lock(&bo->mappings.lock); 160 list_add_tail(&mapping->node, &bo->mappings.list); 161 mutex_unlock(&bo->mappings.lock); 175 mutex_lock(&bo->mappings [all...] |
H A D | panfrost_job.h | 29 struct panfrost_gem_mapping **mappings; member in struct:panfrost_job
|
H A D | panfrost_gem_shrinker.c | 47 if (!mutex_trylock(&bo->mappings.lock)) 60 mutex_unlock(&bo->mappings.lock);
|
H A D | panfrost_gem.h | 31 } mappings; member in struct:panfrost_gem_object
|
H A D | panfrost_drv.c | 158 job->mappings = kvmalloc_array(job->bo_count, 161 if (!job->mappings) 175 job->mappings[i] = mapping; 418 mutex_lock(&bo->mappings.lock); 422 first = list_first_entry(&bo->mappings.list, 434 if (!list_is_singular(&bo->mappings.list) || 452 mutex_unlock(&bo->mappings.lock);
|
H A D | panfrost_job.c | 339 if (job->mappings) { 341 if (!job->mappings[i]) 344 atomic_dec(&job->mappings[i]->obj->gpu_usecount); 345 panfrost_gem_mapping_put(job->mappings[i]); 347 kvfree(job->mappings);
|
H A D | panfrost_dump.c | 204 mapping = job->mappings[i];
|
/linux-master/drivers/gpu/drm/tegra/ |
H A D | submit.c | 150 xa_lock(&context->mappings); 152 mapping = xa_load(&context->mappings, id); 156 xa_unlock(&context->mappings); 261 struct tegra_drm_used_mapping *mappings; local 273 mappings = kcalloc(args->num_bufs, sizeof(*mappings), GFP_KERNEL); 274 if (!mappings) { 303 mappings[i].mapping = mapping; 304 mappings[i].flags = buf->flags; 307 job_data->used_mappings = mappings; [all...] |
H A D | uapi.c | 39 xa_for_each(&context->mappings, id, mapping) 42 xa_destroy(&context->mappings); 141 xa_init_flags(&context->mappings, XA_FLAGS_ALLOC1); 252 err = xa_alloc(&context->mappings, &args->mapping, mapping, XA_LIMIT(1, U32_MAX), 287 mapping = xa_erase(&context->mappings, args->mapping);
|
H A D | drm.h | 70 struct xarray mappings; member in struct:tegra_drm_context
|
/linux-master/drivers/regulator/ |
H A D | rpi-panel-attiny-regulator.c | 58 static const struct gpio_signal_mappings mappings[NUM_GPIO] = { variable in typeref:struct:gpio_signal_mappings 224 last_val = attiny_get_port_state(state, mappings[off].reg); 226 last_val |= mappings[off].mask; 228 last_val &= ~mappings[off].mask; 230 attiny_set_port_state(state, mappings[off].reg, last_val);
|
/linux-master/include/linux/ |
H A D | host1x.h | 33 * @mappings: list of mappings 34 * @lock: synchronizes accesses to the list of mappings 42 struct list_head mappings; member in struct:host1x_bo_cache 48 INIT_LIST_HEAD(&cache->mappings); 153 struct list_head mappings; member in struct:host1x_bo 160 INIT_LIST_HEAD(&bo->mappings);
|
H A D | remoteproc.h | 523 * @mappings: list of iommu mappings we initiated, needed on shutdown 565 struct list_head mappings; member in struct:rproc
|
/linux-master/drivers/cxl/ |
H A D | pmem.c | 308 struct nd_mapping_desc mappings[CXL_DECODER_MAX_INTERLEAVE]; local 320 memset(&mappings, 0, sizeof(mappings)); 379 mappings[i] = (struct nd_mapping_desc) { 389 ndr_desc.mapping = mappings;
|
/linux-master/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_mmu.h | 76 struct list_head mappings; member in struct:etnaviv_iommu_context
|
H A D | etnaviv_iommu.c | 164 INIT_LIST_HEAD(&context->mappings);
|
H A D | etnaviv_mmu.c | 176 list_for_each_entry(free, &context->mappings, mmu_node) { 225 * We removed enough mappings so that the new allocation will 253 * 2. The existing buffer mappings are idle, but the buffers are not 255 * which case the mappings will not be cleaned up and we must reap them 299 list_add_tail(&mapping->mmu_node, &context->mappings); 326 list_add_tail(&mapping->mmu_node, &context->mappings); 454 list_add_tail(&mapping->mmu_node, &context->mappings);
|
H A D | etnaviv_iommu_v2.c | 304 INIT_LIST_HEAD(&context->mappings);
|
/linux-master/tools/testing/nvdimm/test/ |
H A D | ndtest.c | 412 struct nd_mapping_desc mappings[NDTEST_MAX_MAPPING]; local 420 memset(&mappings, 0, sizeof(mappings)); 428 ndr_desc->mapping = mappings; 449 mappings[i].start = region->mapping[i].start; 450 mappings[i].size = region->mapping[i].size; 451 mappings[i].position = region->mapping[i].position; 452 mappings[i].nvdimm = p->config->dimms[ndimm].nvdimm;
|
/linux-master/drivers/iommu/ |
H A D | virtio-iommu.c | 70 struct rb_root_cached mappings; member in struct:viommu_domain 329 interval_tree_insert(&mapping->iova, &vdomain->mappings); 336 * viommu_del_mappings - remove mappings from the internal tree 353 next = interval_tree_iter_first(&vdomain->mappings, iova, end); 369 interval_tree_remove(node, &vdomain->mappings); 378 * Fill the domain with identity mappings, skipping the device's reserved 430 * mappings were deleted from the device. Re-create the mappings available in 442 node = interval_tree_iter_first(&vdomain->mappings, 0, -1UL); 655 vdomain->mappings [all...] |
/linux-master/drivers/nvdimm/ |
H A D | region_devs.c | 301 static DEVICE_ATTR_RO(mappings); 559 u32 mappings, remainder; local 573 mappings = max_t(u32, 1, nd_region->ndr_mappings); 574 dpa = div_u64_rem(val, mappings, &remainder); 984 int mappings; local 990 mappings = max_t(u16, 1, nd_region->ndr_mappings); 991 div_u64_rem(align, mappings, &remainder); 993 align *= mappings;
|
/linux-master/drivers/rapidio/devices/ |
H A D | rio_mport_cdev.c | 157 * @mappings queue for memory mappings 176 struct list_head mappings; member in struct:mport_dev 387 list_add_tail(&map->node, &md->mappings); 403 list_for_each_entry(map, &md->mappings, node) { 477 list_for_each_entry_safe(map, _map, &md->mappings, node) { 905 list_for_each_entry(map, &md->mappings, node) { 1110 list_add_tail(&map->node, &md->mappings); 1157 list_for_each_entry_safe(map, _map, &md->mappings, node) { 1237 list_add_tail(&map->node, &md->mappings); [all...] |
/linux-master/drivers/media/usb/uvc/ |
H A D | uvc_ctrl.c | 917 list_for_each_entry(map, &ctrl->info.mappings, list) { 1547 list_for_each_entry(mapping, &ctrl->info.mappings, list) { 1596 if (list_empty(&ctrl->info.mappings)) { 2343 INIT_LIST_HEAD(&ctrl->info.mappings); 2371 * Most mappings come from static kernel data, and need to be duplicated. 2422 list_add_tail(&map->list, &ctrl->info.mappings); 2493 list_for_each_entry(map, &ctrl->info.mappings, list) { 2507 "Can't add mapping '%s', maximum mappings count (%u) exceeded\n", 2586 * Add control information and hardcoded stock control mappings to the given 2592 const struct uvc_control_mapping **mappings; local [all...] |
H A D | uvcvideo.h | 58 /* Maximum allowed number of control mappings per device */ 94 struct list_head mappings; member in struct:uvc_control_info 525 const struct uvc_control_mapping **mappings; member in struct:uvc_device_info
|
/linux-master/drivers/gpu/host1x/ |
H A D | bus.c | 893 list_for_each_entry(mapping, &cache->mappings, entry) { 906 list_add_tail(&mapping->list, &bo->mappings); 913 list_add_tail(&mapping->entry, &cache->mappings);
|