/openbmc/linux/arch/powerpc/include/asm/ |
H A D | io-defs.h | 43 DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c), 44 (p, b, c), pio, p) 45 DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c), 46 (p, b, c), pio, p) 47 DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c), 48 (p, b, c), pio, p) 49 DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c), 50 (p, b, c), pio, p) 51 DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c), 52 (p, b, c), pio, p) [all …]
|
/openbmc/linux/tools/testing/selftests/rseq/ |
H A D | rseq-arm64.h | 30 union { rseq_unqual_scalar_typeof(*(p)) __val; char __c[sizeof(*(p))]; } __u; \ 31 switch (sizeof(*(p))) { \ 35 : "Q" (*(p)) : "memory"); \ 40 : "Q" (*(p)) : "memory"); \ 45 : "Q" (*(p)) : "memory"); \ 60 union { rseq_unqual_scalar_typeof(*(p)) __val; char __c[sizeof(*(p))]; } __u = \ 62 switch (sizeof(*(p))) { \ 65 : "=Q" (*(p)) \ 71 : "=Q" (*(p)) \ 77 : "=Q" (*(p)) \ [all …]
|
/openbmc/linux/arch/powerpc/platforms/ps3/ |
H A D | setup.c | 115 if (!p->size) in prealloc() 118 p->address = memblock_alloc(p->size, p->align); in prealloc() 119 if (!p->address) in prealloc() 121 __func__, p->size, p->align); in prealloc() 123 printk(KERN_INFO "%s: %lu bytes at %p\n", p->name, p->size, in prealloc() 124 p->address); in prealloc() 137 static int __init early_parse_ps3fb(char *p) in early_parse_ps3fb() argument 139 if (!p) in early_parse_ps3fb() 142 ps3fb_videomemory.size = ALIGN(memparse(p, &p), in early_parse_ps3fb() 162 if (!p) in early_parse_ps3flash() [all …]
|
/openbmc/u-boot/drivers/power/pmic/ |
H A D | pmic_pfuze3000.c | 16 struct pmic *p = pmic_alloc(); in power_pfuze3000_init() local 18 if (!p) { in power_pfuze3000_init() 23 p->name = name; in power_pfuze3000_init() 24 p->interface = PMIC_I2C; in power_pfuze3000_init() 25 p->number_of_regs = PFUZE3000_NUM_OF_REGS; in power_pfuze3000_init() 26 p->hw.i2c.addr = CONFIG_POWER_PFUZE3000_I2C_ADDR; in power_pfuze3000_init() 27 p->hw.i2c.tx_num = 1; in power_pfuze3000_init() 28 p->bus = bus; in power_pfuze3000_init()
|
H A D | pmic_ltc3676.c | 16 struct pmic *p = pmic_alloc(); in power_ltc3676_init() local 18 if (!p) { in power_ltc3676_init() 23 p->name = name; in power_ltc3676_init() 24 p->interface = PMIC_I2C; in power_ltc3676_init() 25 p->number_of_regs = LTC3676_NUM_OF_REGS; in power_ltc3676_init() 26 p->hw.i2c.addr = CONFIG_POWER_LTC3676_I2C_ADDR; in power_ltc3676_init() 27 p->hw.i2c.tx_num = 1; in power_ltc3676_init() 28 p->bus = bus; in power_ltc3676_init()
|
H A D | pmic_max77696.c | 16 struct pmic *p = pmic_alloc(); in power_max77696_init() local 18 if (!p) { in power_max77696_init() 23 p->name = name; in power_max77696_init() 24 p->interface = PMIC_I2C; in power_max77696_init() 25 p->number_of_regs = PMIC_NUM_OF_REGS; in power_max77696_init() 26 p->hw.i2c.addr = CONFIG_POWER_MAX77696_I2C_ADDR; in power_max77696_init() 27 p->hw.i2c.tx_num = 1; in power_max77696_init() 28 p->bus = bus; in power_max77696_init()
|
H A D | pmic_mc34vr500.c | 16 struct pmic *p = pmic_alloc(); in power_mc34vr500_init() local 18 if (!p) { in power_mc34vr500_init() 23 p->name = name; in power_mc34vr500_init() 24 p->interface = PMIC_I2C; in power_mc34vr500_init() 25 p->number_of_regs = MC34VR500_NUM_OF_REGS; in power_mc34vr500_init() 26 p->hw.i2c.addr = MC34VR500_I2C_ADDR; in power_mc34vr500_init() 27 p->hw.i2c.tx_num = 1; in power_mc34vr500_init() 28 p->bus = bus; in power_mc34vr500_init()
|
H A D | pmic_pfuze100.c | 16 struct pmic *p = pmic_alloc(); in power_pfuze100_init() local 18 if (!p) { in power_pfuze100_init() 23 p->name = name; in power_pfuze100_init() 24 p->interface = PMIC_I2C; in power_pfuze100_init() 25 p->number_of_regs = PFUZE100_NUM_OF_REGS; in power_pfuze100_init() 26 p->hw.i2c.addr = CONFIG_POWER_PFUZE100_I2C_ADDR; in power_pfuze100_init() 27 p->hw.i2c.tx_num = 1; in power_pfuze100_init() 28 p->bus = bus; in power_pfuze100_init()
|
H A D | pmic_max8998.c | 15 struct pmic *p = pmic_alloc(); in pmic_init() local 17 if (!p) { in pmic_init() 24 p->name = name; in pmic_init() 25 p->interface = PMIC_I2C; in pmic_init() 26 p->number_of_regs = PMIC_NUM_OF_REGS; in pmic_init() 27 p->hw.i2c.addr = MAX8998_I2C_ADDR; in pmic_init() 28 p->hw.i2c.tx_num = 1; in pmic_init() 29 p->bus = bus; in pmic_init()
|
/openbmc/u-boot/drivers/power/ |
H A D | power_dialog.c | 15 struct pmic *p = pmic_alloc(); in pmic_dialog_init() local 17 if (!p) { in pmic_dialog_init() 22 p->name = name; in pmic_dialog_init() 23 p->number_of_regs = DIALOG_NUM_OF_REGS; in pmic_dialog_init() 25 p->interface = PMIC_I2C; in pmic_dialog_init() 26 p->hw.i2c.addr = CONFIG_SYS_DIALOG_PMIC_I2C_ADDR; in pmic_dialog_init() 27 p->hw.i2c.tx_num = 1; in pmic_dialog_init() 28 p->bus = bus; in pmic_dialog_init()
|
/openbmc/linux/drivers/interconnect/ |
H A D | trace.h | 22 TP_ARGS(p, n, i, avg_bw, peak_bw), 25 __string(path_name, p->name) 26 __string(dev, dev_name(p->reqs[i].dev)) 35 __assign_str(path_name, p->name); 36 __assign_str(dev, dev_name(p->reqs[i].dev)); 56 TP_PROTO(struct icc_path *p, int ret), 58 TP_ARGS(p, ret), 61 __string(path_name, p->name) 62 __string(dev, dev_name(p->reqs[0].dev)) 67 __assign_str(path_name, p->name); [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | xhci-ext-caps.h | 19 #define XHCI_HCC_EXT_CAPS(p) (((p)>>16)&0xffff) argument 29 #define XHCI_HC_LENGTH(p) (((p)>>00)&0x00ff) argument 32 #define XHCI_EXT_CAPS_ID(p) (((p)>>0)&0xff) argument 33 #define XHCI_EXT_CAPS_NEXT(p) (((p)>>8)&0xff) argument 34 #define XHCI_EXT_CAPS_VAL(p) ((p)>>16) argument
|
/openbmc/linux/drivers/tty/serial/8250/ |
H A D | 8250_exar.c | 317 u8 __iomem *p; in pci_fastcom335_setup() local 326 p = port->port.membase; in pci_fastcom335_setup() 330 writeb(32, p + UART_EXAR_TXTRG); in pci_fastcom335_setup() 331 writeb(32, p + UART_EXAR_RXTRG); in pci_fastcom335_setup() 473 u8 __iomem *p = port->membase; in generic_rs485_config() local 505 u8 __iomem *p = port->membase; in iot2040_rs485_config() local 605 u8 __iomem *p; in pci_xr17v35x_setup() local 623 p = port->port.membase; in pci_xr17v35x_setup() 627 writeb(128, p + UART_EXAR_TXTRG); in pci_xr17v35x_setup() 628 writeb(128, p + UART_EXAR_RXTRG); in pci_xr17v35x_setup() [all …]
|
/openbmc/linux/drivers/target/ |
H A D | target_core_fabric_lib.c | 105 const char *p; in srp_get_pr_transport_id() local 111 p += 2; in srp_get_pr_transport_id() 112 len = strlen(p); in srp_get_pr_transport_id() 266 char *p; in iscsi_parse_pr_out_transport_id() local 305 if (!p) { in iscsi_parse_pr_out_transport_id() 314 *port_nexus_ptr = p; in iscsi_parse_pr_out_transport_id() 329 if (*p == '\0') in iscsi_parse_pr_out_transport_id() 332 if (isdigit(*p)) { in iscsi_parse_pr_out_transport_id() 333 p++; in iscsi_parse_pr_out_transport_id() 336 *p = tolower(*p); in iscsi_parse_pr_out_transport_id() [all …]
|
/openbmc/linux/tools/perf/tests/ |
H A D | vmlinux-kallsyms.c | 75 const char * const *p; in is_ignored_symbol() local 77 for (p = ignored_symbols; *p; p++) in is_ignored_symbol() 78 if (!strcmp(name, *p)) in is_ignored_symbol() 81 for (p = ignored_prefixes; *p; p++) in is_ignored_symbol() 82 if (!strncmp(name, *p, strlen(*p))) in is_ignored_symbol() 85 for (p = ignored_suffixes; *p; p++) { in is_ignored_symbol() 86 int l = strlen(name) - strlen(*p); in is_ignored_symbol() 88 if (l >= 0 && !strcmp(name + l, *p)) in is_ignored_symbol() 92 for (p = ignored_matches; *p; p++) { in is_ignored_symbol() 93 if (strstr(name, *p)) in is_ignored_symbol()
|
/openbmc/phosphor-host-ipmid/ |
H A D | ipmisensor.cpp | 102 while (p->data != 0xFF) in event_data_lookup() 104 if (p->data == b) in event_data_lookup() 108 p++; in event_data_lookup() 111 return p->text; in event_data_lookup() 120 char* p = valuestring; in set_sensor_dbus_state_fwprogress() local 142 p, sizeof(valuestring), in set_sensor_dbus_state_fwprogress() 165 char* p = valuestring; in set_sensor_dbus_state_system_event() local 176 std::snprintf(p, sizeof(valuestring), in set_sensor_dbus_state_system_event() 181 p, sizeof(valuestring), in set_sensor_dbus_state_system_event() 187 p, sizeof(valuestring), in set_sensor_dbus_state_system_event() [all …]
|
/openbmc/linux/arch/arm/nwfpe/ |
H A D | fpa11_cpdt.c | 29 unsigned int *p; in loadDouble() local 34 get_user(p[1], &pMem[1]); in loadDouble() 36 get_user(p[0], &pMem[1]); in loadDouble() 45 unsigned int *p; in loadExtended() local 62 register unsigned int *p; in loadMultiple() local 75 p[2] = 0; /* empty */ in loadMultiple() 82 get_user(p[1], &pMem[2]); in loadMultiple() 83 get_user(p[2], &pMem[1]); /* msw */ in loadMultiple() 84 p[0] = (x & 0x80003fff); in loadMultiple() 185 register unsigned int nType, *p; in storeMultiple() local [all …]
|
/openbmc/linux/net/bridge/ |
H A D | br_vlan.c | 279 if (p) { in __vlan_add() 354 if (p) in __vlan_add() 366 if (p) { in __vlan_add() 400 err = __vlan_vid_del(p->dev, p->br, v); in __vlan_del() 524 if (p && (p->flags & BR_VLAN_TUNNEL) && in br_handle_vlan() 1278 ret = nbp_vlan_add(p, p->br->default_pvid, in nbp_vlan_init() 1284 br_vlan_notify(p->br, p, p->br->default_pvid, 0, RTM_NEWVLAN); in nbp_vlan_init() 1413 if (p) in br_vlan_get_pvid() 1431 if (p) in br_vlan_get_pvid_rcu() 1507 if (p) in br_vlan_get_info() [all …]
|
/openbmc/linux/drivers/gpu/drm/gma500/ |
H A D | oaktrail_device.c | 141 p->src = PSB_RVDC32(PIPEASRC); in oaktrail_save_display_registers() 142 p->fp0 = PSB_RVDC32(MRST_FPA0); in oaktrail_save_display_registers() 143 p->fp1 = PSB_RVDC32(MRST_FPA1); in oaktrail_save_display_registers() 147 p->hsync = PSB_RVDC32(HSYNC_A); in oaktrail_save_display_registers() 150 p->vsync = PSB_RVDC32(VSYNC_A); in oaktrail_save_display_registers() 152 p->cntr = PSB_RVDC32(DSPACNTR); in oaktrail_save_display_registers() 154 p->addr = PSB_RVDC32(DSPABASE); in oaktrail_save_display_registers() 155 p->surf = PSB_RVDC32(DSPASURF); in oaktrail_save_display_registers() 257 PSB_WVDC32(p->fp0, MRST_FPA0); in oaktrail_restore_display_registers() 258 PSB_WVDC32(p->fp1, MRST_FPA1); in oaktrail_restore_display_registers() [all …]
|
/openbmc/u-boot/scripts/kconfig/ |
H A D | util.c | 134 if (p) in xmalloc() 135 return p; in xmalloc() 143 if (p) in xcalloc() 144 return p; in xcalloc() 151 p = realloc(p, size); in xrealloc() 152 if (p) in xrealloc() 153 return p; in xrealloc() 160 char *p; in xstrdup() local 162 p = strdup(s); in xstrdup() 163 if (p) in xstrdup() [all …]
|
/openbmc/u-boot/arch/arm/include/asm/ |
H A D | bitops.h | 39 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __change_bit() local 41 *p ^= mask; in __change_bit() 48 unsigned long old = *p; in __test_and_set_bit() 50 *p = old | mask; in __test_and_set_bit() 70 unsigned long old = *p; in __test_and_clear_bit() 72 *p = old & ~mask; in __test_and_clear_bit() 94 unsigned long old = *p; in __test_and_change_bit() 96 *p = old ^ mask; in __test_and_change_bit() 126 tmp = *(p++); in find_next_zero_bit() 136 tmp = *(p++); in find_next_zero_bit() [all …]
|
/openbmc/u-boot/cmd/ |
H A D | setexpr.c | 23 ulong *p; in get_arg() local 31 val = (ulong)*(uchar *)p; in get_arg() 32 unmap_sysmem(p); in get_arg() 37 unmap_sysmem(p); in get_arg() 42 val = *p; in get_arg() 43 unmap_sysmem(p); in get_arg() 90 if (p == NULL) in substitute() 112 memmove(p + nlen, p + olen, tail); in substitute() 116 memcpy(p, new, nlen); in substitute() 120 return p + nlen; in substitute() [all …]
|
/openbmc/linux/drivers/s390/net/ |
H A D | ctcm_sysfs.c | 80 char *p; in ctcm_print_statistics() local 87 p = sbuf; in ctcm_print_statistics() 89 p += scnprintf(p, CTCM_STATSIZE_LIMIT, " Device FSM state: %s\n", in ctcm_print_statistics() 91 p += scnprintf(p, CTCM_STATSIZE_LIMIT, " RX channel FSM state: %s\n", in ctcm_print_statistics() 93 p += scnprintf(p, CTCM_STATSIZE_LIMIT, " TX channel FSM state: %s\n", in ctcm_print_statistics() 95 p += scnprintf(p, CTCM_STATSIZE_LIMIT, " Max. TX buffer used: %ld\n", in ctcm_print_statistics() 97 p += scnprintf(p, CTCM_STATSIZE_LIMIT, " Max. chained SKBs: %ld\n", in ctcm_print_statistics() 99 p += scnprintf(p, CTCM_STATSIZE_LIMIT, " TX single write ops: %ld\n", in ctcm_print_statistics() 101 p += scnprintf(p, CTCM_STATSIZE_LIMIT, " TX multi write ops: %ld\n", in ctcm_print_statistics() 103 p += scnprintf(p, CTCM_STATSIZE_LIMIT, " Netto bytes written: %ld\n", in ctcm_print_statistics() [all …]
|
/openbmc/linux/arch/arc/include/asm/ |
H A D | io.h | 39 #define ioread16be(p) ({ u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(); __v; }) argument 40 #define ioread32be(p) ({ u32 __v = be32_to_cpu((__force __be32)__raw_readl(p)); __iormb(); __v; }) argument 42 #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force u16)cpu_to_be16(v), p); }) argument 43 #define iowrite32be(v,p) ({ __iowmb(); __raw_writel((__force u32)cpu_to_be32(v), p); }) argument 202 #define readsb(p,d,l) ({ __raw_readsb(p,d,l); __iormb(); }) argument 203 #define readsw(p,d,l) ({ __raw_readsw(p,d,l); __iormb(); }) argument 204 #define readsl(p,d,l) ({ __raw_readsl(p,d,l); __iormb(); }) argument 209 #define writesb(p,d,l) ({ __iowmb(); __raw_writesb(p,d,l); }) argument 210 #define writesw(p,d,l) ({ __iowmb(); __raw_writesw(p,d,l); }) argument 211 #define writesl(p,d,l) ({ __iowmb(); __raw_writesl(p,d,l); }) argument
|
/openbmc/linux/drivers/mcb/ |
H A D | mcb-parse.c | 17 for ((dtype) = get_next_dtype((p)); \ 19 (dtype) = get_next_dtype((p))) 25 dtype = readl(p); in get_next_dtype() 117 char __iomem *p = base; in chameleon_parse_bar() local 121 p += sizeof(__le32); in chameleon_parse_bar() 124 cb[i].addr = readl(p); in chameleon_parse_bar() 125 cb[i].size = readl(p + 4); in chameleon_parse_bar() 180 void __iomem *p = base; in chameleon_parse_cells() local 195 memcpy_fromio(header, p, hsize); in chameleon_parse_cells() 204 p += hsize; in chameleon_parse_cells() [all …]
|