Home
last modified time | relevance | path

Searched refs:p (Results 651 – 675 of 9049) sorted by relevance

1...<<21222324252627282930>>...362

/openbmc/u-boot/lib/
H A Dstring.c299 const char *p; in strcspn() local
303 for (p = s; *p != '\0'; ++p) { in strcspn()
305 if (*p == *r) in strcspn()
338 const char *p; in strspn() local
342 for (p = s; *p != '\0'; ++p) { in strspn()
443 char *p, *q; in strswab() local
449 for (p=(char *)s, q=p+1; (*p != '\0') && (*q != '\0'); p+=2, q+=2) { in strswab()
452 tmp = *p; in strswab()
453 *p = *q; in strswab()
611 if (*p == c) in memscan()
[all …]
H A Dcircbuf.c43 char *p; in buf_pop() local
48 p = buf->top; in buf_pop()
55 dest[i] = *p++; in buf_pop()
57 if (p == buf->end) { in buf_pop()
58 p = buf->data; in buf_pop()
63 buf->top = p; in buf_pop()
73 char *p; in buf_push() local
78 p = buf->tail; in buf_push()
81 *p++ = src[i]; in buf_push()
83 p = buf->data; in buf_push()
[all …]
/openbmc/linux/drivers/infiniband/hw/qib/
H A Dqib_mad.c336 p[0] = g; in subn_get_guidinfo()
1164 p->base_version = 1; in pma_get_classportinfo()
1165 p->class_version = 1; in pma_get_classportinfo()
1171 ib_set_cpi_capmask2(p, in pma_get_classportinfo()
1484 p->port_rcv_errors = in pma_get_portcounters()
1583 p->port_check_rate = in pma_get_portcounters_cong()
1593 p->port_rcv_packets = in pma_get_portcounters_cong()
1614 p->port_rcv_errors = in pma_get_portcounters_cong()
2101 p->base_version = 1; in cc_get_classportinfo()
2102 p->class_version = 1; in cc_get_classportinfo()
[all …]
/openbmc/linux/scripts/
H A Dextract-module-sig.pl48 my $p = $len - length($magic_number);
49 my $raw_magic = substr($buf, $p);
55 $p -= 12;
56 my $raw_info = substr($buf, $p, 12);
77 $p -= $sig_len;
78 my $raw_sig = substr($buf, $p, $sig_len);
79 $p -= $kid_len;
80 my $raw_kid = substr($buf, $p, $kid_len);
81 $p -= $name_len;
82 my $raw_name = substr($buf, $p, $name_len);
[all …]
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_port.c355 outb(p->hub6 - 1 + offset, p->iobase); in hub6_serial_in()
362 outb(p->hub6 - 1 + offset, p->iobase); in hub6_serial_out()
480 p->serial_out(p, offset, value); in serial_port_out_sync()
481 p->serial_in(p, UART_LCR); /* safe, no side-effects */ in serial_port_out_sync()
484 p->serial_out(p, offset, value); in serial_port_out_sync()
507 serial_out(p, UART_FCR, p->fcr); in serial8250_clear_and_reinit_fifos()
566 p->em485->port = p; in serial8250_em485_init()
572 p->rs485_stop_tx(p); in serial8250_em485_init()
1426 serial_port_out(&p->port, UART_IER, p->ier); in serial8250_em485_stop_tx()
1441 p->rs485_stop_tx(p); in serial8250_em485_handle_stop_tx()
[all …]
/openbmc/linux/tools/hv/
H A Dhv_kvp_daemon.c435 if (p) in kvp_get_os_info()
459 q = p; in kvp_get_os_info()
462 ++p; in kvp_get_os_info()
466 } else if (*p == '\'' || *p == '"' || in kvp_get_os_info()
468 ++p; in kvp_get_os_info()
507 if (p) { in kvp_get_os_info()
509 if (p) in kvp_get_os_info()
512 if (!p) in kvp_get_os_info()
520 if (p) in kvp_get_os_info()
629 p[i] = toupper(p[i]); in kvp_if_name_to_mac()
[all …]
/openbmc/linux/tools/perf/util/
H A Dmem2node.c20 struct rb_node **p = &root->rb_node; in phys_entry__insert() local
24 while (*p != NULL) { in phys_entry__insert()
25 parent = *p; in phys_entry__insert()
29 p = &(*p)->rb_left; in phys_entry__insert()
31 p = &(*p)->rb_right; in phys_entry__insert()
121 struct rb_node **p, *parent = NULL; in mem2node__node() local
124 p = &map->root.rb_node; in mem2node__node()
125 while (*p != NULL) { in mem2node__node()
126 parent = *p; in mem2node__node()
129 p = &(*p)->rb_left; in mem2node__node()
[all …]
/openbmc/linux/drivers/hid/
H A Dhid-uclogic-rdesc.c1218 __u8 *p; in uclogic_rdesc_template_apply() local
1225 for (p = rdesc_ptr; p + sizeof(btn_head) < rdesc_ptr + template_size;) { in uclogic_rdesc_template_apply()
1227 memcmp(p, pen_head, sizeof(pen_head)) == 0 && in uclogic_rdesc_template_apply()
1228 p[sizeof(pen_head)] < param_num) { in uclogic_rdesc_template_apply()
1229 v = param_list[p[sizeof(pen_head)]]; in uclogic_rdesc_template_apply()
1231 p += sizeof(pen_head) + 1; in uclogic_rdesc_template_apply()
1233 p[sizeof(btn_head)] < param_num) { in uclogic_rdesc_template_apply()
1234 v = param_list[p[sizeof(btn_head)]]; in uclogic_rdesc_template_apply()
1235 put_unaligned((__u8)0x2A, p); /* Usage Maximum */ in uclogic_rdesc_template_apply()
1237 p += sizeof(btn_head) + 1; in uclogic_rdesc_template_apply()
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_main.c2269 u32 *p = data; in hns_dsaf_get_regs() local
2590 p[i] = 0xdddddddd; in hns_dsaf_get_regs()
2647 u64 *p = data; in hns_dsaf_get_node_stats() local
2652 p[0] = hw_stats->pad_drop; in hns_dsaf_get_node_stats()
2653 p[1] = hw_stats->man_pkts; in hns_dsaf_get_node_stats()
2654 p[2] = hw_stats->rx_pkts; in hns_dsaf_get_node_stats()
2660 p[8] = hw_stats->bp_drop; in hns_dsaf_get_node_stats()
2671 return &p[30]; in hns_dsaf_get_node_stats()
2675 return &p[14]; in hns_dsaf_get_node_stats()
2686 u64 *p = data; in hns_dsaf_get_stats() local
[all …]
/openbmc/linux/drivers/video/fbdev/core/
H A Dcfbfillrect.c100 first = FB_SHIFT_HIGH(p, ~0UL, dst_idx); in bitfill_unaligned()
226 first = FB_SHIFT_HIGH(p, ~0UL, dst_idx); in bitfill_unaligned_rev()
283 u32 bpp = p->var.bits_per_pixel; in cfb_fillrect()
287 if (p->state != FBINFO_STATE_RUNNING) in cfb_fillrect()
290 if (p->fix.visual == FB_VISUAL_TRUECOLOR || in cfb_fillrect()
303 if (p->fbops->fb_sync) in cfb_fillrect()
304 p->fbops->fb_sync(p); in cfb_fillrect()
306 u32 bswapmask = fb_compute_bswapmask(p); in cfb_fillrect()
307 void (*fill_op32)(struct fb_info *p, in cfb_fillrect()
329 dst_idx += p->fix.line_length*8; in cfb_fillrect()
[all …]
/openbmc/linux/drivers/video/fbdev/
H A Dchipsfb.c335 p->fix = chipsfb_fix; in init_chips()
338 p->var = chipsfb_var; in init_chips()
349 struct fb_info *p; in chipsfb_pci_init() local
375 if (p == NULL) { in chipsfb_pci_init()
420 init_chips(p, addr); in chipsfb_pci_init()
430 p->node, p->fix.smem_len / 1024); in chipsfb_pci_init()
454 p->screen_base = NULL; in chipsfb_remove()
469 chipsfb_blank(1, p); in chipsfb_pci_suspend()
470 fb_set_suspend(p, 1); in chipsfb_pci_suspend()
482 fb_set_suspend(p, 0); in chipsfb_pci_resume()
[all …]
/openbmc/linux/drivers/i2c/busses/
H A Di2c-eg20t.c215 iowrite32(0x01, p + PCH_I2CSRST); in pch_i2c_init()
217 iowrite32(0x0, p + PCH_I2CSRST); in pch_i2c_init()
220 iowrite32(0x21, p + PCH_I2CNF); in pch_i2c_init()
238 iowrite32(pch_i2cbc, p + PCH_I2CBC); in pch_i2c_init()
244 iowrite32(reg_value, p + PCH_I2CCTL); in pch_i2c_init()
599 sts = ioread32(p + PCH_I2CSR); in pch_i2c_cb()
626 void __iomem *p; in pch_i2c_handler() local
631 mode = ioread32(p + PCH_I2CMOD); in pch_i2c_handler()
638 reg_val = ioread32(p + PCH_I2CSR); in pch_i2c_handler()
872 ioread32(p + PCH_I2CSR), ioread32(p + PCH_I2CBUFSTA), in pch_i2c_suspend()
[all …]
/openbmc/linux/kernel/sched/
H A Dcputime.c126 p->utime += cputime; in account_user_time()
135 acct_account_cputime(p); in account_user_time()
148 p->utime += cputime; in account_guest_time()
150 p->gtime += cputime; in account_guest_time()
153 if (task_nice(p) > 0) { in account_guest_time()
172 p->stime += cputime; in account_system_index_time()
179 acct_account_cputime(p); in account_system_index_time()
193 account_guest_time(p, cputime); in account_system_time()
402 account_user_time(p, cputime); in irqtime_account_process_tick()
465 *ut = p->utime; in task_cputime_adjusted()
[all …]
/openbmc/linux/drivers/pinctrl/
H A Dcore.c1054 p = kzalloc(sizeof(*p), GFP_KERNEL); in create_pinctrl()
1055 if (!p) in create_pinctrl()
1063 kfree(p); in create_pinctrl()
1121 return p; in create_pinctrl()
1141 if (p) { in pinctrl_get()
1144 return p; in pinctrl_get()
1189 kfree(p); in pinctrl_free()
1294 if (p != setting->pctldev->p) in pinctrl_commit_state()
1318 if (p != setting->pctldev->p) in pinctrl_commit_state()
1392 return p; in devm_pinctrl_get()
[all …]
/openbmc/u-boot/scripts/dtc/libfdt/
H A Dfdt_ro.c89 return (strlen(p) == len) && (memcmp(p, s, len) == 0); in fdt_string_eq_()
199 p = fdt_get_alias_namelen(fdt, p, q - p); in fdt_path_offset_namelen()
200 if (!p) in fdt_path_offset_namelen()
204 p = q; in fdt_path_offset_namelen()
211 p++; in fdt_path_offset_namelen()
215 q = memchr(p, '/', end - p); in fdt_path_offset_namelen()
219 offset = fdt_subnode_offset_namelen(fdt, offset, p, q-p); in fdt_path_offset_namelen()
223 p = q; in fdt_path_offset_namelen()
475 p--; in fdt_get_path()
497 p--; in fdt_get_path()
[all …]
/openbmc/linux/include/linux/sched/
H A Dtask_stack.h39 static inline void setup_thread_stack(struct task_struct *p, struct task_struct *org) in setup_thread_stack() argument
41 *task_thread_info(p) = *task_thread_info(org); in setup_thread_stack()
42 task_thread_info(p)->task = p; in setup_thread_stack()
54 static inline unsigned long *end_of_stack(struct task_struct *p) in end_of_stack() argument
57 return (unsigned long *)((unsigned long)task_thread_info(p) + THREAD_SIZE) - 1; in end_of_stack()
59 return (unsigned long *)(task_thread_info(p) + 1); in end_of_stack()
97 static inline unsigned long stack_not_used(struct task_struct *p) in stack_not_used() argument
99 unsigned long *n = end_of_stack(p); in stack_not_used()
110 return (unsigned long)end_of_stack(p) - (unsigned long)n; in stack_not_used()
112 return (unsigned long)n - (unsigned long)end_of_stack(p); in stack_not_used()
/openbmc/linux/arch/powerpc/xmon/
H A Dnonstdio.c41 const char *p = ptr, *q; in xmon_write() local
51 while (paginating && (q = strchr(p, '\n'))) { in xmon_write()
52 rv += udbg_write(p, q - p + 1); in xmon_write()
53 p = q + 1; in xmon_write()
80 return rv + udbg_write(p, nb - (p - ptr)); in xmon_write()
149 char *p; in xmon_gets() local
152 for (p = str; p < str + nb - 1; ) { in xmon_gets()
155 if (p == str) in xmon_gets()
159 *p++ = c; in xmon_gets()
163 *p = 0; in xmon_gets()
/openbmc/qemu/util/
H A Dbitops.c33 tmp = *(p++); in find_next_bit()
46 tmp = *p; in find_next_bit()
47 d1 = *(p+1); in find_next_bit()
48 d2 = *(p+2); in find_next_bit()
49 d3 = *(p+3); in find_next_bit()
56 p += 4; in find_next_bit()
61 if ((tmp = *(p++))) { in find_next_bit()
70 tmp = *p; in find_next_bit()
98 tmp = *(p++); in find_next_zero_bit()
110 if (~(tmp = *(p++))) { in find_next_zero_bit()
[all …]
/openbmc/openbmc/poky/bitbake/lib/ply/
H A Dyacc.py1212 p.lr_before = p.prod[n-1]
2126 if p.lr_index < p.len - 1:
2149 if p.lr_index < p.len - 1:
2150 a = p.prod[p.lr_index+1]
2174 if p.lr_index < p.len - 1:
2175 a = p.prod[p.lr_index + 1]
2399 if p.len == p.lr_index + 1:
2649 … f.write(" (%r,%r,%d,%r,%r,%d),\n" % (p.str,p.name, p.len, p.func,p.file,p.line))
2651 f.write(" (%r,%r,%d,None,None,None),\n" % (str(p),p.name, p.len))
2683 outp.append((p.str,p.name, p.len, p.func,p.file,p.line))
[all …]
/openbmc/phosphor-fan-presence/control/templates/
H A Dfan_zone_defs.mako.cpp55 %for p in i['props']:
60 &Zone::${p['func']},
61 static_cast<${p['type']}>(
62 %if "vector" in p['type'] or "map" in p['type']:
63 ${p['type']}{
72 %if "vector" in p['type'] or "map" in p['type']:
76 ${p['persist']}
120 %for p in a['params']:
121 ${p['type']}${p['open']}
123 %if (j+1) != len(p['values']):
[all …]
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_vce.c528 if (p->rdev->vce.filp[i] != p->filp) { in radeon_vce_validate_handle()
539 p->rdev->vce.filp[i] = p->filp; in radeon_vce_validate_handle()
564 while (p->idx < p->chunk_ib->length_dw) { in radeon_vce_cs_parse()
582 handle = radeon_get_ib_value(p, p->idx + 2); in radeon_vce_cs_parse()
602 radeon_get_ib_value(p, p->idx + 10) * in radeon_vce_cs_parse()
615 r = radeon_vce_cs_reloc(p, p->idx + 10, p->idx + 9, in radeon_vce_cs_parse()
620 r = radeon_vce_cs_reloc(p, p->idx + 12, p->idx + 11, in radeon_vce_cs_parse()
631 r = radeon_vce_cs_reloc(p, p->idx + 3, p->idx + 2, in radeon_vce_cs_parse()
638 tmp = radeon_get_ib_value(p, p->idx + 4); in radeon_vce_cs_parse()
639 r = radeon_vce_cs_reloc(p, p->idx + 3, p->idx + 2, in radeon_vce_cs_parse()
[all …]
/openbmc/linux/net/rxrpc/
H A Dsendmsg.c505 if (p->abort_code == 0) in rxrpc_sendmsg_cmsg()
518 p->exclusive = true; in rxrpc_sendmsg_cmsg()
524 p->upgrade = true; in rxrpc_sendmsg_cmsg()
533 if (p->call.tx_total_len < 0) in rxrpc_sendmsg_cmsg()
544 if (p->call.nr_timeouts >= 2 && p->call.timeouts.idle > 60 * 60 * 1000) in rxrpc_sendmsg_cmsg()
546 if (p->call.nr_timeouts >= 3 && p->call.timeouts.normal > 60 * 60 * 1000) in rxrpc_sendmsg_cmsg()
557 if (p->call.tx_total_len != -1 && p->command != RXRPC_CMD_SEND_DATA) in rxrpc_sendmsg_cmsg()
596 cp.upgrade = p->upgrade; in rxrpc_new_client_call_for_sendmsg()
619 struct rxrpc_send_params p = { in rxrpc_do_sendmsg() local
654 p.call.nr_timeouts = 0; in rxrpc_do_sendmsg()
[all …]
/openbmc/u-boot/drivers/mtd/ubi/
H A Dcrc32.c73 crc ^= *p++; in crc32_le()
98 DO_CRC(*p++); in crc32_le()
99 b = (void *)p; in crc32_le()
121 DO_CRC(*p++); in crc32_le()
122 b = (void *)p; in crc32_le()
132 crc ^= *p++; in crc32_le()
139 crc ^= *p++; in crc32_le()
196 DO_CRC(*p++); in crc32_be()
197 b = (u32 *)p; in crc32_be()
219 DO_CRC(*p++); in crc32_be()
[all …]
/openbmc/linux/drivers/sbus/char/
H A Ductrl.c352 p = kzalloc(sizeof(*p), GFP_KERNEL); in uctrl_probe()
353 if (!p) { in uctrl_probe()
361 if (!p->regs) { in uctrl_probe()
367 err = request_irq(p->irq, uctrl_interrupt, 0, "uctrl", p); in uctrl_probe()
381 op->dev.of_node, p->regs, p->irq); in uctrl_probe()
386 global_driver = p; in uctrl_probe()
392 free_irq(p->irq, p); in uctrl_probe()
398 kfree(p); in uctrl_probe()
406 if (p) { in uctrl_remove()
408 free_irq(p->irq, p); in uctrl_remove()
[all …]
/openbmc/linux/security/keys/
H A Dproc.c18 static void proc_keys_stop(struct seq_file *p, void *v);
45 struct proc_dir_entry *p; in key_proc_init() local
47 p = proc_create_seq("keys", 0, NULL, &proc_keys_ops); in key_proc_init()
48 if (!p) in key_proc_init()
52 if (!p) in key_proc_init()
66 struct user_namespace *user_ns = seq_user_ns(p); in key_serial_next()
80 struct user_namespace *user_ns = seq_user_ns(p); in find_ge_key()
122 key = find_ge_key(p, pos); in proc_keys_start()
139 n = key_serial_next(p, v); in proc_keys_next()
282 _p = key_user_first(seq_user_ns(p), &key_user_tree); in proc_key_users_start()
[all …]

1...<<21222324252627282930>>...362