Home
last modified time | relevance | path

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

12345678910>>...14

/Linux-v6.6/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-v6.6/rust/alloc/vec/
Dmod.rs4 //! `Vec<T>`.
13 //! You can explicitly create a [`Vec`] with [`Vec::new`]:
16 //! let v: Vec<i32> = Vec::new();
19 //! ...or by using the [`vec!`] macro:
22 //! let v: Vec<i32> = vec![];
24 //! let v = vec![1, 2, 3, 4, 5];
26 //! let v = vec![0; 10]; // ten zeroes
33 //! let mut v = vec![1, 2];
41 //! let mut v = vec![1, 2];
49 //! let mut v = vec![1, 2, 3];
[all …]
Ddrain.rs10 use super::Vec;
12 /// A draining iterator for `Vec<T>`.
14 /// This `struct` is created by [`Vec::drain`].
20 /// let mut v = vec![0, 1, 2];
21 /// let iter: std::vec::Drain<'_, _> = v.drain(..);
35 pub(super) vec: NonNull<Vec<T, A>>, field
51 /// let mut vec = vec!['a', 'b', 'c'];
52 /// let mut drain = vec.drain(..);
68 unsafe { self.vec.as_ref().allocator() } in allocator()
71 /// Keep unyielded elements in the source `Vec`.
[all …]
Dpartial_eq.rs7 use super::Vec;
25 __impl_slice_eq1! { [A1: Allocator, A2: Allocator] Vec<T, A1>, Vec<U, A2>, #[stable(feature = "rust…
26 __impl_slice_eq1! { [A: Allocator] Vec<T, A>, &[U], #[stable(feature = "rust1", since = "1.0.0")] }
27 __impl_slice_eq1! { [A: Allocator] Vec<T, A>, &mut [U], #[stable(feature = "rust1", since = "1.0.0"…
28 __impl_slice_eq1! { [A: Allocator] &[T], Vec<U, A>, #[stable(feature = "partialeq_vec_for_ref_slice…
29 __impl_slice_eq1! { [A: Allocator] &mut [T], Vec<U, A>, #[stable(feature = "partialeq_vec_for_ref_s…
30 __impl_slice_eq1! { [A: Allocator] Vec<T, A>, [U], #[stable(feature = "partialeq_vec_for_slice", si…
31 __impl_slice_eq1! { [A: Allocator] [T], Vec<U, A>, #[stable(feature = "partialeq_vec_for_slice", si…
33 __impl_slice_eq1! { [A: Allocator] Cow<'_, [T]>, Vec<U, A> where T: Clone, #[stable(feature = "rust…
38 __impl_slice_eq1! { [A: Allocator, const N: usize] Vec<T, A>, [U; N], #[stable(feature = "rust1", s…
[all …]
Ddrain_filter.rs8 use super::Vec;
12 /// This struct is created by [`Vec::drain_filter`].
20 /// let mut v = vec![0, 1, 2];
21 /// let iter: std::vec::DrainFilter<'_, _, _> = v.drain_filter(|x| *x % 2 == 0);
33 pub(super) vec: &'a mut Vec<T, A>, field
38 /// The original length of `vec` prior to draining.
45 /// backshifted in the `vec`, but no further items will be dropped or
58 self.vec.allocator() in allocator()
61 /// Keep unyielded elements in the source `Vec`.
69 /// let mut vec = vec!['a', 'b', 'c'];
[all …]
Dspec_extend.rs8 use super::{IntoIter, Vec};
10 // Specialization trait used for Vec::extend
16 // Specialization trait used for Vec::try_extend
22 impl<T, I, A: Allocator> SpecExtend<T, I> for Vec<T, A> implementation
31 impl<T, I, A: Allocator> TrySpecExtend<T, I> for Vec<T, A> implementation
41 impl<T, I, A: Allocator> SpecExtend<T, I> for Vec<T, A> implementation
50 impl<T, I, A: Allocator> TrySpecExtend<T, I> for Vec<T, A> implementation
60 impl<T, A: Allocator> SpecExtend<T, IntoIter<T>> for Vec<T, A> { implementation
69 impl<T, A: Allocator> TrySpecExtend<T, IntoIter<T>> for Vec<T, A> { implementation
80 impl<'a, T: 'a, I, A: Allocator + 'a> SpecExtend<&'a T, I> for Vec<T, A> implementation
[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()
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-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 …]
/Linux-v6.6/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)); \
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()
[all …]
/Linux-v6.6/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-v6.6/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 long accum_vec_flags(struct aa_profile **vec, int n) in accum_vec_flags() argument
205 AA_BUG(!vec); in accum_vec_flags()
[all …]
/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/rust/alloc/
Dslice.rs33 use crate::vec::Vec;
79 // HACK(japaric) needed for the implementation of `vec!` macro during testing
84 // HACK(japaric) needed for the implementation of `Vec::clone` during testing
97 use crate::vec::Vec;
100 // `vec!` macro mostly and causes perf regression. See #71204 for
102 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> { in into_vec()
106 Vec::from_raw_parts_in(b as *mut T, len, len, alloc) in into_vec()
112 pub fn to_vec<T: ConvertVec, A: Allocator>(s: &[T], alloc: A) -> Vec<T, A> { in to_vec()
118 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> in to_vec()
126 default fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec()
[all …]
/Linux-v6.6/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-v6.6/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-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
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-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()
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-v6.6/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-v6.6/rust/macros/
Dpin_data.rs32 let mut res = vec![tt]; in pin_data()
59 .collect::<Vec<_>>(); in pin_data()
65 vec![tt] in pin_data()
70 .collect::<Vec<_>>(); in pin_data()
90 struct_name: &Vec<TokenTree>, in replace_self_and_deny_type_defs()
93 ) -> Vec<TokenTree> { in replace_self_and_deny_type_defs()
115 vec![tt] in replace_self_and_deny_type_defs()
118 TokenTree::Literal(_) | TokenTree::Punct(_) | TokenTree::Ident(_) => vec![tt], in replace_self_and_deny_type_defs()
119 TokenTree::Group(g) => vec![TokenTree::Group(Group::new( in replace_self_and_deny_type_defs()
/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 …]

12345678910>>...14