/openbmc/linux/scripts/coccinelle/free/ |
H A D | ifnullfree.cocci | 47 position p; 51 * \(kfree@p\|kvfree@p\|kfree_sensitive@p\|kvfree_sensitive@p\|vfree@p\| 52 * debugfs_remove@p\|debugfs_remove_recursive@p\| 53 * usb_free_urb@p\|kmem_cache_destroy@p\|mempool_destroy@p\| 54 * dma_pool_destroy@p\)(E, ...); 57 p << r.p; 60 cocci.print_main("NULL check before that freeing function is not needed", p) 63 p << r.p; 67 coccilib.report.print_report(p[0], msg)
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_fdinfo.c | 56 void amdgpu_show_fdinfo(struct drm_printer *p, struct drm_file *file) in amdgpu_show_fdinfo() argument 89 drm_printf(p, "pasid:\t%u\n", fpriv->vm.pasid); in amdgpu_show_fdinfo() 93 drm_printf(p, "drm-memory-vram:\t%llu KiB\n", stats.vram/1024UL); in amdgpu_show_fdinfo() 94 drm_printf(p, "drm-memory-gtt: \t%llu KiB\n", stats.gtt/1024UL); in amdgpu_show_fdinfo() 95 drm_printf(p, "drm-memory-cpu: \t%llu KiB\n", stats.cpu/1024UL); in amdgpu_show_fdinfo() 96 drm_printf(p, "amd-memory-visible-vram:\t%llu KiB\n", in amdgpu_show_fdinfo() 98 drm_printf(p, "amd-evicted-vram:\t%llu KiB\n", in amdgpu_show_fdinfo() 100 drm_printf(p, "amd-evicted-visible-vram:\t%llu KiB\n", in amdgpu_show_fdinfo() 102 drm_printf(p, "amd-requested-vram:\t%llu KiB\n", in amdgpu_show_fdinfo() 104 drm_printf(p, "amd-requested-visible-vram:\t%llu KiB\n", in amdgpu_show_fdinfo() [all …]
|
/openbmc/linux/drivers/net/fddi/skfp/h/ |
H A D | types.h | 28 #define inp(p) ioread8(p) argument 29 #define inpw(p) ioread16(p) argument 30 #define inpd(p) ioread32(p) argument 31 #define outp(p,c) iowrite8(c,p) argument 32 #define outpw(p,s) iowrite16(s,p) argument 33 #define outpd(p,l) iowrite32(l,p) argument
|
/openbmc/linux/fs/nfsd/ |
H A D | nfsxdr.c | 39 __be32 *p; in svcxdr_encode_stat() local 42 if (!p) in svcxdr_encode_stat() 61 __be32 *p; in svcxdr_decode_fhandle() local 64 if (!p) in svcxdr_decode_fhandle() 79 if (!p) in svcxdr_encode_fhandle() 94 return p; in encode_timeval() 109 if (!p) in svcxdr_decode_filename() 137 if (!p) in svcxdr_decode_sattr() 225 if (!p) in svcxdr_encode_fattr() 262 p = encode_timeval(p, &stat->atime); in svcxdr_encode_fattr() [all …]
|
/openbmc/u-boot/arch/nios2/include/asm/bitops/ |
H A D | non-atomic.h | 18 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __set_bit() local 20 *p |= mask; in __set_bit() 28 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __clear_bit() local 30 *p &= ~mask; in __clear_bit() 49 *p ^= mask; in __change_bit() 65 unsigned long old = *p; in __test_and_set_bit() 67 *p = old | mask; in __test_and_set_bit() 84 unsigned long old = *p; in __test_and_clear_bit() 86 *p = old & ~mask; in __test_and_clear_bit() 96 unsigned long old = *p; in __test_and_change_bit() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | socket_cookie_prog.c | 35 struct socket_cookie *p; in set_cookie() local 42 if (!p) in set_cookie() 45 p->cookie_value = 0xF; in set_cookie() 46 p->cookie_key = bpf_get_socket_cookie(ctx); in set_cookie() 55 struct socket_cookie *p; in update_cookie_sockops() local 67 if (!p) in update_cookie_sockops() 70 if (p->cookie_key != bpf_get_socket_cookie(ctx)) in update_cookie_sockops() 73 p->cookie_value |= (ctx->local_port << 8); in update_cookie_sockops() 82 struct socket_cookie *p; in BPF_PROG() local 88 if (!p) in BPF_PROG() [all …]
|
/openbmc/linux/lib/ |
H A D | slub_kunit.c | 35 p[64] = 0x12; in test_clobber_zone() 41 kmem_cache_free(s, p); in test_clobber_zone() 54 kmem_cache_free(s, p); in test_next_pointer() 58 p[s->offset] = ~p[s->offset]; in test_next_pointer() 97 kmem_cache_free(s, p); in test_first_word() 98 *p = 0x78; in test_first_word() 112 kmem_cache_free(s, p); in test_clobber_50th_byte() 113 p[50] = 0x9a; in test_clobber_50th_byte() 130 p[64] = 0xab; in test_clobber_redzone_free() 149 p[18] = 0xab; in test_kmalloc_redzone_access() [all …]
|
/openbmc/linux/tools/lib/bpf/ |
H A D | bpf_helpers.h | 205 #define ___bpf_fill1(arr, p, x) arr[p] = x argument 206 #define ___bpf_fill2(arr, p, x, args...) arr[p] = x; ___bpf_fill1(arr, p + 1, args) argument 207 #define ___bpf_fill3(arr, p, x, args...) arr[p] = x; ___bpf_fill2(arr, p + 1, args) argument 208 #define ___bpf_fill4(arr, p, x, args...) arr[p] = x; ___bpf_fill3(arr, p + 1, args) argument 209 #define ___bpf_fill5(arr, p, x, args...) arr[p] = x; ___bpf_fill4(arr, p + 1, args) argument 210 #define ___bpf_fill6(arr, p, x, args...) arr[p] = x; ___bpf_fill5(arr, p + 1, args) argument 211 #define ___bpf_fill7(arr, p, x, args...) arr[p] = x; ___bpf_fill6(arr, p + 1, args) argument 212 #define ___bpf_fill8(arr, p, x, args...) arr[p] = x; ___bpf_fill7(arr, p + 1, args) argument 213 #define ___bpf_fill9(arr, p, x, args...) arr[p] = x; ___bpf_fill8(arr, p + 1, args) argument 214 #define ___bpf_fill10(arr, p, x, args...) arr[p] = x; ___bpf_fill9(arr, p + 1, args) argument [all …]
|
/openbmc/linux/drivers/media/pci/cx18/ |
H A D | cx18-av-core.c | 1077 char *p; in log_audio_status() local 1080 case 0x00: p = "mono"; break; in log_audio_status() 1083 case 0x04: p = "tri"; break; in log_audio_status() 1153 default: p = "undefined"; in log_audio_status() 1158 case 0x00: p = "BG"; break; in log_audio_status() 1162 case 0x04: p = "I"; break; in log_audio_status() 1163 case 0x05: p = "L"; break; in log_audio_status() 1187 case 4: p = "stereo"; break; in log_audio_status() 1204 case 1: p = "BTSC"; break; in log_audio_status() 1205 case 2: p = "EIAJ"; break; in log_audio_status() [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | reuseport_bpf.c | 154 new_any_sockaddr(p.recv_family, p.recv_port); in build_recv_group() 158 fd[i] = socket(p.recv_family, p.protocol, 0); in build_recv_group() 277 test_recv_order(p, fd, p.recv_socks); in test_reuseport_ebpf() 279 p.send_port_min += p.recv_socks * 2; in test_reuseport_ebpf() 282 test_recv_order(p, fd, p.recv_socks / 2); in test_reuseport_ebpf() 294 test_recv_order(p, fd, p.recv_socks); in test_reuseport_cbpf() 296 p.send_port_min += p.recv_socks * 2; in test_reuseport_cbpf() 299 test_recv_order(p, fd, p.recv_socks / 2); in test_reuseport_cbpf() 312 fd1 = socket(p.recv_family, p.protocol, 0); in test_extra_filter() 315 fd2 = socket(p.recv_family, p.protocol, 0); in test_extra_filter() [all …]
|
/openbmc/qemu/qapi/ |
H A D | qapi-util.c | 122 const char *p = str; in parse_qapi_name() local 125 p++; in parse_qapi_name() 126 if (*p != '_') { in parse_qapi_name() 129 while (*++p) { in parse_qapi_name() 130 if (!qemu_isalnum(*p) && *p != '-' && *p != '.') { in parse_qapi_name() 135 if (*p != '_') { in parse_qapi_name() 138 p++; in parse_qapi_name() 144 while (*++p) { in parse_qapi_name() 145 if (!qemu_isalnum(*p) && *p != '-' && *p != '_') { in parse_qapi_name() 150 if (complete && *p) { in parse_qapi_name() [all …]
|
/openbmc/linux/net/bridge/ |
H A D | br_input.c | 91 if (!p) in br_handle_frame_finish() 94 br = p->br; in br_handle_frame_finish() 102 state = p->state; in br_handle_frame_finish() 106 pmctx = &p->multicast_ctx; in br_handle_frame_finish() 107 if (!br_allowed_ingress(p->br, nbp_vlan_group_rcu(p), skb, &vid, in br_handle_frame_finish() 119 if (p->flags & BR_PORT_MAB) in br_handle_frame_finish() 140 if (p->flags & BR_LEARNING) in br_handle_frame_finish() 241 br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, 0); in __br_handle_local_finish() 327 struct net_bridge_port *p; in br_handle_frame() local 346 br_handle_ingress_vlan_tunnel(skb, p, nbp_vlan_group_rcu(p)); in br_handle_frame() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | tables.c | 70 p->processor_id, p->id, in acpi_table_print_madt_entry() 80 p->local_apic_id, p->uid, in acpi_table_print_madt_entry() 90 p->id, p->address, p->global_irq_base); in acpi_table_print_madt_entry() 99 p->bus, p->source_irq, p->global_irq, in acpi_table_print_madt_entry() 164 p->id, (void *)(unsigned long)p->address, in acpi_table_print_madt_entry() 174 p->processor_id, p->id, p->eid, in acpi_table_print_madt_entry() 186 p->type, p->id, p->eid, p->io_sapic_vector, in acpi_table_print_madt_entry() 196 p->uid, p->base_address, in acpi_table_print_madt_entry() 208 p->gic_id, p->base_address, in acpi_table_print_madt_entry() 218 p->processor_id, p->core_id, in acpi_table_print_madt_entry() [all …]
|
/openbmc/phosphor-pid-control/test/ |
H A D | pid_thermalcontroller_unittest.cpp | 36 EXPECT_FALSE(p == nullptr); in TEST() 55 EXPECT_TRUE(p == nullptr); in TEST() 70 EXPECT_FALSE(p == nullptr); in TEST() 89 EXPECT_FALSE(p == nullptr); in TEST() 106 EXPECT_FALSE(p == nullptr); in TEST() 111 p->outputProc(value); in TEST() 128 EXPECT_FALSE(p == nullptr); in TEST() 150 EXPECT_FALSE(p == nullptr); in TEST() 172 EXPECT_FALSE(p == nullptr); in TEST() 232 p->process(); in TEST() [all …]
|
/openbmc/linux/drivers/clk/versatile/ |
H A D | icst.c | 27 unsigned long icst_hz(const struct icst_params *p, struct icst_vco vco) in icst_hz() argument 29 u64 dividend = p->ref * 2 * (u64)(vco.v + 8); in icst_hz() 30 u32 divisor = (vco.r + 2) * p->s2div[vco.s]; in icst_hz() 47 icst_hz_to_vco(const struct icst_params *p, unsigned long freq) in icst_hz_to_vco() argument 49 struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max }; in icst_hz_to_vco() 58 f = freq * p->s2div[p->idx2s[i]]; in icst_hz_to_vco() 60 if (f > p->vco_min && f <= p->vco_max) in icst_hz_to_vco() 68 vco.s = p->idx2s[i]; in icst_hz_to_vco() 74 for (rd = p->rd_min; rd <= p->rd_max; rd++) { in icst_hz_to_vco() 79 fref_div = (2 * p->ref) / rd; in icst_hz_to_vco() [all …]
|
/openbmc/qemu/hw/ide/ |
H A D | trace-events | 5 …_t val, void *bus, void *s) "IDE PIO rd @ 0x%"PRIx32" (%s); val 0x%02"PRIx32"; bus %p IDEState %p" 6 …2_t val, void *bus, void *s) "IDE PIO wr @ 0x%"PRIx32" (%s); val 0x%02"PRIx32"; bus %p IDEState %p" 15 ide_bus_exec_cmd(void *bus, void *state, uint32_t cmd) "IDE exec cmd: bus %p; state %p; cmd 0x%02x" 16 ide_cancel_dma_sync_buffered(void *fn, void *req) "invoking cb %p of buffered request %p with -ECAN… 20 ide_reset(void *s) "IDEstate %p" 58 ide_atapi_cmd_check_status(void *s) "IDEState: %p" 68 ahci_irq_raise(void *s) "ahci(%p): raise irq" 69 ahci_irq_lower(void *s) "ahci(%p): lower irq" 87 ahci_populate_sglist(void *s, int port) "ahci(%p)[%d]" 116 ahci_cmd_done(void *s, int port) "ahci(%p)[%d]: cmd done" [all …]
|
/openbmc/qemu/linux-user/arm/nwfpe/ |
H A D | fpa11_cpdt.c | 44 unsigned int *p; in loadDouble() local 50 get_user_u32(p[1], addr + 4); in loadDouble() 53 get_user_u32(p[0], addr + 4); in loadDouble() 62 unsigned int *p; in loadExtended() local 75 register unsigned int *p; in loadMultiple() local 91 p[2] = 0; /* empty */ in loadMultiple() 100 p[0] = (x & 0x80003fff); in loadMultiple() 127 put_user_u32(p[0], addr); in storeSingle() 181 put_user_u32(p[1], addr + 8); in storeExtended() 189 register unsigned int nType, *p; in storeMultiple() local [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | ultra45_env.c | 73 spin_lock(&p->lock); in env_read() 76 spin_unlock(&p->lock); in env_read() 83 spin_lock(&p->lock); in env_write() 86 spin_unlock(&p->lock); in env_write() 257 struct env *p = devm_kzalloc(&op->dev, sizeof(*p), GFP_KERNEL); in env_probe() local 260 if (!p) in env_probe() 263 spin_lock_init(&p->lock); in env_probe() 266 if (!p->regs) in env_probe() 274 if (IS_ERR(p->hwmon_dev)) { in env_probe() 279 platform_set_drvdata(op, p); in env_probe() [all …]
|
/openbmc/linux/drivers/isdn/hardware/mISDN/ |
H A D | iohelper.h | 27 struct hws *hw = p; \ 31 struct hws *hw = p; \ 35 struct hws *hw = p; \ 39 struct hws *hw = p; \ 45 struct hws *hw = p; \ 50 struct hws *hw = p; \ 55 struct hws *hw = p; \ 60 struct hws *hw = p; \ 67 struct hws *hw = p; \ 71 struct hws *hw = p; \ [all …]
|
/openbmc/linux/scripts/coccinelle/tests/ |
H A D | unsigned_lesser_than_zero.cocci | 24 position p; 33 (\( v@p < 0 \| v@p <= 0 \| v@p >= 0 \| v@p > 0 \)) 36 position r_cmp.p; 46 * (\( v@p <=@e 0 \| v@p >@e 0 \)) 50 (\( v@p < 0 \| v@p <= 0 \)) || ... || (\( v >= c \| v > c \)) 52 (\( v >= c \| v > c \)) || ... || (\( v@p < 0 \| v@p <= 0 \)) 54 (\( v@p >= 0 \| v@p > 0 \)) && ... && (\( v < c \| v <= c \)) 56 ((\( v < c \| v <= c \) && ... && \( v@p >= 0 \| v@p > 0 \))) 58 * (\( v@p <@e 0 \| v@p >=@e 0 \)) 63 p << r_cmp.p; [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | fsldma.h | 195 #define fsl_ioread32(p) in_le32(p) argument 196 #define fsl_ioread32be(p) in_be32(p) argument 197 #define fsl_iowrite32(v, p) out_le32(p, v) argument 201 #define fsl_ioread64(p) in_le64(p) argument 202 #define fsl_ioread64be(p) in_be64(p) argument 203 #define fsl_iowrite64(v, p) out_le64(p, v) argument 237 #define fsl_ioread32(p) ioread32(p) argument 238 #define fsl_ioread32be(p) ioread32be(p) argument 239 #define fsl_iowrite32(v, p) iowrite32(v, p) argument 241 #define fsl_ioread64(p) ioread64(p) argument [all …]
|
/openbmc/linux/arch/microblaze/kernel/cpu/ |
H A D | pvr.c | 67 void get_pvr(struct pvr_s *p) in get_pvr() argument 69 get_single_pvr(0, p->pvr[0]); in get_pvr() 70 get_single_pvr(1, p->pvr[1]); in get_pvr() 71 get_single_pvr(2, p->pvr[2]); in get_pvr() 72 get_single_pvr(3, p->pvr[3]); in get_pvr() 73 get_single_pvr(4, p->pvr[4]); in get_pvr() 74 get_single_pvr(5, p->pvr[5]); in get_pvr() 75 get_single_pvr(6, p->pvr[6]); in get_pvr() 76 get_single_pvr(7, p->pvr[7]); in get_pvr() 77 get_single_pvr(8, p->pvr[8]); in get_pvr() [all …]
|
/openbmc/linux/tools/include/asm-generic/bitops/ |
H A D | non-atomic.h | 20 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___set_bit() local 22 *p |= mask; in ___set_bit() 29 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___clear_bit() local 31 *p &= ~mask; in ___clear_bit() 49 *p ^= mask; in ___change_bit() 66 unsigned long old = *p; in ___test_and_set_bit() 68 *p = old | mask; in ___test_and_set_bit() 86 unsigned long old = *p; in ___test_and_clear_bit() 88 *p = old & ~mask; in ___test_and_clear_bit() 98 unsigned long old = *p; in ___test_and_change_bit() [all …]
|
/openbmc/u-boot/lib/lzma/ |
H A D | Types.h | 116 void (*Write)(void *p, Byte b); 121 SRes (*Read)(void *p, void *buf, size_t *size); 148 SRes (*Seek)(void *p, Int64 *pos, ESzSeek origin); 157 SRes (*Skip)(void *p, size_t offset); 160 SRes (*Read)(void *p, void *buf, size_t *size); 184 void LookToRead_Init(CLookToRead *p); 192 void SecToLook_CreateVTable(CSecToLook *p); 200 void SecToRead_CreateVTable(CSecToRead *p); 211 void *(*Alloc)(void *p, size_t size); 215 #define IAlloc_Alloc(p, size) (p)->Alloc((p), size) argument [all …]
|
/openbmc/linux/fs/ntfs3/ |
H A D | run.c | 626 if (p[-7] || p[-6] || p[-5] || p[-4]) in run_packed_size() 627 p -= 4; in run_packed_size() 628 if (p[-3] || p[-2]) in run_packed_size() 629 p -= 2; in run_packed_size() 631 p -= 1; in run_packed_size() 635 if (p[-7] != 0xff || p[-6] != 0xff || p[-5] != 0xff || in run_packed_size() 638 if (p[-3] != 0xff || p[-2] != 0xff) in run_packed_size() 720 if (p[7] || p[6] || p[5] || p[4]) in run_packed_size() 722 if (p[3] || p[2]) in run_packed_size() 729 if (p[7] != 0xff || p[6] != 0xff || p[5] != 0xff || in run_packed_size() [all …]
|