Home
last modified time | relevance | path

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

12345678910>>...26

/kernel/linux/linux-6.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 …]
/kernel/linux/linux-5.10/mm/
Dframe_vector.c16 * @vec: structure which receives pages / pfns of the addresses mapped.
19 * This function maps virtual addresses from @start and fills @vec structure
39 unsigned int gup_flags, 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()
76 vec->got_ref = true; in get_vaddr_frames()
77 vec->is_pfns = false; in get_vaddr_frames()
79 gup_flags, (struct page **)(vec->ptrs), &locked); in get_vaddr_frames()
84 vec->nr_frames = 0; in get_vaddr_frames()
92 vec->nr_frames = ret; in get_vaddr_frames()
[all …]
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 …]
/kernel/linux/linux-6.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 …]
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> SpecExtend<&'a T, I> for Vec<T, A> implementation
[all …]
Dextract_if.rs7 use super::Vec;
11 /// This struct is created by [`Vec::extract_if`].
19 /// let mut v = vec![0, 1, 2];
20 /// let iter: std::vec::ExtractIf<'_, _, _> = v.extract_if(|x| *x % 2 == 0);
33 pub(super) vec: &'a mut Vec<T, A>, field
38 /// The original length of `vec` prior to draining.
52 self.vec.allocator() in allocator()
67 let v = slice::from_raw_parts_mut(self.vec.as_mut_ptr(), self.old_len); in next()
103 // elements and tell the vec that they still exist. The backshift in drop()
106 let ptr = self.vec.as_mut_ptr(); in drop()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/
Dvc4_vec.c9 * The VEC encoder generates PAL or NTSC composite video output.
40 /* VEC Registers */
157 /* General VEC hardware state. */
173 #define VEC_READ(offset) readl(vec->regs + (offset))
174 #define VEC_WRITE(offset, val) writel(val, vec->regs + (offset))
176 /* VC4 VEC encoder KMS struct */
179 struct vc4_vec *vec; member
188 /* VC4 VEC connector KMS struct */
191 struct vc4_vec *vec; member
215 void (*mode_set)(struct vc4_vec *vec);
[all …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/mincore/
Dmincore_selftest.c35 unsigned char vec[1]; in TEST() local
41 retval = mincore(0, 0, vec); in TEST()
46 retval = mincore(NULL, page_size, vec); in TEST()
59 retval = mincore(addr + 1, page_size, vec); in TEST()
65 retval = mincore(addr, -1, vec); in TEST()
69 /* <vec> argument points to an illegal address */ in TEST()
86 unsigned char vec[1]; in TEST() local
100 retval = mincore(addr, page_size, vec); in TEST()
102 ASSERT_EQ(0, vec[0]) { in TEST()
109 retval = mincore(addr, page_size, vec); in TEST()
[all …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-5.10/crypto/
Dtestmgr.c1123 const struct hash_testvec *vec, in build_hash_sglist() argument
1131 kv.iov_base = (void *)vec->plaintext; in build_hash_sglist()
1132 kv.iov_len = vec->psize; in build_hash_sglist()
1133 iov_iter_kvec(&input, WRITE, &kv, 1, vec->psize); in build_hash_sglist()
1134 return build_test_sglist(tsgl, cfg->src_divs, alignmask, vec->psize, in build_hash_sglist()
1140 const struct hash_testvec *vec, in check_hash_result() argument
1145 if (memcmp(result, vec->digest, digestsize) != 0) { in check_hash_result()
1175 const struct hash_testvec *vec, in test_shash_vec_cfg() argument
1192 if (vec->ksize) { in test_shash_vec_cfg()
1193 err = do_setkey(crypto_shash_setkey, tfm, vec->key, vec->ksize, in test_shash_vec_cfg()
[all …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/
Dvideobuf2-memops.c42 struct frame_vector *vec; in vb2_create_framevec() local
48 vec = frame_vector_create(nr); in vb2_create_framevec()
49 if (!vec) in vb2_create_framevec()
51 ret = get_vaddr_frames(start & PAGE_MASK, nr, flags, vec); in vb2_create_framevec()
59 return vec; in vb2_create_framevec()
61 put_vaddr_frames(vec); in vb2_create_framevec()
63 frame_vector_destroy(vec); in vb2_create_framevec()
70 * @vec: vector of pfns / pages to release
72 * This releases references to all pages in the vector @vec (if corresponding
75 void vb2_destroy_framevec(struct frame_vector *vec) in vb2_destroy_framevec() argument
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.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 …]

12345678910>>...26