/drivers/usb/musb/ |
D | davinci.c | 208 u8 devctl; in otg_timer() local 214 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 215 dev_dbg(musb->controller, "poll devctl %02x (%s)\n", devctl, in otg_timer() 226 if (devctl & MUSB_DEVCTL_VBUS) { in otg_timer() 248 devctl | MUSB_DEVCTL_SESSION); in otg_timer() 249 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 250 if (devctl & MUSB_DEVCTL_BDEVICE) in otg_timer() 311 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in davinci_musb_interrupt() local 352 devctl); in davinci_musb_interrupt() 462 u8 devctl, warn = 0; in davinci_musb_exit() local [all …]
|
D | da8xx.c | 147 u8 devctl; in otg_timer() local 154 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 155 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, in otg_timer() 161 devctl &= ~MUSB_DEVCTL_SESSION; in otg_timer() 162 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer() 164 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer() 165 if (devctl & MUSB_DEVCTL_BDEVICE) { in otg_timer() 180 if (devctl & MUSB_DEVCTL_VBUS) { in otg_timer() 201 musb_writeb(mregs, MUSB_DEVCTL, devctl | MUSB_DEVCTL_SESSION); in otg_timer() 202 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() [all …]
|
D | musb_core.c | 573 u8 devctl) in musb_stage0_irq() argument 577 musb_dbg(musb, "<== DevCtl=%02x, int_usb=0x%x", devctl, int_usb); in musb_stage0_irq() 588 if (devctl & MUSB_DEVCTL_HM) { in musb_stage0_irq() 625 if ((devctl & MUSB_DEVCTL_VBUS) in musb_stage0_irq() 649 if ((devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS in musb_stage0_irq() 650 && (devctl & MUSB_DEVCTL_BDEVICE)) { in musb_stage0_irq() 708 devctl |= MUSB_DEVCTL_SESSION; in musb_stage0_irq() 709 musb_writeb(mbase, MUSB_DEVCTL, devctl); in musb_stage0_irq() 723 devctl, in musb_stage0_irq() 725 switch (devctl & MUSB_DEVCTL_VBUS) { in musb_stage0_irq() [all …]
|
D | am35x.c | 142 u8 devctl; in otg_timer() local 149 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 150 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, in otg_timer() 156 devctl &= ~MUSB_DEVCTL_SESSION; in otg_timer() 157 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer() 159 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer() 160 if (devctl & MUSB_DEVCTL_BDEVICE) { in otg_timer() 174 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 175 if (devctl & MUSB_DEVCTL_BDEVICE) in otg_timer() 263 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in am35x_musb_interrupt() local [all …]
|
D | omap2430.c | 60 u8 devctl; in omap2430_musb_set_vbus() local 67 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in omap2430_musb_set_vbus() 73 devctl |= MUSB_DEVCTL_SESSION; in omap2430_musb_set_vbus() 74 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in omap2430_musb_set_vbus() 98 devctl |= MUSB_DEVCTL_SESSION; in omap2430_musb_set_vbus() 110 devctl &= ~MUSB_DEVCTL_SESSION; in omap2430_musb_set_vbus() 114 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in omap2430_musb_set_vbus() 320 u8 devctl; in omap2430_musb_enable() local 334 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in omap2430_musb_enable() 336 devctl |= MUSB_DEVCTL_SESSION; in omap2430_musb_enable() [all …]
|
D | ux500.c | 49 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()
|
D | musb_gadget.c | 1549 u8 power, devctl; in musb_gadget_wakeup() local 1565 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup() 1566 musb_dbg(musb, "Sending SRP: devctl: %02x", devctl); in musb_gadget_wakeup() 1567 devctl |= MUSB_DEVCTL_SESSION; in musb_gadget_wakeup() 1568 musb_writeb(mregs, MUSB_DEVCTL, devctl); in musb_gadget_wakeup() 1569 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup() 1571 while (!(devctl & MUSB_DEVCTL_SESSION)) { in musb_gadget_wakeup() 1572 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup() 1577 while (devctl & MUSB_DEVCTL_SESSION) { in musb_gadget_wakeup() 1578 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup() [all …]
|
D | tusb6010.c | 558 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()
|
D | musb_dsps.c | 229 u8 devctl; in dsps_check_status() local 239 devctl = musb_readb(mregs, MUSB_DEVCTL); in dsps_check_status() 240 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, in dsps_check_status() 265 if (devctl & MUSB_DEVCTL_BDEVICE) { in dsps_check_status() 272 if (!(devctl & MUSB_DEVCTL_SESSION) && !skip_session) in dsps_check_status() 361 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in dsps_interrupt() local 398 devctl); in dsps_interrupt()
|
D | sunxi.c | 110 u8 devctl; in sunxi_musb_work() local 114 devctl = readb(musb->mregs + SUNXI_MUSB_DEVCTL); in sunxi_musb_work() 120 devctl |= MUSB_DEVCTL_SESSION; in sunxi_musb_work() 126 devctl &= ~MUSB_DEVCTL_SESSION; in sunxi_musb_work() 128 writeb(devctl, musb->mregs + SUNXI_MUSB_DEVCTL); in sunxi_musb_work()
|
D | musbhsdma.c | 303 u8 devctl; in dma_controller_irq() local 318 devctl = musb_readb(mbase, MUSB_DEVCTL); in dma_controller_irq()
|
D | musb_gadget_ep0.c | 211 u8 devctl; in musb_try_b_hnp_enable() local 214 devctl = musb_readb(mbase, MUSB_DEVCTL); in musb_try_b_hnp_enable() 215 musb_writeb(mbase, MUSB_DEVCTL, devctl | MUSB_DEVCTL_HR); in musb_try_b_hnp_enable()
|
D | musb_debugfs.c | 335 musb->context.devctl |= MUSB_DEVCTL_SESSION; in musb_softconnect_write()
|
D | musb_core.h | 298 u8 devctl, busctl, misc; member
|
D | musb_host.c | 2555 u8 devctl; in musb_bus_suspend() local 2573 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_bus_suspend() 2574 if ((devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS) in musb_bus_suspend()
|
/drivers/pcmcia/ |
D | ti113x.h | 369 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 …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | reset.c | 47 u16 devctl; in mlx4_reset() local 142 devctl = hca_header[(pcie_cap + PCI_EXP_DEVCTL) / 4]; in mlx4_reset() 145 devctl)) { in mlx4_reset()
|
/drivers/infiniband/hw/mthca/ |
D | mthca_reset.c | 52 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()
|
/drivers/media/dvb-frontends/ |
D | stv6110x_priv.h | 73 const struct stv6110x_devctl *devctl; member
|
D | stv6110x.c | 385 stv6110x->devctl = &stv6110x_ctl; in stv6110x_attach() 410 return stv6110x->devctl; in stv6110x_attach()
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | sdio.c | 757 u8 clkctl, clkreq, devctl; in brcmf_sdio_htclk() local 792 devctl = brcmf_sdiod_regrb(bus->sdiodev, in brcmf_sdio_htclk() 800 devctl |= SBSDIO_DEVCTL_CA_INT_ONLY; in brcmf_sdio_htclk() 802 devctl, &err); in brcmf_sdio_htclk() 809 devctl = brcmf_sdiod_regrb(bus->sdiodev, in brcmf_sdio_htclk() 811 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; in brcmf_sdio_htclk() 813 devctl, &err); in brcmf_sdio_htclk() 854 devctl = brcmf_sdiod_regrb(bus->sdiodev, in brcmf_sdio_htclk() 856 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; in brcmf_sdio_htclk() 858 devctl, &err); in brcmf_sdio_htclk() [all …]
|
/drivers/video/fbdev/ |
D | nuc900fb.c | 142 fbi->regs.lcd_device_ctrl = display->devctl; in nuc900fb_check_var()
|
/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 6446 u16 devctl; in __e1000_shutdown() local 6451 pcie_capability_read_word(us_dev, PCI_EXP_DEVCTL, &devctl); in __e1000_shutdown() 6453 (devctl & ~PCI_EXP_DEVCTL_CERE)); in __e1000_shutdown() 6458 pcie_capability_write_word(us_dev, PCI_EXP_DEVCTL, devctl); in __e1000_shutdown()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | t4_hw.c | 6898 u16 devctl; in t4_fixup_host_params() local 6906 &devctl); in t4_fixup_host_params() 6907 mps_log = ((devctl & PCI_EXP_DEVCTL_PAYLOAD) >> 5) + 7; in t4_fixup_host_params()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 6916 u16 devctl; in bnx2x_init_pxp() local 6919 pcie_capability_read_word(bp->pdev, PCI_EXP_DEVCTL, &devctl); in bnx2x_init_pxp() 6920 DP(NETIF_MSG_HW, "read 0x%x from devctl\n", devctl); in bnx2x_init_pxp() 6921 w_order = ((devctl & PCI_EXP_DEVCTL_PAYLOAD) >> 5); in bnx2x_init_pxp() 6923 r_order = ((devctl & PCI_EXP_DEVCTL_READRQ) >> 12); in bnx2x_init_pxp()
|