/Linux-v6.1/drivers/media/common/videobuf2/ |
D | frame_vector.c | 17 * @vec: structure which receives pages / pfns of the addresses mapped. 20 * This function maps virtual addresses from @start and fills @vec structure 36 struct frame_vector *vec) in get_vaddr_frames() argument 43 if (WARN_ON_ONCE(nr_frames > vec->nr_allocated)) in get_vaddr_frames() 44 nr_frames = vec->nr_allocated; in get_vaddr_frames() 50 (struct page **)(vec->ptrs)); in get_vaddr_frames() 51 vec->got_ref = true; in get_vaddr_frames() 52 vec->is_pfns = false; in get_vaddr_frames() 53 vec->nr_frames = ret; in get_vaddr_frames() 60 vec->nr_frames = 0; in get_vaddr_frames() [all …]
|
D | videobuf2-memops.c | 42 struct frame_vector *vec; in vb2_create_framevec() local 47 vec = frame_vector_create(nr); in vb2_create_framevec() 48 if (!vec) in vb2_create_framevec() 50 ret = get_vaddr_frames(start & PAGE_MASK, nr, vec); in vb2_create_framevec() 58 return vec; in vb2_create_framevec() 60 put_vaddr_frames(vec); in vb2_create_framevec() 62 frame_vector_destroy(vec); in vb2_create_framevec() 69 * @vec: vector of pfns / pages to release 71 * This releases references to all pages in the vector @vec (if corresponding 74 void vb2_destroy_framevec(struct frame_vector *vec) in vb2_destroy_framevec() argument [all …]
|
D | videobuf2-vmalloc.c | 27 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() 89 if (IS_ERR(vec)) { in vb2_vmalloc_get_userptr() 90 ret = PTR_ERR(vec); in vb2_vmalloc_get_userptr() 93 buf->vec = vec; in vb2_vmalloc_get_userptr() 94 n_pages = frame_vector_count(vec); in vb2_vmalloc_get_userptr() 95 if (frame_vector_to_pages(vec) < 0) { in vb2_vmalloc_get_userptr() 96 unsigned long *nums = frame_vector_pfns(vec); in vb2_vmalloc_get_userptr() 108 buf->vaddr = vm_map_ram(frame_vector_pages(vec), n_pages, -1); in vb2_vmalloc_get_userptr() [all …]
|
/Linux-v6.1/rust/alloc/vec/ |
D | mod.rs | 4 //! `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 …]
|
D | drain.rs | 10 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() 109 /// Moves back the un-`Drain`ed elements to restore the original `Vec`. in drop() [all …]
|
D | partial_eq.rs | 7 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 …]
|
D | drain_filter.rs | 7 use super::Vec; 11 /// This struct is created by [`Vec::drain_filter`]. 19 /// let mut v = vec![0, 1, 2]; 20 /// let iter: std::vec::DrainFilter<_, _> = v.drain_filter(|x| *x % 2 == 0); 32 pub(super) vec: &'a mut Vec<T, A>, field 37 /// The original length of `vec` prior to draining. 44 /// backshifted in the `vec`, but no further items will be dropped or 57 self.vec.allocator() in allocator() 72 let v = slice::from_raw_parts_mut(self.vec.as_mut_ptr(), self.old_len); in next() 122 // elements and tell the vec that they still exist. The backshift in drop() [all …]
|
/Linux-v6.1/include/media/ |
D | frame_vector.h | 17 void frame_vector_destroy(struct frame_vector *vec); 19 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.1/tools/testing/selftests/mincore/ |
D | mincore_selftest.c | 34 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.1/arch/powerpc/sysdev/xics/ |
D | ics-native.c | 40 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 …]
|
D | icp-opal.c | 65 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.1/drivers/gpu/drm/vc4/ |
D | vc4_vec.c | 9 * The VEC encoder generates PAL or NTSC composite video output. 41 /* VEC Registers */ 162 /* General VEC hardware state. */ 177 #define VEC_READ(offset) readl(vec->regs + (offset)) 178 #define VEC_WRITE(offset, val) writel(val, vec->regs + (offset)) 300 static int vc4_vec_connector_init(struct drm_device *dev, struct vc4_vec *vec) in vc4_vec_connector_init() argument 302 struct drm_connector *connector = &vec->connector; in vc4_vec_connector_init() 318 drm_connector_attach_encoder(connector, &vec->encoder.base); in vc4_vec_connector_init() 327 struct vc4_vec *vec = encoder_to_vc4_vec(encoder); in vc4_vec_encoder_disable() local 340 clk_disable_unprepare(vec->clock); in vc4_vec_encoder_disable() [all …]
|
/Linux-v6.1/crypto/ |
D | testmgr.c | 1173 const struct hash_testvec *vec, in build_hash_sglist() argument 1181 kv.iov_base = (void *)vec->plaintext; in build_hash_sglist() 1182 kv.iov_len = vec->psize; in build_hash_sglist() 1183 iov_iter_kvec(&input, WRITE, &kv, 1, vec->psize); in build_hash_sglist() 1184 return build_test_sglist(tsgl, cfg->src_divs, alignmask, vec->psize, in build_hash_sglist() 1190 const struct hash_testvec *vec, in check_hash_result() argument 1195 if (memcmp(result, vec->digest, digestsize) != 0) { in check_hash_result() 1219 static int test_shash_vec_cfg(const struct hash_testvec *vec, in test_shash_vec_cfg() argument 1237 if (vec->ksize) { in test_shash_vec_cfg() 1238 err = do_setkey(crypto_shash_setkey, tfm, vec->key, vec->ksize, in test_shash_vec_cfg() [all …]
|
/Linux-v6.1/mm/ |
D | mincore.c | 30 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() 117 __mincore_unmapped_range(addr, end, vma, vec); in mincore_pte_range() [all …]
|
/Linux-v6.1/security/apparmor/ |
D | label.c | 158 * @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 union_vec_flags(struct aa_profile **vec, int n, long mask) in union_vec_flags() argument 205 AA_BUG(!vec); in union_vec_flags() [all …]
|
/Linux-v6.1/tools/testing/selftests/powerpc/tm/ |
D | tm-unavailable.c | 5 * 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.1/Documentation/devicetree/bindings/display/ |
D | brcm,bcm2835-vec.yaml | 4 $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.1/drivers/crypto/cavium/nitrox/ |
D | nitrox_isr.c | 270 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.1/rust/alloc/ |
D | slice.rs | 11 //! // slicing a Vec 12 //! let vec = vec![1, 2, 3]; 13 //! let int_slice = &vec[..]; 103 use crate::vec::Vec; 144 // HACK(japaric) needed for the implementation of `vec!` macro during testing 149 // HACK(japaric) needed for the implementation of `Vec::clone` during testing 162 use crate::vec::Vec; 165 // `vec!` macro mostly and causes perf regression. See #71204 for 167 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> { in into_vec() 171 Vec::from_raw_parts_in(b as *mut T, len, len, alloc) in into_vec() [all …]
|
/Linux-v6.1/kernel/sched/ |
D | cpupri.c | 70 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() 109 * second reads of vec->mask. If we hit this in __cpupri_find() 229 struct cpupri_vec *vec = &cp->pri_to_cpu[newpri]; in cpupri_set() local 231 cpumask_set_cpu(cpu, vec->mask); in cpupri_set() 238 atomic_inc(&(vec)->count); in cpupri_set() 242 struct cpupri_vec *vec = &cp->pri_to_cpu[oldpri]; in cpupri_set() local 245 * Because the order of modification of the vec->count in cpupri_set() [all …]
|
/Linux-v6.1/net/smc/ |
D | smc_clc.c | 661 struct kvec vec = {buf, buflen}; in smc_clc_wait_msg() local 676 iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, in smc_clc_wait_msg() 723 iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, recvlen); in smc_clc_wait_msg() 735 vec.iov_base = &tmp; in smc_clc_wait_msg() 736 vec.iov_len = SMC_CLC_RECV_BUF_LEN; in smc_clc_wait_msg() 740 iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, recvlen); in smc_clc_wait_msg() 769 struct kvec vec; in smc_clc_send_decline() local 796 vec.iov_base = &dclc; in smc_clc_send_decline() 797 vec.iov_len = send_len; in smc_clc_send_decline() 798 len = kernel_sendmsg(smc->clcsock, &msg, &vec, 1, send_len); in smc_clc_send_decline() [all …]
|
/Linux-v6.1/net/rds/ |
D | rdma.c | 51 * 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.1/security/apparmor/include/ |
D | label.h | 51 #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 …]
|
/Linux-v6.1/arch/powerpc/kvm/ |
D | book3s.c | 135 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.1/tools/perf/util/bpf_skel/ |
D | kwork_trace.bpf.c | 264 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()
|