Home
last modified time | relevance | path

Searched refs:kmap (Results 1 – 25 of 54) sorted by relevance

123

/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_hw.c166 cdev->kmap.size = num_key_ctx; in chtls_init_kmap()
167 cdev->kmap.available = bsize; in chtls_init_kmap()
168 ksize = sizeof(*cdev->kmap.addr) * bsize; in chtls_init_kmap()
169 cdev->kmap.addr = kvzalloc(ksize, GFP_KERNEL); in chtls_init_kmap()
170 if (!cdev->kmap.addr) in chtls_init_kmap()
173 cdev->kmap.start = lldi->vr->key.start; in chtls_init_kmap()
174 spin_lock_init(&cdev->kmap.lock); in chtls_init_kmap()
189 spin_lock_bh(&cdev->kmap.lock); in get_new_keyid()
190 keyid = find_first_zero_bit(cdev->kmap.addr, cdev->kmap.size); in get_new_keyid()
191 if (keyid < cdev->kmap.size) { in get_new_keyid()
[all …]
Dchtls.h240 struct key_map kmap; member
Dchtls_main.c166 kvfree(cdev->kmap.addr); in chtls_free_uld()
/drivers/gpu/drm/nouveau/
Dnouveau_bo.h19 struct ttm_bo_kmap_obj kmap; member
105 &nvbo->kmap, &is_iomem); in nvbo_kmap_obj_iovirtual()
Dnouveau_gem.c396 ttm_bo_kunmap(&nvbo->kmap); in validate_fini_no_ticket()
681 if (!nvbo->kmap.virtual) { in nouveau_gem_pushbuf_reloc_apply()
683 &nvbo->kmap); in nouveau_gem_pushbuf_reloc_apply()
869 if (!nvbo->kmap.virtual) { in nouveau_gem_ioctl_pushbuf()
873 &nvbo->kmap); in nouveau_gem_ioctl_pushbuf()
Dnouveau_bo.c535 ret = ttm_bo_kmap(&nvbo->bo, 0, nvbo->bo.resource->num_pages, &nvbo->kmap); in nouveau_bo_map()
547 ttm_bo_kunmap(&nvbo->kmap); in nouveau_bo_unmap()
662 u16 *mem = ttm_kmap_obj_virtual(&nvbo->kmap, &is_iomem); in nouveau_bo_wr16()
676 u32 *mem = ttm_kmap_obj_virtual(&nvbo->kmap, &is_iomem); in nouveau_bo_rd32()
690 u32 *mem = ttm_kmap_obj_virtual(&nvbo->kmap, &is_iomem); in nouveau_bo_wr32()
/drivers/staging/media/atomisp/pci/hmm/
Dhmm.c353 src = (char *)kmap(bo->page_obj[idx].page) + offset; in load_and_flush_by_kmap()
488 des = (char *)kmap(bo->page_obj[idx].page); in hmm_store()
566 des = (char *)kmap(bo->page_obj[idx].page) + offset; in hmm_set()
/drivers/gpu/drm/i915/gt/
Dshmem_utils.c107 vaddr = kmap(page); in __shmem_rw()
/drivers/gpu/drm/gma500/
Dmmu.c187 v = kmap(pd->dummy_pt); in psb_mmu_alloc_pd()
193 v = kmap(pd->p); in psb_mmu_alloc_pd()
199 clear_page(kmap(pd->dummy_page)); in psb_mmu_alloc_pd()
/drivers/gpu/drm/radeon/
Dradeon_object.c251 r = ttm_bo_kmap(&bo->tbo, 0, bo->tbo.resource->num_pages, &bo->kmap); in radeon_bo_kmap()
255 bo->kptr = ttm_kmap_obj_virtual(&bo->kmap, &is_iomem); in radeon_bo_kmap()
269 ttm_bo_kunmap(&bo->kmap); in radeon_bo_kunmap()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_object.c807 r = ttm_bo_kmap(&bo->tbo, 0, bo->tbo.resource->num_pages, &bo->kmap); in amdgpu_bo_kmap()
830 return ttm_kmap_obj_virtual(&bo->kmap, &is_iomem); in amdgpu_bo_kptr()
841 if (bo->kmap.bo) in amdgpu_bo_kunmap()
842 ttm_bo_kunmap(&bo->kmap); in amdgpu_bo_kunmap()
Damdgpu_object.h101 struct ttm_bo_kmap_obj kmap; member
/drivers/mtd/
Dmtd_blkdevs.c71 buf = kmap(bio_page(req->bio)) + bio_offset(req->bio); in do_blktrans_request()
86 buf = kmap(bio_page(req->bio)) + bio_offset(req->bio); in do_blktrans_request()
/drivers/firmware/efi/
Dcapsule-loader.c200 kbuff = kmap(page); in efi_capsule_write()
/drivers/gpu/drm/i915/
Di915_gem.c199 vaddr = kmap(page); in shmem_pread()
621 vaddr = kmap(page); in shmem_pwrite()
/drivers/xen/
Dgntalloc.c181 uint8_t *tmp = kmap(gref->page); in __del_gref()
/drivers/mmc/host/
Dsdricoh_cs.c315 buf = kmap(page) + data->sg->offset + (len * i); in sdricoh_request()
Dusdhi6rol0.c327 host->pg.mapped = kmap(host->pg.page); in usdhi6_blk_bounce()
369 host->pg.mapped = kmap(host->pg.page); in usdhi6_sg_map()
507 host->pg.mapped = kmap(host->pg.page); in usdhi6_sg_advance()
/drivers/base/firmware_loader/
Dfallback.c323 page_data = kmap(fw_priv->pages[page_nr]); in firmware_rw()
/drivers/android/
Dbinder_alloc.c773 kptr = kmap(page) + pgoff; in binder_alloc_clear_buf()
1250 kptr = kmap(page) + pgoff; in binder_alloc_copy_user_to_buffer()
/drivers/gpu/drm/i915/gem/
Di915_gem_shmem.c603 vaddr = kmap(page); in i915_gem_object_create_shmem_from_data()
/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_arm.c387 memcpy((char *)kmap(pages[0]) + in free_pagelist()
395 memcpy((char *)kmap(pages[num_pages - 1]) + in free_pagelist()
/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_mman.c147 cpu = kmap(p) + offset_in_page(offset); in check_partial_mapping()
240 cpu = kmap(p) + offset_in_page(offset); in check_partial_mappings()
/drivers/gpu/drm/ttm/
Dttm_bo_util.c323 map->virtual = kmap(map->page); in ttm_bo_kmap_ttm()
/drivers/target/
Dtarget_core_rd.c162 p = kmap(pg); in rd_allocate_sgl_table()

123