Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/usb/musb/
Domap2430.c57 u8 devctl; in musb_do_idle() local
64 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_do_idle()
65 if (devctl & MUSB_DEVCTL_BDEVICE) { in musb_do_idle()
93 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_do_idle()
94 if (devctl & MUSB_DEVCTL_BDEVICE) in musb_do_idle()
141 u8 devctl; in omap2430_musb_set_vbus() local
149 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in omap2430_musb_set_vbus()
154 devctl |= MUSB_DEVCTL_SESSION; in omap2430_musb_set_vbus()
155 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in omap2430_musb_set_vbus()
178 devctl |= MUSB_DEVCTL_SESSION; in omap2430_musb_set_vbus()
[all …]
Ddavinci.c216 u8 devctl; in otg_timer() local
222 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
223 DBG(7, "poll devctl %02x (%s)\n", devctl, otg_state_string(musb)); in otg_timer()
233 if (devctl & MUSB_DEVCTL_VBUS) { in otg_timer()
257 devctl | MUSB_DEVCTL_SESSION); in otg_timer()
258 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
259 if (devctl & MUSB_DEVCTL_BDEVICE) in otg_timer()
319 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in davinci_musb_interrupt() local
361 devctl); in davinci_musb_interrupt()
476 u8 devctl, warn = 0; in davinci_musb_exit() local
[all …]
Dda8xx.c194 u8 devctl; in otg_timer() local
201 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
202 DBG(7, "Poll devctl %02x (%s)\n", devctl, otg_state_string(musb)); in otg_timer()
207 devctl &= ~MUSB_DEVCTL_SESSION; in otg_timer()
208 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer()
210 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer()
211 if (devctl & MUSB_DEVCTL_BDEVICE) { in otg_timer()
226 if (devctl & MUSB_DEVCTL_VBUS) { in otg_timer()
250 musb_writeb(mregs, MUSB_DEVCTL, devctl | MUSB_DEVCTL_SESSION); in otg_timer()
251 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
[all …]
Dmusb_core.c441 u8 devctl, u8 power) in musb_stage0_irq() argument
445 DBG(3, "<== Power=%02x, DevCtl=%02x, int_usb=0x%x\n", power, devctl, in musb_stage0_irq()
456 if (devctl & MUSB_DEVCTL_HM) { in musb_stage0_irq()
513 if ((devctl & MUSB_DEVCTL_VBUS) in musb_stage0_irq()
539 if ((devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS in musb_stage0_irq()
540 && (devctl & MUSB_DEVCTL_BDEVICE)) { in musb_stage0_irq()
597 devctl |= MUSB_DEVCTL_SESSION; in musb_stage0_irq()
598 musb_writeb(mbase, MUSB_DEVCTL, devctl); in musb_stage0_irq()
611 devctl, in musb_stage0_irq()
613 switch (devctl & MUSB_DEVCTL_VBUS) { in musb_stage0_irq()
[all …]
Dam35x.c146 u8 devctl; in otg_timer() local
153 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
154 DBG(7, "Poll devctl %02x (%s)\n", devctl, otg_state_string(musb)); in otg_timer()
159 devctl &= ~MUSB_DEVCTL_SESSION; in otg_timer()
160 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer()
162 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer()
163 if (devctl & MUSB_DEVCTL_BDEVICE) { in otg_timer()
180 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer()
181 if (devctl & MUSB_DEVCTL_BDEVICE) in otg_timer()
269 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in am35x_musb_interrupt() local
[all …]
Dmusb_gadget.c1518 u8 power, devctl; in musb_gadget_wakeup() local
1534 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1535 DBG(2, "Sending SRP: devctl: %02x\n", devctl); in musb_gadget_wakeup()
1536 devctl |= MUSB_DEVCTL_SESSION; in musb_gadget_wakeup()
1537 musb_writeb(mregs, MUSB_DEVCTL, devctl); in musb_gadget_wakeup()
1538 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1540 while (!(devctl & MUSB_DEVCTL_SESSION)) { in musb_gadget_wakeup()
1541 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
1546 while (devctl & MUSB_DEVCTL_SESSION) { in musb_gadget_wakeup()
1547 devctl = musb_readb(mregs, MUSB_DEVCTL); in musb_gadget_wakeup()
[all …]
Dtusb6010.c517 u8 devctl; in tusb_musb_set_vbus() local
526 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_musb_set_vbus()
532 devctl |= MUSB_DEVCTL_SESSION; in tusb_musb_set_vbus()
565 devctl &= ~MUSB_DEVCTL_SESSION; in tusb_musb_set_vbus()
573 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in tusb_musb_set_vbus()
757 u8 devctl; in tusb_otg_ints() local
766 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_otg_ints()
768 if ((devctl & MUSB_DEVCTL_VBUS) in tusb_otg_ints()
770 DBG(2, "devctl %02x\n", devctl); in tusb_otg_ints()
779 ERR("vbus too slow, devctl %02x\n", devctl); in tusb_otg_ints()
Dmusbhsdma.c311 u8 devctl; in dma_controller_irq() local
326 devctl = musb_readb(mbase, MUSB_DEVCTL); in dma_controller_irq()
331 if ((devctl & MUSB_DEVCTL_HM) in dma_controller_irq()
Dmusb_gadget_ep0.c210 u8 devctl; in musb_try_b_hnp_enable() local
213 devctl = musb_readb(mbase, MUSB_DEVCTL); in musb_try_b_hnp_enable()
214 musb_writeb(mbase, MUSB_DEVCTL, devctl | MUSB_DEVCTL_HR); in musb_try_b_hnp_enable()
Dmusb_core.h372 u8 devctl, busctl, misc; member
Dmusb_host.c2284 u8 devctl; in musb_bus_suspend() local
2297 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_bus_suspend()
2298 if ((devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS) in musb_bus_suspend()
/linux-2.6.39/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 "TI: mfunc 0x%08x, devctl 0x%02x\n", 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()
545 u32 mfunc, mfunc_old, devctl, sysctl; in ti12xx_irqroute_func1() local
549 devctl = config_readb(socket, TI113X_DEVICE_CONTROL); in ti12xx_irqroute_func1()
552 mfunc, devctl); in ti12xx_irqroute_func1()
[all …]
/linux-2.6.39/drivers/net/mlx4/
Dreset.c47 u16 devctl; in mlx4_reset() local
143 devctl = hca_header[(pcie_cap + PCI_EXP_DEVCTL) / 4]; in mlx4_reset()
145 devctl)) { in mlx4_reset()
/linux-2.6.39/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-2.6.39/arch/tile/kernel/
Dpci.c263 u16 devctl; in fixup_read_and_payload_sizes() local
270 &devctl); in fixup_read_and_payload_sizes()
271 devctl &= ~(PCI_EXP_DEVCTL_PAYLOAD | PCI_EXP_DEVCTL_READRQ); in fixup_read_and_payload_sizes()
272 devctl |= new_values; in fixup_read_and_payload_sizes()
274 devctl); in fixup_read_and_payload_sizes()
/linux-2.6.39/arch/arm/mach-w90x900/include/mach/
Dfb.h65 unsigned int devctl; member
/linux-2.6.39/drivers/media/dvb/frontends/
Dstv6110x_priv.h73 struct stv6110x_devctl *devctl; member
Dstv6110x.c374 stv6110x->devctl = &stv6110x_ctl; in stv6110x_attach()
399 return stv6110x->devctl; in stv6110x_attach()
/linux-2.6.39/drivers/staging/brcm80211/brcmfmac/
Ddhd_sdio.c498 u8 clkctl, clkreq, devctl; in dhdsdio_htclk() local
545 devctl = in dhdsdio_htclk()
554 devctl |= SBSDIO_DEVCTL_CA_INT_ONLY; in dhdsdio_htclk()
556 devctl, &err); in dhdsdio_htclk()
563 devctl = in dhdsdio_htclk()
566 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; in dhdsdio_htclk()
568 devctl, &err); in dhdsdio_htclk()
618 devctl = in dhdsdio_htclk()
621 devctl &= ~SBSDIO_DEVCTL_CA_INT_ONLY; in dhdsdio_htclk()
623 devctl, &err); in dhdsdio_htclk()
[all …]
/linux-2.6.39/arch/arm/mach-w90x900/
Ddev.c442 .devctl = 0x060800c0,
/linux-2.6.39/drivers/video/
Dnuc900fb.c143 fbi->regs.lcd_device_ctrl = display->devctl; in nuc900fb_check_var()
/linux-2.6.39/drivers/net/e1000e/
Dnetdev.c5333 u16 devctl; in e1000_complete_shutdown() local
5335 pci_read_config_word(us_dev, pos + PCI_EXP_DEVCTL, &devctl); in e1000_complete_shutdown()
5337 (devctl & ~PCI_EXP_DEVCTL_CERE)); in e1000_complete_shutdown()
5341 pci_write_config_word(us_dev, pos + PCI_EXP_DEVCTL, devctl); in e1000_complete_shutdown()
/linux-2.6.39/drivers/net/bnx2x/
Dbnx2x_main.c4867 u16 devctl; in bnx2x_init_pxp() local
4871 bp->pcie_cap + PCI_EXP_DEVCTL, &devctl); in bnx2x_init_pxp()
4872 DP(NETIF_MSG_HW, "read 0x%x from devctl\n", devctl); in bnx2x_init_pxp()
4873 w_order = ((devctl & PCI_EXP_DEVCTL_PAYLOAD) >> 5); in bnx2x_init_pxp()
4875 r_order = ((devctl & PCI_EXP_DEVCTL_READRQ) >> 12); in bnx2x_init_pxp()