Home
last modified time | relevance | path

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

12345678910>>...18

/openbmc/linux/drivers/media/common/videobuf2/
H A 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 …]
H A 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 …]
/openbmc/linux/rust/alloc/vec/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/bmcweb/test/include/
H A Dstr_utility_test.cpp17 std::vector<std::string> vec; in TEST() local
18 split(vec, "xx-abc-xx-abb", '-'); in TEST()
19 EXPECT_THAT(vec, ElementsAre("xx", "abc", "xx", "abb")); in TEST()
21 vec.clear(); in TEST()
22 split(vec, "", '-'); in TEST()
23 EXPECT_THAT(vec, ElementsAre("")); in TEST()
25 vec.clear(); in TEST()
26 split(vec, "foo/", '/'); in TEST()
27 EXPECT_THAT(vec, ElementsAre("foo", "")); in TEST()
29 vec.clear(); in TEST()
[all …]
/openbmc/u-boot/arch/m68k/lib/
H A Dinterrupts.c45 void irq_install_handler (int vec, interrupt_handler_t * handler, void *arg) in irq_install_handler() argument
47 if ((vec < 0) || (vec >= NR_IRQS)) { in irq_install_handler()
49 vec); in irq_install_handler()
53 irq_vecs[vec].handler = handler; in irq_install_handler()
54 irq_vecs[vec].arg = arg; in irq_install_handler()
57 void irq_free_handler (int vec) in irq_free_handler() argument
59 if ((vec < 0) || (vec >= NR_IRQS)) { in irq_free_handler()
63 irq_vecs[vec].handler = NULL; in irq_free_handler()
64 irq_vecs[vec].arg = NULL; in irq_free_handler()
87 int vec; in int_handler() local
[all …]
/openbmc/linux/include/media/
H A 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 …]
/openbmc/u-boot/arch/powerpc/cpu/mpc8xx/
H A Dinterrupts.c55 ulong vec, v_bit; in external_interrupt() local
61 vec = in_be32(&immr->im_siu_conf.sc_sivec); in external_interrupt()
62 irq = vec >> 26; in external_interrupt()
91 irq, vec); in external_interrupt()
109 uint vec; in cpm_interrupt() local
116 vec = in_be16(&immr->im_cpic.cpic_civr); in cpm_interrupt()
117 vec >>= 11; in cpm_interrupt()
119 if (cpm_vecs[vec].handler != NULL) { in cpm_interrupt()
120 (*cpm_vecs[vec].handler) (cpm_vecs[vec].arg); in cpm_interrupt()
122 clrbits_be32(&immr->im_cpic.cpic_cimr, 1 << vec); in cpm_interrupt()
[all …]
/openbmc/linux/tools/testing/selftests/mincore/
H A 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 …]
/openbmc/linux/arch/powerpc/sysdev/xics/
H A 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 …]
/openbmc/linux/drivers/gpu/drm/vc4/
H A 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 …]
/openbmc/linux/drivers/gpu/drm/vc4/tests/
H A 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 …]
/openbmc/linux/mm/
H A 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 …]
/openbmc/qemu/tests/tcg/ppc64/
H A Dvsx_f2i_nan.c135 vsx_float32_vec_t vec) in print_vsx_float32_vec_elements() argument
137 fprintf(stream, "%g, %g, %g, %g", (double)vec[0], (double)vec[1], in print_vsx_float32_vec_elements()
138 (double)vec[2], (double)vec[3]); in print_vsx_float32_vec_elements()
142 vsx_float64_vec_t vec) in print_vsx_float64_vec_elements() argument
144 fprintf(stream, "%.17g, %.17g", vec[0], vec[1]); in print_vsx_float64_vec_elements()
148 vsx_int32_vec_t vec) in print_vsx_int32_vec_elements() argument
150 fprintf(stream, "%d, %d, %d, %d", vec[0], vec[1], vec[2], vec[3]); in print_vsx_int32_vec_elements()
154 vsx_uint32_vec_t vec) in print_vsx_uint32_vec_elements() argument
156 fprintf(stream, "%u, %u, %u, %u", vec[0], vec[1], vec[2], vec[3]); in print_vsx_uint32_vec_elements()
160 vsx_int64_vec_t vec) in print_vsx_int64_vec_elements() argument
[all …]
/openbmc/linux/security/apparmor/
H A 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 …]
/openbmc/linux/crypto/
H A 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 …]
/openbmc/telemetry/src/utils/
H A Dcircular_vector.hpp9 vec(externalVec), maxSize(maxSizeIn) in CircularVector()
19 if (vec.size() == maxSize) in emplace()
21 vec.at(idx) = T(std::forward<Args>(args)...); in emplace()
25 vec.emplace_back(std::forward<Args>(args)...); in emplace()
32 vec.clear(); in clear()
44 return vec.size() == maxSize; in isFull()
49 return vec.begin(); in begin()
54 return vec.end(); in end()
63 std::vector<T>& vec; member in CircularVector
/openbmc/qemu/hw/net/
H A Dnet_tx_pkt.c42 struct iovec *vec; member
68 p->vec = g_new(struct iovec, max_frags + NET_TX_PKT_PL_START_FRAG); in net_tx_pkt_init()
74 p->vec[NET_TX_PKT_VHDR_FRAG].iov_base = &p->virt_hdr; in net_tx_pkt_init()
75 p->vec[NET_TX_PKT_VHDR_FRAG].iov_len = sizeof p->virt_hdr; in net_tx_pkt_init()
76 p->vec[NET_TX_PKT_L2HDR_FRAG].iov_base = &p->l2_hdr; in net_tx_pkt_init()
77 p->vec[NET_TX_PKT_L3HDR_FRAG].iov_base = &p->l3_hdr; in net_tx_pkt_init()
85 g_free(pkt->vec); in net_tx_pkt_uninit()
97 pkt->vec[NET_TX_PKT_L3HDR_FRAG].iov_len); in net_tx_pkt_update_ip_hdr_checksum()
101 pkt->vec[NET_TX_PKT_L3HDR_FRAG].iov_len); in net_tx_pkt_update_ip_hdr_checksum()
111 void *ip_hdr = pkt->vec[NET_TX_PKT_L3HDR_FRAG].iov_base; in net_tx_pkt_update_ip_checksums()
[all …]
/openbmc/openbmc/meta-security/recipes-ids/suricata/files/
H A DCVE-2024-38535.patch26 vec.extend_from_slice(&block.value);
30 vec.extend_from_slice(&[b',', b' ']);
31 vec.extend_from_slice(&block.value);
35 vec.extend_from_slice(&[b',', b' ']);
36 vec.extend_from_slice(&block.value);
45 vec.extend_from_slice(s);
47 vec.extend_from_slice(&[b',', b' ']);
48 vec.extend_from_slice(&block.value);
52 vec.extend_from_slice(&[b',', b' ']);
53 vec.extend_from_slice(&block.value);
/openbmc/linux/rust/alloc/
H A 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 …]
/openbmc/linux/Documentation/devicetree/bindings/display/
H A 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";
/openbmc/linux/tools/testing/selftests/powerpc/tm/
H A 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>>...18