Home
last modified time | relevance | path

Searched refs:kdata (Results 1 – 7 of 7) sorted by relevance

/openbsd/sys/dev/pci/drm/
H A Ddrm_ioctl.c863 retcode = func(dev, kdata, file_priv);
866 retcode = func(dev, kdata, file_priv);
900 char *kdata = NULL; local
953 kdata = stack_kdata;
955 kdata = kmalloc(ksize, GFP_KERNEL);
956 if (!kdata) {
968 memset(kdata + in_size, 0, ksize - in_size);
970 retcode = drm_ioctl_kernel(filp, func, kdata, ioctl->flags);
971 if (copy_to_user((void __user *)arg, kdata, out_size) != 0)
982 if (kdata != stack_kdata)
[all …]
/openbsd/sys/dev/pci/drm/radeon/
H A Dradeon_cs.c109 r = (struct drm_radeon_cs_reloc *)&chunk->kdata[i*4]; in radeon_cs_parser_relocs()
357 if (p->chunks[i].kdata == NULL) { in radeon_cs_parser_init()
360 if (copy_from_user(p->chunks[i].kdata, cdata, size)) { in radeon_cs_parser_init()
364 p->cs_flags = p->chunks[i].kdata[0]; in radeon_cs_parser_init()
366 ring = p->chunks[i].kdata[1]; in radeon_cs_parser_init()
368 priority = (s32)p->chunks[i].kdata[2]; in radeon_cs_parser_init()
462 kvfree(parser->chunks[i].kdata); in radeon_cs_parser_fini()
666 if (ib_chunk->kdata) in radeon_cs_ib_fill()
667 memcpy(parser->ib.ptr, ib_chunk->kdata, ib_chunk->length_dw * 4); in radeon_cs_ib_fill()
890 (u64)relocs_chunk->kdata[idx + 3] << 32; in radeon_cs_packet_next_reloc()
[all …]
H A Dradeon.h1026 uint32_t *kdata; member
1066 if (ibc->kdata) in radeon_get_ib_value()
1067 return ibc->kdata[idx]; in radeon_get_ib_value()
/openbsd/sys/arch/sparc64/sparc64/
H A Dpmap.c185 vaddr_t kdata; variable
434 kdata = (vaddr_t)data_start; in pmap_bootstrap()
435 kdatap = prom_vtop(kdata); in pmap_bootstrap()
450 if (mp1->start < kdata) in pmap_bootstrap()
490 kdsize = round_page(ekdata - kdata); in pmap_bootstrap()
502 newkv = kdata + kdsize; in pmap_bootstrap()
729 if (prom_map[i].vstart >= kdata && in pmap_bootstrap()
740 if (prom_map[j].vstart >= kdata && in pmap_bootstrap()
868 kdata = kdata & ~PGOFSET; in pmap_bootstrap()
873 ekdatap = ekdata - kdata + kdatap; in pmap_bootstrap()
[all …]
/openbsd/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_cs.c229 if (p->chunks[i].kdata == NULL) { in amdgpu_cs_pass1()
235 if (copy_from_user(p->chunks[i].kdata, cdata, size)) { in amdgpu_cs_pass1()
247 ret = amdgpu_cs_p1_ib(p, p->chunks[i].kdata, num_ibs); in amdgpu_cs_pass1()
256 ret = amdgpu_cs_p1_user_fence(p, p->chunks[i].kdata, in amdgpu_cs_pass1()
270 ret = amdgpu_cs_p1_bo_handles(p, p->chunks[i].kdata); in amdgpu_cs_pass1()
320 kvfree(p->chunks[i].kdata); in amdgpu_cs_pass1()
335 struct drm_amdgpu_cs_chunk_ib *chunk_ib = chunk->kdata; in amdgpu_cs_p2_ib()
388 struct drm_amdgpu_cs_chunk_dep *deps = chunk->kdata; in amdgpu_cs_p2_dependencies()
460 struct drm_amdgpu_cs_chunk_sem *deps = chunk->kdata; in amdgpu_cs_p2_syncobj_in()
498 struct drm_amdgpu_cs_chunk_sem *deps = chunk->kdata; in amdgpu_cs_p2_syncobj_out()
[all …]
H A Damdgpu_cs.h40 void *kdata; member
/openbsd/sys/dev/pci/drm/amd/amdkfd/
H A Dkfd_chardev.c3240 char *kdata = NULL; in kfd_ioctl() local
3307 kdata = stack_kdata; in kfd_ioctl()
3309 kdata = kmalloc(asize, GFP_KERNEL); in kfd_ioctl()
3310 if (!kdata) { in kfd_ioctl()
3316 memset(kdata + usize, 0, asize - usize); in kfd_ioctl()
3320 if (copy_from_user(kdata, (void __user *)arg, usize) != 0) { in kfd_ioctl()
3325 memset(kdata, 0, usize); in kfd_ioctl()
3328 retcode = func(filep, process, kdata); in kfd_ioctl()
3331 if (copy_to_user((void __user *)arg, kdata, usize) != 0) in kfd_ioctl()
3339 if (kdata != stack_kdata) in kfd_ioctl()
[all …]