/linux/arch/hexagon/kernel/ |
H A D | vm_init_segtable.S | 47 .word X,X,X,X 48 .word X,X,X,X 49 .word X,X,X,X 50 .word X,X,X,X 51 .word X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X 52 .word X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X 53 .word X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X 54 .word X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X 55 .word X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X 56 .word X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X [all …]
|
/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 38 (BITS((word), 24, 26))) 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 [all …]
|
/linux/arch/sh/drivers/pci/ |
H A D | pci-sh7751.c | 22 unsigned long word; in __area_sdram_check() local 24 word = __raw_readl(SH7751_BCR1); in __area_sdram_check() 26 if (((word >> area) & 1) == 0) { in __area_sdram_check() 28 area, word); in __area_sdram_check() 31 pci_write_reg(chan, word, SH4_PCIBCR1); in __area_sdram_check() 33 word = __raw_readw(SH7751_BCR2); in __area_sdram_check() 35 if (((word >> (area << 1)) & 0x3) != 0x3) { in __area_sdram_check() 37 area, word); in __area_sdram_check() 40 pci_write_reg(chan, word, SH4_PCIBCR2); in __area_sdram_check() 79 u32 word, reg; in sh7751_pci_init() local [all …]
|
/linux/drivers/spi/ |
H A D | spi-bitbang-txrx.h | 51 u32 word, u8 bits) in bitbang_txrx_be_cpha0() argument 55 u32 oldbit = (!(word & (1<<(bits-1)))) << 31; in bitbang_txrx_be_cpha0() 57 for (word <<= (32 - bits); likely(bits); bits--) { in bitbang_txrx_be_cpha0() 61 if ((word & (1 << 31)) != oldbit) { in bitbang_txrx_be_cpha0() 62 setmosi(spi, word & (1 << 31)); in bitbang_txrx_be_cpha0() 63 oldbit = word & (1 << 31); in bitbang_txrx_be_cpha0() 72 word <<= 1; in bitbang_txrx_be_cpha0() 74 word |= getmiso(spi); in bitbang_txrx_be_cpha0() 77 return word; in bitbang_txrx_be_cpha0() 83 u32 word, u8 bits) in bitbang_txrx_be_cpha1() argument [all …]
|
/linux/arch/alpha/lib/ |
H A D | csum_partial_copy.c | 91 unsigned long word; in csum_partial_cfu_aligned() local 92 if (__get_word(ldq, word, src)) in csum_partial_cfu_aligned() 96 checksum += word; in csum_partial_cfu_aligned() 98 carry = checksum < word; in csum_partial_cfu_aligned() 99 *dst = word; in csum_partial_cfu_aligned() 105 unsigned long word, tmp; in csum_partial_cfu_aligned() local 106 if (__get_word(ldq, word, src)) in csum_partial_cfu_aligned() 109 mskql(word, len, word); in csum_partial_cfu_aligned() 110 checksum += word; in csum_partial_cfu_aligned() 112 carry = checksum < word; in csum_partial_cfu_aligned() [all …]
|
/linux/arch/sparc/crypto/ |
H A D | opcodes.h | 19 .word (F3F(2,0x36,0x147)|RS1(a)|RS2(b)|RD(c)); 22 .word 0x81b02800; 24 .word 0x81b02820; 26 .word 0x81b02840; 28 .word 0x81b02860; 31 .word (F3F(2, 0x19, 0)|RS1(a)|RS2(b)|RS3(c)|RD(d)); 33 .word (F3F(2, 0x19, 1)|RS1(a)|RS2(b)|RS3(c)|RD(d)); 35 .word (F3F(2, 0x19, 2)|RS1(a)|RS2(b)|RS3(c)|RD(d)); 37 .word (F3F(2, 0x19, 3)|RS1(a)|RS2(b)|RS3(c)|RD(d)); 39 .word (F3F(2, 0x19, 4)|RS1(a)|RS2(b)|RS3(c)|RD(d)); [all …]
|
/linux/include/linux/ |
H A D | bitops.h | 105 static inline __u64 rol64(__u64 word, unsigned int shift) in rol64() argument 107 return (word << (shift & 63)) | (word >> ((-shift) & 63)); in rol64() 115 static inline __u64 ror64(__u64 word, unsigned int shift) in ror64() argument 117 return (word >> (shift & 63)) | (word << ((-shift) & 63)); in ror64() 125 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() argument 127 return (word << (shift & 31)) | (word >> ((-shift) & 31)); in rol32() 135 static inline __u32 ror32(__u32 word, unsigned int shift) in ror32() argument 137 return (word >> (shift & 31)) | (word << ((-shift) & 31)); in ror32() 145 static inline __u16 rol16(__u16 word, unsigned int shift) in rol16() argument 147 return (word << (shift & 15)) | (word >> ((-shift) & 15)); in rol16() [all …]
|
/linux/drivers/crypto/ccree/ |
H A D | cc_hw_queue_defs.h | 24 #define CC_HWQ_GENMASK(word, field) \ argument 25 CC_GENMASK(CC_DSCRPTR_QUEUE_WORD ## word ## _ ## field) 64 u32 word[HW_DESC_SIZE_WORDS]; member 224 pdesc->word[3] |= FIELD_PREP(WORD3_QUEUE_LAST_IND, 1); in set_queue_last_ind_bit() 240 pdesc->word[0] = lower_32_bits(addr); in set_din_type() 242 pdesc->word[5] |= FIELD_PREP(WORD5_DIN_ADDR_HIGH, upper_32_bits(addr)); in set_din_type() 244 pdesc->word[1] |= FIELD_PREP(WORD1_DIN_DMA_MODE, dma_mode) | in set_din_type() 259 pdesc->word[0] = addr; in set_din_no_dma() 260 pdesc->word[1] |= FIELD_PREP(WORD1_DIN_SIZE, size); in set_din_no_dma() 271 pdesc->word[0] |= CC_CPP_DIN_ADDR; in set_cpp_crypto_key() [all …]
|
/linux/arch/nios2/kernel/ |
H A D | entry.S | 71 .word unhandled_exception /* 0 - Reset */ 72 .word unhandled_exception /* 1 - Processor-only Reset */ 73 .word external_interrupt /* 2 - Interrupt */ 74 .word handle_trap /* 3 - Trap Instruction */ 76 .word instruction_trap /* 4 - Unimplemented instruction */ 77 .word handle_illegal /* 5 - Illegal instruction */ 78 .word handle_unaligned /* 6 - Misaligned data access */ 79 .word handle_unaligned /* 7 - Misaligned destination address */ 81 .word handle_diverror /* 8 - Division error */ 82 .word protection_exception_ba /* 9 - Supervisor-only instr. address */ [all …]
|
/linux/arch/sparc/kernel/ |
H A D | una_asm_32.S | 62 .word 4b, retl_efault 63 .word 5b, retl_efault 64 .word 6b, retl_efault 65 .word 7b, retl_efault 66 .word 8b, retl_efault 67 .word 9b, retl_efault 68 .word 10b, retl_efault 69 .word 11b, retl_efault 70 .word 12b, retl_efault 71 .word 13b, retl_efault [all …]
|
H A D | una_asm_64.S | 52 .word 4b, __retl_efault 53 .word 5b, __retl_efault 54 .word 6b, __retl_efault 55 .word 7b, __retl_efault 56 .word 8b, __retl_efault 57 .word 9b, __retl_efault 58 .word 10b, __retl_efault 59 .word 11b, __retl_efault 60 .word 12b, __retl_efault 61 .word 13b, __retl_efault [all …]
|
/linux/drivers/net/ethernet/qualcomm/emac/ |
H A D | emac-mac.h | 49 u32 word[6]; member 52 #define RRD_NOR(rrd) BITS_GET((rrd)->word[0], 16, 19) 54 #define RRD_SI(rrd) BITS_GET((rrd)->word[0], 20, 31) 56 #define RRD_CVALN_TAG(rrd) BITS_GET((rrd)->word[2], 0, 15) 58 #define RRD_PKT_SIZE(rrd) BITS_GET((rrd)->word[3], 0, 13) 60 #define RRD_L4F(rrd) BITS_GET((rrd)->word[3], 14, 14) 62 #define RRD_CVTAG(rrd) BITS_GET((rrd)->word[3], 16, 16) 66 #define RRD_UPDT(rrd) BITS_GET((rrd)->word[3], 31, 31) 67 #define RRD_UPDT_SET(rrd, val) BITS_SET((rrd)->word[3], 31, 31, val) 69 #define RRD_TS_LOW(rrd) BITS_GET((rrd)->word[4], 0, 29) [all …]
|
/linux/tools/include/asm-generic/bitops/ |
H A D | __fls.h | 8 * generic___fls - find last (most-significant) set bit in a long word 9 * @word: the word to search 13 static __always_inline unsigned int generic___fls(unsigned long word) in generic___fls() argument 18 if (!(word & (~0ul << 32))) { in generic___fls() 20 word <<= 32; in generic___fls() 23 if (!(word & (~0ul << (BITS_PER_LONG-16)))) { in generic___fls() 25 word <<= 16; in generic___fls() 27 if (!(word & (~0ul << (BITS_PER_LONG-8)))) { in generic___fls() 29 word << in generic___fls() 45 __fls(word) global() argument [all...] |
H A D | __ffs.h | 9 * __ffs - find first bit in word. 10 * @word: The word to search 14 static __always_inline unsigned int __ffs(unsigned long word) in __ffs() argument 19 if ((word & 0xffffffff) == 0) { in __ffs() 21 word >>= 32; in __ffs() 24 if ((word & 0xffff) == 0) { in __ffs() 26 word >>= 16; in __ffs() 28 if ((word & 0xff) == 0) { in __ffs() 30 word >> in __ffs() [all...] |
/linux/drivers/platform/mellanox/ |
H A D | mlxbf-bootctl.c | 569 int word; in opn_show() local 572 for (word = 0; word < MLNX_MFG_VAL_QWORD_CNT(OPN); word++) { in opn_show() 574 MLNX_MFG_TYPE_OPN_0 + word, in opn_show() 580 opn_data[word] = res.a1; in opn_show() 593 int word; in opn_store() local 601 for (word = 0; word < MLNX_MFG_VAL_QWORD_CNT(OPN); word++) { in opn_store() 603 MLNX_MFG_TYPE_OPN_0 + word, in opn_store() 604 sizeof(u64), opn[word], 0, 0, 0, 0, &res); in opn_store() 620 int word; in sku_show() local 623 for (word = 0; word < MLNX_MFG_VAL_QWORD_CNT(SKU); word++) { in sku_show() [all …]
|
/linux/arch/s390/include/asm/ |
H A D | bitops.h | 272 static inline unsigned char __flogr(unsigned long word) in __flogr() argument 274 if (__builtin_constant_p(word)) { in __flogr() 277 if (!word) in __flogr() 279 if (!(word & 0xffffffff00000000UL)) { in __flogr() 280 word <<= 32; in __flogr() 283 if (!(word & 0xffff000000000000UL)) { in __flogr() 284 word <<= 16; in __flogr() 287 if (!(word & 0xff00000000000000UL)) { in __flogr() 288 word <<= 8; in __flogr() 291 if (!(word & 0xf000000000000000UL)) { in __flogr() [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-bcm7038-l1.c | 80 unsigned int word) in reg_status() argument 82 return (0 * intc->n_words + word) * sizeof(u32); in reg_status() 86 unsigned int word) in reg_mask_status() argument 88 return (1 * intc->n_words + word) * sizeof(u32); in reg_mask_status() 92 unsigned int word) in reg_mask_set() argument 94 return (2 * intc->n_words + word) * sizeof(u32); in reg_mask_set() 98 unsigned int word) in reg_mask_clr() argument 100 return (3 * intc->n_words + word) * sizeof(u32); in reg_mask_clr() 154 u32 word = d->hwirq / IRQS_PER_WORD; in __bcm7038_l1_unmask() local 157 intc->cpus[cpu_idx]->mask_cache[word] &= ~mask; in __bcm7038_l1_unmask() [all …]
|
/linux/arch/mips/include/asm/ |
H A D | bitops.h | 330 static __always_inline unsigned long __fls(unsigned long word) in __fls() argument 334 if (BITS_PER_LONG == 32 && !__builtin_constant_p(word) && in __fls() 342 : "r" (word)); in __fls() 347 if (BITS_PER_LONG == 64 && !__builtin_constant_p(word) && in __fls() 355 : "r" (word)); in __fls() 363 if (!(word & (~0ul << 32))) { in __fls() 365 word <<= 32; in __fls() 368 if (!(word & (~0ul << (BITS_PER_LONG-16)))) { in __fls() 370 word <<= 16; in __fls() 372 if (!(word & (~0ul << (BITS_PER_LONG-8)))) { in __fls() [all …]
|
/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 197 sync_clear_bit(EVTCHN_FIFO_BIT(PENDING, word), BM(word)); in evtchn_fifo_clear_pending() 202 event_word_t *word = event_word_from_port(port); in evtchn_fifo_set_pending() local 203 sync_set_bit(EVTCHN_FIFO_BIT(PENDING, word), BM(word)); in evtchn_fifo_set_pending() 208 event_word_t *word = event_word_from_port(port); in evtchn_fifo_is_pending() local 209 return sync_test_bit(EVTCHN_FIFO_BIT(PENDING, word), BM(word)); in evtchn_fifo_is_pending() 214 event_word_t *word = event_word_from_port(port); in evtchn_fifo_mask() local 215 sync_set_bit(EVTCHN_FIFO_BIT(MASKED, word), BM(word)); in evtchn_fifo_mask() 220 event_word_t *word = event_word_from_port(port); in evtchn_fifo_is_masked() local 221 return sync_test_bit(EVTCHN_FIFO_BIT(MASKED, word), BM(word)); in evtchn_fifo_is_masked() [all …]
|
/linux/arch/arm/crypto/ |
H A D | sha2-ce-core.S | 52 .word 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5 53 .word 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5 54 .word 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3 55 .word 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174 56 .word 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc 57 .word 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da 58 .word 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7 59 .word 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967 60 .word 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13 61 .word 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85 [all …]
|
/linux/drivers/tty/ |
H A D | mips_ejtag_fdc.c | 191 u32 word; member 220 struct fdc_word word = { 0, 0 }; in mips_ejtag_fdc_encode() local 228 word.word |= (u8)*ptr << (8*word.bytes); in mips_ejtag_fdc_encode() 229 ++word.bytes; in mips_ejtag_fdc_encode() 230 if (word.bytes == 4) in mips_ejtag_fdc_encode() 236 switch (word.bytes) { in mips_ejtag_fdc_encode() 239 if ((word.word >> 8) != 0x808080 && in mips_ejtag_fdc_encode() 240 (word.word >> 16) != 0x8181 && in mips_ejtag_fdc_encode() 241 (word.word >> 24) != 0x82) in mips_ejtag_fdc_encode() 244 word.bytes = 3; in mips_ejtag_fdc_encode() [all …]
|
/linux/arch/powerpc/sysdev/ |
H A D | cpm2_pic.c | 79 int bit, word; in cpm2_mask_irq() local 83 word = irq_to_siureg[irq_nr]; in cpm2_mask_irq() 85 ppc_cached_irq_mask[word] &= ~(1 << bit); in cpm2_mask_irq() 86 out_be32(&cpm2_intctl->ic_simrh + word, ppc_cached_irq_mask[word]); in cpm2_mask_irq() 91 int bit, word; in cpm2_unmask_irq() local 95 word = irq_to_siureg[irq_nr]; in cpm2_unmask_irq() 97 ppc_cached_irq_mask[word] |= 1 << bit; in cpm2_unmask_irq() 98 out_be32(&cpm2_intctl->ic_simrh + word, ppc_cached_irq_mask[word]); in cpm2_unmask_irq() 103 int bit, word; in cpm2_ack() local 107 word = irq_to_siureg[irq_nr]; in cpm2_ack() [all …]
|
/linux/arch/riscv/include/asm/ |
H A D | bitops.h | 48 static __always_inline unsigned long variable__ffs(unsigned long word) in variable__ffs() argument 58 : "=r" (word) : "r" (word) :); in variable__ffs() 60 return word; in variable__ffs() 63 return generic___ffs(word); in variable__ffs() 72 #define __ffs(word) \ argument 73 (__builtin_constant_p(word) ? \ 74 (unsigned long)__builtin_ctzl(word) : \ 75 variable__ffs(word)) 77 static __always_inline unsigned long variable__fls(unsigned long word) in variable__fls() argument 87 : "=r" (word) : "r" (word) :); in variable__fls() [all …]
|
/linux/arch/microblaze/lib/ |
H A D | uaccess_old.S | 34 .word 1b, 33f; \ 35 .word 2b, 33f; \ 36 .word 3b, 33f; \ 37 .word 4b, 33f; \ 38 .word 5b, 33f; \ 39 .word 6b, 33f; \ 40 .word 7b, 33f; \ 41 .word 8b, 33f; \ 42 .word 9b, 33f; \ 43 .word 10b, 33f; \ [all …]
|
/linux/drivers/gpu/drm/tegra/ |
H A D | firewall.c | 17 static int fw_next(struct tegra_drm_firewall *fw, u32 *word) in fw_next() argument 22 *word = fw->data[fw->pos++]; in fw_next() 44 u32 word; in fw_check_reg() local 47 err = fw_next(fw, &word); in fw_check_reg() 60 if (!fw_check_addr_valid(fw, word)) in fw_check_reg() 161 u32 word, opcode, offset, count, mask, class; in tegra_drm_fw_validate() local 163 err = fw_next(&fw, &word); in tegra_drm_fw_validate() 167 opcode = (word & 0xf0000000) >> 28; in tegra_drm_fw_validate() 171 offset = word >> 16 & 0xfff; in tegra_drm_fw_validate() 172 mask = word & 0x3f; in tegra_drm_fw_validate() [all …]
|