Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 25 of 240) sorted by relevance

12345678910

/Linux-v6.6/drivers/media/common/videobuf2/
Dframe_vector.c41 struct frame_vector *vec) in get_vaddr_frames() argument
49 if (WARN_ON_ONCE(nr_frames > vec->nr_allocated)) in get_vaddr_frames()
50 nr_frames = vec->nr_allocated; in get_vaddr_frames()
58 (struct page **)(vec->ptrs)); in get_vaddr_frames()
59 vec->got_ref = true; in get_vaddr_frames()
60 vec->is_pfns = false; in get_vaddr_frames()
61 vec->nr_frames = ret; in get_vaddr_frames()
66 vec->nr_frames = 0; in get_vaddr_frames()
80 void put_vaddr_frames(struct frame_vector *vec) in put_vaddr_frames() argument
84 if (!vec->got_ref) in put_vaddr_frames()
[all …]
Dvideobuf2-memops.c44 struct frame_vector *vec; in vb2_create_framevec() local
49 vec = frame_vector_create(nr); in vb2_create_framevec()
50 if (!vec) in vb2_create_framevec()
52 ret = get_vaddr_frames(start & PAGE_MASK, nr, write, vec); in vb2_create_framevec()
60 return vec; in vb2_create_framevec()
62 put_vaddr_frames(vec); in vb2_create_framevec()
64 frame_vector_destroy(vec); in vb2_create_framevec()
76 void vb2_destroy_framevec(struct frame_vector *vec) in vb2_destroy_framevec() argument
78 put_vaddr_frames(vec); in vb2_destroy_framevec()
79 frame_vector_destroy(vec); in vb2_destroy_framevec()
Dvideobuf2-vmalloc.c27 struct frame_vector *vec; member
77 struct frame_vector *vec; in vb2_vmalloc_get_userptr() local
88 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-v6.6/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()
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()
110 ASSERT_EQ(1, vec[0]) { in TEST()
[all …]
/Linux-v6.6/include/media/
Dframe_vector.h17 void frame_vector_destroy(struct frame_vector *vec);
19 bool write, 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-v6.6/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.c119 unsigned int vec = xirr & 0x00ffffff; in icp_native_get_irq() local
122 if (vec == XICS_IRQ_SPURIOUS) in icp_native_get_irq()
125 irq = irq_find_mapping(xics_host, vec); in icp_native_get_irq()
127 xics_push_cppr(vec); in icp_native_get_irq()
132 xics_mask_unknown_vec(vec); in icp_native_get_irq()
176 unsigned int vec = xirr & 0x00ffffff; in icp_native_flush_interrupt() local
178 if (vec == XICS_IRQ_SPURIOUS) in icp_native_flush_interrupt()
180 if (vec == XICS_IPI) { in icp_native_flush_interrupt()
187 vec); in icp_native_flush_interrupt()
188 xics_mask_unknown_vec(vec); in icp_native_flush_interrupt()
/Linux-v6.6/mm/
Dmincore.c30 unsigned char *vec = walk->private; in mincore_hugetlb() local
37 for (; addr != end; vec++, addr += PAGE_SIZE) in mincore_hugetlb()
38 *vec = present; in mincore_hugetlb()
39 walk->private = vec; in mincore_hugetlb()
73 struct vm_area_struct *vma, unsigned char *vec) in __mincore_unmapped_range() argument
83 vec[i] = mincore_page(vma->vm_file->f_mapping, pgoff); in __mincore_unmapped_range()
86 vec[i] = 0; in __mincore_unmapped_range()
106 unsigned char *vec = walk->private; in mincore_pte_range() local
111 memset(vec, 1, nr); in mincore_pte_range()
127 vma, vec); in mincore_pte_range()
[all …]
/Linux-v6.6/crypto/
Dtestmgr.c1224 const struct hash_testvec *vec, in build_hash_sglist() argument
1232 kv.iov_base = (void *)vec->plaintext; in build_hash_sglist()
1233 kv.iov_len = vec->psize; in build_hash_sglist()
1234 iov_iter_kvec(&input, ITER_SOURCE, &kv, 1, vec->psize); in build_hash_sglist()
1235 return build_test_sglist(tsgl, cfg->src_divs, alignmask, vec->psize, in build_hash_sglist()
1241 const struct hash_testvec *vec, in check_hash_result() argument
1246 if (memcmp(result, vec->digest, digestsize) != 0) { in check_hash_result()
1270 static int test_shash_vec_cfg(const struct hash_testvec *vec, in test_shash_vec_cfg() argument
1288 if (vec->ksize) { in test_shash_vec_cfg()
1289 err = do_setkey(crypto_shash_setkey, tfm, vec->key, vec->ksize, in test_shash_vec_cfg()
[all …]
/Linux-v6.6/drivers/gpu/drm/vc4/
Dvc4_vec.c213 readl(vec->regs + (offset)); \
219 writel(val, vec->regs + (offset)); \
374 struct vc4_vec *vec = connector_to_vc4_vec(connector); in vc4_vec_connector_set_property() local
376 if (property != vec->legacy_tv_mode_property) in vc4_vec_connector_set_property()
422 struct vc4_vec *vec = connector_to_vc4_vec(connector); in vc4_vec_connector_get_property() local
424 if (property != vec->legacy_tv_mode_property) in vc4_vec_connector_get_property()
478 static int vc4_vec_connector_init(struct drm_device *dev, struct vc4_vec *vec) in vc4_vec_connector_init() argument
480 struct drm_connector *connector = &vec->connector; in vc4_vec_connector_init()
502 vec->legacy_tv_mode_property = prop; in vc4_vec_connector_init()
506 drm_connector_attach_encoder(connector, &vec->encoder.base); in vc4_vec_connector_init()
[all …]
/Linux-v6.6/security/apparmor/
Dlabel.c186 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 long accum_vec_flags(struct aa_profile **vec, int n) in accum_vec_flags() argument
205 AA_BUG(!vec); in accum_vec_flags()
208 u |= vec[i]->label.flags & (FLAG_DEBUG1 | FLAG_DEBUG2 | in accum_vec_flags()
210 if (!(u & vec[i]->label.flags & FLAG_UNCONFINED)) in accum_vec_flags()
227 static inline int unique(struct aa_profile **vec, int n) in unique() argument
232 AA_BUG(!vec); in unique()
236 int res = profile_cmp(vec[pos], vec[i]); in unique()
[all …]
/Linux-v6.6/kernel/sched/
Dcpupri.c70 struct cpupri_vec *vec = &cp->pri_to_cpu[idx]; in __cpupri_find() local
73 if (!atomic_read(&(vec)->count)) in __cpupri_find()
99 if (cpumask_any_and(&p->cpus_mask, vec->mask) >= nr_cpu_ids) in __cpupri_find()
103 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()
243 struct cpupri_vec *vec = &cp->pri_to_cpu[oldpri]; in cpupri_set() local
264 atomic_dec(&(vec)->count); in cpupri_set()
266 cpumask_clear_cpu(cpu, vec->mask); in cpupri_set()
[all …]
/Linux-v6.6/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-v6.6/rust/alloc/vec/
Ddrain.rs35 pub(super) vec: NonNull<Vec<T, A>>, field
68 unsafe { self.vec.as_ref().allocator() } in allocator()
108 let source_vec = this.vec.as_mut(); in keep_rest()
185 let source_vec = self.0.vec.as_mut(); in drop()
203 let mut vec = self.vec; in drop() localVariable
209 let vec = vec.as_mut(); in drop() localVariable
210 let old_len = vec.len(); in drop()
211 vec.set_len(old_len + drop_len + self.tail_len); in drop()
212 vec.truncate(old_len + self.tail_len); in drop()
236 let vec_ptr = vec.as_mut().as_mut_ptr(); in drop()
/Linux-v6.6/arch/x86/kvm/
Dfpu.h9 #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-v6.6/net/rds/
Drdma.c55 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()
228 args->vec.addr, args->vec.bytes, nr_pages); in __rds_rdma_map()
[all …]
/Linux-v6.6/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
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()
363 ret = request_irq(vec, nps_core_int_isr, 0, qvec->name, qvec); in nitrox_register_interrupts()
[all …]
/Linux-v6.6/arch/alpha/kernel/
Dsetup.c442 struct alpha_machine_vector *vec = NULL; in setup_arch() local
506 vec = get_sysvec_byname(p+9); in setup_arch()
572 if (!vec) { in setup_arch()
573 vec = get_sysvec(hwrpb->sys_type, hwrpb->sys_variation, in setup_arch()
577 if (!vec) { in setup_arch()
582 if (vec != &alpha_mv) { in setup_arch()
583 alpha_mv = *vec; in setup_arch()
851 struct alpha_machine_vector *vec; in get_sysvec() local
854 vec = NULL; in get_sysvec()
856 vec = systype_vecs[type]; in get_sysvec()
[all …]
/Linux-v6.6/net/smc/
Dsmc_clc.c675 struct kvec vec = {buf, buflen}; in smc_clc_wait_msg() local
690 iov_iter_kvec(&msg.msg_iter, ITER_DEST, &vec, 1, in smc_clc_wait_msg()
737 iov_iter_kvec(&msg.msg_iter, ITER_DEST, &vec, 1, recvlen); in smc_clc_wait_msg()
749 vec.iov_base = &tmp; in smc_clc_wait_msg()
750 vec.iov_len = SMC_CLC_RECV_BUF_LEN; in smc_clc_wait_msg()
754 iov_iter_kvec(&msg.msg_iter, ITER_DEST, &vec, 1, recvlen); in smc_clc_wait_msg()
783 struct kvec vec; in smc_clc_send_decline() local
810 vec.iov_base = &dclc; in smc_clc_send_decline()
811 vec.iov_len = send_len; in smc_clc_send_decline()
812 len = kernel_sendmsg(smc->clcsock, &msg, &vec, 1, send_len); in smc_clc_send_decline()
[all …]
/Linux-v6.6/arch/um/os-Linux/
Dprocess.c228 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-v6.6/tools/perf/util/bpf_skel/
Dkwork_trace.bpf.c264 unsigned int vec = ctx->vec; in report_softirq_entry() local
268 .id = (__u64)vec, in report_softirq_entry()
271 if (vec < NR_SOFTIRQS) { in report_softirq_entry()
274 softirq_name_list[vec]); in report_softirq_entry()
286 .id = (__u64)ctx->vec, in report_softirq_exit()
295 unsigned int vec = ctx->vec; in latency_softirq_raise() local
299 .id = (__u64)vec, in latency_softirq_raise()
302 if (vec < NR_SOFTIRQS) { in latency_softirq_raise()
305 softirq_name_list[vec]); in latency_softirq_raise()
317 .id = (__u64)ctx->vec, in latency_softirq_entry()
/Linux-v6.6/net/ceph/
Dbuffer.c20 b->vec.iov_base = 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-v6.6/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-v6.6/fs/
Dread_write.c905 static ssize_t vfs_readv(struct file *file, const struct iovec __user *vec, in vfs_readv() argument
913 ret = import_iovec(ITER_DEST, vec, vlen, ARRAY_SIZE(iovstack), &iov, &iter); in vfs_readv()
922 static ssize_t vfs_writev(struct file *file, const struct iovec __user *vec, in vfs_writev() argument
930 ret = import_iovec(ITER_SOURCE, vec, vlen, ARRAY_SIZE(iovstack), &iov, &iter); in vfs_writev()
940 static ssize_t do_readv(unsigned long fd, const struct iovec __user *vec, in do_readv() argument
952 ret = vfs_readv(f.file, vec, vlen, ppos, flags); in do_readv()
964 static ssize_t do_writev(unsigned long fd, const struct iovec __user *vec, in do_writev() argument
976 ret = vfs_writev(f.file, vec, vlen, ppos, flags); in do_writev()
994 static ssize_t do_preadv(unsigned long fd, const struct iovec __user *vec, in do_preadv() argument
1007 ret = vfs_readv(f.file, vec, vlen, &pos, flags); in do_preadv()
[all …]

12345678910