/openbmc/linux/arch/arc/include/asm/ |
H A D | disasm.h | 31 #define IS_BIT(word, n) ((word) & (1<<n)) argument 32 #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s))))) argument 34 #define MAJOR_OPCODE(word) (BITS((word), 27, 31)) argument 35 #define MINOR_OPCODE(word) (BITS((word), 16, 21)) argument 36 #define FIELD_A(word) (BITS((word), 0, 5)) argument 37 #define FIELD_B(word) ((BITS((word), 12, 14)<<3) | \ argument 39 #define FIELD_C(word) (BITS((word), 6, 11)) argument 40 #define FIELD_u6(word) FIELDC(word) argument 41 #define FIELD_s12(word) sign_extend(((BITS((word), 0, 5) << 6) | \ argument 46 #define FIELD_s9(word) sign_extend(((BITS(word, 15, 15) << 8) | \ argument [all …]
|
/openbmc/linux/kernel/sched/ |
H A D | wait_bit.c | 12 wait_queue_head_t *bit_waitqueue(void *word, int bit) in bit_waitqueue() 58 int __sched out_of_line_wait_on_bit(void *word, int bit, in out_of_line_wait_on_bit() 69 void *word, int bit, wait_bit_action_f *action, in out_of_line_wait_on_bit_timeout() 111 int __sched out_of_line_wait_on_bit_lock(void *word, int bit, in out_of_line_wait_on_bit_lock() 121 void __wake_up_bit(struct wait_queue_head *wq_head, void *word, int bit) in __wake_up_bit() 147 void wake_up_bit(void *word, int bit) in wake_up_bit() 197 __sched int bit_wait(struct wait_bit_key *word, int mode) in bit_wait() 207 __sched int bit_wait_io(struct wait_bit_key *word, int mode) in bit_wait_io() 217 __sched int bit_wait_timeout(struct wait_bit_key *word, int mode) in bit_wait_timeout() 231 __sched int bit_wait_io_timeout(struct wait_bit_key *word, int mode) in bit_wait_io_timeout()
|
/openbmc/linux/include/linux/ |
H A D | wait_bit.h | 21 #define __WAIT_BIT_KEY_INITIALIZER(word, bit) \ argument 38 #define DEFINE_WAIT_BIT(name, word, bit) \ argument 71 wait_on_bit(unsigned long *word, int bit, unsigned mode) in wait_on_bit() 96 wait_on_bit_io(unsigned long *word, int bit, unsigned mode) in wait_on_bit_io() 122 wait_on_bit_timeout(unsigned long *word, int bit, unsigned mode, in wait_on_bit_timeout() 150 wait_on_bit_action(unsigned long *word, int bit, wait_bit_action_f *action, in wait_on_bit_action() 179 wait_on_bit_lock(unsigned long *word, int bit, unsigned mode) in wait_on_bit_lock() 203 wait_on_bit_lock_io(unsigned long *word, int bit, unsigned mode) in wait_on_bit_lock_io() 229 wait_on_bit_lock_action(unsigned long *word, int bit, wait_bit_action_f *action, in wait_on_bit_lock_action() 330 static inline void clear_and_wake_up_bit(int bit, void *word) in clear_and_wake_up_bit()
|
H A D | bitops.h | 105 static inline __u64 rol64(__u64 word, unsigned int shift) in rol64() 115 static inline __u64 ror64(__u64 word, unsigned int shift) in ror64() 125 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() 135 static inline __u32 ror32(__u32 word, unsigned int shift) in ror32() 145 static inline __u16 rol16(__u16 word, unsigned int shift) in rol16() 155 static inline __u16 ror16(__u16 word, unsigned int shift) in ror16() 165 static inline __u8 rol8(__u8 word, unsigned int shift) in rol8() 175 static inline __u8 ror8(__u8 word, unsigned int shift) in ror8() 240 static inline unsigned long __ffs64(u64 word) in __ffs64() 256 static inline unsigned long fns(unsigned long word, unsigned int n) in fns()
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-bcm7038-l1.c | 80 unsigned int word) in reg_status() 86 unsigned int word) in reg_mask_status() 92 unsigned int word) in reg_mask_set() 98 unsigned int word) in reg_mask_clr() 154 u32 word = d->hwirq / IRQS_PER_WORD; in __bcm7038_l1_unmask() local 165 u32 word = d->hwirq / IRQS_PER_WORD; in __bcm7038_l1_mask() local 201 u32 word = hw / IRQS_PER_WORD; in bcm7038_l1_set_affinity() local 298 int boot_cpu, word; in bcm7038_l1_suspend() local 324 int boot_cpu, word; in bcm7038_l1_resume() local 351 u32 word = d->hwirq / IRQS_PER_WORD; in bcm7038_l1_set_wake() local [all …]
|
H A D | irq-bcm6345-l1.c | 91 unsigned int word) in reg_enable() 101 unsigned int word) in reg_status() 145 u32 word = d->hwirq / IRQS_PER_WORD; in __bcm6345_l1_unmask() local 157 u32 word = d->hwirq / IRQS_PER_WORD; in __bcm6345_l1_mask() local 191 u32 word = d->hwirq / IRQS_PER_WORD; in bcm6345_l1_set_affinity() local
|
/openbmc/linux/drivers/xen/events/ |
H A D | events_fifo.c | 196 event_word_t *word = event_word_from_port(port); in evtchn_fifo_clear_pending() local 202 event_word_t *word = event_word_from_port(port); in evtchn_fifo_set_pending() local 208 event_word_t *word = event_word_from_port(port); in evtchn_fifo_is_pending() local 214 event_word_t *word = event_word_from_port(port); in evtchn_fifo_mask() local 220 event_word_t *word = event_word_from_port(port); in evtchn_fifo_is_masked() local 227 static bool clear_masked_cond(volatile event_word_t *word) in clear_masked_cond() 250 event_word_t *word = event_word_from_port(port); in evtchn_fifo_unmask() local 260 static uint32_t clear_linked(volatile event_word_t *word) in clear_linked() 282 event_word_t *word; in consume_one_event() local
|
/openbmc/u-boot/drivers/misc/ |
H A D | stm32mp_fuse.c | 18 int fuse_read(u32 bank, u32 word, u32 *val) in fuse_read() 46 int fuse_prog(u32 bank, u32 word, u32 val) in fuse_prog() 74 int fuse_sense(u32 bank, u32 word, u32 *val) in fuse_sense() 101 int fuse_override(u32 bank, u32 word, u32 val) in fuse_override()
|
H A D | fsl_iim.c | 92 u32 word[0x100]; member 100 static int prepare_access(struct fsl_iim **regs, u32 bank, u32 word, int assert, in prepare_access() 128 static int prepare_read(struct fsl_iim **regs, u32 bank, u32 word, u32 *val, in prepare_read() 142 int fuse_read(u32 bank, u32 word, u32 *val) in fuse_read() 163 static void direct_access(struct fsl_iim *regs, u32 bank, u32 word, u32 bit, in direct_access() 176 int fuse_sense(u32 bank, u32 word, u32 *val) in fuse_sense() 202 static int prog_bit(struct fsl_iim *regs, u32 bank, u32 word, u32 bit) in prog_bit() 228 static int prepare_write(struct fsl_iim **regs, u32 bank, u32 word, u32 val, in prepare_write() 234 int fuse_prog(u32 bank, u32 word, u32 val) in fuse_prog() 258 int fuse_override(u32 bank, u32 word, u32 val) in fuse_override()
|
H A D | mxs_ocotp.c | 273 static int mxs_ocotp_valid(u32 bank, u32 word) in mxs_ocotp_valid() 285 int fuse_read(u32 bank, u32 word, u32 *val) in fuse_read() 296 int fuse_prog(u32 bank, u32 word, u32 val) in fuse_prog() 307 int fuse_sense(u32 bank, u32 word, u32 *val) in fuse_sense() 313 int fuse_override(u32 bank, u32 word, u32 val) in fuse_override()
|
H A D | mxc_ocotp.c | 168 static int prepare_access(struct ocotp_regs **regs, u32 bank, u32 word, in prepare_access() 215 static int prepare_read(struct ocotp_regs **regs, u32 bank, u32 word, u32 *val, in prepare_read() 221 int fuse_read(u32 bank, u32 word, u32 *val) in fuse_read() 295 static void setup_direct_access(struct ocotp_regs *regs, u32 bank, u32 word, in setup_direct_access() 319 int fuse_sense(u32 bank, u32 word, u32 *val) in fuse_sense() 348 static int prepare_write(struct ocotp_regs **regs, u32 bank, u32 word, in prepare_write() 371 int fuse_prog(u32 bank, u32 word, u32 val) in fuse_prog() 426 int fuse_override(u32 bank, u32 word, u32 val) in fuse_override()
|
/openbmc/qemu/include/hw/net/ |
H A D | npcm_gmac.h | 46 #define RX_DESC_RDES0_FRAME_LEN_MASK(word) extract32(word, 16, 14) argument 90 #define RX_DESC_RDES1_BFFR2_SZ_MASK(word) extract32(word, \ argument 93 #define RX_DESC_RDES1_BFFR1_SZ_MASK(word) extract32(word, 0, 11) argument 130 #define TX_DESC_TDES0_COLL_CNT_MASK(word) extract32(word, 3, 4) argument 145 #define TX_DESC_TDES1_CHKSM_INS_CTRL_MASK(word) extract32(word, 27, 2) argument 153 #define TX_DESC_TDES1_BFFR2_SZ_MASK(word) extract32(word, 11, 11) argument 155 #define TX_DESC_TDES1_BFFR1_SZ_MASK(word) extract32(word, 0, 11) argument 174 #define NPCM_DMA_STATUS_RO_MASK(word) (word & 0xfffe0000) argument 176 #define NPCM_DMA_STATUS_W1C_MASK(word) (word & 0x1e7ff) argument 311 #define NPCM_DMA_HOST_RX_DESC_MASK(word) ((uint32_t) (word) & ~3u) argument [all …]
|
H A D | npcm7xx_emc.h | 153 #define REG_DMARFC_RXMS(word) extract32((word), 0, 16) argument 212 #define TX_DESC_PKT_LEN(word) extract32((word), 0, 16) argument 215 #define TX_DESC_TXBSA(word) ((uint32_t) (word) & ~3u) argument 218 #define TX_DESC_NTXDSA(word) ((uint32_t) (word) & ~3u) argument 238 #define RX_DESC_PKT_LEN(word) extract32((word), 0, 16) argument 241 #define RX_DESC_RXBSA(word) ((uint32_t) (word) & ~3u) argument 244 #define RX_DESC_NRXDSA(word) ((uint32_t) (word) & ~3u) argument
|
/openbmc/linux/drivers/spi/ |
H A D | spi-bitbang-txrx.h | 51 u32 word, u8 bits) in bitbang_txrx_be_cpha0() 83 u32 word, u8 bits) in bitbang_txrx_be_cpha1() 115 u32 word, u8 bits) in bitbang_txrx_le_cpha0() 148 u32 word, u8 bits) in bitbang_txrx_le_cpha1()
|
H A D | spi-gpio.c | 135 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_txrx_word_mode0() 144 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_txrx_word_mode1() 153 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_txrx_word_mode2() 162 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_txrx_word_mode3() 181 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_spec_txrx_word_mode0() 191 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_spec_txrx_word_mode1() 201 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_spec_txrx_word_mode2() 211 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_spec_txrx_word_mode3()
|
H A D | spi-bitbang.c | 58 u32 word, u8 bits, in bitbang_txrx_8() 71 u8 word = 0; in bitbang_txrx_8() local 87 u32 word, u8 bits, in bitbang_txrx_16() 100 u16 word = 0; in bitbang_txrx_16() local 116 u32 word, u8 bits, in bitbang_txrx_32() 129 u32 word = 0; in bitbang_txrx_32() local
|
H A D | spi-sh-sci.c | 79 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode0() 86 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode1() 93 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode2() 100 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode3()
|
/openbmc/linux/arch/alpha/lib/ |
H A D | csum_partial_copy.c | 91 unsigned long word; in csum_partial_cfu_aligned() local 105 unsigned long word, tmp; in csum_partial_cfu_aligned() local 130 unsigned long word, carry; in csum_partial_cfu_dest_aligned() local 186 unsigned long word; in csum_partial_cfu_src_aligned() local 252 unsigned long second, word; in csum_partial_cfu_unaligned() local 274 unsigned long second, word; in csum_partial_cfu_unaligned() local 296 unsigned long second, word; in csum_partial_cfu_unaligned() local
|
/openbmc/linux/arch/powerpc/sysdev/ |
H A D | cpm2_pic.c | 79 int bit, word; in cpm2_mask_irq() local 91 int bit, word; in cpm2_unmask_irq() local 103 int bit, word; in cpm2_ack() local 114 int bit, word; in cpm2_end_irq() local
|
/openbmc/u-boot/arch/arc/include/asm/ |
H A D | arc-bcr.h | 26 unsigned int word; member 37 unsigned int word; member 48 unsigned int word; member 59 unsigned int word; member 73 unsigned int word; member
|
/openbmc/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-spinlock.h | 161 static inline void cvmx_spinlock_bit_lock(uint32_t *word) in cvmx_spinlock_bit_lock() 193 static inline unsigned int cvmx_spinlock_bit_trylock(uint32_t *word) in cvmx_spinlock_bit_trylock() 225 static inline void cvmx_spinlock_bit_unlock(uint32_t *word) in cvmx_spinlock_bit_unlock()
|
/openbmc/qemu/disas/ |
H A D | hppa.c | 1820 extract_3 (unsigned word) in extract_3() 1826 extract_5_load (unsigned word) in extract_5_load() 1834 extract_5_store (unsigned word) in extract_5_store() 1842 extract_5r_store (unsigned word) in extract_5r_store() 1850 extract_5R_store (unsigned word) in extract_5R_store() 1858 extract_10U_store (unsigned word) in extract_10U_store() 1866 extract_5Q_store (unsigned word) in extract_5Q_store() 1874 extract_11 (unsigned word) in extract_11() 1882 extract_14 (unsigned word) in extract_14() 1890 extract_16 (unsigned word) in extract_16() [all …]
|
/openbmc/linux/arch/sh/include/asm/ |
H A D | bitops.h | 27 static inline unsigned long ffz(unsigned long word) in ffz() 47 static inline unsigned long __ffs(unsigned long word) in __ffs()
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | bitops.h | 262 static inline unsigned char __flogr(unsigned long word) in __flogr() 311 static inline unsigned long __ffs(unsigned long word) in __ffs() 323 static inline int ffs(int word) in ffs() 337 static inline unsigned long __fls(unsigned long word) in __fls() 353 static inline int fls64(unsigned long word) in fls64() 367 static inline int fls(unsigned int word) in fls()
|
/openbmc/qemu/include/qemu/ |
H A D | bitops.h | 398 static inline uint8_t rol8(uint8_t word, unsigned int shift) in rol8() 408 static inline uint8_t ror8(uint8_t word, unsigned int shift) in ror8() 418 static inline uint16_t rol16(uint16_t word, unsigned int shift) in rol16() 428 static inline uint16_t ror16(uint16_t word, unsigned int shift) in ror16() 438 static inline uint32_t rol32(uint32_t word, unsigned int shift) in rol32() 448 static inline uint32_t ror32(uint32_t word, unsigned int shift) in ror32() 458 static inline uint64_t rol64(uint64_t word, unsigned int shift) in rol64() 468 static inline uint64_t ror64(uint64_t word, unsigned int shift) in ror64()
|