/openbmc/linux/fs/configfs/ |
H A D | symlink.c | 24 struct config_item * p = item; in item_depth() local 26 do { depth++; } while ((p = p->ci_parent) && !configfs_is_root(p)); in item_depth() 32 struct config_item * p = item; in item_path_length() local 35 length += strlen(config_item_name(p)) + 1; in item_path_length() 36 p = p->ci_parent; in item_path_length() 37 } while (p && !configfs_is_root(p)); in item_path_length() 43 struct config_item * p; in fill_item_path() local 46 for (p = item; p && !configfs_is_root(p); p = p->ci_parent) { in fill_item_path() 47 int cur = strlen(config_item_name(p)); in fill_item_path() 51 memcpy(buffer + length, config_item_name(p), cur); in fill_item_path()
|
/openbmc/u-boot/board/freescale/mx53loco/ |
H A D | mx53loco.c | 199 struct pmic *p; in power_init() local 206 p = pmic_get("DIALOG_PMIC"); in power_init() 207 if (!p) in power_init() 249 p = pmic_get("FSL_PMIC"); in power_init() 250 if (!p) in power_init() 256 pmic_reg_read(p, REG_SW_0, &val); in power_init() 258 ret = pmic_reg_write(p, REG_SW_0, val); in power_init() 265 pmic_reg_read(p, REG_SW_1, &val); in power_init() 267 ret = pmic_reg_write(p, REG_SW_1, val); in power_init() 274 pmic_reg_read(p, REG_POWER_CTL2, &val); in power_init() [all …]
|
/openbmc/linux/drivers/parport/ |
H A D | parport_pc.c | 86 #define ECR_WRITE(p, v) frob_econtrol((p), 0xff, (v)) argument 2009 p->dma = programmable_dma_support(p); in parport_dma_probe() 2014 p->dma = get_superio_dma(p); in parport_dma_probe() 2069 if (!p) in __parport_pc_probe_port() 2112 p->size = (p->modes & PARPORT_MODE_EPP) ? 8 : 3; in __parport_pc_probe_port() 2205 irqflags, p->name, p)) { in __parport_pc_probe_port() 2207 p->name, p->irq); in __parport_pc_probe_port() 2215 if (request_dma(p->dma, p->name)) { in __parport_pc_probe_port() 2217 p->name, p->dma); in __parport_pc_probe_port() 2301 free_irq(p->irq, p); in parport_pc_unregister_port() [all …]
|
/openbmc/u-boot/drivers/fpga/ |
H A D | zynqmppl.c | 53 int p; in load_word() local 56 for (p = 0; p < 4; p++) { in load_word() 58 word |= bitc[p]; in load_word() 61 for (p = 3; p >= 0; p--) { in load_word() 63 word |= bitc[p]; in load_word() 105 u32 word, p = 0; /* possition */ in check_data() local 108 for (p = 0; p < bsize; p++) { in check_data() 110 debug("%s: word %x %x/%px\n", __func__, word, p, &buf[p]); in check_data() 115 __func__, p, &buf[p]); in check_data() 116 *swap = check_header(&buf[p]); in check_data() [all …]
|
/openbmc/linux/kernel/sched/ |
H A D | membarrier.c | 269 struct task_struct *p; in membarrier_global_expedited() local 291 if (!p->mm) in membarrier_global_expedited() 358 struct task_struct *p; in membarrier_private_expedited() local 364 if (!p || p->mm != mm) { in membarrier_private_expedited() 374 struct task_struct *p; in membarrier_private_expedited() local 377 if (p && p->mm == mm) in membarrier_private_expedited() 473 struct task_struct *p; in sync_runqueues_membarrier_state() local 476 if (p && p->mm == mm) in sync_runqueues_membarrier_state() 492 struct mm_struct *mm = p->mm; in membarrier_register_global_expedited() 511 struct mm_struct *mm = p->mm; in membarrier_register_private_expedited() [all …]
|
H A D | sched.h | 1214 #define task_rq(p) cpu_rq(task_cpu(p)) argument 1431 return p->se.cfs_rq; in task_cfs_rq() 1644 __acquires(p->pi_lock) 1657 __releases(p->pi_lock) in task_rq_unlock() 1955 if (!p->user_cpus_ptr) in task_user_cpus() 2017 set_task_rq_fair(&p->se, p->se.cfs_rq, tg->cfs_rq[cpu]); in set_task_rq() 2041 set_task_rq(p, cpu); in __set_task_cpu() 2050 p->wake_cpu = cpu; in __set_task_cpu() 2136 return rq->curr == p; in task_current() 2142 return p->on_cpu; in task_on_cpu() [all …]
|
/openbmc/linux/fs/afs/ |
H A D | vl_alias.c | 158 struct afs_cell *p; in afs_compare_cell_roots() local 165 if (p == cell || p->alias_of) in afs_compare_cell_roots() 167 if (!p->root_volume) in afs_compare_cell_roots() 188 struct afs_cell *p) in afs_query_for_alias_one() argument 194 read_seqlock_excl(&p->volume_lock); in afs_query_for_alias_one() 195 if (!RB_EMPTY_ROOT(&p->volumes)) in afs_query_for_alias_one() 199 read_sequnlock_excl(&p->volume_lock); in afs_query_for_alias_one() 236 struct afs_cell *p; in afs_query_for_alias() local 244 if (p == cell || p->alias_of) in afs_query_for_alias() 246 if (RB_EMPTY_ROOT(&p->volumes)) in afs_query_for_alias() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/ |
H A D | kvm_page_table_test.c | 92 struct test_args *p = &test_args; in guest_code() local 98 addr = p->guest_test_virt_mem; in guest_code() 122 addr += p->large_page_size; in guest_code() 137 addr += p->host_page_size; in guest_code() 155 addr += p->large_page_size / 2; in guest_code() 158 addr += p->host_page_size; in guest_code() 173 addr += p->host_page_size; in guest_code() 240 struct test_params *p = arg; in pre_init_before_test() local 261 if (!p->phys_offset) in pre_init_before_test() 442 struct test_params p = { in main() local [all …]
|
/openbmc/linux/net/sched/ |
H A D | act_nat.c | 46 struct tcf_nat *p; in tcf_nat_init() local 95 p = to_tcf_nat(*a); in tcf_nat_init() 97 spin_lock_bh(&p->tcf_lock); in tcf_nat_init() 99 oparm = rcu_replace_pointer(p->parms, nparm, lockdep_is_held(&p->tcf_lock)); in tcf_nat_init() 100 spin_unlock_bh(&p->tcf_lock); in tcf_nat_init() 273 .index = p->tcf_index, in tcf_nat_dump() 280 spin_lock_bh(&p->tcf_lock); in tcf_nat_dump() 282 opt.action = p->tcf_action; in tcf_nat_dump() 284 parms = rcu_dereference_protected(p->parms, lockdep_is_held(&p->tcf_lock)); in tcf_nat_dump() 294 tcf_tm_dump(&t, &p->tcf_tm); in tcf_nat_dump() [all …]
|
/openbmc/u-boot/board/udoo/neo/ |
H A D | neo.c | 101 struct pmic *p; in power_init_board() local 109 p = pmic_get("PFUZE3000"); in power_init_board() 110 ret = pmic_probe(p); in power_init_board() 114 pmic_reg_read(p, PFUZE3000_DEVICEID, ®); in power_init_board() 115 pmic_reg_read(p, PFUZE3000_REVID, &rev_id); in power_init_board() 119 pmic_reg_read(p, PFUZE3000_LDOGCTL, ®); in power_init_board() 142 pmic_reg_read(p, PFUZE3000_SW1ASTBY, ®); in power_init_board() 150 pmic_reg_read(p, PFUZE3000_SW1BSTBY, ®); in power_init_board() 158 pmic_reg_read(p, PFUZE3000_SW1ACONF, ®); in power_init_board() 166 pmic_reg_read(p, PFUZE3000_SW1BCONF, ®); in power_init_board() [all …]
|
/openbmc/linux/fs/nfs/ |
H A D | mount_clnt.c | 306 __be32 *p; in encode_mntdirpath() local 331 __be32 *p; in decode_status() local 334 if (unlikely(p == NULL)) in decode_status() 353 __be32 *p; in decode_fhandle() local 356 if (unlikely(p == NULL)) in decode_fhandle() 381 __be32 *p; in decode_fhs_status() local 384 if (unlikely(p == NULL)) in decode_fhs_status() 404 __be32 *p; in decode_fhandle3() local 407 if (unlikely(p == NULL)) in decode_fhandle3() 410 size = be32_to_cpup(p); in decode_fhandle3() [all …]
|
/openbmc/linux/arch/powerpc/mm/ |
H A D | drmem.c | 70 u32 *p; in drmem_update_dt_v1() local 76 p = new_prop->value; in drmem_update_dt_v1() 110 u32 *p; in drmem_update_dt_v2() local 134 p = new_prop->value; in drmem_update_dt_v2() 207 p += n_root_addr_cells; in read_drconf_v1_cell() 215 *prop = p; in read_drconf_v1_cell() 244 p += n_root_addr_cells; in read_drconf_v2_cell() 249 *prop = p; in read_drconf_v2_cell() 446 const __be32 *p; in init_drmem_v2_lmbs() local 455 p = prop; in init_drmem_v2_lmbs() [all …]
|
/openbmc/linux/drivers/video/fbdev/matrox/ |
H A D | g450_pll.c | 21 return (p & 0x40) ? fvco : fvco >> ((p & 3) + 1); in g450_vco2f() 25 return (p & 0x40) ? fin : fin << ((p & 3) + 1); in g450_f2vco() 72 p--; in g450_nextpll() 74 p = 0x40; in g450_nextpll() 83 p &= 0x43; in g450_nextpll() 87 p |= 0x08; in g450_nextpll() 89 p |= 0x10; in g450_nextpll() 91 p |= 0x18; in g450_nextpll() 118 p = 0x40; in g450_firstpll() 122 p = 3; in g450_firstpll() [all …]
|
/openbmc/linux/fs/ubifs/ |
H A D | log.c | 37 while (p) { in ubifs_search_bud() 40 p = p->rb_left; in ubifs_search_bud() 42 p = p->rb_right; in ubifs_search_bud() 70 while (p) { in ubifs_get_wbuf() 73 p = p->rb_left; in ubifs_get_wbuf() 75 p = p->rb_right; in ubifs_get_wbuf() 125 p = &(*p)->rb_left; in ubifs_add_bud() 127 p = &(*p)->rb_right; in ubifs_add_bud() 310 p = rb_next(p); in remove_buds() 570 p = &(*p)->rb_left; in done_already() [all …]
|
/openbmc/u-boot/fs/ubifs/ |
H A D | log.c | 40 while (p) { in ubifs_search_bud() 43 p = p->rb_left; in ubifs_search_bud() 45 p = p->rb_right; in ubifs_search_bud() 73 while (p) { in ubifs_get_wbuf() 76 p = p->rb_left; in ubifs_get_wbuf() 78 p = p->rb_right; in ubifs_get_wbuf() 128 p = &(*p)->rb_left; in ubifs_add_bud() 130 p = &(*p)->rb_right; in ubifs_add_bud() 304 p = rb_next(p); in remove_buds() 552 p = &(*p)->rb_left; in done_already() [all …]
|
/openbmc/linux/mm/ |
H A D | util.c | 129 void *p; in kmemdup() local 132 if (p) in kmemdup() 134 return p; in kmemdup() 150 void *p; in kvmemdup() local 153 if (p) in kvmemdup() 195 void *p; in memdup_user() local 198 if (!p) in memdup_user() 221 void *p; in vmemdup_user() local 224 if (!p) in vmemdup_user() 245 char *p; in strndup_user() local [all …]
|
/openbmc/linux/drivers/media/usb/go7007/ |
H A D | go7007-fw.c | 65 ++name.p; \ 292 int i, p = 0; in mjpeg_frame_header() local 298 buf[p++] = 0; in mjpeg_frame_header() 300 buf[p++] = 0; in mjpeg_frame_header() 307 buf[p++] = 0; in mjpeg_frame_header() 309 buf[p++] = 8; in mjpeg_frame_header() 330 p += 16; in mjpeg_frame_header() 335 p += 16; in mjpeg_frame_header() 340 p += 16; in mjpeg_frame_header() 345 p += 16; in mjpeg_frame_header() [all …]
|
/openbmc/linux/fs/f2fs/ |
H A D | gc.c | 265 p->max_search = count_bits(p->dirty_bitmap, in select_policy() 279 (p->gc_mode != GC_AT && p->alloc_mode != AT_SSR) && in select_policy() 290 p->offset = SIT_I(sbi)->last_victim[p->gc_mode]; in select_policy() 471 p = &(*p)->rb_left; in __insert_victim_entry() 473 p = &(*p)->rb_right; in __insert_victim_entry() 577 (cost == p->min_cost && age > p->oldest_age)) { in atgc_lookup_victim() 640 (cost == p->min_cost && age > p->oldest_age)) { in atssr_lookup_victim() 767 p.min_cost = get_max_cost(sbi, &p); in f2fs_get_victim() 822 p.offset / p.ofs_unit); in f2fs_get_victim() 835 p.offset = segno + p.ofs_unit; in f2fs_get_victim() [all …]
|
/openbmc/linux/tools/perf/tests/shell/ |
H A D | stat_all_pmu.sh | 8 for p in $(perf list --raw-dump pmu | sed 's/[[:graph:]]\+?[[:graph:]]\+[[:space:]]//g'); do 9 echo "Testing $p" 10 result=$(perf stat -e "$p" true 2>&1) 11 if ! echo "$result" | grep -q "$p" && ! echo "$result" | grep -q "<not supported>" ; then 14 result=$(perf stat -e "$p" perf bench internals synthesize 2>&1) 15 if ! echo "$result" | grep -q "$p" ; then 16 echo "Event '$p' not printed in:"
|
/openbmc/linux/drivers/block/drbd/ |
H A D | drbd_main.c | 620 if (!p) in conn_prepare_command() 724 if (!p) in drbd_send_sync_param() 740 memset(&p->algs, 0, sizeof(p->algs)); in drbd_send_sync_param() 776 if (!p) in __drbd_send_protocol() 922 if (!p) in drbd_send_sizes() 998 if (!p) in drbd_send_current_state() 1021 if (!p) in drbd_send_state() 1034 if (!p) in drbd_send_state_req() 1050 if (!p) in conn_send_state_req() 1087 p->encoding = (p->encoding & ~0xf) | code; in dcbp_set_code() [all …]
|
/openbmc/linux/drivers/base/ |
H A D | pinctrl.c | 32 dev->pins->p = devm_pinctrl_get(dev); in pinctrl_bind_pins() 33 if (IS_ERR(dev->pins->p)) { in pinctrl_bind_pins() 35 ret = PTR_ERR(dev->pins->p); in pinctrl_bind_pins() 39 dev->pins->default_state = pinctrl_lookup_state(dev->pins->p, in pinctrl_bind_pins() 47 dev->pins->init_state = pinctrl_lookup_state(dev->pins->p, in pinctrl_bind_pins() 53 ret = pinctrl_select_state(dev->pins->p, in pinctrl_bind_pins() 56 ret = pinctrl_select_state(dev->pins->p, dev->pins->init_state); in pinctrl_bind_pins() 70 dev->pins->sleep_state = pinctrl_lookup_state(dev->pins->p, in pinctrl_bind_pins() 76 dev->pins->idle_state = pinctrl_lookup_state(dev->pins->p, in pinctrl_bind_pins() 91 devm_pinctrl_put(dev->pins->p); in pinctrl_bind_pins()
|
/openbmc/u-boot/board/k+p/kp_imx53/ |
H A D | kp_id_rev.c | 24 u8 *p; in show_eeprom() local 54 p = eeprom.mac; in show_eeprom() 55 if (!is_valid_ethaddr(p)) { in show_eeprom() 61 p[0], p[1], p[2], p[3], p[4], p[5]); in show_eeprom() 63 eth_env_set_enetaddr("ethaddr", p); in show_eeprom()
|
/openbmc/openbmc/meta-arm/scripts/ |
H A D | layer-overview.py | 29 machines = sorted(p for p in layer.glob("conf/machine/*.conf")) 36 recipes = sorted((p for p in layer.glob("recipes-*/*/*.bb")), key=lambda p:p.name) 63 sublayers = sorted(p for p in base.glob("meta-*") if is_layer(p))
|
/openbmc/linux/security/selinux/ss/ |
H A D | conditional.h | 64 void cond_policydb_init(struct policydb *p); 65 void cond_policydb_destroy(struct policydb *p); 67 int cond_init_bool_indexes(struct policydb *p); 68 int cond_destroy_bool(void *key, void *datum, void *p); 72 int cond_read_bool(struct policydb *p, struct symtab *s, void *fp); 73 int cond_read_list(struct policydb *p, void *fp); 75 int cond_write_list(struct policydb *p, void *fp); 81 void evaluate_cond_nodes(struct policydb *p); 82 void cond_policydb_destroy_dup(struct policydb *p);
|
/openbmc/linux/scripts/coccinelle/misc/ |
H A D | test_addr.cocci | 17 position p; 20 *\(&x@p == NULL \| &x@p != NULL\) 23 p << r.p; 26 cocci.print_main("test of a variable/field address",p) 29 p << r.p; 33 coccilib.report.print_report(p[0],msg)
|