/openbmc/linux/tools/build/ |
H A D | fixdep.c | 51 char *p; in parse_dep_file() local 62 p = m; in parse_dep_file() 63 while (p < end && *p != ' ' && *p != '\\' && *p != '\n') in parse_dep_file() 64 p++; in parse_dep_file() 66 is_target = (*(p-1) == ':'); in parse_dep_file() 74 memcpy(s, m, p-m); in parse_dep_file() 75 s[p - m] = 0; in parse_dep_file() 109 m = p + 1; in parse_dep_file()
|
/openbmc/bmcweb/http/routing/ |
H A D | ruleparametertraits.hpp | 20 WebSocketRule* p = new WebSocketRule(self->rule); in websocket() local 21 p->privilegesSet = self->privilegesSet; in websocket() 22 self->ruleToUpgrade.reset(p); in websocket() 23 return *p; in websocket() 29 SseSocketRule* p = new SseSocketRule(self->rule); in serverSentEvent() local 30 self->ruleToUpgrade.reset(p); in serverSentEvent() 31 return *p; in serverSentEvent() 75 const std::initializer_list<std::initializer_list<const char*>>& p) in privileges() 78 for (const std::initializer_list<const char*>& privilege : p) in privileges() 86 self_t& privileges(const std::array<redfish::Privileges, N>& p) in privileges() [all …]
|
/openbmc/linux/drivers/tty/ |
H A D | tty_buffer.c | 104 p->used = 0; in tty_buffer_reset() 105 p->size = size; in tty_buffer_reset() 106 p->next = NULL; in tty_buffer_reset() 107 p->commit = 0; in tty_buffer_reset() 108 p->lookahead = 0; in tty_buffer_reset() 109 p->read = 0; in tty_buffer_reset() 110 p->flags = true; in tty_buffer_reset() 132 kfree(p); in tty_buffer_free_all() 136 kfree(p); in tty_buffer_free_all() 181 if (p == NULL) in tty_buffer_alloc() [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A D | setup.c | 126 unsigned long start = memparse(p, &p); in rd_start_early() 141 initrd_end += memparse(p, &p); in rd_size_early() 352 if (!p) { in early_parse_mem() 368 size = memparse(p, &p); in early_parse_mem() 369 if (*p == '@') in early_parse_mem() 370 start = memparse(p + 1, &p); in early_parse_mem() 386 if (!p) in early_parse_memmap() 394 oldp = p; in early_parse_memmap() 395 mem_size = memparse(p, &p); in early_parse_memmap() 400 start_at = memparse(p+1, &p); in early_parse_memmap() [all …]
|
/openbmc/linux/lib/ |
H A D | globtest.c | 133 char const *p = glob_tests; in glob_init() local 143 while (*p) { in glob_init() 144 bool expected = *p++ & 1; in glob_init() 145 char const *pat = p; in glob_init() 147 p += strlen(p) + 1; in glob_init() 148 successes += test(pat, p, expected); in glob_init() 149 p += strlen(p) + 1; in glob_init()
|
/openbmc/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-vbi.c | 242 p += 12; in ivtv_convert_ivtv_vbi() 246 p += 4; in ivtv_convert_ivtv_vbi() 258 id2 = *p & 0xf; in ivtv_convert_ivtv_vbi() 265 err = !odd_parity(p[1]) || !odd_parity(p[2]); in ivtv_convert_ivtv_vbi() 285 p += 43; in ivtv_convert_ivtv_vbi() 306 u8 *p; in compress_raw_buf() local 313 if (p[0] != 0xff || p[1] || p[2] || (p[3] != sav1 && p[3] != sav2)) { in compress_raw_buf() 346 if (p[0] != 0xff || p[1] || p[2] || p[3] != sav) { in compress_sliced_buf() 349 vbi.p = p + 4; in compress_sliced_buf() 376 type = p[3]; in ivtv_process_vbi_data() [all …]
|
/openbmc/qemu/hw/net/ |
H A D | smc91c111.c | 226 uint8_t *p; in smc91c111_do_tx() local 236 *(p++) = 0x01; in smc91c111_do_tx() 237 *(p++) = 0x40; in smc91c111_do_tx() 238 len = *(p++); in smc91c111_do_tx() 445 int p; in smc91c111_writeb() local 686 uint8_t *p; in smc91c111_receive() local 720 p += (size & ~1); in smc91c111_receive() 729 p += pad; in smc91c111_receive() 745 *p = 0x60; in smc91c111_receive() 747 *(p++) = 0; in smc91c111_receive() [all …]
|
/openbmc/linux/scripts/dtc/libfdt/ |
H A D | fdt_ro.c | 111 return p && (slen == len) && (memcmp(p, s, len) == 0); in fdt_string_eq_() 265 p = fdt_get_alias_namelen(fdt, p, q - p); in fdt_path_offset_namelen() 266 if (!p) in fdt_path_offset_namelen() 270 p = q; in fdt_path_offset_namelen() 277 p++; in fdt_path_offset_namelen() 281 q = memchr(p, '/', end - p); in fdt_path_offset_namelen() 285 offset = fdt_subnode_offset_namelen(fdt, offset, p, q-p); in fdt_path_offset_namelen() 289 p = q; in fdt_path_offset_namelen() 558 p--; in fdt_get_path() 580 p--; in fdt_get_path() [all …]
|
/openbmc/linux/arch/mips/loongson2ef/common/ |
H A D | machtype.c | 40 char *p, str[MACHTYPE_LEN + 1]; in prom_init_machtype() local 45 p = strstr(arcs_cmdline, "machtype="); in prom_init_machtype() 46 if (!p) { in prom_init_machtype() 50 p += strlen("machtype="); in prom_init_machtype() 51 strncpy(str, p, MACHTYPE_LEN); in prom_init_machtype() 53 p = strstr(str, " "); in prom_init_machtype() 54 if (p) in prom_init_machtype() 55 *p = '\0'; in prom_init_machtype()
|
/openbmc/linux/fs/proc/ |
H A D | array.c | 160 ppid = pid_alive(p) ? in task_state() 163 tracer = ptrace_parent(p); in task_state() 169 cred = get_task_cred(p); in task_state() 171 task_lock(p); in task_state() 172 if (p->fs) in task_state() 173 umask = p->fs->umask; in task_state() 174 if (p->files) in task_state() 176 task_unlock(p); in task_state() 255 k = p->sighand->action; in collect_sigign_sigcatch() 281 blocked = p->blocked; in task_sig() [all …]
|
/openbmc/qemu/audio/ |
H A D | paaudio.c | 102 PAConnection *c = p->g->conn; in qpa_get_buffer_in() 110 if (!p->read_length) { in qpa_get_buffer_in() 111 r = pa_stream_peek(p->stream, &p->read_data, &p->read_length); in qpa_get_buffer_in() 138 assert(buf == p->read_data && size <= p->read_length); in qpa_put_buffer_in() 140 p->read_data += size; in qpa_put_buffer_in() 141 p->read_length -= size; in qpa_put_buffer_in() 171 if (!p->read_length) { in qpa_read() 172 r = pa_stream_peek(p->stream, &p->read_data, &p->read_length); in qpa_read() 184 p->read_data += l; in qpa_read() 185 p->read_length -= l; in qpa_read() [all …]
|
/openbmc/linux/drivers/i3c/master/mipi-i3c-hci/ |
H A D | pio.c | 245 u32 *p; in hci_pio_do_rx() local 270 u32 *p; in hci_pio_do_trailing_rx() local 311 u32 *p; in hci_pio_do_tx() local 634 for (p = pio->curr_resp; p; p = p->next_resp) in hci_pio_dequeue_xfer_common() 638 for (p = pio->curr_rx; p; p = p->next_data) in hci_pio_dequeue_xfer_common() 642 for (p = pio->curr_tx; p; p = p->next_data) in hci_pio_dequeue_xfer_common() 652 for (p = pio->curr_xfer; p; p = p->next_xfer) { in hci_pio_dequeue_xfer_common() 661 return !!p; in hci_pio_dequeue_xfer_common() 668 for (p = pio->curr_resp; p; p = p->next_resp) { in hci_pio_dequeue_xfer_common() 673 for (p = pio->curr_xfer; p; p = p->next_xfer) { in hci_pio_dequeue_xfer_common() [all …]
|
/openbmc/linux/tools/testing/radix-tree/ |
H A D | regression2.c | 69 struct page *p; in page_alloc() local 70 p = malloc(sizeof(struct page)); in page_alloc() 71 p->index = page_count++; in page_alloc() 73 return p; in page_alloc() 79 struct page *p; in regression2_test() local 87 p = page_alloc(); in regression2_test() 88 radix_tree_insert(&mt_tree, i, p); in regression2_test() 99 p = page_alloc(); in regression2_test() 100 radix_tree_insert(&mt_tree, max_slots, p); in regression2_test()
|
/openbmc/linux/scripts/coccinelle/free/ |
H A D | kfreeaddr.cocci | 17 position p; 21 * kfree@p(&e->f) 23 * kfree_sensitive@p(&e->f) 27 p << r.p; 30 cocci.print_main("kfree",p) 33 p << r.p; 37 coccilib.report.print_report(p[0],msg)
|
/openbmc/linux/rust/macros/ |
H A D | zeroable.rs | 27 TokenTree::Punct(p) if nested == 0 && p.as_char() == ',' => { in derive() 36 TokenTree::Punct(p) if nested == 0 && p.as_char() == '\'' => { in derive() 40 TokenTree::Punct(p) if nested == 0 && p.as_char() == ':' => { in derive() 47 TokenTree::Punct(p) if p.as_char() == '<' => { in derive() 51 TokenTree::Punct(p) if p.as_char() == '>' => { in derive()
|
/openbmc/qemu/include/semihosting/ |
H A D | uaccess.h | 40 #define get_user_ual(arg, p) get_user_u32(arg, p) argument 50 #define put_user_ual(arg, p) put_user_u32(arg, p) argument 54 #define lock_user(type, p, len, copy) uaccess_lock_user(env, p, len, copy) argument 57 #define lock_user_string(p) uaccess_lock_user_string(env, p) argument 59 void uaccess_unlock_user(CPUArchState *env, void *p, 64 #define target_strlen(p) uaccess_strlen_user(env, p) argument
|
/openbmc/linux/tools/virtio/ringtest/ |
H A D | main.h | 155 void __read_once_size(const volatile void *p, void *res, int size) in __read_once_size() argument 158 case 1: *(unsigned char *)res = *(volatile unsigned char *)p; break; in __read_once_size() 159 case 2: *(unsigned short *)res = *(volatile unsigned short *)p; break; in __read_once_size() 160 case 4: *(unsigned int *)res = *(volatile unsigned int *)p; break; in __read_once_size() 161 case 8: *(unsigned long long *)res = *(volatile unsigned long long *)p; break; in __read_once_size() 164 __builtin_memcpy((void *)res, (const void *)p, size); in __read_once_size() 172 case 1: *(volatile unsigned char *)p = *(unsigned char *)res; break; in __write_once_size() 173 case 2: *(volatile unsigned short *)p = *(unsigned short *)res; break; in __write_once_size() 174 case 4: *(volatile unsigned int *)p = *(unsigned int *)res; break; in __write_once_size() 175 case 8: *(volatile unsigned long long *)p = *(unsigned long long *)res; break; in __write_once_size() [all …]
|
/openbmc/linux/net/core/ |
H A D | netclassid_cgroup.c | 21 struct cgroup_cls_state *task_cls_state(struct task_struct *p) in task_cls_state() argument 23 return css_cls_state(task_css_check(p, net_cls_cgrp_id, in task_cls_state() 92 task_lock(p); in update_classid_task() 93 fd = iterate_fd(p->files, fd, update_classid_sock, &ctx); in update_classid_task() 94 task_unlock(p); in update_classid_task() 102 struct task_struct *p; in cgrp_attach() local 104 cgroup_taskset_for_each(p, css, tset) { in cgrp_attach() 105 update_classid_task(p, css_cls_state(css)->classid); in cgrp_attach() 119 struct task_struct *p; in write_classid() local 124 while ((p = css_task_iter_next(&it))) in write_classid() [all …]
|
/openbmc/linux/arch/xtensa/include/asm/ |
H A D | bitops.h | 102 static inline void arch_##op##_bit(unsigned int bit, volatile unsigned long *p)\ 107 p += bit >> 5; \ 116 : [mask] "a" (inv mask), [addr] "a" (p) \ 122 arch_test_and_##op##_bit(unsigned int bit, volatile unsigned long *p) \ 127 p += bit >> 5; \ 136 : [mask] "a" (inv mask), [addr] "a" (p) \ 150 p += bit >> 5; \ 159 [mem] "+m" (*p) \ 166 arch_test_and_##op##_bit(unsigned int bit, volatile unsigned long *p) \ 171 p += bit >> 5; \ [all …]
|
/openbmc/linux/drivers/clk/uniphier/ |
H A D | clk-uniphier-core.c | 45 const struct uniphier_clk_data *p, *data; in uniphier_clk_probe() local 63 for (p = data; p->name; p++) in uniphier_clk_probe() 64 clk_num = max(clk_num, p->idx + 1); in uniphier_clk_probe() 77 for (p = data; p->name; p++) { in uniphier_clk_probe() 80 dev_dbg(dev, "register %s (index=%d)\n", p->name, p->idx); in uniphier_clk_probe() 81 hw = uniphier_clk_register(dev, regmap, p); in uniphier_clk_probe() 82 if (WARN(IS_ERR(hw), "failed to register %s", p->name)) in uniphier_clk_probe() 85 if (p->idx >= 0) in uniphier_clk_probe() 86 hw_data->hws[p->idx] = hw; in uniphier_clk_probe()
|
/openbmc/phosphor-hwmon/ |
H A D | sysfs.cpp | 102 fs::path p{devPath}; in findCalloutPath() local 103 p /= "driver"; in findCalloutPath() 104 p = fs::canonical(p); in findCalloutPath() 106 if (p.filename() != "iio_hwmon") in findCalloutPath() 132 p = iioDev.path(); in findCalloutPath() 133 p /= "of_node"; in findCalloutPath() 137 p = fs::canonical(p); in findCalloutPath() 206 fs::path p{"/sys"}; in findHwmonFromDevPath() local 207 p /= fs::path(devPath).relative_path(); in findHwmonFromDevPath() 208 p /= "hwmon"; in findHwmonFromDevPath() [all …]
|
/openbmc/u-boot/lib/efi_loader/ |
H A D | efi_bootmgr.c | 58 u8 *p; in efi_serialize_load_option() local 69 p = malloc(size); in efi_serialize_load_option() 70 if (!p) in efi_serialize_load_option() 74 *data = p; in efi_serialize_load_option() 76 p += sizeof(lo->attributes); in efi_serialize_load_option() 79 p += sizeof(lo->file_path_length); in efi_serialize_load_option() 81 memcpy(p, lo->label, label_len); in efi_serialize_load_option() 82 p += label_len; in efi_serialize_load_option() 85 p += lo->file_path_length; in efi_serialize_load_option() 88 p += option_len; in efi_serialize_load_option() [all …]
|
/openbmc/linux/tools/testing/selftests/memfd/ |
H A D | fuse_test.c | 126 void *p; in mfd_assert_mmap_shared() local 128 p = mmap(NULL, in mfd_assert_mmap_shared() 134 if (p == MAP_FAILED) { in mfd_assert_mmap_shared() 139 return p; in mfd_assert_mmap_shared() 144 void *p; in mfd_assert_mmap_private() local 146 p = mmap(NULL, in mfd_assert_mmap_private() 152 if (p == MAP_FAILED) { in mfd_assert_mmap_private() 157 return p; in mfd_assert_mmap_private() 232 void *p; in main() local 279 global_p = p; in main() [all …]
|
/openbmc/linux/drivers/leds/ |
H A D | leds-sunfire.c | 33 struct sunfire_led *p = to_sunfire_led(led_cdev); in __clockboard_set() local 34 u8 reg = upa_readb(p->reg); in __clockboard_set() 51 upa_writeb(reg, p->reg); in __clockboard_set() 75 struct sunfire_led *p = to_sunfire_led(led_cdev); in __fhc_set() local 76 u32 reg = upa_readl(p->reg); in __fhc_set() 93 upa_writel(reg, p->reg); in __fhc_set() 129 struct sunfire_drvdata *p; in sunfire_led_generic_probe() local 138 p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL); in sunfire_led_generic_probe() 139 if (!p) in sunfire_led_generic_probe() 161 platform_set_drvdata(pdev, p); in sunfire_led_generic_probe() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | check | 43 p = argparse.ArgumentParser( 47 p.add_argument('-n', '--dry-run', action='store_true', 56 p.add_argument('-gdb', action='store_true', 59 p.add_argument('-valgrind', action='store_true', 63 p.add_argument('-misalign', action='store_true', 68 p.add_argument('-tap', action='store_true', 84 p.set_defaults(imgfmt='raw', imgproto='file') 88 g_fmt = p.add_argument_group( 98 g_prt = p.add_argument_group( 107 g_bash = p.add_argument_group('bash tests options', [all …]
|