/linux-4.4.14/drivers/clk/imx/ |
D | clk-imx7d.c | 380 void __iomem *base; in imx7d_clocks_init() local 387 base = of_iomap(np, 0); in imx7d_clocks_init() 388 WARN_ON(!base); in imx7d_clocks_init() 390 …clks[IMX7D_PLL_ARM_MAIN_SRC] = imx_clk_mux("pll_arm_main_src", base + 0x60, 14, 2, pll_bypass_src… in imx7d_clocks_init() 391 …clks[IMX7D_PLL_DRAM_MAIN_SRC] = imx_clk_mux("pll_dram_main_src", base + 0x70, 14, 2, pll_bypass_sr… in imx7d_clocks_init() 392 …clks[IMX7D_PLL_SYS_MAIN_SRC] = imx_clk_mux("pll_sys_main_src", base + 0xb0, 14, 2, pll_bypass_src… in imx7d_clocks_init() 393 …clks[IMX7D_PLL_ENET_MAIN_SRC] = imx_clk_mux("pll_enet_main_src", base + 0xe0, 14, 2, pll_bypass_sr… in imx7d_clocks_init() 394 …clks[IMX7D_PLL_AUDIO_MAIN_SRC] = imx_clk_mux("pll_audio_main_src", base + 0xf0, 14, 2, pll_bypass_… in imx7d_clocks_init() 395 …clks[IMX7D_PLL_VIDEO_MAIN_SRC] = imx_clk_mux("pll_video_main_src", base + 0x130, 14, 2, pll_bypass… in imx7d_clocks_init() 397 …clks[IMX7D_PLL_ARM_MAIN] = imx_clk_pllv3(IMX_PLLV3_SYS, "pll_arm_main", "pll_arm_main_src", base … in imx7d_clocks_init() [all …]
|
D | clk-imx6sx.c | 147 void __iomem *base; in imx6sx_clocks_init() local 163 base = of_iomap(np, 0); in imx6sx_clocks_init() 164 WARN_ON(!base); in imx6sx_clocks_init() 166 …clks[IMX6SX_PLL1_BYPASS_SRC] = imx_clk_mux("pll1_bypass_src", base + 0x00, 14, 1, pll_bypass_src_s… in imx6sx_clocks_init() 167 …clks[IMX6SX_PLL2_BYPASS_SRC] = imx_clk_mux("pll2_bypass_src", base + 0x30, 14, 1, pll_bypass_src_s… in imx6sx_clocks_init() 168 …clks[IMX6SX_PLL3_BYPASS_SRC] = imx_clk_mux("pll3_bypass_src", base + 0x10, 14, 1, pll_bypass_src_s… in imx6sx_clocks_init() 169 …clks[IMX6SX_PLL4_BYPASS_SRC] = imx_clk_mux("pll4_bypass_src", base + 0x70, 14, 1, pll_bypass_src_s… in imx6sx_clocks_init() 170 …clks[IMX6SX_PLL5_BYPASS_SRC] = imx_clk_mux("pll5_bypass_src", base + 0xa0, 14, 1, pll_bypass_src_s… in imx6sx_clocks_init() 171 …clks[IMX6SX_PLL6_BYPASS_SRC] = imx_clk_mux("pll6_bypass_src", base + 0xe0, 14, 1, pll_bypass_src_s… in imx6sx_clocks_init() 172 …clks[IMX6SX_PLL7_BYPASS_SRC] = imx_clk_mux("pll7_bypass_src", base + 0x20, 14, 1, pll_bypass_src_s… in imx6sx_clocks_init() [all …]
|
D | clk-imx6ul.c | 109 void __iomem *base; in imx6ul_clocks_init() local 122 base = of_iomap(np, 0); in imx6ul_clocks_init() 123 WARN_ON(!base); in imx6ul_clocks_init() 125 …clks[IMX6UL_PLL1_BYPASS_SRC] = imx_clk_mux("pll1_bypass_src", base + 0x00, 14, 1, pll_bypass_src_s… in imx6ul_clocks_init() 126 …clks[IMX6UL_PLL2_BYPASS_SRC] = imx_clk_mux("pll2_bypass_src", base + 0x30, 14, 1, pll_bypass_src_s… in imx6ul_clocks_init() 127 …clks[IMX6UL_PLL3_BYPASS_SRC] = imx_clk_mux("pll3_bypass_src", base + 0x10, 14, 1, pll_bypass_src_s… in imx6ul_clocks_init() 128 …clks[IMX6UL_PLL4_BYPASS_SRC] = imx_clk_mux("pll4_bypass_src", base + 0x70, 14, 1, pll_bypass_src_s… in imx6ul_clocks_init() 129 …clks[IMX6UL_PLL5_BYPASS_SRC] = imx_clk_mux("pll5_bypass_src", base + 0xa0, 14, 1, pll_bypass_src_s… in imx6ul_clocks_init() 130 …clks[IMX6UL_PLL6_BYPASS_SRC] = imx_clk_mux("pll6_bypass_src", base + 0xe0, 14, 1, pll_bypass_src_s… in imx6ul_clocks_init() 131 …clks[IMX6UL_PLL7_BYPASS_SRC] = imx_clk_mux("pll7_bypass_src", base + 0x20, 14, 1, pll_bypass_src_s… in imx6ul_clocks_init() [all …]
|
D | clk-imx6q.c | 143 void __iomem *base; in imx6q_clocks_init() local 156 base = of_iomap(np, 0); in imx6q_clocks_init() 157 WARN_ON(!base); in imx6q_clocks_init() 167 …clk[IMX6QDL_PLL1_BYPASS_SRC] = imx_clk_mux("pll1_bypass_src", base + 0x00, 14, 2, pll_bypass_src_s… in imx6q_clocks_init() 168 …clk[IMX6QDL_PLL2_BYPASS_SRC] = imx_clk_mux("pll2_bypass_src", base + 0x30, 14, 2, pll_bypass_src_s… in imx6q_clocks_init() 169 …clk[IMX6QDL_PLL3_BYPASS_SRC] = imx_clk_mux("pll3_bypass_src", base + 0x10, 14, 2, pll_bypass_src_s… in imx6q_clocks_init() 170 …clk[IMX6QDL_PLL4_BYPASS_SRC] = imx_clk_mux("pll4_bypass_src", base + 0x70, 14, 2, pll_bypass_src_s… in imx6q_clocks_init() 171 …clk[IMX6QDL_PLL5_BYPASS_SRC] = imx_clk_mux("pll5_bypass_src", base + 0xa0, 14, 2, pll_bypass_src_s… in imx6q_clocks_init() 172 …clk[IMX6QDL_PLL6_BYPASS_SRC] = imx_clk_mux("pll6_bypass_src", base + 0xe0, 14, 2, pll_bypass_src_s… in imx6q_clocks_init() 173 …clk[IMX6QDL_PLL7_BYPASS_SRC] = imx_clk_mux("pll7_bypass_src", base + 0x20, 14, 2, pll_bypass_src_s… in imx6q_clocks_init() [all …]
|
D | clk-imx6sl.c | 197 void __iomem *base; in imx6sl_clocks_init() local 208 base = of_iomap(np, 0); in imx6sl_clocks_init() 209 WARN_ON(!base); in imx6sl_clocks_init() 210 anatop_base = base; in imx6sl_clocks_init() 212 …clks[IMX6SL_PLL1_BYPASS_SRC] = imx_clk_mux("pll1_bypass_src", base + 0x00, 14, 1, pll_bypass_src_s… in imx6sl_clocks_init() 213 …clks[IMX6SL_PLL2_BYPASS_SRC] = imx_clk_mux("pll2_bypass_src", base + 0x30, 14, 1, pll_bypass_src_s… in imx6sl_clocks_init() 214 …clks[IMX6SL_PLL3_BYPASS_SRC] = imx_clk_mux("pll3_bypass_src", base + 0x10, 14, 1, pll_bypass_src_s… in imx6sl_clocks_init() 215 …clks[IMX6SL_PLL4_BYPASS_SRC] = imx_clk_mux("pll4_bypass_src", base + 0x70, 14, 1, pll_bypass_src_s… in imx6sl_clocks_init() 216 …clks[IMX6SL_PLL5_BYPASS_SRC] = imx_clk_mux("pll5_bypass_src", base + 0xa0, 14, 1, pll_bypass_src_s… in imx6sl_clocks_init() 217 …clks[IMX6SL_PLL6_BYPASS_SRC] = imx_clk_mux("pll6_bypass_src", base + 0xe0, 14, 1, pll_bypass_src_s… in imx6sl_clocks_init() [all …]
|
D | clk-imx35.c | 97 void __iomem *base; in _mx35_clocks_init() local 102 base = ioremap(MX35_CCM_BASE_ADDR, SZ_4K); in _mx35_clocks_init() 103 BUG_ON(!base); in _mx35_clocks_init() 105 pdr0 = __raw_readl(base + MXC_CCM_PDR0); in _mx35_clocks_init() 119 clk[mpll] = imx_clk_pllv1(IMX_PLLV1_IMX35, "mpll", "ckih", base + MX35_CCM_MPCTL); in _mx35_clocks_init() 120 clk[ppll] = imx_clk_pllv1(IMX_PLLV1_IMX35, "ppll", "ckih", base + MX35_CCM_PPCTL); in _mx35_clocks_init() 145 clk[arm_per_div] = imx_clk_divider("arm_per_div", "arm", base + MX35_CCM_PDR4, 16, 6); in _mx35_clocks_init() 146 clk[ahb_per_div] = imx_clk_divider("ahb_per_div", "ahb", base + MXC_CCM_PDR0, 12, 3); in _mx35_clocks_init() 147 …clk[ipg_per] = imx_clk_mux("ipg_per", base + MXC_CCM_PDR0, 26, 1, ipg_per_sel, ARRAY_SIZE(ipg_per_… in _mx35_clocks_init() 149 clk[uart_sel] = imx_clk_mux("uart_sel", base + MX35_CCM_PDR3, 14, 1, std_sel, ARRAY_SIZE(std_sel)); in _mx35_clocks_init() [all …]
|
D | clk-imx31.c | 77 void __iomem *base; in _mx31_clocks_init() local 80 base = ioremap(MX31_CCM_BASE_ADDR, SZ_4K); in _mx31_clocks_init() 81 BUG_ON(!base); in _mx31_clocks_init() 86 clk[mpll] = imx_clk_pllv1(IMX_PLLV1_IMX31, "mpll", "ckih", base + MXC_CCM_MPCTL); in _mx31_clocks_init() 87 clk[spll] = imx_clk_pllv1(IMX_PLLV1_IMX31, "spll", "ckih", base + MXC_CCM_SRPCTL); in _mx31_clocks_init() 88 clk[upll] = imx_clk_pllv1(IMX_PLLV1_IMX31, "upll", "ckih", base + MXC_CCM_UPCTL); in _mx31_clocks_init() 89 …clk[mcu_main] = imx_clk_mux("mcu_main", base + MXC_CCM_PMCR0, 31, 1, mcu_main_sel, ARRAY_SIZE(mcu_… in _mx31_clocks_init() 90 clk[hsp] = imx_clk_divider("hsp", "mcu_main", base + MXC_CCM_PDR0, 11, 3); in _mx31_clocks_init() 91 clk[ahb] = imx_clk_divider("ahb", "mcu_main", base + MXC_CCM_PDR0, 3, 3); in _mx31_clocks_init() 92 clk[nfc] = imx_clk_divider("nfc", "ahb", base + MXC_CCM_PDR0, 8, 3); in _mx31_clocks_init() [all …]
|
/linux-4.4.14/drivers/scsi/ |
D | aha1740.h | 18 #define HID0(base) (base + 0x0) argument 19 #define HID1(base) (base + 0x1) argument 20 #define HID2(base) (base + 0x2) argument 21 #define HID3(base) (base + 0x3) argument 22 #define EBCNTRL(base) (base + 0x4) argument 23 #define PORTADR(base) (base + 0x40) argument 24 #define BIOSADR(base) (base + 0x41) argument 25 #define INTDEF(base) (base + 0x42) argument 26 #define SCSIDEF(base) (base + 0x43) argument 27 #define BUSDEF(base) (base + 0x44) argument [all …]
|
D | nsp32_io.h | 12 static inline void nsp32_write1(unsigned int base, in nsp32_write1() argument 16 outb(val, (base + index)); in nsp32_write1() 19 static inline unsigned char nsp32_read1(unsigned int base, in nsp32_read1() argument 22 return inb(base + index); in nsp32_read1() 25 static inline void nsp32_write2(unsigned int base, in nsp32_write2() argument 29 outw(val, (base + index)); in nsp32_write2() 32 static inline unsigned short nsp32_read2(unsigned int base, in nsp32_read2() argument 35 return inw(base + index); in nsp32_read2() 38 static inline void nsp32_write4(unsigned int base, in nsp32_write4() argument 42 outl(val, (base + index)); in nsp32_write4() [all …]
|
D | sym53c416.c | 213 int base; member 232 static void sym53c416_set_transfer_counter(int base, unsigned int len) in sym53c416_set_transfer_counter() argument 235 outb(len & 0x0000FF, base + TC_LOW); in sym53c416_set_transfer_counter() 236 outb((len & 0x00FF00) >> 8, base + TC_MID); in sym53c416_set_transfer_counter() 237 outb((len & 0xFF0000) >> 16, base + TC_HIGH); in sym53c416_set_transfer_counter() 243 static __inline__ unsigned int sym53c416_read(int base, unsigned char *buffer, unsigned int len) in sym53c416_read() argument 255 bytes_left = inb(base + PIO_FIFO_CNT); /* Number of bytes in the PIO FIFO */ in sym53c416_read() 258 insl(base + PIO_FIFO_1, buffer, bytes_left >> 2); in sym53c416_read() 266 *(buffer++) = inb(base + PIO_FIFO_1); in sym53c416_read() 272 while(time_before(jiffies, i) && (inb(base + PIO_INT_REG) & EMPTY) && timeout) in sym53c416_read() [all …]
|
D | eata_pio.c | 106 seq_printf(m, "Base IO : %#.4x\n", (u32) shost->base); in eata_pio_show_info() 164 unsigned long base; in eata_pio_int_handler() local 175 if (inb(sh->base + HA_RSTATUS) & HA_SBUSY) in eata_pio_int_handler() 185 base = cmd->device->host->base; in eata_pio_int_handler() 188 stat = inb(base + HA_RSTATUS); in eata_pio_int_handler() 200 insw(base + HA_RDATA, cmd->SCp.ptr, x); in eata_pio_int_handler() 204 zwickel = inw(base + HA_RDATA); in eata_pio_int_handler() 212 zwickel = inw(base + HA_RDATA); in eata_pio_int_handler() 223 outw(zwickel, base + HA_RDATA); in eata_pio_int_handler() 228 outsw(base + HA_RDATA, cmd->SCp.ptr, x); in eata_pio_int_handler() [all …]
|
D | nsp32_debug.c | 228 static void nsp32_print_register(int base) in nsp32_print_register() argument 233 printk("Phase=0x%x, ", nsp32_read1(base, SCSI_BUS_MONITOR)); in nsp32_print_register() 234 printk("OldPhase=0x%x, ", nsp32_index_read1(base, OLD_SCSI_PHASE)); in nsp32_print_register() 235 printk("syncreg=0x%x, ", nsp32_read1(base, SYNC_REG)); in nsp32_print_register() 236 printk("ackwidth=0x%x, ", nsp32_read1(base, ACK_WIDTH)); in nsp32_print_register() 237 printk("sgtpaddr=0x%lx, ", nsp32_read4(base, SGT_ADR)); in nsp32_print_register() 238 printk("scsioutlatch=0x%x, ", nsp32_read1(base, SCSI_OUT_LATCH_TARGET_ID)); in nsp32_print_register() 239 printk("msgout=0x%lx, ", nsp32_read4(base, SCSI_MSG_OUT)); in nsp32_print_register() 240 printk("miscrd=0x%x, ", nsp32_index_read2(base, MISC_WR)); in nsp32_print_register() 241 printk("seltimeout=0x%x, ", nsp32_read2(base, SEL_TIME_OUT)); in nsp32_print_register() [all …]
|
D | a100u2w.c | 144 if (inb(host->base + ORC_HCTRL) & HOSTSTOP) /* Wait HOSTSTOP set */ in wait_chip_ready() 156 if (inb(host->base + ORC_HSTUS) & RREADY) /* Wait READY set */ in wait_firmware_ready() 169 if (!(inb(host->base + ORC_HCTRL) & SCSIRST)) /* Wait SCSIRST done */ in wait_scsi_reset_done() 182 if (!(inb(host->base + ORC_HCTRL) & HDO)) /* Wait HDO off */ in wait_HDO_off() 195 if ((*data = inb(host->base + ORC_HSTUS)) & HDI) in wait_hdi_set() 208 outb(ORC_CMD_VERSION, host->base + ORC_HDATA); in orc_read_fwrev() 209 outb(HDO, host->base + ORC_HCTRL); in orc_read_fwrev() 215 version = inb(host->base + ORC_HDATA); in orc_read_fwrev() 216 outb(data, host->base + ORC_HSTUS); /* Clear HDI */ in orc_read_fwrev() 220 version |= inb(host->base + ORC_HDATA) << 8; in orc_read_fwrev() [all …]
|
D | t128.c | 98 static struct base { struct 170 unsigned long base; in t128_detect() local 175 base = 0; in t128_detect() 179 base = overrides[current_override].address; in t128_detect() 182 base = 0; in t128_detect() 184 for (; !base && (current_base < NO_BASES); ++current_base) { in t128_detect() 197 base = bases[current_base].address; in t128_detect() 207 printk("scsi-t128 : base = %08x\n", (unsigned int) base); in t128_detect() 210 if (!base) in t128_detect() 218 instance->base = base; in t128_detect() [all …]
|
D | nsp32.c | 438 unsigned int base = SCpnt->host->io_port; 446 nsp32_write2(base, TIMER_SET, time & TIMER_CNT_MASK); 457 unsigned int base = SCpnt->device->host->io_port; in nsp32_selection_autopara() local 471 phase = nsp32_read1(base, SCSI_BUS_MONITOR); in nsp32_selection_autopara() 569 nsp32_write4(base, SGT_ADR, data->auto_paddr); in nsp32_selection_autopara() 570 nsp32_write2(base, COMMAND_CONTROL, CLEAR_CDB_FIFO_POINTER | in nsp32_selection_autopara() 576 ret = nsp32_arbitration(SCpnt, base); in nsp32_selection_autopara() 588 unsigned int base = SCpnt->device->host->io_port; in nsp32_selection_autoscsi() local 603 nsp32_write2(base, IRQ_CONTROL, IRQ_CONTROL_ALL_IRQ_MASK); in nsp32_selection_autoscsi() 608 phase = nsp32_read1(base, SCSI_BUS_MONITOR); in nsp32_selection_autoscsi() [all …]
|
/linux-4.4.14/drivers/video/fbdev/omap2/dss/ |
D | hdmi5_core.c | 52 void __iomem *base = core->base; in hdmi_core_ddc_init() local 67 REG_FLD_MOD(base, HDMI_CORE_I2CM_SOFTRSTZ, 0, 0, 0); in hdmi_core_ddc_init() 68 if (hdmi_wait_for_bit_change(base, HDMI_CORE_I2CM_SOFTRSTZ, in hdmi_core_ddc_init() 73 REG_FLD_MOD(base, HDMI_CORE_I2CM_DIV, 0, 3, 3); in hdmi_core_ddc_init() 77 REG_FLD_MOD(base, HDMI_CORE_I2CM_SS_SCL_HCNT_1_ADDR, in hdmi_core_ddc_init() 79 REG_FLD_MOD(base, HDMI_CORE_I2CM_SS_SCL_HCNT_0_ADDR, in hdmi_core_ddc_init() 84 REG_FLD_MOD(base, HDMI_CORE_I2CM_SS_SCL_LCNT_1_ADDR, in hdmi_core_ddc_init() 86 REG_FLD_MOD(base, HDMI_CORE_I2CM_SS_SCL_LCNT_0_ADDR, in hdmi_core_ddc_init() 91 REG_FLD_MOD(base, HDMI_CORE_I2CM_FS_SCL_HCNT_1_ADDR, in hdmi_core_ddc_init() 93 REG_FLD_MOD(base, HDMI_CORE_I2CM_FS_SCL_HCNT_0_ADDR, in hdmi_core_ddc_init() [all …]
|
D | hdmi_wp.c | 24 #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, hdmi_read_reg(wp->base, r)) in hdmi_wp_dump() 48 return hdmi_read_reg(wp->base, HDMI_WP_IRQSTATUS); in hdmi_wp_get_irqstatus() 53 hdmi_write_reg(wp->base, HDMI_WP_IRQSTATUS, irqstatus); in hdmi_wp_set_irqstatus() 55 hdmi_read_reg(wp->base, HDMI_WP_IRQSTATUS); in hdmi_wp_set_irqstatus() 60 hdmi_write_reg(wp->base, HDMI_WP_IRQENABLE_SET, mask); in hdmi_wp_set_irqenable() 65 hdmi_write_reg(wp->base, HDMI_WP_IRQENABLE_CLR, mask); in hdmi_wp_clear_irqenable() 72 if (REG_GET(wp->base, HDMI_WP_PWR_CTRL, 5, 4) == val) in hdmi_wp_set_phy_pwr() 76 REG_FLD_MOD(wp->base, HDMI_WP_PWR_CTRL, val, 7, 6); in hdmi_wp_set_phy_pwr() 79 if (hdmi_wait_for_bit_change(wp->base, HDMI_WP_PWR_CTRL, 5, 4, val) in hdmi_wp_set_phy_pwr() 92 REG_FLD_MOD(wp->base, HDMI_WP_PWR_CTRL, val, 3, 2); in hdmi_wp_set_pll_pwr() [all …]
|
/linux-4.4.14/drivers/isdn/hardware/avm/ |
D | avmcard.h | 219 static inline unsigned char b1outp(unsigned int base, in b1outp() argument 223 outb(value, base + offset); in b1outp() 224 return inb(base + B1_ANALYSE); in b1outp() 228 static inline int b1_rx_full(unsigned int base) in b1_rx_full() argument 230 return inb(base + B1_INSTAT) & 0x1; in b1_rx_full() 233 static inline unsigned char b1_get_byte(unsigned int base) in b1_get_byte() argument 236 while (!b1_rx_full(base) && time_before(jiffies, stop)); in b1_get_byte() 237 if (b1_rx_full(base)) in b1_get_byte() 238 return inb(base + B1_READ); in b1_get_byte() 239 printk(KERN_CRIT "b1lli(0x%x): rx not full after 1 second\n", base); in b1_get_byte() [all …]
|
/linux-4.4.14/arch/mips/alchemy/common/ |
D | usb.c | 97 static inline void __au1300_usb_phyctl(void __iomem *base, int enable) in __au1300_usb_phyctl() argument 101 r = __raw_readl(base + USB_DWC_CTRL2); in __au1300_usb_phyctl() 102 s = __raw_readl(base + USB_DWC_CTRL3); in __au1300_usb_phyctl() 111 __raw_writel(r, base + USB_DWC_CTRL2); in __au1300_usb_phyctl() 117 __raw_writel(r, base + USB_DWC_CTRL2); in __au1300_usb_phyctl() 122 static inline void __au1300_ohci_control(void __iomem *base, int enable, int id) in __au1300_ohci_control() argument 127 __raw_writel(1, base + USB_DWC_CTRL7); /* start OHCI clock */ in __au1300_ohci_control() 130 r = __raw_readl(base + USB_DWC_CTRL3); /* enable OHCI block */ in __au1300_ohci_control() 133 __raw_writel(r, base + USB_DWC_CTRL3); in __au1300_ohci_control() 136 __au1300_usb_phyctl(base, enable); /* power up the PHYs */ in __au1300_ohci_control() [all …]
|
D | irq.c | 291 void __iomem *base = (void __iomem *)KSEG1ADDR(AU1000_IC0_PHYS_ADDR); in au1x_ic0_unmask() local 293 __raw_writel(1 << bit, base + IC_MASKSET); in au1x_ic0_unmask() 294 __raw_writel(1 << bit, base + IC_WAKESET); in au1x_ic0_unmask() 301 void __iomem *base = (void __iomem *)KSEG1ADDR(AU1000_IC1_PHYS_ADDR); in au1x_ic1_unmask() local 303 __raw_writel(1 << bit, base + IC_MASKSET); in au1x_ic1_unmask() 304 __raw_writel(1 << bit, base + IC_WAKESET); in au1x_ic1_unmask() 311 void __iomem *base = (void __iomem *)KSEG1ADDR(AU1000_IC0_PHYS_ADDR); in au1x_ic0_mask() local 313 __raw_writel(1 << bit, base + IC_MASKCLR); in au1x_ic0_mask() 314 __raw_writel(1 << bit, base + IC_WAKECLR); in au1x_ic0_mask() 321 void __iomem *base = (void __iomem *)KSEG1ADDR(AU1000_IC1_PHYS_ADDR); in au1x_ic1_mask() local [all …]
|
D | vss.c | 24 void __iomem *base = (void __iomem *)VSS_ADDR(block); in __enable_block() local 26 __raw_writel(3, base + VSS_CLKRST); /* enable clock, assert reset */ in __enable_block() 29 __raw_writel(0x01fffffe, base + VSS_GATE); /* maximum setup time */ in __enable_block() 33 __raw_writel(0x01, base + VSS_FTR); in __enable_block() 35 __raw_writel(0x03, base + VSS_FTR); in __enable_block() 37 __raw_writel(0x07, base + VSS_FTR); in __enable_block() 39 __raw_writel(0x0f, base + VSS_FTR); in __enable_block() 42 __raw_writel(0x01ffffff, base + VSS_GATE); /* start FSM too */ in __enable_block() 45 __raw_writel(2, base + VSS_CLKRST); /* deassert reset */ in __enable_block() 48 __raw_writel(0x1f, base + VSS_FTR); /* enable isolation cells */ in __enable_block() [all …]
|
/linux-4.4.14/drivers/media/platform/s5p-jpeg/ |
D | jpeg-hw-exynos4.c | 19 void exynos4_jpeg_sw_reset(void __iomem *base) in exynos4_jpeg_sw_reset() argument 23 reg = readl(base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_sw_reset() 24 writel(reg & ~EXYNOS4_SOFT_RESET_HI, base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_sw_reset() 28 writel(reg | EXYNOS4_SOFT_RESET_HI, base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_sw_reset() 31 void exynos4_jpeg_set_enc_dec_mode(void __iomem *base, unsigned int mode) in exynos4_jpeg_set_enc_dec_mode() argument 35 reg = readl(base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_enc_dec_mode() 40 base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_enc_dec_mode() 44 base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_enc_dec_mode() 48 void __exynos4_jpeg_set_img_fmt(void __iomem *base, unsigned int img_fmt, in __exynos4_jpeg_set_img_fmt() argument 63 reg = readl(base + EXYNOS4_IMG_FMT_REG) & in __exynos4_jpeg_set_img_fmt() [all …]
|
D | jpeg-hw-exynos4.h | 16 void exynos4_jpeg_sw_reset(void __iomem *base); 17 void exynos4_jpeg_set_enc_dec_mode(void __iomem *base, unsigned int mode); 18 void __exynos4_jpeg_set_img_fmt(void __iomem *base, unsigned int img_fmt, 20 void __exynos4_jpeg_set_enc_out_fmt(void __iomem *base, unsigned int out_fmt, 22 void exynos4_jpeg_set_enc_tbl(void __iomem *base); 23 void exynos4_jpeg_set_interrupt(void __iomem *base, unsigned int version); 24 unsigned int exynos4_jpeg_get_int_status(void __iomem *base); 25 void exynos4_jpeg_set_huf_table_enable(void __iomem *base, int value); 26 void exynos4_jpeg_set_sys_int_enable(void __iomem *base, int value); 27 void exynos4_jpeg_set_stream_buf_address(void __iomem *base, [all …]
|
/linux-4.4.14/drivers/ata/ |
D | pata_bf54x.c | 77 #define ATAPI_GET_CONTROL(base)\ argument 78 bfin_read16(base + ATAPI_OFFSET_CONTROL) 79 #define ATAPI_SET_CONTROL(base, val)\ argument 80 bfin_write16(base + ATAPI_OFFSET_CONTROL, val) 81 #define ATAPI_GET_STATUS(base)\ argument 82 bfin_read16(base + ATAPI_OFFSET_STATUS) 83 #define ATAPI_GET_DEV_ADDR(base)\ argument 84 bfin_read16(base + ATAPI_OFFSET_DEV_ADDR) 85 #define ATAPI_SET_DEV_ADDR(base, val)\ argument 86 bfin_write16(base + ATAPI_OFFSET_DEV_ADDR, val) [all …]
|
D | sata_rcar.c | 153 void __iomem *base; member 160 void __iomem *base = priv->base; in sata_rcar_gen1_phy_preinit() local 163 iowrite32(0, base + SATAPHYADDR_REG); in sata_rcar_gen1_phy_preinit() 165 iowrite32(SATAPHYRESET_PHYRST, base + SATAPHYRESET_REG); in sata_rcar_gen1_phy_preinit() 168 iowrite32(0, base + SATAPHYRESET_REG); in sata_rcar_gen1_phy_preinit() 174 void __iomem *base = priv->base; in sata_rcar_gen1_phy_write() local 178 iowrite32(0, base + SATAPHYRESET_REG); in sata_rcar_gen1_phy_write() 180 iowrite32(SATAPHYACCEN_PHYLANE, base + SATAPHYACCEN_REG); in sata_rcar_gen1_phy_write() 182 iowrite32(val, base + SATAPHYWDATA_REG); in sata_rcar_gen1_phy_write() 187 iowrite32(SATAPHYADDR_PHYCMD_WRITE | reg, base + SATAPHYADDR_REG); in sata_rcar_gen1_phy_write() [all …]
|
D | pata_ninja32.c | 91 static void ninja32_program(void __iomem *base) in ninja32_program() argument 93 iowrite8(0x05, base + 0x01); /* Enable interrupt lines */ in ninja32_program() 94 iowrite8(0xBE, base + 0x02); /* Burst, ?? setup */ in ninja32_program() 95 iowrite8(0x01, base + 0x03); /* Unknown */ in ninja32_program() 96 iowrite8(0x20, base + 0x04); /* WAIT0 */ in ninja32_program() 97 iowrite8(0x8f, base + 0x05); /* Unknown */ in ninja32_program() 98 iowrite8(0xa4, base + 0x1c); /* Unknown */ in ninja32_program() 99 iowrite8(0x83, base + 0x1d); /* BMDMA control: WAIT0 */ in ninja32_program() 106 void __iomem *base; in ninja32_init_one() local 135 base = host->iomap[0]; in ninja32_init_one() [all …]
|
/linux-4.4.14/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy_28nm.c | 20 void __iomem *base = phy->base; in dsi_28nm_dphy_set_timing() local 22 dsi_phy_write(base + REG_DSI_28nm_PHY_TIMING_CTRL_0, in dsi_28nm_dphy_set_timing() 24 dsi_phy_write(base + REG_DSI_28nm_PHY_TIMING_CTRL_1, in dsi_28nm_dphy_set_timing() 26 dsi_phy_write(base + REG_DSI_28nm_PHY_TIMING_CTRL_2, in dsi_28nm_dphy_set_timing() 29 dsi_phy_write(base + REG_DSI_28nm_PHY_TIMING_CTRL_3, in dsi_28nm_dphy_set_timing() 31 dsi_phy_write(base + REG_DSI_28nm_PHY_TIMING_CTRL_4, in dsi_28nm_dphy_set_timing() 33 dsi_phy_write(base + REG_DSI_28nm_PHY_TIMING_CTRL_5, in dsi_28nm_dphy_set_timing() 35 dsi_phy_write(base + REG_DSI_28nm_PHY_TIMING_CTRL_6, in dsi_28nm_dphy_set_timing() 37 dsi_phy_write(base + REG_DSI_28nm_PHY_TIMING_CTRL_7, in dsi_28nm_dphy_set_timing() 39 dsi_phy_write(base + REG_DSI_28nm_PHY_TIMING_CTRL_8, in dsi_28nm_dphy_set_timing() [all …]
|
D | dsi_phy_20nm.c | 20 void __iomem *base = phy->base; in dsi_20nm_dphy_set_timing() local 22 dsi_phy_write(base + REG_DSI_20nm_PHY_TIMING_CTRL_0, in dsi_20nm_dphy_set_timing() 24 dsi_phy_write(base + REG_DSI_20nm_PHY_TIMING_CTRL_1, in dsi_20nm_dphy_set_timing() 26 dsi_phy_write(base + REG_DSI_20nm_PHY_TIMING_CTRL_2, in dsi_20nm_dphy_set_timing() 29 dsi_phy_write(base + REG_DSI_20nm_PHY_TIMING_CTRL_3, in dsi_20nm_dphy_set_timing() 31 dsi_phy_write(base + REG_DSI_20nm_PHY_TIMING_CTRL_4, in dsi_20nm_dphy_set_timing() 33 dsi_phy_write(base + REG_DSI_20nm_PHY_TIMING_CTRL_5, in dsi_20nm_dphy_set_timing() 35 dsi_phy_write(base + REG_DSI_20nm_PHY_TIMING_CTRL_6, in dsi_20nm_dphy_set_timing() 37 dsi_phy_write(base + REG_DSI_20nm_PHY_TIMING_CTRL_7, in dsi_20nm_dphy_set_timing() 39 dsi_phy_write(base + REG_DSI_20nm_PHY_TIMING_CTRL_8, in dsi_20nm_dphy_set_timing() [all …]
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_fw_defs.h | 15 #define CSTORM_ASSERT_LIST_INDEX_OFFSET (IRO[152].base) 17 (IRO[151].base + ((assertListEntry) * IRO[151].m1)) 19 (IRO[157].base + (((pfId)>>1) * IRO[157].m1) + (((pfId)&1) * \ 22 (IRO[158].base + (((pfId)>>1) * IRO[158].m1) + (((pfId)&1) * \ 25 (IRO[163].base + ((funcId) * IRO[163].m1)) 27 (IRO[153].base + ((funcId) * IRO[153].m1)) 29 (IRO[143].base + ((hcIndex) * IRO[143].m1) + ((sbId) * IRO[143].m2)) 31 (IRO[142].base + (((hcIndex)>>2) * IRO[142].m1) + (((hcIndex)&3) \ 33 #define CSTORM_IGU_MODE_OFFSET (IRO[161].base) 35 (IRO[323].base + ((pfId) * IRO[323].m1)) [all …]
|
/linux-4.4.14/drivers/phy/ |
D | phy-qcom-apq8064-sata.c | 100 void __iomem *base = phy->mmio; in qcom_apq8064_sata_phy_init() local 104 writel_relaxed(0x01, base + SATA_PHY_SER_CTRL); in qcom_apq8064_sata_phy_init() 105 writel_relaxed(0xB1, base + SATA_PHY_POW_DWN_CTRL0); in qcom_apq8064_sata_phy_init() 110 writel_relaxed(0x01, base + SATA_PHY_POW_DWN_CTRL0); in qcom_apq8064_sata_phy_init() 111 writel_relaxed(0x3E, base + SATA_PHY_POW_DWN_CTRL1); in qcom_apq8064_sata_phy_init() 112 writel_relaxed(0x01, base + SATA_PHY_RX_IMCAL0); in qcom_apq8064_sata_phy_init() 113 writel_relaxed(0x01, base + SATA_PHY_TX_IMCAL0); in qcom_apq8064_sata_phy_init() 114 writel_relaxed(0x02, base + SATA_PHY_TX_IMCAL2); in qcom_apq8064_sata_phy_init() 117 writel_relaxed(0x04, base + UNIPHY_PLL_REFCLK_CFG); in qcom_apq8064_sata_phy_init() 118 writel_relaxed(0x00, base + UNIPHY_PLL_PWRGEN_CFG); in qcom_apq8064_sata_phy_init() [all …]
|
D | phy-miphy28lp.c | 208 void __iomem *base; member 370 void __iomem *base = miphy_phy->base; in miphy28lp_set_reset() local 374 writeb_relaxed(RST_APPLI_SW, base + MIPHY_CONF_RESET); in miphy28lp_set_reset() 377 writeb_relaxed(val, base + MIPHY_CONF_RESET); in miphy28lp_set_reset() 379 writeb_relaxed(RST_APPLI_SW, base + MIPHY_CONF_RESET); in miphy28lp_set_reset() 384 writeb_relaxed(val, base + MIPHY_CONTROL); in miphy28lp_set_reset() 387 writeb_relaxed(val, base + MIPHY_CONTROL); in miphy28lp_set_reset() 394 void __iomem *base = miphy_phy->base; in miphy28lp_pll_calibration() local 398 writeb_relaxed(0x1d, base + MIPHY_PLL_SPAREIN); in miphy28lp_pll_calibration() 399 writeb_relaxed(pll_ratio->clk_ref, base + MIPHY_PLL_CLKREF_FREQ); in miphy28lp_pll_calibration() [all …]
|
D | phy-pxa-28nm-usb2.c | 146 void __iomem *base; member 165 void __iomem *base = mv_phy->base; in mv_usb2_phy_28nm_init() local 172 reg = readl(base + PHY_28NM_PLL_REG0) & in mv_usb2_phy_28nm_init() 179 base + PHY_28NM_PLL_REG0); in mv_usb2_phy_28nm_init() 182 reg = readl(base + PHY_28NM_PLL_REG1); in mv_usb2_phy_28nm_init() 184 base + PHY_28NM_PLL_REG1); in mv_usb2_phy_28nm_init() 187 reg = readl(base + PHY_28NM_TX_REG0) & ~PHY_28NM_TX_AMP_MASK; in mv_usb2_phy_28nm_init() 190 base + PHY_28NM_TX_REG0); in mv_usb2_phy_28nm_init() 193 reg = readl(base + PHY_28NM_RX_REG0) & ~PHY_28NM_RX_SQ_THRESH_MASK; in mv_usb2_phy_28nm_init() 195 base + PHY_28NM_RX_REG0); in mv_usb2_phy_28nm_init() [all …]
|
D | phy-pxa-28nm-hsic.c | 52 void __iomem *base; member 71 void __iomem *base = mv_phy->base; in mv_hsic_phy_init() local 79 base + PHY_28NM_HSIC_PLL_CTRL01); in mv_hsic_phy_init() 82 writel(readl(base + PHY_28NM_HSIC_PLL_CTRL2) | in mv_hsic_phy_init() 84 base + PHY_28NM_HSIC_PLL_CTRL2); in mv_hsic_phy_init() 87 if (!wait_for_reg(base + PHY_28NM_HSIC_PLL_CTRL2, in mv_hsic_phy_init() 101 void __iomem *base = mv_phy->base; in mv_hsic_phy_power_on() local 104 reg = readl(base + PHY_28NM_HSIC_CTRL); in mv_hsic_phy_power_on() 108 writel(reg, base + PHY_28NM_HSIC_CTRL); in mv_hsic_phy_power_on() 120 if (!wait_for_reg(base + PHY_28NM_HSIC_IMPCAL_CAL, in mv_hsic_phy_power_on() [all …]
|
D | phy-miphy365x.c | 140 void __iomem *base; member 196 writeb_relaxed(val, miphy_phy->base + CTRL_REG); in miphy365x_init_pcie_port() 197 writeb_relaxed(0x00, miphy_phy->base + PCIE_REG); in miphy365x_init_pcie_port() 211 regval = readb_relaxed(miphy_phy->base + STATUS_REG); in miphy365x_hfc_not_rdy() 230 regval = readb_relaxed(miphy_phy->base + STATUS_REG); in miphy365x_rdy() 248 miphy_phy->base + COMP_CTRL2_REG); in miphy365x_set_comp() 251 miphy_phy->base + COMP_CTRL2_REG); in miphy365x_set_comp() 255 miphy_phy->base + COMP_CTRL3_REG); in miphy365x_set_comp() 261 writeb_relaxed(BYPASS_PLL_CAL, miphy_phy->base + PLL_CTRL2_REG); in miphy365x_set_comp() 262 writeb_relaxed(COMZC_IDLL, miphy_phy->base + COMP_IDLL_REG); in miphy365x_set_comp() [all …]
|
D | phy-rcar-gen2.c | 63 void __iomem *base; member 90 ugctrl2 = readl(drv->base + USBHS_UGCTRL2); in rcar_gen2_phy_init() 93 writel(ugctrl2, drv->base + USBHS_UGCTRL2); in rcar_gen2_phy_init() 114 void __iomem *base = drv->base; in rcar_gen2_phy_power_on() local 126 value = readl(base + USBHS_UGCTRL); in rcar_gen2_phy_power_on() 128 writel(value, base + USBHS_UGCTRL); in rcar_gen2_phy_power_on() 130 value = readw(base + USBHS_LPSTS); in rcar_gen2_phy_power_on() 132 writew(value, base + USBHS_LPSTS); in rcar_gen2_phy_power_on() 135 value = readl(base + USBHS_UGSTS); in rcar_gen2_phy_power_on() 137 value = readl(base + USBHS_UGCTRL); in rcar_gen2_phy_power_on() [all …]
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | ppc_asm.h | 78 #define SAVE_GPR(n, base) std n,GPR0+8*(n)(base) argument 79 #define REST_GPR(n, base) ld n,GPR0+8*(n)(base) argument 80 #define SAVE_NVGPRS(base) SAVE_8GPRS(14, base); SAVE_10GPRS(22, base) argument 81 #define REST_NVGPRS(base) REST_8GPRS(14, base); REST_10GPRS(22, base) argument 83 #define SAVE_GPR(n, base) stw n,GPR0+4*(n)(base) argument 84 #define REST_GPR(n, base) lwz n,GPR0+4*(n)(base) argument 85 #define SAVE_NVGPRS(base) SAVE_GPR(13, base); SAVE_8GPRS(14, base); \ argument 86 SAVE_10GPRS(22, base) 87 #define REST_NVGPRS(base) REST_GPR(13, base); REST_8GPRS(14, base); \ argument 88 REST_10GPRS(22, base) [all …]
|
/linux-4.4.14/arch/arm/plat-orion/ |
D | pcie.c | 55 u32 orion_pcie_dev_id(void __iomem *base) in orion_pcie_dev_id() argument 57 return readl(base + PCIE_DEV_ID_OFF) >> 16; in orion_pcie_dev_id() 60 u32 orion_pcie_rev(void __iomem *base) in orion_pcie_rev() argument 62 return readl(base + PCIE_DEV_REV_OFF) & 0xff; in orion_pcie_rev() 65 int orion_pcie_link_up(void __iomem *base) in orion_pcie_link_up() argument 67 return !(readl(base + PCIE_STAT_OFF) & PCIE_STAT_LINK_DOWN); in orion_pcie_link_up() 70 int __init orion_pcie_x4_mode(void __iomem *base) in orion_pcie_x4_mode() argument 72 return !(readl(base + PCIE_CTRL_OFF) & PCIE_CTRL_X1_MODE); in orion_pcie_x4_mode() 75 int orion_pcie_get_local_bus_nr(void __iomem *base) in orion_pcie_get_local_bus_nr() argument 77 u32 stat = readl(base + PCIE_STAT_OFF); in orion_pcie_get_local_bus_nr() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | gpfifogf100.c | 52 gf100_fifo_gpfifo_engine_fini(struct nvkm_fifo_chan *base, in gf100_fifo_gpfifo_engine_fini() argument 56 struct gf100_fifo_chan *chan = gf100_fifo_chan(base); in gf100_fifo_gpfifo_engine_fini() 57 struct nvkm_subdev *subdev = &chan->fifo->base.engine.subdev; in gf100_fifo_gpfifo_engine_fini() 59 struct nvkm_gpuobj *inst = chan->base.inst; in gf100_fifo_gpfifo_engine_fini() 62 nvkm_wr32(device, 0x002634, chan->base.chid); in gf100_fifo_gpfifo_engine_fini() 64 if (nvkm_rd32(device, 0x002634) == chan->base.chid) in gf100_fifo_gpfifo_engine_fini() 68 chan->base.chid, chan->base.object.client->name); in gf100_fifo_gpfifo_engine_fini() 85 gf100_fifo_gpfifo_engine_init(struct nvkm_fifo_chan *base, in gf100_fifo_gpfifo_engine_init() argument 89 struct gf100_fifo_chan *chan = gf100_fifo_chan(base); in gf100_fifo_gpfifo_engine_init() 90 struct nvkm_gpuobj *inst = chan->base.inst; in gf100_fifo_gpfifo_engine_init() [all …]
|
D | gpfifogk104.c | 39 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in gk104_fifo_gpfifo_kick() 41 struct nvkm_client *client = chan->base.object.client; in gk104_fifo_gpfifo_kick() 43 nvkm_wr32(device, 0x002634, chan->base.chid); in gk104_fifo_gpfifo_kick() 49 chan->base.chid, client->name); in gk104_fifo_gpfifo_kick() 75 gk104_fifo_gpfifo_engine_fini(struct nvkm_fifo_chan *base, in gk104_fifo_gpfifo_engine_fini() argument 79 struct gk104_fifo_chan *chan = gk104_fifo_chan(base); in gk104_fifo_gpfifo_engine_fini() 80 struct nvkm_gpuobj *inst = chan->base.inst; in gk104_fifo_gpfifo_engine_fini() 98 gk104_fifo_gpfifo_engine_init(struct nvkm_fifo_chan *base, in gk104_fifo_gpfifo_engine_init() argument 102 struct gk104_fifo_chan *chan = gk104_fifo_chan(base); in gk104_fifo_gpfifo_engine_init() 103 struct nvkm_gpuobj *inst = chan->base.inst; in gk104_fifo_gpfifo_engine_init() [all …]
|
D | dmanv04.c | 35 nv04_fifo_dma_object_dtor(struct nvkm_fifo_chan *base, int cookie) in nv04_fifo_dma_object_dtor() argument 37 struct nv04_fifo_chan *chan = nv04_fifo_chan(base); in nv04_fifo_dma_object_dtor() 38 struct nvkm_instmem *imem = chan->fifo->base.engine.subdev.device->imem; in nv04_fifo_dma_object_dtor() 43 nv04_fifo_dma_object_ctor(struct nvkm_fifo_chan *base, in nv04_fifo_dma_object_ctor() argument 46 struct nv04_fifo_chan *chan = nv04_fifo_chan(base); in nv04_fifo_dma_object_ctor() 47 struct nvkm_instmem *imem = chan->fifo->base.engine.subdev.device->imem; in nv04_fifo_dma_object_ctor() 48 u32 context = 0x80000000 | chan->base.chid << 24; in nv04_fifo_dma_object_ctor() 62 mutex_lock(&chan->fifo->base.engine.subdev.mutex); in nv04_fifo_dma_object_ctor() 63 hash = nvkm_ramht_insert(imem->ramht, object, chan->base.chid, 4, in nv04_fifo_dma_object_ctor() 65 mutex_unlock(&chan->fifo->base.engine.subdev.mutex); in nv04_fifo_dma_object_ctor() [all …]
|
D | dmanv40.c | 56 nv40_fifo_dma_engine_fini(struct nvkm_fifo_chan *base, in nv40_fifo_dma_engine_fini() argument 59 struct nv04_fifo_chan *chan = nv04_fifo_chan(base); in nv40_fifo_dma_engine_fini() 61 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv40_fifo_dma_engine_fini() 70 spin_lock_irqsave(&fifo->base.lock, flags); in nv40_fifo_dma_engine_fini() 73 chid = nvkm_rd32(device, 0x003204) & (fifo->base.nr - 1); in nv40_fifo_dma_engine_fini() 74 if (chid == chan->base.chid) in nv40_fifo_dma_engine_fini() 81 spin_unlock_irqrestore(&fifo->base.lock, flags); in nv40_fifo_dma_engine_fini() 86 nv40_fifo_dma_engine_init(struct nvkm_fifo_chan *base, in nv40_fifo_dma_engine_init() argument 89 struct nv04_fifo_chan *chan = nv04_fifo_chan(base); in nv40_fifo_dma_engine_init() 91 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv40_fifo_dma_engine_init() [all …]
|
D | channv50.c | 46 nv50_fifo_chan_engine_fini(struct nvkm_fifo_chan *base, in nv50_fifo_chan_engine_fini() argument 49 struct nv50_fifo_chan *chan = nv50_fifo_chan(base); in nv50_fifo_chan_engine_fini() 51 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in nv50_fifo_chan_engine_fini() 75 nvkm_wr32(device, 0x0032fc, chan->base.inst->addr >> 12); in nv50_fifo_chan_engine_fini() 81 chan->base.chid, chan->base.object.client->name); in nv50_fifo_chan_engine_fini() 102 nv50_fifo_chan_engine_init(struct nvkm_fifo_chan *base, in nv50_fifo_chan_engine_init() argument 105 struct nv50_fifo_chan *chan = nv50_fifo_chan(base); in nv50_fifo_chan_engine_init() 129 nv50_fifo_chan_engine_dtor(struct nvkm_fifo_chan *base, in nv50_fifo_chan_engine_dtor() argument 132 struct nv50_fifo_chan *chan = nv50_fifo_chan(base); in nv50_fifo_chan_engine_dtor() 137 nv50_fifo_chan_engine_ctor(struct nvkm_fifo_chan *base, in nv50_fifo_chan_engine_ctor() argument [all …]
|
D | nv50.c | 32 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv50_fifo_runlist_update_locked() 40 for (i = 0, p = 0; i < fifo->base.nr; i++) { in nv50_fifo_runlist_update_locked() 54 mutex_lock(&fifo->base.engine.subdev.mutex); in nv50_fifo_runlist_update() 56 mutex_unlock(&fifo->base.engine.subdev.mutex); in nv50_fifo_runlist_update() 60 nv50_fifo_oneinit(struct nvkm_fifo *base) in nv50_fifo_oneinit() argument 62 struct nv50_fifo *fifo = nv50_fifo(base); in nv50_fifo_oneinit() 63 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv50_fifo_oneinit() 76 nv50_fifo_init(struct nvkm_fifo *base) in nv50_fifo_init() argument 78 struct nv50_fifo *fifo = nv50_fifo(base); in nv50_fifo_init() 79 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv50_fifo_init() [all …]
|
D | chang84.c | 90 g84_fifo_chan_engine_fini(struct nvkm_fifo_chan *base, in g84_fifo_chan_engine_fini() argument 93 struct nv50_fifo_chan *chan = nv50_fifo_chan(base); in g84_fifo_chan_engine_fini() 95 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in g84_fifo_chan_engine_fini() 107 nvkm_wr32(device, 0x0032fc, chan->base.inst->addr >> 12); in g84_fifo_chan_engine_fini() 115 chan->base.chid, chan->base.object.client->name); in g84_fifo_chan_engine_fini() 133 g84_fifo_chan_engine_init(struct nvkm_fifo_chan *base, in g84_fifo_chan_engine_init() argument 136 struct nv50_fifo_chan *chan = nv50_fifo_chan(base); in g84_fifo_chan_engine_init() 160 g84_fifo_chan_engine_ctor(struct nvkm_fifo_chan *base, in g84_fifo_chan_engine_ctor() argument 164 struct nv50_fifo_chan *chan = nv50_fifo_chan(base); in g84_fifo_chan_engine_ctor() 174 g84_fifo_chan_object_ctor(struct nvkm_fifo_chan *base, in g84_fifo_chan_object_ctor() argument [all …]
|
/linux-4.4.14/drivers/s390/block/ |
D | dasd_ioctl.c | 46 struct dasd_device *base; in dasd_ioctl_enable() local 51 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_enable() 52 if (!base) in dasd_ioctl_enable() 55 dasd_enable_device(base); in dasd_ioctl_enable() 59 (loff_t)get_capacity(base->block->gdp) << 9); in dasd_ioctl_enable() 61 dasd_put_device(base); in dasd_ioctl_enable() 72 struct dasd_device *base; in dasd_ioctl_disable() local 77 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_disable() 78 if (!base) in dasd_ioctl_disable() 88 dasd_set_target_state(base, DASD_STATE_BASIC); in dasd_ioctl_disable() [all …]
|
D | dasd_genhd.c | 32 struct dasd_device *base; in dasd_gendisk_alloc() local 36 base = block->base; in dasd_gendisk_alloc() 37 if (base->devindex >= DASD_PER_MAJOR) in dasd_gendisk_alloc() 46 gdp->first_minor = base->devindex << DASD_PARTN_BITS; in dasd_gendisk_alloc() 48 gdp->driverfs_dev = &base->cdev->dev; in dasd_gendisk_alloc() 58 if (base->devindex > 25) { in dasd_gendisk_alloc() 59 if (base->devindex > 701) { in dasd_gendisk_alloc() 60 if (base->devindex > 18277) in dasd_gendisk_alloc() 62 'a'+(((base->devindex-18278) in dasd_gendisk_alloc() 65 'a'+(((base->devindex-702)/676)%26)); in dasd_gendisk_alloc() [all …]
|
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/ |
D | mdp5_cfg.c | 29 .base = { 0x00100 }, 44 .base = { 0x00600, 0x00700, 0x00800, 0x00900, 0x00a00 }, 49 .base = { 0x01200, 0x01600, 0x01a00 }, 58 .base = { 0x01e00, 0x02200, 0x02600 }, 66 .base = { 0x02a00, 0x02e00 }, 73 .base = { 0x03200, 0x03600, 0x03a00, 0x03e00, 0x04200 }, 78 .base = { 0x04600, 0x04a00, 0x04e00 }, 82 .base = { 0x21b00, 0x21c00, 0x21d00 }, 85 .base = { 0x21100, 0x21300, 0x21500, 0x21700 }, 100 .base = { 0x00100 }, [all …]
|
/linux-4.4.14/include/linux/mmc/ |
D | sh_mmcif.h | 102 static inline void sh_mmcif_boot_cmd_send(void __iomem *base, in sh_mmcif_boot_cmd_send() argument 105 sh_mmcif_writel(base, MMCIF_CE_INT, 0); in sh_mmcif_boot_cmd_send() 106 sh_mmcif_writel(base, MMCIF_CE_ARG, arg); in sh_mmcif_boot_cmd_send() 107 sh_mmcif_writel(base, MMCIF_CE_CMD_SET, cmd); in sh_mmcif_boot_cmd_send() 110 static inline int sh_mmcif_boot_cmd_poll(void __iomem *base, unsigned long mask) in sh_mmcif_boot_cmd_poll() argument 116 tmp = sh_mmcif_readl(base, MMCIF_CE_INT); in sh_mmcif_boot_cmd_poll() 118 sh_mmcif_writel(base, MMCIF_CE_INT, tmp & ~mask); in sh_mmcif_boot_cmd_poll() 126 static inline int sh_mmcif_boot_cmd(void __iomem *base, in sh_mmcif_boot_cmd() argument 129 sh_mmcif_boot_cmd_send(base, cmd, arg); in sh_mmcif_boot_cmd() 130 return sh_mmcif_boot_cmd_poll(base, 0x00010000); in sh_mmcif_boot_cmd() [all …]
|
/linux-4.4.14/drivers/scsi/pcmcia/ |
D | nsp_io.h | 15 static inline void nsp_write(unsigned int base, 18 static inline unsigned char nsp_read(unsigned int base, 30 static inline void nsp_write(unsigned int base, in nsp_write() argument 34 outb(val, (base + index)); in nsp_write() 37 static inline unsigned char nsp_read(unsigned int base, in nsp_read() argument 40 return inb(base + index); in nsp_read() 75 static inline void nsp_fifo8_read(unsigned int base, in nsp_fifo8_read() argument 80 nsp_multi_read_1(base, FIFODATA, buf, count); in nsp_fifo8_read() 94 static inline void nsp_fifo16_read(unsigned int base, in nsp_fifo16_read() argument 99 nsp_multi_read_2(base, FIFODATA, buf, count); in nsp_fifo16_read() [all …]
|
D | nsp_cs.c | 273 unsigned int base = data->BaseAddress; in DEF_SCSI_QCMD() local 286 nsp_index_write(base, TRANSFERMODE, transfer_mode_reg); in DEF_SCSI_QCMD() 308 unsigned int base = data->BaseAddress; in nsphw_init() local 310 nsp_dbg(NSP_DEBUG_INIT, "in base=0x%x", base); in nsphw_init() 320 nsp_write(base, IRQCONTROL, IRQCONTROL_ALLMASK); in nsphw_init() 323 nsp_write(base, IFSELECT, IF_IFSEL); in nsphw_init() 325 nsp_index_write(base, SCSIIRQMODE, 0); in nsphw_init() 327 nsp_index_write(base, TRANSFERMODE, MODE_IO8); in nsphw_init() 328 nsp_index_write(base, CLOCKDIV, data->ScsiClockDiv); in nsphw_init() 330 nsp_index_write(base, PARITYCTRL, 0); in nsphw_init() [all …]
|
/linux-4.4.14/arch/m68k/amiga/ |
D | cia.c | 51 unsigned char cia_set_irq(struct ciabase *base, unsigned char mask) in cia_set_irq() argument 55 old = (base->icr_data |= base->cia->icr); in cia_set_irq() 57 base->icr_data |= mask; in cia_set_irq() 59 base->icr_data &= ~mask; in cia_set_irq() 60 if (base->icr_data & base->icr_mask) in cia_set_irq() 61 amiga_custom.intreq = IF_SETCLR | base->int_mask; in cia_set_irq() 62 return old & base->icr_mask; in cia_set_irq() 69 unsigned char cia_able_irq(struct ciabase *base, unsigned char mask) in cia_able_irq() argument 73 old = base->icr_mask; in cia_able_irq() 74 base->icr_data |= base->cia->icr; in cia_able_irq() [all …]
|
/linux-4.4.14/drivers/irqchip/ |
D | irq-vic.c | 73 void __iomem *base; member 99 static void vic_init2(void __iomem *base) in vic_init2() argument 104 void __iomem *reg = base + VIC_VECT_CNTL0 + (i * 4); in vic_init2() 108 writel(32, base + VIC_PL190_DEF_VECT_ADDR); in vic_init2() 114 void __iomem *base = vic->base; in resume_one_vic() local 116 printk(KERN_DEBUG "%s: resuming vic at %p\n", __func__, base); in resume_one_vic() 119 vic_init2(base); in resume_one_vic() 121 writel(vic->int_select, base + VIC_INT_SELECT); in resume_one_vic() 122 writel(vic->protect, base + VIC_PROTECT); in resume_one_vic() 125 writel(vic->int_enable, base + VIC_INT_ENABLE); in resume_one_vic() [all …]
|
D | irq-sirfsoc.c | 32 static __init void sirfsoc_alloc_gc(void __iomem *base) in sirfsoc_alloc_gc() argument 46 gc->reg_base = base + i * SIRFSOC_INT_BASE_OFFSET; in sirfsoc_alloc_gc() 56 void __iomem *base = sirfsoc_irqdomain->host_data; in sirfsoc_handle_irq() local 59 irqstat = readl_relaxed(base + SIRFSOC_INIT_IRQ_ID); in sirfsoc_handle_irq() 66 void __iomem *base = of_iomap(np, 0); in sirfsoc_irq_init() local 67 if (!base) in sirfsoc_irq_init() 71 &irq_generic_chip_ops, base); in sirfsoc_irq_init() 72 sirfsoc_alloc_gc(base); in sirfsoc_irq_init() 74 writel_relaxed(0, base + SIRFSOC_INT_RISC_LEVEL0); in sirfsoc_irq_init() 75 writel_relaxed(0, base + SIRFSOC_INT_RISC_LEVEL1); in sirfsoc_irq_init() [all …]
|
D | irq-vt8500.c | 75 void __iomem *base; /* IO Memory base address */ member 86 void __iomem *base = priv->base; in vt8500_irq_mask() local 87 void __iomem *stat_reg = base + VT8500_ICIS + (d->hwirq < 32 ? 0 : 4); in vt8500_irq_mask() 91 edge = readb(base + VT8500_ICDC + d->hwirq) & VT8500_EDGE; in vt8500_irq_mask() 98 dctr = readb(base + VT8500_ICDC + d->hwirq); in vt8500_irq_mask() 100 writeb(dctr, base + VT8500_ICDC + d->hwirq); in vt8500_irq_mask() 107 void __iomem *base = priv->base; in vt8500_irq_unmask() local 110 dctr = readb(base + VT8500_ICDC + d->hwirq); in vt8500_irq_unmask() 112 writeb(dctr, base + VT8500_ICDC + d->hwirq); in vt8500_irq_unmask() 118 void __iomem *base = priv->base; in vt8500_irq_set_type() local [all …]
|
D | irq-gic-common.c | 36 void __iomem *base, void (*sync_access)(void)) in gic_configure_irq() argument 47 val = oldval = readl_relaxed(base + GIC_DIST_CONFIG + confoff); in gic_configure_irq() 58 writel_relaxed(val, base + GIC_DIST_CONFIG + confoff); in gic_configure_irq() 59 if (readl_relaxed(base + GIC_DIST_CONFIG + confoff) != val && val != oldval) in gic_configure_irq() 68 void __init gic_dist_config(void __iomem *base, int gic_irqs, in gic_dist_config() argument 78 base + GIC_DIST_CONFIG + i / 4); in gic_dist_config() 84 writel_relaxed(GICD_INT_DEF_PRI_X4, base + GIC_DIST_PRI + i); in gic_dist_config() 92 base + GIC_DIST_ACTIVE_CLEAR + i / 8); in gic_dist_config() 94 base + GIC_DIST_ENABLE_CLEAR + i / 8); in gic_dist_config() 101 void gic_cpu_config(void __iomem *base, void (*sync_access)(void)) in gic_cpu_config() argument [all …]
|
/linux-4.4.14/drivers/gpio/ |
D | gpio-samsung.c | 46 void __iomem *reg = chip->base + 0x08; in samsung_gpio_setpull_updown() 61 void __iomem *reg = chip->base + 0x08; in samsung_gpio_getpull_updown() 115 void __iomem *reg = chip->base + 0x08; in s3c24xx_gpio_setpull_1() 133 void __iomem *reg = chip->base + 0x08; in s3c24xx_gpio_getpull_1() 181 void __iomem *reg = chip->base; in samsung_gpio_setcfg_2bit() 216 con = __raw_readl(chip->base); in samsung_gpio_getcfg_2bit() 244 void __iomem *reg = chip->base; in samsung_gpio_setcfg_4bit() 279 void __iomem *reg = chip->base; in samsung_gpio_getcfg_4bit() 309 void __iomem *reg = chip->base; in s3c24xx_gpio_setcfg_abank() 349 con = __raw_readl(chip->base); in s3c24xx_gpio_getcfg_abank() [all …]
|
D | gpio-zx.c | 42 void __iomem *base; member 61 gpiodir = readw_relaxed(chip->base + ZX_GPIO_DIR); in zx_direction_input() 63 writew_relaxed(gpiodir, chip->base + ZX_GPIO_DIR); in zx_direction_input() 80 gpiodir = readw_relaxed(chip->base + ZX_GPIO_DIR); in zx_direction_output() 82 writew_relaxed(gpiodir, chip->base + ZX_GPIO_DIR); in zx_direction_output() 85 writew_relaxed(BIT(offset), chip->base + ZX_GPIO_DO1); in zx_direction_output() 87 writew_relaxed(BIT(offset), chip->base + ZX_GPIO_DO0); in zx_direction_output() 97 return !!(readw_relaxed(chip->base + ZX_GPIO_DI) & BIT(offset)); in zx_get_value() 105 writew_relaxed(BIT(offset), chip->base + ZX_GPIO_DO1); in zx_set_value() 107 writew_relaxed(BIT(offset), chip->base + ZX_GPIO_DO0); in zx_set_value() [all …]
|
D | gpio-ath79.c | 23 void __iomem *base; member 35 __raw_writel(BIT(gpio), ctrl->base + AR71XX_GPIO_REG_SET); in ath79_gpio_set_value() 37 __raw_writel(BIT(gpio), ctrl->base + AR71XX_GPIO_REG_CLEAR); in ath79_gpio_set_value() 44 return (__raw_readl(ctrl->base + AR71XX_GPIO_REG_IN) >> gpio) & 1; in ath79_gpio_get_value() 56 __raw_readl(ctrl->base + AR71XX_GPIO_REG_OE) & ~BIT(offset), in ath79_gpio_direction_input() 57 ctrl->base + AR71XX_GPIO_REG_OE); in ath79_gpio_direction_input() 73 __raw_writel(BIT(offset), ctrl->base + AR71XX_GPIO_REG_SET); in ath79_gpio_direction_output() 75 __raw_writel(BIT(offset), ctrl->base + AR71XX_GPIO_REG_CLEAR); in ath79_gpio_direction_output() 78 __raw_readl(ctrl->base + AR71XX_GPIO_REG_OE) | BIT(offset), in ath79_gpio_direction_output() 79 ctrl->base + AR71XX_GPIO_REG_OE); in ath79_gpio_direction_output() [all …]
|
D | gpio-pl061.c | 53 void __iomem *base; member 71 gpiodir = readb(chip->base + GPIODIR); in pl061_direction_input() 73 writeb(gpiodir, chip->base + GPIODIR); in pl061_direction_input() 90 writeb(!!value << offset, chip->base + (BIT(offset + 2))); in pl061_direction_output() 91 gpiodir = readb(chip->base + GPIODIR); in pl061_direction_output() 93 writeb(gpiodir, chip->base + GPIODIR); in pl061_direction_output() 99 writeb(!!value << offset, chip->base + (BIT(offset + 2))); in pl061_direction_output() 109 return !!readb(chip->base + (BIT(offset + 2))); in pl061_get_value() 116 writeb(!!value << offset, chip->base + (BIT(offset + 2))); in pl061_set_value() 144 gpioiev = readb(chip->base + GPIOIEV); in pl061_irq_type() [all …]
|
/linux-4.4.14/drivers/block/ |
D | swim.c | 66 #define swim_write(base, reg, v) out_8(&(base)->write_##reg, (v)) argument 67 #define swim_read(base, reg) in_8(&(base)->read_##reg) argument 90 #define iwm_write(base, reg, v) out_8(&(base)->reg, (v)) argument 91 #define iwm_read(base, reg) in_8(&(base)->reg) argument 212 struct swim __iomem *base; member 219 extern int swim_read_sector_header(struct swim __iomem *base, 221 extern int swim_read_sector_data(struct swim __iomem *base, 225 static inline void set_swim_mode(struct swim __iomem *base, int enable) in set_swim_mode() argument 231 swim_write(base, mode0, 0xf8); in set_swim_mode() 235 iwm_base = (struct iwm __iomem *)base; in set_swim_mode() [all …]
|
/linux-4.4.14/drivers/dma/ |
D | ste_dma40.c | 336 void *base; member 392 void *base; member 472 struct d40_base *base; member 616 return chan->base->virtbase + D40_DREG_PCBASE + in chan_base() 631 void *base; in d40_pool_lli_alloc() local 639 base = d40d->lli_pool.pre_alloc_lli; in d40_pool_lli_alloc() 641 d40d->lli_pool.base = NULL; in d40_pool_lli_alloc() 645 base = kmalloc(d40d->lli_pool.size + align, GFP_NOWAIT); in d40_pool_lli_alloc() 646 d40d->lli_pool.base = base; in d40_pool_lli_alloc() 648 if (d40d->lli_pool.base == NULL) in d40_pool_lli_alloc() [all …]
|
/linux-4.4.14/lib/ |
D | kstrtox.c | 23 const char *_parse_integer_fixup_radix(const char *s, unsigned int *base) in _parse_integer_fixup_radix() argument 25 if (*base == 0) { in _parse_integer_fixup_radix() 28 *base = 16; in _parse_integer_fixup_radix() 30 *base = 8; in _parse_integer_fixup_radix() 32 *base = 10; in _parse_integer_fixup_radix() 34 if (*base == 16 && s[0] == '0' && _tolower(s[1]) == 'x') in _parse_integer_fixup_radix() 47 unsigned int _parse_integer(const char *s, unsigned int base, unsigned long long *p) in _parse_integer() argument 66 if (val >= base) in _parse_integer() 73 if (res > div_u64(ULLONG_MAX - val, base)) in _parse_integer() 76 res = res * base + val; in _parse_integer() [all …]
|
D | sort.c | 11 static int alignment_ok(const void *base, int align) in alignment_ok() argument 14 ((unsigned long)base & (align - 1)) == 0; in alignment_ok() 59 void sort(void *base, size_t num, size_t size, in sort() argument 67 if (size == 4 && alignment_ok(base, 4)) in sort() 69 else if (size == 8 && alignment_ok(base, 8)) in sort() 80 cmp_func(base + c, base + c + size) < 0) in sort() 82 if (cmp_func(base + r, base + c) >= 0) in sort() 84 swap_func(base + r, base + c, size); in sort() 90 swap_func(base, base + i, size); in sort() 94 cmp_func(base + c, base + c + size) < 0) in sort() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
D | nv40.c | 24 #define nv40_instmem(p) container_of((p), struct nv40_instmem, base) 32 struct nvkm_instmem base; member 96 mutex_lock(&iobj->imem->base.subdev.mutex); in nv40_instobj_dtor() 98 mutex_unlock(&iobj->imem->base.subdev.mutex); in nv40_instobj_dtor() 115 nv40_instobj_new(struct nvkm_instmem *base, u32 size, u32 align, bool zero, in nv40_instobj_new() argument 118 struct nv40_instmem *imem = nv40_instmem(base); in nv40_instobj_new() 129 mutex_lock(&imem->base.subdev.mutex); in nv40_instobj_new() 132 mutex_unlock(&imem->base.subdev.mutex); in nv40_instobj_new() 141 nv40_instmem_rd32(struct nvkm_instmem *base, u32 addr) in nv40_instmem_rd32() argument 143 return ioread32_native(nv40_instmem(base)->iomem + addr); in nv40_instmem_rd32() [all …]
|
D | nv04.c | 24 #define nv04_instmem(p) container_of((p), struct nv04_instmem, base) 31 struct nvkm_instmem base; member 68 struct nvkm_device *device = iobj->imem->base.subdev.device; in nv04_instobj_acquire() 81 struct nvkm_device *device = iobj->imem->base.subdev.device; in nv04_instobj_rd32() 89 struct nvkm_device *device = iobj->imem->base.subdev.device; in nv04_instobj_wr32() 97 mutex_lock(&iobj->imem->base.subdev.mutex); in nv04_instobj_dtor() 99 mutex_unlock(&iobj->imem->base.subdev.mutex); in nv04_instobj_dtor() 116 nv04_instobj_new(struct nvkm_instmem *base, u32 size, u32 align, bool zero, in nv04_instobj_new() argument 119 struct nv04_instmem *imem = nv04_instmem(base); in nv04_instobj_new() 130 mutex_lock(&imem->base.subdev.mutex); in nv04_instobj_new() [all …]
|
D | gk20a.c | 67 struct gk20a_instobj base; member 74 container_of(gk20a_instobj(p), struct gk20a_instobj_dma, base) 80 struct gk20a_instobj base; member 88 container_of(gk20a_instobj(p), struct gk20a_instobj_iommu, base) 91 struct nvkm_instmem base; member 113 #define gk20a_instmem(p) container_of((p), struct gk20a_instmem, base) 138 struct device *dev = node->base.imem->base.subdev.device->dev; in gk20a_instobj_cpu_map_dma() 185 nvkm_debug(&imem->base.subdev, "(GC) vaddr used: %x/%x\n", in gk20a_instmem_vaddr_gc() 196 struct nvkm_ltc *ltc = imem->base.subdev.device->ltc; in gk20a_instobj_acquire() 217 nvkm_error(&imem->base.subdev, "cannot map instobj - " in gk20a_instobj_acquire() [all …]
|
/linux-4.4.14/kernel/time/ |
D | timer.c | 137 static inline struct tvec_base *get_target_base(struct tvec_base *base, in get_target_base() argument 140 if (pinned || !base->migration_enabled) in get_target_base() 145 static inline struct tvec_base *get_target_base(struct tvec_base *base, in get_target_base() argument 374 __internal_add_timer(struct tvec_base *base, struct timer_list *timer) in __internal_add_timer() argument 377 unsigned long idx = expires - base->timer_jiffies; in __internal_add_timer() 382 vec = base->tv1.vec + i; in __internal_add_timer() 385 vec = base->tv2.vec + i; in __internal_add_timer() 388 vec = base->tv3.vec + i; in __internal_add_timer() 391 vec = base->tv4.vec + i; in __internal_add_timer() 397 vec = base->tv1.vec + (base->timer_jiffies & TVR_MASK); in __internal_add_timer() [all …]
|
D | hrtimer.c | 142 struct hrtimer_clock_base *base; in lock_hrtimer_base() local 145 base = timer->base; in lock_hrtimer_base() 146 if (likely(base != &migration_base)) { in lock_hrtimer_base() 147 raw_spin_lock_irqsave(&base->cpu_base->lock, *flags); in lock_hrtimer_base() 148 if (likely(base == timer->base)) in lock_hrtimer_base() 149 return base; in lock_hrtimer_base() 151 raw_spin_unlock_irqrestore(&base->cpu_base->lock, *flags); in lock_hrtimer_base() 182 struct hrtimer_cpu_base *get_target_base(struct hrtimer_cpu_base *base, in get_target_base() argument 185 if (pinned || !base->migration_enabled) in get_target_base() 186 return base; in get_target_base() [all …]
|
/linux-4.4.14/arch/arm/mm/ |
D | cache-l2x0.c | 74 static void l2c_write_sec(unsigned long val, void __iomem *base, unsigned reg) in l2c_write_sec() argument 76 if (val == readl_relaxed(base + reg)) in l2c_write_sec() 81 writel_relaxed(val, base + reg); in l2c_write_sec() 89 static inline void l2c_set_debug(void __iomem *base, unsigned long val) in l2c_set_debug() argument 91 l2c_write_sec(val, base, L2X0_DEBUG_CTRL); in l2c_set_debug() 100 static inline void l2c_unlock(void __iomem *base, unsigned num) in l2c_unlock() argument 105 writel_relaxed(0, base + L2X0_LOCKDOWN_WAY_D_BASE + in l2c_unlock() 107 writel_relaxed(0, base + L2X0_LOCKDOWN_WAY_I_BASE + in l2c_unlock() 112 static void l2c_configure(void __iomem *base) in l2c_configure() argument 114 l2c_write_sec(l2x0_saved_regs.aux_ctrl, base, L2X0_AUX_CTRL); in l2c_configure() [all …]
|
/linux-4.4.14/drivers/iommu/ |
D | msm_iommu.c | 119 SET_CTX_TLBIALL(iommu_drvdata->base, ctx_drvdata->num, 0); in __flush_iotlb() 126 static void __reset_context(void __iomem *base, int ctx) in __reset_context() argument 128 SET_BPRCOSH(base, ctx, 0); in __reset_context() 129 SET_BPRCISH(base, ctx, 0); in __reset_context() 130 SET_BPRCNSH(base, ctx, 0); in __reset_context() 131 SET_BPSHCFG(base, ctx, 0); in __reset_context() 132 SET_BPMTCFG(base, ctx, 0); in __reset_context() 133 SET_ACTLR(base, ctx, 0); in __reset_context() 134 SET_SCTLR(base, ctx, 0); in __reset_context() 135 SET_FSRRESTORE(base, ctx, 0); in __reset_context() [all …]
|
D | msm_iommu_dev.c | 87 static void msm_iommu_reset(void __iomem *base, int ncb) in msm_iommu_reset() argument 91 SET_RPUE(base, 0); in msm_iommu_reset() 92 SET_RPUEIE(base, 0); in msm_iommu_reset() 93 SET_ESRRESTORE(base, 0); in msm_iommu_reset() 94 SET_TBE(base, 0); in msm_iommu_reset() 95 SET_CR(base, 0); in msm_iommu_reset() 96 SET_SPDMBE(base, 0); in msm_iommu_reset() 97 SET_TESTBUSCR(base, 0); in msm_iommu_reset() 98 SET_TLBRSW(base, 0); in msm_iommu_reset() 99 SET_GLOBAL_TLBIALL(base, 0); in msm_iommu_reset() [all …]
|
/linux-4.4.14/arch/alpha/kernel/ |
D | pc873xx.c | 12 static unsigned int base, model; variable 17 return base; in pc873xx_get_base() 25 static unsigned char __init pc873xx_read(unsigned int base, int reg) in pc873xx_read() argument 27 outb(reg, base); in pc873xx_read() 28 return inb(base + 1); in pc873xx_read() 31 static void __init pc873xx_write(unsigned int base, int reg, unsigned char data) in pc873xx_write() argument 36 outb(reg, base); in pc873xx_write() 37 outb(data, base + 1); in pc873xx_write() 38 outb(data, base + 1); /* Must be written twice */ in pc873xx_write() 46 while ((base = pc873xx_probelist[index++])) { in pc873xx_probe() [all …]
|
/linux-4.4.14/drivers/tty/ |
D | isicom.c | 141 #define InterruptTheCard(base) outw(0, (base) + 0xc) argument 142 #define ClearInterrupt(base) inw((base) + 0x0a) argument 189 unsigned long base; member 223 static inline int WaitTillCardIsFree(unsigned long base) in WaitTillCardIsFree() argument 228 while (!(inw(base + 0xe) & 0x1) && count++ < 100) in WaitTillCardIsFree() 234 return !(inw(base + 0xe) & 0x1); in WaitTillCardIsFree() 239 unsigned long base = card->base; in lock_card() local 245 if (inw(base + 0xe) & 0x1) in lock_card() 252 pr_warn("Failed to lock Card (0x%lx)\n", card->base); in lock_card() 270 unsigned long base = card->base; in raise_dtr() local [all …]
|
D | goldfish.c | 44 void __iomem *base; member 60 void __iomem *base = qtty->base; in goldfish_tty_do_write() local 62 gf_write_ptr(buf, base + GOLDFISH_TTY_DATA_PTR, in goldfish_tty_do_write() 63 base + GOLDFISH_TTY_DATA_PTR_HIGH); in goldfish_tty_do_write() 64 writel(count, base + GOLDFISH_TTY_DATA_LEN); in goldfish_tty_do_write() 65 writel(GOLDFISH_TTY_CMD_WRITE_BUFFER, base + GOLDFISH_TTY_CMD); in goldfish_tty_do_write() 73 void __iomem *base = qtty->base; in goldfish_tty_interrupt() local 78 count = readl(base + GOLDFISH_TTY_BYTES_READY); in goldfish_tty_interrupt() 84 gf_write_ptr(buf, base + GOLDFISH_TTY_DATA_PTR, in goldfish_tty_interrupt() 85 base + GOLDFISH_TTY_DATA_PTR_HIGH); in goldfish_tty_interrupt() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | nv50.c | 34 struct nvkm_device *device = clk->base.subdev.device; in read_div() 52 read_pll_src(struct nv50_clk *clk, u32 base) in read_pll_src() argument 54 struct nvkm_subdev *subdev = &clk->base.subdev; in read_pll_src() 56 u32 coef, ref = nvkm_clk_read(&clk->base, nv_clk_src_crystal); in read_pll_src() 63 switch (base) { in read_pll_src() 69 nvkm_error(subdev, "ref: bad pll %06x\n", base); in read_pll_src() 91 switch (base) { in read_pll_src() 97 nvkm_error(subdev, "ref: bad pll %06x\n", base); in read_pll_src() 103 case 1: return nvkm_clk_read(&clk->base, nv_clk_src_crystal); in read_pll_src() 104 case 2: return nvkm_clk_read(&clk->base, nv_clk_src_href); in read_pll_src() [all …]
|
D | mcp77.c | 24 #define mcp77_clk(p) container_of((p), struct mcp77_clk, base) 33 struct nvkm_clk base; member 44 struct nvkm_device *device = clk->base.subdev.device; in read_div() 49 read_pll(struct mcp77_clk *clk, u32 base) in read_pll() argument 51 struct nvkm_device *device = clk->base.subdev.device; in read_pll() 52 u32 ctrl = nvkm_rd32(device, base + 0); in read_pll() 53 u32 coef = nvkm_rd32(device, base + 4); in read_pll() 54 u32 ref = nvkm_clk_read(&clk->base, nv_clk_src_href); in read_pll() 59 switch (base){ in read_pll() 81 mcp77_clk_read(struct nvkm_clk *base, enum nv_clk_src src) in mcp77_clk_read() argument [all …]
|
/linux-4.4.14/drivers/mtd/chips/ |
D | cfi_probe.c | 27 static int cfi_probe_chip(struct map_info *map, __u32 base, 38 #define xip_allowed(base, map) \ argument 40 (void) map_read(map, base); \ 45 #define xip_enable(base, map, cfi) \ argument 47 cfi_qry_mode_off(base, map, cfi); \ 48 xip_allowed(base, map); \ 51 #define xip_disable_qry(base, map, cfi) \ argument 54 cfi_qry_mode_on(base, map, cfi); \ 60 #define xip_allowed(base, map) do { } while (0) argument 61 #define xip_enable(base, map, cfi) do { } while (0) argument [all …]
|
D | cfi_util.c | 197 uint32_t cfi_send_gen_cmd(u_char cmd, uint32_t cmd_addr, uint32_t base, in cfi_send_gen_cmd() argument 202 uint32_t addr = base + cfi_build_cmd_addr(cmd_addr, map, cfi); in cfi_send_gen_cmd() 210 return addr - base; in cfi_send_gen_cmd() 214 int __xipram cfi_qry_present(struct map_info *map, __u32 base, in cfi_qry_present() argument 225 val[0] = map_read(map, base + osf*0x10); in cfi_qry_present() 226 val[1] = map_read(map, base + osf*0x11); in cfi_qry_present() 227 val[2] = map_read(map, base + osf*0x12); in cfi_qry_present() 242 int __xipram cfi_qry_mode_on(uint32_t base, struct map_info *map, in cfi_qry_mode_on() argument 245 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on() 246 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on() [all …]
|
/linux-4.4.14/arch/sparc/kernel/ |
D | btext.c | 22 static void draw_byte_32(unsigned char *bits, unsigned int *base, int rb); 23 static void draw_byte_16(unsigned char *bits, unsigned int *base, int rb); 24 static void draw_byte_8(unsigned char *bits, unsigned int *base, int rb); 89 unsigned char *base = dispDeviceBase; in calc_base() local 91 base += (x + dispDeviceRect[0]) * (dispDeviceDepth >> 3); in calc_base() 92 base += (y + dispDeviceRect[1]) * dispDeviceRowBytes; in calc_base() 93 return base; in calc_base() 98 unsigned int *base = (unsigned int *)calc_base(0, 0); in btext_clearscreen() local 105 unsigned int *ptr = base; in btext_clearscreen() 108 base += (dispDeviceRowBytes >> 2); in btext_clearscreen() [all …]
|
D | kstack.h | 12 unsigned long base = (unsigned long) tp; in kstack_valid() local 18 if (sp >= (base + sizeof(struct thread_info)) && in kstack_valid() 19 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid() 23 base = (unsigned long) hardirq_stack[tp->cpu]; in kstack_valid() 24 if (sp >= base && in kstack_valid() 25 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid() 27 base = (unsigned long) softirq_stack[tp->cpu]; in kstack_valid() 28 if (sp >= base && in kstack_valid() 29 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid() 38 unsigned long base = (unsigned long) tp; in kstack_is_trap_frame() local [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
D | gk20a.c | 22 #define gk20a_volt(p) container_of((p), struct gk20a_volt, base) 37 struct nvkm_volt base; member 104 gk20a_volt_vid_get(struct nvkm_volt *base) in gk20a_volt_vid_get() argument 106 struct gk20a_volt *volt = gk20a_volt(base); in gk20a_volt_vid_get() 111 for (i = 0; i < volt->base.vid_nr; i++) in gk20a_volt_vid_get() 112 if (volt->base.vid[i].uv >= uv) in gk20a_volt_vid_get() 119 gk20a_volt_vid_set(struct nvkm_volt *base, u8 vid) in gk20a_volt_vid_set() argument 121 struct gk20a_volt *volt = gk20a_volt(base); in gk20a_volt_vid_set() 122 struct nvkm_subdev *subdev = &volt->base.subdev; in gk20a_volt_vid_set() 124 nvkm_debug(subdev, "set voltage as %duv\n", volt->base.vid[vid].uv); in gk20a_volt_vid_set() [all …]
|
D | gk104.c | 31 #define gk104_volt(p) container_of((p), struct gk104_volt, base) 33 struct nvkm_volt base; member 38 gk104_volt_get(struct nvkm_volt *base) in gk104_volt_get() argument 40 struct nvbios_volt *bios = &gk104_volt(base)->bios; in gk104_volt_get() 41 struct nvkm_device *device = base->subdev.device; in gk104_volt_get() 47 return bios->base + bios->pwm_range * duty / div; in gk104_volt_get() 51 gk104_volt_set(struct nvkm_volt *base, u32 uv) in gk104_volt_set() argument 53 struct nvbios_volt *bios = &gk104_volt(base)->bios; in gk104_volt_set() 54 struct nvkm_device *device = base->subdev.device; in gk104_volt_set() 59 duty = (uv - bios->base) * div / bios->pwm_range; in gk104_volt_set() [all …]
|
/linux-4.4.14/arch/arm/include/asm/ |
D | vfpmacros.h | 20 .macro VFPFLDMIA, base, tmp in toolkits() 22 LDC p11, cr0, [\base],#33*4 @ FLDMIAX \base!, {d0-d15} in toolkits() 24 LDC p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d0-d15} 31 ldcnel p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d16-d31} 32 addeq \base, \base, #32*4 @ step over unused register space 37 ldceql p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d16-d31} 38 addne \base, \base, #32*4 @ step over unused register space 44 .macro VFPFSTMIA, base, tmp 46 STC p11, cr0, [\base],#33*4 @ FSTMIAX \base!, {d0-d15} 48 STC p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d0-d15} [all …]
|
D | cti.h | 49 void __iomem *base; member 66 void __iomem *base, int irq, int trig_out) in cti_init() argument 68 cti->base = base; in cti_init() 86 void __iomem *base = cti->base; in cti_map_trigger() local 89 val = __raw_readl(base + CTIINEN + trig_in * 4); in cti_map_trigger() 91 __raw_writel(val, base + CTIINEN + trig_in * 4); in cti_map_trigger() 93 val = __raw_readl(base + CTIOUTEN + trig_out * 4); in cti_map_trigger() 95 __raw_writel(val, base + CTIOUTEN + trig_out * 4); in cti_map_trigger() 106 __raw_writel(0x1, cti->base + CTICONTROL); in cti_enable() 117 __raw_writel(0, cti->base + CTICONTROL); in cti_disable() [all …]
|
/linux-4.4.14/drivers/ide/ |
D | palm_bk3710.c | 77 static void palm_bk3710_setudmamode(void __iomem *base, unsigned int dev, in palm_bk3710_setudmamode() argument 92 val32 = readl(base + BK3710_UDMASTB) & (0xFF << (dev ? 0 : 8)); in palm_bk3710_setudmamode() 94 writel(val32, base + BK3710_UDMASTB); in palm_bk3710_setudmamode() 97 val32 = readl(base + BK3710_UDMATRP) & (0xFF << (dev ? 0 : 8)); in palm_bk3710_setudmamode() 99 writel(val32, base + BK3710_UDMATRP); in palm_bk3710_setudmamode() 102 val32 = readl(base + BK3710_UDMAENV) & (0xFF << (dev ? 0 : 8)); in palm_bk3710_setudmamode() 104 writel(val32, base + BK3710_UDMAENV); in palm_bk3710_setudmamode() 107 val16 = readw(base + BK3710_UDMACTL) | (1 << dev); in palm_bk3710_setudmamode() 108 writew(val16, base + BK3710_UDMACTL); in palm_bk3710_setudmamode() 111 static void palm_bk3710_setdmamode(void __iomem *base, unsigned int dev, in palm_bk3710_setdmamode() argument [all …]
|
D | siimage.c | 94 unsigned long base = (unsigned long)hwif->hwif_data; in siimage_selreg() local 96 base += 0xA0 + r; in siimage_selreg() 98 base += hwif->channel << 6; in siimage_selreg() 100 base += hwif->channel << 4; in siimage_selreg() 101 return base; in siimage_selreg() 117 unsigned long base = (unsigned long)hwif->hwif_data; in siimage_seldev() local 120 base += 0xA0 + r; in siimage_seldev() 122 base += hwif->channel << 6; in siimage_seldev() 124 base += hwif->channel << 4; in siimage_seldev() 125 base |= unit << unit; in siimage_seldev() [all …]
|
D | tx4939ide.c | 84 static u16 tx4939ide_readw(void __iomem *base, u32 reg) in tx4939ide_readw() argument 86 return __raw_readw(base + tx4939ide_swizzlew(reg)); in tx4939ide_readw() 88 static u8 tx4939ide_readb(void __iomem *base, u32 reg) in tx4939ide_readb() argument 90 return __raw_readb(base + tx4939ide_swizzleb(reg)); in tx4939ide_readb() 92 static void tx4939ide_writel(u32 val, void __iomem *base, u32 reg) in tx4939ide_writel() argument 94 __raw_writel(val, base + tx4939ide_swizzlel(reg)); in tx4939ide_writel() 96 static void tx4939ide_writew(u16 val, void __iomem *base, u32 reg) in tx4939ide_writew() argument 98 __raw_writew(val, base + tx4939ide_swizzlew(reg)); in tx4939ide_writew() 100 static void tx4939ide_writeb(u8 val, void __iomem *base, u32 reg) in tx4939ide_writeb() argument 102 __raw_writeb(val, base + tx4939ide_swizzleb(reg)); in tx4939ide_writeb() [all …]
|
/linux-4.4.14/drivers/clocksource/ |
D | time-lpc32xx.c | 45 void __iomem *base; member 69 writel_relaxed(LPC32XX_TIMER_TCR_CRST, ddata->base + LPC32XX_TIMER_TCR); in lpc32xx_clkevt_next_event() 70 writel_relaxed(delta, ddata->base + LPC32XX_TIMER_PR); in lpc32xx_clkevt_next_event() 71 writel_relaxed(LPC32XX_TIMER_TCR_CEN, ddata->base + LPC32XX_TIMER_TCR); in lpc32xx_clkevt_next_event() 82 writel_relaxed(0, ddata->base + LPC32XX_TIMER_TCR); in lpc32xx_clkevt_shutdown() 101 writel_relaxed(LPC32XX_TIMER_IR_MR0INT, ddata->base + LPC32XX_TIMER_IR); in lpc32xx_clock_event_handler() 121 void __iomem *base; in lpc32xx_clocksource_init() local 138 base = of_iomap(np, 0); in lpc32xx_clocksource_init() 139 if (!base) { in lpc32xx_clocksource_init() 150 writel_relaxed(LPC32XX_TIMER_TCR_CRST, base + LPC32XX_TIMER_TCR); in lpc32xx_clocksource_init() [all …]
|
D | timer-sp804.c | 75 void __init sp804_timer_disable(void __iomem *base) in sp804_timer_disable() argument 77 writel(0, base + TIMER_CTRL); in sp804_timer_disable() 80 void __init __sp804_clocksource_and_sched_clock_init(void __iomem *base, in __sp804_clocksource_and_sched_clock_init() argument 102 writel(0, base + TIMER_CTRL); in __sp804_clocksource_and_sched_clock_init() 103 writel(0xffffffff, base + TIMER_LOAD); in __sp804_clocksource_and_sched_clock_init() 104 writel(0xffffffff, base + TIMER_VALUE); in __sp804_clocksource_and_sched_clock_init() 106 base + TIMER_CTRL); in __sp804_clocksource_and_sched_clock_init() 108 clocksource_mmio_init(base + TIMER_VALUE, name, in __sp804_clocksource_and_sched_clock_init() 112 sched_clock_base = base; in __sp804_clocksource_and_sched_clock_init() 189 void __init __sp804_clockevents_init(void __iomem *base, unsigned int irq, struct clk *clk, const c… in __sp804_clockevents_init() argument [all …]
|
D | time-efm32.c | 47 void __iomem *base; member 56 writel_relaxed(TIMERn_CMD_STOP, ddata->base + TIMERn_CMD); in efm32_clock_event_shutdown() 65 writel_relaxed(TIMERn_CMD_STOP, ddata->base + TIMERn_CMD); in efm32_clock_event_set_oneshot() 70 ddata->base + TIMERn_CTRL); in efm32_clock_event_set_oneshot() 79 writel_relaxed(TIMERn_CMD_STOP, ddata->base + TIMERn_CMD); in efm32_clock_event_set_periodic() 80 writel_relaxed(ddata->periodic_top, ddata->base + TIMERn_TOP); in efm32_clock_event_set_periodic() 84 ddata->base + TIMERn_CTRL); in efm32_clock_event_set_periodic() 85 writel_relaxed(TIMERn_CMD_START, ddata->base + TIMERn_CMD); in efm32_clock_event_set_periodic() 95 writel_relaxed(TIMERn_CMD_STOP, ddata->base + TIMERn_CMD); in efm32_clock_event_set_next_event() 96 writel_relaxed(evt, ddata->base + TIMERn_CNT); in efm32_clock_event_set_next_event() [all …]
|
D | timer-stm32.c | 40 void __iomem *base; member 47 void *base = data->base; in stm32_clock_event_shutdown() local 49 writel_relaxed(0, base + TIM_CR1); in stm32_clock_event_shutdown() 57 void *base = data->base; in stm32_clock_event_set_periodic() local 59 writel_relaxed(data->periodic_top, base + TIM_ARR); in stm32_clock_event_set_periodic() 60 writel_relaxed(TIM_CR1_ARPE | TIM_CR1_CEN, base + TIM_CR1); in stm32_clock_event_set_periodic() 70 writel_relaxed(evt, data->base + TIM_ARR); in stm32_clock_event_set_next_event() 72 data->base + TIM_CR1); in stm32_clock_event_set_next_event() 81 writel_relaxed(0, data->base + TIM_SR); in stm32_clock_event_handler() 131 data->base = of_iomap(np, 0); in stm32_clockevent_init() [all …]
|
D | moxart_timer.c | 58 static void __iomem *base; variable 63 writel(TIMER1_DISABLE, base + TIMER_CR); in moxart_shutdown() 69 writel(TIMER1_DISABLE, base + TIMER_CR); in moxart_set_oneshot() 70 writel(~0, base + TIMER1_BASE + REG_LOAD); in moxart_set_oneshot() 76 writel(clock_count_per_tick, base + TIMER1_BASE + REG_LOAD); in moxart_set_periodic() 77 writel(TIMER1_ENABLE, base + TIMER_CR); in moxart_set_periodic() 86 writel(TIMER1_DISABLE, base + TIMER_CR); in moxart_clkevt_next_event() 88 u = readl(base + TIMER1_BASE + REG_COUNT) - cycles; in moxart_clkevt_next_event() 89 writel(u, base + TIMER1_BASE + REG_MATCH1); in moxart_clkevt_next_event() 91 writel(TIMER1_ENABLE, base + TIMER_CR); in moxart_clkevt_next_event() [all …]
|
D | asm9260_timer.c | 109 void __iomem *base; member 117 writel_relaxed(delta, priv.base + HW_MR0); in asm9260_timer_set_next_event() 119 writel_relaxed(BM_C0_EN, priv.base + HW_TCR + SET_REG); in asm9260_timer_set_next_event() 126 writel_relaxed(BM_C0_EN, priv.base + HW_TCR + CLR_REG); in __asm9260_timer_shutdown() 141 priv.base + HW_MCR + SET_REG); in asm9260_timer_set_oneshot() 151 priv.base + HW_MCR + CLR_REG); in asm9260_timer_set_periodic() 153 writel_relaxed(priv.ticks_per_jiffy, priv.base + HW_MR0); in asm9260_timer_set_periodic() 155 writel_relaxed(BM_C0_EN, priv.base + HW_TCR + SET_REG); in asm9260_timer_set_periodic() 177 writel_relaxed(BM_IR_MR0, priv.base + HW_IR); in asm9260_timer_interrupt() 194 priv.base = of_io_request_and_map(np, 0, np->name); in asm9260_timer_init() [all …]
|
D | time-pistachio.c | 49 void __iomem *base; member 59 static inline u32 gpt_readl(void __iomem *base, u32 offset, u32 gpt_id) in gpt_readl() argument 61 return readl(base + 0x20 * gpt_id + offset); in gpt_readl() 64 static inline void gpt_writel(void __iomem *base, u32 value, u32 offset, in gpt_writel() argument 67 writel(value, base + 0x20 * gpt_id + offset); in gpt_writel() 83 overflw = gpt_readl(pcs->base, TIMER_CURRENT_OVERFLOW_VALUE, 0); in pistachio_clocksource_read_cycles() 84 counter = gpt_readl(pcs->base, TIMER_CURRENT_VALUE, 0); in pistachio_clocksource_read_cycles() 101 val = gpt_readl(pcs->base, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode() 107 gpt_writel(pcs->base, val, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode() 116 gpt_writel(pcs->base, RELOAD_VALUE, TIMER_RELOAD_VALUE, timeridx); in pistachio_clksrc_enable() [all …]
|
/linux-4.4.14/drivers/gpu/drm/ttm/ |
D | ttm_object.c | 158 struct ttm_base_object *base, in ttm_base_object_init() argument 168 base->shareable = shareable; in ttm_base_object_init() 169 base->tfile = ttm_object_file_ref(tfile); in ttm_base_object_init() 170 base->refcount_release = refcount_release; in ttm_base_object_init() 171 base->ref_obj_release = ref_obj_release; in ttm_base_object_init() 172 base->object_type = object_type; in ttm_base_object_init() 173 kref_init(&base->refcount); in ttm_base_object_init() 176 &base->hash, in ttm_base_object_init() 177 (unsigned long)base, 31, 0, 0); in ttm_base_object_init() 182 ret = ttm_ref_object_add(tfile, base, TTM_REF_USAGE, NULL); in ttm_base_object_init() [all …]
|
/linux-4.4.14/drivers/gpu/drm/msm/dsi/pll/ |
D | dsi_pll_28nm.c | 78 struct msm_dsi_pll base; member 97 #define to_pll_28nm(x) container_of(x, struct dsi_pll_28nm, base) 121 void __iomem *base = pll_28nm->mmio; in pll_28nm_software_reset() local 127 pll_write_udelay(base + REG_DSI_28nm_PHY_PLL_TEST_CFG, in pll_28nm_software_reset() 129 pll_write_udelay(base + REG_DSI_28nm_PHY_PLL_TEST_CFG, 0x00, 1); in pll_28nm_software_reset() 141 void __iomem *base = pll_28nm->mmio; in dsi_pll_28nm_clk_set_rate() local 152 pll_write(base + REG_DSI_28nm_PHY_PLL_POSTDIV2_CFG, 3); in dsi_pll_28nm_clk_set_rate() 163 pll_write(base + REG_DSI_28nm_PHY_PLL_LPFR_CFG, lpfr_lut[i].resistance); in dsi_pll_28nm_clk_set_rate() 166 pll_write(base + REG_DSI_28nm_PHY_PLL_LPFC1_CFG, 0x70); in dsi_pll_28nm_clk_set_rate() 167 pll_write(base + REG_DSI_28nm_PHY_PLL_LPFC2_CFG, 0x15); in dsi_pll_28nm_clk_set_rate() [all …]
|
/linux-4.4.14/drivers/usb/phy/ |
D | phy-tegra-usb.c | 208 void __iomem *base = phy->regs; in set_pts() local 212 val = readl(base + TEGRA_USB_HOSTPC1_DEVLC); in set_pts() 215 writel(val, base + TEGRA_USB_HOSTPC1_DEVLC); in set_pts() 217 val = readl(base + TEGRA_USB_PORTSC1) & ~TEGRA_PORTSC1_RWC_BITS; in set_pts() 220 writel(val, base + TEGRA_USB_PORTSC1); in set_pts() 226 void __iomem *base = phy->regs; in set_phcd() local 230 val = readl(base + TEGRA_USB_HOSTPC1_DEVLC); in set_phcd() 235 writel(val, base + TEGRA_USB_HOSTPC1_DEVLC); in set_phcd() 237 val = readl(base + TEGRA_USB_PORTSC1) & ~PORT_RWC_BITS; in set_phcd() 242 writel(val, base + TEGRA_USB_PORTSC1); in set_phcd() [all …]
|
/linux-4.4.14/arch/arm/mach-mmp/ |
D | devices.c | 81 static unsigned int u2o_get(void __iomem *base, unsigned int offset) in u2o_get() argument 83 return readl_relaxed(base + offset); in u2o_get() 86 static void u2o_set(void __iomem *base, unsigned int offset, in u2o_set() argument 91 reg = readl_relaxed(base + offset); in u2o_set() 93 writel_relaxed(reg, base + offset); in u2o_set() 94 readl_relaxed(base + offset); in u2o_set() 97 static void u2o_clear(void __iomem *base, unsigned int offset, in u2o_clear() argument 102 reg = readl_relaxed(base + offset); in u2o_clear() 104 writel_relaxed(reg, base + offset); in u2o_clear() 105 readl_relaxed(base + offset); in u2o_clear() [all …]
|
/linux-4.4.14/include/crypto/internal/ |
D | aead.h | 27 char head[offsetof(struct aead_alg, base)]; 28 struct crypto_instance base; member 35 struct crypto_spawn base; member 39 struct crypto_queue base; member 44 return crypto_tfm_ctx(&tfm->base); in crypto_aead_ctx() 50 return container_of(&inst->alg.base, struct crypto_instance, alg); in aead_crypto_instance() 55 return container_of(&inst->alg, struct aead_instance, alg.base); in aead_instance() 60 return aead_instance(crypto_tfm_alg_instance(&aead->base)); in aead_alg_instance() 75 req->base.complete(&req->base, err); in aead_request_complete() 80 return req->base.flags; in aead_request_flags() [all …]
|
/linux-4.4.14/drivers/clk/ |
D | clk-efm32gg.c | 27 void __iomem *base; in efm32gg_cmu_init() local 32 base = of_iomap(np, 0); in efm32gg_cmu_init() 33 if (!base) { in efm32gg_cmu_init() 42 "HFXO", 0, base + CMU_HFPERCLKEN0, 0, 0, NULL); in efm32gg_cmu_init() 44 "HFXO", 0, base + CMU_HFPERCLKEN0, 1, 0, NULL); in efm32gg_cmu_init() 46 "HFXO", 0, base + CMU_HFPERCLKEN0, 2, 0, NULL); in efm32gg_cmu_init() 48 "HFXO", 0, base + CMU_HFPERCLKEN0, 3, 0, NULL); in efm32gg_cmu_init() 50 "HFXO", 0, base + CMU_HFPERCLKEN0, 4, 0, NULL); in efm32gg_cmu_init() 52 "HFXO", 0, base + CMU_HFPERCLKEN0, 5, 0, NULL); in efm32gg_cmu_init() 54 "HFXO", 0, base + CMU_HFPERCLKEN0, 6, 0, NULL); in efm32gg_cmu_init() [all …]
|
/linux-4.4.14/sound/soc/txx9/ |
D | txx9aclc-ac97.c | 44 return __raw_readl(drvdata->base + ACINTSTS) & ACINT_REGACCRDY; in txx9aclc_regready() 52 void __iomem *base = drvdata->base; in txx9aclc_ac97_read() local 55 if (!(__raw_readl(base + ACINTSTS) & ACINT_CODECRDY(ac97->num))) in txx9aclc_ac97_read() 59 __raw_writel(dat, base + ACREGACC); in txx9aclc_ac97_read() 60 __raw_writel(ACINT_REGACCRDY, base + ACINTEN); in txx9aclc_ac97_read() 62 __raw_writel(ACINT_REGACCRDY, base + ACINTDIS); in txx9aclc_ac97_read() 67 dat = __raw_readl(base + ACREGACC); in txx9aclc_ac97_read() 76 __raw_writel(ACINT_REGACCRDY, base + ACINTDIS); in txx9aclc_ac97_read() 85 void __iomem *base = drvdata->base; in txx9aclc_ac97_write() local 89 base + ACREGACC); in txx9aclc_ac97_write() [all …]
|
/linux-4.4.14/arch/arm/plat-samsung/ |
D | pm-gpio.c | 35 chip->pm_save[0] = __raw_readl(chip->base + OFFS_CON); in samsung_gpio_pm_1bit_save() 36 chip->pm_save[1] = __raw_readl(chip->base + OFFS_DAT); in samsung_gpio_pm_1bit_save() 41 void __iomem *base = chip->base; in samsung_gpio_pm_1bit_resume() local 42 u32 old_gpcon = __raw_readl(base + OFFS_CON); in samsung_gpio_pm_1bit_resume() 43 u32 old_gpdat = __raw_readl(base + OFFS_DAT); in samsung_gpio_pm_1bit_resume() 54 __raw_writel(gpcon, base + OFFS_CON); in samsung_gpio_pm_1bit_resume() 58 __raw_writel(gps_gpdat, base + OFFS_DAT); in samsung_gpio_pm_1bit_resume() 59 __raw_writel(gps_gpcon, base + OFFS_CON); in samsung_gpio_pm_1bit_resume() 72 chip->pm_save[0] = __raw_readl(chip->base + OFFS_CON); in samsung_gpio_pm_2bit_save() 73 chip->pm_save[1] = __raw_readl(chip->base + OFFS_DAT); in samsung_gpio_pm_2bit_save() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | auxg94.c | 24 #define g94_i2c_aux(p) container_of((p), struct g94_i2c_aux, base) 28 struct nvkm_i2c_aux base; member 35 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in g94_i2c_aux_fini() 42 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in g94_i2c_aux_init() 54 AUX_ERR(&aux->base, "begin idle timeout %08x", ctrl); in g94_i2c_aux_init() 66 AUX_ERR(&aux->base, "magic wait %08x", ctrl); in g94_i2c_aux_init() 80 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in g94_i2c_aux_xfer() 81 const u32 base = aux->ch * 0x50; in g94_i2c_aux_xfer() local 86 AUX_TRACE(&aux->base, "%d: %08x %d", type, addr, size); in g94_i2c_aux_xfer() 92 stat = nvkm_rd32(device, 0x00e4e8 + base); in g94_i2c_aux_xfer() [all …]
|
D | auxgm204.c | 24 #define gm204_i2c_aux(p) container_of((p), struct gm204_i2c_aux, base) 28 struct nvkm_i2c_aux base; member 35 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in gm204_i2c_aux_fini() 42 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in gm204_i2c_aux_init() 54 AUX_ERR(&aux->base, "begin idle timeout %08x", ctrl); in gm204_i2c_aux_init() 66 AUX_ERR(&aux->base, "magic wait %08x", ctrl); in gm204_i2c_aux_init() 80 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in gm204_i2c_aux_xfer() 81 const u32 base = aux->ch * 0x50; in gm204_i2c_aux_xfer() local 86 AUX_TRACE(&aux->base, "%d: %08x %d", type, addr, size); in gm204_i2c_aux_xfer() 92 stat = nvkm_rd32(device, 0x00d958 + base); in gm204_i2c_aux_xfer() [all …]
|
D | busgf119.c | 24 #define gf119_i2c_bus(p) container_of((p), struct gf119_i2c_bus, base) 28 struct nvkm_i2c_bus base; member 33 gf119_i2c_bus_drive_scl(struct nvkm_i2c_bus *base, int state) in gf119_i2c_bus_drive_scl() argument 35 struct gf119_i2c_bus *bus = gf119_i2c_bus(base); in gf119_i2c_bus_drive_scl() 36 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in gf119_i2c_bus_drive_scl() 41 gf119_i2c_bus_drive_sda(struct nvkm_i2c_bus *base, int state) in gf119_i2c_bus_drive_sda() argument 43 struct gf119_i2c_bus *bus = gf119_i2c_bus(base); in gf119_i2c_bus_drive_sda() 44 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in gf119_i2c_bus_drive_sda() 49 gf119_i2c_bus_sense_scl(struct nvkm_i2c_bus *base) in gf119_i2c_bus_sense_scl() argument 51 struct gf119_i2c_bus *bus = gf119_i2c_bus(base); in gf119_i2c_bus_sense_scl() [all …]
|
D | busnv50.c | 24 #define nv50_i2c_bus(p) container_of((p), struct nv50_i2c_bus, base) 30 struct nvkm_i2c_bus base; member 36 nv50_i2c_bus_drive_scl(struct nvkm_i2c_bus *base, int state) in nv50_i2c_bus_drive_scl() argument 38 struct nv50_i2c_bus *bus = nv50_i2c_bus(base); in nv50_i2c_bus_drive_scl() 39 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_drive_scl() 46 nv50_i2c_bus_drive_sda(struct nvkm_i2c_bus *base, int state) in nv50_i2c_bus_drive_sda() argument 48 struct nv50_i2c_bus *bus = nv50_i2c_bus(base); in nv50_i2c_bus_drive_sda() 49 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_drive_sda() 56 nv50_i2c_bus_sense_scl(struct nvkm_i2c_bus *base) in nv50_i2c_bus_sense_scl() argument 58 struct nv50_i2c_bus *bus = nv50_i2c_bus(base); in nv50_i2c_bus_sense_scl() [all …]
|
D | busnv4e.c | 24 #define nv4e_i2c_bus(p) container_of((p), struct nv4e_i2c_bus, base) 28 struct nvkm_i2c_bus base; member 33 nv4e_i2c_bus_drive_scl(struct nvkm_i2c_bus *base, int state) in nv4e_i2c_bus_drive_scl() argument 35 struct nv4e_i2c_bus *bus = nv4e_i2c_bus(base); in nv4e_i2c_bus_drive_scl() 36 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv4e_i2c_bus_drive_scl() 41 nv4e_i2c_bus_drive_sda(struct nvkm_i2c_bus *base, int state) in nv4e_i2c_bus_drive_sda() argument 43 struct nv4e_i2c_bus *bus = nv4e_i2c_bus(base); in nv4e_i2c_bus_drive_sda() 44 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv4e_i2c_bus_drive_sda() 49 nv4e_i2c_bus_sense_scl(struct nvkm_i2c_bus *base) in nv4e_i2c_bus_sense_scl() argument 51 struct nv4e_i2c_bus *bus = nv4e_i2c_bus(base); in nv4e_i2c_bus_sense_scl() [all …]
|
D | busnv04.c | 24 #define nv04_i2c_bus(p) container_of((p), struct nv04_i2c_bus, base) 30 struct nvkm_i2c_bus base; member 36 nv04_i2c_bus_drive_scl(struct nvkm_i2c_bus *base, int state) in nv04_i2c_bus_drive_scl() argument 38 struct nv04_i2c_bus *bus = nv04_i2c_bus(base); in nv04_i2c_bus_drive_scl() 39 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv04_i2c_bus_drive_scl() 47 nv04_i2c_bus_drive_sda(struct nvkm_i2c_bus *base, int state) in nv04_i2c_bus_drive_sda() argument 49 struct nv04_i2c_bus *bus = nv04_i2c_bus(base); in nv04_i2c_bus_drive_sda() 50 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv04_i2c_bus_drive_sda() 58 nv04_i2c_bus_sense_scl(struct nvkm_i2c_bus *base) in nv04_i2c_bus_sense_scl() argument 60 struct nv04_i2c_bus *bus = nv04_i2c_bus(base); in nv04_i2c_bus_sense_scl() [all …]
|
D | anx9805.c | 24 #define anx9805_pad(p) container_of((p), struct anx9805_pad, base) 25 #define anx9805_bus(p) container_of((p), struct anx9805_bus, base) 26 #define anx9805_aux(p) container_of((p), struct anx9805_aux, base) 31 struct nvkm_i2c_pad base; member 37 struct nvkm_i2c_bus base; member 43 anx9805_bus_xfer(struct nvkm_i2c_bus *base, struct i2c_msg *msgs, int num) in anx9805_bus_xfer() argument 45 struct anx9805_bus *bus = anx9805_bus(base); in anx9805_bus_xfer() 103 anx9805_bus_new(struct nvkm_i2c_pad *base, int id, u8 drive, in anx9805_bus_new() argument 106 struct anx9805_pad *pad = anx9805_pad(base); in anx9805_bus_new() 112 *pbus = &bus->base; in anx9805_bus_new() [all …]
|
/linux-4.4.14/drivers/mmc/host/ |
D | mmci_qcom_dml.c | 60 void __iomem *base = host->base + DML_OFFSET; in dml_start_xfer() local 65 config = readl_relaxed(base + DML_CONFIG); in dml_start_xfer() 68 writel_relaxed(config, base + DML_CONFIG); in dml_start_xfer() 71 writel_relaxed(data->blksz, base + DML_PRODUCER_BAM_BLOCK_SIZE); in dml_start_xfer() 75 base + DML_PRODUCER_BAM_TRANS_SIZE); in dml_start_xfer() 77 config = readl_relaxed(base + DML_CONFIG); in dml_start_xfer() 79 writel_relaxed(config, base + DML_CONFIG); in dml_start_xfer() 81 writel_relaxed(1, base + DML_PRODUCER_START); in dml_start_xfer() 85 config = readl_relaxed(base + DML_CONFIG); in dml_start_xfer() 88 writel_relaxed(config, base + DML_CONFIG); in dml_start_xfer() [all …]
|
/linux-4.4.14/tools/perf/tests/attr/ |
D | test-stat-detailed-3 | 8 [event1:base-stat] 14 [event2:base-stat] 20 [event3:base-stat] 26 [event4:base-stat] 32 [event5:base-stat] 38 [event6:base-stat] 44 [event7:base-stat] 50 [event8:base-stat] 56 [event9:base-stat] 62 [event10:base-stat] [all …]
|
D | test-stat-detailed-2 | 8 [event1:base-stat] 14 [event2:base-stat] 20 [event3:base-stat] 26 [event4:base-stat] 32 [event5:base-stat] 38 [event6:base-stat] 44 [event7:base-stat] 50 [event8:base-stat] 56 [event9:base-stat] 62 [event10:base-stat] [all …]
|
D | test-stat-detailed-1 | 8 [event1:base-stat] 14 [event2:base-stat] 20 [event3:base-stat] 26 [event4:base-stat] 32 [event5:base-stat] 38 [event6:base-stat] 44 [event7:base-stat] 50 [event8:base-stat] 56 [event9:base-stat] 62 [event10:base-stat] [all …]
|
/linux-4.4.14/arch/arm/mach-realview/include/mach/ |
D | uncompress.h | 29 #define AMBA_UART_DR(base) (*(volatile unsigned char *)((base) + 0x00)) argument 30 #define AMBA_UART_LCRH(base) (*(volatile unsigned char *)((base) + 0x2c)) argument 31 #define AMBA_UART_CR(base) (*(volatile unsigned char *)((base) + 0x30)) argument 32 #define AMBA_UART_FR(base) (*(volatile unsigned char *)((base) + 0x18)) argument 58 unsigned long base = get_uart_base(); in putc() local 60 while (AMBA_UART_FR(base) & (1 << 5)) in putc() 63 AMBA_UART_DR(base) = c; in putc() 68 unsigned long base = get_uart_base(); in flush() local 70 while (AMBA_UART_FR(base) & (1 << 3)) in flush()
|
/linux-4.4.14/drivers/atm/ |
D | nicstarmac.c | 110 writel((val),(base)+(reg)) 112 readl((base)+(reg)) 121 u_int32_t nicstar_read_eprom_status(virt_addr_t base) 128 val = NICSTAR_REG_READ(base, NICSTAR_REG_GENERAL_PURPOSE) & 0xFFFFFFF0; 131 NICSTAR_REG_WRITE(base, NICSTAR_REG_GENERAL_PURPOSE, 141 NICSTAR_REG_WRITE(base, NICSTAR_REG_GENERAL_PURPOSE, 143 rbyte |= (((NICSTAR_REG_READ(base, NICSTAR_REG_GENERAL_PURPOSE) 145 NICSTAR_REG_WRITE(base, NICSTAR_REG_GENERAL_PURPOSE, 149 NICSTAR_REG_WRITE(base, NICSTAR_REG_GENERAL_PURPOSE, 2); 161 static u_int8_t read_eprom_byte(virt_addr_t base, u_int8_t offset) in read_eprom_byte() argument [all …]
|
/linux-4.4.14/arch/arm/common/ |
D | scoop.c | 36 void __iomem *base; member 48 iowrite16(0x0100, sdev->base + SCOOP_MCR); /* 00 */ in reset_scoop() 49 iowrite16(0x0000, sdev->base + SCOOP_CDR); /* 04 */ in reset_scoop() 50 iowrite16(0x0000, sdev->base + SCOOP_CCR); /* 10 */ in reset_scoop() 51 iowrite16(0x0000, sdev->base + SCOOP_IMR); /* 18 */ in reset_scoop() 52 iowrite16(0x00FF, sdev->base + SCOOP_IRM); /* 14 */ in reset_scoop() 53 iowrite16(0x0000, sdev->base + SCOOP_ISR); /* 1C */ in reset_scoop() 54 iowrite16(0x0000, sdev->base + SCOOP_IRM); in reset_scoop() 62 gpwr = ioread16(sdev->base + SCOOP_GPWR); in __scoop_gpio_set() 67 iowrite16(gpwr, sdev->base + SCOOP_GPWR); in __scoop_gpio_set() [all …]
|
D | locomo.c | 69 void __iomem *base; member 150 req = locomo_readl(lchip->base + LOCOMO_ICR) & 0x0f00; in locomo_handler() 174 r = locomo_readl(lchip->base + LOCOMO_ICR); in locomo_mask_irq() 176 locomo_writel(r, lchip->base + LOCOMO_ICR); in locomo_mask_irq() 183 r = locomo_readl(lchip->base + LOCOMO_ICR); in locomo_unmask_irq() 185 locomo_writel(r, lchip->base + LOCOMO_ICR); in locomo_unmask_irq() 251 dev->mapbase = lchip->base + info->offset; in locomo_init_one_child() 291 save->LCM_GPO = locomo_readl(lchip->base + LOCOMO_GPO); /* GPIO */ in locomo_suspend() 292 locomo_writel(0x00, lchip->base + LOCOMO_GPO); in locomo_suspend() 293 save->LCM_SPICT = locomo_readl(lchip->base + LOCOMO_SPI + LOCOMO_SPICT); /* SPI */ in locomo_suspend() [all …]
|
D | sa1111.c | 108 void __iomem *base; member 203 void __iomem *mapbase = sachip->base + SA1111_INTC; in sa1111_irq_handler() 241 void __iomem *mapbase = sachip->base + SA1111_INTC; in sa1111_mask_lowirq() 252 void __iomem *mapbase = sachip->base + SA1111_INTC; in sa1111_unmask_lowirq() 270 void __iomem *mapbase = sachip->base + SA1111_INTC; in sa1111_retrigger_lowirq() 292 void __iomem *mapbase = sachip->base + SA1111_INTC; in sa1111_type_lowirq() 316 void __iomem *mapbase = sachip->base + SA1111_INTC; in sa1111_wake_lowirq() 343 void __iomem *mapbase = sachip->base + SA1111_INTC; in sa1111_mask_highirq() 354 void __iomem *mapbase = sachip->base + SA1111_INTC; in sa1111_unmask_highirq() 372 void __iomem *mapbase = sachip->base + SA1111_INTC; in sa1111_retrigger_highirq() [all …]
|
/linux-4.4.14/drivers/devfreq/event/ |
D | exynos-ppmu.c | 27 void __iomem *base; member 122 info->ppmu.base + PPMU_CNTENC); in exynos_ppmu_disable() 125 pmnc = __raw_readl(info->ppmu.base + PPMU_PMNC); in exynos_ppmu_disable() 127 __raw_writel(pmnc, info->ppmu.base + PPMU_PMNC); in exynos_ppmu_disable() 142 cntens = __raw_readl(info->ppmu.base + PPMU_CNTENS); in exynos_ppmu_set_event() 144 __raw_writel(cntens, info->ppmu.base + PPMU_CNTENS); in exynos_ppmu_set_event() 148 info->ppmu.base + PPMU_BEVTxSEL(id)); in exynos_ppmu_set_event() 151 pmnc = __raw_readl(info->ppmu.base + PPMU_PMNC); in exynos_ppmu_set_event() 158 __raw_writel(pmnc, info->ppmu.base + PPMU_PMNC); in exynos_ppmu_set_event() 174 pmnc = __raw_readl(info->ppmu.base + PPMU_PMNC); in exynos_ppmu_get_event() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | dmacnv50.c | 41 nv50_disp_dmac_child_del_(struct nvkm_oproxy *base) in nv50_disp_dmac_child_del_() argument 44 container_of(base, typeof(*object), oproxy); in nv50_disp_dmac_child_del_() 54 nv50_disp_dmac_child_new_(struct nv50_disp_chan *base, in nv50_disp_dmac_child_new_() argument 58 struct nv50_disp_dmac *chan = nv50_disp_dmac(base); in nv50_disp_dmac_child_new_() 59 struct nv50_disp_root *root = chan->base.root; in nv50_disp_dmac_child_new_() 60 struct nvkm_device *device = root->disp->base.engine.subdev.device; in nv50_disp_dmac_child_new_() 69 *pobject = &object->oproxy.base; in nv50_disp_dmac_child_new_() 84 nv50_disp_dmac_child_get_(struct nv50_disp_chan *base, int index, in nv50_disp_dmac_child_get_() argument 87 struct nv50_disp_dmac *chan = nv50_disp_dmac(base); in nv50_disp_dmac_child_get_() 88 struct nv50_disp *disp = chan->base.root->disp; in nv50_disp_dmac_child_get_() [all …]
|
D | outpdp.c | 34 nvkm_output_dp_train(struct nvkm_output *base, u32 datarate, bool wait) in nvkm_output_dp_train() argument 36 struct nvkm_output_dp *outp = nvkm_output_dp(base); in nvkm_output_dp_train() 45 OUTP_DBG(&outp->base, in nvkm_output_dp_train() 54 OUTP_DBG(&outp->base, "link not trained at sufficient rate"); in nvkm_output_dp_train() 61 OUTP_DBG(&outp->base, in nvkm_output_dp_train() 72 OUTP_DBG(&outp->base, in nvkm_output_dp_train() 79 OUTP_DBG(&outp->base, "no inter-lane alignment"); in nvkm_output_dp_train() 87 outp->base.info.dpconf.link_bw; in nvkm_output_dp_train() 89 outp->base.info.dpconf.link_nr; in nvkm_output_dp_train() 114 OUTP_DBG(&outp->base, "aux power -> always"); in nvkm_output_dp_enable() [all …]
|
/linux-4.4.14/arch/x86/mm/ |
D | amdtopology.c | 99 u64 base, limit; in amd_numa_init() local 101 base = read_pci_config(0, nb, 1, 0x40 + i*8); in amd_numa_init() 105 if ((base & 3) == 0) { in amd_numa_init() 112 base, limit); in amd_numa_init() 118 i, base); in amd_numa_init() 121 if ((base >> 8) & 3 || (limit >> 8) & 3) { in amd_numa_init() 123 nodeid, (base >> 8) & 3, (limit >> 8) & 3); in amd_numa_init() 138 if (limit <= base) in amd_numa_init() 141 base >>= 16; in amd_numa_init() 142 base <<= 24; in amd_numa_init() [all …]
|
/linux-4.4.14/arch/mips/include/asm/netlogic/xlp-hal/ |
D | pic.h | 228 nlm_9xx_pic_write_irt(uint64_t base, int irt_num, int en, int nmi, in nlm_9xx_pic_write_irt() argument 238 nlm_write_pic_reg(base, PIC_9XX_IRT(irt_num), val); in nlm_9xx_pic_write_irt() 242 nlm_pic_write_irt(uint64_t base, int irt_num, int en, int nmi, in nlm_pic_write_irt() argument 252 nlm_write_pic_reg(base, PIC_IRT(irt_num), val); in nlm_pic_write_irt() 256 nlm_pic_write_irt_direct(uint64_t base, int irt_num, int en, int nmi, in nlm_pic_write_irt_direct() argument 260 nlm_9xx_pic_write_irt(base, irt_num, en, nmi, sch, vec, in nlm_pic_write_irt_direct() 263 nlm_pic_write_irt(base, irt_num, en, nmi, sch, vec, 1, in nlm_pic_write_irt_direct() 269 nlm_pic_read_timer(uint64_t base, int timer) in nlm_pic_read_timer() argument 271 return nlm_read_pic_reg(base, PIC_TIMER_COUNT(timer)); in nlm_pic_read_timer() 275 nlm_pic_read_timer32(uint64_t base, int timer) in nlm_pic_read_timer32() argument [all …]
|
D | uart.h | 103 nlm_uart_set_baudrate(uint64_t base, int baud) in nlm_uart_set_baudrate() argument 107 lcr = nlm_read_uart_reg(base, UART_LINE_CTL); in nlm_uart_set_baudrate() 110 nlm_write_uart_reg(base, UART_LINE_CTL, lcr | (1 << 7)); in nlm_uart_set_baudrate() 111 nlm_write_uart_reg(base, UART_DIVISOR0, in nlm_uart_set_baudrate() 113 nlm_write_uart_reg(base, UART_DIVISOR1, in nlm_uart_set_baudrate() 117 nlm_write_uart_reg(base, UART_LINE_CTL, lcr); in nlm_uart_set_baudrate() 121 nlm_uart_outbyte(uint64_t base, char c) in nlm_uart_outbyte() argument 126 lsr = nlm_read_uart_reg(base, UART_LINE_STS); in nlm_uart_outbyte() 131 nlm_write_uart_reg(base, UART_TX_DATA, (int)c); in nlm_uart_outbyte() 135 nlm_uart_inbyte(uint64_t base) in nlm_uart_inbyte() argument [all …]
|
/linux-4.4.14/mm/ |
D | memblock.c | 80 static inline phys_addr_t memblock_cap_size(phys_addr_t base, phys_addr_t *size) in memblock_cap_size() argument 82 return *size = min(*size, (phys_addr_t)ULLONG_MAX - base); in memblock_cap_size() 95 phys_addr_t base, phys_addr_t size) in memblock_overlaps_region() argument 100 phys_addr_t rgnbase = type->regions[i].base; in memblock_overlaps_region() 102 if (memblock_addrs_overlap(base, size, rgnbase, rgnsize)) in memblock_overlaps_region() 296 type->regions[0].base = 0; in memblock_remove_region() 463 if (this->base + this->size != next->base || in memblock_merge_regions() 467 BUG_ON(this->base + this->size > next->base); in memblock_merge_regions() 492 int idx, phys_addr_t base, in memblock_insert_region() argument 500 rgn->base = base; in memblock_insert_region() [all …]
|
/linux-4.4.14/include/sound/ |
D | snd_wavefront.h | 22 unsigned long base; /* I/O port address */ member 50 unsigned long base; /* low i/o port address */ member 53 #define mpu_data_port base 54 #define mpu_command_port base + 1 /* write semantics */ 55 #define mpu_status_port base + 1 /* read semantics */ 56 #define data_port base + 2 57 #define status_port base + 3 /* read semantics */ 58 #define control_port base + 3 /* write semantics */ 59 #define block_port base + 4 /* 16 bit, writeonly */ 60 #define last_block_port base + 6 /* 16 bit, writeonly */ [all …]
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | btext.c | 154 unsigned long base, offset, size; in btext_map() local 161 base = ((unsigned long) dispDeviceBase) & 0xFFFFF000UL; in btext_map() 162 offset = ((unsigned long) dispDeviceBase) - base; in btext_map() 165 vbase = __ioremap(base, size, _PAGE_NO_CACHE); in btext_map() 269 unsigned char *base; in calc_base() local 271 base = logicalDisplayBase; in calc_base() 272 if (base == 0) in calc_base() 273 base = dispDeviceBase; in calc_base() 274 base += (x + dispDeviceRect[0]) * (dispDeviceDepth >> 3); in calc_base() 275 base += (y + dispDeviceRect[1]) * dispDeviceRowBytes; in calc_base() [all …]
|
/linux-4.4.14/drivers/i2c/busses/ |
D | i2c-wmt.c | 90 void __iomem *base; member 102 while (!(readw(i2c_dev->base + REG_CSR) & CSR_READY_MASK)) { in wmt_i2c_wait_bus_not_busy() 147 writew(0, i2c_dev->base + REG_CDR); in wmt_i2c_write() 149 writew(pmsg->buf[0] & 0xFF, i2c_dev->base + REG_CDR); in wmt_i2c_write() 153 val = readw(i2c_dev->base + REG_CR); in wmt_i2c_write() 155 writew(val, i2c_dev->base + REG_CR); in wmt_i2c_write() 157 val = readw(i2c_dev->base + REG_CR); in wmt_i2c_write() 159 writew(val, i2c_dev->base + REG_CR); in wmt_i2c_write() 171 writew(tcr_val, i2c_dev->base + REG_TCR); in wmt_i2c_write() 174 val = readw(i2c_dev->base + REG_CR); in wmt_i2c_write() [all …]
|
D | i2c-elektor.c | 44 static int base; variable 144 if (!request_region(base, 2, pcf_isa_ops.name)) { in pcf_isa_init() 146 "in use\n", pcf_isa_ops.name, base); in pcf_isa_init() 149 base_iomem = ioport_map(base, 2); in pcf_isa_init() 152 pcf_isa_ops.name, base); in pcf_isa_init() 153 release_region(base, 2); in pcf_isa_init() 157 if (!request_mem_region(base, 2, pcf_isa_ops.name)) { in pcf_isa_init() 159 "is in use\n", pcf_isa_ops.name, base); in pcf_isa_init() 162 base_iomem = ioremap(base, 2); in pcf_isa_init() 165 "failed\n", pcf_isa_ops.name, base); in pcf_isa_init() [all …]
|
D | i2c-st.c | 189 void __iomem *base; member 247 if (readl_relaxed(i2c_dev->base + SSC_STA) & SSC_STA_RIR) in st_i2c_flush_rx_fifo() 250 count = readl_relaxed(i2c_dev->base + SSC_RX_FSTAT) & in st_i2c_flush_rx_fifo() 254 readl_relaxed(i2c_dev->base + SSC_RBUF); in st_i2c_flush_rx_fifo() 265 st_i2c_set_bits(i2c_dev->base + SSC_CTL, SSC_CTL_SR); in st_i2c_soft_reset() 266 st_i2c_clr_bits(i2c_dev->base + SSC_CTL, SSC_CTL_SR); in st_i2c_soft_reset() 283 writel_relaxed(val, i2c_dev->base + SSC_CLR); in st_i2c_hw_config() 287 writel_relaxed(val, i2c_dev->base + SSC_CTL); in st_i2c_hw_config() 294 writel_relaxed(val, i2c_dev->base + SSC_BRG); in st_i2c_hw_config() 297 writel_relaxed(1, i2c_dev->base + SSC_PRE_SCALER_BRG); in st_i2c_hw_config() [all …]
|
D | i2c-axxia.c | 100 void __iomem *base; member 115 int_en = readl(idev->base + MST_INT_ENABLE); in i2c_int_disable() 116 writel(int_en & ~mask, idev->base + MST_INT_ENABLE); in i2c_int_disable() 123 int_en = readl(idev->base + MST_INT_ENABLE); in i2c_int_enable() 124 writel(int_en | mask, idev->base + MST_INT_ENABLE); in i2c_int_enable() 149 writel(0x01, idev->base + SOFT_RESET); in axxia_i2c_init() 151 while (readl(idev->base + SOFT_RESET) & 1) { in axxia_i2c_init() 159 writel(0x1, idev->base + GLOBAL_CONTROL); in axxia_i2c_init() 174 writel(t_high, idev->base + SCL_HIGH_PERIOD); in axxia_i2c_init() 176 writel(t_low, idev->base + SCL_LOW_PERIOD); in axxia_i2c_init() [all …]
|
D | i2c-lpc2k.c | 78 void __iomem *base; member 92 writel(LPC24XX_CLEAR_ALL, i2c->base + LPC24XX_I2CONCLR); in i2c_lpc2k_reset() 93 writel(0, i2c->base + LPC24XX_I2ADDR); in i2c_lpc2k_reset() 94 writel(LPC24XX_I2EN, i2c->base + LPC24XX_I2CONSET); in i2c_lpc2k_reset() 105 writel(LPC24XX_STO, i2c->base + LPC24XX_I2CONSET); in i2c_lpc2k_clear_arb() 108 while (readl(i2c->base + LPC24XX_I2STAT) != M_I2C_IDLE) { in i2c_lpc2k_clear_arb() 130 status = readl(i2c->base + LPC24XX_I2STAT); in i2c_lpc2k_pump_msg() 140 writel(data, i2c->base + LPC24XX_I2DAT); in i2c_lpc2k_pump_msg() 141 writel(LPC24XX_STA, i2c->base + LPC24XX_I2CONCLR); in i2c_lpc2k_pump_msg() 152 i2c->base + LPC24XX_I2DAT); in i2c_lpc2k_pump_msg() [all …]
|
D | i2c-bcm-kona.c | 157 void __iomem *base; member 178 dev->base + CS_OFFSET); in bcm_kona_i2c_send_cmd_to_ctrl() 185 dev->base + CS_OFFSET); in bcm_kona_i2c_send_cmd_to_ctrl() 192 dev->base + CS_OFFSET); in bcm_kona_i2c_send_cmd_to_ctrl() 198 dev->base + CS_OFFSET); in bcm_kona_i2c_send_cmd_to_ctrl() 208 writel(readl(dev->base + CLKEN_OFFSET) | CLKEN_CLKEN_MASK, in bcm_kona_i2c_enable_clock() 209 dev->base + CLKEN_OFFSET); in bcm_kona_i2c_enable_clock() 214 writel(readl(dev->base + CLKEN_OFFSET) & ~CLKEN_CLKEN_MASK, in bcm_kona_i2c_disable_clock() 215 dev->base + CLKEN_OFFSET); in bcm_kona_i2c_disable_clock() 221 uint32_t status = readl(dev->base + ISR_OFFSET); in bcm_kona_i2c_isr() [all …]
|
D | i2c-sirf.c | 71 void __iomem *base; member 96 data = readl(siic->base + SIRFSOC_I2C_DATA_BUF + i); in i2c_sirfsoc_read_data() 116 siic->base + SIRFSOC_I2C_CMD(siic->cmd_ptr++)); in i2c_sirfsoc_queue_cmd() 129 siic->base + SIRFSOC_I2C_CMD(siic->cmd_ptr++)); in i2c_sirfsoc_queue_cmd() 131 siic->base + SIRFSOC_I2C_CMD(siic->cmd_ptr++)); in i2c_sirfsoc_queue_cmd() 137 writel(SIRFSOC_I2C_START_CMD, siic->base + SIRFSOC_I2C_CMD_START); in i2c_sirfsoc_queue_cmd() 143 u32 i2c_stat = readl(siic->base + SIRFSOC_I2C_STATUS); in i2c_sirfsoc_irq() 148 writel(SIRFSOC_I2C_STAT_ERR, siic->base + SIRFSOC_I2C_STATUS); in i2c_sirfsoc_irq() 160 writel(readl(siic->base + SIRFSOC_I2C_CTRL) | SIRFSOC_I2C_RESET, in i2c_sirfsoc_irq() 161 siic->base + SIRFSOC_I2C_CTRL); in i2c_sirfsoc_irq() [all …]
|
D | i2c-bcm-iproc.c | 91 void __iomem *base; member 108 u32 status = readl(iproc_i2c->base + IS_OFFSET); in bcm_iproc_i2c_isr() 115 writel(status, iproc_i2c->base + IS_OFFSET); in bcm_iproc_i2c_isr() 127 val = readl(iproc_i2c->base + M_CMD_OFFSET); in bcm_iproc_i2c_check_status() 165 if (!!(readl(iproc_i2c->base + M_CMD_OFFSET) & in bcm_iproc_i2c_xfer_single_msg() 173 writel(addr, iproc_i2c->base + M_TX_OFFSET); in bcm_iproc_i2c_xfer_single_msg() 184 writel(val, iproc_i2c->base + M_TX_OFFSET); in bcm_iproc_i2c_xfer_single_msg() 197 writel(1 << IE_M_START_BUSY_SHIFT, iproc_i2c->base + IE_OFFSET); in bcm_iproc_i2c_xfer_single_msg() 210 writel(val, iproc_i2c->base + M_CMD_OFFSET); in bcm_iproc_i2c_xfer_single_msg() 215 writel(0, iproc_i2c->base + IE_OFFSET); in bcm_iproc_i2c_xfer_single_msg() [all …]
|
D | i2c-riic.c | 96 void __iomem *base; member 115 writeb((readb(riic->base + reg) & ~clear) | set, riic->base + reg); in riic_clear_set_bit() 129 if (readb(riic->base + RIIC_ICCR2) & ICCR2_BBSY) { in riic_xfer() 137 writeb(0, riic->base + RIIC_ICSR2); in riic_xfer() 145 writeb(ICIER_NAKIE | ICIER_TIE, riic->base + RIIC_ICIER); in riic_xfer() 147 writeb(start_bit, riic->base + RIIC_ICCR2); in riic_xfer() 202 writeb(val, riic->base + RIIC_ICDRT); in riic_tdre_isr() 211 if (readb(riic->base + RIIC_ICSR2) & ICSR2_NACKF) { in riic_tend_isr() 213 readb(riic->base + RIIC_ICDRR); /* dummy read */ in riic_tend_isr() 220 writeb(ICCR2_SP, riic->base + RIIC_ICCR2); in riic_tend_isr() [all …]
|
/linux-4.4.14/drivers/virtio/ |
D | virtio_mmio.c | 90 void __iomem *base; member 121 writel(1, vm_dev->base + VIRTIO_MMIO_DEVICE_FEATURES_SEL); in vm_get_features() 122 features = readl(vm_dev->base + VIRTIO_MMIO_DEVICE_FEATURES); in vm_get_features() 125 writel(0, vm_dev->base + VIRTIO_MMIO_DEVICE_FEATURES_SEL); in vm_get_features() 126 features |= readl(vm_dev->base + VIRTIO_MMIO_DEVICE_FEATURES); in vm_get_features() 145 writel(1, vm_dev->base + VIRTIO_MMIO_DRIVER_FEATURES_SEL); in vm_finalize_features() 147 vm_dev->base + VIRTIO_MMIO_DRIVER_FEATURES); in vm_finalize_features() 149 writel(0, vm_dev->base + VIRTIO_MMIO_DRIVER_FEATURES_SEL); in vm_finalize_features() 151 vm_dev->base + VIRTIO_MMIO_DRIVER_FEATURES); in vm_finalize_features() 160 void __iomem *base = vm_dev->base + VIRTIO_MMIO_CONFIG; in vm_get() local [all …]
|
/linux-4.4.14/drivers/gpu/ipu-v3/ |
D | ipu-dp.c | 64 void __iomem *base; member 71 void __iomem *base; member 96 reg = readl(flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha() 101 writel(reg, flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha() 104 reg = readl(flow->base + DP_GRAPH_WIND_CTRL) & 0x00FFFFFFL; in ipu_dp_set_global_alpha() 106 flow->base + DP_GRAPH_WIND_CTRL); in ipu_dp_set_global_alpha() 108 reg = readl(flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha() 109 writel(reg | DP_COM_CONF_GWAM, flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha() 111 reg = readl(flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha() 112 writel(reg & ~DP_COM_CONF_GWAM, flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha() [all …]
|
/linux-4.4.14/drivers/spi/ |
D | spi-sirf.c | 256 void __iomem *base; member 307 writel(readl(sspi->base + sspi->regs->usp_mode1) & in sirfsoc_usp_hwinit() 308 ~SIRFSOC_USP_EN, sspi->base + sspi->regs->usp_mode1); in sirfsoc_usp_hwinit() 309 writel(readl(sspi->base + sspi->regs->usp_mode1) | in sirfsoc_usp_hwinit() 310 SIRFSOC_USP_EN, sspi->base + sspi->regs->usp_mode1); in sirfsoc_usp_hwinit() 318 data = readl(sspi->base + sspi->regs->rxfifo_data); in spi_sirfsoc_rx_word_u8() 337 writel(data, sspi->base + sspi->regs->txfifo_data); in spi_sirfsoc_tx_word_u8() 346 data = readl(sspi->base + sspi->regs->rxfifo_data); in spi_sirfsoc_rx_word_u16() 366 writel(data, sspi->base + sspi->regs->txfifo_data); in spi_sirfsoc_tx_word_u16() 375 data = readl(sspi->base + sspi->regs->rxfifo_data); in spi_sirfsoc_rx_word_u32() [all …]
|
D | spi-altera.c | 52 void __iomem *base; member 77 hw->base + ALTERA_SPI_SLAVE_SEL); in altera_spi_chipsel() 79 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_chipsel() 84 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_chipsel() 85 writel(0, hw->base + ALTERA_SPI_SLAVE_SEL); in altera_spi_chipsel() 92 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_chipsel() 97 hw->base + ALTERA_SPI_SLAVE_SEL); in altera_spi_chipsel() 99 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_chipsel() 132 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_txrx() 135 writel(hw_txbyte(hw, 0), hw->base + ALTERA_SPI_TXDATA); in altera_spi_txrx() [all …]
|
/linux-4.4.14/drivers/watchdog/ |
D | omap_wdt.c | 65 void __iomem *base; /* physical */ member 74 void __iomem *base = wdev->base; in omap_wdt_reload() local 77 while ((readl_relaxed(base + OMAP_WATCHDOG_WPS)) & 0x08) in omap_wdt_reload() 81 writel_relaxed(wdev->wdt_trgr_pattern, (base + OMAP_WATCHDOG_TGR)); in omap_wdt_reload() 84 while ((readl_relaxed(base + OMAP_WATCHDOG_WPS)) & 0x08) in omap_wdt_reload() 91 void __iomem *base = wdev->base; in omap_wdt_enable() local 94 writel_relaxed(0xBBBB, base + OMAP_WATCHDOG_SPR); in omap_wdt_enable() 95 while ((readl_relaxed(base + OMAP_WATCHDOG_WPS)) & 0x10) in omap_wdt_enable() 98 writel_relaxed(0x4444, base + OMAP_WATCHDOG_SPR); in omap_wdt_enable() 99 while ((readl_relaxed(base + OMAP_WATCHDOG_WPS)) & 0x10) in omap_wdt_enable() [all …]
|
D | nv_tco.h | 34 #define TCO_RLD(base) ((base) + 0x00) /* TCO Timer Reload and Current Value */ argument 35 #define TCO_TMR(base) ((base) + 0x01) /* TCO Timer Initial Value */ argument 37 #define TCO_STS(base) ((base) + 0x04) /* TCO Status Register */ argument 53 #define TCO_CNT(base) ((base) + 0x08) /* TCO Control Register */ argument 63 #define MCP51_SMI_EN(base) ((base) - 0x40 + 0x04) argument
|
D | davinci_wdt.c | 66 void __iomem *base; member 81 iowrite32(0, davinci_wdt->base + TCR); in davinci_wdt_start() 83 iowrite32(0, davinci_wdt->base + TGCR); in davinci_wdt_start() 85 iowrite32(tgcr, davinci_wdt->base + TGCR); in davinci_wdt_start() 87 iowrite32(0, davinci_wdt->base + TIM12); in davinci_wdt_start() 88 iowrite32(0, davinci_wdt->base + TIM34); in davinci_wdt_start() 91 iowrite32(timer_margin, davinci_wdt->base + PRD12); in davinci_wdt_start() 93 iowrite32(timer_margin, davinci_wdt->base + PRD34); in davinci_wdt_start() 95 iowrite32(ENAMODE12_PERIODIC, davinci_wdt->base + TCR); in davinci_wdt_start() 101 iowrite32(WDKEY_SEQ0 | WDEN, davinci_wdt->base + WDTCR); in davinci_wdt_start() [all …]
|
/linux-4.4.14/arch/arm/mach-shmobile/ |
D | setup-rcar-gen2.c | 56 void __iomem *base; in rcar_gen2_timer_init() local 108 base = ioremap(0xe6080000, PAGE_SIZE); in rcar_gen2_timer_init() 117 if ((ioread32(base + CNTCR) & 1) == 0 || in rcar_gen2_timer_init() 118 ioread32(base + CNTFID0) != freq) { in rcar_gen2_timer_init() 120 iowrite32(freq, base + CNTFID0); in rcar_gen2_timer_init() 124 iowrite32(1, base + CNTCR); in rcar_gen2_timer_init() 127 iounmap(base); in rcar_gen2_timer_init() 136 u64 base, size; member 160 u64 base, size; in rcar_gen2_scan_mem() local 162 base = dt_mem_next_cell(dt_root_addr_cells, ®); in rcar_gen2_scan_mem() [all …]
|
/linux-4.4.14/arch/powerpc/net/ |
D | bpf_jit.h | 104 #define PPC_STD(r, base, i) EMIT(PPC_INST_STD | ___PPC_RS(r) | \ argument 105 ___PPC_RA(base) | ((i) & 0xfffc)) 106 #define PPC_STDU(r, base, i) EMIT(PPC_INST_STDU | ___PPC_RS(r) | \ argument 107 ___PPC_RA(base) | ((i) & 0xfffc)) 108 #define PPC_STW(r, base, i) EMIT(PPC_INST_STW | ___PPC_RS(r) | \ argument 109 ___PPC_RA(base) | ((i) & 0xfffc)) 110 #define PPC_STWU(r, base, i) EMIT(PPC_INST_STWU | ___PPC_RS(r) | \ argument 111 ___PPC_RA(base) | ((i) & 0xfffc)) 113 #define PPC_LBZ(r, base, i) EMIT(PPC_INST_LBZ | ___PPC_RT(r) | \ argument 114 ___PPC_RA(base) | IMM_L(i)) [all …]
|
/linux-4.4.14/drivers/pcmcia/ |
D | rsrc_nonstatic.c | 52 u_long base, num; member 76 claim_region(struct pcmcia_socket *s, resource_size_t base, in claim_region() argument 82 res = pcmcia_make_resource(base, size, type | IORESOURCE_BUSY, name); in claim_region() 111 static int add_interval(struct resource_map *map, u_long base, u_long num) in add_interval() argument 116 if ((p != map) && (p->base+p->num >= base)) { in add_interval() 117 p->num = max(num + base - p->base, p->num); in add_interval() 120 if ((p->next == map) || (p->next->base > base+num-1)) in add_interval() 128 q->base = base; q->num = num; in add_interval() 135 static int sub_interval(struct resource_map *map, u_long base, u_long num) in sub_interval() argument 143 if ((q->base+q->num > base) && (base+num > q->base)) { in sub_interval() [all …]
|
/linux-4.4.14/arch/arm/mach-gemini/ |
D | gpio.c | 48 static void _set_gpio_irqenable(void __iomem *base, unsigned int index, in _set_gpio_irqenable() argument 53 reg = __raw_readl(base + GPIO_INT_EN); in _set_gpio_irqenable() 55 __raw_writel(reg, base + GPIO_INT_EN); in _set_gpio_irqenable() 61 void __iomem *base = GPIO_BASE(gpio / 32); in gpio_ack_irq() local 63 __raw_writel(1 << (gpio % 32), base + GPIO_INT_CLR); in gpio_ack_irq() 69 void __iomem *base = GPIO_BASE(gpio / 32); in gpio_mask_irq() local 71 _set_gpio_irqenable(base, gpio % 32, 0); in gpio_mask_irq() 77 void __iomem *base = GPIO_BASE(gpio / 32); in gpio_unmask_irq() local 79 _set_gpio_irqenable(base, gpio % 32, 1); in gpio_unmask_irq() 86 void __iomem *base = GPIO_BASE(gpio / 32); in gpio_set_irq_type() local [all …]
|
/linux-4.4.14/drivers/of/ |
D | of_reserved_mem.c | 35 phys_addr_t base; in early_init_dt_alloc_reserved_memory_arch() local 41 base = __memblock_alloc_base(size, align, end); in early_init_dt_alloc_reserved_memory_arch() 42 if (!base) in early_init_dt_alloc_reserved_memory_arch() 48 if (base < start) { in early_init_dt_alloc_reserved_memory_arch() 49 memblock_free(base, size); in early_init_dt_alloc_reserved_memory_arch() 53 *res_base = base; in early_init_dt_alloc_reserved_memory_arch() 55 return memblock_remove(base, size); in early_init_dt_alloc_reserved_memory_arch() 73 phys_addr_t base, phys_addr_t size) in fdt_reserved_mem_save_node() argument 84 rmem->base = base; in fdt_reserved_mem_save_node() 100 phys_addr_t base = 0, align = 0, size; in __reserved_mem_alloc_size() local [all …]
|
/linux-4.4.14/sound/soc/fsl/ |
D | imx-ssi.c | 67 sccr = readl(ssi->base + SSI_STCCR); in imx_ssi_set_dai_tdm_slot() 70 writel(sccr, ssi->base + SSI_STCCR); in imx_ssi_set_dai_tdm_slot() 72 sccr = readl(ssi->base + SSI_SRCCR); in imx_ssi_set_dai_tdm_slot() 75 writel(sccr, ssi->base + SSI_SRCCR); in imx_ssi_set_dai_tdm_slot() 77 writel(~tx_mask, ssi->base + SSI_STMSK); in imx_ssi_set_dai_tdm_slot() 78 writel(~rx_mask, ssi->base + SSI_SRMSK); in imx_ssi_set_dai_tdm_slot() 92 scr = readl(ssi->base + SSI_SCR) & ~(SSI_SCR_SYN | SSI_SCR_NET); in imx_ssi_set_dai_fmt() 152 writel(strcr, ssi->base + SSI_STCR); in imx_ssi_set_dai_fmt() 153 writel(strcr, ssi->base + SSI_SRCR); in imx_ssi_set_dai_fmt() 154 writel(scr, ssi->base + SSI_SCR); in imx_ssi_set_dai_fmt() [all …]
|
/linux-4.4.14/arch/x86/kernel/cpu/mtrr/ |
D | if.c | 38 mtrr_file_add(unsigned long base, unsigned long size, in mtrr_file_add() argument 52 if ((base & (PAGE_SIZE - 1)) || (size & (PAGE_SIZE - 1))) in mtrr_file_add() 54 base >>= PAGE_SHIFT; in mtrr_file_add() 57 reg = mtrr_add_page(base, size, type, true); in mtrr_file_add() 64 mtrr_file_del(unsigned long base, unsigned long size, in mtrr_file_del() argument 71 if ((base & (PAGE_SIZE - 1)) || (size & (PAGE_SIZE - 1))) in mtrr_file_del() 73 base >>= PAGE_SHIFT; in mtrr_file_del() 76 reg = mtrr_del_page(-1, base, size); in mtrr_file_del() 98 unsigned long long base, size; in mtrr_write() local 137 base = simple_strtoull(line + 5, &ptr, 0); in mtrr_write() [all …]
|
D | main.c | 79 static void set_mtrr(unsigned int reg, unsigned long base, 229 set_mtrr(unsigned int reg, unsigned long base, unsigned long size, mtrr_type type) in set_mtrr() argument 232 .smp_base = base, in set_mtrr() 240 static void set_mtrr_from_inactive_cpu(unsigned int reg, unsigned long base, in set_mtrr_from_inactive_cpu() argument 244 .smp_base = base, in set_mtrr_from_inactive_cpu() 288 int mtrr_add_page(unsigned long base, unsigned long size, in mtrr_add_page() argument 298 error = mtrr_if->validate_add_page(base, size, type); in mtrr_add_page() 318 if ((base | (base + size - 1)) >> in mtrr_add_page() 334 if (!lsize || base > lbase + lsize - 1 || in mtrr_add_page() 335 base + size - 1 < lbase) in mtrr_add_page() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/ |
D | xtensa.c | 35 oclass->base = xtensa->func->sclass[index]; in nvkm_xtensa_oclass_get() 62 const u32 base = xtensa->addr; in nvkm_xtensa_intr() local 63 u32 unk104 = nvkm_rd32(device, base + 0xd04); in nvkm_xtensa_intr() 64 u32 intr = nvkm_rd32(device, base + 0xc20); in nvkm_xtensa_intr() 65 u32 chan = nvkm_rd32(device, base + 0xc28); in nvkm_xtensa_intr() 66 u32 unk10c = nvkm_rd32(device, base + 0xd0c); in nvkm_xtensa_intr() 70 nvkm_wr32(device, base + 0xc20, intr); in nvkm_xtensa_intr() 71 intr = nvkm_rd32(device, base + 0xc20); in nvkm_xtensa_intr() 83 const u32 base = xtensa->addr; in nvkm_xtensa_fini() local 85 nvkm_wr32(device, base + 0xd84, 0); /* INTR_EN */ in nvkm_xtensa_fini() [all …]
|
D | falcon.c | 36 oclass->base = falcon->func->sclass[index]; in nvkm_falcon_oclass_get() 63 const u32 base = falcon->addr; in nvkm_falcon_intr() local 64 u32 dest = nvkm_rd32(device, base + 0x01c); in nvkm_falcon_intr() 65 u32 intr = nvkm_rd32(device, base + 0x008) & dest & ~(dest >> 16); in nvkm_falcon_intr() 66 u32 inst = nvkm_rd32(device, base + 0x050) & 0x3fffffff; in nvkm_falcon_intr() 75 nvkm_wr32(device, base + 0x004, 0x00000040); in nvkm_falcon_intr() 82 nvkm_wr32(device, base + 0x004, 0x00000010); in nvkm_falcon_intr() 88 nvkm_wr32(device, base + 0x004, intr); in nvkm_falcon_intr() 99 const u32 base = falcon->addr; in nvkm_falcon_fini() local 110 nvkm_mask(device, base + 0x048, 0x00000003, 0x00000000); in nvkm_falcon_fini() [all …]
|
/linux-4.4.14/arch/mips/include/asm/netlogic/ |
D | haldefs.h | 46 nlm_read_reg(uint64_t base, uint32_t reg) in nlm_read_reg() argument 48 volatile uint32_t *addr = (volatile uint32_t *)(long)base + reg; in nlm_read_reg() 54 nlm_write_reg(uint64_t base, uint32_t reg, uint32_t val) in nlm_write_reg() argument 56 volatile uint32_t *addr = (volatile uint32_t *)(long)base + reg; in nlm_write_reg() 71 nlm_read_reg64(uint64_t base, uint32_t reg) in nlm_read_reg64() argument 73 uint64_t addr = base + (reg >> 1) * sizeof(uint64_t); in nlm_read_reg64() 98 nlm_write_reg64(uint64_t base, uint32_t reg, uint64_t val) in nlm_write_reg64() argument 100 uint64_t addr = base + (reg >> 1) * sizeof(uint64_t); in nlm_write_reg64() 129 nlm_read_reg_xkphys(uint64_t base, uint32_t reg) in nlm_read_reg_xkphys() argument 131 return nlm_read_reg(base, reg); in nlm_read_reg_xkphys() [all …]
|
/linux-4.4.14/drivers/nvmem/ |
D | rockchip-efuse.c | 40 void __iomem *base; member 56 void __iomem *base = _context->base; in rockchip_efuse_read() local 67 writel(EFUSE_LOAD | EFUSE_PGENB, base + REG_EFUSE_CTRL); in rockchip_efuse_read() 70 writel(readl(base + REG_EFUSE_CTRL) & in rockchip_efuse_read() 72 base + REG_EFUSE_CTRL); in rockchip_efuse_read() 73 writel(readl(base + REG_EFUSE_CTRL) | in rockchip_efuse_read() 75 base + REG_EFUSE_CTRL); in rockchip_efuse_read() 77 writel(readl(base + REG_EFUSE_CTRL) | in rockchip_efuse_read() 78 EFUSE_STROBE, base + REG_EFUSE_CTRL); in rockchip_efuse_read() 80 *buf++ = readb(base + REG_EFUSE_DOUT); in rockchip_efuse_read() [all …]
|
/linux-4.4.14/arch/mips/pci/ |
D | pci-ar724x.c | 75 void __iomem *base; in ar724x_pci_local_write() local 84 base = apc->crp_base; in ar724x_pci_local_write() 85 data = __raw_readl(base + (where & ~3)); in ar724x_pci_local_write() 105 __raw_writel(data, base + (where & ~3)); in ar724x_pci_local_write() 107 __raw_readl(base + (where & ~3)); in ar724x_pci_local_write() 116 void __iomem *base; in ar724x_pci_read() local 126 base = apc->devcfg_base; in ar724x_pci_read() 127 data = __raw_readl(base + (where & ~3)); in ar724x_pci_read() 163 void __iomem *base; in ar724x_pci_write() local 195 base = apc->devcfg_base; in ar724x_pci_write() [all …]
|
D | pci-ar71xx.c | 112 void __iomem *base = apc->cfg_base; in ar71xx_pci_check_error() local 116 pci_err = __raw_readl(base + AR71XX_PCI_REG_PCI_ERR) & 3; in ar71xx_pci_check_error() 121 addr = __raw_readl(base + AR71XX_PCI_REG_PCI_ERR_ADDR); in ar71xx_pci_check_error() 127 __raw_writel(pci_err, base + AR71XX_PCI_REG_PCI_ERR); in ar71xx_pci_check_error() 130 ahb_err = __raw_readl(base + AR71XX_PCI_REG_AHB_ERR) & 1; in ar71xx_pci_check_error() 135 addr = __raw_readl(base + AR71XX_PCI_REG_AHB_ERR_ADDR); in ar71xx_pci_check_error() 141 __raw_writel(ahb_err, base + AR71XX_PCI_REG_AHB_ERR); in ar71xx_pci_check_error() 150 void __iomem *base = apc->cfg_base; in ar71xx_pci_local_write() local 158 __raw_writel(ad_cbe, base + AR71XX_PCI_REG_CRP_AD_CBE); in ar71xx_pci_local_write() 159 __raw_writel(value, base + AR71XX_PCI_REG_CRP_WRDATA); in ar71xx_pci_local_write() [all …]
|
/linux-4.4.14/drivers/hwtracing/coresight/ |
D | coresight-tmc.c | 118 void __iomem *base; member 137 if (coresight_timeout(drvdata->base, in tmc_wait_for_ready() 149 ffcr = readl_relaxed(drvdata->base + TMC_FFCR); in tmc_flush_and_stop() 151 writel_relaxed(ffcr, drvdata->base + TMC_FFCR); in tmc_flush_and_stop() 153 writel_relaxed(ffcr, drvdata->base + TMC_FFCR); in tmc_flush_and_stop() 155 if (coresight_timeout(drvdata->base, in tmc_flush_and_stop() 167 writel_relaxed(TMC_CTL_CAPT_EN, drvdata->base + TMC_CTL); in tmc_enable_hw() 172 writel_relaxed(0x0, drvdata->base + TMC_CTL); in tmc_disable_hw() 180 CS_UNLOCK(drvdata->base); in tmc_etb_enable_hw() 182 writel_relaxed(TMC_MODE_CIRCULAR_BUFFER, drvdata->base + TMC_MODE); in tmc_etb_enable_hw() [all …]
|
D | coresight-etb10.c | 81 void __iomem *base; member 101 depth = readl_relaxed(drvdata->base + ETB_RAM_DEPTH_REG); in etb_get_buffer_depth() 112 CS_UNLOCK(drvdata->base); in etb_enable_hw() 116 writel_relaxed(0x0, drvdata->base + ETB_RAM_WRITE_POINTER); in etb_enable_hw() 119 writel_relaxed(0x0, drvdata->base + ETB_RWD_REG); in etb_enable_hw() 122 writel_relaxed(0x0, drvdata->base + ETB_RAM_WRITE_POINTER); in etb_enable_hw() 124 writel_relaxed(0x0, drvdata->base + ETB_RAM_READ_POINTER); in etb_enable_hw() 126 writel_relaxed(drvdata->trigger_cntr, drvdata->base + ETB_TRG); in etb_enable_hw() 128 drvdata->base + ETB_FFCR); in etb_enable_hw() 130 writel_relaxed(ETB_CTL_CAPT_EN, drvdata->base + ETB_CTL_REG); in etb_enable_hw() [all …]
|
/linux-4.4.14/net/ipv4/ |
D | inetpeer.c | 196 struct inet_peer_base *base) in lookup_rcu() argument 198 struct inet_peer *u = rcu_dereference(base->root); in lookup_rcu() 222 #define lookup_rightempty(start, base) \ argument 228 for (u = rcu_deref_locked(*v, base); \ 232 u = rcu_deref_locked(*v, base); \ 243 struct inet_peer_base *base) in peer_avl_rebalance() argument 251 node = rcu_deref_locked(*nodep, base); in peer_avl_rebalance() 252 l = rcu_deref_locked(node->avl_left, base); in peer_avl_rebalance() 253 r = rcu_deref_locked(node->avl_right, base); in peer_avl_rebalance() 259 ll = rcu_deref_locked(l->avl_left, base); in peer_avl_rebalance() [all …]
|
/linux-4.4.14/arch/mips/ath25/ |
D | early_printk.c | 17 static inline void prom_uart_wr(void __iomem *base, unsigned reg, in prom_uart_wr() argument 20 __raw_writel(ch, base + 4 * reg); in prom_uart_wr() 23 static inline unsigned char prom_uart_rr(void __iomem *base, unsigned reg) in prom_uart_rr() argument 25 return __raw_readl(base + 4 * reg); in prom_uart_rr() 30 static void __iomem *base; in prom_putchar() local 32 if (unlikely(base == NULL)) { in prom_putchar() 34 base = (void __iomem *)(KSEG1ADDR(AR2315_UART0_BASE)); in prom_putchar() 36 base = (void __iomem *)(KSEG1ADDR(AR5312_UART0_BASE)); in prom_putchar() 39 while ((prom_uart_rr(base, UART_LSR) & UART_LSR_THRE) == 0) in prom_putchar() 41 prom_uart_wr(base, UART_TX, ch); in prom_putchar() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/dma/ |
D | usernv04.c | 24 #define nv04_dmaobj(p) container_of((p), struct nv04_dmaobj, base) 34 struct nvkm_dmaobj base; member 41 nv04_dmaobj_bind(struct nvkm_dmaobj *base, struct nvkm_gpuobj *parent, in nv04_dmaobj_bind() argument 44 struct nv04_dmaobj *dmaobj = nv04_dmaobj(base); in nv04_dmaobj_bind() 45 struct nvkm_device *device = dmaobj->base.dma->engine.subdev.device; in nv04_dmaobj_bind() 46 u64 offset = dmaobj->base.start & 0xfffff000; in nv04_dmaobj_bind() 47 u64 adjust = dmaobj->base.start & 0x00000fff; in nv04_dmaobj_bind() 48 u32 length = dmaobj->base.limit - dmaobj->base.start; in nv04_dmaobj_bind() 54 if (!dmaobj->base.start) in nv04_dmaobj_bind() 90 *pdmaobj = &dmaobj->base; in nv04_dmaobj_new() [all …]
|
D | usergf100.c | 24 #define gf100_dmaobj(p) container_of((p), struct gf100_dmaobj, base) 35 struct nvkm_dmaobj base; member 41 gf100_dmaobj_bind(struct nvkm_dmaobj *base, struct nvkm_gpuobj *parent, in gf100_dmaobj_bind() argument 44 struct gf100_dmaobj *dmaobj = gf100_dmaobj(base); in gf100_dmaobj_bind() 45 struct nvkm_device *device = dmaobj->base.dma->engine.subdev.device; in gf100_dmaobj_bind() 52 nvkm_wo32(*pgpuobj, 0x04, lower_32_bits(dmaobj->base.limit)); in gf100_dmaobj_bind() 53 nvkm_wo32(*pgpuobj, 0x08, lower_32_bits(dmaobj->base.start)); in gf100_dmaobj_bind() 54 nvkm_wo32(*pgpuobj, 0x0c, upper_32_bits(dmaobj->base.limit) << 24 | in gf100_dmaobj_bind() 55 upper_32_bits(dmaobj->base.start)); in gf100_dmaobj_bind() 83 *pdmaobj = &dmaobj->base; in gf100_dmaobj_new() [all …]
|
/linux-4.4.14/arch/arm/mach-davinci/ |
D | time.c | 96 void __iomem *base; member 136 __raw_writel(__raw_readl(t->base + t->tim_off) + t->period, in timer32_config() 137 t->base + dtip[event_timer].cmp_off); in timer32_config() 139 tcr = __raw_readl(t->base + TCR); in timer32_config() 143 __raw_writel(tcr, t->base + TCR); in timer32_config() 146 __raw_writel(0, t->base + t->tim_off); in timer32_config() 147 __raw_writel(t->period, t->base + t->prd_off); in timer32_config() 155 __raw_writel(tcr, t->base + TCR); in timer32_config() 162 return __raw_readl(t->base + t->tim_off); in timer32_read() 203 void __iomem *base[2]; in timer_init() local [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/ |
D | nv04_fence.c | 30 struct nouveau_fence_chan base; member 34 struct nouveau_fence_priv base; member 44 OUT_RING (chan, fence->base.seqno); in nv04_fence_emit() 70 nouveau_fence_context_del(&fctx->base); in nv04_fence_context_del() 72 nouveau_fence_context_free(&fctx->base); in nv04_fence_context_del() 80 nouveau_fence_context_new(chan, &fctx->base); in nv04_fence_context_new() 81 fctx->base.emit = nv04_fence_emit; in nv04_fence_context_new() 82 fctx->base.sync = nv04_fence_sync; in nv04_fence_context_new() 83 fctx->base.read = nv04_fence_read; in nv04_fence_context_new() 107 priv->base.dtor = nv04_fence_destroy; in nv04_fence_create() [all …]
|
D | nv84_fence.c | 85 return fctx->base.emit32(chan, addr, fence->base.seqno); in nv84_fence_emit() 100 return fctx->base.sync32(chan, addr, fence->base.seqno); in nv84_fence_sync() 123 nouveau_bo_wr32(priv->bo, chan->chid * 16 / 4, fctx->base.sequence); in nv84_fence_context_del() 126 nouveau_fence_context_del(&fctx->base); in nv84_fence_context_del() 128 nouveau_fence_context_free(&fctx->base); in nv84_fence_context_del() 143 nouveau_fence_context_new(chan, &fctx->base); in nv84_fence_context_new() 144 fctx->base.emit = nv84_fence_emit; in nv84_fence_context_new() 145 fctx->base.sync = nv84_fence_sync; in nv84_fence_context_new() 146 fctx->base.read = nv84_fence_read; in nv84_fence_context_new() 147 fctx->base.emit32 = nv84_fence_emit32; in nv84_fence_context_new() [all …]
|
D | nv10_fence.c | 36 OUT_RING (chan, fence->base.seqno); in nv10_fence_emit() 61 nouveau_fence_context_del(&fctx->base); in nv10_fence_context_del() 66 nouveau_fence_context_free(&fctx->base); in nv10_fence_context_del() 78 nouveau_fence_context_new(chan, &fctx->base); in nv10_fence_context_new() 79 fctx->base.emit = nv10_fence_emit; in nv10_fence_context_new() 80 fctx->base.read = nv10_fence_read; in nv10_fence_context_new() 81 fctx->base.sync = nv10_fence_sync; in nv10_fence_context_new() 106 priv->base.dtor = nv10_fence_destroy; in nv10_fence_create() 107 priv->base.context_new = nv10_fence_context_new; in nv10_fence_create() 108 priv->base.context_del = nv10_fence_context_del; in nv10_fence_create() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
D | rammcp77.c | 24 #define mcp77_ram(p) container_of((p), struct mcp77_ram, base) 28 struct nvkm_ram base; member 33 mcp77_ram_init(struct nvkm_ram *base) in mcp77_ram_init() argument 35 struct mcp77_ram *ram = mcp77_ram(base); in mcp77_ram_init() 36 struct nvkm_device *device = ram->base.fb->subdev.device; in mcp77_ram_init() 37 u32 dniso = ((ram->base.size - (ram->poller_base + 0x00)) >> 5) - 1; in mcp77_ram_init() 38 u32 hostnb = ((ram->base.size - (ram->poller_base + 0x20)) >> 5) - 1; in mcp77_ram_init() 39 u32 flush = ((ram->base.size - (ram->poller_base + 0x40)) >> 5) - 1; in mcp77_ram_init() 66 u64 base = (u64)nvkm_rd32(device, 0x100e10) << 12; in mcp77_ram_new() local 73 *pram = &ram->base; in mcp77_ram_new() [all …]
|
/linux-4.4.14/drivers/gpu/drm/msm/edp/ |
D | edp_phy.c | 20 void __iomem *base; member 29 status = edp_read(phy->base + in msm_edp_phy_ready() 49 edp_write(phy->base + REG_EDP_PHY_CTRL, in msm_edp_phy_ctrl() 54 edp_write(phy->base + REG_EDP_PHY_CTRL, 0x000); in msm_edp_phy_ctrl() 55 edp_write(phy->base + REG_EDP_PHY_GLB_PD_CTL, 0x3f); in msm_edp_phy_ctrl() 56 edp_write(phy->base + REG_EDP_PHY_GLB_CFG, 0x1); in msm_edp_phy_ctrl() 58 edp_write(phy->base + REG_EDP_PHY_GLB_PD_CTL, 0xc0); in msm_edp_phy_ctrl() 65 edp_write(phy->base + REG_EDP_PHY_GLB_VM_CFG0, 0x3); in msm_edp_phy_vm_pe_init() 66 edp_write(phy->base + REG_EDP_PHY_GLB_VM_CFG1, 0x64); in msm_edp_phy_vm_pe_init() 67 edp_write(phy->base + REG_EDP_PHY_GLB_MISC9, 0x6c); in msm_edp_phy_vm_pe_init() [all …]
|
/linux-4.4.14/drivers/crypto/ux500/cryp/ |
D | cryp.c | 38 peripheralid2 = readl_relaxed(&device_data->base->periphId2); in cryp_check() 45 readl_relaxed(&device_data->base->periphId0)) in cryp_check() 47 readl_relaxed(&device_data->base->periphId1)) in cryp_check() 49 readl_relaxed(&device_data->base->periphId3)) in cryp_check() 51 readl_relaxed(&device_data->base->pcellId0)) in cryp_check() 53 readl_relaxed(&device_data->base->pcellId1)) in cryp_check() 55 readl_relaxed(&device_data->base->pcellId2)) in cryp_check() 57 readl_relaxed(&device_data->base->pcellId3))) { in cryp_check() 72 CRYP_PUT_BITS(&device_data->base->cr, in cryp_activity() 93 CRYP_SET_BITS(&device_data->base->cr, CRYP_CR_FFLUSH_MASK); in cryp_flush_inoutfifo() [all …]
|
/linux-4.4.14/drivers/pnp/pnpbios/ |
D | rsparser.c | 252 resource_size_t base, len; in pnpbios_parse_fixed_mem32_option() local 255 base = (p[7] << 24) | (p[6] << 16) | (p[5] << 8) | p[4]; in pnpbios_parse_fixed_mem32_option() 258 pnp_register_mem_resource(dev, option_flags, base, base, 0, len, flags); in pnpbios_parse_fixed_mem32_option() 307 resource_size_t base, len; in pnpbios_parse_fixed_port_option() local 309 base = (p[2] << 8) | p[1]; in pnpbios_parse_fixed_port_option() 311 pnp_register_port_resource(dev, option_flags, base, base, 0, len, in pnpbios_parse_fixed_port_option() 503 unsigned long base; in pnpbios_encode_mem() local 507 base = res->start; in pnpbios_encode_mem() 510 base = 0; in pnpbios_encode_mem() 514 p[4] = (base >> 8) & 0xff; in pnpbios_encode_mem() [all …]
|
/linux-4.4.14/drivers/rtc/ |
D | rtc-s3c.c | 39 void __iomem *base; member 129 tmp = readb(info->base + S3C2410_RTCALM) & ~S3C2410_RTCALM_ALMEN; in s3c_rtc_setaie() 134 writeb(tmp, info->base + S3C2410_RTCALM); in s3c_rtc_setaie() 171 rtc_tm->tm_min = readb(info->base + S3C2410_RTCMIN); in s3c_rtc_gettime() 172 rtc_tm->tm_hour = readb(info->base + S3C2410_RTCHOUR); in s3c_rtc_gettime() 173 rtc_tm->tm_mday = readb(info->base + S3C2410_RTCDATE); in s3c_rtc_gettime() 174 rtc_tm->tm_mon = readb(info->base + S3C2410_RTCMON); in s3c_rtc_gettime() 175 rtc_tm->tm_year = readb(info->base + S3C2410_RTCYEAR); in s3c_rtc_gettime() 176 rtc_tm->tm_sec = readb(info->base + S3C2410_RTCSEC); in s3c_rtc_gettime() 226 writeb(bin2bcd(tm->tm_sec), info->base + S3C2410_RTCSEC); in s3c_rtc_settime() [all …]
|
D | rtc-pl031.c | 92 void __iomem *base; member 102 writel(RTC_BIT_AI, ldata->base + RTC_ICR); in pl031_alarm_irq_enable() 104 imsc = readl(ldata->base + RTC_IMSC); in pl031_alarm_irq_enable() 107 writel(imsc | RTC_BIT_AI, ldata->base + RTC_IMSC); in pl031_alarm_irq_enable() 109 writel(imsc & ~RTC_BIT_AI, ldata->base + RTC_IMSC); in pl031_alarm_irq_enable() 174 pl031_stv2_time_to_tm(readl(ldata->base + RTC_DR), in pl031_stv2_read_time() 175 readl(ldata->base + RTC_YDR), tm); in pl031_stv2_read_time() 189 writel(bcd_year, ldata->base + RTC_YLR); in pl031_stv2_set_time() 190 writel(time, ldata->base + RTC_LR); in pl031_stv2_set_time() 201 ret = pl031_stv2_time_to_tm(readl(ldata->base + RTC_MR), in pl031_stv2_read_alarm() [all …]
|
D | rtc-sun6i.c | 114 void __iomem *base; member 124 val = readl(chip->base + SUN6I_ALRM_IRQ_STA); in sun6i_rtc_alarmirq() 128 writel(val, chip->base + SUN6I_ALRM_IRQ_STA); in sun6i_rtc_alarmirq() 150 chip->base + SUN6I_ALRM_IRQ_STA); in sun6i_rtc_setaie() 153 writel(alrm_val, chip->base + SUN6I_ALRM_EN); in sun6i_rtc_setaie() 154 writel(alrm_irq_val, chip->base + SUN6I_ALRM_IRQ_EN); in sun6i_rtc_setaie() 155 writel(alrm_wake_val, chip->base + SUN6I_ALARM_CONFIG); in sun6i_rtc_setaie() 167 date = readl(chip->base + SUN6I_RTC_YMD); in sun6i_rtc_gettime() 168 time = readl(chip->base + SUN6I_RTC_HMS); in sun6i_rtc_gettime() 169 } while ((date != readl(chip->base + SUN6I_RTC_YMD)) || in sun6i_rtc_gettime() [all …]
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | intel_dp_mst.c | 36 struct drm_device *dev = encoder->base.dev; in intel_dp_mst_compute_config() 37 struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); in intel_dp_mst_compute_config() 43 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_dp_mst_compute_config() 65 state = pipe_config->base.state; in intel_dp_mst_compute_config() 70 if (connector_state->best_encoder == &encoder->base) { in intel_dp_mst_compute_config() 102 struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); in intel_mst_disable_dp() 119 struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); in intel_mst_post_disable_dp() 135 intel_dig_port->base.post_disable(&intel_dig_port->base); in intel_mst_post_disable_dp() 142 struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); in intel_mst_pre_enable_dp() 145 struct drm_device *dev = encoder->base.dev; in intel_mst_pre_enable_dp() [all …]
|
D | intel_psr.c | 79 struct drm_device *dev = dig_port->base.base.dev; in intel_psr_write_vsc() 81 struct intel_crtc *crtc = to_intel_crtc(dig_port->base.base.crtc); in intel_psr_write_vsc() 109 struct drm_device *dev = intel_dig_port->base.base.dev; in vlv_psr_setup_vsc() 111 struct drm_crtc *crtc = intel_dig_port->base.base.crtc; in vlv_psr_setup_vsc() 157 struct drm_device *dev = dig_port->base.base.dev; in hsw_psr_enable_sink() 221 struct drm_device *dev = dig_port->base.base.dev; in vlv_psr_enable_source() 223 struct drm_crtc *crtc = dig_port->base.base.crtc; in vlv_psr_enable_source() 236 struct drm_device *dev = dig_port->base.base.dev; in vlv_psr_activate() 238 struct drm_crtc *crtc = dig_port->base.base.crtc; in vlv_psr_activate() 253 struct drm_device *dev = dig_port->base.base.dev; in hsw_psr_enable_source() [all …]
|
D | i915_gem_stolen.c | 92 u32 base; in i915_stolen_to_physical() local 105 base = 0; in i915_stolen_to_physical() 108 pci_read_config_dword(dev->pdev, 0x5c, &base); in i915_stolen_to_physical() 109 base &= ~((1<<20) - 1); in i915_stolen_to_physical() 121 base = toud << 16; in i915_stolen_to_physical() 137 base = tom - tseg_size - dev_priv->gtt.stolen_size; in i915_stolen_to_physical() 161 base = tom - tseg_size - dev_priv->gtt.stolen_size; in i915_stolen_to_physical() 181 base = tom - tseg_size - dev_priv->gtt.stolen_size; in i915_stolen_to_physical() 184 if (base == 0) in i915_stolen_to_physical() 192 { .start = base, .end = base + dev_priv->gtt.stolen_size, }, in i915_stolen_to_physical() [all …]
|
/linux-4.4.14/arch/c6x/platforms/ |
D | dscr.c | 107 void __iomem *base; member 135 void __iomem *reg_addr = dscr.base + reg; in dscr_write_locked1() 136 void __iomem *lock_addr = dscr.base + lock; in dscr_write_locked1() 165 soc_writel(key0, dscr.base + lock0); in dscr_write_locked2() 166 soc_writel(key1, dscr.base + lock1); in dscr_write_locked2() 167 soc_writel(val, dscr.base + reg); in dscr_write_locked2() 168 soc_writel(0, dscr.base + lock0); in dscr_write_locked2() 169 soc_writel(0, dscr.base + lock1); in dscr_write_locked2() 183 soc_writel(val, dscr.base + reg); in dscr_write() 199 if (!dscr.base) in dscr_set_devstate() [all …]
|
/linux-4.4.14/net/sunrpc/ |
D | socklib.c | 72 ssize_t xdr_partial_copy_from_skb(struct xdr_buf *xdr, unsigned int base, struct xdr_skb_reader *de… in xdr_partial_copy_from_skb() argument 80 if (base < len) { in xdr_partial_copy_from_skb() 81 len -= base; in xdr_partial_copy_from_skb() 82 ret = copy_actor(desc, (char *)xdr->head[0].iov_base + base, len); in xdr_partial_copy_from_skb() 86 base = 0; in xdr_partial_copy_from_skb() 88 base -= len; in xdr_partial_copy_from_skb() 92 if (unlikely(base >= pglen)) { in xdr_partial_copy_from_skb() 93 base -= pglen; in xdr_partial_copy_from_skb() 96 if (base || xdr->page_base) { in xdr_partial_copy_from_skb() 97 pglen -= base; in xdr_partial_copy_from_skb() [all …]
|
/linux-4.4.14/arch/mips/include/asm/netlogic/xlr/ |
D | pic.h | 223 nlm_pic_enable_irt(uint64_t base, int irt) in nlm_pic_enable_irt() argument 227 reg = nlm_read_reg(base, PIC_IRT_1(irt)); in nlm_pic_enable_irt() 228 nlm_write_reg(base, PIC_IRT_1(irt), reg | (1u << 31)); in nlm_pic_enable_irt() 232 nlm_pic_disable_irt(uint64_t base, int irt) in nlm_pic_disable_irt() argument 236 reg = nlm_read_reg(base, PIC_IRT_1(irt)); in nlm_pic_disable_irt() 237 nlm_write_reg(base, PIC_IRT_1(irt), reg & ~(1u << 31)); in nlm_pic_disable_irt() 241 nlm_pic_send_ipi(uint64_t base, int hwt, int irq, int nmi) in nlm_pic_send_ipi() argument 247 nlm_write_reg(base, PIC_IPI, in nlm_pic_send_ipi() 252 nlm_pic_ack(uint64_t base, int irt) in nlm_pic_ack() argument 254 nlm_write_reg(base, PIC_INT_ACK, 1u << irt); in nlm_pic_ack() [all …]
|
/linux-4.4.14/arch/arm/plat-orion/include/plat/ |
D | pcie.h | 16 u32 orion_pcie_dev_id(void __iomem *base); 17 u32 orion_pcie_rev(void __iomem *base); 18 int orion_pcie_link_up(void __iomem *base); 19 int orion_pcie_x4_mode(void __iomem *base); 20 int orion_pcie_get_local_bus_nr(void __iomem *base); 21 void orion_pcie_set_local_bus_nr(void __iomem *base, int nr); 22 void orion_pcie_reset(void __iomem *base); 23 void orion_pcie_setup(void __iomem *base); 24 int orion_pcie_rd_conf(void __iomem *base, struct pci_bus *bus, 26 int orion_pcie_rd_conf_tlp(void __iomem *base, struct pci_bus *bus, [all …]
|
/linux-4.4.14/net/netfilter/ |
D | nf_conntrack_h323_asn1.c | 114 static int decode_nul(bitstr_t *bs, const struct field_t *f, char *base, int level); 115 static int decode_bool(bitstr_t *bs, const struct field_t *f, char *base, int level); 116 static int decode_oid(bitstr_t *bs, const struct field_t *f, char *base, int level); 117 static int decode_int(bitstr_t *bs, const struct field_t *f, char *base, int level); 118 static int decode_enum(bitstr_t *bs, const struct field_t *f, char *base, int level); 119 static int decode_bitstr(bitstr_t *bs, const struct field_t *f, char *base, int level); 120 static int decode_numstr(bitstr_t *bs, const struct field_t *f, char *base, int level); 121 static int decode_octstr(bitstr_t *bs, const struct field_t *f, char *base, int level); 122 static int decode_bmpstr(bitstr_t *bs, const struct field_t *f, char *base, int level); 123 static int decode_seq(bitstr_t *bs, const struct field_t *f, char *base, int level); [all …]
|
/linux-4.4.14/drivers/usb/host/ |
D | xhci-mvebu.c | 21 static void xhci_mvebu_mbus_config(void __iomem *base, in xhci_mvebu_mbus_config() argument 28 writel(0, base + USB3_WIN_CTRL(win)); in xhci_mvebu_mbus_config() 29 writel(0, base + USB3_WIN_BASE(win)); in xhci_mvebu_mbus_config() 38 base + USB3_WIN_CTRL(win)); in xhci_mvebu_mbus_config() 40 writel((cs->base & 0xffff0000), base + USB3_WIN_BASE(win)); in xhci_mvebu_mbus_config() 47 void __iomem *base; in xhci_mvebu_mbus_init_quirk() local 58 base = ioremap(res->start, resource_size(res)); in xhci_mvebu_mbus_init_quirk() 59 if (!base) in xhci_mvebu_mbus_init_quirk() 63 xhci_mvebu_mbus_config(base, dram); in xhci_mvebu_mbus_init_quirk() 69 iounmap(base); in xhci_mvebu_mbus_init_quirk()
|
/linux-4.4.14/drivers/net/phy/ |
D | mdio-bcm-iproc.c | 46 void __iomem *base; member 49 static inline int iproc_mdio_wait_for_idle(void __iomem *base) in iproc_mdio_wait_for_idle() argument 55 val = readl(base + MII_CTRL_OFFSET); in iproc_mdio_wait_for_idle() 65 static inline void iproc_mdio_config_clk(void __iomem *base) in iproc_mdio_config_clk() argument 71 writel(val, base + MII_CTRL_OFFSET); in iproc_mdio_config_clk() 80 rc = iproc_mdio_wait_for_idle(priv->base); in iproc_mdio_read() 84 iproc_mdio_config_clk(priv->base); in iproc_mdio_read() 93 writel(cmd, priv->base + MII_DATA_OFFSET); in iproc_mdio_read() 95 rc = iproc_mdio_wait_for_idle(priv->base); in iproc_mdio_read() 99 cmd = readl(priv->base + MII_DATA_OFFSET) & MII_DATA_MASK; in iproc_mdio_read() [all …]
|
/linux-4.4.14/net/sctp/ |
D | endpointola.c | 114 ep->base.type = SCTP_EP_TYPE_SOCKET; in sctp_endpoint_init() 117 atomic_set(&ep->base.refcnt, 1); in sctp_endpoint_init() 118 ep->base.dead = false; in sctp_endpoint_init() 121 sctp_inq_init(&ep->base.inqueue); in sctp_endpoint_init() 124 sctp_inq_set_th_handler(&ep->base.inqueue, sctp_endpoint_bh_rcv); in sctp_endpoint_init() 127 sctp_bind_addr_init(&ep->base.bind_addr, 0); in sctp_endpoint_init() 130 ep->base.sk = sk; in sctp_endpoint_init() 131 sock_hold(ep->base.sk); in sctp_endpoint_init() 209 struct sock *sk = ep->base.sk; in sctp_endpoint_add_asoc() 231 ep->base.dead = true; in sctp_endpoint_free() [all …]
|
/linux-4.4.14/drivers/char/hw_random/ |
D | tx4939-rng.c | 30 void __iomem *base; member 55 static u64 read_rng(void __iomem *base, unsigned int offset) in read_rng() argument 57 return ____raw_readq(base + offset); in read_rng() 60 static void write_rng(u64 val, void __iomem *base, unsigned int offset) in write_rng() argument 62 return ____raw_writeq(val, base + offset); in write_rng() 74 if (!(read_rng(rngdev->base, TX4939_RNG_RCSR) in tx4939_rng_data_present() 77 read_rng(rngdev->base, TX4939_RNG_ROR(0)); in tx4939_rng_data_present() 79 read_rng(rngdev->base, TX4939_RNG_ROR(1)); in tx4939_rng_data_present() 81 read_rng(rngdev->base, TX4939_RNG_ROR(2)); in tx4939_rng_data_present() 86 rngdev->base, TX4939_RNG_RCSR); in tx4939_rng_data_present() [all …]
|
/linux-4.4.14/drivers/scsi/arm/ |
D | arxescsi.c | 44 void __iomem *base; member 75 static void arxescsi_pseudo_dma_write(unsigned char *addr, void __iomem *base) in arxescsi_pseudo_dma_write() argument 100 : "r" (addr), "r" (base)); in arxescsi_pseudo_dma_write() 117 void __iomem *base = info->info.scsi.io_base; in arxescsi_dma_pseudo() local 126 if (readb(base + 0x80) & STAT_INT) { in arxescsi_dma_pseudo() 130 arxescsi_pseudo_dma_write(addr, base); in arxescsi_dma_pseudo() 137 if (readb(base + 0x80) & STAT_INT) in arxescsi_dma_pseudo() 140 if (!(readb(base + DMASTAT_OFFSET) & DMASTAT_DRQ)) in arxescsi_dma_pseudo() 145 writew(word, base + DMADATA_OFFSET); in arxescsi_dma_pseudo() 158 if (readb(base + 0x80) & STAT_INT) { in arxescsi_dma_pseudo() [all …]
|
D | cumana_1.c | 33 void __iomem *base; \ 55 writeb(0x02, priv(host)->base + CTRL); in NCR5380_pwrite() 61 status = readb(priv(host)->base + STAT); in NCR5380_pwrite() 80 writeb(0x12, priv(host)->base + CTRL); in NCR5380_pwrite() 85 status = readb(priv(host)->base + STAT); in NCR5380_pwrite() 95 status = readb(priv(host)->base + STAT); in NCR5380_pwrite() 106 writeb(priv(host)->ctrl | 0x40, priv(host)->base + CTRL); in NCR5380_pwrite() 118 writeb(0x00, priv(host)->base + CTRL); in NCR5380_pread() 123 status = readb(priv(host)->base + STAT); in NCR5380_pread() 142 writeb(0x10, priv(host)->base + CTRL); in NCR5380_pread() [all …]
|
/linux-4.4.14/arch/x86/realmode/ |
D | init.c | 14 unsigned char *base; in reserve_real_mode() local 22 base = __va(mem); in reserve_real_mode() 24 real_mode_header = (struct real_mode_header *) base; in reserve_real_mode() 26 base, (unsigned long long)mem, size); in reserve_real_mode() 34 unsigned char *base; in setup_real_mode() local 43 base = (unsigned char *)real_mode_header; in setup_real_mode() 45 memcpy(base, real_mode_blob, size); in setup_real_mode() 47 phys_base = __pa(base); in setup_real_mode() 55 u16 *seg = (u16 *) (base + *rel++); in setup_real_mode() 62 u32 *ptr = (u32 *) (base + *rel++); in setup_real_mode() [all …]
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | radeon_connectors.c | 342 radeon_connector->edid = drm_get_edid(&radeon_connector->base, in radeon_connector_get_edid() 345 radeon_connector->edid = drm_get_edid(&radeon_connector->base, in radeon_connector_get_edid() 348 radeon_connector->edid = drm_get_edid(&radeon_connector->base, in radeon_connector_get_edid() 453 if (conflict->encoder_ids[i] == encoder->base.id) { in radeon_connector_analog_encoder_conflict_solve() 590 radeon_property_change_mode(&radeon_encoder->base); in radeon_connector_set_property() 605 radeon_property_change_mode(&radeon_encoder->base); in radeon_connector_set_property() 620 radeon_property_change_mode(&radeon_encoder->base); in radeon_connector_set_property() 634 radeon_property_change_mode(&radeon_encoder->base); in radeon_connector_set_property() 648 radeon_property_change_mode(&radeon_encoder->base); in radeon_connector_set_property() 662 radeon_property_change_mode(&radeon_encoder->base); in radeon_connector_set_property() [all …]
|
/linux-4.4.14/arch/mn10300/proc-mn103e010/ |
D | proc-init.c | 85 unsigned long base, size; in get_mem_info() local 90 base = SDBASE(0); in get_mem_info() 91 if (base & SDBASE_CE) { in get_mem_info() 92 size = (base & SDBASE_CBAM) << SDBASE_CBAM_SHIFT; in get_mem_info() 94 base &= SDBASE_CBA; in get_mem_info() 96 printk(KERN_INFO "SDRAM[0]: %luMb @%08lx\n", size >> 20, base); in get_mem_info() 98 *mem_base = base; in get_mem_info() 101 base = SDBASE(1); in get_mem_info() 102 if (base & SDBASE_CE) { in get_mem_info() 103 size = (base & SDBASE_CBAM) << SDBASE_CBAM_SHIFT; in get_mem_info() [all …]
|
/linux-4.4.14/arch/x86/platform/intel-quark/ |
D | imr_selftest.c | 58 phys_addr_t base = virt_to_phys(&_text); in imr_self_test() local 59 size_t size = virt_to_phys(&__end_rodata) - base; in imr_self_test() 68 ret = imr_add_range(base, size, IMR_CPU, IMR_CPU, false); in imr_self_test() 69 imr_self_test_result(ret < 0, fmt_over, __va(base), __va(base + size)); in imr_self_test() 72 base += size - IMR_ALIGN; in imr_self_test() 73 ret = imr_add_range(base, size, IMR_CPU, IMR_CPU, false); in imr_self_test() 74 imr_self_test_result(ret < 0, fmt_over, __va(base), __va(base + size)); in imr_self_test() 77 base -= size + IMR_ALIGN * 2; in imr_self_test() 78 ret = imr_add_range(base, size, IMR_CPU, IMR_CPU, false); in imr_self_test() 79 imr_self_test_result(ret < 0, fmt_over, __va(base), __va(base + size)); in imr_self_test()
|
/linux-4.4.14/drivers/clk/samsung/ |
D | clk-cpu.c | 132 static void exynos_set_safe_div(void __iomem *base, unsigned long div, in exynos_set_safe_div() argument 137 div0 = readl(base + E4210_DIV_CPU0); in exynos_set_safe_div() 139 writel(div0, base + E4210_DIV_CPU0); in exynos_set_safe_div() 140 wait_until_divider_stable(base + E4210_DIV_STAT_CPU0, mask); in exynos_set_safe_div() 145 struct exynos_cpuclk *cpuclk, void __iomem *base) in exynos_cpuclk_pre_rate_change() argument 170 if (readl(base + E4210_SRC_CPU) & E4210_MUX_HPM_MASK) in exynos_cpuclk_pre_rate_change() 171 div1 = readl(base + E4210_DIV_CPU1) & in exynos_cpuclk_pre_rate_change() 197 exynos_set_safe_div(base, alt_div, alt_div_mask); in exynos_cpuclk_pre_rate_change() 202 mux_reg = readl(base + E4210_SRC_CPU); in exynos_cpuclk_pre_rate_change() 203 writel(mux_reg | (1 << 16), base + E4210_SRC_CPU); in exynos_cpuclk_pre_rate_change() [all …]
|
/linux-4.4.14/drivers/clk/berlin/ |
D | berlin2-avpll.c | 118 void __iomem *base; member 129 reg = readl_relaxed(vco->base + VCO_CTRL0); in berlin2_avpll_vco_is_enabled() 141 reg = readl_relaxed(vco->base + VCO_CTRL0); in berlin2_avpll_vco_enable() 146 writel_relaxed(reg, vco->base + VCO_CTRL0); in berlin2_avpll_vco_enable() 156 reg = readl_relaxed(vco->base + VCO_CTRL0); in berlin2_avpll_vco_disable() 161 writel_relaxed(reg, vco->base + VCO_CTRL0); in berlin2_avpll_vco_disable() 174 reg = readl_relaxed(vco->base + VCO_CTRL1); in berlin2_avpll_vco_recalc_rate() 191 struct clk * __init berlin2_avpll_vco_register(void __iomem *base, in berlin2_avpll_vco_register() argument 202 vco->base = base; in berlin2_avpll_vco_register() 216 void __iomem *base; member [all …]
|
/linux-4.4.14/drivers/usb/chipidea/ |
D | usbmisc_imx.c | 93 void __iomem *base; member 110 val = readl(usbmisc->base); in usbmisc_imx25_init() 114 writel(val, usbmisc->base); in usbmisc_imx25_init() 117 val = readl(usbmisc->base); in usbmisc_imx25_init() 123 writel(val, usbmisc->base); in usbmisc_imx25_init() 144 reg = usbmisc->base + MX25_USB_PHY_CTRL_OFFSET; in usbmisc_imx25_post() 176 val = readl(usbmisc->base) | val; in usbmisc_imx27_init() 178 val = readl(usbmisc->base) & ~val; in usbmisc_imx27_init() 179 writel(val, usbmisc->base); in usbmisc_imx27_init() 196 val = readl(usbmisc->base + MX53_USB_OTG_PHY_CTRL_1_OFFSET); in usbmisc_imx53_init() [all …]
|
/linux-4.4.14/drivers/mtd/maps/ |
D | pci.c | 34 void __iomem *base; member 44 val.x[0]= readb(map->base + map->translate(map, ofs)); in mtd_pci_read8() 52 val.x[0] = readl(map->base + map->translate(map, ofs)); in mtd_pci_read32() 59 memcpy_fromio(to, map->base + map->translate(map, from), len); in mtd_pci_copyfrom() 65 writeb(val.x[0], map->base + map->translate(map, ofs)); in mtd_pci_write8() 71 writel(val.x[0], map->base + map->translate(map, ofs)); in mtd_pci_write32() 77 memcpy_toio(map->base + map->translate(map, to), from, len); in mtd_pci_copyto() 100 map->base = ioremap_nocache(pci_resource_start(dev, 0), in intel_iq80310_init() 103 if (!map->base) in intel_iq80310_init() 121 if (map->base) in intel_iq80310_exit() [all …]
|
/linux-4.4.14/security/apparmor/ |
D | policy.c | 262 return view->base.hname + strlen(curr->base.hname) + 2; in aa_ns_name() 283 if (!policy_init(&ns->base, prefix, name)) in alloc_namespace() 306 kzfree(ns->base.hname); in alloc_namespace() 324 policy_destroy(&ns->base); in free_namespace() 394 ns = alloc_namespace(root->base.hname, name); in aa_prepare_namespace() 399 ns->base.name); in aa_prepare_namespace() 405 list_add_rcu(&ns->base.list, &root->sub_ns); in aa_prepare_namespace() 428 list_add_rcu(&profile->base.list, list); in __list_add_profile() 447 list_del_rcu(&profile->base.list); in __list_remove_profile() 462 __profile_list_release(&profile->base.profiles); in __remove_profile() [all …]
|
/linux-4.4.14/arch/mips/mti-sead3/ |
D | sead3-init.c | 63 void *base; in mips_nmi_setup() local 65 base = cpu_has_veic ? in mips_nmi_setup() 72 memcpy(base, (&except_vec_nmi - 1), 0x80); in mips_nmi_setup() 101 memcpy(base, &except_vec_nmi, 0x80); in mips_nmi_setup() 103 flush_icache_range((unsigned long)base, (unsigned long)base + 0x80); in mips_nmi_setup() 108 void *base; in mips_ejtag_setup() local 110 base = cpu_has_veic ? in mips_ejtag_setup() 115 memcpy(base, (&except_vec_ejtag_debug - 1), 0x80); in mips_ejtag_setup() 126 memcpy(base, &except_vec_ejtag_debug, 0x80); in mips_ejtag_setup() 128 flush_icache_range((unsigned long)base, (unsigned long)base + 0x80); in mips_ejtag_setup()
|
/linux-4.4.14/arch/mips/ath79/ |
D | early_printk.c | 38 void __iomem *base = (void __iomem *)(KSEG1ADDR(AR71XX_UART_BASE)); in prom_putchar_ar71xx() local 40 prom_putchar_wait(base + UART_LSR * 4, BOTH_EMPTY, BOTH_EMPTY); in prom_putchar_ar71xx() 41 __raw_writel(ch, base + UART_TX * 4); in prom_putchar_ar71xx() 42 prom_putchar_wait(base + UART_LSR * 4, BOTH_EMPTY, BOTH_EMPTY); in prom_putchar_ar71xx() 47 void __iomem *base = (void __iomem *)(KSEG1ADDR(AR933X_UART_BASE)); in prom_putchar_ar933x() local 49 prom_putchar_wait(base + AR933X_UART_DATA_REG, AR933X_UART_DATA_TX_CSR, in prom_putchar_ar933x() 51 __raw_writel(AR933X_UART_DATA_TX_CSR | ch, base + AR933X_UART_DATA_REG); in prom_putchar_ar933x() 52 prom_putchar_wait(base + AR933X_UART_DATA_REG, AR933X_UART_DATA_TX_CSR, in prom_putchar_ar933x() 63 void __iomem *base; in prom_putchar_init() local 66 base = (void __iomem *)(KSEG1ADDR(AR71XX_RESET_BASE)); in prom_putchar_init() [all …]
|
/linux-4.4.14/drivers/isdn/hisax/ |
D | enternow_pci.c | 129 outb(0x00, cs->hw.njet.base + NETJET_IRQMASK1); in enpci_setIrqMask() 131 outb(TJ_AMD_IRQ, cs->hw.njet.base + NETJET_IRQMASK1); in enpci_setIrqMask() 157 outb(cs->hw.njet.ctrl_reg, cs->hw.njet.base + NETJET_CTRL); in reset_enpci() 161 outb(cs->hw.njet.ctrl_reg, cs->hw.njet.base + NETJET_CTRL); in reset_enpci() 166 outb(~TJ_AMD_IRQ, cs->hw.njet.base + NETJET_AUXCTRL); in reset_enpci() 167 outb(TJ_AMD_IRQ, cs->hw.njet.base + NETJET_IRQMASK1); in reset_enpci() 202 outb(cs->hw.njet.auxd, cs->hw.njet.base + NETJET_AUXDATA); in enpci_card_msg() 207 outb(0x00, cs->hw.njet.base + NETJET_AUXDATA); in enpci_card_msg() 219 outb(cs->hw.njet.auxd, cs->hw.njet.base + NETJET_AUXDATA); in enpci_card_msg() 232 outb(cs->hw.njet.auxd, cs->hw.njet.base + NETJET_AUXDATA); in enpci_card_msg() [all …]
|