Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/usb/musb/
H A Dmusb_core.c476 u8 devctl; in musb_set_host() local
481 devctl = musb_read_devctl(musb); in musb_set_host()
482 if (!(devctl & MUSB_DEVCTL_BDEVICE)) { in musb_set_host()
485 __func__, devctl); in musb_set_host()
489 devctl |= MUSB_DEVCTL_SESSION; in musb_set_host()
490 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in musb_set_host()
492 error = readx_poll_timeout(musb_read_devctl, musb, devctl, in musb_set_host()
493 !(devctl & MUSB_DEVCTL_BDEVICE), 5000, in musb_set_host()
497 __func__, devctl); in musb_set_host()
522 u8 devctl; in musb_set_peripheral() local
[all …]
H A Ddavinci.c190 u8 devctl; in otg_timer() local
196 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
197 dev_dbg(musb->controller, "poll devctl %02x (%s)\n", devctl, in otg_timer()
208 if (devctl & MUSB_DEVCTL_VBUS) { in otg_timer()
230 devctl | MUSB_DEVCTL_SESSION); in otg_timer()
231 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
232 if (devctl & MUSB_DEVCTL_BDEVICE) in otg_timer()
293 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in davinci_musb_interrupt() local
332 devctl); in davinci_musb_interrupt()
427 u8 devctl, warn = 0; in davinci_musb_exit() local
[all …]
H A Dda8xx.c126 u8 devctl; in otg_timer() local
133 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
134 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, in otg_timer()
140 devctl &= ~MUSB_DEVCTL_SESSION; in otg_timer()
141 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer()
143 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer()
144 if (devctl & MUSB_DEVCTL_BDEVICE) { in otg_timer()
159 if (devctl & MUSB_DEVCTL_VBUS) { in otg_timer()
180 musb_writeb(mregs, MUSB_DEVCTL, devctl | MUSB_DEVCTL_SESSION); in otg_timer()
181 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
[all …]
H A Dam35x.c124 u8 devctl; in otg_timer() local
131 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
132 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, in otg_timer()
138 devctl &= ~MUSB_DEVCTL_SESSION; in otg_timer()
139 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer()
141 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer()
142 if (devctl & MUSB_DEVCTL_BDEVICE) { in otg_timer()
156 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
157 if (devctl & MUSB_DEVCTL_BDEVICE) in otg_timer()
244 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in am35x_musb_interrupt() local
[all …]
H A Dux500.c36 u8 devctl; in ux500_musb_set_vbus() local
43 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in ux500_musb_set_vbus()
48 devctl |= MUSB_DEVCTL_SESSION; in ux500_musb_set_vbus()
49 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in ux500_musb_set_vbus()
66 devctl |= MUSB_DEVCTL_SESSION; in ux500_musb_set_vbus()
75 devctl &= ~MUSB_DEVCTL_SESSION; in ux500_musb_set_vbus()
78 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in ux500_musb_set_vbus()
H A Dmusb_gadget.c1521 u8 power, devctl; in musb_gadget_wakeup() local
1537 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1538 musb_dbg(musb, "Sending SRP: devctl: %02x", devctl); in musb_gadget_wakeup()
1539 devctl |= MUSB_DEVCTL_SESSION; in musb_gadget_wakeup()
1540 musb_writeb(mregs, MUSB_DEVCTL, devctl); in musb_gadget_wakeup()
1541 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1543 while (!(devctl & MUSB_DEVCTL_SESSION)) { in musb_gadget_wakeup()
1544 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1549 while (devctl & MUSB_DEVCTL_SESSION) { in musb_gadget_wakeup()
1550 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
[all …]
H A Dmediatek.c121 u8 devctl = readb(musb->mregs + MUSB_DEVCTL); in mtk_otg_switch_set() local
135 devctl |= MUSB_DEVCTL_SESSION; in mtk_otg_switch_set()
136 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in mtk_otg_switch_set()
143 devctl &= ~MUSB_DEVCTL_SESSION; in mtk_otg_switch_set()
144 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in mtk_otg_switch_set()
153 devctl &= ~MUSB_DEVCTL_SESSION; in mtk_otg_switch_set()
154 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in mtk_otg_switch_set()
H A Dtusb6010.c554 u8 devctl; in tusb_musb_set_vbus() local
564 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_musb_set_vbus()
570 devctl |= MUSB_DEVCTL_SESSION; in tusb_musb_set_vbus()
603 devctl &= ~MUSB_DEVCTL_SESSION; in tusb_musb_set_vbus()
611 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in tusb_musb_set_vbus()
773 u8 devctl; in tusb_otg_ints() local
783 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_otg_ints()
785 if ((devctl & MUSB_DEVCTL_VBUS) in tusb_otg_ints()
787 dev_dbg(musb->controller, "devctl %02x\n", devctl); in tusb_otg_ints()
796 ERR("vbus too slow, devctl %02x\n", devctl); in tusb_otg_ints()
H A Dmusb_dsps.c214 u8 devctl; in dsps_check_status() local
224 devctl = musb_readb(mregs, MUSB_DEVCTL); in dsps_check_status()
225 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, in dsps_check_status()
250 if (devctl & MUSB_DEVCTL_BDEVICE) { in dsps_check_status()
261 if (!(devctl & MUSB_DEVCTL_SESSION) && !skip_session) in dsps_check_status()
350 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in dsps_interrupt() local
385 devctl); in dsps_interrupt()
H A Dsunxi.c101 u8 devctl; in sunxi_musb_work() local
105 devctl = readb(musb->mregs + SUNXI_MUSB_DEVCTL); in sunxi_musb_work()
110 devctl |= MUSB_DEVCTL_SESSION; in sunxi_musb_work()
115 devctl &= ~MUSB_DEVCTL_SESSION; in sunxi_musb_work()
117 writeb(devctl, musb->mregs + SUNXI_MUSB_DEVCTL); in sunxi_musb_work()
H A Dmusb_gadget_ep0.c186 u8 devctl; in musb_try_b_hnp_enable() local
189 devctl = musb_readb(mbase, MUSB_DEVCTL); in musb_try_b_hnp_enable()
190 musb_writeb(mbase, MUSB_DEVCTL, devctl | MUSB_DEVCTL_HR); in musb_try_b_hnp_enable()
/OK3568_Linux_fs/u-boot/drivers/usb/musb/
H A Dmusb_core.c23 u8 devctl; in musb_start() local
42 devctl = readb(&musbr->devctl); in musb_start()
43 writeb(devctl | MUSB_DEVCTL_SESSION, &musbr->devctl); in musb_start()
H A Dmusb_udc.c122 b = readb(&musbr->devctl); in musb_db_regs()
152 u8 power, devctl; in musb_peri_softconnect() local
177 devctl = readb(&musbr->devctl); in musb_peri_softconnect()
178 if (!(devctl & MUSB_DEVCTL_BDEVICE) || in musb_peri_softconnect()
179 (devctl & MUSB_DEVCTL_HM)) { in musb_peri_softconnect()
/OK3568_Linux_fs/kernel/drivers/pcmcia/
H A 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 …]
/OK3568_Linux_fs/u-boot/drivers/usb/musb-new/
H A Dmusb_core.c419 u8 devctl, u8 power) in musb_stage0_irq() argument
426 dev_dbg(musb->controller, "<== Power=%02x, DevCtl=%02x, int_usb=0x%x\n", power, devctl, in musb_stage0_irq()
438 if (devctl & MUSB_DEVCTL_HM) { in musb_stage0_irq()
490 if ((devctl & MUSB_DEVCTL_VBUS) in musb_stage0_irq()
514 if ((devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS in musb_stage0_irq()
515 && (devctl & MUSB_DEVCTL_BDEVICE)) { in musb_stage0_irq()
573 devctl |= MUSB_DEVCTL_SESSION; in musb_stage0_irq()
574 musb_writeb(mbase, MUSB_DEVCTL, devctl); in musb_stage0_irq()
587 devctl, in musb_stage0_irq()
589 switch (devctl & MUSB_DEVCTL_VBUS) { in musb_stage0_irq()
[all …]
H A Dam35x.c144 u8 devctl; in otg_timer() local
151 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
152 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, in otg_timer()
158 devctl &= ~MUSB_DEVCTL_SESSION; in otg_timer()
159 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer()
161 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer()
162 if (devctl & MUSB_DEVCTL_BDEVICE) { in otg_timer()
179 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
180 if (devctl & MUSB_DEVCTL_BDEVICE) in otg_timer()
286 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in am35x_musb_interrupt() local
[all …]
H A Dmusb_dsps.c208 u8 devctl; in otg_timer() local
215 devctl = dsps_readb(mregs, MUSB_DEVCTL); in otg_timer()
216 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, in otg_timer()
222 devctl &= ~MUSB_DEVCTL_SESSION; in otg_timer()
223 dsps_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer()
225 devctl = dsps_readb(musb->mregs, MUSB_DEVCTL); in otg_timer()
226 if (devctl & MUSB_DEVCTL_BDEVICE) { in otg_timer()
243 devctl = dsps_readb(mregs, MUSB_DEVCTL); in otg_timer()
244 if (devctl & MUSB_DEVCTL_BDEVICE) in otg_timer()
345 u8 devctl = dsps_readb(mregs, MUSB_DEVCTL); in dsps_interrupt() local
[all …]
H A Dmusb_gadget.c1626 u8 power, devctl; in musb_gadget_wakeup() local
1642 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1643 dev_dbg(musb->controller, "Sending SRP: devctl: %02x\n", devctl); in musb_gadget_wakeup()
1644 devctl |= MUSB_DEVCTL_SESSION; in musb_gadget_wakeup()
1645 musb_writeb(mregs, MUSB_DEVCTL, devctl); in musb_gadget_wakeup()
1646 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1648 while (!(devctl & MUSB_DEVCTL_SESSION)) { in musb_gadget_wakeup()
1649 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1654 while (devctl & MUSB_DEVCTL_SESSION) { in musb_gadget_wakeup()
1655 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx4/
H A 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()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/mthca/
H A Dmthca_reset.c52 u16 devctl; in mthca_reset() local
239 devctl = hca_header[(hca_pcie_cap + PCI_EXP_DEVCTL) / 4]; in mthca_reset()
241 devctl)) { in mthca_reset()
/OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dsdio.c775 u8 clkctl, clkreq, devctl; in brcmf_sdio_htclk() local
810 devctl = brcmf_sdiod_readb(bus->sdiodev, in brcmf_sdio_htclk()
817 devctl |= SBSDIO_DEVCTL_CA_INT_ONLY; in brcmf_sdio_htclk()
819 devctl, &err); in brcmf_sdio_htclk()
826 devctl = brcmf_sdiod_readb(bus->sdiodev, in brcmf_sdio_htclk()
828 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; in brcmf_sdio_htclk()
830 devctl, &err); in brcmf_sdio_htclk()
871 devctl = brcmf_sdiod_readb(bus->sdiodev, in brcmf_sdio_htclk()
873 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; in brcmf_sdio_htclk()
875 devctl, &err); in brcmf_sdio_htclk()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/
H A Dstv6110x.c406 return stv6110x->devctl; in stv6110x_get_devctl()
423 stv6110x->devctl = &stv6110x_ctl; in stv6110x_probe()
460 stv6110x->devctl = &stv6110x_ctl; in stv6110x_attach()
470 return stv6110x->devctl; in stv6110x_attach()
H A Dstv6110x_priv.h62 struct stv6110x_devctl *devctl; member
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/
H A Ddhd_sdio.c774 uint8 devctl, wm, mes; in dhdsdio_tune_fifoparam() local
798 devctl = bcmsdh_cfg_read(bus->sdh, SDIO_FUNC_1, SBSDIO_DEVICE_CTL, &err); in dhdsdio_tune_fifoparam()
799 devctl |= SBSDIO_DEVCTL_F2WM_ENAB; in dhdsdio_tune_fifoparam()
800 bcmsdh_cfg_write(bus->sdh, SDIO_FUNC_1, SBSDIO_DEVICE_CTL, devctl, &err); in dhdsdio_tune_fifoparam()
1479 uint8 clkctl, clkreq, devctl; in dhdsdio_htclk() local
1532 devctl = bcmsdh_cfg_read(sdh, SDIO_FUNC_1, SBSDIO_DEVICE_CTL, &err); in dhdsdio_htclk()
1539 devctl |= SBSDIO_DEVCTL_CA_INT_ONLY; in dhdsdio_htclk()
1540 bcmsdh_cfg_write(sdh, SDIO_FUNC_1, SBSDIO_DEVICE_CTL, devctl, &err); in dhdsdio_htclk()
1549 devctl = bcmsdh_cfg_read(sdh, SDIO_FUNC_1, SBSDIO_DEVICE_CTL, &err); in dhdsdio_htclk()
1550 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; in dhdsdio_htclk()
[all …]
/OK3568_Linux_fs/kernel/drivers/pci/
H A Dpci-bridge-emul.h48 __le16 devctl; member

12