| /kernel/linux/linux-4.19/mm/ |
| D | frame_vector.c | 16 * @vec: structure which receives pages / pfns of the addresses mapped. 19 * This function maps virtual addresses from @start and fills @vec structure 35 unsigned int gup_flags, struct frame_vector *vec) in get_vaddr_frames() argument 46 if (WARN_ON_ONCE(nr_frames > vec->nr_allocated)) in get_vaddr_frames() 47 nr_frames = vec->nr_allocated; in get_vaddr_frames() 71 vec->got_ref = true; in get_vaddr_frames() 72 vec->is_pfns = false; in get_vaddr_frames() 74 gup_flags, (struct page **)(vec->ptrs), &locked); in get_vaddr_frames() 78 vec->got_ref = false; in get_vaddr_frames() 79 vec->is_pfns = true; in get_vaddr_frames() [all …]
|
| D | mincore.c | 29 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() 88 struct vm_area_struct *vma, unsigned char *vec) in __mincore_unmapped_range() argument 98 vec[i] = mincore_page(vma->vm_file->f_mapping, pgoff); in __mincore_unmapped_range() 101 vec[i] = 0; in __mincore_unmapped_range() 120 unsigned char *vec = walk->private; in mincore_pte_range() local 125 memset(vec, 1, nr); in mincore_pte_range() 131 __mincore_unmapped_range(addr, end, vma, vec); in mincore_pte_range() [all …]
|
| /kernel/linux/linux-5.10/mm/ |
| D | frame_vector.c | 16 * @vec: structure which receives pages / pfns of the addresses mapped. 19 * This function maps virtual addresses from @start and fills @vec structure 35 unsigned int gup_flags, struct frame_vector *vec) in get_vaddr_frames() argument 46 if (WARN_ON_ONCE(nr_frames > vec->nr_allocated)) in get_vaddr_frames() 47 nr_frames = vec->nr_allocated; in get_vaddr_frames() 73 vec->got_ref = true; in get_vaddr_frames() 74 vec->is_pfns = false; in get_vaddr_frames() 76 gup_flags, (struct page **)(vec->ptrs), &locked); in get_vaddr_frames() 80 vec->got_ref = false; in get_vaddr_frames() 81 vec->is_pfns = true; in get_vaddr_frames() [all …]
|
| D | mincore.c | 29 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-5.10/drivers/gpu/drm/vc4/ |
| D | vc4_vec.c | 9 * 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-4.19/drivers/gpu/drm/vc4/ |
| D | vc4_vec.c | 20 * The VEC encoder generates PAL or NTSC composite video output. 50 /* VEC Registers */ 167 /* General VEC hardware state. */ 181 #define VEC_READ(offset) readl(vec->regs + (offset)) 182 #define VEC_WRITE(offset, val) writel(val, vec->regs + (offset)) 184 /* VC4 VEC encoder KMS struct */ 187 struct vc4_vec *vec; member 196 /* VC4 VEC connector KMS struct */ 199 struct vc4_vec *vec; member 223 void (*mode_set)(struct vc4_vec *vec); [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/mincore/ |
| D | mincore_selftest.c | 35 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-4.19/arch/powerpc/include/asm/ |
| D | exception-64s.h | 192 #define EXCEPTION_RELON_PROLOG(area, label, h, extra, vec) \ argument 195 EXCEPTION_PROLOG_1(area, extra, vec); \ 310 #define MASKABLE_EXCEPTION_PROLOG_1(area, extra, vec, bitmask) \ argument 312 extra(vec, bitmask); \ 319 #define _EXCEPTION_PROLOG_1(area, extra, vec) \ argument 321 extra(vec); \ 324 #define EXCEPTION_PROLOG_1(area, extra, vec) \ argument 325 _EXCEPTION_PROLOG_1(area, extra, vec) 354 #define EXCEPTION_PROLOG(area, label, h, extra, vec) \ argument 357 EXCEPTION_PROLOG_1(area, extra, vec); \ [all …]
|
| /kernel/linux/linux-5.10/crypto/ |
| D | testmgr.c | 1123 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-4.19/security/apparmor/ |
| D | label.c | 162 * @vec: vector of profiles to compare (NOT NULL) 163 * @n: length of @vec 165 * Returns: <0 if a < vec 166 * ==0 if a == vec 167 * >0 if a > vec 190 static bool vec_is_stale(struct aa_profile **vec, int n) in vec_is_stale() argument 194 AA_BUG(!vec); in vec_is_stale() 197 if (profile_is_stale(vec[i])) in vec_is_stale() 204 static bool vec_unconfined(struct aa_profile **vec, int n) in vec_unconfined() argument 208 AA_BUG(!vec); in vec_unconfined() [all …]
|
| /kernel/linux/linux-5.10/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 bool vec_unconfined(struct aa_profile **vec, int n) in vec_unconfined() argument 204 AA_BUG(!vec); in vec_unconfined() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/common/videobuf2/ |
| D | videobuf2-memops.c | 42 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-4.19/drivers/media/common/videobuf2/ |
| D | videobuf2-memops.c | 44 struct frame_vector *vec; in vb2_create_framevec() local 53 vec = frame_vector_create(nr); in vb2_create_framevec() 54 if (!vec) in vb2_create_framevec() 56 ret = get_vaddr_frames(start & PAGE_MASK, nr, flags, vec); in vb2_create_framevec() 64 return vec; in vb2_create_framevec() 66 put_vaddr_frames(vec); in vb2_create_framevec() 68 frame_vector_destroy(vec); in vb2_create_framevec() 75 * @vec: vector of pfns / pages to release 77 * This releases references to all pages in the vector @vec (if corresponding 80 void vb2_destroy_framevec(struct frame_vector *vec) in vb2_destroy_framevec() argument [all …]
|
| /kernel/linux/linux-5.10/fs/xfs/ |
| D | xfs_log.h | 28 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-4.19/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/kernel/sched/ |
| D | cpupri.c | 72 struct cpupri_vec *vec = &cp->pri_to_cpu[idx]; in cpupri_find() local 75 if (!atomic_read(&(vec)->count)) in cpupri_find() 101 if (cpumask_any_and(&p->cpus_allowed, vec->mask) >= nr_cpu_ids) in cpupri_find() 105 cpumask_and(lowest_mask, &p->cpus_allowed, vec->mask); in cpupri_find() 111 * second reads of vec->mask. If we hit this in cpupri_find() 155 struct cpupri_vec *vec = &cp->pri_to_cpu[newpri]; in cpupri_set() local 157 cpumask_set_cpu(cpu, vec->mask); in cpupri_set() 164 atomic_inc(&(vec)->count); in cpupri_set() 168 struct cpupri_vec *vec = &cp->pri_to_cpu[oldpri]; in cpupri_set() local 171 * Because the order of modification of the vec->count in cpupri_set() [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/sysdev/xics/ |
| D | icp-opal.c | 64 unsigned int vec; in icp_opal_get_irq() local 68 vec = xirr & 0x00ffffff; in icp_opal_get_irq() 69 if (vec == XICS_IRQ_SPURIOUS) in icp_opal_get_irq() 72 irq = irq_find_mapping(xics_host, vec); in icp_opal_get_irq() 74 xics_push_cppr(vec); in icp_opal_get_irq() 79 xics_mask_unknown_vec(vec); in icp_opal_get_irq() 150 unsigned int vec; in icp_opal_flush_interrupt() local 154 vec = xirr & 0x00ffffff; in icp_opal_flush_interrupt() 155 if (vec == XICS_IRQ_SPURIOUS) in icp_opal_flush_interrupt() 157 if (vec == XICS_IPI) { in icp_opal_flush_interrupt() [all …]
|
| /kernel/linux/linux-4.19/fs/xfs/ |
| D | xfs_log.h | 26 struct xfs_log_iovec *vec = *vecp; in xlog_prepare_iovec() local 28 if (vec) { in xlog_prepare_iovec() 29 ASSERT(vec - lv->lv_iovecp < lv->lv_niovecs); in xlog_prepare_iovec() 30 vec++; in xlog_prepare_iovec() 32 vec = &lv->lv_iovecp[0]; in xlog_prepare_iovec() 35 vec->i_type = type; in xlog_prepare_iovec() 36 vec->i_addr = lv->lv_buf + lv->lv_buf_len; in xlog_prepare_iovec() 38 ASSERT(IS_ALIGNED((unsigned long)vec->i_addr, sizeof(uint64_t))); in xlog_prepare_iovec() 40 *vecp = vec; in xlog_prepare_iovec() 41 return vec->i_addr; in xlog_prepare_iovec() [all …]
|
| /kernel/linux/linux-4.19/arch/powerpc/sysdev/xics/ |
| D | icp-opal.c | 68 unsigned int vec; in icp_opal_get_irq() local 72 vec = xirr & 0x00ffffff; in icp_opal_get_irq() 73 if (vec == XICS_IRQ_SPURIOUS) in icp_opal_get_irq() 76 irq = irq_find_mapping(xics_host, vec); in icp_opal_get_irq() 78 xics_push_cppr(vec); in icp_opal_get_irq() 83 xics_mask_unknown_vec(vec); in icp_opal_get_irq() 154 unsigned int vec; in icp_opal_flush_interrupt() local 158 vec = xirr & 0x00ffffff; in icp_opal_flush_interrupt() 159 if (vec == XICS_IRQ_SPURIOUS) in icp_opal_flush_interrupt() 161 if (vec == XICS_IPI) { in icp_opal_flush_interrupt() [all …]
|
| /kernel/linux/linux-5.10/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 14 const: brcm,bcm2835-vec 37 vec: vec@7e806000 { 38 compatible = "brcm,bcm2835-vec";
|
| /kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/ |
| D | nitrox_isr.c | 269 int vec; in nitrox_unregister_interrupts() local 276 vec = pci_irq_vector(pdev, i); in nitrox_unregister_interrupts() 277 irq_set_affinity_hint(vec, NULL); in nitrox_unregister_interrupts() 278 free_irq(vec, qvec); in nitrox_unregister_interrupts() 293 int nr_vecs, vec, cpu; in nitrox_register_interrupts() local 310 dev_err(DEV(ndev), "Error in getting vec count %d\n", nr_vecs); in nitrox_register_interrupts() 339 vec = pci_irq_vector(pdev, i); in nitrox_register_interrupts() 340 ret = request_irq(vec, nps_pkt_slc_isr, 0, qvec->name, qvec); in nitrox_register_interrupts() 347 irq_set_affinity_hint(vec, get_cpu_mask(cpu)); in nitrox_register_interrupts() 361 vec = pci_irq_vector(pdev, i); in nitrox_register_interrupts() [all …]
|
| /kernel/linux/linux-5.10/kernel/sched/ |
| D | cpupri.c | 47 struct cpupri_vec *vec = &cp->pri_to_cpu[idx]; in __cpupri_find() local 50 if (!atomic_read(&(vec)->count)) in __cpupri_find() 76 if (cpumask_any_and(p->cpus_ptr, vec->mask) >= nr_cpu_ids) in __cpupri_find() 80 cpumask_and(lowest_mask, p->cpus_ptr, vec->mask); in __cpupri_find() 89 * second reads of vec->mask. If we hit this in __cpupri_find() 209 struct cpupri_vec *vec = &cp->pri_to_cpu[newpri]; in cpupri_set() local 211 cpumask_set_cpu(cpu, vec->mask); in cpupri_set() 218 atomic_inc(&(vec)->count); in cpupri_set() 222 struct cpupri_vec *vec = &cp->pri_to_cpu[oldpri]; in cpupri_set() local 225 * Because the order of modification of the vec->count in cpupri_set() [all …]
|
| /kernel/linux/linux-5.10/net/smc/ |
| D | smc_clc.c | 345 struct kvec vec = {buf, buflen}; in smc_clc_wait_msg() local 360 iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, in smc_clc_wait_msg() 407 iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, recvlen); in smc_clc_wait_msg() 419 vec.iov_base = &tmp; in smc_clc_wait_msg() 420 vec.iov_len = SMC_CLC_RECV_BUF_LEN; in smc_clc_wait_msg() 424 iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, recvlen); in smc_clc_wait_msg() 451 struct kvec vec; in smc_clc_send_decline() local 470 vec.iov_base = &dclc; in smc_clc_send_decline() 471 vec.iov_len = sizeof(struct smc_clc_msg_decline); in smc_clc_send_decline() 472 len = kernel_sendmsg(smc->clcsock, &msg, &vec, 1, in smc_clc_send_decline() [all …]
|
| /kernel/linux/linux-4.19/tools/testing/selftests/net/ |
| D | tls.c | 174 struct iovec vec; in TEST_F() local 177 vec.iov_base = (char *)test_str; in TEST_F() 178 vec.iov_len = send_len; in TEST_F() 180 msg.msg_iov = &vec; in TEST_F() 198 struct iovec vec = { (void *)mem, send_len }; in TEST_F() local 200 msg.msg_iov = &vec; in TEST_F() 214 struct iovec vec[5]; in TEST_F() local 227 vec[i].iov_base = (void *)test_strs[i]; in TEST_F() 228 vec[i].iov_len = strlen(test_strs[i]) + 1; in TEST_F() 229 total_len += vec[i].iov_len; in TEST_F() [all …]
|