/lk-master/top/include/lk/ |
A D | bits.h | 20 #define BIT(x, bit) ((x) & (1UL << (bit))) argument 21 #define BIT_SHIFT(x, bit) (((x) >> (bit)) & 1) argument 24 #define BIT_SET(x, bit) (((x) & (1UL << (bit))) ? 1 : 0) argument 37 static inline int bitmap_set(unsigned long *bitmap, int bit) { in bitmap_set() argument 38 unsigned long mask = 1UL << BITMAP_BIT_IN_INT(bit); in bitmap_set() 43 unsigned long mask = 1UL << BITMAP_BIT_IN_INT(bit); in bitmap_clear() 49 return BIT_SET(bitmap[BITMAP_WORD(bit)], BITMAP_BIT_IN_WORD(bit)); in bitmap_test() 59 int bit; in bitmap_ffz() local 64 bit = i * BITMAP_BITS_PER_WORD + _ffz(bitmap[i]); in bitmap_ffz() 65 if (bit < numbits) in bitmap_ffz() [all …]
|
/lk-master/external/platform/nrfx/drivers/include/ |
A D | nrf_bitmask.h | 66 uint32_t byte_idx = BITMASK_BYTE_GET(bit); in nrf_bitmask_bit_is_set() 67 bit = BITMASK_RELBIT_GET(bit); in nrf_bitmask_bit_is_set() 68 return ((1U << bit) & p_mask8[byte_idx]) != 0U; in nrf_bitmask_bit_is_set() 77 __STATIC_INLINE void nrf_bitmask_bit_set(uint32_t bit, void * p_mask) in nrf_bitmask_bit_set() argument 80 uint32_t byte_idx = BITMASK_BYTE_GET(bit); in nrf_bitmask_bit_set() 81 bit = BITMASK_RELBIT_GET(bit); in nrf_bitmask_bit_set() 82 p_mask8[byte_idx] |= (1 << bit); in nrf_bitmask_bit_set() 91 __STATIC_INLINE void nrf_bitmask_bit_clear(uint32_t bit, void * p_mask) in nrf_bitmask_bit_clear() argument 94 uint32_t byte_idx = BITMASK_BYTE_GET(bit); in nrf_bitmask_bit_clear() 95 bit = BITMASK_RELBIT_GET(bit); in nrf_bitmask_bit_clear() [all …]
|
/lk-master/platform/zynq/ |
A D | gpio.c | 50 active ^= (1 << bit); in gpio_int_handler() 65 uint16_t bit = extract_bit(gpio); in zynq_unmask_gpio_interrupt() local 67 RMWREG32(GPIO_INT_EN(bank), bit, 1, 1); in zynq_unmask_gpio_interrupt() 73 uint16_t bit = extract_bit(gpio); in zynq_mask_gpio_interrupt() local 75 RMWREG32(GPIO_INT_DIS(bank), bit, 1, 1); in zynq_mask_gpio_interrupt() 149 uint16_t bit = extract_bit(gpio); in gpio_config() local 214 uint16_t bit = extract_bit(gpio); in gpio_set() local 217 if (bit < 16) { in gpio_set() 221 bit -= 16; in gpio_set() 224 *REG32(reg) = (~(1 << bit) << 16) | (!!on << bit); in gpio_set() [all …]
|
/lk-master/platform/pc/ |
A D | interrupts.c | 74 uint8_t bit = 1 << vector; in enable() local 76 if (enable && (irqMask[0] & bit)) { in enable() 78 irqMask[0] &= ~bit; in enable() 83 irqMask[0] |= bit; in enable() 90 uint8_t bit = 1 << vector; in enable() local 92 if (enable && (irqMask[1] & bit)) { in enable() 94 irqMask[1] &= ~bit; in enable() 99 irqMask[1] |= bit; in enable() 104 bit = 1 << (INT_PIC2 - PIC1_BASE); in enable() 108 irqMask[0] &= ~bit; in enable() [all …]
|
/lk-master/platform/qemu-mips/ |
A D | intc.c | 93 uint8_t bit = 1 << vector; in enable() local 95 if (enable && (irqMask[0] & bit)) { in enable() 97 irqMask[0] &= ~bit; in enable() 102 irqMask[0] |= bit; in enable() 109 uint8_t bit = 1 << vector; in enable() local 111 if (enable && (irqMask[1] & bit)) { in enable() 113 irqMask[1] &= ~bit; in enable() 118 irqMask[1] |= bit; in enable() 123 bit = 1 << INT_PIC2; in enable() 127 irqMask[0] &= ~bit; in enable() [all …]
|
/lk-master/external/platform/pico/rp2_common/hardware_claim/ |
A D | claim.c | 44 for(uint bit=bit_lsb; bit <= bit_msb; bit++) { in hw_claim_unused_from_range() local 45 if (!(bits[bit >> 3u] & (1u << (bit & 7u)))) { in hw_claim_unused_from_range() 46 bits[bit >> 3u] |= (1u << (bit & 7u)); in hw_claim_unused_from_range() 47 found_bit = bit; in hw_claim_unused_from_range()
|
/lk-master/external/platform/pico/rp2_common/hardware_interp/ |
A D | interp.c | 21 uint bit = (interp_index(interp) << 1u) | lane; in interp_claim_lane() local 22 hw_claim_or_assert((uint8_t *) &_claimed, bit, "Lane is already claimed"); in interp_claim_lane() 33 uint bit = (interp_index(interp) << 1u) | lane; in interp_unclaim_lane() local 34 hw_claim_clear((uint8_t *) &_claimed, bit); in interp_unclaim_lane()
|
/lk-master/external/platform/lpc15xx/lpcopen/lpc_chip_15xx/src/ |
A D | gpio_15xx.c | 71 void Chip_GPIO_WriteDirBit(LPC_GPIO_T *pGPIO, uint32_t port, uint8_t bit, bool setting) in Chip_GPIO_WriteDirBit() argument 74 pGPIO->DIR[port] |= 1UL << bit; in Chip_GPIO_WriteDirBit() 77 pGPIO->DIR[port] &= ~(1UL << bit); in Chip_GPIO_WriteDirBit()
|
/lk-master/external/platform/nrfx/drivers/ |
A D | nrfx_common.h | 293 NRF_STATIC_INLINE uint32_t nrfx_bitpos_to_event(uint32_t bit); 329 NRF_STATIC_INLINE uint32_t nrfx_bitpos_to_event(uint32_t bit) in nrfx_bitpos_to_event() argument 332 return event_reg_offset + (bit * sizeof(uint32_t)); in nrfx_bitpos_to_event()
|
/lk-master/app/mdebug/ |
A D | jtag.c | 106 unsigned bit = 0; in jtag_io() local 108 n |= (jtag_tick(tms & 1, tdi & 1) << bit); in jtag_io() 109 bit++; in jtag_io()
|
/lk-master/platform/lpc43xx/ |
A D | udc.c | 76 uint32_t bit; member 106 ept->bit = EPT_TX(ept->num); in _udc_endpoint_alloc() 108 ept->bit = EPT_RX(ept->num); in _udc_endpoint_alloc() 120 num, in ? "in":"out", ept, ept->head, max_pkt, ept->bit); in _udc_endpoint_alloc() 135 unsigned bit = in ? EPT_TX(n) : EPT_RX(n); in udc_endpoint_alloc() local 136 if (USB.ept_alloc_table & bit) { in udc_endpoint_alloc() 140 USB.ept_alloc_table |= bit; in udc_endpoint_alloc() 156 writel(ept->bit, usb->base + USB_ENDPTFLUSH); in endpoint_flush() 250 writel(ept->bit, ept->usb->base + USB_ENDPTPRIME); in udc_request_queue() 275 writel(ept->bit, ept->usb->base + USB_ENDPTPRIME); in handle_ept_complete() [all …]
|
/lk-master/ |
A D | README.md | 10 - Portable to many 32 and 64 bit architectures 21 - RISC-V 32 and 64bit bit in machine and supervisor mode
|
/lk-master/external/platform/lpc15xx/lpcopen/periph_crc/example/ |
A D | readme.dox | 35 * The CRC example demonstrates using the CRC engine for 8-bit, 16-bit, and 36 * 32-bit CRC computation. The CRC engine will continuously run via CRC
|
/lk-master/external/platform/lpc15xx/lpcopen/periph_i2cs_interrupt/example/ |
A D | readme.dox | 44 * - <START> <ADDR><W> Write 16-bit address <STOP><br> 45 …* - <START> <ADDR><W> Write 16-bit address <REPEAT START><R> READ READ ... READ <STOP> (unbound re… 46 * - <START> <ADDR><W> Write 16-bit address WRITE WRITE ... WRITE <STOP> (unbound write)<br> 53 * 16-bit address will use the last incremented address.<br>
|
/lk-master/external/platform/lpc15xx/lpcopen/periph_i2c_rom_polling/example/ |
A D | readme.dox | 38 * This demo supports both 7-bit and 10-bit addressing, but only 7-bit addressing is
|
/lk-master/external/platform/lpc15xx/lpcopen/lpc_chip_15xx/inc/ |
A D | gpio_15xx.h | 137 void Chip_GPIO_WriteDirBit(LPC_GPIO_T *pGPIO, uint32_t port, uint8_t bit, bool setting); 181 STATIC INLINE bool Chip_GPIO_ReadDirBit(LPC_GPIO_T *pGPIO, uint32_t port, uint8_t bit) in Chip_GPIO_ReadDirBit() argument 183 return (bool) (((pGPIO->DIR[port]) >> bit) & 1); in Chip_GPIO_ReadDirBit()
|
/lk-master/external/platform/lpc15xx/lpcopen/periph_i2c_rom_interrupt/example/ |
A D | readme.dox | 38 * This demo supports both 7-bit and 10-bit addressing, but only 7-bit addressing is
|
/lk-master/external/platform/lpc15xx/lpcopen/periph_i2c_rom_interrupt_slave/example/ |
A D | readme.dox | 38 * This demo supports both 7-bit and 10-bit addressing, but only 7-bit addressing is
|
/lk-master/external/platform/lpc15xx/lpcopen/periph_i2c_rom_polling_slave/example/ |
A D | readme.dox | 38 * This demo supports both 7-bit and 10-bit addressing, but only 7-bit addressing is
|
/lk-master/docs/ |
A D | todo.md | 8 + riscv - exception decode can be a negation test (top bit set)
|
/lk-master/arch/riscv/ |
A D | rules.mk | 53 $(error RISCV: sv48 mmu not supported for 32 bit riscv) 67 $(error RISCV: sv39 mmu not supported for 32 bit riscv)
|
/lk-master/external/platform/pico/rp2_common/pico_double/ |
A D | double_v1_rom_shim.S | 200 lsls r4,r4,r7 @ rounding bit + sticky bits 216 lsrs r3,r1,#31 @ get sign bit 240 lsls r4,#1 @ check rounding bit 288 lsls r6,r0,#31 @ save rounding bit 313 asrs r3,r2,#31 @ propagate sign bit 323 lsls r4,r4,r6 @ rounding bit + sticky bits 348 asrs r1,r0,#31 @ propagate sign bit 1058 asrs r2,#5 @ d4 Q52, rounded to Q53 with spare bit in carry 1226 @ convert packed double in r0:r1 to signed/unsigned 32/64-bit integer/fixed-point value in r0:r1 [w…
|
/lk-master/external/platform/pico/rp2_common/pico_float/ |
A D | float_v1_rom_shim.S | 66 @ convert unsigned 64-bit fix to float, rounding; number of r0:r1 bits after point in r2 81 @ convert signed 64-bit fix to float, rounding; number of r0:r1 bits after point in r2 324 lsrs r3,r0,#31 @ sign bit
|
/lk-master/external/lib/lwip/netif/ |
A D | FILES | 29 the source code has been reordered a bit.
|
/lk-master/dev/interrupt/arm_gic/ |
A D | arm_gic.c | 494 static void bitmap_update_locked(u_long *bitmap, u_int bit, bool set) { in bitmap_update_locked() argument 495 u_long mask = 1UL << BITMAP_BIT_IN_WORD(bit); in bitmap_update_locked() 497 bitmap += BITMAP_WORD(bit); in bitmap_update_locked()
|