/linux/drivers/media/common/videobuf2/ |
A D | frame_vector.c | 55 vec->got_ref = true; in get_vaddr_frames() 61 vec->got_ref = false; in get_vaddr_frames() 62 vec->is_pfns = true; in get_vaddr_frames() 109 if (!vec->got_ref) in put_vaddr_frames() 123 vec->nr_frames = 0; in put_vaddr_frames() 141 if (!vec->is_pfns) in frame_vector_to_pages() 167 if (vec->is_pfns) in frame_vector_to_pfns() 202 if (!vec) in frame_vector_create() 205 vec->nr_frames = 0; in frame_vector_create() 206 return vec; in frame_vector_create() [all …]
|
A D | videobuf2-memops.c | 42 struct frame_vector *vec; in vb2_create_framevec() local 47 vec = frame_vector_create(nr); in vb2_create_framevec() 48 if (!vec) in vb2_create_framevec() 50 ret = get_vaddr_frames(start & PAGE_MASK, nr, vec); in vb2_create_framevec() 58 return vec; in vb2_create_framevec() 60 put_vaddr_frames(vec); in vb2_create_framevec() 62 frame_vector_destroy(vec); in vb2_create_framevec() 74 void vb2_destroy_framevec(struct frame_vector *vec) in vb2_destroy_framevec() argument 76 put_vaddr_frames(vec); in vb2_destroy_framevec() 77 frame_vector_destroy(vec); in vb2_destroy_framevec()
|
A D | videobuf2-vmalloc.c | 27 struct frame_vector *vec; member 77 struct frame_vector *vec; in vb2_vmalloc_get_userptr() local 89 if (IS_ERR(vec)) { in vb2_vmalloc_get_userptr() 90 ret = PTR_ERR(vec); in vb2_vmalloc_get_userptr() 93 buf->vec = vec; in vb2_vmalloc_get_userptr() 94 n_pages = frame_vector_count(vec); in vb2_vmalloc_get_userptr() 95 if (frame_vector_to_pages(vec) < 0) { in vb2_vmalloc_get_userptr() 117 vb2_destroy_framevec(vec); in vb2_vmalloc_get_userptr() 132 if (!buf->vec->is_pfns) { in vb2_vmalloc_put_userptr() 134 pages = frame_vector_pages(buf->vec); in vb2_vmalloc_put_userptr() [all …]
|
/linux/drivers/gpu/drm/vc4/ |
A D | vc4_vec.c | 361 vec_connector->vec = vec; in vc4_vec_connector_init() 380 struct vc4_vec *vec = vc4_vec_encoder->vec; in vc4_vec_encoder_disable() local 402 struct vc4_vec *vec = vc4_vec_encoder->vec; in vc4_vec_encoder_enable() local 458 vec->tv_mode->mode_set(vec); in vc4_vec_encoder_enable() 478 struct vc4_vec *vec = vc4_vec_encoder->vec; in vc4_vec_encoder_atomic_mode_set() local 545 vec = devm_kzalloc(dev, sizeof(*vec), GFP_KERNEL); in vc4_vec_bind() 546 if (!vec) in vc4_vec_bind() 554 vc4_vec_encoder->vec = vec; in vc4_vec_bind() 563 vec->regset.base = vec->regs; in vc4_vec_bind() 580 vec->connector = vc4_vec_connector_init(drm, vec); in vc4_vec_bind() [all …]
|
/linux/tools/testing/selftests/mincore/ |
A D | mincore_selftest.c | 34 unsigned char vec[1]; in TEST() local 85 unsigned char vec[1]; in TEST() local 101 ASSERT_EQ(0, vec[0]) { in TEST() 110 ASSERT_EQ(1, vec[0]) { in TEST() 122 ASSERT_EQ(0, vec[0]) { in TEST() 141 unsigned char vec[1]; in TEST() local 160 ASSERT_EQ(0, vec[0]) { in TEST() 189 unsigned char *vec; in TEST() local 275 free(vec); in TEST() 286 unsigned char *vec; in TEST() local [all …]
|
/linux/include/media/ |
A D | frame_vector.h | 17 void frame_vector_destroy(struct frame_vector *vec); 19 struct frame_vector *vec); 20 void put_vaddr_frames(struct frame_vector *vec); 21 int frame_vector_to_pages(struct frame_vector *vec); 26 return vec->nr_frames; in frame_vector_count() 31 if (vec->is_pfns) { in frame_vector_pages() 32 int err = frame_vector_to_pages(vec); in frame_vector_pages() 37 return (struct page **)(vec->ptrs); in frame_vector_pages() 42 if (!vec->is_pfns) in frame_vector_pfns() 43 frame_vector_to_pfns(vec); in frame_vector_pfns() [all …]
|
/linux/arch/powerpc/sysdev/xics/ |
A D | ics-native.c | 54 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_unmask_irq() 80 out_be32(ics_native_xive(in, vec), 0xff); in ics_native_do_mask() 91 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_mask_irq() 93 ics_native_do_mask(in, vec); in ics_native_mask_irq() 106 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_set_affinity() 116 xive = in_be32(ics_native_xive(in, vec)); in ics_native_set_affinity() 118 out_be32(ics_native_xive(in, vec), xive); in ics_native_set_affinity() 150 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_mask_unknown() 153 ics_native_do_mask(in, vec); in ics_native_mask_unknown() 161 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_get_server() [all …]
|
A D | icp-opal.c | 65 unsigned int vec; in icp_opal_get_irq() local 69 vec = xirr & 0x00ffffff; in icp_opal_get_irq() 70 if (vec == XICS_IRQ_SPURIOUS) in icp_opal_get_irq() 75 xics_push_cppr(vec); in icp_opal_get_irq() 80 xics_mask_unknown_vec(vec); in icp_opal_get_irq() 151 unsigned int vec; in icp_opal_flush_interrupt() local 155 vec = xirr & 0x00ffffff; in icp_opal_flush_interrupt() 156 if (vec == XICS_IRQ_SPURIOUS) in icp_opal_flush_interrupt() 158 if (vec == XICS_IPI) { in icp_opal_flush_interrupt() 165 "disabling\n", vec); in icp_opal_flush_interrupt() [all …]
|
A D | icp-native.c | 118 unsigned int vec = xirr & 0x00ffffff; in icp_native_get_irq() local 121 if (vec == XICS_IRQ_SPURIOUS) in icp_native_get_irq() 124 irq = irq_find_mapping(xics_host, vec); in icp_native_get_irq() 126 xics_push_cppr(vec); in icp_native_get_irq() 131 xics_mask_unknown_vec(vec); in icp_native_get_irq() 175 unsigned int vec = xirr & 0x00ffffff; in icp_native_flush_interrupt() local 177 if (vec == XICS_IRQ_SPURIOUS) in icp_native_flush_interrupt() 179 if (vec == XICS_IPI) { in icp_native_flush_interrupt() 186 vec); in icp_native_flush_interrupt() 187 xics_mask_unknown_vec(vec); in icp_native_flush_interrupt()
|
/linux/mm/ |
A D | mincore.c | 37 *vec = present; in mincore_hugetlb() 38 walk->private = vec; in mincore_hugetlb() 85 vec[i] = 0; in __mincore_unmapped_range() 110 memset(vec, 1, nr); in mincore_pte_range() 126 vma, vec); in mincore_pte_range() 128 *vec = 1; in mincore_pte_range() 137 *vec = 1; in mincore_pte_range() 144 *vec = 1; in mincore_pte_range() 148 vec++; in mincore_pte_range() 197 memset(vec, 1, pages); in do_mincore() [all …]
|
/linux/crypto/ |
A D | testmgr.c | 1624 vec->psize, vec->ksize); in generate_random_hash_testvec() 1719 if (!vec.key || !vec.plaintext || !vec.digest) { in test_hash_vs_generic_impl() 2207 memcpy((u8 *)vec->assoc + vec->alen - ivsize, vec->iv, ivsize); in generate_aead_message() 2226 sg_init_one(&dst, vec->ctext, vec->alen + vec->clen); in generate_aead_message() 2236 memmove((u8 *)vec->ctext, vec->ctext + vec->alen, vec->clen); in generate_aead_message() 2276 vec->setkey_error = crypto_aead_setkey(tfm, vec->key, vec->klen); in generate_random_aead_testvec() 2299 vec->clen = vec->plen + authsize; in generate_random_aead_testvec() 2311 vec->alen, vec->plen, authsize, vec->klen, vec->novrfy); in generate_random_aead_testvec() 2500 if (!ctx->vec.key || !ctx->vec.iv || !ctx->vec.assoc || in test_aead_extra() 2944 vec->len, vec->klen); in generate_random_cipher_testvec() [all …]
|
/linux/security/apparmor/ |
A D | label.c | 190 AA_BUG(!vec); in vec_is_stale() 204 AA_BUG(!vec); in vec_unconfined() 229 AA_BUG(!vec); in unique() 233 int res = profile_cmp(vec[pos], vec[i]); in unique() 244 vec[pos] = vec[i]; in unique() 296 vec[j] = vec[j - 1]; in aa_vec_unique() 470 return vec_cmp(a->vec, a->size, b->vec, b->size); in label_cmp() 730 int result = vec_cmp(this->vec, this->size, vec, n); in __vec_find() 876 new->vec[i] = aa_get_profile(vec[i]); in vec_create_and_insert_label() 973 int res = profile_cmp(a->vec[I->i], b->vec[I->j]); in aa_label_next_in_merge() [all …]
|
/linux/kernel/sched/ |
A D | cpupri.c | 71 struct cpupri_vec *vec = &cp->pri_to_cpu[idx]; in __cpupri_find() local 74 if (!atomic_read(&(vec)->count)) in __cpupri_find() 104 cpumask_and(lowest_mask, &p->cpus_mask, vec->mask); in __cpupri_find() 230 struct cpupri_vec *vec = &cp->pri_to_cpu[newpri]; in cpupri_set() local 232 cpumask_set_cpu(cpu, vec->mask); in cpupri_set() 239 atomic_inc(&(vec)->count); in cpupri_set() 264 atomic_dec(&(vec)->count); in cpupri_set() 266 cpumask_clear_cpu(cpu, vec->mask); in cpupri_set() 283 struct cpupri_vec *vec = &cp->pri_to_cpu[i]; in cpupri_init() local 285 atomic_set(&vec->count, 0); in cpupri_init() [all …]
|
/linux/fs/xfs/ |
A D | xfs_log.h | 28 struct xfs_log_iovec *vec = *vecp; in xlog_prepare_iovec() local 30 if (vec) { in xlog_prepare_iovec() 31 ASSERT(vec - lv->lv_iovecp < lv->lv_niovecs); in xlog_prepare_iovec() 32 vec++; in xlog_prepare_iovec() 34 vec = &lv->lv_iovecp[0]; in xlog_prepare_iovec() 37 vec->i_type = type; in xlog_prepare_iovec() 38 vec->i_addr = lv->lv_buf + lv->lv_buf_len; in xlog_prepare_iovec() 40 ASSERT(IS_ALIGNED((unsigned long)vec->i_addr, sizeof(uint64_t))); in xlog_prepare_iovec() 42 *vecp = vec; in xlog_prepare_iovec() 43 return vec->i_addr; in xlog_prepare_iovec() [all …]
|
/linux/net/rds/ |
A D | rdma.c | 57 if ((vec->addr + vec->bytes <= vec->addr) || in rds_pages_in_vec() 61 return ((vec->addr + vec->bytes + PAGE_SIZE - 1) >> PAGE_SHIFT) - in rds_pages_in_vec() 201 if (((args->vec.addr + args->vec.bytes) < args->vec.addr) || in __rds_rdma_map() 202 PAGE_ALIGN(args->vec.addr + args->vec.bytes) < in __rds_rdma_map() 203 (args->vec.addr + args->vec.bytes)) { in __rds_rdma_map() 228 args->vec.addr, args->vec.bytes, nr_pages); in __rds_rdma_map() 292 args->vec.addr, args->vec.bytes, in __rds_rdma_map() 386 new_args.vec = args.vec; in rds_get_mr_for_dest() 557 struct rds_iovec *vec; in rds_rdma_extra_size() local 577 vec = &iov->iov[0]; in rds_rdma_extra_size() [all …]
|
/linux/net/smc/ |
A D | smc_clc.c | 733 vec.iov_base = &tmp; in smc_clc_wait_msg() 767 struct kvec vec; in smc_clc_send_decline() local 794 vec.iov_base = &dclc; in smc_clc_send_decline() 795 vec.iov_len = send_len; in smc_clc_send_decline() 816 struct kvec vec[8]; in smc_clc_send_proposal() local 947 vec[i].iov_base = v2_ext; in smc_clc_send_proposal() 960 vec[i].iov_base = trl; in smc_clc_send_proposal() 987 struct kvec vec[5]; in smc_clc_send_confirm_accept() local 1076 vec[i].iov_base = clc_v2; in smc_clc_send_confirm_accept() 1088 vec[i].iov_base = &fce; in smc_clc_send_confirm_accept() [all …]
|
/linux/drivers/crypto/cavium/nitrox/ |
A D | nitrox_isr.c | 270 int vec; in nitrox_unregister_interrupts() local 277 vec = pci_irq_vector(pdev, i); in nitrox_unregister_interrupts() 279 free_irq(vec, qvec); in nitrox_unregister_interrupts() 294 int nr_vecs, vec, cpu; in nitrox_register_interrupts() local 340 vec = pci_irq_vector(pdev, i); in nitrox_register_interrupts() 362 vec = pci_irq_vector(pdev, i); in nitrox_register_interrupts() 389 int vec; in nitrox_sriov_unregister_interrupts() local 395 vec = ndev->iov.msix.vector; in nitrox_sriov_unregister_interrupts() 397 free_irq(vec, qvec); in nitrox_sriov_unregister_interrupts() 412 int vec, cpu; in nitrox_sriov_register_interupts() local [all …]
|
/linux/arch/alpha/kernel/ |
A D | setup.c | 573 if (!vec) { in setup_arch() 578 if (!vec) { in setup_arch() 583 if (vec != &alpha_mv) { in setup_arch() 584 alpha_mv = *vec; in setup_arch() 855 vec = NULL; in get_sysvec() 868 if (!vec) { in get_sysvec() 885 vec = &pc164_mv; in get_sysvec() 912 vec = &mikasa_mv; in get_sysvec() 918 vec = &noritake_mv; in get_sysvec() 924 vec = &sable_mv; in get_sysvec() [all …]
|
/linux/arch/x86/kvm/ |
A D | fpu.h | 9 #define __sse128_u union { sse128_t vec; u64 as_u64[2]; u32 as_u32[4]; } 10 #define sse128_lo(x) ({ __sse128_u t; t.vec = x; t.as_u64[0]; }) 11 #define sse128_hi(x) ({ __sse128_u t; t.vec = x; t.as_u64[1]; }) 12 #define sse128_l0(x) ({ __sse128_u t; t.vec = x; t.as_u32[0]; }) 13 #define sse128_l1(x) ({ __sse128_u t; t.vec = x; t.as_u32[1]; }) 14 #define sse128_l2(x) ({ __sse128_u t; t.vec = x; t.as_u32[2]; }) 15 #define sse128_l3(x) ({ __sse128_u t; t.vec = x; t.as_u32[3]; }) 16 #define sse128(lo, hi) ({ __sse128_u t; t.as_u64[0] = lo; t.as_u64[1] = hi; t.vec; })
|
/linux/arch/arc/kernel/ |
A D | troubleshoot.c | 112 unsigned int vec, cause_code; in show_ecr_verbose() local 118 vec = regs->ecr_vec; in show_ecr_verbose() 122 if (vec == ECR_V_DTLB_MISS) { in show_ecr_verbose() 127 } else if (vec == ECR_V_ITLB_MISS) { in show_ecr_verbose() 129 } else if (vec == ECR_V_MACH_CHK) { in show_ecr_verbose() 133 } else if (vec == ECR_V_PROTV) { in show_ecr_verbose() 143 } else if (vec == ECR_V_INSN_ERR) { in show_ecr_verbose() 146 } else if (vec == ECR_V_MEM_ERR) { in show_ecr_verbose() 153 } else if (vec == ECR_V_MISALIGN) { in show_ecr_verbose() 156 } else if (vec == ECR_V_TRAP) { in show_ecr_verbose()
|
/linux/Documentation/devicetree/bindings/display/ |
A D | brcm,bcm2835-vec.yaml | 4 $id: http://devicetree.org/schemas/display/brcm,bcm2835-vec.yaml# 15 - brcm,bcm2711-vec 16 - brcm,bcm2835-vec 42 vec: vec@7e806000 { 43 compatible = "brcm,bcm2835-vec";
|
/linux/fs/ |
A D | read_write.c | 1034 return do_readv(fd, vec, vlen, 0); in SYSCALL_DEFINE3() 1040 return do_writev(fd, vec, vlen, 0); in SYSCALL_DEFINE3() 1058 return do_readv(fd, vec, vlen, flags); in SYSCALL_DEFINE6() 1091 const struct iovec __user *, vec, in COMPAT_SYSCALL_DEFINE4() argument 1099 const struct iovec __user *, vec, in COMPAT_SYSCALL_DEFINE5() argument 1109 const struct iovec __user *, vec, in COMPAT_SYSCALL_DEFINE5() argument 1119 const struct iovec __user *, vec, in COMPAT_SYSCALL_DEFINE6() argument 1132 const struct iovec __user *, vec, in COMPAT_SYSCALL_DEFINE4() argument 1140 const struct iovec __user *,vec, in COMPAT_SYSCALL_DEFINE5() argument 1150 const struct iovec __user *, vec, in COMPAT_SYSCALL_DEFINE5() argument [all …]
|
/linux/arch/powerpc/kvm/ |
A D | book3s.c | 144 switch (vec) { in kvmppc_book3s_vec2irqprio() 168 unsigned int vec) in kvmppc_book3s_dequeue_irqprio() argument 300 int vec = 0; in kvmppc_book3s_irqprio_deliver() local 310 vec = BOOK3S_INTERRUPT_EXTERNAL; in kvmppc_book3s_irqprio_deliver() 331 vec = BOOK3S_INTERRUPT_ALIGNMENT; in kvmppc_book3s_irqprio_deliver() 334 vec = BOOK3S_INTERRUPT_PROGRAM; in kvmppc_book3s_irqprio_deliver() 337 vec = BOOK3S_INTERRUPT_VSX; in kvmppc_book3s_irqprio_deliver() 340 vec = BOOK3S_INTERRUPT_ALTIVEC; in kvmppc_book3s_irqprio_deliver() 346 vec = BOOK3S_INTERRUPT_SYSCALL; in kvmppc_book3s_irqprio_deliver() 349 vec = BOOK3S_INTERRUPT_TRACE; in kvmppc_book3s_irqprio_deliver() [all …]
|
/linux/arch/um/os-Linux/ |
A D | process.c | 228 char vec[2]; in os_page_mincore() local 231 ret = mincore(addr, UM_KERN_PAGE_SIZE, vec); in os_page_mincore() 239 return vec[0] & 1; in os_page_mincore() 244 char *vec; in os_mincore() local 250 vec = calloc(1, (len + UM_KERN_PAGE_SIZE - 1) / UM_KERN_PAGE_SIZE); in os_mincore() 251 if (!vec) in os_mincore() 254 ret = mincore(addr, UM_KERN_PAGE_SIZE, vec); in os_mincore() 265 if (!(vec[i] & 1)) { in os_mincore() 273 free(vec); in os_mincore()
|
/linux/net/ceph/ |
A D | buffer.c | 20 b->vec.iov_base = ceph_kvmalloc(len, gfp); in ceph_buffer_new() 21 if (!b->vec.iov_base) { in ceph_buffer_new() 28 b->vec.iov_len = len; in ceph_buffer_new() 39 kvfree(b->vec.iov_base); in ceph_buffer_release() 55 ceph_decode_copy(p, (*b)->vec.iov_base, len); in ceph_decode_buffer()
|