| /components/drivers/hwtimer/ |
| A D | hwtimer-arm_arch.c | 74 if (val) in mon_ptimer_value() 83 return val; in mon_ptimer_value() 89 if (val) in hyp_s_ptimer_value() 98 return val; in hyp_s_ptimer_value() 106 if (val) in hyp_ns_ptimer_value() 115 return val; in hyp_ns_ptimer_value() 121 if (val) in hyp_s_vtimer_value() 139 if (val) in hyp_ns_vtimer_value() 156 if (val) in os_ptimer_value() 170 if (val) in os_vtimer_value() [all …]
|
| /components/drivers/pci/ |
| A D | procfs.c | 79 copy_to_user(buf, &val, sizeof(val)); in pci_read() 92 val = rt_cpu_to_le16(val); in pci_read() 93 copy_to_user(buf, &val, sizeof(val)); in pci_read() 106 val = rt_cpu_to_le32(val); in pci_read() 107 copy_to_user(buf, &val, sizeof(val)); in pci_read() 120 val = rt_cpu_to_le16(val); in pci_read() 121 copy_to_user(buf, &val, sizeof(val)); in pci_read() 133 copy_to_user(buf, &val, sizeof(val)); in pci_read() 159 copy_from_user(&val, buf, sizeof(val)); in pci_write() 171 copy_from_user(&val, buf, sizeof(val)); in pci_write() [all …]
|
| /components/drivers/pci/host/dw/ |
| A D | pcie-dw.c | 145 HWREG32(addr) = val; in dw_pcie_write() 149 HWREG16(addr) = val; in dw_pcie_write() 153 HWREG8(addr) = val; in dw_pcie_write() 166 rt_uint32_t val = 0; in dw_pcie_read_dbi() local 178 return val; in dw_pcie_read_dbi() 216 rt_uint32_t val = 0; in dw_pcie_readl_atu() local 228 return val; in dw_pcie_readl_atu() 503 rt_uint32_t val; in dw_pcie_link_up() local 517 rt_uint32_t val; in dw_pcie_upconfig_setup() local 554 rt_uint32_t val; in dw_pcie_setup() local [all …]
|
| A D | pcie-dw.h | 315 rt_err_t dw_pcie_write(void *addr, rt_size_t size, rt_uint32_t val); 321 void dw_pcie_writel_atu(struct dw_pcie *pci, rt_uint32_t reg, rt_uint32_t val); 333 dw_pcie_write_dbi(pci, reg, 0x4, val); in dw_pcie_writel_dbi() 343 dw_pcie_write_dbi(pci, reg, 0x2, val); in dw_pcie_writew_dbi() 351 rt_inline void dw_pcie_writeb_dbi(struct dw_pcie *pci, rt_uint32_t reg, rt_uint8_t val) in dw_pcie_writeb_dbi() argument 353 dw_pcie_write_dbi(pci, reg, 0x1, val); in dw_pcie_writeb_dbi() 363 dw_pcie_write_dbi2(pci, reg, 0x4, val); in dw_pcie_writel_dbi2() 392 rt_uint32_t index, rt_uint32_t reg, rt_uint32_t val) in dw_pcie_writel_ob_unroll() argument 394 dw_pcie_writel_atu(pci, PCIE_GET_ATU_OUTB_UNR_REG_OFFSET(index) + reg, val); in dw_pcie_writel_ob_unroll() 404 rt_uint32_t index, rt_uint32_t reg, rt_uint32_t val) in dw_pcie_writel_ib_unroll() argument [all …]
|
| /components/drivers/ofw/libfdt/ |
| A D | fdt_addresses.c | 17 uint32_t val; in fdt_cells() local 27 val = fdt32_to_cpu(*c); in fdt_cells() 28 if (val > FDT_MAX_NCELLS) in fdt_cells() 31 return (int)val; in fdt_cells() 36 int val; in fdt_address_cells() local 39 if (val == 0) in fdt_address_cells() 41 if (val == -FDT_ERR_NOTFOUND) in fdt_address_cells() 43 return val; in fdt_address_cells() 48 int val; in fdt_size_cells() local 51 if (val == -FDT_ERR_NOTFOUND) in fdt_size_cells() [all …]
|
| A D | libfdt.h | 1327 fdt32_t tmp = cpu_to_fdt32(val); in fdt_setprop_inplace_u32() 1362 fdt64_t tmp = cpu_to_fdt64(val); in fdt_setprop_inplace_u64() 1482 fdt32_t tmp = cpu_to_fdt32(val); in fdt_property_u32() 1487 fdt64_t tmp = cpu_to_fdt64(val); in fdt_property_u64() 1630 const void *val, int len); 1692 uint32_t val) in fdt_setprop_u32() argument 1694 fdt32_t tmp = cpu_to_fdt32(val); in fdt_setprop_u32() 1727 uint64_t val) in fdt_setprop_u64() argument 1729 fdt64_t tmp = cpu_to_fdt64(val); in fdt_setprop_u64() 1745 uint32_t val) in fdt_setprop_cell() argument [all …]
|
| /components/legacy/fdt/libfdt/ |
| A D | fdt_addresses.c | 15 uint32_t val; in fdt_cells() local 25 val = fdt32_to_cpu(*c); in fdt_cells() 26 if (val > FDT_MAX_NCELLS) in fdt_cells() 29 return (int)val; in fdt_cells() 34 int val; in fdt_address_cells() local 37 if (val == 0) in fdt_address_cells() 39 if (val == -FDT_ERR_NOTFOUND) in fdt_address_cells() 41 return val; in fdt_address_cells() 46 int val; in fdt_size_cells() local 49 if (val == -FDT_ERR_NOTFOUND) in fdt_size_cells() [all …]
|
| A D | libfdt.h | 1224 fdt32_t tmp = cpu_to_fdt32(val); in fdt_setprop_inplace_u32() 1259 fdt64_t tmp = cpu_to_fdt64(val); in fdt_setprop_inplace_u64() 1336 fdt32_t tmp = cpu_to_fdt32(val); in fdt_property_u32() 1341 fdt64_t tmp = cpu_to_fdt64(val); in fdt_property_u64() 1464 const void *val, int len); 1495 uint32_t val) in fdt_setprop_u32() argument 1497 fdt32_t tmp = cpu_to_fdt32(val); in fdt_setprop_u32() 1530 uint64_t val) in fdt_setprop_u64() argument 1532 fdt64_t tmp = cpu_to_fdt64(val); in fdt_setprop_u64() 1542 uint32_t val) in fdt_setprop_cell() argument [all …]
|
| /components/net/lwip/lwip-2.1.2/src/core/ipv4/ |
| A D | ip4_addr.c | 125 ip4_addr_t val; in ipaddr_addr() local 127 if (ip4addr_aton(cp, &val)) { in ipaddr_addr() 147 u32_t val; in ip4addr_aton() local 163 val = 0; in ip4addr_aton() 176 val = (val * base) + (u32_t)(c - '0'); in ip4addr_aton() 179 val = (val << 4) | (u32_t)(c + 10 - (lwip_islower(c) ? 'a' : 'A')); in ip4addr_aton() 195 *pp++ = val; in ip4addr_aton() 220 if (val > 0xffffffUL) { in ip4addr_aton() 226 val |= parts[0] << 24; in ip4addr_aton() 230 if (val > 0xffff) { in ip4addr_aton() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/core/ipv4/ |
| A D | ip4_addr.c | 135 ip4_addr_t val; in ipaddr_addr() local 137 if (ip4addr_aton(cp, &val)) { in ipaddr_addr() 157 u32_t val; in ip4addr_aton() local 173 val = 0; in ip4addr_aton() 186 val = (val * base) + (u32_t)(c - '0'); in ip4addr_aton() 189 val = (val << 4) | (u32_t)(c + 10 - (islower(c) ? 'a' : 'A')); in ip4addr_aton() 205 *pp++ = val; in ip4addr_aton() 230 if (val > 0xffffffUL) { in ip4addr_aton() 236 val |= parts[0] << 24; in ip4addr_aton() 240 if (val > 0xffff) { in ip4addr_aton() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/core/ipv4/ |
| A D | ip_addr.c | 132 ip_addr_t val; in ipaddr_addr() local 134 if (ipaddr_aton(cp, &val)) { in ipaddr_addr() 154 u32_t val; in ipaddr_aton() local 169 val = 0; in ipaddr_aton() 181 val = (val * base) + (int)(c - '0'); in ipaddr_aton() 184 val = (val << 4) | (int)(c + 10 - (islower(c) ? 'a' : 'A')); in ipaddr_aton() 199 *pp++ = val; in ipaddr_aton() 223 if (val > 0xffffffUL) { in ipaddr_aton() 226 val |= parts[0] << 24; in ipaddr_aton() 230 if (val > 0xffff) { in ipaddr_aton() [all …]
|
| /components/utilities/libadt/hashmap/ |
| A D | hashmap.h | 24 rt_inline rt_uint32_t rt_hashmap_32(rt_uint32_t val, rt_uint32_t bits) in rt_hashmap_32() argument 27 return (val * RT_HASHMAP_GOLDEN_RATIO_32) >> (32 - bits); in rt_hashmap_32() 30 rt_inline rt_uint32_t rt_hashmap_64(rt_uint64_t val, rt_uint32_t bits) in rt_hashmap_64() argument 34 return val * RT_HASHMAP_GOLDEN_RATIO_64 >> (64 - bits); in rt_hashmap_64() 37 return rt_hashmap_32((rt_uint32_t)val ^ ((val >> 32) * RT_HASHMAP_GOLDEN_RATIO_32), bits); in rt_hashmap_64()
|
| /components/net/netdev/src/ |
| A D | netdev_ipaddr.c | 40 uint32_t val; in netdev_ip4addr_aton() local 58 val = 0; in netdev_ip4addr_aton() 77 val = (val * base) + (uint32_t) (c - '0'); in netdev_ip4addr_aton() 82 val = (val << 4) | (uint32_t) (c + 10 - (islower(c) ? 'a' : 'A')); in netdev_ip4addr_aton() 102 *pp++ = val; in netdev_ip4addr_aton() 131 if (val > 0xffffffUL) in netdev_ip4addr_aton() 139 val |= parts[0] << 24; in netdev_ip4addr_aton() 143 if (val > 0xffff) in netdev_ip4addr_aton() 155 if (val > 0xff) in netdev_ip4addr_aton() 253 ip4_addr_t val; in netdev_ipaddr_addr() local [all …]
|
| /components/libc/cplusplus/cpp11/ |
| A D | atomic_8.c | 31 void __atomic_store_8(volatile void *ptr, uint64_t val, int memorder) in __atomic_store_8() argument 36 *val_ptr = val; in __atomic_store_8() 40 uint64_t __atomic_exchange_8(volatile void *ptr, uint64_t val, int memorder) in __atomic_exchange_8() argument 47 *val_ptr = val; in __atomic_exchange_8() 95 void __atomic_store(size_t size, void *mem, void *val, int model) in __atomic_store() argument 99 rt_memcpy(mem, val, size); in __atomic_store() 112 void __atomic_exchange(size_t size, void *mem, void *val, void *_return, int model) in __atomic_exchange() argument 117 rt_memcpy(mem, val, size); in __atomic_exchange() 152 uint64_t __atomic_fetch_##OPNAME##_8(volatile void *ptr, uint64_t val, int memorder) {\ 158 *val_ptr OP##= val;\
|
| /components/drivers/phy/ |
| A D | general.c | 291 int val; in rt_genphy_config() local 300 if (val < 0) in rt_genphy_config() 301 return val; in rt_genphy_config() 303 if (val & RT_BMSR_ANEGCAPABLE) in rt_genphy_config() 306 if (val & RT_BMSR_100FULL) in rt_genphy_config() 308 if (val & RT_BMSR_100HALF) in rt_genphy_config() 310 if (val & RT_BMSR_10FULL) in rt_genphy_config() 312 if (val & RT_BMSR_10HALF) in rt_genphy_config() 315 if (val & RT_BMSR_ESTATEN) in rt_genphy_config() 319 if (val < 0) in rt_genphy_config() [all …]
|
| /components/drivers/watchdog/ |
| A D | watchdog-dw.c | 96 val |= WDOG_CONTROL_REG_RESP_MODE_MASK; in dw_wdt_update_mode() 100 val &= ~WDOG_CONTROL_REG_RESP_MODE_MASK; in dw_wdt_update_mode() 276 rt_uint32_t val, sec; in dw_wdt_get_timeleft() local 279 sec = val / dw_wdt->rate; in dw_wdt_get_timeleft() 285 if (!val) in dw_wdt_get_timeleft() 296 int val, tidx; in dw_wdt_init_timeouts() local 308 for (val = 0; val < DW_WDT_NUM_TOPS; ++val) in dw_wdt_init_timeouts() 310 tout.top_val = val; in dw_wdt_init_timeouts() 311 tout.sec = tops[val] / dw_wdt->rate; in dw_wdt_init_timeouts() 320 for (tidx = 0; tidx < val; ++tidx) in dw_wdt_init_timeouts() [all …]
|
| A D | watchdog-i6300esb.c | 88 rt_uint8_t val; in i6300esb_timer_stop() local 96 rt_pci_read_config_u8(esb->pdev, ESB_LOCK_PCI_REG, &val); in i6300esb_timer_stop() 99 return val & ESB_WDT_ENABLE; in i6300esb_timer_stop() 112 rt_uint32_t val; in i6300esb_timer_set_heartbeat() local 119 val = time << 9; in i6300esb_timer_set_heartbeat() 123 HWREG32(esb->regs + ESB_TIMER1_REG) = val; in i6300esb_timer_set_heartbeat() 127 HWREG32(esb->regs + ESB_TIMER2_REG) = val; in i6300esb_timer_set_heartbeat()
|
| /components/drivers/include/drivers/ |
| A D | dev_mmcsd_core.h | 186 rt_inline rt_uint32_t __rt_fls(rt_uint32_t val) in __rt_fls() argument 190 if (!val) in __rt_fls() 192 if (!(val & 0xffff0000u)) in __rt_fls() 194 val <<= 16; in __rt_fls() 197 if (!(val & 0xff000000u)) in __rt_fls() 199 val <<= 8; in __rt_fls() 202 if (!(val & 0xf0000000u)) in __rt_fls() 204 val <<= 4; in __rt_fls() 207 if (!(val & 0xc0000000u)) in __rt_fls() 209 val <<= 2; in __rt_fls() [all …]
|
| A D | misc.h | 38 #define ____KEY_ENABLED(__ignored, val, ...) val argument 43 #define RT_FIELD_PREP(mask, val) (((rt_uint64_t)(val) << (__rt_ffsl((mask)) - 1)) & (mask)) argument 44 #define RT_FIELD_GET(mask, val) (((val) & (mask)) >> (__rt_ffsl((mask)) - 1)) argument 104 #define rt_clamp(val, lo, hi) rt_min((typeof(val))rt_max(val, lo), hi) argument
|
| /components/legacy/fdt/src/ |
| A D | dtb_access.c | 41 const uint32_t *val; in dtb_node_read_u32() local 47 if (DTB_IS_ERR(val)) in dtb_node_read_u32() 50 return DTB_PTR_ERR(val); in dtb_node_read_u32() 53 *outp = fdt32_to_cpu(*val); in dtb_node_read_u32() 69 const uint32_t *val; in dtb_node_read_u32_array() local 75 if (DTB_IS_ERR(val)) in dtb_node_read_u32_array() 76 return DTB_PTR_ERR(val); in dtb_node_read_u32_array() 105 const uint32_t *val; in dtb_node_read_u32_index() local 113 if (DTB_IS_ERR(val)) in dtb_node_read_u32_index() 127 const uint64_t *val; in dtb_node_read_u64() local [all …]
|
| /components/drivers/pic/ |
| A D | pic-gicv3-its.c | 62 rt_uint64_t val; member 177 *raw_code |= (val << l) & mask; in its_mask_encode() 419 val = HWREG32(gicr + GICR_CTLR); in redist_disable_lpis() 442 val &= ~GICR_CTLR_ENABLE_LPIS; in redist_disable_lpis() 443 HWREG32(gicr + GICR_CTLR) = val; in redist_disable_lpis() 485 rt_uint64_t val, tmp; in gicv3_its_cpu_init_lpis() local 494 val = HWREG32(gicr + GICR_CTLR); in gicv3_its_cpu_init_lpis() 529 val |= GICR_PBASER_nC; in gicv3_its_cpu_init_lpis() 557 val |= GICR_PBASER_nC; in gicv3_its_cpu_init_lpis() 562 val = HWREG32(gicr + GICR_CTLR); in gicv3_its_cpu_init_lpis() [all …]
|
| A D | pic-gic-common.c | 83 rt_uint32_t val, oldval; in gic_common_configure_irq() local 90 val = oldval = HWREG32(base + confoff); in gic_common_configure_irq() 95 val &= ~confmask; in gic_common_configure_irq() 100 val |= confmask; in gic_common_configure_irq() 103 if (val != oldval) 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()
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/ |
| A D | arch.h | 180 #define LWIP_CONST_CAST(target_type, val) ((target_type)((ptrdiff_t)val)) argument 185 #define LWIP_ALIGNMENT_CAST(target_type, val) LWIP_CONST_CAST(target_type, val) argument 192 #define LWIP_PTR_NUMERIC_CAST(target_type, val) LWIP_CONST_CAST(target_type, val) argument
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/ |
| A D | arch.h | 242 #define LWIP_CONST_CAST(target_type, val) ((target_type)((ptrdiff_t)val)) argument 247 #define LWIP_ALIGNMENT_CAST(target_type, val) LWIP_CONST_CAST(target_type, val) argument 254 #define LWIP_PTR_NUMERIC_CAST(target_type, val) LWIP_CONST_CAST(target_type, val) argument 259 #define LWIP_PACKED_CAST(target_type, val) LWIP_CONST_CAST(target_type, val) argument
|
| /components/drivers/i2c/ |
| A D | dev_i2c_bit_ops.c | 21 #define SET_SDA(ops, val) ops->set_sda(ops->data, val) argument 22 #define SET_SCL(ops, val) ops->set_scl(ops->data, val) argument 246 rt_int32_t val; in i2c_recv_bytes() local 254 val = i2c_readb(bus); in i2c_recv_bytes() 255 if (val >= 0) in i2c_recv_bytes() 257 *ptr = val; in i2c_recv_bytes() 269 val, (flags & RT_I2C_NO_READ_ACK) ? in i2c_recv_bytes() 274 val = i2c_send_ack_or_nack(bus, count); in i2c_recv_bytes() 275 if (val < 0) in i2c_recv_bytes() 276 return val; in i2c_recv_bytes()
|