Home
last modified time | relevance | path

Searched full:vec (Results 1 – 25 of 288) sorted by relevance

12345678910>>...12

/Linux-v5.15/drivers/media/common/videobuf2/
Dframe_vector.c17 * @vec: structure which receives pages / pfns of the addresses mapped.
20 * This function maps virtual addresses from @start and fills @vec structure
36 struct frame_vector *vec) in get_vaddr_frames() argument
46 if (WARN_ON_ONCE(nr_frames > vec->nr_allocated)) in get_vaddr_frames()
47 nr_frames = vec->nr_allocated; in get_vaddr_frames()
53 (struct page **)(vec->ptrs)); in get_vaddr_frames()
55 vec->got_ref = true; in get_vaddr_frames()
56 vec->is_pfns = false; in get_vaddr_frames()
61 vec->got_ref = false; in get_vaddr_frames()
62 vec->is_pfns = true; in get_vaddr_frames()
[all …]
Dvideobuf2-memops.c42 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()
69 * @vec: vector of pfns / pages to release
71 * This releases references to all pages in the vector @vec (if corresponding
74 void vb2_destroy_framevec(struct frame_vector *vec) in vb2_destroy_framevec() argument
[all …]
Dvideobuf2-vmalloc.c27 struct frame_vector *vec; member
79 struct frame_vector *vec; in vb2_vmalloc_get_userptr() local
90 vec = vb2_create_framevec(vaddr, size); in vb2_vmalloc_get_userptr()
91 if (IS_ERR(vec)) { in vb2_vmalloc_get_userptr()
92 ret = PTR_ERR(vec); in vb2_vmalloc_get_userptr()
95 buf->vec = vec; in vb2_vmalloc_get_userptr()
96 n_pages = frame_vector_count(vec); in vb2_vmalloc_get_userptr()
97 if (frame_vector_to_pages(vec) < 0) { in vb2_vmalloc_get_userptr()
98 unsigned long *nums = frame_vector_pfns(vec); in vb2_vmalloc_get_userptr()
110 buf->vaddr = vm_map_ram(frame_vector_pages(vec), n_pages, -1); in vb2_vmalloc_get_userptr()
[all …]
/Linux-v5.15/drivers/gpu/drm/vc4/
Dvc4_vec.c9 * The VEC encoder generates PAL or NTSC composite video output.
40 /* VEC Registers */
161 /* General VEC hardware state. */
178 #define VEC_READ(offset) readl(vec->regs + (offset))
179 #define VEC_WRITE(offset, val) writel(val, vec->regs + (offset))
181 /* VC4 VEC encoder KMS struct */
184 struct vc4_vec *vec; member
193 /* VC4 VEC connector KMS struct */
196 struct vc4_vec *vec; member
214 void (*mode_set)(struct vc4_vec *vec);
[all …]
/Linux-v5.15/include/media/
Dframe_vector.h17 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);
22 void frame_vector_to_pfns(struct frame_vector *vec);
24 static inline unsigned int frame_vector_count(struct frame_vector *vec) in frame_vector_count() argument
26 return vec->nr_frames; in frame_vector_count()
29 static inline struct page **frame_vector_pages(struct frame_vector *vec) in frame_vector_pages() argument
31 if (vec->is_pfns) { in frame_vector_pages()
32 int err = frame_vector_to_pages(vec); in frame_vector_pages()
[all …]
/Linux-v5.15/tools/testing/selftests/mincore/
Dmincore_selftest.c34 unsigned char vec[1]; in TEST() local
40 retval = mincore(0, 0, vec); in TEST()
45 retval = mincore(NULL, page_size, vec); in TEST()
58 retval = mincore(addr + 1, page_size, vec); in TEST()
64 retval = mincore(addr, -1, vec); in TEST()
68 /* <vec> argument points to an illegal address */ in TEST()
85 unsigned char vec[1]; in TEST() local
99 retval = mincore(addr, page_size, vec); in TEST()
101 ASSERT_EQ(0, vec[0]) { in TEST()
108 retval = mincore(addr, page_size, vec); in TEST()
[all …]
/Linux-v5.15/arch/powerpc/sysdev/xics/
Dics-native.c40 static void __iomem *ics_native_xive(struct ics_native *in, unsigned int vec) in ics_native_xive() argument
42 return in->base + 0x800 + ((vec - in->ibase) << 2); in ics_native_xive()
47 unsigned int vec = (unsigned int)irqd_to_hwirq(d); in ics_native_unmask_irq() local
52 pr_devel("ics-native: unmask virq %d [hw 0x%x]\n", d->irq, vec); in ics_native_unmask_irq()
54 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_unmask_irq()
58 out_be32(ics_native_xive(in, vec), (server << 8) | DEFAULT_PRIORITY); in ics_native_unmask_irq()
78 static void ics_native_do_mask(struct ics_native *in, unsigned int vec) in ics_native_do_mask() argument
80 out_be32(ics_native_xive(in, vec), 0xff); in ics_native_do_mask()
85 unsigned int vec = (unsigned int)irqd_to_hwirq(d); in ics_native_mask_irq() local
89 pr_devel("ics-native: mask virq %d [hw 0x%x]\n", d->irq, vec); in ics_native_mask_irq()
[all …]
Dicp-opal.c65 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()
73 irq = irq_find_mapping(xics_host, vec); 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()
[all …]
Dicp-native.c118 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-v5.15/crypto/
Dtestmgr.c1126 const struct hash_testvec *vec, in build_hash_sglist() argument
1134 kv.iov_base = (void *)vec->plaintext; in build_hash_sglist()
1135 kv.iov_len = vec->psize; in build_hash_sglist()
1136 iov_iter_kvec(&input, WRITE, &kv, 1, vec->psize); in build_hash_sglist()
1137 return build_test_sglist(tsgl, cfg->src_divs, alignmask, vec->psize, in build_hash_sglist()
1143 const struct hash_testvec *vec, in check_hash_result() argument
1148 if (memcmp(result, vec->digest, digestsize) != 0) { in check_hash_result()
1172 static int test_shash_vec_cfg(const struct hash_testvec *vec, in test_shash_vec_cfg() argument
1190 if (vec->ksize) { in test_shash_vec_cfg()
1191 err = do_setkey(crypto_shash_setkey, tfm, vec->key, vec->ksize, in test_shash_vec_cfg()
[all …]
/Linux-v5.15/mm/
Dmincore.c29 unsigned char *vec = walk->private; in mincore_hugetlb() local
36 for (; addr != end; vec++, addr += PAGE_SIZE) in mincore_hugetlb()
37 *vec = present; in mincore_hugetlb()
38 walk->private = vec; in mincore_hugetlb()
72 struct vm_area_struct *vma, unsigned char *vec) in __mincore_unmapped_range() argument
82 vec[i] = mincore_page(vma->vm_file->f_mapping, pgoff); in __mincore_unmapped_range()
85 vec[i] = 0; in __mincore_unmapped_range()
105 unsigned char *vec = walk->private; in mincore_pte_range() local
110 memset(vec, 1, nr); in mincore_pte_range()
116 __mincore_unmapped_range(addr, end, vma, vec); in mincore_pte_range()
[all …]
/Linux-v5.15/security/apparmor/
Dlabel.c158 * @vec: vector of profiles to compare (NOT NULL)
159 * @n: length of @vec
161 * Returns: <0 if a < vec
162 * ==0 if a == vec
163 * >0 if a > vec
186 static bool vec_is_stale(struct aa_profile **vec, int n) in vec_is_stale() argument
190 AA_BUG(!vec); in vec_is_stale()
193 if (profile_is_stale(vec[i])) in vec_is_stale()
200 static bool vec_unconfined(struct aa_profile **vec, int n) in vec_unconfined() argument
204 AA_BUG(!vec); in vec_unconfined()
[all …]
/Linux-v5.15/tools/testing/selftests/powerpc/tm/
Dtm-unavailable.c5 * Force FP, VEC and VSX unavailable exception during transaction in all
6 * possible scenarios regarding the MSR.FP and MSR.VEC state, e.g. when FP
7 * is enable and VEC is disable, when FP is disable and VEC is enable, and
9 * FP and VEC registers to the previous state we set just before we entered
11 * VEC/Altivec registers on abortion due to an unavailable exception in TM.
14 * representatives of FP and VEC/Altivec reg sets.
59 * If both FP and VEC are touched it does not mean that touching VSX in expecting_failure()
60 * won't raise an exception. However since FP and VEC state are already in expecting_failure()
111 printf("If MSR.FP=%d MSR.VEC=%d: ", flags.touch_fp, flags.touch_vec); in tm_una_ping()
139 * overflow and MSR.FP, MSR.VEC, and MSR.VSX become zero (off). in tm_una_ping()
[all …]
/Linux-v5.15/fs/xfs/
Dxfs_log.h28 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-v5.15/Documentation/devicetree/bindings/display/
Dbrcm,bcm2835-vec.yaml4 $id: http://devicetree.org/schemas/display/brcm,bcm2835-vec.yaml#
7 title: Broadcom VC4 (VideoCore4) VEC
15 - brcm,bcm2711-vec
16 - brcm,bcm2835-vec
39 vec: vec@7e806000 {
40 compatible = "brcm,bcm2835-vec";
/Linux-v5.15/drivers/crypto/cavium/nitrox/
Dnitrox_isr.c270 int vec; in nitrox_unregister_interrupts() local
277 vec = pci_irq_vector(pdev, i); in nitrox_unregister_interrupts()
278 irq_set_affinity_hint(vec, NULL); in nitrox_unregister_interrupts()
279 free_irq(vec, qvec); in nitrox_unregister_interrupts()
294 int nr_vecs, vec, cpu; in nitrox_register_interrupts() local
311 dev_err(DEV(ndev), "Error in getting vec count %d\n", nr_vecs); in nitrox_register_interrupts()
340 vec = pci_irq_vector(pdev, i); in nitrox_register_interrupts()
341 ret = request_irq(vec, nps_pkt_slc_isr, 0, qvec->name, qvec); in nitrox_register_interrupts()
348 irq_set_affinity_hint(vec, get_cpu_mask(cpu)); in nitrox_register_interrupts()
362 vec = pci_irq_vector(pdev, i); in nitrox_register_interrupts()
[all …]
/Linux-v5.15/net/smc/
Dsmc_clc.c345 struct kvec vec = {buf, buflen}; in smc_clc_wait_msg() local
360 iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, in smc_clc_wait_msg()
407 iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, recvlen); in smc_clc_wait_msg()
419 vec.iov_base = &tmp; in smc_clc_wait_msg()
420 vec.iov_len = SMC_CLC_RECV_BUF_LEN; in smc_clc_wait_msg()
424 iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, recvlen); in smc_clc_wait_msg()
451 struct kvec vec; in smc_clc_send_decline() local
470 vec.iov_base = &dclc; in smc_clc_send_decline()
471 vec.iov_len = sizeof(struct smc_clc_msg_decline); in smc_clc_send_decline()
472 len = kernel_sendmsg(smc->clcsock, &msg, &vec, 1, in smc_clc_send_decline()
[all …]
/Linux-v5.15/kernel/sched/
Dcpupri.c71 struct cpupri_vec *vec = &cp->pri_to_cpu[idx]; in __cpupri_find() local
74 if (!atomic_read(&(vec)->count)) in __cpupri_find()
100 if (cpumask_any_and(&p->cpus_mask, vec->mask) >= nr_cpu_ids) in __cpupri_find()
104 cpumask_and(lowest_mask, &p->cpus_mask, vec->mask); in __cpupri_find()
110 * second reads of vec->mask. If we hit this 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()
243 struct cpupri_vec *vec = &cp->pri_to_cpu[oldpri]; in cpupri_set() local
246 * Because the order of modification of the vec->count in cpupri_set()
[all …]
/Linux-v5.15/net/rds/
Drdma.c51 * Returns 0 if the vec is invalid. It is invalid if the number of bytes
55 static unsigned int rds_pages_in_vec(struct rds_iovec *vec) in rds_pages_in_vec() argument
57 if ((vec->addr + vec->bytes <= vec->addr) || in rds_pages_in_vec()
58 (vec->bytes > (u64)UINT_MAX)) in rds_pages_in_vec()
61 return ((vec->addr + vec->bytes + PAGE_SIZE - 1) >> PAGE_SHIFT) - in rds_pages_in_vec()
62 (vec->addr >> 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()
213 nr_pages = rds_pages_in_vec(&args->vec); in __rds_rdma_map()
[all …]
/Linux-v5.15/fs/
Dread_write.c900 static ssize_t vfs_readv(struct file *file, const struct iovec __user *vec, in vfs_readv() argument
908 ret = import_iovec(READ, vec, vlen, ARRAY_SIZE(iovstack), &iov, &iter); in vfs_readv()
917 static ssize_t vfs_writev(struct file *file, const struct iovec __user *vec, in vfs_writev() argument
925 ret = import_iovec(WRITE, vec, vlen, ARRAY_SIZE(iovstack), &iov, &iter); in vfs_writev()
935 static ssize_t do_readv(unsigned long fd, const struct iovec __user *vec, in do_readv() argument
947 ret = vfs_readv(f.file, vec, vlen, ppos, flags); in do_readv()
959 static ssize_t do_writev(unsigned long fd, const struct iovec __user *vec, in do_writev() argument
971 ret = vfs_writev(f.file, vec, vlen, ppos, flags); in do_writev()
989 static ssize_t do_preadv(unsigned long fd, const struct iovec __user *vec, in do_preadv() argument
1002 ret = vfs_readv(f.file, vec, vlen, &pos, flags); in do_preadv()
[all …]
/Linux-v5.15/security/apparmor/include/
Dlabel.h51 #define vec_last(VEC, SIZE) ((VEC)[(SIZE) - 1]) argument
52 #define vec_ns(VEC, SIZE) (vec_last((VEC), (SIZE))->ns) argument
53 #define vec_labelset(VEC, SIZE) (&vec_ns((VEC), (SIZE))->labels) argument
58 int aa_vec_unique(struct aa_profile **vec, int n, int flags);
59 struct aa_label *aa_vec_find_or_create_label(struct aa_profile **vec, int len,
134 struct aa_profile *vec[]; member
149 #define labels_ns(X) (vec_ns(&((X)->vec[0]), (X)->size))
151 #define labels_profile(X) ((X)->vec[(X)->size - 1])
158 for ((I).i = 0; ((P) = (L)->vec[(I).i]); ++((I).i))
162 for (++((I).i); ((P) = (L)->vec[(I).i]); ++((I).i))
[all …]
/Linux-v5.15/arch/powerpc/kvm/
Dbook3s.c135 void kvmppc_inject_interrupt(struct kvm_vcpu *vcpu, int vec, u64 flags) in kvmppc_inject_interrupt() argument
137 vcpu->kvm->arch.kvm_ops->inject_interrupt(vcpu, vec, flags); in kvmppc_inject_interrupt()
140 static int kvmppc_book3s_vec2irqprio(unsigned int vec) in kvmppc_book3s_vec2irqprio() argument
144 switch (vec) { in kvmppc_book3s_vec2irqprio()
168 unsigned int vec) in kvmppc_book3s_dequeue_irqprio() argument
172 clear_bit(kvmppc_book3s_vec2irqprio(vec), in kvmppc_book3s_dequeue_irqprio()
179 void kvmppc_book3s_queue_irqprio(struct kvm_vcpu *vcpu, unsigned int vec) in kvmppc_book3s_queue_irqprio() argument
183 set_bit(kvmppc_book3s_vec2irqprio(vec), in kvmppc_book3s_queue_irqprio()
186 printk(KERN_INFO "Queueing interrupt %x\n", vec); in kvmppc_book3s_queue_irqprio()
300 int vec = 0; in kvmppc_book3s_irqprio_deliver() local
[all …]
/Linux-v5.15/net/ceph/
Dbuffer.c20 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()
/Linux-v5.15/arch/arc/kernel/
Dtroubleshoot.c112 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-v5.15/arch/x86/kvm/
Dlapic.h94 void kvm_apic_clear_irr(struct kvm_vcpu *vcpu, int vec);
136 static inline void kvm_lapic_clear_vector(int vec, void *bitmap) in kvm_lapic_clear_vector() argument
138 clear_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in kvm_lapic_clear_vector()
141 static inline void kvm_lapic_set_vector(int vec, void *bitmap) in kvm_lapic_set_vector() argument
143 set_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in kvm_lapic_set_vector()
146 static inline void kvm_lapic_set_irr(int vec, struct kvm_lapic *apic) in kvm_lapic_set_irr() argument
148 kvm_lapic_set_vector(vec, apic->regs + APIC_IRR); in kvm_lapic_set_irr()

12345678910>>...12