/drivers/usb/musb/ |
D | musb_io.h | 44 static inline u16 musb_readw(const void __iomem *addr, unsigned offset) in musb_readw() argument 45 { return __raw_readw(addr + offset); } in musb_readw() 47 static inline u32 musb_readl(const void __iomem *addr, unsigned offset) in musb_readl() argument 48 { return __raw_readl(addr + offset); } in musb_readl() 51 static inline void musb_writew(void __iomem *addr, unsigned offset, u16 data) in musb_writew() argument 52 { __raw_writew(data, addr + offset); } in musb_writew() 54 static inline void musb_writel(void __iomem *addr, unsigned offset, u32 data) in musb_writel() argument 55 { __raw_writel(data, addr + offset); } in musb_writel() 63 static inline u8 musb_readb(const void __iomem *addr, unsigned offset) in musb_readb() argument 68 tmp = __raw_readw(addr + (offset & ~1)); in musb_readb() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-io.h | 38 static inline u32 cx18_raw_readl(struct cx18 *cx, const void __iomem *addr) in cx18_raw_readl() argument 40 return __raw_readl(addr); in cx18_raw_readl() 44 void cx18_raw_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel_noretry() argument 46 __raw_writel(val, addr); in cx18_raw_writel_noretry() 49 static inline void cx18_raw_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel() argument 53 cx18_raw_writel_noretry(cx, val, addr); in cx18_raw_writel() 54 if (val == cx18_raw_readl(cx, addr)) in cx18_raw_writel() 60 static inline u32 cx18_readl(struct cx18 *cx, const void __iomem *addr) in cx18_readl() argument 62 return readl(addr); in cx18_readl() 66 void cx18_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel_noretry() argument [all …]
|
/drivers/net/ethernet/8390/ |
D | mcf8390.c | 50 static inline u32 NE_PTR(u32 addr) in NE_PTR() argument 52 if (addr & 1) in NE_PTR() 53 return addr - 1 + NE2000_ODDOFFSET; in NE_PTR() 54 return addr; in NE_PTR() 57 static inline u32 NE_DATA_PTR(u32 addr) in NE_DATA_PTR() argument 59 return addr; in NE_DATA_PTR() 62 void ei_outb(u32 val, u32 addr) in ei_outb() argument 66 rp = (NE2000_BYTE *) NE_PTR(addr); in ei_outb() 71 u8 ei_inb(u32 addr) in ei_inb() argument 75 rp = (NE2000_BYTE *) NE_PTR(addr); in ei_inb() [all …]
|
/drivers/media/pci/pt1/ |
D | pt1.c | 60 dma_addr_t addr; member 65 dma_addr_t addr; member 345 static void pt1_free_page(struct pt1 *pt1, void *page, dma_addr_t addr) in pt1_free_page() argument 347 dma_free_coherent(&pt1->pdev->dev, PT1_PAGE_SIZE, page, addr); in pt1_free_page() 353 dma_addr_t addr; in pt1_alloc_page() local 355 page = dma_alloc_coherent(&pt1->pdev->dev, PT1_PAGE_SIZE, &addr, in pt1_alloc_page() 360 BUG_ON(addr & (PT1_PAGE_SIZE - 1)); in pt1_alloc_page() 361 BUG_ON(addr >> PT1_PAGE_SHIFT >> 31 >> 1); in pt1_alloc_page() 363 *addrp = addr; in pt1_alloc_page() 364 *pfnp = addr >> PT1_PAGE_SHIFT; in pt1_alloc_page() [all …]
|
/drivers/scsi/ |
D | initio.c | 367 static u16 initio_se2_rd(unsigned long base, u8 addr) in initio_se2_rd() argument 373 instr = (u8) (addr | 0x80); in initio_se2_rd() 402 static void initio_se2_wr(unsigned long base, u8 addr, u16 val) in initio_se2_wr() argument 408 instr = (u8) (addr | 0x40); in initio_se2_wr() 540 if (inb(host->addr + TUL_XStatus) & XPEND) { /* if DMA xfer is pending, abort DMA xfer */ in initio_stop_bm() 541 outb(TAX_X_ABT | TAX_X_CLR_FIFO, host->addr + TUL_XCmd); in initio_stop_bm() 543 while ((inb(host->addr + TUL_Int) & XABT) == 0) in initio_stop_bm() 546 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in initio_stop_bm() 559 outb(TSC_RST_BUS, host->addr + TUL_SCtrl0); in initio_reset_scsi() 561 while (!((host->jsint = inb(host->addr + TUL_SInt)) & TSS_SCSIRST_INT)) in initio_reset_scsi() [all …]
|
/drivers/gpu/drm/nouveau/core/subdev/i2c/ |
D | anx9805.c | 29 u32 addr; member 40 nv_wri2cr(mast, chan->addr, 0xa0, link_bw); in anx9805_train() 41 nv_wri2cr(mast, chan->addr, 0xa1, link_nr | (enh ? 0x80 : 0x00)); in anx9805_train() 42 nv_wri2cr(mast, chan->addr, 0xa2, 0x01); in anx9805_train() 43 nv_wri2cr(mast, chan->addr, 0xa8, 0x01); in anx9805_train() 46 while ((tmp = nv_rdi2cr(mast, chan->addr, 0xa8)) & 0x01) { in anx9805_train() 63 anx9805_aux(struct nouveau_i2c_port *port, u8 type, u32 addr, u8 *data, u8 size) in anx9805_aux() argument 75 nv_wri2cr(mast, chan->addr, 0xe4, 0x80); in anx9805_aux() 77 nv_wri2cr(mast, chan->addr, 0xf0 + i, data[i]); in anx9805_aux() 78 nv_wri2cr(mast, chan->addr, 0xe5, ((size - 1) << 4) | type); in anx9805_aux() [all …]
|
/drivers/staging/comedi/drivers/addi-data/ |
D | addi_eeprom.c | 90 unsigned short addr) in addi_eeprom_readw_93c76() argument 98 cmd = EE93C76_READ_CMD | (addr / 2); in addi_eeprom_readw_93c76() 130 unsigned short addr) in addi_eeprom_readw_nvram() argument 140 outb((addr + i) & 0xff, iobase + AMCC_OP_REG_MCSR_NVDATA); in addi_eeprom_readw_nvram() 146 outb(((addr + i) >> 8) & 0xff, in addi_eeprom_readw_nvram() 167 unsigned short addr) in addi_eeprom_readw() argument 172 addr += NVRAM_USER_DATA_START; in addi_eeprom_readw() 175 val = addi_eeprom_readw_nvram(iobase, addr); in addi_eeprom_readw() 178 val = addi_eeprom_readw_93c76(iobase, addr); in addi_eeprom_readw() 185 unsigned short addr) in addi_eeprom_read_di_info() argument [all …]
|
/drivers/media/common/b2c2/ |
D | flexcop-sram.c | 75 static void flexcop_sram_write(struct adapter *adapter, u32 bank, u32 addr, u8 *buf, u32 len) 81 command = bank | addr | 0x04000000 | (*buf << 0x10); 96 addr++; 100 static void flex_sram_read(struct adapter *adapter, u32 bank, u32 addr, u8 *buf, u32 len) 106 command = bank | addr | 0x04008000; 134 addr++; 139 static void sram_write_chunk(struct adapter *adapter, u32 addr, u8 *buf, u16 len) 146 bank = (addr & 0x18000) << 0x0d; 150 if ((addr >> 0x0f) == 0) 155 flex_sram_write(adapter, bank, addr & 0x7fff, buf, len); [all …]
|
/drivers/net/dsa/ |
D | mv88e6060.c | 22 static int reg_read(struct dsa_switch *ds, int addr, int reg) in reg_read() argument 24 return mdiobus_read(ds->master_mii_bus, ds->pd->sw_addr + addr, reg); in reg_read() 27 #define REG_READ(addr, reg) \ argument 31 __ret = reg_read(ds, addr, reg); \ 38 static int reg_write(struct dsa_switch *ds, int addr, int reg, u16 val) in reg_write() argument 40 return mdiobus_write(ds->master_mii_bus, ds->pd->sw_addr + addr, in reg_write() 44 #define REG_WRITE(addr, reg, val) \ argument 48 __ret = reg_write(ds, addr, reg, val); \ 119 int addr = REG_PORT(p); in mv88e6060_setup_port() local 126 REG_WRITE(addr, 0x04, dsa_is_cpu_port(ds, p) ? 0x4103 : 0x0003); in mv88e6060_setup_port() [all …]
|
/drivers/staging/rtl8712/ |
D | rtl8712_io.c | 37 u8 r8712_read8(struct _adapter *adapter, u32 addr) in r8712_read8() argument 41 u8 (*_read8)(struct intf_hdl *pintfhdl, u32 addr); in r8712_read8() 45 r_val = _read8(pintfhdl, addr); in r8712_read8() 49 u16 r8712_read16(struct _adapter *adapter, u32 addr) in r8712_read16() argument 53 u16 (*_read16)(struct intf_hdl *pintfhdl, u32 addr); in r8712_read16() 57 r_val = _read16(pintfhdl, addr); in r8712_read16() 61 u32 r8712_read32(struct _adapter *adapter, u32 addr) in r8712_read32() argument 65 u32 (*_read32)(struct intf_hdl *pintfhdl, u32 addr); in r8712_read32() 69 r_val = _read32(pintfhdl, addr); in r8712_read32() 73 void r8712_write8(struct _adapter *adapter, u32 addr, u8 val) in r8712_write8() argument [all …]
|
/drivers/staging/cxt1e1/ |
D | pmc93x6_eeprom.c | 165 eeprom_put_byte (long addr, long data, int count) in eeprom_put_byte() argument 176 pci_write_32 ((u_int32_t *) addr, output); /* Output it */ in eeprom_put_byte() 190 eeprom_get_byte (long addr) in eeprom_get_byte() argument 202 input = pci_read_32 ((u_int32_t *) addr); in eeprom_get_byte() 209 input = pci_read_32 ((u_int32_t *) addr); in eeprom_get_byte() 228 disable_pmc_eeprom (long addr) in disable_pmc_eeprom() argument 230 eeprom_put_byte (addr, EPROM_EWDS, SIZE_ADDR_OP); in disable_pmc_eeprom() 232 pci_write_32 ((u_int32_t *) addr, 0); /* this removes Chip Select in disable_pmc_eeprom() 245 enable_pmc_eeprom (long addr) in enable_pmc_eeprom() argument 247 eeprom_put_byte (addr, EPROM_EWEN, SIZE_ADDR_OP); in enable_pmc_eeprom() [all …]
|
/drivers/sh/intc/ |
D | access.c | 75 static unsigned long test_8(unsigned long addr, unsigned long h, in test_8() argument 78 void __iomem *ptr = (void __iomem *)addr; in test_8() 82 static unsigned long test_16(unsigned long addr, unsigned long h, in test_16() argument 85 void __iomem *ptr = (void __iomem *)addr; in test_16() 89 static unsigned long test_32(unsigned long addr, unsigned long h, in test_32() argument 92 void __iomem *ptr = (void __iomem *)addr; in test_32() 96 static unsigned long write_8(unsigned long addr, unsigned long h, in write_8() argument 99 void __iomem *ptr = (void __iomem *)addr; in write_8() 105 static unsigned long write_16(unsigned long addr, unsigned long h, in write_16() argument 108 void __iomem *ptr = (void __iomem *)addr; in write_16() [all …]
|
/drivers/staging/csr/ |
D | csr_wifi_hip_card_sdio_mem.c | 56 static CsrResult retrying_read8(card_t *card, s16 funcnum, u32 addr, u8 *pdata) in retrying_read8() argument 69 unifi_debug_log_to_buf("r0@%02X", addr); in retrying_read8() 71 csrResult = CsrSdioF0Read8(sdio, addr, pdata); in retrying_read8() 81 unifi_debug_log_to_buf("r@%02X", addr); in retrying_read8() 83 csrResult = CsrSdioRead8(sdio, addr, pdata); in retrying_read8() 111 unifi_trace(card->ospriv, UDBG2, "retryable SDIO error reading F%d 0x%lX\n", funcnum, addr); in retrying_read8() 122 addr, retries - 1); in retrying_read8() 131 static CsrResult retrying_write8(card_t *card, s16 funcnum, u32 addr, u8 data) in retrying_write8() argument 144 unifi_debug_log_to_buf("w0@%02X=%X", addr, data); in retrying_write8() 146 csrResult = CsrSdioF0Write8(sdio, addr, data); in retrying_write8() [all …]
|
/drivers/s390/cio/ |
D | ioasm.h | 28 static inline int stsch_err(struct subchannel_id schid, struct schib *addr) in stsch_err() argument 39 : "+d" (ccode), "=m" (*addr) in stsch_err() 40 : "d" (reg1), "a" (addr) in stsch_err() 45 static inline int msch(struct subchannel_id schid, struct schib *addr) in msch() argument 55 : "d" (reg1), "a" (addr), "m" (*addr) in msch() 60 static inline int msch_err(struct subchannel_id schid, struct schib *addr) in msch_err() argument 72 : "d" (reg1), "a" (addr), "m" (*addr) in msch_err() 77 static inline int tsch(struct subchannel_id schid, struct irb *addr) in tsch() argument 86 : "=d" (ccode), "=m" (*addr) in tsch() 87 : "d" (reg1), "a" (addr) in tsch() [all …]
|
/drivers/staging/tidspbridge/rmgr/ |
D | rmm.c | 59 u32 addr; /* DSP address of memory block */ member 68 u32 addr; /* Start of memory section */ member 85 static bool free_block(struct rmm_target_obj *target, u32 segid, u32 addr, 96 u32 addr; in rmm_alloc() local 111 addr = *dsp_address; in rmm_alloc() 115 if (addr <= sect->addr) { in rmm_alloc() 117 if ((addr + size > sect->addr) || (prev_sect && in rmm_alloc() 118 (prev_sect->addr + in rmm_alloc() 120 addr))) { in rmm_alloc() 133 new_sect->addr = addr; in rmm_alloc() [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_dma.c | 60 static void qib_dma_unmap_single(struct ib_device *dev, u64 addr, size_t size, in qib_dma_unmap_single() argument 70 u64 addr; in qib_dma_map_page() local 75 addr = BAD_DMA_ADDRESS; in qib_dma_map_page() 79 addr = (u64) page_address(page); in qib_dma_map_page() 80 if (addr) in qib_dma_map_page() 81 addr += offset; in qib_dma_map_page() 85 return addr; in qib_dma_map_page() 88 static void qib_dma_unmap_page(struct ib_device *dev, u64 addr, size_t size, in qib_dma_unmap_page() argument 98 u64 addr; in qib_map_sg() local 105 addr = (u64) page_address(sg_page(sg)); in qib_map_sg() [all …]
|
/drivers/infiniband/hw/ipath/ |
D | ipath_dma.c | 64 u64 addr, size_t size, in ipath_dma_unmap_single() argument 76 u64 addr; in ipath_dma_map_page() local 81 addr = BAD_DMA_ADDRESS; in ipath_dma_map_page() 85 addr = (u64) page_address(page); in ipath_dma_map_page() 86 if (addr) in ipath_dma_map_page() 87 addr += offset; in ipath_dma_map_page() 91 return addr; in ipath_dma_map_page() 95 u64 addr, size_t size, in ipath_dma_unmap_page() argument 105 u64 addr; in ipath_map_sg() local 112 addr = (u64) page_address(sg_page(sg)); in ipath_map_sg() [all …]
|
/drivers/media/usb/em28xx/ |
D | em28xx-i2c.c | 49 static int em2800_i2c_send_bytes(struct em28xx *dev, u8 addr, u8 *buf, u16 len) in em2800_i2c_send_bytes() argument 60 b2[4] = addr; in em2800_i2c_send_bytes() 73 addr, ret); in em2800_i2c_send_bytes() 91 em28xx_warn("write to i2c device at 0x%x timed out\n", addr); in em2800_i2c_send_bytes() 99 static int em2800_i2c_recv_bytes(struct em28xx *dev, u8 addr, u8 *buf, u16 len) in em2800_i2c_recv_bytes() argument 111 buf2[0] = addr; in em2800_i2c_recv_bytes() 115 addr, ret); in em2800_i2c_recv_bytes() 135 em28xx_warn("read from i2c device at 0x%x timed out\n", addr); in em2800_i2c_recv_bytes() 141 addr, ret); in em2800_i2c_recv_bytes() 154 static int em2800_i2c_check_for_device(struct em28xx *dev, u8 addr) in em2800_i2c_check_for_device() argument [all …]
|
/drivers/net/wireless/brcm80211/brcmfmac/ |
D | bcmsdh.c | 167 u8 addr[3]; in brcmf_sdcard_set_sbaddr_window() local 170 addr[0] = (address >> 8) & SBSDIO_SBADDRLOW_MASK; in brcmf_sdcard_set_sbaddr_window() 171 addr[1] = (address >> 16) & SBSDIO_SBADDRMID_MASK; in brcmf_sdcard_set_sbaddr_window() 172 addr[2] = (address >> 24) & SBSDIO_SBADDRHIGH_MASK; in brcmf_sdcard_set_sbaddr_window() 181 &addr[i]); in brcmf_sdcard_set_sbaddr_window() 195 brcmf_sdio_regrw_helper(struct brcmf_sdio_dev *sdiodev, u32 addr, in brcmf_sdio_regrw_helper() argument 209 if ((addr & ~REG_F0_REG_MASK) == 0) { in brcmf_sdio_regrw_helper() 212 } else if ((addr & ~REG_F1_MISC_MASK) == 0) { in brcmf_sdio_regrw_helper() 220 bar = addr & ~SBSDIO_SB_OFT_ADDR_MASK; in brcmf_sdio_regrw_helper() 229 addr &= SBSDIO_SB_OFT_ADDR_MASK; in brcmf_sdio_regrw_helper() [all …]
|
/drivers/uwb/ |
D | address.c | 204 struct uwb_mac_addr *addr) { in uwb_rc_mac_addr_get() argument 205 return uwb_rc_addr_get(rc, addr, UWB_ADDR_MAC); in uwb_rc_mac_addr_get() 212 struct uwb_dev_addr *addr) { in uwb_rc_dev_addr_get() argument 213 return uwb_rc_addr_get(rc, addr, UWB_ADDR_DEV); in uwb_rc_dev_addr_get() 220 const struct uwb_mac_addr *addr) in uwb_rc_mac_addr_set() argument 224 result = uwb_rc_addr_set(rc, addr, UWB_ADDR_MAC); in uwb_rc_mac_addr_set() 232 const struct uwb_dev_addr *addr) in uwb_rc_dev_addr_set() argument 236 result = uwb_rc_addr_set(rc, addr, UWB_ADDR_DEV); in uwb_rc_dev_addr_set() 237 rc->uwb_dev.dev_addr = *addr; in uwb_rc_dev_addr_set() 246 struct uwb_mac_addr *addr = _addr; in __uwb_mac_addr_assigned_check() local [all …]
|
/drivers/mtd/tests/ |
D | mtd_subpagetest.c | 58 loff_t addr = ebnum * mtd->erasesize; in erase_eraseblock() local 62 ei.addr = addr; in erase_eraseblock() 102 loff_t addr = ebnum * mtd->erasesize; in write_eraseblock() local 105 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock() 108 (long long)addr); in write_eraseblock() 116 addr += subpgsize; in write_eraseblock() 119 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock() 122 (long long)addr); in write_eraseblock() 137 loff_t addr = ebnum * mtd->erasesize; in write_eraseblock2() local 140 if (addr + (subpgsize * k) > (ebnum + 1) * mtd->erasesize) in write_eraseblock2() [all …]
|
/drivers/mtd/nand/ |
D | atmel_nand_ecc.h | 114 #define pmecc_readl_relaxed(addr, reg) \ argument 115 readl_relaxed((addr) + ATMEL_PMECC_##reg) 117 #define pmecc_writel(addr, reg, value) \ argument 118 writel((value), (addr) + ATMEL_PMECC_##reg) 120 #define pmecc_readb_ecc_relaxed(addr, sector, n) \ argument 121 readb_relaxed((addr) + ATMEL_PMECC_ECCx + ((sector) * 0x40) + (n)) 123 #define pmecc_readl_rem_relaxed(addr, sector, n) \ argument 124 readl_relaxed((addr) + ATMEL_PMECC_REMx + ((sector) * 0x40) + ((n) * 4)) 126 #define pmerrloc_readl_relaxed(addr, reg) \ argument 127 readl_relaxed((addr) + ATMEL_PMERRLOC_##reg) [all …]
|
/drivers/input/keyboard/ |
D | goldfish_rotary.c | 41 void __iomem *addr; member 50 type = __raw_readl(edev->addr + REG_READ); in rotary_interrupt() 51 code = __raw_readl(edev->addr + REG_READ); in rotary_interrupt() 52 value = __raw_readl(edev->addr + REG_READ); in rotary_interrupt() 61 void __iomem *addr = edev->addr; in rotary_import_bits() local 66 __raw_writel(PAGE_EVBITS | type, addr + REG_SET_PAGE); in rotary_import_bits() 68 size = __raw_readl(addr + REG_LEN) * 8; in rotary_import_bits() 72 addr += REG_DATA; in rotary_import_bits() 74 val = __raw_readb(addr++); in rotary_import_bits() 84 void __iomem *addr = edev->addr; in rotary_import_abs_params() local [all …]
|
/drivers/net/wireless/ti/wl1251/ |
D | io.c | 41 static int wl1251_translate_reg_addr(struct wl1251 *wl, int addr) in wl1251_translate_reg_addr() argument 46 if (addr < REGISTERS_BASE) { in wl1251_translate_reg_addr() 48 if (addr >= ACX_REG_TABLE_LEN) { in wl1251_translate_reg_addr() 49 wl1251_error("address out of range (%d)", addr); in wl1251_translate_reg_addr() 52 addr = wl1251_io_reg_table[addr]; in wl1251_translate_reg_addr() 55 return addr - wl->physical_reg_addr + wl->virtual_reg_addr; in wl1251_translate_reg_addr() 58 static int wl1251_translate_mem_addr(struct wl1251 *wl, int addr) in wl1251_translate_mem_addr() argument 60 return addr - wl->physical_mem_addr + wl->virtual_mem_addr; in wl1251_translate_mem_addr() 63 void wl1251_mem_read(struct wl1251 *wl, int addr, void *buf, size_t len) in wl1251_mem_read() argument 67 physical = wl1251_translate_mem_addr(wl, addr); in wl1251_mem_read() [all …]
|
/drivers/gpu/drm/nouveau/core/include/core/ |
D | subdev.h | 60 nv_rd08(void *obj, u32 addr) in nv_rd08() argument 63 u8 data = ioread8(subdev->mmio + addr); in nv_rd08() 64 nv_spam(subdev, "nv_rd08 0x%06x 0x%02x\n", addr, data); in nv_rd08() 69 nv_rd16(void *obj, u32 addr) in nv_rd16() argument 72 u16 data = ioread16_native(subdev->mmio + addr); in nv_rd16() 73 nv_spam(subdev, "nv_rd16 0x%06x 0x%04x\n", addr, data); in nv_rd16() 78 nv_rd32(void *obj, u32 addr) in nv_rd32() argument 81 u32 data = ioread32_native(subdev->mmio + addr); in nv_rd32() 82 nv_spam(subdev, "nv_rd32 0x%06x 0x%08x\n", addr, data); in nv_rd32() 87 nv_wr08(void *obj, u32 addr, u8 data) in nv_wr08() argument [all …]
|