/openbmc/linux/tools/testing/nvdimm/test/ |
H A D | ndtest.c | 353 res->dev = &p->pdev.dev; in ndtest_alloc_resource() 468 ret = ndtest_create_region(p, &p->config->regions[i]); in ndtest_init_regions() 813 p->config = &bus_configs[p->pdev.id]; in ndtest_bus_register() 820 p->bus = nvdimm_bus_register(&p->pdev.dev, &p->bus_desc); in ndtest_bus_register() 821 if (!p->bus) { in ndtest_bus_register() 822 dev_err(&p->pdev.dev, "Error creating nvdimm bus %pOF\n", p->dn); in ndtest_bus_register() 839 struct ndtest_priv *p; in ndtest_probe() local 846 p->dcr_dma = devm_kcalloc(&p->pdev.dev, NUM_DCR, in ndtest_probe() 848 p->label_dma = devm_kcalloc(&p->pdev.dev, NUM_DCR, in ndtest_probe() 850 p->dimm_dma = devm_kcalloc(&p->pdev.dev, NUM_DCR, in ndtest_probe() [all …]
|
/openbmc/u-boot/test/py/tests/ |
H A D | test_efi_selftest.py | 73 m = u_boot_console.p.expect( 81 m = u_boot_console.p.expect( 89 m = u_boot_console.p.expect( 97 m = u_boot_console.p.expect( 105 m = u_boot_console.p.expect( 143 m = u_boot_console.p.expect( 151 m = u_boot_console.p.expect( 159 m = u_boot_console.p.expect( 167 m = u_boot_console.p.expect( 175 m = u_boot_console.p.expect( [all …]
|
/openbmc/qemu/tests/tcg/cris/libc/ |
H A D | check_addo.c | 47 unsigned char *t, *p; in main() local 57 cris_addo_pi_d(p, t); in main() 68 cris_addo_pi_w(p, t); in main() 77 cris_addo_d(p, r); in main() 79 p += 4; in main() 87 cris_addo_pi_b(p, t); in main() 96 cris_addo_b(p, r); in main() 98 p += 1; in main() 106 cris_addo_w(p, r); in main() 108 p += 2; in main() [all …]
|
/openbmc/qemu/semihosting/ |
H A D | uaccess.c | 17 void *p = malloc(len); in uaccess_lock_user() local 18 if (p && copy) { in uaccess_lock_user() 20 free(p); in uaccess_lock_user() 21 p = NULL; in uaccess_lock_user() 24 return p; in uaccess_lock_user() 61 char *p = memchr(h, 0, left_in_page); in uaccess_strlen_user() local 62 if (p) { in uaccess_strlen_user() 63 len += p - (char *)h; in uaccess_strlen_user() 84 void uaccess_unlock_user(CPUArchState *env, void *p, in uaccess_unlock_user() argument 88 cpu_memory_rw_debug(env_cpu(env), addr, p, len, 1); in uaccess_unlock_user() [all …]
|
/openbmc/linux/arch/microblaze/include/asm/ |
H A D | flat.h | 30 u32 *p = (__force u32 *)rp; in flat_get_addr_from_rp() local 37 val_hi = get_unaligned(p); in flat_get_addr_from_rp() 38 val_lo = get_unaligned(p+1); in flat_get_addr_from_rp() 44 *addr = get_unaligned(p); in flat_get_addr_from_rp() 58 u32 *p = (__force u32 *)rp; in flat_put_addr_at_rp() local 62 unsigned long val_hi = get_unaligned(p); in flat_put_addr_at_rp() 63 unsigned long val_lo = get_unaligned(p + 1); in flat_put_addr_at_rp() 70 put_unaligned(val_hi, p); in flat_put_addr_at_rp() 71 put_unaligned(val_lo, p+1); in flat_put_addr_at_rp() 74 put_unaligned(addr, p); in flat_put_addr_at_rp()
|
/openbmc/linux/include/linux/sched/ |
H A D | signal.h | 401 return task_sigpending(p); in signal_pending() 411 return task_sigpending(p) && __fatal_signal_pending(p); in fatal_signal_pending() 418 if (!signal_pending(p)) in signal_pending_state() 621 p->sas_ss_sp = 0; in sas_ss_reset() 622 p->sas_ss_size = 0; in sas_ss_reset() 643 #define next_task(p) \ argument 646 #define for_each_process(p) \ argument 647 for (p = &init_task ; (p = next_task(p)) != &init_task ; ) 666 for_each_process(p) for_each_thread(p, t) 709 return p->exit_signal >= 0; in thread_group_leader() [all …]
|
/openbmc/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-vid-out.c | 34 for (p = vfmt->buffers; p < vfmt->planes; p++) in vid_out_queue_setup() 65 for (p = 1; p < planes; p++) { in vid_out_queue_setup() 72 for (p = 0; p < planes; p++) in vid_out_queue_setup() 73 sizes[p] = p ? dev->bytesperline_out[p] * h / in vid_out_queue_setup() 84 for (p = 0; p < planes; p++) in vid_out_queue_setup() 113 for (p = vfmt->buffers; p < vfmt->planes; p++) in vid_out_buf_prepare() 130 for (p = 0; p < planes; p++) { in vid_out_buf_prepare() 278 for (p = 0; p < dev->fmt_out->planes; p++) in vivid_update_format_out() 336 for (p = 0; p < mp->num_planes; p++) { in vivid_g_fmt_vid_out() 406 for (p = 0; p < fmt->buffers; p++) { in vivid_try_fmt_vid_out() [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A D | access-helper.h | 5 static inline int __get_addr(unsigned long *a, unsigned long *p, bool user) in __get_addr() argument 7 return user ? get_user(*a, (unsigned long __user *)p) : in __get_addr() 8 get_kernel_nofault(*a, p); in __get_addr() 11 static inline int __get_inst16(u16 *i, u16 *p, bool user) in __get_inst16() argument 13 return user ? get_user(*i, (u16 __user *)p) : get_kernel_nofault(*i, p); in __get_inst16() 16 static inline int __get_inst32(u32 *i, u32 *p, bool user) in __get_inst32() argument 18 return user ? get_user(*i, (u32 __user *)p) : get_kernel_nofault(*i, p); in __get_inst32()
|
/openbmc/qemu/tests/tcg/multiarch/linux/ |
H A D | linux-shmat-null.c | 14 char *p; in main() local 20 p = shmat(shmid, NULL, 0); in main() 21 assert(p != (void *)-1); in main() 22 *p = 42; in main() 25 err = shmdt(p); in main() 27 p = shmat(shmid, NULL, 0); in main() 28 assert(p != (void *)-1); in main() 29 assert(*p == 42); in main() 32 err = shmdt(p); in main()
|
/openbmc/u-boot/drivers/i2c/ |
H A D | tegra186_bpmp_i2c.c | 20 (*p)[0] = val & 0xff; in serialize_u16() 21 (*p)[1] = val >> 8; in serialize_u16() 22 (*p) += 2; in serialize_u16() 42 uint8_t *p; in tegra186_bpmp_i2c_xfer() local 47 p = &req.xfer.data_buf[0]; in tegra186_bpmp_i2c_xfer() 59 serialize_u16(&p, msg[i].addr); in tegra186_bpmp_i2c_xfer() 60 serialize_u16(&p, msg[i].flags); in tegra186_bpmp_i2c_xfer() 61 serialize_u16(&p, msg[i].len); in tegra186_bpmp_i2c_xfer() 64 p += msg[i].len; in tegra186_bpmp_i2c_xfer() 74 p = &resp.xfer.data_buf[0]; in tegra186_bpmp_i2c_xfer() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-cache-policy.c | 117 struct dm_cache_policy *p = NULL; in dm_cache_policy_create() local 126 p = type->create(cache_size, origin_size, cache_block_size); in dm_cache_policy_create() 127 if (!p) { in dm_cache_policy_create() 131 p->private = type; in dm_cache_policy_create() 133 return p; in dm_cache_policy_create() 137 void dm_cache_policy_destroy(struct dm_cache_policy *p) in dm_cache_policy_destroy() argument 139 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_destroy() 141 p->destroy(p); in dm_cache_policy_destroy() 148 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_get_name() 160 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_get_version() [all …]
|
/openbmc/linux/tools/power/cpupower/debug/i386/ |
H A D | dump_psb.c | 59 decode_pst(char *p, int npstates) in decode_pst() argument 65 fid = *p++; in decode_pst() 66 vid = *p++; in decode_pst() 80 void decode_psb(char *p, int numpst) in decode_psb() argument 86 psb = (struct psb_header*) p; in decode_psb() 102 p = ((char *) psb) + sizeof(struct psb_header); in decode_psb() 110 pst = (struct pst_header*) p; in decode_psb() 153 char *p; in main() local 185 for (p = mem; p - mem < LEN; p+=16) { in main() 186 if (memcmp(p, "AMDK7PNOW!", 10) == 0) { in main() [all …]
|
/openbmc/linux/fs/udf/ |
H A D | symlink.c | 34 unsigned char *p = to; in udf_pc_to_char() local 55 p = to; in udf_pc_to_char() 56 *p++ = '/'; in udf_pc_to_char() 63 p += 3; in udf_pc_to_char() 70 p += 2; in udf_pc_to_char() 80 p, tolen); in udf_pc_to_char() 84 p += comp_len; in udf_pc_to_char() 88 *p++ = '/'; in udf_pc_to_char() 93 if (p > to + 1) in udf_pc_to_char() 94 p[-1] = '\0'; in udf_pc_to_char() [all …]
|
/openbmc/linux/include/linux/ |
H A D | sockptr.h | 27 static inline sockptr_t KERNEL_SOCKPTR(void *p) in KERNEL_SOCKPTR() argument 34 return (sockptr_t) { .user = p }; in USER_SOCKPTR() 101 if (!p) in memdup_sockptr() 103 if (copy_from_sockptr(p, src, len)) { in memdup_sockptr() 104 kfree(p); in memdup_sockptr() 107 return p; in memdup_sockptr() 114 if (!p) in memdup_sockptr_nul() 116 if (copy_from_sockptr(p, src, len)) { in memdup_sockptr_nul() 117 kfree(p); in memdup_sockptr_nul() 120 p[len] = '\0'; in memdup_sockptr_nul() [all …]
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | pixfmt-packed-yuv.rst | 42 …p{3.5cm}|p{0.96cm}|p{0.52cm}|p{0.52cm}|p{0.52cm}|p{0.52cm}|p{0.52cm}|p{0.52cm}|p{0.52cm}|p{0.52cm}… 304 .. tabularcolumns:: |p{3.4cm}|p{1.2cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8c… 373 .. tabularcolumns:: |p{3.4cm}|p{1.2cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8c… 432 …abularcolumns:: |p{2.9cm}|p{0.8cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|…
|
/openbmc/linux/tools/perf/util/ |
H A D | srccode.c | 44 char *p = map; in countlines() local 49 while (p < end && (p = memchr(p, '\n', end - p)) != NULL) { in countlines() 51 p++; in countlines() 53 if (p < end) in countlines() 62 char *p = map; in fill_lines() local 68 while (p < end && (p = memchr(p, '\n', end - p)) != NULL) { in fill_lines() 71 lines[l++] = ++p; in fill_lines() 73 if (p < end) in fill_lines() 74 lines[l] = p; in fill_lines() 158 char *l, *p; in find_sourceline() local [all …]
|
/openbmc/qemu/host/include/ppc/host/crypto/ |
H A D | aes-round.h | 25 static inline AESStateVec aes_accel_ld(const AESState *p, bool be) in aes_accel_ld() argument 30 asm("lvx %0, 0, %1" : "=v"(r) : "r"(p), "m"(*p)); in aes_accel_ld() 37 : "=v"(r) : "r"(p), "v"(rev), "m"(*p)); in aes_accel_ld() 40 asm("lxvb16x %x0, 0, %1" : "=v"(r) : "r"(p), "m"(*p)); in aes_accel_ld() 44 : "=v"(r) : "r"(p), "m"(*p)); in aes_accel_ld() 50 static void aes_accel_st(AESState *p, AESStateVec r, bool be) in aes_accel_st() argument 53 asm("stvx %1, 0, %2" : "=m"(*p) : "v"(r), "r"(p)); in aes_accel_st() 60 : "=m"(*p), "+v"(r) : "v"(rev), "r"(p)); in aes_accel_st() 63 asm("stxvb16x %x1, 0, %2" : "=m"(*p) : "v"(r), "r"(p)); in aes_accel_st() 67 : "=m"(*p), "+v"(r) : "r"(p)); in aes_accel_st()
|
/openbmc/linux/tools/testing/selftests/powerpc/mm/ |
H A D | large_vm_fork_separation.c | 26 int p2c[2], c2p[2], rc, status, c, *p; in test() local 34 p = mmap((void *)(512ul << 40), page_size, PROT_READ | PROT_WRITE, in test() 36 if (p == MAP_FAILED) { in test() 42 printf("parent writing %p = 1\n", p); in test() 43 *p = 1; in test() 52 printf("child writing %p = %d\n", p, pid); in test() 53 *p = pid; in test() 68 printf("parent reading %p = %d\n", p, *p); in test() 69 if (*p != 1) { in test() 70 printf("Error: BUG! parent saw child's write! *p = %d\n", *p); in test()
|
/openbmc/linux/include/keys/ |
H A D | trusted-type.h | 62 int (*seal)(struct trusted_key_payload *p, char *datablob); 65 int (*unseal)(struct trusted_key_payload *p, char *datablob); 84 static inline void dump_payload(struct trusted_key_payload *p) in dump_payload() argument 86 pr_info("key_len %d\n", p->key_len); in dump_payload() 88 16, 1, p->key, p->key_len, 0); in dump_payload() 89 pr_info("bloblen %d\n", p->blob_len); in dump_payload() 91 16, 1, p->blob, p->blob_len, 0); in dump_payload() 92 pr_info("migratable %d\n", p->migratable); in dump_payload() 95 static inline void dump_payload(struct trusted_key_payload *p) in dump_payload() argument
|
/openbmc/linux/drivers/cxl/core/ |
H A D | region.c | 505 if (p->res) in resource_show() 533 if (p->res && resource_size(p->res) == size) in alloc_hpa() 726 if (p->res && p->res->start == r->start && p->res->end == r->end) in match_auto_decoder() 1578 if (p->nr_targets >= p->interleave_ways) { in cxl_region_attach_auto() 1754 sort(p->targets, p->nr_targets, sizeof(p->targets[0]), in cxl_region_sort_targets() 1800 if (p->nr_targets >= p->interleave_ways) { in cxl_region_attach() 1847 if (p->nr_targets < p->interleave_ways) in cxl_region_attach() 1895 if (p->nr_targets == p->interleave_ways) { in cxl_region_attach() 1909 if (p->nr_targets != p->interleave_ways) in cxl_region_attach() 2936 if (p->res && p->res->start == r->start && p->res->end == r->end) in match_region_by_range() [all …]
|
H A D | trace.c | 12 struct cxl_region_params *p = &cxlr->params; in cxl_is_hpa_in_range() local 13 int gran = p->interleave_granularity; in cxl_is_hpa_in_range() 14 int ways = p->interleave_ways; in cxl_is_hpa_in_range() 18 if (hpa < p->res->start || hpa > p->res->end) { in cxl_is_hpa_in_range() 25 offset = hpa - p->res->start; in cxl_is_hpa_in_range() 40 struct cxl_region_params *p = &cxlr->params; in cxl_dpa_to_hpa() local 45 ways_to_eiw(p->interleave_ways, &eiw); in cxl_dpa_to_hpa() 76 hpa = hpa_offset + p->res->start; in cxl_dpa_to_hpa() 87 struct cxl_region_params *p = &cxlr->params; in cxl_trace_hpa() local 90 for (int i = 0; i < p->nr_targets; i++) { in cxl_trace_hpa() [all …]
|
/openbmc/linux/kernel/ |
H A D | resource.c | 63 while (!p->sibling && p->parent) in next_resource() 64 p = p->parent; in next_resource() 70 while (!p->sibling && p->parent) in next_resource_skip_children() 71 p = p->parent; in next_resource_skip_children() 97 for (p = p->child; p && l < *pos; p = r_next(m, p, &l)) in r_start() 116 for (depth = 0, p = r; depth < MAX_IORES_LEVEL; depth++, p = p->parent) in r_show() 237 p = p->sibling; in __release_child_resources() 339 for (p = iomem_resource.child; p; p = next_resource(p)) { in find_next_iomem_res() 505 for (p = parent->child; p ; p = p->sibling) { in __region_intersects() 1692 for (p = p->child; p ; p = r_next(NULL, p, &l)) { in iomem_map_sanity_check() [all …]
|
/openbmc/linux/scripts/coccinelle/tests/ |
H A D | doubletest.cocci | 21 position p; 25 E@p || ... || E 27 E@p && ... && E 32 position r.p; 37 E@p 44 position r.p; 47 *E@p 50 p << r.p; 53 cocci.print_main("duplicated argument to && or ||",p) 56 p << r.p; [all …]
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | fb_draw.h | 107 mask = FB_SHIFT_HIGH(p, ~(u32)0, index); in fb_shifted_pixels_mask_u32() 109 mask = 0xff << FB_LEFT_POS(p, 8); in fb_shifted_pixels_mask_u32() 110 mask = FB_SHIFT_LOW(p, mask, index & (bswapmask)) & mask; in fb_shifted_pixels_mask_u32() 111 mask = FB_SHIFT_HIGH(p, mask, index & ~(bswapmask)); in fb_shifted_pixels_mask_u32() 116 mask |= FB_SHIFT_HIGH(p, ~(u32)0, in fb_shifted_pixels_mask_u32() 129 mask = FB_SHIFT_HIGH(p, ~0UL, index); in fb_shifted_pixels_mask_long() 131 mask = 0xff << FB_LEFT_POS(p, 8); in fb_shifted_pixels_mask_long() 133 mask = FB_SHIFT_HIGH(p, mask, index & ~(bswapmask)); in fb_shifted_pixels_mask_long() 138 mask |= FB_SHIFT_HIGH(p, ~0UL, in fb_shifted_pixels_mask_long() 168 #define fb_shifted_pixels_mask_u32(p, i, b) FB_SHIFT_HIGH((p), ~(u32)0, (i)) argument [all …]
|
/openbmc/u-boot/board/sbc8548/ |
H A D | sbc8548.c | 202 uint *p; in testdram() local 209 for (p = pstart; p < pend; p++) in testdram() 210 *p = 0xaaaaaaaa; in testdram() 212 for (p = pstart; p < pend; p++) { in testdram() 213 if (*p != 0xaaaaaaaa) { in testdram() 214 printf ("DRAM test fails at: %08x\n", (uint) p); in testdram() 220 for (p = pstart; p < pend; p++) in testdram() 221 *p = 0x55555555; in testdram() 223 for (p = pstart; p < pend; p++) { in testdram() 224 if (*p != 0x55555555) { in testdram() [all …]
|