Home
last modified time | relevance | path

Searched refs:uaddr (Results 1 – 25 of 27) sorted by relevance

12

/drivers/mtd/chips/
Djedec_probe.c191 enum uaddr { enum
276 const uint8_t uaddr; /* unlock addrs for 8, 16, 32, 64 */ member
301 .uaddr = MTD_UADDR_0x0555_0x02AA,
314 .uaddr = MTD_UADDR_0x0AAA_0x0555,
329 .uaddr = MTD_UADDR_0x0AAA_0x0555,
344 .uaddr = MTD_UADDR_0x0AAA_0x0555,
359 .uaddr = MTD_UADDR_0x0AAA_0x0555,
374 .uaddr = MTD_UADDR_0x0AAA_0x0555,
390 .uaddr = MTD_UADDR_0x0AAA_0x0555,
407 .uaddr = MTD_UADDR_0x0AAA_0x0555,
[all …]
/drivers/infiniband/hw/qib/
Dqib_diag.c339 static int qib_read_umem64(struct qib_devdata *dd, void __user *uaddr, in qib_read_umem64() argument
360 if (copy_to_user(uaddr, &data, sizeof(u64))) { in qib_read_umem64()
365 uaddr += sizeof(u64); in qib_read_umem64()
384 const void __user *uaddr, size_t count) in qib_write_umem64() argument
404 if (copy_from_user(&data, uaddr, sizeof(data))) { in qib_write_umem64()
411 uaddr += sizeof(u64); in qib_write_umem64()
428 static int qib_read_umem32(struct qib_devdata *dd, void __user *uaddr, in qib_read_umem32() argument
449 if (copy_to_user(uaddr, &data, sizeof(data))) { in qib_read_umem32()
455 uaddr += sizeof(u32); in qib_read_umem32()
475 const void __user *uaddr, size_t count) in qib_write_umem32() argument
[all …]
/drivers/video/fbdev/matrox/
Dmatroxfb_accel.c373 unsigned int uaddr = sy * step + sx - 1; in matroxfb_cfb4_clear() local
377 mga_writeb(vbase, uaddr, (mga_readb(vbase, uaddr) & 0x0F) | bgx2); in matroxfb_cfb4_clear()
378 uaddr += step; in matroxfb_cfb4_clear()
382 unsigned int uaddr = sy * step + sx + width; in matroxfb_cfb4_clear() local
386 mga_writeb(vbase, uaddr, (mga_readb(vbase, uaddr) & 0xF0) | bgx2); in matroxfb_cfb4_clear()
387 uaddr += step; in matroxfb_cfb4_clear()
/drivers/crypto/qat/qat_common/
Dqat_hal.c571 unsigned char ae, unsigned int uaddr, in qat_hal_wr_uwords() argument
578 uaddr |= UA_ECS; in qat_hal_wr_uwords()
579 qat_hal_wr_ae_csr(handle, ae, USTORE_ADDRESS, uaddr); in qat_hal_wr_uwords()
950 unsigned char ae, unsigned int uaddr, in qat_hal_get_uwords() argument
960 uaddr |= UA_ECS; in qat_hal_get_uwords()
962 qat_hal_wr_ae_csr(handle, ae, USTORE_ADDRESS, uaddr); in qat_hal_get_uwords()
963 uaddr++; in qat_hal_get_uwords()
974 unsigned char ae, unsigned int uaddr, in qat_hal_wr_umem() argument
980 uaddr |= UA_ECS; in qat_hal_wr_umem()
981 qat_hal_wr_ae_csr(handle, ae, USTORE_ADDRESS, uaddr); in qat_hal_wr_umem()
[all …]
Dadf_common_drv.h150 unsigned char ae, unsigned int uaddr,
Dqat_uclo.c326 unsigned int ae, ustore_size, uaddr, i; in qat_uclo_init_umem_seg() local
336 uaddr = (init_mem->addr + init_mem->num_in_bytes) >> 0x2; in qat_uclo_init_umem_seg()
339 if (aed->ae_slices[i].encap_image->uwords_num < uaddr) in qat_uclo_init_umem_seg()
340 aed->ae_slices[i].encap_image->uwords_num = uaddr; in qat_uclo_init_umem_seg()
/drivers/vhost/
Dvdpa.c653 u64 iova, u64 size, u64 uaddr, u32 perm) in vhost_vdpa_va_map() argument
664 vma = find_vma(dev->mm, uaddr); in vhost_vdpa_va_map()
669 map_size = min(size, vma->vm_end - uaddr); in vhost_vdpa_va_map()
679 offset = (vma->vm_pgoff << PAGE_SHIFT) + uaddr - vma->vm_start; in vhost_vdpa_va_map()
682 ret = vhost_vdpa_map(v, map_iova, map_size, uaddr, in vhost_vdpa_va_map()
691 uaddr += map_size; in vhost_vdpa_va_map()
703 u64 iova, u64 size, u64 uaddr, u32 perm) in vhost_vdpa_pa_map() argument
737 cur_base = uaddr & PAGE_MASK; in vhost_vdpa_pa_map()
844 msg->uaddr, msg->perm); in vhost_vdpa_process_iotlb_update()
846 return vhost_vdpa_pa_map(v, msg->iova, msg->size, msg->uaddr, in vhost_vdpa_process_iotlb_update()
Dvhost.c740 static bool vhost_overflow(u64 uaddr, u64 size) in vhost_overflow() argument
742 if (uaddr > ULONG_MAX || size > ULONG_MAX) in vhost_overflow()
748 return uaddr > ULONG_MAX - size + 1; in vhost_overflow()
832 void __user *uaddr = vhost_vq_meta_fetch(vq, in vhost_copy_to_user() local
836 if (uaddr) in vhost_copy_to_user()
837 return __copy_to_user(uaddr, from, size); in vhost_copy_to_user()
866 void __user *uaddr = vhost_vq_meta_fetch(vq, in vhost_copy_from_user() local
871 if (uaddr) in vhost_copy_from_user()
872 return __copy_from_user(to, uaddr, size); in vhost_copy_from_user()
928 void __user *uaddr = vhost_vq_meta_fetch(vq, in __vhost_get_user() local
[all …]
/drivers/mtd/devices/
Dms02-nv.c58 memcpy(buf, mp->uaddr + from, len); in ms02nv_read()
68 memcpy(mp->uaddr + to, buf, len); in ms02nv_write()
199 mp->uaddr = phys_to_virt(fixaddr); in ms02nv_init_one()
Dms02-nv.h100 u_char *uaddr; member
/drivers/infiniband/hw/mthca/
Dmthca_memfree.c447 struct mthca_user_db_table *db_tab, int index, u64 uaddr) in mthca_map_user_db() argument
464 (db_tab->page[i].uvirt && db_tab->page[i].uvirt != uaddr) || in mthca_map_user_db()
465 (uaddr & 4095)) { in mthca_map_user_db()
475 ret = pin_user_pages_fast(uaddr & PAGE_MASK, 1, in mthca_map_user_db()
481 uaddr & ~PAGE_MASK); in mthca_map_user_db()
499 db_tab->page[i].uvirt = uaddr; in mthca_map_user_db()
Dmthca_memfree.h166 struct mthca_user_db_table *db_tab, int index, u64 uaddr);
/drivers/gpu/drm/
Ddrm_file.c987 unsigned long uaddr, unsigned long len, in drm_get_unmapped_area() argument
1012 addr = current->mm->get_unmapped_area(file, uaddr, len, pgoff, flags); in drm_get_unmapped_area()
1029 if (uaddr) in drm_get_unmapped_area()
1043 unsigned long uaddr, unsigned long len, in drm_get_unmapped_area() argument
1047 return current->mm->get_unmapped_area(file, uaddr, len, pgoff, flags); in drm_get_unmapped_area()
/drivers/media/pci/ivtv/
Divtv-udma.c16 dma_page->uaddr = first & PAGE_MASK; in ivtv_udma_get_page_info()
115 err = pin_user_pages_unlocked(user_dma.uaddr, user_dma.page_count, in ivtv_udma_setup()
Divtv-yuv.c65 y_pages = pin_user_pages_unlocked(y_dma.uaddr, in ivtv_yuv_prep_user_dma()
69 uv_pages = pin_user_pages_unlocked(uv_dma.uaddr, in ivtv_yuv_prep_user_dma()
/drivers/misc/genwqe/
Dcard_utils.c545 int genwqe_user_vmap(struct genwqe_dev *cd, struct dma_mapping *m, void *uaddr, in genwqe_user_vmap() argument
552 if ((uaddr == NULL) || (size == 0)) { in genwqe_user_vmap()
556 m->u_vaddr = uaddr; in genwqe_user_vmap()
560 data = (unsigned long)uaddr; in genwqe_user_vmap()
Dcard_base.h485 void *uaddr, unsigned long size);
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_hw.h175 u64 *uaddr, u16 vlan_id,
/drivers/crypto/ccp/
Dsev-dev.c498 void *psp_copy_user_blob(u64 uaddr, u32 len) in psp_copy_user_blob() argument
500 if (!uaddr || !len) in psp_copy_user_blob()
507 return memdup_user((void __user *)uaddr, len); in psp_copy_user_blob()
/drivers/net/ppp/
Dpptp.c482 static int pptp_getname(struct socket *sock, struct sockaddr *uaddr, in pptp_getname() argument
494 memcpy(uaddr, &sp, len); in pptp_getname()
Dpppoe.c720 static int pppoe_getname(struct socket *sock, struct sockaddr *uaddr, in pppoe_getname() argument
731 memcpy(uaddr, &sp, len); in pppoe_getname()
/drivers/tty/serial/
Ducc_uart.c103 __be16 uaddr[2]; /* UART address character 1 & 2 */ member
670 iowrite16be(0, &uccup->uaddr[0]); in qe_uart_init_ucc()
671 iowrite16be(0, &uccup->uaddr[1]); in qe_uart_init_ucc()
/drivers/s390/block/
Ddasd_alias.c622 __u8 uaddr = private->uid.real_unit_addr; in dasd_alias_add_device() local
633 if (private->uid.type != lcu->uac->unit[uaddr].ua_type) { in dasd_alias_add_device()
/drivers/scsi/
Dst.c4861 const unsigned int max_pages, unsigned long uaddr, in sgl_map_user_pages() argument
4864 unsigned long end = (uaddr + count + PAGE_SIZE - 1) >> PAGE_SHIFT; in sgl_map_user_pages()
4865 unsigned long start = uaddr >> PAGE_SHIFT; in sgl_map_user_pages()
4872 if ((uaddr + count) < uaddr) in sgl_map_user_pages()
4889 res = pin_user_pages_fast(uaddr, nr_pages, rw == READ ? FOLL_WRITE : 0, in sgl_map_user_pages()
4903 mdata->offset = uaddr & ~PAGE_MASK; in sgl_map_user_pages()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_drv.c1399 vmw_get_unmapped_area(struct file *file, unsigned long uaddr, in vmw_get_unmapped_area() argument
1406 return drm_get_unmapped_area(file, uaddr, len, pgoff, flags, in vmw_get_unmapped_area()

12