| /linux/drivers/usb/musb/ |
| H A D | musb_core.c | 477 u8 devctl; in musb_set_host() local 482 devctl = musb_read_devctl(musb); in musb_set_host() 483 if (!(devctl & MUSB_DEVCTL_BDEVICE)) { in musb_set_host() 484 trace_musb_state(musb, devctl, "Already in host mode"); in musb_set_host() 488 devctl |= MUSB_DEVCTL_SESSION; in musb_set_host() 489 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in musb_set_host() 491 error = readx_poll_timeout(musb_read_devctl, musb, devctl, in musb_set_host() 492 !(devctl & MUSB_DEVCTL_BDEVICE), 5000, in musb_set_host() 496 __func__, devctl); in musb_set_host() 501 devctl = musb_read_devctl(musb); in musb_set_host() [all …]
|
| H A D | mpfs.c | 54 u8 devctl; in mpfs_musb_set_vbus() local 61 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in mpfs_musb_set_vbus() 67 devctl |= MUSB_DEVCTL_SESSION; in mpfs_musb_set_vbus() 78 devctl &= ~MUSB_DEVCTL_SESSION; in mpfs_musb_set_vbus() 83 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in mpfs_musb_set_vbus() 97 u8 devctl; in otg_timer() local 104 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 105 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, in otg_timer() 111 devctl &= ~MUSB_DEVCTL_SESSION; in otg_timer() 112 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer() [all …]
|
| H A D | da8xx.c | 129 u8 devctl; in otg_timer() local 136 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 137 dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl, in otg_timer() 143 devctl &= ~MUSB_DEVCTL_SESSION; in otg_timer() 144 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer() 146 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer() 147 if (devctl & MUSB_DEVCTL_BDEVICE) { in otg_timer() 162 if (devctl & MUSB_DEVCTL_VBUS) { in otg_timer() 183 musb_writeb(mregs, MUSB_DEVCTL, devctl | MUSB_DEVCTL_SESSION); in otg_timer() 184 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() [all …]
|
| H A D | musb_gadget.c | 1519 u8 power, devctl; in musb_gadget_wakeup() local 1535 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup() 1536 musb_dbg(musb, "Sending SRP: devctl: %02x", devctl); in musb_gadget_wakeup() 1537 devctl |= MUSB_DEVCTL_SESSION; in musb_gadget_wakeup() 1538 musb_writeb(mregs, MUSB_DEVCTL, devctl); in musb_gadget_wakeup() 1539 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup() 1541 while (!(devctl & MUSB_DEVCTL_SESSION)) { in musb_gadget_wakeup() 1542 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup() 1547 while (devctl & MUSB_DEVCTL_SESSION) { in musb_gadget_wakeup() 1548 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup() [all …]
|
| H A D | tusb6010.c | 560 u8 devctl; in tusb_musb_set_vbus() local 570 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_musb_set_vbus() 576 devctl |= MUSB_DEVCTL_SESSION; in tusb_musb_set_vbus() 609 devctl &= ~MUSB_DEVCTL_SESSION; in tusb_musb_set_vbus() 617 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in tusb_musb_set_vbus() 779 u8 devctl; in tusb_otg_ints() local 789 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_otg_ints() 791 if ((devctl & MUSB_DEVCTL_VBUS) in tusb_otg_ints() 793 dev_dbg(musb->controller, "devctl %02x\n", devctl); in tusb_otg_ints() 802 ERR("vbus too slow, devctl %02x\n", devctl); in tusb_otg_ints()
|
| H A D | musb_dsps.c | 214 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() 349 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in dsps_interrupt() local 384 devctl); in dsps_interrupt()
|
| H A D | musb_debugfs.c | 293 musb->context.devctl |= MUSB_DEVCTL_SESSION; in musb_softconnect_write()
|
| H A D | musb_core.h | 268 u8 devctl, busctl, misc; member
|
| /linux/drivers/pcmcia/ |
| H A 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 …]
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A 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()
|
| /linux/drivers/infiniband/hw/mthca/ |
| H A 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()
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | stv6110x.c | 406 return stv6110x->devctl; in stv6110x_get_devctl() 422 stv6110x->devctl = &stv6110x_ctl; in stv6110x_probe() 458 stv6110x->devctl = &stv6110x_ctl; in stv6110x_attach() 468 return stv6110x->devctl; in stv6110x_attach()
|
| H A D | stv6110x_priv.h | 62 struct stv6110x_devctl *devctl; member
|
| /linux/drivers/mfd/ |
| H A D | ls2k-bmc-core.c | 167 u32 devctl; member 232 ddata->bridge_pci_data.devctl); in ls2k_bmc_restore_bridge_pci_data() 348 &ddata->bridge_pci_data.devctl); in ls2k_bmc_save_pci_data()
|
| /linux/drivers/pci/ |
| H A D | pci-bridge-emul.h | 48 __le16 devctl; member
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | t4_hw.c | 7327 u16 devctl; in t4_fixup_host_params() local 7334 &devctl); in t4_fixup_host_params() 7335 mps_log = ((devctl & PCI_EXP_DEVCTL_PAYLOAD) >> 5) + 7; in t4_fixup_host_params()
|