/drivers/usb/host/ |
H A D | isp116x-hcd.c | 944 u32 reg = isp116x->rhdesca; local 949 desc->bNbrPorts = (u8) (reg & 0x3); 951 desc->wHubCharacteristics = cpu_to_le16((u16) ((reg >> 8) & 0x1f)); 952 desc->bPwrOn2PwrGood = (u8) ((reg >> 24) & 0xff);
|
H A D | isp116x.h | 357 static inline void isp116x_write_addr(struct isp116x *isp116x, unsigned reg) argument 359 writew(reg & 0xff, isp116x->addr_reg); 415 static u16 isp116x_read_reg16(struct isp116x *isp116x, unsigned reg) argument 417 isp116x_write_addr(isp116x, reg); 421 static u32 isp116x_read_reg32(struct isp116x *isp116x, unsigned reg) argument 423 isp116x_write_addr(isp116x, reg); 427 static void isp116x_write_reg16(struct isp116x *isp116x, unsigned reg, argument 430 isp116x_write_addr(isp116x, reg | ISP116x_WRITE_OFFSET); 434 static void isp116x_write_reg32(struct isp116x *isp116x, unsigned reg, argument 437 isp116x_write_addr(isp116x, reg | ISP116x_WRITE_OFFSE [all...] |
H A D | isp1362-hcd.c | 1537 u32 reg = isp1362_hcd->rhdesca; local 1544 desc->bNbrPorts = reg & 0x3; 1546 desc->wHubCharacteristics = cpu_to_le16((reg >> 8) & 0x1f); 1547 DBG(0, "%s: hubcharacteristics = %02x\n", __func__, cpu_to_le16((reg >> 8) & 0x1f)); 1548 desc->bPwrOn2PwrGood = (reg >> 24) & 0xff;
|
H A D | isp1362.h | 497 /* HC control reg shadow copy */ 631 static void isp1362_write_addr(struct isp1362_hcd *isp1362_hcd, isp1362_reg_t reg) argument 633 REG_ACCESS_TEST(reg); 635 writew(ISP1362_REG_NO(reg), isp1362_hcd->addr_reg);
|
H A D | isp1760-hcd.c | 138 static u32 reg_read32(void __iomem *base, u32 reg) argument 140 return readl(base + reg); 143 static void reg_write32(void __iomem *base, u32 reg, u32 val) argument 145 writel(val, base + reg); 354 static int handshake(struct usb_hcd *hcd, u32 reg, argument 360 result = reg_read32(hcd->regs, reg);
|
H A D | max3421-hcd.c | 348 spi_rd8(struct usb_hcd *hcd, unsigned int reg) argument 360 (field(reg, MAX3421_SPI_REG_SHIFT) | 374 spi_wr8(struct usb_hcd *hcd, unsigned int reg, u8 val) argument 386 (field(reg, MAX3421_SPI_REG_SHIFT) | 398 spi_rd_buf(struct usb_hcd *hcd, unsigned int reg, void *buf, size_t len) argument 410 (field(reg, MAX3421_SPI_REG_SHIFT) | 424 spi_wr_buf(struct usb_hcd *hcd, unsigned int reg, void *buf, size_t len) argument 436 (field(reg, MAX3421_SPI_REG_SHIFT) |
|
H A D | oxu210hp-hcd.c | 253 static inline u32 oxu_readl(void *base, u32 reg) argument 255 return readl(base + reg); 258 static inline void oxu_writel(void *base, u32 reg, u32 val) argument 260 writel(val, base + reg); 3483 u32 __iomem *reg = &oxu->regs->port_status[port]; local 3484 u32 t1 = readl(reg) & ~PORT_RWC_BITS; 3503 writel(t2, reg);
|
H A D | r8a66597-hcd.c | 59 unsigned long reg) 65 r8a66597_bset(r8a66597, 1 << pipenum, reg); 71 unsigned long reg) 77 r8a66597_bclr(r8a66597, 1 << pipenum, reg); 102 printk(KERN_ERR "r8a66597: reg access fail.\n"); 112 printk(KERN_ERR "r8a66597: reg access fail.\n"); 126 printk(KERN_ERR "r8a66597: reg access fail.\n"); 447 static void r8a66597_reg_wait(struct r8a66597 *r8a66597, unsigned long reg, argument 454 tmp = r8a66597_read(r8a66597, reg); 457 "is timeout\n", reg, loo 58 enable_pipe_irq(struct r8a66597 *r8a66597, u16 pipenum, unsigned long reg) argument 70 disable_pipe_irq(struct r8a66597 *r8a66597, u16 pipenum, unsigned long reg) argument 2412 void __iomem *reg = NULL; local [all...] |
H A D | r8a66597.h | 112 void __iomem *reg; member in struct:r8a66597 168 return ioread16(r8a66597->reg + offset); 175 void __iomem *fifoaddr = r8a66597->reg + offset; 196 iowrite16(val, r8a66597->reg + offset); 218 void __iomem *fifoaddr = r8a66597->reg + pipe->fifoaddr;
|
H A D | sl811.h | 197 static inline u8 sl811_read(struct sl811 *sl811, int reg) argument 199 writeb(reg, sl811->addr_reg); 203 static inline void sl811_write(struct sl811 *sl811, int reg, u8 val) argument 205 writeb(reg, sl811->addr_reg);
|
H A D | uhci-hcd.h | 501 static inline u32 uhci_readl(const struct uhci_hcd *uhci, int reg) argument 503 return inl(uhci->io_addr + reg); 506 static inline void uhci_writel(const struct uhci_hcd *uhci, u32 val, int reg) argument 508 outl(val, uhci->io_addr + reg); 511 static inline u16 uhci_readw(const struct uhci_hcd *uhci, int reg) argument 513 return inw(uhci->io_addr + reg); 516 static inline void uhci_writew(const struct uhci_hcd *uhci, u16 val, int reg) argument 518 outw(val, uhci->io_addr + reg); 521 static inline u8 uhci_readb(const struct uhci_hcd *uhci, int reg) argument 523 return inb(uhci->io_addr + reg); 526 uhci_writeb(const struct uhci_hcd *uhci, u8 val, int reg) argument 548 uhci_readl(const struct uhci_hcd *uhci, int reg) argument 560 uhci_writel(const struct uhci_hcd *uhci, u32 val, int reg) argument 572 uhci_readw(const struct uhci_hcd *uhci, int reg) argument 584 uhci_writew(const struct uhci_hcd *uhci, u16 val, int reg) argument 596 uhci_readb(const struct uhci_hcd *uhci, int reg) argument 608 uhci_writeb(const struct uhci_hcd *uhci, u8 val, int reg) argument [all...] |
/drivers/usb/misc/ |
H A D | ftdi-elan.c | 2235 int reg = 0; local 2236 UxxxStatus = ftdi_elan_read_config(ftdi, activePCIfn | reg, 0, 2470 int reg = 0; local 2475 reg = 16; 2476 UxxxStatus = ftdi_elan_write_config(ftdi, activePCIfn | reg, 0, 2480 UxxxStatus = ftdi_elan_read_config(ftdi, activePCIfn | reg, 0, 2484 UxxxStatus = ftdi_elan_write_config(ftdi, activePCIfn | reg, 0, 2488 UxxxStatus = ftdi_elan_read_config(ftdi, activePCIfn | reg, 0, 2492 reg = 12; 2493 UxxxStatus = ftdi_elan_read_config(ftdi, activePCIfn | reg, 2529 int reg = 0; local 2647 int reg = 0; local [all...] |
H A D | uss720.c | 67 __u8 reg[7]; /* USB registers */ member in struct:parport_uss720_private 79 __u8 reg[7]; member in struct:uss720_async_request 125 memcpy(priv->reg, rq->reg, sizeof(priv->reg)); 129 (unsigned int)priv->reg[0], (unsigned int)priv->reg[1], 130 (unsigned int)priv->reg[2], (unsigned int)priv->reg[3], 131 (unsigned int)priv->reg[ 215 get_1284_register(struct parport *pp, unsigned char reg, unsigned char *val, gfp_t mem_flags) argument 251 set_1284_register(struct parport *pp, unsigned char reg, unsigned char val, gfp_t mem_flags) argument 283 __u8 reg; local 701 unsigned char reg; local [all...] |
/drivers/usb/musb/ |
H A D | blackfin.h | 80 #define USB_DMA_REG(ep, reg) (USB_DMA_BASE + 0x20 * ep + reg)
|
H A D | musb_core.c | 391 u8 reg; local 408 reg = musb_readb(mbase, MUSB_POWER); 409 reg |= MUSB_POWER_SUSPENDM; 410 musb_writeb(mbase, MUSB_POWER, reg); 1381 u8 reg; local 1389 reg = musb_read_configdata(mbase); 1391 strcpy(aInfo, (reg & MUSB_CONFIGDATA_UTMIDW) ? "UTMI-16" : "UTMI-8"); 1392 if (reg & MUSB_CONFIGDATA_DYNFIFO) { 1396 if (reg & MUSB_CONFIGDATA_MPRXE) { 1400 if (reg 1516 u32 reg; local [all...] |
H A D | musb_core.h | 474 u8 reg = 0; local 477 reg = musb_readb(mbase, MUSB_EP_OFFSET(epnum, MUSB_FIFOSIZE)); 479 if (!reg) 485 hw_ep->max_packet_sz_tx = 1 << (reg & 0x0f); 488 if ((reg & 0xf0) == 0xf0) { 493 hw_ep->max_packet_sz_rx = 1 << ((reg & 0xf0) >> 4);
|
H A D | musb_dsps.c | 519 u32 reg; local 521 reg = dsps_readl(ctrl_base, wrp->mode); 525 reg &= ~(1 << wrp->iddig); 532 reg |= (1 << wrp->iddig_mux); 534 dsps_writel(ctrl_base, wrp->mode, reg); 538 reg |= (1 << wrp->iddig); 545 reg |= (1 << wrp->iddig_mux); 547 dsps_writel(ctrl_base, wrp->mode, reg);
|
H A D | musb_regs.h | 466 #define USB_OFFSET(reg) (reg - USB_BASE)
|
H A D | tusb6010.c | 285 u32 reg; local 300 reg = musb_readl(tbase, TUSB_PRCM_MNGMT); 303 reg |= TUSB_PRCM_MNGMT_15_SW_EN | TUSB_PRCM_MNGMT_33_SW_EN; 306 reg &= ~(TUSB_PRCM_MNGMT_15_SW_EN | TUSB_PRCM_MNGMT_33_SW_EN); 308 musb_writel(tbase, TUSB_PRCM_MNGMT, reg); 321 u32 reg; local 323 reg = musb_readl(tbase, TUSB_PRCM_CONF); 324 reg &= ~TUSB_PRCM_CONF_SYS_CLKSEL(0x3); 332 reg |= TUSB_PRCM_CONF_SYS_CLKSEL(mode & 0x3); 334 musb_writel(tbase, TUSB_PRCM_CONF, reg); 348 u32 reg; local 796 u32 reg; local 996 u32 reg; local [all...] |
H A D | tusb6010_omap.c | 73 u32 reg = musb_readl(chdat->tbase, TUSB_DMA_EP_MAP); local 75 if (reg != 0) { 77 chdat->epnum, reg & 0xf); 82 reg = (1 << 4) | chdat->epnum; 84 reg = chdat->epnum; 86 musb_writel(chdat->tbase, TUSB_DMA_EP_MAP, reg); 93 u32 reg = musb_readl(chdat->tbase, TUSB_DMA_EP_MAP); local 95 if ((reg & 0xf) != chdat->epnum) { 97 chdat->epnum, reg & 0xf); 434 u32 reg local 470 u32 reg; local 497 u32 reg; local 596 u32 reg; local [all...] |
/drivers/usb/phy/ |
H A D | phy-ab8500-usb.c | 845 u8 reg; local 852 AB8500_USB, AB8500_USB_LINE_STAT_REG, ®); 853 lsts = (reg >> 3) & 0x0F; 859 AB8500_USB, AB8505_USB_LINE_STAT_REG, ®); 860 lsts = (reg >> 3) & 0x1F; 866 AB8500_USB, AB8540_USB_LINK_STAT_REG, ®); 867 lsts = (reg >> 3) & 0xFF; 873 AB8500_USB, AB9540_USB_LINK_STAT_REG, ®); 874 lsts = (reg >> 3) & 0xFF; 954 u8 reg; local [all...] |
H A D | phy-am335x-control.c | 33 u32 reg; local 39 reg = AM335X_PHY0_WK_EN; 42 reg = AM335X_PHY1_WK_EN; 53 val |= reg; 55 val &= ~reg; 65 u32 reg; local 71 reg = AM335X_USB0_CTRL; 74 reg = AM335X_USB1_CTRL; 81 val = readl(usb_ctrl->phy_reg + reg); 89 writel(val, usb_ctrl->phy_reg + reg); [all...] |
H A D | phy-isp1301-omap.c | 152 isp1301_get_u8(struct isp1301 *isp, u8 reg) argument 154 return i2c_smbus_read_byte_data(isp->client, reg + 0); 158 isp1301_get_u16(struct isp1301 *isp, u8 reg) argument 160 return i2c_smbus_read_word_data(isp->client, reg); 164 isp1301_set_bits(struct isp1301 *isp, u8 reg, u8 bits) argument 166 return i2c_smbus_write_byte_data(isp->client, reg + 0, bits); 170 isp1301_clear_bits(struct isp1301 *isp, u8 reg, u8 bits) argument 172 return i2c_smbus_write_byte_data(isp->client, reg + 1, bits);
|
H A D | phy-isp1301.c | 37 static int __isp1301_write(struct isp1301 *isp, u8 reg, u8 value, u8 clear) argument 39 return i2c_smbus_write_byte_data(isp->client, reg | clear, value); 42 static int isp1301_write(struct isp1301 *isp, u8 reg, u8 value) argument 44 return __isp1301_write(isp, reg, value, 0); 47 static int isp1301_clear(struct isp1301 *isp, u8 reg, u8 value) argument 49 return __isp1301_write(isp, reg, value, ISP1301_I2C_REG_CLEAR_ADDR);
|
H A D | phy-msm-usb.c | 170 pr_debug("reg (%s)\n", on ? "HPM" : "LPM"); 174 static int ulpi_read(struct usb_phy *phy, u32 reg) argument 180 writel(ULPI_RUN | ULPI_READ | ULPI_ADDR(reg), 199 static int ulpi_write(struct usb_phy *phy, u32 val, u32 reg) argument 206 ULPI_ADDR(reg) | ULPI_DATA(val),
|