Home
last modified time | relevance | path

Searched defs:bit (Results 1 – 25 of 102) sorted by relevance

12345

/Zephyr-latest/include/zephyr/arch/common/
Dsys_bitops.h24 static ALWAYS_INLINE void sys_set_bit(mem_addr_t addr, unsigned int bit) in sys_set_bit()
31 static ALWAYS_INLINE void sys_clear_bit(mem_addr_t addr, unsigned int bit) in sys_clear_bit()
38 static ALWAYS_INLINE int sys_test_bit(mem_addr_t addr, unsigned int bit) in sys_test_bit()
60 void sys_bitfield_set_bit(mem_addr_t addr, unsigned int bit) in sys_bitfield_set_bit()
69 void sys_bitfield_clear_bit(mem_addr_t addr, unsigned int bit) in sys_bitfield_clear_bit()
75 int sys_bitfield_test_bit(mem_addr_t addr, unsigned int bit) in sys_bitfield_test_bit()
81 int sys_test_and_set_bit(mem_addr_t addr, unsigned int bit) in sys_test_and_set_bit()
92 int sys_test_and_clear_bit(mem_addr_t addr, unsigned int bit) in sys_test_and_clear_bit()
103 int sys_bitfield_test_and_set_bit(mem_addr_t addr, unsigned int bit) in sys_bitfield_test_and_set_bit()
114 int sys_bitfield_test_and_clear_bit(mem_addr_t addr, unsigned int bit) in sys_bitfield_test_and_clear_bit()
/Zephyr-latest/include/zephyr/arch/x86/ia32/
Dsys_io.h19 void sys_io_set_bit(io_port_t port, unsigned int bit) in sys_io_set_bit()
31 void sys_io_clear_bit(io_port_t port, unsigned int bit) in sys_io_clear_bit()
43 int sys_io_test_bit(io_port_t port, unsigned int bit) in sys_io_test_bit()
56 int sys_io_test_and_set_bit(io_port_t port, unsigned int bit) in sys_io_test_and_set_bit()
67 int sys_io_test_and_clear_bit(io_port_t port, unsigned int bit) in sys_io_test_and_clear_bit()
/Zephyr-latest/include/zephyr/sys/
Datomic.h77 #define ATOMIC_MASK(bit) BIT((unsigned long)(bit) & (ATOMIC_BITS - 1U)) argument
78 #define ATOMIC_ELEM(addr, bit) ((addr) + ((bit) / ATOMIC_BITS)) argument
127 static inline bool atomic_test_bit(const atomic_t *target, int bit) in atomic_test_bit()
147 static inline bool atomic_test_and_clear_bit(atomic_t *target, int bit) in atomic_test_and_clear_bit()
170 static inline bool atomic_test_and_set_bit(atomic_t *target, int bit) in atomic_test_and_set_bit()
191 static inline void atomic_clear_bit(atomic_t *target, int bit) in atomic_clear_bit()
209 static inline void atomic_set_bit(atomic_t *target, int bit) in atomic_set_bit()
228 static inline void atomic_set_bit_to(atomic_t *target, int bit, bool val) in atomic_set_bit_to()
/Zephyr-latest/tests/kernel/common/src/
Dbitfield.c14 #define BIT_INDEX(bit) ((3 - ((bit >> 3) & 0x3)) + 4*(bit >> 5)) argument
16 #define BIT_INDEX(bit) (bit >> 3) argument
18 #define BIT_VAL(bit) (1 << (bit & 0x7)) argument
Dbitarray.c17 #define BIT_INDEX(bit) ((3 - ((bit >> 3) & 0x3)) + 4*(bit >> 5)) argument
19 #define BIT_INDEX(bit) (bit >> 3) argument
21 #define BIT_VAL(bit) (1 << (bit & 0x7)) argument
132 size_t bit, bundle_idx, bit_idx_in_bundle; in ZTEST() local
390 size_t bit; in alloc_and_free_loop() local
1022 unsigned int bit; in ZTEST() local
/Zephyr-latest/lib/posix/options/
Dspinlock.c48 size_t bit; in get_posix_spinlock() local
77 size_t bit; in pthread_spin_init() local
98 size_t bit; in pthread_spin_destroy() local
116 size_t bit; in pthread_spin_lock() local
133 size_t bit; in pthread_spin_trylock() local
148 size_t bit; in pthread_spin_unlock() local
Dkey.c47 size_t bit = to_posix_key_idx(key); in get_posix_key() local
72 size_t bit; in to_posix_key() local
126 size_t bit; in pthread_key_delete() local
Dmutex.c57 size_t bit = to_posix_mutex_idx(mu); in get_posix_mutex() local
83 size_t bit; in to_posix_mutex() local
111 size_t bit = -1; in acquire_mutex() local
224 size_t bit; in pthread_mutex_init() local
293 size_t bit; in pthread_mutex_destroy() local
Dbarrier.c46 size_t bit = to_posix_barrier_idx(b); in get_posix_barrier() local
110 size_t bit; in pthread_barrier_init() local
133 size_t bit; in pthread_barrier_destroy() local
Dcond.c44 size_t bit = to_posix_cond_idx(cond); in get_posix_cond() local
69 size_t bit; in to_posix_cond() local
193 size_t bit; in pthread_cond_destroy() local
/Zephyr-latest/drivers/clock_control/
Dbeetle_clock_control.c33 uint8_t bit, enum arm_soc_state_t state) in beetle_set_clock()
56 static inline void beetle_ahb_set_clock_on(uint8_t bit, in beetle_ahb_set_clock_on()
63 static inline void beetle_ahb_set_clock_off(uint8_t bit, in beetle_ahb_set_clock_off()
70 static inline void beetle_apb_set_clock_on(uint8_t bit, in beetle_apb_set_clock_on()
77 static inline void beetle_apb_set_clock_off(uint8_t bit, in beetle_apb_set_clock_off()
90 uint8_t bit = 0U; in beetle_clock_control_on() local
114 uint8_t bit = 0U; in beetle_clock_control_off() local
/Zephyr-latest/include/zephyr/arch/arc/v2/
Dsys_io.h62 void sys_io_set_bit(io_port_t port, unsigned int bit) in sys_io_set_bit()
76 void sys_io_clear_bit(io_port_t port, unsigned int bit) in sys_io_clear_bit()
90 int sys_io_test_bit(io_port_t port, unsigned int bit) in sys_io_test_bit()
108 int sys_io_test_and_set_bit(io_port_t port, unsigned int bit) in sys_io_test_and_set_bit()
119 int sys_io_test_and_clear_bit(io_port_t port, unsigned int bit) in sys_io_test_and_clear_bit()
/Zephyr-latest/soc/nuvoton/npcx/common/
Dsoc_pins.h26 uint8_t bit:3; member
39 uint8_t bit:3; /** Related register bit for low-voltage conf. */ member
/Zephyr-latest/tests/bluetooth/tester/src/btp/
Dbttester.h15 static inline void tester_set_bit(uint8_t *addr, unsigned int bit) in tester_set_bit()
22 static inline uint8_t tester_test_bit(const uint8_t *addr, unsigned int bit) in tester_test_bit()
/Zephyr-latest/include/zephyr/dt-bindings/clock/
Dgd32-clocks-common.h20 #define GD32_CLOCK_CONFIG(reg, bit) \ argument
/Zephyr-latest/include/zephyr/dt-bindings/reset/
Dgd32-common.h20 #define GD32_RESET_CONFIG(reg, bit) \ argument
Dnxp_syscon_reset_common.h10 #define NXP_SYSCON_RESET(offset, bit) ((offset << 16) | bit) argument
Dstm32-common.h20 #define STM32_RESET(bus, bit) (((STM32_RESET_BUS_##bus) << 5U) | (bit)) argument
/Zephyr-latest/drivers/pinctrl/renesas/rcar/
Dpfc_rcar.c79 uint8_t bit = pin % 32; in pfc_rcar_set_gpsr() local
158 uint8_t *bit) in pfc_rcar_get_bias_reg()
179 uint8_t bit; in pfc_rcar_set_bias() local
252 static const struct pfc_pocctrl_reg *pfc_rcar_get_pocctrl_reg(uint16_t pin, uint8_t *bit) in pfc_rcar_get_pocctrl_reg()
277 uint8_t bit; in pfc_rcar_set_voltage() local
/Zephyr-latest/include/zephyr/arch/x86/
Darch.h155 static ALWAYS_INLINE void sys_set_bit(mem_addr_t addr, unsigned int bit) in sys_set_bit()
163 static ALWAYS_INLINE void sys_clear_bit(mem_addr_t addr, unsigned int bit) in sys_clear_bit()
170 static ALWAYS_INLINE int sys_test_bit(mem_addr_t addr, unsigned int bit) in sys_test_bit()
183 unsigned int bit) in sys_test_and_set_bit()
196 unsigned int bit) in sys_test_and_clear_bit()
/Zephyr-latest/subsys/usb/device_next/
Dusbd_endpoint.h58 unsigned int bit; in usbd_ep_bm_is_set() local
/Zephyr-latest/drivers/gpio/
Dgpio_max149x6.h18 #define PRINT_ERR(bit) \ argument
21 #define PRINT_INF(bit) LOG_INFO("[%s] %d\n", #bit, bit) argument
/Zephyr-latest/subsys/net/lib/shell/
Dhttp.c16 #define IS_BIT_SET(val, bit) (((val >> bit) & (0x1)) != 0) argument
/Zephyr-latest/drivers/spi/
Dspi_dw.h79 static void aux_reg_set_bit(uint8_t bit, mm_reg_t addr, uint32_t off) in aux_reg_set_bit()
84 static void aux_reg_clear_bit(uint8_t bit, mm_reg_t addr, uint32_t off) in aux_reg_clear_bit()
89 static int aux_reg_test_bit(uint8_t bit, mm_reg_t addr, uint32_t off) in aux_reg_test_bit()
124 static void reg_set_bit(uint8_t bit, mm_reg_t addr, uint32_t off) in reg_set_bit()
129 static void reg_clear_bit(uint8_t bit, mm_reg_t addr, uint32_t off) in reg_clear_bit()
134 static int reg_test_bit(uint8_t bit, mm_reg_t addr, uint32_t off) in reg_test_bit()
/Zephyr-latest/drivers/dp/
Dswdp_bitbang.c154 const uint32_t bit) in pin_swdio_out()
228 #define SW_WRITE_BIT(dev, bit, delay) \ argument
237 #define SW_READ_BIT(dev, bit, delay) \ argument
286 uint32_t bit; in sw_input_sequence() local
327 uint32_t bit; in sw_transfer() local

12345