Home
last modified time | relevance | path

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

/linux-4.4.14/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 …]
Dmusb_core.c540 u8 devctl) in musb_stage0_irq() argument
544 dev_dbg(musb->controller, "<== DevCtl=%02x, int_usb=0x%x\n", devctl, in musb_stage0_irq()
556 if (devctl & MUSB_DEVCTL_HM) { in musb_stage0_irq()
596 if ((devctl & MUSB_DEVCTL_VBUS) in musb_stage0_irq()
620 if ((devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS in musb_stage0_irq()
621 && (devctl & MUSB_DEVCTL_BDEVICE)) { in musb_stage0_irq()
679 devctl |= MUSB_DEVCTL_SESSION; in musb_stage0_irq()
680 musb_writeb(mbase, MUSB_DEVCTL, devctl); in musb_stage0_irq()
694 devctl, in musb_stage0_irq()
696 switch (devctl & MUSB_DEVCTL_VBUS) { in musb_stage0_irq()
[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_gadget.c1545 u8 power, devctl; in musb_gadget_wakeup() local
1561 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1562 dev_dbg(musb->controller, "Sending SRP: devctl: %02x\n", devctl); in musb_gadget_wakeup()
1563 devctl |= MUSB_DEVCTL_SESSION; in musb_gadget_wakeup()
1564 musb_writeb(mregs, MUSB_DEVCTL, devctl); in musb_gadget_wakeup()
1565 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1567 while (!(devctl & MUSB_DEVCTL_SESSION)) { in musb_gadget_wakeup()
1568 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1573 while (devctl & MUSB_DEVCTL_SESSION) { in musb_gadget_wakeup()
1574 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()
Dsunxi.c107 u8 devctl; in sunxi_musb_work() local
111 devctl = readb(musb->mregs + SUNXI_MUSB_DEVCTL); in sunxi_musb_work()
117 devctl |= MUSB_DEVCTL_SESSION; in sunxi_musb_work()
123 devctl &= ~MUSB_DEVCTL_SESSION; in sunxi_musb_work()
125 writeb(devctl, musb->mregs + SUNXI_MUSB_DEVCTL); in sunxi_musb_work()
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_debugfs.c307 musb->context.devctl |= MUSB_DEVCTL_SESSION; in musb_softconnect_write()
Dmusb_core.h292 u8 devctl, busctl, misc; member
Dmusb_host.c2578 u8 devctl; in musb_bus_suspend() local
2593 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_bus_suspend()
2594 if ((devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS) in musb_bus_suspend()
/linux-4.4.14/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 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()
543 u32 mfunc, mfunc_old, devctl, sysctl; in ti12xx_irqroute_func1() local
547 devctl = config_readb(socket, TI113X_DEVICE_CONTROL); in ti12xx_irqroute_func1()
549 mfunc, devctl); in ti12xx_irqroute_func1()
[all …]
/linux-4.4.14/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.4.14/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.4.14/include/linux/platform_data/
Dvideo-nuc900fb.h65 unsigned int devctl; member
/linux-4.4.14/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.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dsdio.c837 u8 clkctl, clkreq, devctl; in brcmf_sdio_htclk() local
872 devctl = brcmf_sdiod_regrb(bus->sdiodev, in brcmf_sdio_htclk()
880 devctl |= SBSDIO_DEVCTL_CA_INT_ONLY; in brcmf_sdio_htclk()
882 devctl, &err); in brcmf_sdio_htclk()
889 devctl = brcmf_sdiod_regrb(bus->sdiodev, in brcmf_sdio_htclk()
891 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; in brcmf_sdio_htclk()
893 devctl, &err); in brcmf_sdio_htclk()
934 devctl = brcmf_sdiod_regrb(bus->sdiodev, in brcmf_sdio_htclk()
936 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; in brcmf_sdio_htclk()
938 devctl, &err); in brcmf_sdio_htclk()
[all …]
/linux-4.4.14/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.4.14/arch/arm/mach-w90x900/
Ddev.c444 .devctl = 0x060800c0,
/linux-4.4.14/drivers/video/fbdev/
Dnuc900fb.c142 fbi->regs.lcd_device_ctrl = display->devctl; in nuc900fb_check_var()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dnetdev.c6377 u16 devctl; in __e1000_shutdown() local
6382 pcie_capability_read_word(us_dev, PCI_EXP_DEVCTL, &devctl); in __e1000_shutdown()
6384 (devctl & ~PCI_EXP_DEVCTL_CERE)); in __e1000_shutdown()
6389 pcie_capability_write_word(us_dev, PCI_EXP_DEVCTL, devctl); in __e1000_shutdown()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c6899 u16 devctl; in bnx2x_init_pxp() local
6902 pcie_capability_read_word(bp->pdev, PCI_EXP_DEVCTL, &devctl); in bnx2x_init_pxp()
6903 DP(NETIF_MSG_HW, "read 0x%x from devctl\n", devctl); in bnx2x_init_pxp()
6904 w_order = ((devctl & PCI_EXP_DEVCTL_PAYLOAD) >> 5); in bnx2x_init_pxp()
6906 r_order = ((devctl & PCI_EXP_DEVCTL_READRQ) >> 12); in bnx2x_init_pxp()