Home
last modified time | relevance | path

Searched refs:n (Results 1 – 25 of 3176) sorted by relevance

12345678910>>...128

/linux-5.3.11/include/linux/
H A Dlog2.h22 int __ilog2_u32(u32 n) in __ilog2_u32() argument
24 return fls(n) - 1; in __ilog2_u32()
30 int __ilog2_u64(u64 n) in __ilog2_u64() argument
32 return fls64(n) - 1; in __ilog2_u64()
47 return (n != 0 && ((n & (n - 1)) == 0)); in is_power_of_2()
80 (n) < 2 ? 0 : \
156 #define ilog2(n) \ argument
200 return n > 1 ? ilog2(n - 1) + 1 : 0; in __order_base_2()
219 ((n) == 0 || (n) == 1) ? 0 : \
227 if (n < 2) in __bits_per()
[all …]
/linux-5.3.11/tools/include/linux/
H A Dlog2.h21 int __ilog2_u32(u32 n) in __ilog2_u32() argument
23 return fls(n) - 1; in __ilog2_u32()
27 int __ilog2_u64(u64 n) in __ilog2_u64() argument
29 return fls64(n) - 1; in __ilog2_u64()
40 return (n != 0 && ((n & (n - 1)) == 0)); in is_power_of_2()
71 #define ilog2(n) \ argument
74 (n) < 2 ? 0 : \
138 (sizeof(n) <= 4) ? \
139 __ilog2_u32(n) : \
140 __ilog2_u64(n) \
[all …]
/linux-5.3.11/drivers/media/pci/solo6x10/
H A Dsolo6x10-regs.h39 #define SOLO_DMA_CTRL_LATENCY(n) ((n)<<0) argument
47 #define SOLO_VCLK_SELECT(n) ((n)<<20) argument
59 #define SOLO_IRQ_P2M(n) (1<<((n)+17)) argument
123 #define SOLO_P2M_PCI_INC(n) ((n)<<20) argument
124 #define SOLO_P2M_REPEAT(n) ((n)<<10) argument
175 #define SOLO_VI_H_START(n) ((n)<<21) argument
177 #define SOLO_VI_V_STOP(n) ((n)<<0) argument
265 #define SOLO_VO_H_STOP(n) ((n)<<0) argument
270 #define SOLO_VO_V_STOP(n) ((n)<<0) argument
276 #define SOLO_VO_H_LEN(n) ((n)<<11) argument
[all …]
/linux-5.3.11/drivers/media/common/siano/
H A Dsmsdvb-debugfs.c48 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
50 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
52 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
54 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
56 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
58 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
60 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
62 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
64 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
66 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
[all …]
/linux-5.3.11/drivers/media/cec/
H A Dcec-notifier.c51 n = kzalloc(sizeof(*n), GFP_KERNEL); in cec_notifier_get_conn()
52 if (!n) in cec_notifier_get_conn()
70 return n; in cec_notifier_get_conn()
81 kfree(n); in cec_notifier_release()
98 if (!n) in cec_notifier_conn_register()
118 if (!n) in cec_notifier_conn_unregister()
122 memset(&n->conn_info, 0, sizeof(n->conn_info)); in cec_notifier_conn_unregister()
143 if (!n) in cec_notifier_cec_adap_register()
158 if (!n) in cec_notifier_cec_adap_unregister()
178 n->callback(n->cec_adap, n->phys_addr); in cec_notifier_set_phys_addr()
[all …]
/linux-5.3.11/sound/soc/uniphier/
H A Daio-reg.h17 #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-5.3.11/drivers/gpu/drm/rockchip/
H A Dinno_hdmi.h101 #define v_AVMUTE_CLEAR(n) (n << 7) argument
103 #define v_AUDIO_MUTE(n) (n << 1) argument
104 #define v_VIDEO_MUTE(n) (n << 0) argument
109 #define v_INETLACE(n) (n << 1) argument
133 #define v_CTS_SOURCE(n) (n << 7) argument
140 #define v_DOWN_SAMPLE(n) (n << 5) argument
148 #define v_MCLK_ENABLE(n) (n << 2) argument
155 #define v_MCLK_RATIO(n) (n) argument
181 #define v_I2S_MODE(n) (n) argument
185 #define v_SPIDF_FREQ(n) (n) argument
[all …]
/linux-5.3.11/drivers/gpu/drm/exynos/
H A Dregs-decon5433.h12 #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-5.3.11/arch/mips/loongson32/common/
H A Dirq.c13 #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
21 #define LS1X_INTC_INTEDGE(n) LS1X_INTC_REG(n, 0x14) argument
160 int n; in ls1x_irq_init() local
165 for (n = 0; n < INTN; n++) { in ls1x_irq_init()
170 __raw_writel(n ? 0x0 : 0xe000, LS1X_INTC_INTEDGE(n)); in ls1x_irq_init()
[all …]
/linux-5.3.11/arch/alpha/lib/
H A Dmemcpy.c29 n--; \
36 n--; \
47 n--; \
53 n--; \
96 n += 8; in __memcpy_unaligned_up()
104 s += n; in __memcpy_unaligned_dn()
105 d += n; in __memcpy_unaligned_dn()
122 n -= 8; in __memcpy_aligned_up()
131 n += 8; in __memcpy_aligned_up()
137 s += n; in __memcpy_aligned_dn()
[all …]
/linux-5.3.11/drivers/usb/gadget/udc/
H A Dfusb300_udc.h21 #define FUSB300_OFFSET_EPSET0(n) (0x20 + (n - 1) * 0x30) argument
22 #define FUSB300_OFFSET_EPSET1(n) (0x24 + (n - 1) * 0x30) argument
23 #define FUSB300_OFFSET_EPSET2(n) (0x28 + (n - 1) * 0x30) argument
24 #define FUSB300_OFFSET_EPFFR(n) (0x2c + (n - 1) * 0x30) argument
25 #define FUSB300_OFFSET_EPSTRID(n) (0x40 + (n - 1) * 0x30) argument
84 #define FUSB300_GTM_TST_EP_ENTRY(n) ((n & 0xF) << 8) argument
85 #define FUSB300_GTM_TST_EP_NUM(n) ((n & 0xF) << 4) argument
287 #define FUSB300_IGR0_EPn_FIFO_INT(n) (1 << n) argument
448 #define FUSB300_IGR5_EP_STL_INT(n) (1 << n) argument
569 #define FUSB300_EPPRDR_EP_PRD_RDY(n) (1 << n) argument
[all …]
/linux-5.3.11/drivers/media/platform/vsp1/
H A Dvsp1_regs.h17 #define VI6_CMD(n) (0x0000 + (n) * 4) argument
28 #define VI6_SRESET_SRTS(n) (1 << (n)) argument
45 #define VI6_DISP_IRQ_ENB_LNEE(n) (1 << (n)) argument
50 #define VI6_DISP_IRQ_STA_LNE(n) (1 << (n)) argument
385 #define VI6_DPR_NODE_RPF(n) (n) argument
390 #define VI6_DPR_NODE_BRU_IN(n) (((n) <= 3) ? 23 + (n) : 49) argument
599 #define VI6_BRU_CTRL(n) (0x0010 + (n) * 8 + ((n) <= 3 ? 0 : 4)) argument
601 #define VI6_BRU_CTRL_DSTSEL_BRUIN(n) (((n) <= 3 ? (n) : (n)+1) << 20) argument
604 #define VI6_BRU_CTRL_SRCSEL_BRUIN(n) (((n) <= 3 ? (n) : (n)+1) << 16) argument
612 #define VI6_BRU_BLD(n) (0x0014 + (n) * 8 + ((n) <= 3 ? 0 : 4)) argument
[all …]
/linux-5.3.11/arch/powerpc/include/asm/
H A Dppc_asm.h77 #define SAVE_GPR(n, base) std n,GPR0+8*(n)(base) argument
78 #define REST_GPR(n, base) ld n,GPR0+8*(n)(base) argument
82 #define SAVE_GPR(n, base) stw n,GPR0+4*(n)(base) argument
83 #define REST_GPR(n, base) lwz n,GPR0+4*(n)(base) argument
103 #define REST_FPR(n, base) lfd n,8*TS_FPRWIDTH*(n)(base) argument
110 #define SAVE_VR(n,b,base) li b,16*(n); stvx n,base,b argument
116 #define REST_VR(n,b,base) li b,16*(n); lvx n,base,b argument
127 #define STXVD2X_ROT(n,b,base) XXSWAPD(n,n); \ argument
129 XXSWAPD(n,n)
132 XXSWAPD(n,n)
[all …]
/linux-5.3.11/tools/testing/selftests/powerpc/primitives/asm/
H A Dppc_asm.h77 #define SAVE_GPR(n, base) std n,GPR0+8*(n)(base) argument
78 #define REST_GPR(n, base) ld n,GPR0+8*(n)(base) argument
82 #define SAVE_GPR(n, base) stw n,GPR0+4*(n)(base) argument
83 #define REST_GPR(n, base) lwz n,GPR0+4*(n)(base) argument
103 #define REST_FPR(n, base) lfd n,8*TS_FPRWIDTH*(n)(base) argument
110 #define SAVE_VR(n,b,base) li b,16*(n); stvx n,base,b argument
116 #define REST_VR(n,b,base) li b,16*(n); lvx n,base,b argument
127 #define STXVD2X_ROT(n,b,base) XXSWAPD(n,n); \ argument
129 XXSWAPD(n,n)
132 XXSWAPD(n,n)
[all …]
/linux-5.3.11/drivers/clk/at91/
H A Dsam9x60.c59 char *n; member
71 char *n; member
74 { .n = "pioA_clk", .id = 2, },
75 { .n = "pioB_clk", .id = 3, },
76 { .n = "pioC_clk", .id = 4, },
77 { .n = "flex0_clk", .id = 5, },
78 { .n = "flex1_clk", .id = 6, },
79 { .n = "flex2_clk", .id = 7, },
122 char *n; member
275 sam9x60_periphck[i].n, in sam9x60_pmc_setup()
[all …]
H A Dsama5d4.c38 char *n; member
53 char *n; member
56 { .n = "pioD_clk", .id = 5 },
59 { .n = "icm_clk", .id = 9 },
60 { .n = "aes_clk", .id = 12 },
61 { .n = "tdes_clk", .id = 14 },
62 { .n = "sha_clk", .id = 15 },
64 { .n = "hsmc_clk", .id = 22 },
85 { .n = "pwm_clk", .id = 43 },
86 { .n = "adc_clk", .id = 44 },
[all …]
/linux-5.3.11/arch/arm/include/debug/
H A Dimx-uart.h11 #define IMX1_UART_BASE_ADDR(n) IMX1_UART##n##_BASE_ADDR argument
12 #define IMX1_UART_BASE(n) IMX1_UART_BASE_ADDR(n) argument
18 #define IMX21_UART_BASE_ADDR(n) IMX21_UART##n##_BASE_ADDR argument
19 #define IMX21_UART_BASE(n) IMX21_UART_BASE_ADDR(n) argument
27 #define IMX25_UART_BASE(n) IMX25_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
[all …]
/linux-5.3.11/sound/ppc/
H A Dsnd_ps3_reg.h23 #define PS3_AUDIO_KICK(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x00) argument
24 #define PS3_AUDIO_SOURCE(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x04) argument
25 #define PS3_AUDIO_DEST(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x08) argument
26 #define PS3_AUDIO_DMASIZE(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x0C) argument
45 #define PS3_AUDIO_AO_3WCTRL(n) (0x00006200 + 0x200 * (n)) argument
53 #define PS3_AUDIO_AO_SPD_REGBASE(n) (0x00007200 + 0x200 * (n)) argument
77 #define PS3_AUDIO_INTR_0_CHAN(n) (1 << ((n) * 2)) argument
131 #define PS3_AUDIO_AX_MCTRL_ASOMT(n) (1 << (3 - (n))) /* RWIVF */ argument
830 #define PS3_AUDIO_AO_3W_LDATA(n) (0x1000 + (0x100 * (n))) argument
831 #define PS3_AUDIO_AO_3W_RDATA(n) (0x1080 + (0x100 * (n))) argument
[all …]
/linux-5.3.11/include/linux/soundwire/
H A Dsdw_registers.h12 #define SDW_REG_SHIFT(n) (ffs(n) - 1) argument
124 #define SDW_DPN_INT(n) (0x0 + SDW_DPN_SIZE * (n)) argument
125 #define SDW_DPN_INTMASK(n) (0x1 + SDW_DPN_SIZE * (n)) argument
126 #define SDW_DPN_PORTCTRL(n) (0x2 + SDW_DPN_SIZE * (n)) argument
127 #define SDW_DPN_BLOCKCTRL1(n) (0x3 + SDW_DPN_SIZE * (n)) argument
128 #define SDW_DPN_PREPARESTATUS(n) (0x4 + SDW_DPN_SIZE * (n)) argument
129 #define SDW_DPN_PREPARECTRL(n) (0x5 + SDW_DPN_SIZE * (n)) argument
163 #define SDW_DPN_HCTRL_B0(n) (0x26 + SDW_DPN_SIZE * (n)) argument
164 #define SDW_DPN_HCTRL_B1(n) (0x36 + SDW_DPN_SIZE * (n)) argument
169 #define SDW_DPN_LANECTRL_B0(n) (0x28 + SDW_DPN_SIZE * (n)) argument
[all …]
/linux-5.3.11/drivers/usb/dwc3/
H A Dcore.h225 #define DWC3_GCTL_PWRDNSCALE(n) ((n) << 19) argument
234 #define DWC3_GCTL_PRTCAPDIR(n) ((n) << 12) argument
241 #define DWC3_GCTL_SCALEDOWN(n) ((n) << 4) argument
263 #define DWC3_GSTS_CURMOD(n) ((n) & 0x3) argument
273 #define DWC3_GUSB2PHYCFG_PHYIF(n) (n << 3) argument
286 #define DWC3_GUSB2PHYACC_ADDR(n) (n << 16) argument
288 #define DWC3_GUSB2PHYACC_DATA(n) (n & 0xff) argument
401 #define DWC3_DCTL_TRGTULST(n) ((n) << 17) argument
528 #define DWC3_DALEPENA_EP(n) BIT(n) argument
834 #define DWC3_MODE(n) ((n) & 0x7) argument
[all …]
/linux-5.3.11/drivers/gpu/drm/rcar-du/
H A Drcar_du_regs.h72 #define DSSR_DFB(n) (1 << ((n)+15)) argument
78 #define DSSR_ADC(n) (1 << ((n)-1)) argument
86 #define DSRCR_ADCL(n) (1 << ((n)-1)) argument
95 #define DIER_ADCE(n) (1 << ((n)-1)) argument
104 #define DPPR_DPE(n) (1 << ((n)*4-1)) argument
106 #define DPPR_DPS_SHIFT(n) (((n)-1)*4) argument
288 #define DPLLCR_N(n) ((n) << 5) argument
289 #define DPLLCR_M(n) ((n) << 3) argument
297 #define DPLLC2R_M(n) ((n) << 8) argument
298 #define DPLLC2R_FDPLL(n) ((n) << 0) argument
[all …]
/linux-5.3.11/drivers/gpu/drm/omapdrm/dss/
H A Ddispc.h37 #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-5.3.11/drivers/video/fbdev/omap2/omapfb/dss/
H A Ddispc.h34 #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-5.3.11/drivers/gpu/drm/panel/
H A Dpanel-sitronix-st7789v.c26 #define ST7789V_RAMCTRL_EPF(n) (((n) & 3) << 4) argument
30 #define ST7789V_RGBCTRL_RCM(n) (((n) & 3) << 5) argument
34 #define ST7789V_RGBCTRL_VBP(n) ((n) & 0x7f) argument
35 #define ST7789V_RGBCTRL_HBP(n) ((n) & 0x1f) argument
39 #define ST7789V_PORCTRL_IDLE_FP(n) ((n) & 0xf) argument
44 #define ST7789V_GCTRL_VGHS(n) (((n) & 7) << 4) argument
45 #define ST7789V_GCTRL_VGLS(n) ((n) & 7) argument
67 #define ST7789V_PWCTRL1_VDS(n) ((n) & 3) argument
72 #define ST7789V_PVGAMCTRL_VP0(n) ((n) & 0xf) argument
79 #define ST7789V_PVGAMCTRL_VP27(n) ((n) & 7) argument
[all …]
/linux-5.3.11/arch/ia64/include/asm/sn/
H A Daddrs.h110 #define NASID_SPACE(n) ((u64)(n) << NASID_SHIFT) argument
111 #define REMOTE_ADDR(n,a) (NASID_SPACE(n) | (a)) argument
116 #define GLOBAL_MMR_ADDR(n,a) (GLOBAL_MMR_SPACE | REMOTE_ADDR(n,a)) argument
118 #define GLOBAL_CAC_ADDR(n,a) (CAC_BASE | REMOTE_ADDR(n,a)) argument
120 #define IS_TIO_NASID(n) ((n) & 1) argument
194 #define TIO_SWIN_BASE(n, w) (TIO_IO_BASE(n) + \ argument
196 #define NODE_IO_BASE(n) (GLOBAL_MMR_SPACE | NASID_SPACE(n)) argument
199 #define NODE_BWIN_BASE0(n) (NODE_IO_BASE(n) + BWIN_SIZE) argument
277 (is_shub1() ? SH1_REMOTE_MMR(n,x) : SH2_REMOTE_MMR(n,x))
280 (IS_TIO_NASID(n) ? ((volatile u64*)TIO_IOSPACE_ADDR(n,x)) : \
[all …]

12345678910>>...128