| /linux/drivers/phy/allwinner/ |
| A D | phy-sun6i-mipi-dphy.c | 38 #define SUN6I_DPHY_TX_TIME0_LP_CLK_DIV(n) ((n) & 0xff) argument 44 #define SUN6I_DPHY_TX_TIME1_CLK_PREPARE(n) ((n) & 0xff) argument 47 #define SUN6I_DPHY_TX_TIME2_CLK_TRAIL(n) ((n) & 0xff) argument 53 #define SUN6I_DPHY_TX_TIME4_HS_TX_ANA0(n) ((n) & 0xff) argument 80 #define SUN6I_DPHY_ANA0_REG_SLV(n) (((n) & 7) << 12) argument 83 #define SUN6I_DPHY_ANA0_REG_SFB(n) (((n) & 3) << 2) argument 111 #define SUN6I_DPHY_ANA4_REG_IB(n) (((n) & 3) << 25) argument 121 #define SUN6I_DPHY_ANA4_REG_TXPUSD(n) ((n) & 3) argument 139 #define SUN50I_DPHY_PLL_REG0_M1(n) ((n) & 0xf) argument 158 #define SUN50I_DPHY_PLL_REG2_FRAC(n) ((n) & 0xfff) argument [all …]
|
| /linux/drivers/media/pci/solo6x10/ |
| A D | solo6x10-regs.h | 49 #define SOLO_VCLK_SELECT(n) ((n)<<20) argument 61 #define SOLO_IRQ_P2M(n) BIT((n) + 17) argument 73 #define SOLO_IRQ_UART(n) BIT((n) + 4) argument 126 #define SOLO_P2M_REPEAT(n) ((n)<<10) argument 177 #define SOLO_VI_H_START(n) ((n)<<21) argument 178 #define SOLO_VI_V_START(n) ((n)<<11) argument 179 #define SOLO_VI_V_STOP(n) ((n)<<0) argument 267 #define SOLO_VO_H_STOP(n) ((n)<<0) argument 272 #define SOLO_VO_V_STOP(n) ((n)<<0) argument 278 #define SOLO_VO_H_LEN(n) ((n)<<11) argument [all …]
|
| A D | solo6x10-tw28.h | 19 #define TW_CHIP_OFFSET_ADDR(n) (TW_BASE_ADDR + (n)) argument 23 #define TW_HUE_ADDR(n) (0x07 | ((n) << 4)) argument 24 #define TW_SATURATION_ADDR(n) (0x08 | ((n) << 4)) argument 25 #define TW_CONTRAST_ADDR(n) (0x09 | ((n) << 4)) argument 26 #define TW_BRIGHTNESS_ADDR(n) (0x0a | ((n) << 4)) argument 32 #define TW286x_HUE_ADDR(n) (0x06 | ((n) << 4)) argument 33 #define TW286x_SATURATIONU_ADDR(n) (0x04 | ((n) << 4)) argument 34 #define TW286x_SATURATIONV_ADDR(n) (0x05 | ((n) << 4)) argument 35 #define TW286x_CONTRAST_ADDR(n) (0x02 | ((n) << 4)) argument 36 #define TW286x_BRIGHTNESS_ADDR(n) (0x01 | ((n) << 4)) argument [all …]
|
| /linux/drivers/staging/media/starfive/camss/ |
| A D | stf-isp.h | 32 #define CSI_INTS(n) ((n) << 16) argument 56 #define SMY13(n) ((n) << 14) argument 57 #define SMY12(n) ((n) << 12) argument 58 #define SMY11(n) ((n) << 10) argument 59 #define SMY10(n) ((n) << 8) argument 60 #define SMY3(n) ((n) << 6) argument 61 #define SMY2(n) ((n) << 4) argument 62 #define SMY1(n) ((n) << 2) argument 63 #define SMY0(n) ((n) << 0) argument 383 #define TH(n) ((n) << 8) argument [all …]
|
| /linux/drivers/gpu/drm/panel/ |
| A D | panel-sitronix-st7789v.c | 23 #define ST7789V_RAMCTRL_EPF(n) (((n) & 3) << 4) argument 27 #define ST7789V_RGBCTRL_RCM(n) (((n) & 3) << 5) argument 32 #define ST7789V_RGBCTRL_VBP(n) ((n) & 0x7f) argument 33 #define ST7789V_RGBCTRL_HBP(n) ((n) & 0x1f) argument 37 #define ST7789V_PORCTRL_IDLE_FP(n) ((n) & 0xf) argument 43 #define ST7789V_GCTRL_VGLS(n) ((n) & 7) argument 65 #define ST7789V_PWCTRL1_VDS(n) ((n) & 3) argument 70 #define ST7789V_PVGAMCTRL_VP0(n) ((n) & 0xf) argument 77 #define ST7789V_PVGAMCTRL_VP27(n) ((n) & 7) argument 90 #define ST7789V_NVGAMCTRL_VN0(n) ((n) & 0xf) argument [all …]
|
| /linux/include/linux/ |
| A D | log2.h | 22 int __ilog2_u32(u32 n) in __ilog2_u32() 30 int __ilog2_u64(u64 n) in __ilog2_u64() 45 bool is_power_of_2(unsigned long n) in is_power_of_2() 77 #define const_ilog2(n) \ argument 156 #define ilog2(n) \ argument 174 #define roundup_pow_of_two(n) \ argument 191 #define rounddown_pow_of_two(n) \ argument 199 int __order_base_2(unsigned long n) in __order_base_2() 217 #define order_base_2(n) \ argument 226 int __bits_per(unsigned long n) in __bits_per() [all …]
|
| /linux/drivers/media/platform/nxp/imx8-isi/ |
| A D | imx8-isi-regs.h | 17 #define CHNL_CTRL_CHAIN_BUF(n) ((n) << 25) argument 22 #define CHNL_CTRL_BLANK_PXL(n) ((n) << 16) argument 24 #define CHNL_CTRL_MIPI_VC_ID(n) ((n) << 6) argument 26 #define CHNL_CTRL_SRC_TYPE(n) ((n) << 4) argument 30 #define CHNL_CTRL_SRC_INPUT(n) ((n) << 0) argument 35 #define CHNL_IMG_CTRL_FORMAT(n) ((n) << 24) argument 195 #define CHNL_CROP_ULC_X(n) ((n) << 16) argument 197 #define CHNL_CROP_ULC_Y(n) ((n) << 0) argument 202 #define CHNL_CROP_LRC_X(n) ((n) << 16) argument 204 #define CHNL_CROP_LRC_Y(n) ((n) << 0) argument [all …]
|
| /linux/drivers/phy/marvell/ |
| A D | phy-mvebu-cp110-comphy.c | 21 #define MVEBU_COMPHY_SERDES_CFG0(n) (0x0 + (n) * 0x1000) argument 23 #define MVEBU_COMPHY_SERDES_CFG0_GEN_RX(n) ((n) << 3) argument 24 #define MVEBU_COMPHY_SERDES_CFG0_GEN_TX(n) ((n) << 7) argument 42 #define MVEBU_COMPHY_PWRPLL_PHY_MODE(n) ((n) << 5) argument 44 #define MVEBU_COMPHY_IMP_CAL_TX_EXT(n) ((n) << 10) argument 48 #define MVEBU_COMPHY_COEF(n) (0x828 + (n) * 0x1000) argument 52 #define MVEBU_COMPHY_GEN1_S0_TX_AMP(n) ((n) << 1) argument 78 #define MVEBU_SP_CALIB(n) (0x96c + (n) * 0x1000) argument 79 #define MVEBU_SP_CALIB_SAMPLER(n) ((n) << 8) argument 106 #define MVEBU_COMPHY_GEN1_S5_ICP(n) ((n) << 0) argument [all …]
|
| /linux/arch/arm/include/debug/ |
| A D | imx-uart.h | 11 #define IMX1_UART_BASE_ADDR(n) IMX1_UART##n##_BASE_ADDR argument 12 #define IMX1_UART_BASE(n) IMX1_UART_BASE_ADDR(n) argument 20 #define IMX25_UART_BASE(n) IMX25_UART_BASE_ADDR(n) argument 27 #define IMX27_UART_BASE(n) IMX27_UART_BASE_ADDR(n) argument 35 #define IMX31_UART_BASE(n) IMX31_UART_BASE_ADDR(n) argument 41 #define IMX35_UART_BASE(n) IMX35_UART_BASE_ADDR(n) argument 49 #define IMX50_UART_BASE(n) IMX50_UART_BASE_ADDR(n) argument 55 #define IMX51_UART_BASE(n) IMX51_UART_BASE_ADDR(n) argument 63 #define IMX53_UART_BASE(n) IMX53_UART_BASE_ADDR(n) argument 71 #define IMX6Q_UART_BASE(n) IMX6Q_UART_BASE_ADDR(n) argument [all …]
|
| /linux/arch/mips/loongson32/common/ |
| A D | irq.c | 13 #define LS1X_INTC_REG(n, x) \ argument 16 #define LS1X_INTC_INTISR(n) LS1X_INTC_REG(n, 0x0) argument 17 #define LS1X_INTC_INTIEN(n) LS1X_INTC_REG(n, 0x4) argument 18 #define LS1X_INTC_INTSET(n) LS1X_INTC_REG(n, 0x8) argument 19 #define LS1X_INTC_INTCLR(n) LS1X_INTC_REG(n, 0xc) argument 20 #define LS1X_INTC_INTPOL(n) LS1X_INTC_REG(n, 0x10) argument 26 unsigned int n = (d->irq - LS1X_IRQ_BASE) >> 5; in ls1x_irq_ack() local 35 unsigned int n = (d->irq - LS1X_IRQ_BASE) >> 5; in ls1x_irq_mask() local 44 unsigned int n = (d->irq - LS1X_IRQ_BASE) >> 5; in ls1x_irq_mask_ack() local 115 static void ls1x_irq_dispatch(int n) in ls1x_irq_dispatch() [all …]
|
| /linux/fs/smb/server/ |
| A D | ndr.c | 12 static inline char *ndr_get_field(struct ndr *n) in ndr_get_field() 17 static int try_to_realloc_ndr_blob(struct ndr *n, size_t sz) in try_to_realloc_ndr_blob() 31 static int ndr_write_int16(struct ndr *n, __u16 value) in ndr_write_int16() 46 static int ndr_write_int32(struct ndr *n, __u32 value) in ndr_write_int32() 61 static int ndr_write_int64(struct ndr *n, __u64 value) in ndr_write_int64() 76 static int ndr_write_bytes(struct ndr *n, void *value, size_t sz) in ndr_write_bytes() 91 static int ndr_write_string(struct ndr *n, char *value) in ndr_write_string() 137 static int ndr_read_int16(struct ndr *n, __u16 *value) in ndr_read_int16() 148 static int ndr_read_int32(struct ndr *n, __u32 *value) in ndr_read_int32() 159 static int ndr_read_int64(struct ndr *n, __u64 *value) in ndr_read_int64() [all …]
|
| /linux/drivers/media/platform/qcom/camss/ |
| A D | camss-vfe-480.c | 24 static inline int reg_update_rdi(struct vfe_device *vfe, int n) in reg_update_rdi() 33 #define VFE_IRQ_MASK(n) ((vfe_is_lite(vfe) ? 0x28 : 0x3c) + (n) * 4) argument 36 #define VFE_IRQ_CLEAR(n) ((vfe_is_lite(vfe) ? 0x34 : 0x48) + (n) * 4) argument 37 #define VFE_IRQ_STATUS(n) ((vfe_is_lite(vfe) ? 0x40 : 0x54) + (n) * 4) argument 46 #define VFE_BUS_IRQ_MASK(n) (BUS_REG_BASE + 0x18 + (n) * 4) argument 59 #define VFE_BUS_IRQ_CLEAR(n) (BUS_REG_BASE + 0x20 + (n) * 4) argument 60 #define VFE_BUS_IRQ_STATUS(n) (BUS_REG_BASE + 0x28 + (n) * 4) argument 63 #define VFE_BUS_WM_CFG(n) (BUS_REG_BASE + 0x200 + (n) * 0x100) argument 68 #define VFE_BUS_WM_IMAGE_ADDR(n) (BUS_REG_BASE + 0x204 + (n) * 0x100) argument 90 #define RDI_WM(n) ((vfe_is_lite(vfe) ? 0 : 23) + (n)) argument [all …]
|
| A D | camss-vfe-17x.c | 50 #define MASK_0_RDI_REG_UPDATE(n) BIT((n) + 5) argument 60 #define MASK_1_RDI_SOF(n) BIT((n) + 29) argument 67 #define STATUS_0_RDI_REG_UPDATE(n) BIT((n) + 5) argument 75 #define STATUS_1_RDI_SOF(n) BIT((n) + 27) argument 98 #define REG_UPDATE_RDI(n) BIT(1 + (n)) argument 100 #define VFE_BUS_IRQ_MASK(n) (0x2044 + (n) * 4) argument 101 #define VFE_BUS_IRQ_CLEAR(n) (0x2050 + (n) * 4) argument 115 #define STATUS0_COMP_BUF_DONE(n) BIT((n) + 5) argument 121 #define STATUS1_WM_CLIENT_BUF_DONE(n) BIT(n) argument 129 #define STATUS2_DUAL_COMP_BUF_DONE(n) BIT(n) argument [all …]
|
| /linux/drivers/video/fbdev/omap2/omapfb/dss/ |
| A D | dispc.h | 34 #define DISPC_OVL_BA0(n) (DISPC_OVL_BASE(n) + \ argument 36 #define DISPC_OVL_BA1(n) (DISPC_OVL_BASE(n) + \ argument 38 #define DISPC_OVL_BA0_UV(n) (DISPC_OVL_BASE(n) + \ argument 40 #define DISPC_OVL_BA1_UV(n) (DISPC_OVL_BASE(n) + \ argument 42 #define DISPC_OVL_POSITION(n) (DISPC_OVL_BASE(n) + \ argument 44 #define DISPC_OVL_SIZE(n) (DISPC_OVL_BASE(n) + \ argument 54 #define DISPC_OVL_ROW_INC(n) (DISPC_OVL_BASE(n) + \ argument 62 #define DISPC_OVL_FIR(n) (DISPC_OVL_BASE(n) + \ argument 64 #define DISPC_OVL_FIR2(n) (DISPC_OVL_BASE(n) + \ argument 68 #define DISPC_OVL_ACCU0(n) (DISPC_OVL_BASE(n) + \ argument [all …]
|
| /linux/drivers/gpu/drm/omapdrm/dss/ |
| A D | dispc.h | 37 #define DISPC_OVL_BA0(n) (DISPC_OVL_BASE(n) + \ argument 39 #define DISPC_OVL_BA1(n) (DISPC_OVL_BASE(n) + \ argument 41 #define DISPC_OVL_BA0_UV(n) (DISPC_OVL_BASE(n) + \ argument 43 #define DISPC_OVL_BA1_UV(n) (DISPC_OVL_BASE(n) + \ argument 45 #define DISPC_OVL_POSITION(n) (DISPC_OVL_BASE(n) + \ argument 47 #define DISPC_OVL_SIZE(n) (DISPC_OVL_BASE(n) + \ argument 57 #define DISPC_OVL_ROW_INC(n) (DISPC_OVL_BASE(n) + \ argument 65 #define DISPC_OVL_FIR(n) (DISPC_OVL_BASE(n) + \ argument 67 #define DISPC_OVL_FIR2(n) (DISPC_OVL_BASE(n) + \ argument 71 #define DISPC_OVL_ACCU0(n) (DISPC_OVL_BASE(n) + \ argument [all …]
|
| /linux/sound/soc/uniphier/ |
| A D | aio-reg.h | 17 #define A2CHNMAPCTR0(n) (0x00000 + 0x40 * (n)) argument 18 #define A2RBNMAPCTR0(n) (0x01000 + 0x40 * (n)) argument 19 #define A2IPORTNMAPCTR0(n) (0x02000 + 0x40 * (n)) argument 20 #define A2IPORTNMAPCTR1(n) (0x02004 + 0x40 * (n)) argument 21 #define A2IIFNMAPCTR0(n) (0x03000 + 0x40 * (n)) argument 22 #define A2OPORTNMAPCTR0(n) (0x04000 + 0x40 * (n)) argument 23 #define A2OPORTNMAPCTR1(n) (0x04004 + 0x40 * (n)) argument 24 #define A2OPORTNMAPCTR2(n) (0x04008 + 0x40 * (n)) argument 25 #define A2OIFNMAPCTR0(n) (0x05000 + 0x40 * (n)) argument 26 #define A2ATNMAPCTR0(n) (0x06000 + 0x40 * (n)) argument [all …]
|
| /linux/drivers/gpu/drm/exynos/ |
| A D | regs-decon5433.h | 12 #define DECON_WINCONx(n) (0x0020 + ((n) * 4)) argument 13 #define DECON_VIDOSDxH(n) (0x0080 + ((n) * 4)) argument 15 #define DECON_VIDOSDxA(n) (0x00B0 + ((n) * 0x20)) argument 16 #define DECON_VIDOSDxB(n) (0x00B4 + ((n) * 0x20)) argument 17 #define DECON_VIDOSDxC(n) (0x00B8 + ((n) * 0x20)) argument 18 #define DECON_VIDOSDxD(n) (0x00BC + ((n) * 0x20)) argument 33 #define DECON_WINxMAP(n) (0x0270 + ((n) * 4)) argument 220 #define BLENDERQ_Q_FUNC_F(n) (n << 18) argument 221 #define BLENDERQ_P_FUNC_F(n) (n << 12) argument 222 #define BLENDERQ_B_FUNC_F(n) (n << 6) argument [all …]
|
| /linux/arch/powerpc/kernel/ |
| A D | exceptions-64e.S | 329 #define PROLOG_ADDITION_NONE_GEN(n) argument 330 #define PROLOG_ADDITION_NONE_GDBELL(n) argument 331 #define PROLOG_ADDITION_NONE_CRIT(n) argument 332 #define PROLOG_ADDITION_NONE_DBG(n) argument 333 #define PROLOG_ADDITION_NONE_MC(n) argument 350 #define PROLOG_ADDITION_1REG_GEN(n) \ argument 403 #define EXCEPTION_COMMON(n) \ argument 405 #define EXCEPTION_COMMON_CRIT(n) \ argument 407 #define EXCEPTION_COMMON_MC(n) \ argument 409 #define EXCEPTION_COMMON_DBG(n) \ argument [all …]
|
| /linux/arch/sh/math-emu/ |
| A D | math.c | 37 #define BANK(n) (n^(FPSCR_FR?16:0)) argument 46 #define XREG(n) (n^16) argument 158 int n) in fmov_idx_reg() 174 int n) in fmov_mem_reg() 190 int n) in fmov_inc_reg() 208 int n) in fmov_reg_idx() 224 int n) in fmov_reg_mem() 240 int n) in fmov_reg_dec() 258 int n) in fmov_reg_reg() 307 static int ftrc(struct sh_fpu_soft_struct *fregs, int n) in ftrc() [all …]
|
| /linux/scripts/gcc-plugins/ |
| A D | gcc-generate-ipa-pass.h | 30 #define __GCC_PLUGIN_STRINGIFY(n) #n argument 31 #define _GCC_PLUGIN_STRINGIFY(n) __GCC_PLUGIN_STRINGIFY(n) argument 35 #define __PASS_NAME_PASS_DATA(n) _GCC_PLUGIN_CONCAT2(n, _pass_data) argument 38 #define __PASS_NAME_PASS(n) _GCC_PLUGIN_CONCAT2(n, _pass) argument 43 #define __MAKE_PASS_NAME_PASS(n) _GCC_PLUGIN_CONCAT3(make_, n, _pass) argument 49 #define __GENERATE_SUMMARY(n) _GCC_PLUGIN_CONCAT2(n, _generate_summary) argument 56 #define __READ_SUMMARY(n) _GCC_PLUGIN_CONCAT2(n, _read_summary) argument 63 #define __WRITE_SUMMARY(n) _GCC_PLUGIN_CONCAT2(n, _write_summary) argument 84 #define __STMT_FIXUP(n) _GCC_PLUGIN_CONCAT2(n, _stmt_fixup) argument 106 #define __GATE(n) _GCC_PLUGIN_CONCAT2(n, _gate) argument [all …]
|
| /linux/drivers/gpu/drm/rockchip/ |
| A D | inno_hdmi.h | 96 #define v_AVMUTE_CLEAR(n) (n << 7) argument 98 #define v_AUDIO_MUTE(n) (n << 1) argument 99 #define v_VIDEO_MUTE(n) (n << 0) argument 104 #define v_INETLACE(n) (n << 1) argument 128 #define v_CTS_SOURCE(n) (n << 7) argument 135 #define v_DOWN_SAMPLE(n) (n << 5) argument 143 #define v_MCLK_ENABLE(n) (n << 2) argument 150 #define v_MCLK_RATIO(n) (n) argument 176 #define v_I2S_MODE(n) (n) argument 180 #define v_SPIDF_FREQ(n) (n) argument [all …]
|
| /linux/tools/include/linux/ |
| A D | log2.h | 21 int __ilog2_u32(u32 n) in __ilog2_u32() 27 int __ilog2_u64(u64 n) in __ilog2_u64() 38 bool is_power_of_2(unsigned long n) in is_power_of_2() 47 unsigned long __roundup_pow_of_two(unsigned long n) in __roundup_pow_of_two() 56 unsigned long __rounddown_pow_of_two(unsigned long n) in __rounddown_pow_of_two() 71 #define ilog2(n) \ argument 151 #define roundup_pow_of_two(n) \ argument 168 #define rounddown_pow_of_two(n) \ argument
|
| /linux/drivers/phy/rockchip/ |
| A D | phy-rockchip-typec.c | 147 #define XCVR_PSM_RCTRL(n) ((0x4001 | ((n) << 9)) << 2) argument 175 #define TX_PSC_A0(n) ((0x4100 | ((n) << 9)) << 2) argument 176 #define TX_PSC_A1(n) ((0x4101 | ((n) << 9)) << 2) argument 177 #define TX_PSC_A2(n) ((0x4102 | ((n) << 9)) << 2) argument 178 #define TX_PSC_A3(n) ((0x4103 | ((n) << 9)) << 2) argument 246 #define RX_PSC_A0(n) ((0x8000 | ((n) << 9)) << 2) argument 247 #define RX_PSC_A1(n) ((0x8001 | ((n) << 9)) << 2) argument 248 #define RX_PSC_A2(n) ((0x8002 | ((n) << 9)) << 2) argument 249 #define RX_PSC_A3(n) ((0x8003 | ((n) << 9)) << 2) argument 250 #define RX_PSC_CAL(n) ((0x8006 | ((n) << 9)) << 2) argument [all …]
|
| /linux/fs/ufs/ |
| A D | swab.h | 27 fs64_to_cpu(struct super_block *sbp, __fs64 n) in fs64_to_cpu() 36 cpu_to_fs64(struct super_block *sbp, u64 n) in cpu_to_fs64() 45 fs32_to_cpu(struct super_block *sbp, __fs32 n) in fs32_to_cpu() 54 cpu_to_fs32(struct super_block *sbp, u32 n) in cpu_to_fs32() 63 fs32_add(struct super_block *sbp, __fs32 *n, int d) in fs32_add() 72 fs32_sub(struct super_block *sbp, __fs32 *n, int d) in fs32_sub() 81 fs16_to_cpu(struct super_block *sbp, __fs16 n) in fs16_to_cpu() 90 cpu_to_fs16(struct super_block *sbp, u16 n) in cpu_to_fs16() 99 fs16_add(struct super_block *sbp, __fs16 *n, int d) in fs16_add() 108 fs16_sub(struct super_block *sbp, __fs16 *n, int d) in fs16_sub()
|
| /linux/arch/alpha/lib/ |
| A D | memcpy.c | 27 #define ALIGN_DEST_TO8_UP(d,s,n) \ argument 34 #define ALIGN_DEST_TO8_DN(d,s,n) \ argument 46 #define DO_REST_UP(d,s,n) \ argument 52 #define DO_REST_DN(d,s,n) \ argument 63 #define DO_REST_ALIGNED_UP(d,s,n) DO_REST_UP(d,s,n) argument 64 #define DO_REST_ALIGNED_DN(d,s,n) DO_REST_DN(d,s,n) argument 74 long n) in __memcpy_unaligned_up() 102 long n) in __memcpy_unaligned_dn() 120 long n) in __memcpy_aligned_up() 136 long n) in __memcpy_aligned_dn() [all …]
|