| /components/drivers/pci/ |
| A D | access.c | 65 void *base; in PCI_OPS() local 71 *value = HWREG8(base); in PCI_OPS() 91 void *base; in rt_pci_bus_write_config_uxx() local 97 HWREG8(base) = value; in rt_pci_bus_write_config_uxx() 101 HWREG16(base) = value; in rt_pci_bus_write_config_uxx() 105 HWREG32(base) = value; in rt_pci_bus_write_config_uxx() 117 void *base; in rt_pci_bus_read_config_generic_u32() local 121 *value = HWREG32(base); in rt_pci_bus_read_config_generic_u32() 137 void *base; in rt_pci_bus_write_config_generic_u32() local 143 HWREG32(base) = value; in rt_pci_bus_write_config_generic_u32() [all …]
|
| /components/drivers/pic/ |
| A D | pic-gicv3.c | 176 void *base; in gicv3_hwirq_reg_base() local 184 base = _gic.dist_base; in gicv3_hwirq_reg_base() 298 void *base; in gicv3_redist_enable() local 338 void *base; in gicv3_redist_init() local 351 base = _gic.redist_regions[i].base; in gicv3_redist_init() 397 void *base; in gicv3_cpu_init() local 504 void *base; in gicv3_irq_set_priority() local 514 base = _gic.dist_base; in gicv3_irq_set_priority() 546 void *base; in gicv3_irq_set_triger_mode() local 938 _gic.redist_regions[i].base = rt_ioremap(base, size); in gicv3_iomap_init() [all …]
|
| A D | pic-gic-common.c | 62 void gic_common_sgi_config(void *base, void *data, int irq_base) in gic_common_sgi_config() argument 90 val = oldval = HWREG32(base + confoff); in gic_common_configure_irq() 105 HWREG32(base + confoff) = val; in gic_common_configure_irq() 107 if (HWREG32(base + confoff) != val) in gic_common_configure_irq() 129 HWREG32(base + GIC_DIST_CONFIG + i / 4) = GICD_INT_ACTLOW_LVLTRIG; in gic_common_dist_config() 135 HWREG32(base + GIC_DIST_PRI + i * 4 / 4) = GICD_INT_DEF_PRI_X4; in gic_common_dist_config() 141 HWREG32(base + GIC_DIST_ACTIVE_CLEAR + i / 8) = GICD_INT_EN_CLR_X32; in gic_common_dist_config() 142 HWREG32(base + GIC_DIST_ENABLE_CLEAR + i / 8) = GICD_INT_EN_CLR_X32; in gic_common_dist_config() 158 HWREG32(base + GIC_DIST_ACTIVE_CLEAR + i / 8) = GICD_INT_EN_CLR_X32; in gic_common_cpu_config() 159 HWREG32(base + GIC_DIST_ENABLE_CLEAR + i / 8) = GICD_INT_EN_CLR_X32; in gic_common_cpu_config() [all …]
|
| A D | pic-gic-common.h | 45 void gic_common_sgi_config(void *base, void *data, int irq_base); 46 rt_err_t gic_common_configure_irq(void *base, int irq, rt_uint32_t mode, void (*sync_access)(void *… 47 void gic_common_dist_config(void *base, int max_irqs, void (*sync_access)(void *), void *data); 48 void gic_common_cpu_config(void *base, int nr, void (*sync_access)(void *), void *data);
|
| A D | pic-gicv2m.c | 55 void *base; member 86 static rt_bool_t is_msi_spi_valid(rt_uint32_t base, rt_uint32_t num) in is_msi_spi_valid() argument 88 if (base < V2M_MIN_SPI) in is_msi_spi_valid() 90 LOG_E("Invalid MSI base SPI (base: %u)", base); in is_msi_spi_valid() 94 else if ((num == 0) || (base + num > V2M_MAX_SPI)) in is_msi_spi_valid() 273 v2m->base = rt_ofw_iomap(v2m_np, 0); in gicv2m_ofw_probe() 275 if (!v2m->base) in gicv2m_ofw_probe() 281 v2m->base_phy = rt_kmem_v2p(v2m->base); in gicv2m_ofw_probe() 304 typer = HWREG32(v2m->base + V2M_MSI_TYPER); in gicv2m_ofw_probe() 330 switch (HWREG32(v2m->base + V2M_MSI_IIDR)) in gicv2m_ofw_probe() [all …]
|
| A D | pic-gicv3-its.c | 61 void *base; member 102 void *base; member 131 return HWREG32(its->base + off) | in its_readq() 143 return HWREG32(its->base + off); in its_readl() 148 HWREG32(its->base + off) = value; in its_writel() 798 entry = tbl->base; in gicv3_its_irq_alloc_msi() 1181 if (!tbl->base) in its_table_init() 1364 if (its->base) in its_init_fail() 1366 rt_iounmap(its->base); in its_init_fail() 1378 if (tbl->base) in its_init_fail() [all …]
|
| /components/libc/posix/tls/ |
| A D | emutls.c | 61 void *base; in emutls_memalign_alloc() local 63 if (posix_memalign(&base, align, size) != 0) in emutls_memalign_alloc() 72 ((void **)base)[-1] = object; in emutls_memalign_alloc() 74 return base; in emutls_memalign_alloc() 77 static __inline void emutls_memalign_free(void *base) in emutls_memalign_free() argument 80 free(base); in emutls_memalign_free() 83 free(((void **)base)[-1]); in emutls_memalign_free() 98 void *base = emutls_memalign_alloc(align, size); in emutls_allocate_object() local 100 memcpy(base, control->value, size); in emutls_allocate_object() 102 memset(base, 0, size); in emutls_allocate_object() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/core/snmp/ |
| A D | asn1_enc.c | 183 u16_t plen, base; in snmp_asn1_enc_type() local 189 base = plen; in snmp_asn1_enc_type() 215 u16_t plen, base; in snmp_asn1_enc_length() local 221 base = plen; in snmp_asn1_enc_length() 310 u16_t plen, base; in snmp_asn1_enc_u32t() local 316 base = plen; in snmp_asn1_enc_u32t() 386 u16_t plen, base; in snmp_asn1_enc_s32t() local 392 base = plen; in snmp_asn1_enc_s32t() 440 u16_t plen, base; in snmp_asn1_enc_oid() local 446 base = plen; in snmp_asn1_enc_oid() [all …]
|
| A D | asn1_dec.c | 54 u16_t plen, base; in snmp_asn1_dec_type() local 60 base = plen; in snmp_asn1_dec_type() 87 u16_t plen, base; in snmp_asn1_dec_length() local 93 base = plen; in snmp_asn1_dec_length() 242 u16_t plen, base; in snmp_asn1_dec_u32t() local 248 base = plen; in snmp_asn1_dec_u32t() 335 u16_t plen, base; in snmp_asn1_dec_s32t() local 348 base = plen; in snmp_asn1_dec_s32t() 431 u16_t plen, base; in snmp_asn1_dec_oid() local 438 base = plen; in snmp_asn1_dec_oid() [all …]
|
| /components/libc/cplusplus/ |
| A D | cxx_crt_init.c | 60 const unsigned long *base = SHT$$INIT_ARRAY$$Base; in cplusplus_system_init() local 63 for (; base != lim; base++) in cplusplus_system_init() 65 PROC *proc = (PROC *)((const char *)base + *base); in cplusplus_system_init()
|
| /components/drivers/serial/ |
| A D | serial_dm.c | 64 rt_ubase_t base = 0; in serial_base_from_args() local 77 base = (base << 4) | (((*str | ' ') - 'a') + 10); in serial_base_from_args() 81 base = (base << 4) | (*str - '0'); in serial_base_from_args() 88 return (void *)base; in serial_base_from_args()
|
| /components/drivers/pci/host/ |
| A D | pci-host-common.c | 17 void *base; in pci_host_common_probe() local 28 if (!(base = rt_dm_dev_iomap(dev, 0))) in pci_host_common_probe() 50 conf_win->win = base; in pci_host_common_probe() 63 if (base) in pci_host_common_probe() 65 rt_iounmap(base); in pci_host_common_probe()
|
| /components/drivers/watchdog/ |
| A D | watchdog-dw.c | 58 void *base; member 92 rt_uint32_t val = HWREG32(dw_wdt->base + WDOG_CONTROL_REG_OFFSET); in dw_wdt_update_mode() 103 HWREG32(dw_wdt->base + WDOG_CONTROL_REG_OFFSET) = val; in dw_wdt_update_mode() 232 rt_uint32_t val = HWREG32(dw_wdt->base + WDOG_CONTROL_REG_OFFSET); in dw_wdt_arm_system_reset() 278 val = HWREG32(dw_wdt->base + WDOG_CURRENT_COUNT_REG_OFFSET); in dw_wdt_get_timeleft() 478 if (!HWREG32(wdt->base + WDOG_INTERRUPT_STATUS_REG_OFFSET)) in dw_wdt_isr() 484 (void)HWREG32(wdt->base + WDOG_INTERRUPT_CLEAR_REG_OFFSET); in dw_wdt_isr() 494 if (dw_wdt->base) in dw_wdt_free() 496 rt_iounmap(dw_wdt->base); in dw_wdt_free() 525 dw_wdt->base = rt_dm_dev_iomap(dev, 0); in dw_wdt_probe() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/apps/lwiperf/ |
| A D | lwiperf.c | 115 lwiperf_state_base_t base; member 285 LWIP_ASSERT("conn invalid", (conn != NULL) && conn->base.tcp && (conn->base.server == 0)); in lwiperf_tcp_client_send_more() 410 client_conn->base.tcp = 1; in lwiperf_tx_start_impl() 583 if (!conn->base.server) { in lwiperf_tcp_poll() 618 conn->base.tcp = 1; in lwiperf_tcp_accept() 619 conn->base.server = 1; in lwiperf_tcp_accept() 620 conn->base.related_master_state = &s->base; in lwiperf_tcp_accept() 634 conn->base.related_master_state = s->base.related_master_state; in lwiperf_tcp_accept() 705 s->base.tcp = 1; in lwiperf_start_tcp_server_impl() 706 s->base.server = 1; in lwiperf_start_tcp_server_impl() [all …]
|
| /components/drivers/usb/cherryusb/port/hpmicro/ |
| A D | usb_glue_hpm.c | 15 ATTR_WEAK void hpm_usb_isr_enable(uint32_t base) in hpm_usb_isr_enable() argument 17 if (base == HPM_USB0_BASE) { in hpm_usb_isr_enable() 26 ATTR_WEAK void hpm_usb_isr_disable(uint32_t base) in hpm_usb_isr_disable() argument 28 if (base == HPM_USB0_BASE) { in hpm_usb_isr_disable()
|
| A D | usb_glue_hpm.h | 14 void hpm_usb_isr_enable(uint32_t base); 15 void hpm_usb_isr_disable(uint32_t base);
|
| /components/legacy/fdt/src/ |
| A D | dtb_base.c | 13 if (*base == 0) in _parse_integer_fixup_radix() 18 *base = 16; in _parse_integer_fixup_radix() 20 *base = 8; in _parse_integer_fixup_radix() 23 *base = 10; in _parse_integer_fixup_radix() 31 unsigned int base) in simple_strtoul() argument 36 cp = _parse_integer_fixup_radix(cp, &base); in simple_strtoul() 39 ? toupper(*cp) : *cp)-'A'+10) < base) in simple_strtoul() 41 result = result*base + value; in simple_strtoul() 62 val = simple_strtoul(cp, &tail, base); in strict_strtoul() 79 return -simple_strtoul(cp + 1, endp, base); in simple_strtol() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/core/ipv4/ |
| A D | ip4_addr.c | 148 u8_t base; in ip4addr_aton() local 164 base = 10; in ip4addr_aton() 168 base = 16; in ip4addr_aton() 171 base = 8; in ip4addr_aton() 176 val = (val * base) + (u32_t)(c - '0'); in ip4addr_aton() 178 } else if (base == 16 && lwip_isxdigit(c)) { in ip4addr_aton()
|
| /components/net/lwip/lwip-2.0.3/src/core/ipv4/ |
| A D | ip4_addr.c | 158 u8_t base; in ip4addr_aton() local 174 base = 10; in ip4addr_aton() 178 base = 16; in ip4addr_aton() 181 base = 8; in ip4addr_aton() 186 val = (val * base) + (u32_t)(c - '0'); in ip4addr_aton() 188 } else if (base == 16 && isxdigit(c)) { in ip4addr_aton()
|
| /components/net/lwip/lwip-1.4.1/src/core/ipv4/ |
| A D | ip_addr.c | 155 u8_t base; in ipaddr_aton() local 170 base = 10; in ipaddr_aton() 174 base = 16; in ipaddr_aton() 177 base = 8; in ipaddr_aton() 181 val = (val * base) + (int)(c - '0'); in ipaddr_aton() 183 } else if (base == 16 && isxdigit(c)) { in ipaddr_aton()
|
| /components/net/lwip/lwip-2.0.3/src/apps/lwiperf/ |
| A D | lwiperf.c | 104 lwiperf_state_base_t base; member 257 LWIP_ASSERT("conn invalid", (conn != NULL) && conn->base.tcp && (conn->base.server == 0)); in lwiperf_tcp_client_send_more() 378 client_conn->base.server = 0; in lwiperf_tx_start() 528 if (!conn->base.server) { in lwiperf_tcp_poll() 550 conn->base.tcp = 1; in lwiperf_tcp_accept() 551 conn->base.server = 1; in lwiperf_tcp_accept() 552 conn->base.related_server_state = &s->base; in lwiperf_tcp_accept() 565 lwiperf_list_add(&conn->base); in lwiperf_tcp_accept() 609 s->base.tcp = 1; in lwiperf_start_tcp_server() 610 s->base.server = 1; in lwiperf_start_tcp_server() [all …]
|
| /components/drivers/ofw/ |
| A D | fdt.c | 231 rt_ubase_t base, size; in fdt_reserved_memory_reg() local 246 base = rt_fdt_next_cell(&prop, _root_addr_cells); in fdt_reserved_memory_reg() 255 base = rt_fdt_translate_address(_fdt, nodeoffset, base); in fdt_reserved_memory_reg() 258 base, base + size, is_nomap); in fdt_reserved_memory_reg() 309 rt_uint64_t base, size; in fdt_scan_memory() local 315 fdt_get_mem_rsv(_fdt, no, &base, &size); in fdt_scan_memory() 322 rt_memblock_reserve_memory("memreserve", base, base + size, MEMBLOCK_NONE); in fdt_scan_memory() 354 base = rt_fdt_next_cell(®, _root_addr_cells); in fdt_scan_memory() 363 err = rt_memblock_add_memory(name, base, base + size, is_hotpluggable); in fdt_scan_memory() 367 … LOG_I("Memory node(%d) ranges: 0x%.*lx - 0x%.*lx%s", no, MIN_BIT, base, MIN_BIT, base + size, ""); in fdt_scan_memory() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/core/ |
| A D | def.c | 200 const int base = 10; in lwip_itoa() local 207 number /= base; in lwip_itoa() 208 …rqponmlkjihgfedcba9876543210123456789abcdefghijklmnopqrstuvwxyz"[35 + (tmp_value - number * base)]; in lwip_itoa()
|
| /components/net/netdev/src/ |
| A D | netdev_ipaddr.c | 41 uint8_t base; in netdev_ip4addr_aton() local 59 base = 10; in netdev_ip4addr_aton() 65 base = 16; in netdev_ip4addr_aton() 70 base = 8; in netdev_ip4addr_aton() 77 val = (val * base) + (uint32_t) (c - '0'); in netdev_ip4addr_aton() 80 else if (base == 16 && isxdigit(c)) in netdev_ip4addr_aton()
|
| /components/net/lwip/lwip-2.1.2/src/netif/ppp/ |
| A D | utils.c | 138 int base, len, neg, quoted; in ppp_vslprintf() local 200 base = 0; in ppp_vslprintf() 213 base = 10; in ppp_vslprintf() 217 base = 10; in ppp_vslprintf() 233 base = 10; in ppp_vslprintf() 237 base = 10; in ppp_vslprintf() 241 base = 8; in ppp_vslprintf() 246 base = 16; in ppp_vslprintf() 251 base = 16; in ppp_vslprintf() 359 if (base != 0) { in ppp_vslprintf() [all …]
|