/openbmc/linux/tools/testing/selftests/resctrl/ |
H A D | fill_buf.c | 56 void *p = NULL; in malloc_and_init_memory() local 65 p64 = (uint64_t *)p; in malloc_and_init_memory() 74 return p; in malloc_and_init_memory() 83 p = buf; in fill_one_span_read() 84 while (p < end_ptr) { in fill_one_span_read() 85 sum += *p; in fill_one_span_read() 86 p += (CL_SIZE / 2); in fill_one_span_read() 95 unsigned char *p; in fill_one_span_write() local 97 p = buf; in fill_one_span_write() 99 *p = '1'; in fill_one_span_write() [all …]
|
/openbmc/linux/sound/usb/ |
H A D | validate.c | 25 static bool validate_uac1_header(const void *p, in validate_uac1_header() argument 28 const struct uac1_ac_header_descriptor *d = p; in validate_uac1_header() 35 static bool validate_mixer_unit(const void *p, in validate_mixer_unit() argument 38 const struct uac_mixer_unit_descriptor *d = p; in validate_mixer_unit() 69 static bool validate_processing_unit(const void *p, in validate_processing_unit() argument 73 const unsigned char *hdr = p; in validate_processing_unit() 233 #define FIXED(p, t, s) { .protocol = (p), .type = (t), .size = sizeof(s) } argument 234 #define FUNC(p, t, f) { .protocol = (p), .type = (t), .func = (f) } argument 325 unsigned char *c = p; in snd_usb_validate_audio_desc() 337 bool snd_usb_validate_midi_desc(void *p) in snd_usb_validate_midi_desc() argument [all …]
|
/openbmc/phosphor-pid-control/pid/ |
H A D | buildjson.cpp | 67 auto p = j.at("pid"); in from_json() local 77 if (checkHysterWithSetpt != p.end()) in from_json() 81 if (positiveHysteresis != p.end()) in from_json() 85 if (negativeHysteresis != p.end()) in from_json() 89 if (derivativeCoeff != p.end()) in from_json() 136 auto reading = p.find("reading"); in from_json() 137 if (reading != p.end()) in from_json() 139 auto r = p.at("reading"); in from_json() 150 auto output = p.find("output"); in from_json() 151 if (output != p.end()) in from_json() [all …]
|
/openbmc/linux/fs/nfs/blocklayout/ |
H A D | dev.c | 55 __be32 *p; in nfs4_block_decode_volume() local 59 if (!p) in nfs4_block_decode_volume() 66 if (!p) in nfs4_block_decode_volume() 77 if (!p) in nfs4_block_decode_volume() 99 if (!p) in nfs4_block_decode_volume() 101 p = xdr_decode_hyper(p, &b->slice.start); in nfs4_block_decode_volume() 102 p = xdr_decode_hyper(p, &b->slice.len); in nfs4_block_decode_volume() 107 if (!p) in nfs4_block_decode_volume() 117 if (!p) in nfs4_block_decode_volume() 124 if (!p) in nfs4_block_decode_volume() [all …]
|
/openbmc/linux/drivers/net/ethernet/microsoft/mana/ |
H A D | mana_ethtool.c | 54 u8 *p = data; in mana_get_strings() local 62 p += ETH_GSTRING_LEN; in mana_get_strings() 67 p += ETH_GSTRING_LEN; in mana_get_strings() 69 p += ETH_GSTRING_LEN; in mana_get_strings() 71 p += ETH_GSTRING_LEN; in mana_get_strings() 73 p += ETH_GSTRING_LEN; in mana_get_strings() 75 p += ETH_GSTRING_LEN; in mana_get_strings() 80 p += ETH_GSTRING_LEN; in mana_get_strings() 82 p += ETH_GSTRING_LEN; in mana_get_strings() 84 p += ETH_GSTRING_LEN; in mana_get_strings() [all …]
|
/openbmc/linux/arch/s390/kernel/ |
H A D | irq.c | 224 seq_putc(p, '\n'); in show_msi_interrupt() 243 seq_putc(p, '\n'); in show_interrupts() 250 seq_putc(p, '\n'); in show_interrupts() 265 seq_putc(p, '\n'); in show_interrupts() 302 struct ext_int_info *p; in register_external_irq() local 306 p = kmalloc(sizeof(*p), GFP_ATOMIC); in register_external_irq() 307 if (!p) in register_external_irq() 309 p->code = code; in register_external_irq() 310 p->handler = handler; in register_external_irq() 328 if (p->code == code && p->handler == handler) { in unregister_external_irq() [all …]
|
/openbmc/linux/drivers/net/dsa/sja1105/ |
H A D | sja1105_dynamic_config.c | 215 u8 *p = buf + SJA1105_SIZE_VL_LOOKUP_ENTRY; in sja1105pqrs_vl_lookup_cmd_packing() local 252 u8 *p = buf + SJA1105_SIZE_VL_LOOKUP_ENTRY; in sja1110_vl_policing_cmd_packing() local 265 u8 *p = buf + entry_size; in sja1105pqrs_common_l2_lookup_cmd_packing() local 413 u8 *p = buf + SJA1105ET_SIZE_L2_LOOKUP_ENTRY; in sja1105et_l2_lookup_cmd_packing() local 441 u8 *p = buf + SJA1105ET_SIZE_L2_LOOKUP_ENTRY; in sja1105et_mgmt_route_cmd_packing() local 752 u8 *p = buf + SJA1105_SIZE_RETAGGING_ENTRY; in sja1105_retagging_cmd_packing() local 766 u8 *p = buf + SJA1105_SIZE_RETAGGING_ENTRY; in sja1110_retagging_cmd_packing() local 779 u8 *p = buf + SJA1105ET_SIZE_CBS_ENTRY; in sja1105et_cbs_cmd_packing() local 792 u32 *p = buf; in sja1105et_cbs_entry_packing() local 806 u8 *p = buf + SJA1105PQRS_SIZE_CBS_ENTRY; in sja1105pqrs_cbs_cmd_packing() local [all …]
|
/openbmc/linux/lib/raid6/ |
H A D | recov_ssse3.c | 19 u8 *p, *q, *dp, *dq; in raid6_2data_recov_ssse3() local 26 p = (u8 *)ptrs[disks-2]; in raid6_2data_recov_ssse3() 44 ptrs[disks-2] = p; in raid6_2data_recov_ssse3() 69 asm volatile("movdqa %0,%%xmm0" : : "m" (p[0])); in raid6_2data_recov_ssse3() 133 p += 32; in raid6_2data_recov_ssse3() 139 asm volatile("movdqa %0,%%xmm0" : : "m" (*p)); in raid6_2data_recov_ssse3() 180 p += 16; in raid6_2data_recov_ssse3() 194 u8 *p, *q, *dq; in raid6_datap_recov_ssse3() local 200 p = (u8 *)ptrs[disks-2]; in raid6_datap_recov_ssse3() 278 p += 32; in raid6_datap_recov_ssse3() [all …]
|
H A D | recov_avx512.c | 27 u8 *p, *q, *dp, *dq; in raid6_2data_recov_avx512() local 32 p = (u8 *)ptrs[disks-2]; in raid6_2data_recov_avx512() 53 ptrs[disks-2] = p; in raid6_2data_recov_avx512() 156 p += 128; in raid6_2data_recov_avx512() 217 p += 64; in raid6_2data_recov_avx512() 230 u8 *p, *q, *dq; in raid6_datap_recov_avx512() local 304 : "m" (p[0]), "m" (p[64])); in raid6_datap_recov_avx512() 317 "m" (p[64])); in raid6_datap_recov_avx512() 320 p += 128; in raid6_datap_recov_avx512() 350 : "m" (p[0])); in raid6_datap_recov_avx512() [all …]
|
/openbmc/linux/scripts/coccinelle/misc/ |
H A D | flexible_array.cocci | 21 for p in positions: 29 position p : script:python() { relevant(p) }; 35 * T array@p[\(0\|1\)]; 40 * T array@p[\(0\|1\)]; 45 * T array@p[\(0\|1\)]; 50 * T array@p[\(0\|1\)]; 73 position p : script:python() { relevant(p) }; 82 T array@p[ 89 T array@p[ 96 p << r.p; [all …]
|
H A D | swap.cocci | 21 position p; 33 * a = b;@p 40 position p != rvar.p; 44 * a = b;@p 101 p << r.p; 104 coccilib.report.print_report(p[0], "WARNING opportunity for swap()") 107 p << r.p; 110 coccilib.org.print_todo(p[0], "WARNING opportunity for swap()") 113 p << rvar.p; 119 p << rvar.p; [all …]
|
/openbmc/linux/drivers/uio/ |
H A D | uio_pruss.c | 90 struct uio_info *p = gdev->info; in pruss_cleanup() local 93 uio_unregister_device(p); in pruss_cleanup() 109 struct uio_info *p; in pruss_probe() local 185 for (cnt = 0, p = gdev->info; cnt < MAX_PRUSS_EVT; cnt++, p++) { in pruss_probe() 191 p->mem[1].size = sram_pool_sz; in pruss_probe() 195 p->mem[2].size = extram_pool_sz; in pruss_probe() 199 p->version = DRV_VERSION; in pruss_probe() 203 p->handler = pruss_handler; in pruss_probe() 204 p->priv = gdev; in pruss_probe() 215 for (i = 0, p = gdev->info; i < cnt; i++, p++) { in pruss_probe() [all …]
|
/openbmc/linux/arch/parisc/include/asm/ |
H A D | barrier.h | 33 #define __smp_store_release(p, v) \ argument 35 typeof(p) __p = (p); \ 36 union { typeof(*p) __val; char __c[1]; } __u = \ 37 { .__val = (__force typeof(*p)) (v) }; \ 38 compiletime_assert_atomic_type(*p); \ 39 switch (sizeof(*p)) { \ 64 #define __smp_load_acquire(p) \ argument 66 union { typeof(*p) __val; char __c[1]; } __u; \ 67 typeof(p) __p = (p); \ 68 compiletime_assert_atomic_type(*p); \ [all …]
|
/openbmc/linux/lib/ |
H A D | bootconfig.c | 204 p++; in xbc_node_match_prefix() 520 ret = p + strlen(p); in skip_comment() 529 while (isspace(*p) && *p != '\n') in skip_spaces_until_newline() 530 p++; in skip_spaces_until_newline() 531 return p; in skip_spaces_until_newline() 586 p = skip_spaces_until_newline(p); in __xbc_parse_value() 591 p++; in __xbc_parse_value() 603 p = skip_comment(p); in __xbc_parse_value() 680 char *p; in __xbc_parse_keys() local 689 k = p; in __xbc_parse_keys() [all …]
|
/openbmc/u-boot/scripts/coccinelle/free/ |
H A D | ifnullfree.cocci | 40 position p; 44 * \(kfree@p\|kzfree@p\|debugfs_remove@p\|debugfs_remove_recursive@p\| 45 * usb_free_urb@p\|kmem_cache_destroy@p\|mempool_destroy@p\| 46 * dma_pool_destroy@p\)(E); 49 p << r.p; 52 cocci.print_main("NULL check before that freeing function is not needed", p) 55 p << r.p; 59 coccilib.report.print_report(p[0], msg)
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A D | barrier.h | 91 #define __smp_load_acquire(p) \ argument 93 typeof(*p) ___p1 = READ_ONCE(*p); \ 94 compiletime_assert_atomic_type(*p); \ 99 #define __smp_store_release(p, v) \ argument 101 compiletime_assert_atomic_type(*p); \ 103 WRITE_ONCE(*p, v); \ 106 #define __smp_store_mb(p, v) \ argument 109 { .__val = (__force typeof(p)) (v) }; \ 111 switch (sizeof(p)) { \ 113 *(volatile __u8 *)&p = *(__u8 *)__u.__c; \ [all …]
|
/openbmc/linux/drivers/media/pci/cx18/ |
H A D | cx18-vbi.c | 100 u8 *p; in compress_raw_buf() local 107 p = buf + i * line_size; in compress_raw_buf() 110 if (p[0] != 0xff || p[1] || p[2] || in compress_raw_buf() 118 p += line_size - hdr_size - 1; in compress_raw_buf() 119 memset(q, (int) *p, hdr_size); in compress_raw_buf() 155 u8 *p = buf + i * line_size; in compress_sliced_buf() local 158 if (p[0] != 0xff || p[1] || p[2] || in compress_sliced_buf() 162 vbi.p = p + 4; in compress_sliced_buf() 187 u8 *p = (u8 *) buf->buf; in _cx18_process_vbi_data() local 209 p += size - 4; in _cx18_process_vbi_data() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/ |
H A D | demand_paging_test.c | 120 size_t p; in prefault_mem() local 123 for (p = 0; p < (len / demand_paging_size); ++p) { in prefault_mem() 124 memcpy(alias + (p * demand_paging_size), in prefault_mem() 132 struct test_params *p = arg; in run_test() local 140 p->src_type, p->partition_vcpu_memory_access); in run_test() 157 if (p->uffd_mode) { in run_test() 172 p->uffd_mode, p->uffd_delay, vcpu_hva, in run_test() 188 if (p->uffd_mode) { in run_test() 203 if (p->uffd_mode) in run_test() 234 struct test_params p = { in main() local [all …]
|
/openbmc/linux/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_recvfrom.c | 427 if (!p) in xdr_count_read_segments() 441 if (!p) in xdr_count_read_segments() 461 __be32 *p; in xdr_check_read_list() local 464 if (!p) in xdr_check_read_list() 476 __be32 *p; in xdr_check_write_chunk() local 510 if (!p) in xdr_count_write_chunks() 533 __be32 *p; in xdr_check_write_list() local 536 if (!p) in xdr_check_write_list() 564 if (!p) in xdr_check_reply_chunk() 660 p++; in svc_rdma_xdr_decode_req() [all …]
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | sysfillrect.c | 33 first = FB_SHIFT_HIGH(p, ~0UL, dst_idx); in bitfill_aligned() 79 first = FB_SHIFT_HIGH(p, ~0UL, dst_idx); in bitfill_unaligned() 134 first = FB_SHIFT_HIGH(p, ~0UL, dst_idx); in bitfill_aligned_rev() 190 first = FB_SHIFT_HIGH(p, ~0UL, dst_idx); in bitfill_unaligned_rev() 238 u32 bpp = p->var.bits_per_pixel; in sys_fillrect() 242 if (p->state != FBINFO_STATE_RUNNING) in sys_fillrect() 245 if (p->fix.visual == FB_VISUAL_TRUECOLOR || in sys_fillrect() 258 if (p->fbops->fb_sync) in sys_fillrect() 259 p->fbops->fb_sync(p); in sys_fillrect() 282 dst_idx += p->fix.line_length*8; in sys_fillrect() [all …]
|
/openbmc/linux/scripts/coccinelle/api/ |
H A D | kfree_sensitive.cocci | 24 def relevant(p): 36 position p : script:python() { relevant(p) }; 48 * \(kfree\|vfree\|kvfree\)(E)@p; 52 position p : script:python() { relevant(p) }; 61 - kfree(E)@p; 64 - \(vfree\|kvfree\)(E)@p; 70 position p : script:python() { relevant(p) }; 79 - kfree(E)@p; 82 - \(vfree\|kvfree\)(E)@p; 87 p << r.p; [all …]
|
/openbmc/linux/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_cm.c | 452 p = kzalloc(sizeof(*p), GFP_KERNEL); in ipoib_cm_req_handler() 453 if (!p) in ipoib_cm_req_handler() 462 p->qp = ipoib_cm_create_rx_qp(dev, p); in ipoib_cm_req_handler() 500 kfree(p); in ipoib_cm_req_handler() 1155 p->qp = ipoib_cm_create_tx_qp(p->dev, p); in ipoib_cm_tx_init() 1170 ret = ipoib_cm_modify_tx_init(p->dev, p->id, p->qp); in ipoib_cm_tx_init() 1176 ret = ipoib_cm_send_req(p->dev, p->id, p->qp, qpn, pathrec); in ipoib_cm_tx_init() 1206 p->qp ? p->qp->qp_num : 0, p->tx_head, p->tx_tail); in ipoib_cm_tx_destroy() 1217 p->tx_head - p->tx_tail); in ipoib_cm_tx_destroy() 1227 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy() [all …]
|
/openbmc/linux/fs/ |
H A D | char_dev.c | 363 if (p) { in cdev_put() 382 if (!p) { in chrdev_open() 394 if (!p) { in chrdev_open() 422 cdev_put(p); in chrdev_open() 483 p->dev = dev; in cdev_add() 603 cdev_unmap(p->dev, p->count); in cdev_del() 613 cdev_purge(p); in cdev_default_release() 622 cdev_purge(p); in cdev_dynamic_release() 623 kfree(p); in cdev_dynamic_release() 643 if (p) { in cdev_alloc() [all …]
|
/openbmc/u-boot/drivers/misc/ |
H A D | cros_ec.c | 560 p.size = 0; in cros_ec_invalidate_hash() 576 p.cmd = cmd; in cros_ec_reboot() 798 &p, sizeof(p), (uint8_t **)&r, sizeof(*r)); in cros_ec_flash_offset() 844 p = malloc(sizeof(*p) + size); in cros_ec_flash_write_block() 845 if (!p) in cros_ec_flash_write_block() 851 memcpy(p + 1, data, p->size); in cros_ec_flash_write_block() 854 p, sizeof(*p) + size, NULL, 0) >= 0 ? 0 : -1; in cros_ec_flash_write_block() 856 free(p); in cros_ec_flash_write_block() 997 &p, sizeof(p), data, size) >= 0 ? 0 : -1; in cros_ec_flash_read_block() 1220 struct ec_params_i2c_passthru *p = ¶ms.p; in cros_ec_i2c_tunnel() local [all …]
|
/openbmc/qemu/accel/tcg/ |
H A D | user-exec.c | 227 if (p) { in page_get_flags() 237 return p ? p->flags : 0; in page_get_flags() 247 p->flags = flags; in pageflags_create() 260 if (!p) { in pageflags_unset() 352 PageFlagsNode *p; in pageflags_set_clear() local 359 if (!p) { in pageflags_set_clear() 553 if (!p) { in page_check_range() 677 if (!p) { in page_protect() 680 prot = p->flags; in page_protect() 685 while ((p = pageflags_next(p, start, last)) != NULL) { in page_protect() [all …]
|