Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/usb/musb/
Ddavinci.c209 u8 devctl; in otg_timer() local
215 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
216 dev_dbg(musb->controller, "poll devctl %02x (%s)\n", devctl, in otg_timer()
227 if (devctl & MUSB_DEVCTL_VBUS) { in otg_timer()
249 devctl | MUSB_DEVCTL_SESSION); in otg_timer()
250 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
251 if (devctl & MUSB_DEVCTL_BDEVICE) in otg_timer()
312 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in davinci_musb_interrupt() local
353 devctl); in davinci_musb_interrupt()
463 u8 devctl, warn = 0; in davinci_musb_exit() local
[all …]
Domap2430.c64 u8 devctl; in musb_do_idle() local
71 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_do_idle()
72 if (devctl & MUSB_DEVCTL_BDEVICE) { in musb_do_idle()
97 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_do_idle()
98 if (devctl & MUSB_DEVCTL_BDEVICE) in musb_do_idle()
146 u8 devctl; in omap2430_musb_set_vbus() local
153 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in omap2430_musb_set_vbus()
159 devctl |= MUSB_DEVCTL_SESSION; in omap2430_musb_set_vbus()
160 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in omap2430_musb_set_vbus()
184 devctl |= MUSB_DEVCTL_SESSION; in omap2430_musb_set_vbus()
[all …]
Dda8xx.c192 u8 devctl; in otg_timer() local
199 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
200 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, in otg_timer()
206 devctl &= ~MUSB_DEVCTL_SESSION; in otg_timer()
207 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer()
209 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer()
210 if (devctl & MUSB_DEVCTL_BDEVICE) { in otg_timer()
225 if (devctl & MUSB_DEVCTL_VBUS) { in otg_timer()
246 musb_writeb(mregs, MUSB_DEVCTL, devctl | MUSB_DEVCTL_SESSION); in otg_timer()
247 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
[all …]
Dam35x.c143 u8 devctl; in otg_timer() local
150 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
151 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, in otg_timer()
157 devctl &= ~MUSB_DEVCTL_SESSION; in otg_timer()
158 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer()
160 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer()
161 if (devctl & MUSB_DEVCTL_BDEVICE) { in otg_timer()
175 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
176 if (devctl & MUSB_DEVCTL_BDEVICE) in otg_timer()
264 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in am35x_musb_interrupt() local
[all …]
Dux500.c49 u8 devctl; in ux500_musb_set_vbus() local
56 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in ux500_musb_set_vbus()
61 devctl |= MUSB_DEVCTL_SESSION; in ux500_musb_set_vbus()
62 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in ux500_musb_set_vbus()
80 devctl |= MUSB_DEVCTL_SESSION; in ux500_musb_set_vbus()
90 devctl &= ~MUSB_DEVCTL_SESSION; in ux500_musb_set_vbus()
93 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in ux500_musb_set_vbus()
Dmusb_core.c526 u8 devctl) in musb_stage0_irq() argument
530 dev_dbg(musb->controller, "<== DevCtl=%02x, int_usb=0x%x\n", devctl, in musb_stage0_irq()
542 if (devctl & MUSB_DEVCTL_HM) { in musb_stage0_irq()
582 if ((devctl & MUSB_DEVCTL_VBUS) in musb_stage0_irq()
606 if ((devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS in musb_stage0_irq()
607 && (devctl & MUSB_DEVCTL_BDEVICE)) { in musb_stage0_irq()
665 devctl |= MUSB_DEVCTL_SESSION; in musb_stage0_irq()
666 musb_writeb(mbase, MUSB_DEVCTL, devctl); in musb_stage0_irq()
680 devctl, in musb_stage0_irq()
682 switch (devctl & MUSB_DEVCTL_VBUS) { in musb_stage0_irq()
[all …]
Dmusb_gadget.c1544 u8 power, devctl; in musb_gadget_wakeup() local
1560 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1561 dev_dbg(musb->controller, "Sending SRP: devctl: %02x\n", devctl); in musb_gadget_wakeup()
1562 devctl |= MUSB_DEVCTL_SESSION; in musb_gadget_wakeup()
1563 musb_writeb(mregs, MUSB_DEVCTL, devctl); in musb_gadget_wakeup()
1564 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1566 while (!(devctl & MUSB_DEVCTL_SESSION)) { in musb_gadget_wakeup()
1567 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1572 while (devctl & MUSB_DEVCTL_SESSION) { in musb_gadget_wakeup()
1573 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
[all …]
Dtusb6010.c558 u8 devctl; in tusb_musb_set_vbus() local
568 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_musb_set_vbus()
574 devctl |= MUSB_DEVCTL_SESSION; in tusb_musb_set_vbus()
607 devctl &= ~MUSB_DEVCTL_SESSION; in tusb_musb_set_vbus()
615 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in tusb_musb_set_vbus()
777 u8 devctl; in tusb_otg_ints() local
787 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_otg_ints()
789 if ((devctl & MUSB_DEVCTL_VBUS) in tusb_otg_ints()
791 dev_dbg(musb->controller, "devctl %02x\n", devctl); in tusb_otg_ints()
800 ERR("vbus too slow, devctl %02x\n", devctl); in tusb_otg_ints()
Dmusb_dsps.c260 u8 devctl; in otg_timer() local
268 devctl = dsps_readb(mregs, MUSB_DEVCTL); in otg_timer()
269 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, in otg_timer()
281 if (devctl & MUSB_DEVCTL_BDEVICE) { in otg_timer()
288 if (!(devctl & MUSB_DEVCTL_SESSION) && !skip_session) in otg_timer()
340 u8 devctl = dsps_readb(mregs, MUSB_DEVCTL); in dsps_interrupt() local
378 devctl); in dsps_interrupt()
Dmusbhsdma.c303 u8 devctl; in dma_controller_irq() local
318 devctl = musb_readb(mbase, MUSB_DEVCTL); in dma_controller_irq()
323 if ((devctl & MUSB_DEVCTL_HM) in dma_controller_irq()
Dmusb_gadget_ep0.c207 u8 devctl; in musb_try_b_hnp_enable() local
210 devctl = musb_readb(mbase, MUSB_DEVCTL); in musb_try_b_hnp_enable()
211 musb_writeb(mbase, MUSB_DEVCTL, devctl | MUSB_DEVCTL_HR); in musb_try_b_hnp_enable()
Dmusb_core.h285 u8 devctl, busctl, misc; member
Dmusb_host.c2459 u8 devctl; in musb_bus_suspend() local
2474 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_bus_suspend()
2475 if ((devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS) in musb_bus_suspend()
/linux-4.1.27/drivers/pcmcia/
Dti113x.h369 u32 mfunc, mfunc_old, devctl; in ti12xx_irqroute_func0() local
374 devctl = config_readb(socket, TI113X_DEVICE_CONTROL); in ti12xx_irqroute_func0()
376 "TI: mfunc 0x%08x, devctl 0x%02x\n", mfunc, devctl); in ti12xx_irqroute_func0()
394 if ((devctl & TI113X_DCR_IMODE_MASK) == TI12XX_DCR_IMODE_ALL_SERIAL) { in ti12xx_irqroute_func0()
433 devctl &= ~TI113X_DCR_IMODE_MASK; in ti12xx_irqroute_func0()
434 devctl |= TI113X_DCR_IMODE_SERIAL; /* serial ISA could be right */ in ti12xx_irqroute_func0()
435 config_writeb(socket, TI113X_DEVICE_CONTROL, devctl); in ti12xx_irqroute_func0()
545 u32 mfunc, mfunc_old, devctl, sysctl; in ti12xx_irqroute_func1() local
549 devctl = config_readb(socket, TI113X_DEVICE_CONTROL); in ti12xx_irqroute_func1()
552 mfunc, devctl); in ti12xx_irqroute_func1()
[all …]
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dreset.c47 u16 devctl; in mlx4_reset() local
142 devctl = hca_header[(pcie_cap + PCI_EXP_DEVCTL) / 4]; in mlx4_reset()
145 devctl)) { in mlx4_reset()
/linux-4.1.27/drivers/infiniband/hw/mthca/
Dmthca_reset.c52 u16 devctl; in mthca_reset() local
243 devctl = hca_header[(hca_pcie_cap + PCI_EXP_DEVCTL) / 4]; in mthca_reset()
245 devctl)) { in mthca_reset()
/linux-4.1.27/include/linux/platform_data/
Dvideo-nuc900fb.h65 unsigned int devctl; member
/linux-4.1.27/drivers/media/dvb-frontends/
Dstv6110x_priv.h73 struct stv6110x_devctl *devctl; member
Dstv6110x.c385 stv6110x->devctl = &stv6110x_ctl; in stv6110x_attach()
410 return stv6110x->devctl; in stv6110x_attach()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dsdio.c830 u8 clkctl, clkreq, devctl; in brcmf_sdio_htclk() local
865 devctl = brcmf_sdiod_regrb(bus->sdiodev, in brcmf_sdio_htclk()
873 devctl |= SBSDIO_DEVCTL_CA_INT_ONLY; in brcmf_sdio_htclk()
875 devctl, &err); in brcmf_sdio_htclk()
882 devctl = brcmf_sdiod_regrb(bus->sdiodev, in brcmf_sdio_htclk()
884 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; in brcmf_sdio_htclk()
886 devctl, &err); in brcmf_sdio_htclk()
927 devctl = brcmf_sdiod_regrb(bus->sdiodev, in brcmf_sdio_htclk()
929 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; in brcmf_sdio_htclk()
931 devctl, &err); in brcmf_sdio_htclk()
[all …]
/linux-4.1.27/arch/c6x/platforms/
Ddscr.c113 struct devstate_ctl_reg devctl[MAX_DEVCTL_REGS]; member
484 r = &dscr.devctl[i]; in dscr_parse_devstate_ctl_regs()
/linux-4.1.27/arch/arm/mach-w90x900/
Ddev.c444 .devctl = 0x060800c0,
/linux-4.1.27/drivers/video/fbdev/
Dnuc900fb.c142 fbi->regs.lcd_device_ctrl = display->devctl; in nuc900fb_check_var()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dnetdev.c6201 u16 devctl; in __e1000_shutdown() local
6206 pcie_capability_read_word(us_dev, PCI_EXP_DEVCTL, &devctl); in __e1000_shutdown()
6208 (devctl & ~PCI_EXP_DEVCTL_CERE)); in __e1000_shutdown()
6213 pcie_capability_write_word(us_dev, PCI_EXP_DEVCTL, devctl); in __e1000_shutdown()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c6856 u16 devctl; in bnx2x_init_pxp() local
6859 pcie_capability_read_word(bp->pdev, PCI_EXP_DEVCTL, &devctl); in bnx2x_init_pxp()
6860 DP(NETIF_MSG_HW, "read 0x%x from devctl\n", devctl); in bnx2x_init_pxp()
6861 w_order = ((devctl & PCI_EXP_DEVCTL_PAYLOAD) >> 5); in bnx2x_init_pxp()
6863 r_order = ((devctl & PCI_EXP_DEVCTL_READRQ) >> 12); in bnx2x_init_pxp()