/linux/include/linux/ |
A D | log2.h | 22 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 201 return n > 1 ? ilog2(n - 1) + 1 : 0; in __order_base_2() 220 ((n) == 0 || (n) == 1) ? 0 : \ 228 if (n < 2) in __bits_per() [all …]
|
/linux/tools/include/linux/ |
A D | log2.h | 21 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/drivers/media/pci/solo6x10/ |
A D | solo6x10-regs.h | 41 #define SOLO_DMA_CTRL_LATENCY(n) ((n)<<0) argument 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 125 #define SOLO_P2M_PCI_INC(n) ((n)<<20) argument 126 #define SOLO_P2M_REPEAT(n) ((n)<<10) 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 …]
|
/linux/drivers/media/common/siano/ |
A D | smsdvb-debugfs.c | 48 n += scnprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 50 n += scnprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 52 n += scnprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 54 n += scnprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 56 n += scnprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 58 n += scnprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 60 n += scnprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 62 n += scnprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 64 n += scnprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 66 n += scnprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() [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/fs/ksmbd/ |
A D | ndr.c | 14 return n->data + n->offset; in ndr_get_field() 27 memset(n->data + n->offset, 0, 1024); in try_to_realloc_ndr_blob() 78 if (n->length <= n->offset + sz) { in ndr_write_bytes() 96 if (n->length <= n->offset + sz) { in ndr_write_string() 106 n->offset = ALIGN(n->offset, 2); in ndr_write_string() 114 if (n->offset + sz > n->length) in ndr_read_string() 122 n->offset = ALIGN(n->offset, 2); in ndr_read_string() 128 if (n->offset + sz > n->length) in ndr_read_bytes() 304 n->offset = ALIGN(n->offset, 8); in ndr_encode_posix_acl_entry() 314 n->offset = ALIGN(n->offset, 8); in ndr_encode_posix_acl_entry() [all …]
|
/linux/drivers/media/cec/core/ |
A D | cec-notifier.c | 65 n = kzalloc(sizeof(*n), GFP_KERNEL); in cec_notifier_get_conn() 66 if (!n) in cec_notifier_get_conn() 84 return n; in cec_notifier_get_conn() 94 kfree(n); in cec_notifier_release() 110 if (!n) in cec_notifier_conn_register() 118 memset(&n->conn_info, 0, sizeof(n->conn_info)); in cec_notifier_conn_register() 125 return n; in cec_notifier_conn_register() 131 if (!n) in cec_notifier_conn_unregister() 135 memset(&n->conn_info, 0, sizeof(n->conn_info)); in cec_notifier_conn_unregister() 157 if (!n) in cec_notifier_cec_adap_register() [all …]
|
/linux/drivers/gpu/drm/rockchip/ |
A D | inno_hdmi.h | 101 #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/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/tools/testing/selftests/powerpc/primitives/asm/ |
A D | ppc_asm.h | 24 #define SAVE_GPR(n, base) std n,GPR0+8*(n)(base) argument 25 #define REST_GPR(n, base) ld n,GPR0+8*(n)(base) argument 29 #define SAVE_GPR(n, base) stw n,GPR0+4*(n)(base) argument 30 #define REST_GPR(n, base) lwz n,GPR0+4*(n)(base) argument 44 #define SAVE_FPR(n, base) stfd n,8*TS_FPRWIDTH*(n)(base) argument 57 #define SAVE_VR(n,b,base) li b,16*(n); stvx n,base,b argument 63 #define REST_VR(n,b,base) li b,16*(n); lvx n,base,b argument 74 #define STXVD2X_ROT(n,b,base) XXSWAPD(n,n); \ argument 76 XXSWAPD(n,n) 79 XXSWAPD(n,n) [all …]
|
/linux/arch/powerpc/include/asm/ |
A D | ppc_asm.h | 24 #define SAVE_GPR(n, base) std n,GPR0+8*(n)(base) argument 25 #define REST_GPR(n, base) ld n,GPR0+8*(n)(base) argument 29 #define SAVE_GPR(n, base) stw n,GPR0+4*(n)(base) argument 30 #define REST_GPR(n, base) lwz n,GPR0+4*(n)(base) argument 44 #define SAVE_FPR(n, base) stfd n,8*TS_FPRWIDTH*(n)(base) argument 57 #define SAVE_VR(n,b,base) li b,16*(n); stvx n,base,b argument 63 #define REST_VR(n,b,base) li b,16*(n); lvx n,base,b argument 74 #define STXVD2X_ROT(n,b,base) XXSWAPD(n,n); \ argument 76 XXSWAPD(n,n) 79 XXSWAPD(n,n) [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 21 #define LS1X_INTC_INTEDGE(n) LS1X_INTC_REG(n, 0x14) argument 154 int n; in ls1x_irq_init() local 159 for (n = 0; n < INTN; n++) { in ls1x_irq_init() 164 __raw_writel(n ? 0x0 : 0xe000, LS1X_INTC_INTEDGE(n)); in ls1x_irq_init() [all …]
|
/linux/drivers/usb/gadget/udc/ |
A D | fusb300_udc.h | 21 #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/drivers/net/ethernet/intel/igc/ |
A D | igc_dump.c | 53 for (n = 0; n < 4; n++) in igc_regdump() 57 for (n = 0; n < 4; n++) in igc_regdump() 61 for (n = 0; n < 4; n++) in igc_regdump() 65 for (n = 0; n < 4; n++) in igc_regdump() 69 for (n = 0; n < 4; n++) in igc_regdump() 73 for (n = 0; n < 4; n++) in igc_regdump() 77 for (n = 0; n < 4; n++) in igc_regdump() 81 for (n = 0; n < 4; n++) in igc_regdump() 85 for (n = 0; n < 4; n++) in igc_regdump() 89 for (n = 0; n < 4; n++) in igc_regdump() [all …]
|
/linux/arch/alpha/lib/ |
A D | memcpy.c | 29 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/sound/ppc/ |
A D | snd_ps3_reg.h | 23 #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/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 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/drivers/media/platform/vsp1/ |
A D | vsp1_regs.h | 17 #define VI6_CMD(n) (0x0000 + (n) * 4) argument 28 #define VI6_SRESET_SRTS(n) BIT(n) argument 32 #define VI6_STATUS_SYS_ACT(n) BIT((n) + 8) argument 45 #define VI6_DISP_IRQ_ENB_LNEE(n) BIT(n) argument 50 #define VI6_DISP_IRQ_STA_LNE(n) BIT(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 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/drivers/clk/at91/ |
A D | sam9x60.c | 76 char *n; member 88 char *n; member 91 { .n = "pioA_clk", .id = 2, }, 92 { .n = "pioB_clk", .id = 3, }, 93 { .n = "pioC_clk", .id = 4, }, 94 { .n = "flex0_clk", .id = 5, }, 95 { .n = "flex1_clk", .id = 6, }, 96 { .n = "flex2_clk", .id = 7, }, 139 char *n; member 329 sam9x60_periphck[i].n, in sam9x60_pmc_setup() [all …]
|
A D | sama5d4.c | 40 char *n; member 55 char *n; member 58 { .n = "pioD_clk", .id = 5 }, 61 { .n = "icm_clk", .id = 9 }, 62 { .n = "aes_clk", .id = 12 }, 63 { .n = "tdes_clk", .id = 14 }, 64 { .n = "sha_clk", .id = 15 }, 66 { .n = "hsmc_clk", .id = 22 }, 87 { .n = "pwm_clk", .id = 43 }, 88 { .n = "adc_clk", .id = 44 }, [all …]
|
/linux/drivers/gpu/drm/panel/ |
A D | panel-sitronix-st7789v.c | 25 #define ST7789V_RAMCTRL_EPF(n) (((n) & 3) << 4) argument 29 #define ST7789V_RGBCTRL_RCM(n) (((n) & 3) << 5) argument 33 #define ST7789V_RGBCTRL_VBP(n) ((n) & 0x7f) argument 34 #define ST7789V_RGBCTRL_HBP(n) ((n) & 0x1f) argument 38 #define ST7789V_PORCTRL_IDLE_FP(n) ((n) & 0xf) argument 43 #define ST7789V_GCTRL_VGHS(n) (((n) & 7) << 4) argument 44 #define ST7789V_GCTRL_VGLS(n) ((n) & 7) argument 66 #define ST7789V_PWCTRL1_VDS(n) ((n) & 3) argument 71 #define ST7789V_PVGAMCTRL_VP0(n) ((n) & 0xf) argument 78 #define ST7789V_PVGAMCTRL_VP27(n) ((n) & 7) argument [all …]
|
/linux/drivers/vhost/ |
A D | test.c | 102 handle_vq(n); in handle_vq_kick() 107 struct vhost_test *n = kmalloc(sizeof *n, GFP_KERNEL); in vhost_test_open() local 111 if (!n) in vhost_test_open() 115 kfree(n); in vhost_test_open() 119 dev = &n->dev; in vhost_test_open() 125 f->private_data = n; in vhost_test_open() 144 *privatep = vhost_test_stop_vq(n, n->vqs + VHOST_TEST_VQ); in vhost_test_stop() 163 vhost_test_flush(n); in vhost_test_release() 168 vhost_test_flush(n); in vhost_test_release() 169 kfree(n); in vhost_test_release() [all …]
|
/linux/drivers/gpu/drm/rcar-du/ |
A D | rcar_du_regs.h | 72 #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 294 #define DPLLCR_N(n) ((n) << 5) argument 295 #define DPLLCR_M(n) ((n) << 3) argument 303 #define DPLLC2R_M(n) ((n) << 8) argument 304 #define DPLLC2R_FDPLL(n) ((n) << 0) argument [all …]
|
/linux/drivers/usb/dwc3/ |
A D | core.h | 232 #define DWC3_GCTL_PWRDNSCALE(n) ((n) << 19) argument 241 #define DWC3_GCTL_PRTCAPDIR(n) ((n) << 12) argument 248 #define DWC3_GCTL_SCALEDOWN(n) ((n) << 4) argument 272 #define DWC3_GSTS_CURMOD(n) ((n) & 0x3) argument 282 #define DWC3_GUSB2PHYCFG_PHYIF(n) (n << 3) argument 296 #define DWC3_GUSB2PHYACC_ADDR(n) (n << 16) argument 298 #define DWC3_GUSB2PHYACC_DATA(n) (n & 0xff) argument 430 #define DWC3_DCTL_TRGTULST(n) ((n) << 17) argument 559 #define DWC3_DALEPENA_EP(n) BIT(n) argument 875 #define DWC3_MODE(n) ((n) & 0x7) 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 …]
|