BITS 34 arch/arc/include/asm/disasm.h #define MAJOR_OPCODE(word) (BITS((word), 27, 31)) BITS 35 arch/arc/include/asm/disasm.h #define MINOR_OPCODE(word) (BITS((word), 16, 21)) BITS 36 arch/arc/include/asm/disasm.h #define FIELD_A(word) (BITS((word), 0, 5)) BITS 37 arch/arc/include/asm/disasm.h #define FIELD_B(word) ((BITS((word), 12, 14)<<3) | \ BITS 38 arch/arc/include/asm/disasm.h (BITS((word), 24, 26))) BITS 39 arch/arc/include/asm/disasm.h #define FIELD_C(word) (BITS((word), 6, 11)) BITS 41 arch/arc/include/asm/disasm.h #define FIELD_s12(word) sign_extend(((BITS((word), 0, 5) << 6) | \ BITS 42 arch/arc/include/asm/disasm.h BITS((word), 6, 11)), 12) BITS 46 arch/arc/include/asm/disasm.h #define FIELD_s9(word) sign_extend(((BITS(word, 15, 15) << 8) | \ BITS 47 arch/arc/include/asm/disasm.h BITS(word, 16, 23)), 9) BITS 48 arch/arc/include/asm/disasm.h #define FIELD_s21(word) sign_extend(((BITS(word, 6, 15) << 11) | \ BITS 49 arch/arc/include/asm/disasm.h (BITS(word, 17, 26) << 1)), 12) BITS 50 arch/arc/include/asm/disasm.h #define FIELD_s25(word) sign_extend(((BITS(word, 0, 3) << 21) | \ BITS 51 arch/arc/include/asm/disasm.h (BITS(word, 6, 15) << 11) | \ BITS 52 arch/arc/include/asm/disasm.h (BITS(word, 17, 26) << 1)), 12) BITS 55 arch/arc/include/asm/disasm.h #define FIELD_S_A(word) ((BITS((word), 2, 2)<<3) | BITS((word), 0, 2)) BITS 56 arch/arc/include/asm/disasm.h #define FIELD_S_B(word) ((BITS((word), 10, 10)<<3) | \ BITS 57 arch/arc/include/asm/disasm.h BITS((word), 8, 10)) BITS 58 arch/arc/include/asm/disasm.h #define FIELD_S_C(word) ((BITS((word), 7, 7)<<3) | BITS((word), 5, 7)) BITS 59 arch/arc/include/asm/disasm.h #define FIELD_S_H(word) ((BITS((word), 0, 2)<<3) | BITS((word), 5, 8)) BITS 60 arch/arc/include/asm/disasm.h #define FIELD_S_u5(word) (BITS((word), 0, 4)) BITS 61 arch/arc/include/asm/disasm.h #define FIELD_S_u6(word) (BITS((word), 0, 4) << 1) BITS 62 arch/arc/include/asm/disasm.h #define FIELD_S_u7(word) (BITS((word), 0, 4) << 2) BITS 63 arch/arc/include/asm/disasm.h #define FIELD_S_u10(word) (BITS((word), 0, 7) << 2) BITS 64 arch/arc/include/asm/disasm.h #define FIELD_S_s7(word) sign_extend(BITS((word), 0, 5) << 1, 9) BITS 65 arch/arc/include/asm/disasm.h #define FIELD_S_s8(word) sign_extend(BITS((word), 0, 7) << 1, 9) BITS 66 arch/arc/include/asm/disasm.h #define FIELD_S_s9(word) sign_extend(BITS((word), 0, 8), 9) BITS 67 arch/arc/include/asm/disasm.h #define FIELD_S_s10(word) sign_extend(BITS((word), 0, 8) << 1, 10) BITS 68 arch/arc/include/asm/disasm.h #define FIELD_S_s11(word) sign_extend(BITS((word), 0, 8) << 2, 11) BITS 69 arch/arc/include/asm/disasm.h #define FIELD_S_s13(word) sign_extend(BITS((word), 0, 10) << 2, 13) BITS 103 arch/arc/kernel/disasm.c state->di = BITS(state->words[0], 11, 11); BITS 106 arch/arc/kernel/disasm.c state->x = BITS(state->words[0], 6, 6); BITS 107 arch/arc/kernel/disasm.c state->zz = BITS(state->words[0], 7, 8); BITS 108 arch/arc/kernel/disasm.c state->aa = BITS(state->words[0], 9, 10); BITS 124 arch/arc/kernel/disasm.c state->di = BITS(state->words[0], 5, 5); BITS 127 arch/arc/kernel/disasm.c state->aa = BITS(state->words[0], 3, 4); BITS 128 arch/arc/kernel/disasm.c state->zz = BITS(state->words[0], 1, 2); BITS 163 arch/arc/kernel/disasm.c op_format = BITS(state->words[0], 22, 23); BITS 195 arch/arc/kernel/disasm.c if (BITS(state->words[0], 22, 23) == 3) { BITS 210 arch/arc/kernel/disasm.c state->di = BITS(state->words[0], 15, 15); BITS 213 arch/arc/kernel/disasm.c state->x = BITS(state->words[0], 16, 16); BITS 214 arch/arc/kernel/disasm.c state->zz = BITS(state->words[0], 17, 18); BITS 215 arch/arc/kernel/disasm.c state->aa = BITS(state->words[0], 22, 23); BITS 240 arch/arc/kernel/disasm.c switch (BITS(state->words[0], 22, 23)) { BITS 261 arch/arc/kernel/disasm.c switch (BITS(state->words[0], 22, 23)) { BITS 284 arch/arc/kernel/disasm.c state->zz = BITS(state->words[0], 3, 4); BITS 292 arch/arc/kernel/disasm.c if ((BITS(state->words[0], 3, 4) < 3) && BITS 298 arch/arc/kernel/disasm.c subopcode = BITS(state->words[0], 5, 7); BITS 311 arch/arc/kernel/disasm.c switch (BITS(state->words[0], 8, 10)) { BITS 370 arch/arc/kernel/disasm.c state->write = BITS(state->words[0], 6, 6); BITS 371 arch/arc/kernel/disasm.c state->zz = BITS(state->words[0], 5, 5); BITS 388 arch/arc/kernel/disasm.c state->zz = BITS(state->words[0], 9, 10); BITS 408 arch/arc/kernel/disasm.c fieldA = (BITS(state->words[0], 9, 10) == 3) ? BITS 254 drivers/input/keyboard/lkkbd.c #define CHECK_LED(LK, VAR_ON, VAR_OFF, LED, BITS) do { \ BITS 256 drivers/input/keyboard/lkkbd.c VAR_ON |= BITS; \ BITS 258 drivers/input/keyboard/lkkbd.c VAR_OFF |= BITS; \ BITS 14 drivers/media/platform/mtk-mdp/mtk_mdp_regs.c #define MDP_COLORFMT_PACK(VIDEO, PLANE, COPLANE, HF, VF, BITS, GROUP, SWAP, ID)\ BITS 16 drivers/media/platform/mtk-mdp/mtk_mdp_regs.c ((HF) << 20) | ((VF) << 18) | ((BITS) << 8) | ((GROUP) << 6) |\ BITS 69 drivers/message/fusion/mptdebug.h #define MPT_CHECK_LOGGING(IOC, CMD, BITS) \ BITS 71 drivers/message/fusion/mptdebug.h if (IOC->debug_level & BITS) \ BITS 75 drivers/message/fusion/mptdebug.h #define MPT_CHECK_LOGGING(IOC, CMD, BITS) BITS 120 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_PLL_FREQ_D_MASK BITS(0, 7) BITS 122 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_PLL_FREQ_N_MASK BITS(8, 13) BITS 124 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_PLL_FREQ_R_MASK BITS(16, 18) BITS 143 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_DSI_PLLOUT_SEL_DSI0_PLLOUT_DIVSEL_MASK BITS(0, 2) BITS 145 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_DSI_PLLOUT_SEL_DSI1_PLLOUT_DIVSEL_MASK BITS(8, 10) BITS 153 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_DSITVCLK_DIV_DSI0_ESC_CLK_DIV_MASK BITS(0, 7) BITS 155 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_DSITVCLK_DIV_DSI1_ESC_CLK_DIV_MASK BITS(8, 15) BITS 157 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_DSITVCLK_DIV_DSI2_ESC_CLK_DIV_MASK BITS(16, 23) BITS 166 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_CLKOCR_CLKOUT0_MASK BITS(0, 13) BITS 168 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_CLKOCR_CLKOUT1_MASK BITS(16, 29) BITS 188 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_TCR_TENSEL_MASK BITS(0, 7) BITS 193 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_CLKOCR_CLKODIV0_MASK BITS(0, 5) BITS 195 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_CLKOCR_CLKOSEL0_MASK BITS(6, 8) BITS 197 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_CLKOCR_CLKODIV1_MASK BITS(16, 21) BITS 199 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_CLKOCR_CLKOSEL1_MASK BITS(22, 24) BITS 202 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_CLK_MGT_CLKPLLDIV_MASK BITS(0, 4) BITS 206 drivers/mfd/dbx500-prcmu-regs.h #define PRCM_CLK_MGT_CLKPLLSW_MASK BITS(5, 7) BITS 131 drivers/net/ethernet/sun/niu.c #define niu_set_and_wait_clear_mac(NP, REG, BITS, LIMIT, DELAY, REG_NAME) \ BITS 133 drivers/net/ethernet/sun/niu.c __niu_set_and_wait_clear_mac(NP, REG, BITS, LIMIT, DELAY, REG_NAME); \ BITS 170 drivers/net/ethernet/sun/niu.c #define niu_set_and_wait_clear_ipp(NP, REG, BITS, LIMIT, DELAY, REG_NAME) \ BITS 172 drivers/net/ethernet/sun/niu.c __niu_set_and_wait_clear_ipp(NP, REG, BITS, LIMIT, DELAY, REG_NAME); \ BITS 190 drivers/net/ethernet/sun/niu.c #define niu_wait_bits_clear(NP, REG, BITS, LIMIT, DELAY) \ BITS 192 drivers/net/ethernet/sun/niu.c __niu_wait_bits_clear(NP, REG, BITS, LIMIT, DELAY); \ BITS 210 drivers/net/ethernet/sun/niu.c #define niu_set_and_wait_clear(NP, REG, BITS, LIMIT, DELAY, REG_NAME) \ BITS 212 drivers/net/ethernet/sun/niu.c __niu_set_and_wait_clear(NP, REG, BITS, LIMIT, DELAY, REG_NAME); \ BITS 138 drivers/net/wireless/intel/iwlwifi/fw/api/coex.h BT_MBOX##n_dw##_##_msg = BITS(_nbits) << BT_MBOX##n_dw##_##_msg##_POS BITS 291 drivers/scsi/aha152x.h #define SETBITS(PORT, BITS) outb( (inb(PORT) | (BITS)), (PORT) ) BITS 292 drivers/scsi/aha152x.h #define CLRBITS(PORT, BITS) outb( (inb(PORT) & ~(BITS)), (PORT) ) BITS 293 drivers/scsi/aha152x.h #define TESTHI(PORT, BITS) ((inb(PORT) & (BITS)) == (BITS)) BITS 294 drivers/scsi/aha152x.h #define TESTLO(PORT, BITS) ((inb(PORT) & (BITS)) == 0) BITS 71 drivers/scsi/mpt3sas/mpt3sas_debug.h #define MPT_CHECK_LOGGING(IOC, CMD, BITS) \ BITS 73 drivers/scsi/mpt3sas/mpt3sas_debug.h if (IOC->logging_level & BITS) \ BITS 44 drivers/scsi/scsi_logging.h #define SCSI_LOG_LEVEL(SHIFT, BITS) \ BITS 45 drivers/scsi/scsi_logging.h ((scsi_logging_level >> (SHIFT)) & ((1 << (BITS)) - 1)) BITS 47 drivers/scsi/scsi_logging.h #define SCSI_CHECK_LOGGING(SHIFT, BITS, LEVEL, CMD) \ BITS 49 drivers/scsi/scsi_logging.h if (unlikely((SCSI_LOG_LEVEL(SHIFT, BITS)) > (LEVEL))) \ BITS 55 drivers/scsi/scsi_logging.h #define SCSI_LOG_LEVEL(SHIFT, BITS) 0 BITS 56 drivers/scsi/scsi_logging.h #define SCSI_CHECK_LOGGING(SHIFT, BITS, LEVEL, CMD) BITS 1190 drivers/spi/spi-atmel.c csr = SPI_BF(BITS, bits - 8); BITS 433 fs/select.c set &= BITS(fds, n); BITS 443 fs/select.c set = BITS(fds, n); BITS 358 lib/zlib_inflate/inflate.c ((BITS(8) << 8) + (hold >> 8)) % 31) { BITS 363 lib/zlib_inflate/inflate.c if (BITS(4) != Z_DEFLATED) { BITS 369 lib/zlib_inflate/inflate.c len = BITS(4) + 8; BITS 404 lib/zlib_inflate/inflate.c state->last = BITS(1); BITS 406 lib/zlib_inflate/inflate.c switch (BITS(2)) { BITS 453 lib/zlib_inflate/inflate.c state->nlen = BITS(5) + 257; BITS 455 lib/zlib_inflate/inflate.c state->ndist = BITS(5) + 1; BITS 457 lib/zlib_inflate/inflate.c state->ncode = BITS(4) + 4; BITS 472 lib/zlib_inflate/inflate.c state->lens[order[state->have++]] = (unsigned short)BITS(3); BITS 493 lib/zlib_inflate/inflate.c this = state->lencode[BITS(state->lenbits)]; BITS 512 lib/zlib_inflate/inflate.c copy = 3 + BITS(2); BITS 519 lib/zlib_inflate/inflate.c copy = 3 + BITS(3); BITS 526 lib/zlib_inflate/inflate.c copy = 11 + BITS(7); BITS 572 lib/zlib_inflate/inflate.c this = state->lencode[BITS(state->lenbits)]; BITS 580 lib/zlib_inflate/inflate.c (BITS(last.bits + last.op) >> last.bits)]; BITS 607 lib/zlib_inflate/inflate.c state->length += BITS(state->extra); BITS 614 lib/zlib_inflate/inflate.c this = state->distcode[BITS(state->distbits)]; BITS 622 lib/zlib_inflate/inflate.c (BITS(last.bits + last.op) >> last.bits)]; BITS 641 lib/zlib_inflate/inflate.c state->offset += BITS(state->extra); BITS 29 sound/core/oss/rate.c #define R_MASK (BITS-1) BITS 107 sound/core/oss/rate.c val = S1 + ((S2 - S1) * (signed int)pos) / BITS; BITS 165 sound/core/oss/rate.c val = S1 + ((S2 - S1) * (signed int)pos) / BITS; BITS 194 sound/core/oss/rate.c res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); BITS 229 sound/core/oss/rate.c res = (((frames * data->pitch) + (BITS/2)) >> SHIFT);