Home
last modified time | relevance | path

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

12345678910>>...14

/linux-6.12.1/drivers/media/common/videobuf2/
Dframe_vector.c18 * @vec: structure which receives pages / pfns of the addresses mapped.
21 * This function maps virtual addresses from @start and fills @vec structure
41 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()
[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()
71 * @vec: vector of pfns / pages to release
73 * This releases references to all pages in the vector @vec (if corresponding
76 void vb2_destroy_framevec(struct frame_vector *vec) in vb2_destroy_framevec() argument
[all …]
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-6.12.1/tools/testing/selftests/mm/
Dpagemap_ioctl.c43 static long pagemap_ioctl(void *start, int len, void *vec, int vec_len, int flag, in pagemap_ioctl() argument
51 arg.vec = (uintptr_t)vec; in pagemap_ioctl()
64 static long pagemap_ioc(void *start, int len, void *vec, int vec_len, int flag, in pagemap_ioc() argument
73 arg.vec = (uintptr_t)vec; in pagemap_ioc()
188 char *mem, *vec; in userfaultfd_tests() local
211 vec = malloc(sizeof(struct page_region) * vec_size); in userfaultfd_tests()
213 written = pagemap_ioctl(mem, mem_size, vec, 1, PM_SCAN_WP_MATCHING | PM_SCAN_CHECK_WPASYNC, in userfaultfd_tests()
222 free(vec); in userfaultfd_tests()
226 int get_reads(struct page_region *vec, int vec_size) in get_reads() argument
231 sum += LEN(vec[i]); in get_reads()
[all …]
/linux-6.12.1/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-6.12.1/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-6.12.1/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 …]
/linux-6.12.1/drivers/gpu/drm/vc4/
Dvc4_vec.c9 * The VEC encoder generates PAL or NTSC composite video output.
41 /* VEC Registers */
88 * (which itself is the VEC clock divided by 8).
193 /* General VEC hardware state. */
213 readl(vec->regs + (offset)); \
219 writel(val, vec->regs + (offset)); \
392 struct vc4_vec *vec = connector_to_vc4_vec(connector); in vc4_vec_connector_set_property() local
394 if (property != vec->legacy_tv_mode_property) in vc4_vec_connector_set_property()
444 struct vc4_vec *vec = connector_to_vc4_vec(connector); in vc4_vec_connector_get_property() local
446 if (property != vec->legacy_tv_mode_property) in vc4_vec_connector_get_property()
[all …]
/linux-6.12.1/drivers/gpu/drm/vc4/tests/
Dvc4_test_pv_muxing.c205 VC4_PV_MUXING_TEST("1 output: VEC",
214 VC4_PV_MUXING_TEST("2 outputs: DSI0, VEC",
226 VC4_PV_MUXING_TEST("2 outputs: DPI, VEC",
241 VC4_PV_MUXING_TEST("2 outputs: VEC, DSI1",
244 VC4_PV_MUXING_TEST("2 outputs: VEC, TXP",
255 VC4_PV_MUXING_TEST("3 outputs: DSI0, VEC, DSI1",
259 VC4_PV_MUXING_TEST("3 outputs: DSI0, VEC, TXP",
271 VC4_PV_MUXING_TEST("3 outputs: DPI, VEC, DSI1",
275 VC4_PV_MUXING_TEST("3 outputs: DPI, VEC, TXP",
292 VC4_PV_MUXING_TEST("HDMI0/VEC Conflict",
[all …]
/linux-6.12.1/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-6.12.1/rust/kernel/alloc/
Dvec_ext.rs3 //! Extensions to [`Vec`] for fallible allocations.
6 use alloc::vec::Vec;
8 /// Extensions to [`Vec`].
10 /// Creates a new [`Vec`] instance with at least the given capacity.
15 /// let v = Vec::<u32>::with_capacity(20, GFP_KERNEL)?;
22 /// Appends an element to the back of the [`Vec`] instance.
27 /// let mut v = Vec::new();
37 /// Pushes clones of the elements of slice into the [`Vec`] instance.
42 /// let mut v = Vec::new();
61 /// let mut v = Vec::new();
[all …]
/linux-6.12.1/crypto/
Dtestmgr.c1249 const struct hash_testvec *vec, in build_hash_sglist() argument
1257 kv.iov_base = (void *)vec->plaintext; in build_hash_sglist()
1258 kv.iov_len = vec->psize; in build_hash_sglist()
1259 iov_iter_kvec(&input, ITER_SOURCE, &kv, 1, vec->psize); in build_hash_sglist()
1260 return build_test_sglist(tsgl, cfg->src_divs, alignmask, vec->psize, in build_hash_sglist()
1266 const struct hash_testvec *vec, in check_hash_result() argument
1271 if (memcmp(result, vec->digest, digestsize) != 0) { in check_hash_result()
1295 static int test_shash_vec_cfg(const struct hash_testvec *vec, in test_shash_vec_cfg() argument
1312 if (vec->ksize) { in test_shash_vec_cfg()
1313 err = do_setkey(crypto_shash_setkey, tfm, vec->key, vec->ksize, in test_shash_vec_cfg()
[all …]
/linux-6.12.1/security/apparmor/
Dlabel.c187 static bool vec_is_stale(struct aa_profile **vec, int n) in vec_is_stale() argument
191 AA_BUG(!vec); in vec_is_stale()
194 if (profile_is_stale(vec[i])) in vec_is_stale()
201 static long accum_vec_flags(struct aa_profile **vec, int n) in accum_vec_flags() argument
206 AA_BUG(!vec); in accum_vec_flags()
209 u |= vec[i]->label.flags & (FLAG_DEBUG1 | FLAG_DEBUG2 | in accum_vec_flags()
211 if (!(u & vec[i]->label.flags & FLAG_UNCONFINED)) in accum_vec_flags()
224 * assumes vec is sorted
225 * Assumes @vec has null terminator at vec[n], and will null terminate
226 * vec[n - dups]
[all …]
/linux-6.12.1/drivers/irqchip/
Dirq-riscv-imsic-state.c130 struct imsic_vector *vec, *mvec; in __imsic_local_sync() local
138 vec = &lpriv->vectors[i]; in __imsic_local_sync()
140 if (READ_ONCE(vec->enable)) in __imsic_local_sync()
151 mvec = READ_ONCE(vec->move); in __imsic_local_sync()
152 WRITE_ONCE(vec->move, NULL); in __imsic_local_sync()
153 if (mvec && mvec != vec) { in __imsic_local_sync()
237 void imsic_vector_mask(struct imsic_vector *vec) in imsic_vector_mask() argument
241 lpriv = per_cpu_ptr(imsic->lpriv, vec->cpu); in imsic_vector_mask()
242 if (WARN_ON_ONCE(&lpriv->vectors[vec->local_id] != vec)) in imsic_vector_mask()
252 WRITE_ONCE(vec->enable, false); in imsic_vector_mask()
[all …]
Dirq-riscv-imsic-platform.c55 struct imsic_vector *vec = irq_data_get_irq_chip_data(d); in imsic_irq_retrigger() local
58 if (WARN_ON(!vec)) in imsic_irq_retrigger()
61 local = per_cpu_ptr(imsic->global.local, vec->cpu); in imsic_irq_retrigger()
62 writel_relaxed(vec->local_id, local->msi_va); in imsic_irq_retrigger()
66 static void imsic_irq_compose_vector_msg(struct imsic_vector *vec, struct msi_msg *msg) in imsic_irq_compose_vector_msg() argument
70 if (WARN_ON(!vec)) in imsic_irq_compose_vector_msg()
73 if (WARN_ON(!imsic_cpu_page_phys(vec->cpu, 0, &msi_addr))) in imsic_irq_compose_vector_msg()
78 msg->data = vec->local_id; in imsic_irq_compose_vector_msg()
87 static void imsic_msi_update_msg(struct irq_data *d, struct imsic_vector *vec) in imsic_msi_update_msg() argument
91 imsic_irq_compose_vector_msg(vec, &msg); in imsic_msi_update_msg()
[all …]
Dirq-riscv-imsic-state.h80 void imsic_vector_mask(struct imsic_vector *vec);
81 void imsic_vector_unmask(struct imsic_vector *vec);
83 static inline bool imsic_vector_isenabled(struct imsic_vector *vec) in imsic_vector_isenabled() argument
85 return READ_ONCE(vec->enable); in imsic_vector_isenabled()
88 static inline struct imsic_vector *imsic_vector_get_move(struct imsic_vector *vec) in imsic_vector_get_move() argument
90 return READ_ONCE(vec->move); in imsic_vector_get_move()
100 void imsic_vector_debug_show(struct seq_file *m, struct imsic_vector *vec, int ind);
/linux-6.12.1/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-6.12.1/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
42 vec: vec@7e806000 {
43 compatible = "brcm,bcm2835-vec";
/linux-6.12.1/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-6.12.1/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()
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-6.12.1/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-6.12.1/rust/macros/
Dpin_data.rs33 let mut res = vec![tt]; in pin_data()
60 .collect::<Vec<_>>(); in pin_data()
66 vec![tt] in pin_data()
71 .collect::<Vec<_>>(); in pin_data()
92 struct_name: &Vec<TokenTree>, in replace_self_and_deny_type_defs()
95 ) -> Vec<TokenTree> { in replace_self_and_deny_type_defs()
117 vec![tt] in replace_self_and_deny_type_defs()
120 TokenTree::Literal(_) | TokenTree::Punct(_) | TokenTree::Ident(_) => vec![tt], in replace_self_and_deny_type_defs()
121 TokenTree::Group(g) => vec![TokenTree::Group(Group::new( in replace_self_and_deny_type_defs()
/linux-6.12.1/net/smc/
Dsmc_clc.c686 struct kvec vec = {buf, buflen}; in smc_clc_wait_msg() local
701 iov_iter_kvec(&msg.msg_iter, ITER_DEST, &vec, 1, in smc_clc_wait_msg()
748 iov_iter_kvec(&msg.msg_iter, ITER_DEST, &vec, 1, recvlen); in smc_clc_wait_msg()
760 vec.iov_base = &tmp; in smc_clc_wait_msg()
761 vec.iov_len = SMC_CLC_RECV_BUF_LEN; in smc_clc_wait_msg()
765 iov_iter_kvec(&msg.msg_iter, ITER_DEST, &vec, 1, recvlen); in smc_clc_wait_msg()
794 struct kvec vec; in smc_clc_send_decline() local
821 vec.iov_base = &dclc; in smc_clc_send_decline()
822 vec.iov_len = send_len; in smc_clc_send_decline()
823 len = kernel_sendmsg(smc->clcsock, &msg, &vec, 1, send_len); in smc_clc_send_decline()
[all …]
/linux-6.12.1/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,
132 struct aa_profile *vec[]; member
147 #define labels_ns(X) (vec_ns(&((X)->vec[0]), (X)->size))
150 #define labels_profile(X) ((X)->vec[(X)->size - 1])
157 for ((I).i = 0; ((P) = (L)->vec[(I).i]); ++((I).i))
161 for (++((I).i); ((P) = (L)->vec[(I).i]); ++((I).i))
[all …]

12345678910>>...14