/openbmc/linux/tools/perf/bench/ |
H A D | numa.c | 973 for (p = 0; p < g->p.nr_proc; p++) { in count_node_processes() 979 task_nr = p*g->p.nr_threads + t; in count_node_processes() 996 int p; in calc_convergence_compression() local 1001 for (p = 0; p < g->p.nr_proc; p++) { in calc_convergence_compression() 1482 if (!g->p.mb_global_str && !g->p.mb_proc_str && !g->p.mb_thread_str) in init() 1486 g->p.mb_global = atof(g->p.mb_global_str); in init() 1491 g->p.mb_proc = atof(g->p.mb_proc_str); in init() 1502 g->p.mb_thread = atof(g->p.mb_thread_str); in init() 1509 g->p.nr_tasks = g->p.nr_proc*g->p.nr_threads; in init() 1721 for (p = 0; p < g->p.nr_proc; p++) { in __bench_numa() [all …]
|
/openbmc/linux/fs/nfs/ |
H A D | nfs3xdr.c | 633 p = xdr_decode_ftype3(p, &fmode); in decode_fattr3() 644 p = xdr_decode_size3(p, &fattr->size); in decode_fattr3() 646 p = xdr_decode_specdata3(p, &fattr->rdev); in decode_fattr3() 651 p = xdr_decode_fileid3(p, &fattr->fileid); in decode_fattr3() 652 p = xdr_decode_nfstime3(p, &fattr->atime); in decode_fattr3() 653 p = xdr_decode_nfstime3(p, &fattr->mtime); in decode_fattr3() 936 p = xdr_encode_hyper(p, args->offset); in encode_read3args() 979 p = xdr_encode_hyper(p, args->offset); in encode_write3args() 1234 p = xdr_encode_cookie3(p, args->cookie); in encode_readdir3args() 1271 p = xdr_encode_cookie3(p, args->cookie); in encode_readdirplus3args() [all …]
|
/openbmc/linux/net/ceph/ |
H A D | cls_lock_client.c | 36 void *p, *end; in ceph_cls_lock() local 63 ceph_encode_8(&p, type); in ceph_cls_lock() 71 ceph_encode_8(&p, flags); in ceph_cls_lock() 101 void *p, *end; in ceph_cls_unlock() local 154 void *p, *end; in ceph_cls_break_lock() local 201 void *p, *end; in ceph_cls_set_cookie() local 224 ceph_encode_8(&p, type); in ceph_cls_set_cookie() 344 void *p, *end; in ceph_cls_lock_info() local 378 end = p + reply_len; in ceph_cls_lock_info() 397 void *p, *end; in ceph_cls_assert_locked() local [all …]
|
/openbmc/linux/include/linux/ |
H A D | rcupdate.h | 446 ((void)(((typeof(*p) space *)p) == p)) 453 typeof(*p) *local = (typeof(*p) *__force)(p); \ 464 #define unrcu_pointer(p) __unrcu_pointer(p, __UNIQUE_ID(rcu)) argument 468 typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \ 475 typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \ 484 ((typeof(*p) __force __kernel *)(p)); \ 489 typeof(p) local = READ_ONCE(p); \ 537 WRITE_ONCE((p), (typeof(p))(_r_a_p__v)); \ 695 #define rcu_dereference(p) rcu_dereference_check(p, 0) argument 703 #define rcu_dereference_bh(p) rcu_dereference_bh_check(p, 0) argument [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_process.c | 540 if (!p || !p->kobj) in kfd_procfs_add_sysfs_stats() 587 if (!p || !p->kobj) in kfd_procfs_add_sysfs_counters() 630 if (!p || !p->kobj) in kfd_procfs_add_sysfs_files() 1075 sysfs_remove_file(p->kobj, &p->attr_pasid); in kfd_process_remove_sysfs() 1164 return p ? &p->mmu_notifier : ERR_PTR(-ESRCH); in kfd_process_alloc_notifier() 1611 p->pdds[p->n_pdds++] = pdd; in kfd_create_process_device_data() 1805 if (p) in kfd_lookup_process_by_mm() 1907 if (p->pdds[i] && p->pdds[i]->dev == node) { in kfd_process_gpuid_from_node() 2170 p = workarea->p; in send_exception_work_handler() 2207 worker.p = p; in kfd_send_exception_to_runtime() [all …]
|
/openbmc/qemu/hw/intc/ |
H A D | loongson_liointc.c | 68 p->isr = p->pin_state; in update_irq() 71 p->isr &= p->ien; in update_irq() 103 p->parent_state[parent] = !p->parent_state[parent]; in update_irq() 104 qemu_set_irq(p->parent_irq[parent], p->parent_state[parent]); in update_irq() 140 r = p->isr; in liointc_read() 143 r = p->ien; in liointc_read() 189 p->ien |= value; in liointc_write() 192 p->ien &= ~value; in liointc_write() 199 update_irq(p); in liointc_write() 218 update_irq(p); in irq_handler() [all …]
|
/openbmc/qemu/include/exec/ |
H A D | cpu-all.h | 44 #define lduw_p(p) lduw_be_p(p) argument 45 #define ldsw_p(p) ldsw_be_p(p) argument 46 #define ldl_p(p) ldl_be_p(p) argument 47 #define ldq_p(p) ldq_be_p(p) argument 48 #define stw_p(p, v) stw_be_p(p, v) argument 49 #define stl_p(p, v) stl_be_p(p, v) argument 50 #define stq_p(p, v) stq_be_p(p, v) argument 54 #define lduw_p(p) lduw_le_p(p) argument 55 #define ldsw_p(p) ldsw_le_p(p) argument 56 #define ldl_p(p) ldl_le_p(p) argument [all …]
|
/openbmc/linux/drivers/char/ipmi/ |
H A D | ipmi_plat_data.c | 12 struct ipmi_plat_data *p) in ipmi_platform_add() argument 25 if (p->type == SI_BT) in ipmi_platform_add() 30 if (p->regsize == 0) in ipmi_platform_add() 32 if (p->regspacing == 0) in ipmi_platform_add() 33 p->regspacing = p->regsize; in ipmi_platform_add() 40 if (p->slave_addr) in ipmi_platform_add() 43 if (p->regshift) in ipmi_platform_add() 69 r[0].start = p->addr; in ipmi_platform_add() 90 if (p->irq) { in ipmi_platform_add() 91 r[num_r].start = p->irq; in ipmi_platform_add() [all …]
|
/openbmc/linux/fs/lockd/ |
H A D | svcxdr.h | 24 __be32 *p; in svcxdr_decode_stats() local 27 if (!p) in svcxdr_decode_stats() 37 __be32 *p; in svcxdr_encode_stats() local 40 if (!p) in svcxdr_encode_stats() 50 __be32 *p; in svcxdr_decode_string() local 58 if (!p) in svcxdr_decode_string() 75 __be32 *p; in svcxdr_decode_cookie() local 86 if (!p) in svcxdr_decode_cookie() 103 __be32 *p; in svcxdr_encode_cookie() local 108 if (!p) in svcxdr_encode_cookie() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | kfunc_call_fail.c | 43 int *p = NULL; in kfunc_call_test_get_mem_fail_rdonly() local 49 if (p) in kfunc_call_test_get_mem_fail_rdonly() 64 int *p = NULL; in kfunc_call_test_get_mem_fail_use_after_free() local 70 if (p) { in kfunc_call_test_get_mem_fail_use_after_free() 71 p[0] = 42; in kfunc_call_test_get_mem_fail_use_after_free() 79 if (p) in kfunc_call_test_get_mem_fail_use_after_free() 96 if (p) in kfunc_call_test_get_mem_fail_oob() 119 if (p) in kfunc_call_test_get_mem_fail_not_const() 120 ret = p[0]; in kfunc_call_test_get_mem_fail_not_const() 141 if (p) in kfunc_call_test_mem_acquire_fail() [all …]
|
/openbmc/qemu/migration/ |
H A D | multifd-qpl.c | 237 qpl = multifd_qpl_init(p->page_count, p->page_size, errp); in multifd_qpl_send_setup() 248 p->iov = g_new0(struct iovec, p->page_count + 2); in multifd_qpl_send_setup() 264 g_free(p->iov); in multifd_qpl_send_cleanup() 265 p->iov = NULL; in multifd_qpl_send_cleanup() 346 p->iov[p->iovs_num].iov_base = data; in multifd_qpl_fill_iov() 347 p->iov[p->iovs_num].iov_len = len; in multifd_qpl_fill_iov() 348 p->iovs_num++; in multifd_qpl_fill_iov() 413 buf = p->pages->block->host + p->pages->offset[i]; in multifd_qpl_compress_pages_slow_path() 536 qpl = multifd_qpl_init(p->page_count, p->page_size, errp); in multifd_qpl_recv_setup() 611 addr = p->host + p->normal[i]; in multifd_qpl_decompress_pages_slow_path() [all …]
|
/openbmc/linux/net/sunrpc/auth_gss/ |
H A D | gss_rpc_xdr.c | 13 __be32 *p; in gssx_enc_bool() local 24 __be32 *p; in gssx_dec_bool() local 36 __be32 *p; in gssx_enc_buffer() local 39 if (!p) in gssx_enc_buffer() 51 if (!p) in gssx_enc_in_token() 128 if (!p) in dummy_enc_opt_array() 130 *p = 0; in dummy_enc_opt_array() 161 if (!p) in get_host_u32() 615 p = xdr_encode_hyper(p, ctx->lifetime); in gssx_enc_ctx() 618 p = xdr_encode_hyper(p, ctx->ctx_flags); in gssx_enc_ctx() [all …]
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pci-ftpci100.c | 187 p->base + FTPCI_CONFIG); in faraday_raw_pci_read_config() 219 p->base + FTPCI_CONFIG); in faraday_raw_pci_write_config() 351 if (!p->irqdomain) { in faraday_pci_setup_cascaded_irq() 412 struct faraday_pci *p; in faraday_pci_probe() local 427 host->sysdata = p; in faraday_pci_probe() 428 p->dev = dev; in faraday_pci_probe() 435 if (IS_ERR(p->bus_clk)) in faraday_pci_probe() 439 if (IS_ERR(p->base)) in faraday_pci_probe() 440 return PTR_ERR(p->base); in faraday_pci_probe() 472 if (!IS_ERR(p->bus_clk)) { in faraday_pci_probe() [all …]
|
/openbmc/linux/tools/perf/ui/ |
H A D | progress.c | 18 u64 last = p->curr; in ui_progress__update() 20 p->curr += adv; in ui_progress__update() 22 if (p->curr >= p->next) { in ui_progress__update() 23 u64 nr = DIV_ROUND_UP(p->curr - last, p->step); in ui_progress__update() 25 p->next += nr * p->step; in ui_progress__update() 33 p->curr = 0; in __ui_progress__init() 34 p->next = p->step = total / 16 ?: 1; in __ui_progress__init() 35 p->total = total; in __ui_progress__init() 36 p->title = title; in __ui_progress__init() 37 p->size = size; in __ui_progress__init() [all …]
|
/openbmc/u-boot/drivers/net/fsl-mc/dpio/ |
H A D | qbman_portal.c | 70 if (!p) in qbman_swp_init() 72 p->desc = d; in qbman_swp_init() 77 p->sdq = 0; in qbman_swp_init() 97 ret = qbman_swp_sys_init(&p->sys, d, p->dqrr.dqrr_size); in qbman_swp_init() 99 free(p); in qbman_swp_init() 103 qbman_cinh_write(&p->sys, QBMAN_CINH_SWP_SDQCR, p->sdq); in qbman_swp_init() 104 return p; in qbman_swp_init() 252 p); in qbman_swp_enqueue() 564 p); in qbman_swp_release() 588 if (!p) in qbman_swp_acquire() [all …]
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | enh_desc.c | 118 struct dma_extended_desc *p) in enh_desc_get_ext_status() argument 182 struct dma_desc *p) in enh_desc_get_rx_status() argument 257 p->des0 |= cpu_to_le32(RDES0_OWN); in enh_desc_init_rx_desc() 263 ehn_desc_rx_set_on_chain(p); in enh_desc_init_rx_desc() 275 enh_desc_end_tx_desc_on_chain(p); in enh_desc_init_tx_desc() 292 p->des0 |= cpu_to_le32(RDES0_OWN); in enh_desc_set_rx_owner() 346 p->des0 = cpu_to_le32(tdes0); in enh_desc_prepare_tx_desc() 386 ns = le32_to_cpu(p->des6); in enh_desc_get_timestamp() 391 ns = le32_to_cpu(p->des2); in enh_desc_get_timestamp() 440 p->des2 = cpu_to_le32(addr); in enh_desc_set_addr() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | r600_cs.c | 834 ib = p->ib.ptr; in r600_cs_common_vline_parse() 837 r = radeon_cs_packet_parse(p, &wait_reg_mem, p->idx); in r600_cs_common_vline_parse() 887 crtc = drm_crtc_find(p->rdev->ddev, p->filp, crtc_id); in r600_cs_common_vline_parse() 981 ib = p->ib.ptr; in r600_cs_check_reg() 2123 if (p->family >= CHIP_RV770 || p->family == CHIP_R600) { in r600_packet3_check() 2292 r = radeon_cs_packet_parse(p, &pkt, p->idx); in r600_cs_parse() 2319 } while (p->idx < p->chunk_ib->length_dw); in r600_cs_parse() 2392 idx = p->idx; in r600_dma_cs_parse() 2516 p->idx += 4; in r600_dma_cs_parse() 2519 p->idx += 1; in r600_dma_cs_parse() [all …]
|
H A D | evergreen_cs.c | 1100 ib = p->ib.ptr; in evergreen_cs_handle_reg() 1784 ib = p->ib.ptr; in evergreen_packet3_check() 2748 r = radeon_cs_packet_parse(p, &pkt, p->idx); in evergreen_cs_parse() 2775 } while (p->idx < p->chunk_ib->length_dw); in evergreen_cs_parse() 2812 idx = p->idx; in evergreen_dma_cs_parse() 2886 p->idx += 5; in evergreen_dma_cs_parse() 2922 p->idx += 9; in evergreen_dma_cs_parse() 2945 p->idx += 5; in evergreen_dma_cs_parse() 3205 p->idx += 4; in evergreen_dma_cs_parse() 3208 p->idx += 1; in evergreen_dma_cs_parse() [all …]
|
/openbmc/linux/scripts/coccinelle/misc/ |
H A D | semicolon.cocci | 17 position p; 25 position p; 30 case ...:;@p 36 case ...:;@p 50 position p != {r_default.p, r_case.p}; 56 S@p1;@p 60 p << r1.p; 69 -;@p 72 p << r1.p; 79 *;@p [all …]
|
H A D | warn.cocci | 17 position p; 25 position p != bad1.p; 32 p << r1.p; 38 p << r1.p; 46 position p != bad1.p; 49 -printk@p( 74 position p != bad1.p; 81 p << r2.p; 87 p << r2.p; 95 position p != bad2.p; [all …]
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | simple_alloc.c | 48 p->base = next_base; in simple_malloc() 49 p->size = size; in simple_malloc() 53 return (void *)p->base; in simple_malloc() 58 else if (!(p->flags & ENTRY_IN_USE) && (size <= p->size)) { in simple_malloc() 59 p->flags |= ENTRY_IN_USE; in simple_malloc() 60 return (void *)p->base; in simple_malloc() 76 return p; in simple_find_entry() 85 if (p != NULL) in simple_free() 86 p->flags &= ~ENTRY_IN_USE; in simple_free() 97 struct alloc_info *p; in simple_realloc() local [all …]
|
/openbmc/linux/block/ |
H A D | badblocks.c | 104 BB_OFFSET(p[lo]) + BB_LEN(p[lo]) > s) { in badblocks_check() 165 u64 *p; in badblocks_set() local 274 int ack = BB_ACK(p[lo]) && BB_ACK(p[hi]); in badblocks_set() 276 p[lo] = BB_MAKE(BB_OFFSET(p[lo]), newlen, ack); in badblocks_set() 277 memmove(p + hi, p + hi + 1, in badblocks_set() 293 memmove(p + hi + 1, p + hi, in badblocks_set() 332 u64 *p; in badblocks_clear() local 369 if ((BB_OFFSET(p[lo]) + BB_LEN(p[lo]) > target) && in badblocks_clear() 382 memmove(p+lo+1, p+lo, (bb->count - lo) * 8); in badblocks_clear() 393 (BB_OFFSET(p[lo]) + BB_LEN(p[lo]) > s) && in badblocks_clear() [all …]
|
/openbmc/linux/drivers/soc/pxa/ |
H A D | mfp.c | 135 #define mfp_configured(p) ((p)->config != -1) argument 147 mfpr_writel(p->mfpr_off, p->mfpr_run); in __mfp_config_run() 157 mfpr_writel(p->mfpr_off, p->mfpr_lpm); in __mfp_config_lpm() 170 struct mfp_pin *p; in mfp_config() local 175 p = &mfp_table[pin]; in mfp_config() 191 p->mfpr_lpm = p->mfpr_run; in mfp_config() 197 p->config = c; __mfp_config_run(p); in mfp_config() 251 for (p = map; p->start != MFP_PIN_INVALID; p++) { in mfp_init_addr() 252 offset = p->offset; in mfp_init_addr() 253 i = p->start; in mfp_init_addr() [all …]
|
/openbmc/u-boot/drivers/power/mfd/ |
H A D | pmic_max77693.c | 17 if (pmic_probe(p)) in max77693_charger_state() 60 if (pmic_probe(p)) in max77693_charger_bat_present() 76 struct pmic *p = pmic_alloc(); in pmic_init_max77693() local 78 if (!p) { in pmic_init_max77693() 85 p->name = name; in pmic_init_max77693() 86 p->interface = PMIC_I2C; in pmic_init_max77693() 87 p->number_of_regs = PMIC_NUM_OF_REGS; in pmic_init_max77693() 88 p->hw.i2c.addr = MAX77693_PMIC_I2C_ADDR; in pmic_init_max77693() 89 p->hw.i2c.tx_num = 1; in pmic_init_max77693() 90 p->bus = bus; in pmic_init_max77693() [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | l64781.c | 152 if (p->code_rate_HP != FEC_1_2 && p->code_rate_HP != FEC_2_3 && in apply_frontend_param() 153 p->code_rate_HP != FEC_3_4 && p->code_rate_HP != FEC_5_6 && in apply_frontend_param() 158 (p->code_rate_LP != FEC_1_2 && p->code_rate_LP != FEC_2_3 && in apply_frontend_param() 159 p->code_rate_LP != FEC_3_4 && p->code_rate_LP != FEC_5_6 && in apply_frontend_param() 163 if (p->modulation != QPSK && p->modulation != QAM_16 && in apply_frontend_param() 197 val0x04 = (p->transmission_mode << 2) | p->guard_interval; in apply_frontend_param() 203 val0x06 = (p->hierarchy << 2) | p->modulation; in apply_frontend_param() 310 p->modulation = QPSK; in get_frontend() 313 p->modulation = QAM_16; in get_frontend() 316 p->modulation = QAM_64; in get_frontend() [all …]
|