/linux-4.4.14/drivers/usb/musb/ |
H A D | da8xx.c | 192 u8 devctl; otg_timer() local 199 devctl = musb_readb(mregs, MUSB_DEVCTL); otg_timer() 200 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, otg_timer() 206 devctl &= ~MUSB_DEVCTL_SESSION; otg_timer() 207 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); otg_timer() 209 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); otg_timer() 210 if (devctl & MUSB_DEVCTL_BDEVICE) { otg_timer() 225 if (devctl & MUSB_DEVCTL_VBUS) { otg_timer() 246 musb_writeb(mregs, MUSB_DEVCTL, devctl | MUSB_DEVCTL_SESSION); otg_timer() 247 devctl = musb_readb(mregs, MUSB_DEVCTL); otg_timer() 248 if (devctl & MUSB_DEVCTL_BDEVICE) otg_timer() 327 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); da8xx_musb_interrupt() local 341 * devctl. da8xx_musb_interrupt() 361 dev_dbg(musb->controller, "VBUS %s (%s)%s, devctl %02x\n", da8xx_musb_interrupt() 365 devctl); da8xx_musb_interrupt()
|
H A D | am35x.c | 143 u8 devctl; otg_timer() local 150 devctl = musb_readb(mregs, MUSB_DEVCTL); otg_timer() 151 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, otg_timer() 157 devctl &= ~MUSB_DEVCTL_SESSION; otg_timer() 158 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); otg_timer() 160 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); otg_timer() 161 if (devctl & MUSB_DEVCTL_BDEVICE) { otg_timer() 175 devctl = musb_readb(mregs, MUSB_DEVCTL); otg_timer() 176 if (devctl & MUSB_DEVCTL_BDEVICE) otg_timer() 264 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); am35x_musb_interrupt() local 278 * devctl. am35x_musb_interrupt() 299 dev_dbg(musb->controller, "VBUS %s (%s)%s, devctl %02x\n", am35x_musb_interrupt() 303 devctl); am35x_musb_interrupt()
|
H A D | davinci.c | 209 u8 devctl; otg_timer() local 215 devctl = musb_readb(mregs, MUSB_DEVCTL); otg_timer() 216 dev_dbg(musb->controller, "poll devctl %02x (%s)\n", devctl, otg_timer() 227 if (devctl & MUSB_DEVCTL_VBUS) { otg_timer() 249 devctl | MUSB_DEVCTL_SESSION); otg_timer() 250 devctl = musb_readb(mregs, MUSB_DEVCTL); otg_timer() 251 if (devctl & MUSB_DEVCTL_BDEVICE) otg_timer() 312 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); davinci_musb_interrupt() local 325 * to stop registering in devctl. davinci_musb_interrupt() 349 dev_dbg(musb->controller, "VBUS %s (%s)%s, devctl %02x\n", davinci_musb_interrupt() 353 devctl); davinci_musb_interrupt() 463 u8 devctl, warn = 0; davinci_musb_exit() local 469 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); davinci_musb_exit() 470 if (!(devctl & MUSB_DEVCTL_VBUS)) davinci_musb_exit() 472 if ((devctl & MUSB_DEVCTL_VBUS) != warn) { davinci_musb_exit() 473 warn = devctl & MUSB_DEVCTL_VBUS; davinci_musb_exit() 482 if (devctl & MUSB_DEVCTL_VBUS) davinci_musb_exit() 483 dev_dbg(musb->controller, "VBUS off timeout (devctl %02x)\n", devctl); davinci_musb_exit()
|
H A D | omap2430.c | 64 u8 devctl; musb_do_idle() local 71 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); musb_do_idle() 72 if (devctl & MUSB_DEVCTL_BDEVICE) { musb_do_idle() 97 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); musb_do_idle() 98 if (devctl & MUSB_DEVCTL_BDEVICE) musb_do_idle() 146 u8 devctl; omap2430_musb_set_vbus() local 153 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); omap2430_musb_set_vbus() 159 devctl |= MUSB_DEVCTL_SESSION; omap2430_musb_set_vbus() 160 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); omap2430_musb_set_vbus() 184 devctl |= MUSB_DEVCTL_SESSION; omap2430_musb_set_vbus() 196 devctl &= ~MUSB_DEVCTL_SESSION; omap2430_musb_set_vbus() 200 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); omap2430_musb_set_vbus() 202 dev_dbg(musb->controller, "VBUS %s, devctl %02x " omap2430_musb_set_vbus() 210 u8 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); omap2430_musb_set_mode() local 212 devctl |= MUSB_DEVCTL_SESSION; omap2430_musb_set_mode() 213 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); omap2430_musb_set_mode() 449 u8 devctl; omap2430_musb_enable() local 462 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); omap2430_musb_enable() 464 devctl |= MUSB_DEVCTL_SESSION; omap2430_musb_enable() 465 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); omap2430_musb_enable()
|
H A D | ux500.c | 49 u8 devctl; ux500_musb_set_vbus() local 56 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); ux500_musb_set_vbus() 61 devctl |= MUSB_DEVCTL_SESSION; ux500_musb_set_vbus() 62 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); ux500_musb_set_vbus() 80 devctl |= MUSB_DEVCTL_SESSION; ux500_musb_set_vbus() 90 devctl &= ~MUSB_DEVCTL_SESSION; ux500_musb_set_vbus() 93 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); ux500_musb_set_vbus() 104 dev_dbg(musb->controller, "VBUS %s, devctl %02x\n", ux500_musb_set_vbus()
|
H A D | musb_core.c | 535 * @param devctl 540 u8 devctl) musb_stage0_irq() 544 dev_dbg(musb->controller, "<== DevCtl=%02x, int_usb=0x%x\n", devctl, musb_stage0_irq() 556 if (devctl & MUSB_DEVCTL_HM) { musb_stage0_irq() 596 if ((devctl & MUSB_DEVCTL_VBUS) musb_stage0_irq() 620 if ((devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS musb_stage0_irq() 621 && (devctl & MUSB_DEVCTL_BDEVICE)) { musb_stage0_irq() 679 devctl |= MUSB_DEVCTL_SESSION; musb_stage0_irq() 680 musb_writeb(mbase, MUSB_DEVCTL, devctl); musb_stage0_irq() 694 devctl, musb_stage0_irq() 696 switch (devctl & MUSB_DEVCTL_VBUS) { musb_stage0_irq() 717 dev_dbg(musb->controller, "SUSPEND (%s) devctl %02x\n", musb_stage0_irq() 718 usb_otg_state_string(musb->xceiv->otg->state), devctl); musb_stage0_irq() 793 if (devctl & MUSB_DEVCTL_LSDEV) musb_stage0_irq() 815 if ((devctl & MUSB_DEVCTL_VBUS) musb_stage0_irq() 826 dev_dbg(musb->controller, "CONNECT (%s) devctl %02x\n", musb_stage0_irq() 827 usb_otg_state_string(musb->xceiv->otg->state), devctl); musb_stage0_irq() 831 dev_dbg(musb->controller, "DISCONNECT (%s) as %s, devctl %02x\n", musb_stage0_irq() 833 MUSB_MODE(musb), devctl); musb_stage0_irq() 880 if (devctl & MUSB_DEVCTL_HM) { musb_stage0_irq() 1030 u8 devctl = musb_readb(regs, MUSB_DEVCTL); musb_start() local 1033 dev_dbg(musb->controller, "<== devctl %02x\n", devctl); musb_start() 1049 devctl = musb_readb(regs, MUSB_DEVCTL); musb_start() 1050 devctl &= ~MUSB_DEVCTL_SESSION; musb_start() 1059 (devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS) { musb_start() 1062 devctl |= MUSB_DEVCTL_SESSION; musb_start() 1066 musb_writeb(regs, MUSB_DEVCTL, devctl); musb_start() 1599 u8 devctl; musb_interrupt() local 1604 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); musb_interrupt() 1631 retval |= musb_stage0_irq(musb, musb->int_usb, devctl); musb_interrupt() 1778 u8 devctl; musb_vbus_show() local 1785 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); musb_vbus_show() 1786 if ((devctl & MUSB_DEVCTL_VBUS) musb_vbus_show() 1847 u8 devctl; musb_recover_from_babble() local 1864 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); musb_recover_from_babble() 1865 devctl &= ~MUSB_DEVCTL_SESSION; musb_recover_from_babble() 1866 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); musb_recover_from_babble() 2324 musb->context.devctl = musb_readb(musb_base, MUSB_DEVCTL); musb_save_context() 2404 musb_writeb(musb_base, MUSB_DEVCTL, musb->context.devctl); musb_restore_context() 2493 u8 devctl; musb_resume() local 2508 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); musb_resume() 2510 if ((devctl & mask) != (musb->context.devctl & mask)) musb_resume() 539 musb_stage0_irq(struct musb *musb, u8 int_usb, u8 devctl) musb_stage0_irq() argument
|
H A D | musb_gadget.c | 1545 u8 power, devctl; musb_gadget_wakeup() local 1561 devctl = musb_readb(mregs, MUSB_DEVCTL); musb_gadget_wakeup() 1562 dev_dbg(musb->controller, "Sending SRP: devctl: %02x\n", devctl); musb_gadget_wakeup() 1563 devctl |= MUSB_DEVCTL_SESSION; musb_gadget_wakeup() 1564 musb_writeb(mregs, MUSB_DEVCTL, devctl); musb_gadget_wakeup() 1565 devctl = musb_readb(mregs, MUSB_DEVCTL); musb_gadget_wakeup() 1567 while (!(devctl & MUSB_DEVCTL_SESSION)) { musb_gadget_wakeup() 1568 devctl = musb_readb(mregs, MUSB_DEVCTL); musb_gadget_wakeup() 1573 while (devctl & MUSB_DEVCTL_SESSION) { musb_gadget_wakeup() 1574 devctl = musb_readb(mregs, MUSB_DEVCTL); musb_gadget_wakeup() 2000 u8 devctl; musb_g_suspend() local 2002 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); musb_g_suspend() 2003 dev_dbg(musb->controller, "devctl %02x\n", devctl); musb_g_suspend() 2007 if ((devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS) musb_g_suspend() 2037 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); musb_g_disconnect() local 2039 dev_dbg(musb->controller, "devctl %02x\n", devctl); musb_g_disconnect() 2042 musb_writeb(mregs, MUSB_DEVCTL, devctl & MUSB_DEVCTL_SESSION); musb_g_disconnect() 2083 u8 devctl = musb_readb(mbase, MUSB_DEVCTL); variable 2087 (devctl & MUSB_DEVCTL_BDEVICE) 2102 else if (devctl & MUSB_DEVCTL_HR) 2130 * In that case, do not rely on devctl for setting 2135 } else if (devctl & MUSB_DEVCTL_BDEVICE) {
|
H A D | tusb6010.c | 438 * suspend mode. Unless it's enabled otg_stat and devctl will tusb_musb_vbus_status() 558 u8 devctl; tusb_musb_set_vbus() local 568 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); tusb_musb_set_vbus() 574 devctl |= MUSB_DEVCTL_SESSION; tusb_musb_set_vbus() 607 devctl &= ~MUSB_DEVCTL_SESSION; tusb_musb_set_vbus() 615 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); tusb_musb_set_vbus() 617 dev_dbg(musb->controller, "VBUS %s, devctl %02x otg %3x conf %08x prcm %08x\n", tusb_musb_set_vbus() 777 u8 devctl; tusb_otg_ints() local 787 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); tusb_otg_ints() 789 if ((devctl & MUSB_DEVCTL_VBUS) tusb_otg_ints() 791 dev_dbg(musb->controller, "devctl %02x\n", devctl); tusb_otg_ints() 800 ERR("vbus too slow, devctl %02x\n", devctl); tusb_otg_ints()
|
H A D | musb_dsps.c | 260 u8 devctl; otg_timer() local 268 devctl = dsps_readb(mregs, MUSB_DEVCTL); otg_timer() 269 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, otg_timer() 281 if (devctl & MUSB_DEVCTL_BDEVICE) { otg_timer() 288 if (!(devctl & MUSB_DEVCTL_SESSION) && !skip_session) otg_timer() 340 u8 devctl = dsps_readb(mregs, MUSB_DEVCTL); dsps_interrupt() local 354 * devctl. dsps_interrupt() 374 dev_dbg(musb->controller, "VBUS %s (%s)%s, devctl %02x\n", dsps_interrupt() 378 devctl); dsps_interrupt()
|
H A D | musbhsdma.c | 303 u8 devctl; dma_controller_irq() local 318 devctl = musb_readb(mbase, MUSB_DEVCTL); dma_controller_irq() 323 if ((devctl & MUSB_DEVCTL_HM) dma_controller_irq()
|
H A D | musb_debugfs.c | 303 * might cache devctl with SESSION bit cleared during musb_softconnect_write() 307 musb->context.devctl |= MUSB_DEVCTL_SESSION; musb_softconnect_write()
|
H A D | sunxi.c | 107 u8 devctl; sunxi_musb_work() local 111 devctl = readb(musb->mregs + SUNXI_MUSB_DEVCTL); sunxi_musb_work() 117 devctl |= MUSB_DEVCTL_SESSION; sunxi_musb_work() 123 devctl &= ~MUSB_DEVCTL_SESSION; sunxi_musb_work() 125 writeb(devctl, musb->mregs + SUNXI_MUSB_DEVCTL); sunxi_musb_work()
|
H A D | musb_gadget_ep0.c | 207 u8 devctl; musb_try_b_hnp_enable() local 210 devctl = musb_readb(mbase, MUSB_DEVCTL); musb_try_b_hnp_enable() 211 musb_writeb(mbase, MUSB_DEVCTL, devctl | MUSB_DEVCTL_HR); musb_try_b_hnp_enable()
|
H A D | blackfin.c | 343 dev_dbg(musb->controller, "VBUS %s, devctl %02x " bfin_musb_set_vbus()
|
H A D | musb_core.h | 292 u8 devctl, busctl, misc; member in struct:musb_context_registers
|
H A D | musb_host.c | 2578 u8 devctl; musb_bus_suspend() local 2593 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); musb_bus_suspend() 2594 if ((devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS) musb_bus_suspend()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
H A D | reset.c | 47 u16 devctl; mlx4_reset() local 142 devctl = hca_header[(pcie_cap + PCI_EXP_DEVCTL) / 4]; mlx4_reset() 145 devctl)) { mlx4_reset()
|
/linux-4.4.14/drivers/pcmcia/ |
H A D | ti113x.h | 369 u32 mfunc, mfunc_old, devctl; ti12xx_irqroute_func0() local 374 devctl = config_readb(socket, TI113X_DEVICE_CONTROL); ti12xx_irqroute_func0() 375 dev_info(&socket->dev->dev, "TI: mfunc 0x%08x, devctl 0x%02x\n", ti12xx_irqroute_func0() 376 mfunc, devctl); ti12xx_irqroute_func0() 394 if ((devctl & TI113X_DCR_IMODE_MASK) == TI12XX_DCR_IMODE_ALL_SERIAL) { ti12xx_irqroute_func0() 433 devctl &= ~TI113X_DCR_IMODE_MASK; ti12xx_irqroute_func0() 434 devctl |= TI113X_DCR_IMODE_SERIAL; /* serial ISA could be right */ ti12xx_irqroute_func0() 435 config_writeb(socket, TI113X_DEVICE_CONTROL, devctl); ti12xx_irqroute_func0() 543 u32 mfunc, mfunc_old, devctl, sysctl; ti12xx_irqroute_func1() local 547 devctl = config_readb(socket, TI113X_DEVICE_CONTROL); ti12xx_irqroute_func1() 548 dev_info(&socket->dev->dev, "TI: mfunc 0x%08x, devctl 0x%02x\n", ti12xx_irqroute_func1() 549 mfunc, devctl); ti12xx_irqroute_func1() 572 if ((devctl & TI113X_DCR_IMODE_MASK) == TI12XX_DCR_IMODE_ALL_SERIAL) { ti12xx_irqroute_func1() 592 /* the 1250 has one pin for IRQSER/INTB depending on devctl */ ti12xx_irqroute_func1() 747 u32 mfunc, devctl, sysctl; ti12xx_power_hook() local 754 devctl = config_readb(socket, TI113X_DEVICE_CONTROL); ti12xx_power_hook() 765 if (((devctl & TI113X_DCR_IMODE_MASK) == TI12XX_DCR_IMODE_ALL_SERIAL) && ti12xx_power_hook()
|
/linux-4.4.14/include/linux/platform_data/ |
H A D | video-nuc900fb.h | 65 unsigned int devctl; member in struct:nuc900fb_display
|
/linux-4.4.14/drivers/media/dvb-frontends/ |
H A D | stv6110x_priv.h | 73 struct stv6110x_devctl *devctl; member in struct:stv6110x_state
|
H A D | stv6110x.c | 385 stv6110x->devctl = &stv6110x_ctl; stv6110x_attach() 410 return stv6110x->devctl; stv6110x_attach()
|
/linux-4.4.14/drivers/infiniband/hw/mthca/ |
H A D | mthca_reset.c | 52 u16 devctl; mthca_reset() local 243 devctl = hca_header[(hca_pcie_cap + PCI_EXP_DEVCTL) / 4]; mthca_reset() 245 devctl)) { mthca_reset()
|
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | sdio.c | 837 u8 clkctl, clkreq, devctl; brcmf_sdio_htclk() local 872 devctl = brcmf_sdiod_regrb(bus->sdiodev, brcmf_sdio_htclk() 880 devctl |= SBSDIO_DEVCTL_CA_INT_ONLY; brcmf_sdio_htclk() 882 devctl, &err); brcmf_sdio_htclk() 889 devctl = brcmf_sdiod_regrb(bus->sdiodev, brcmf_sdio_htclk() 891 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; brcmf_sdio_htclk() 893 devctl, &err); brcmf_sdio_htclk() 934 devctl = brcmf_sdiod_regrb(bus->sdiodev, brcmf_sdio_htclk() 936 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; brcmf_sdio_htclk() 938 devctl, &err); brcmf_sdio_htclk() 2611 u8 clkctl, devctl = 0; brcmf_sdio_dpc() local 2615 devctl = brcmf_sdiod_regrb(bus->sdiodev, brcmf_sdio_dpc() 2623 brcmf_dbg(SDIO, "DPC: PENDING, devctl 0x%02x clkctl 0x%02x\n", brcmf_sdio_dpc() 2624 devctl, clkctl); brcmf_sdio_dpc() 2627 devctl = brcmf_sdiod_regrb(bus->sdiodev, brcmf_sdio_dpc() 2629 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; brcmf_sdio_dpc() 2631 devctl, &err); brcmf_sdio_dpc()
|
/linux-4.4.14/arch/arm/mach-w90x900/ |
H A D | dev.c | 444 .devctl = 0x060800c0,
|
/linux-4.4.14/arch/c6x/platforms/ |
H A D | dscr.c | 113 struct devstate_ctl_reg devctl[MAX_DEVCTL_REGS]; member in struct:dscr_regs 484 r = &dscr.devctl[i]; dscr_parse_devstate_ctl_regs()
|
/linux-4.4.14/drivers/video/fbdev/ |
H A D | nuc900fb.c | 142 fbi->regs.lcd_device_ctrl = display->devctl; nuc900fb_check_var()
|
/linux-4.4.14/include/linux/ |
H A D | ata.h | 176 ATA_DEVCTL_OBS = (1 << 3), /* obsolete bit in devctl reg */
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_main.c | 6899 u16 devctl; bnx2x_init_pxp() local 6902 pcie_capability_read_word(bp->pdev, PCI_EXP_DEVCTL, &devctl); bnx2x_init_pxp() 6903 DP(NETIF_MSG_HW, "read 0x%x from devctl\n", devctl); bnx2x_init_pxp() 6904 w_order = ((devctl & PCI_EXP_DEVCTL_PAYLOAD) >> 5); bnx2x_init_pxp() 6906 r_order = ((devctl & PCI_EXP_DEVCTL_READRQ) >> 12); bnx2x_init_pxp()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
H A D | netdev.c | 6377 u16 devctl; __e1000_shutdown() local 6382 pcie_capability_read_word(us_dev, PCI_EXP_DEVCTL, &devctl); __e1000_shutdown() 6384 (devctl & ~PCI_EXP_DEVCTL_CERE)); __e1000_shutdown() 6389 pcie_capability_write_word(us_dev, PCI_EXP_DEVCTL, devctl); __e1000_shutdown()
|