/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | anx9805.c | 33 u8 addr; member 39 u8 addr; member 53 tmp = nvkm_rdi2cr(adap, pad->addr, 0x07) & ~0x10; in anx9805_bus_xfer() 54 nvkm_wri2cr(adap, pad->addr, 0x07, tmp | 0x10); in anx9805_bus_xfer() 55 nvkm_wri2cr(adap, pad->addr, 0x07, tmp); in anx9805_bus_xfer() 56 nvkm_wri2cr(adap, bus->addr, 0x43, 0x05); in anx9805_bus_xfer() 60 if ( (msg->flags & I2C_M_RD) && msg->addr == 0x50) { in anx9805_bus_xfer() 61 nvkm_wri2cr(adap, bus->addr, 0x40, msg->addr << 1); in anx9805_bus_xfer() 62 nvkm_wri2cr(adap, bus->addr, 0x41, seg); in anx9805_bus_xfer() 63 nvkm_wri2cr(adap, bus->addr, 0x42, off); in anx9805_bus_xfer() [all …]
|
/drivers/net/wireless/realtek/rtw88/ |
D | hci.h | 24 u8 (*read8)(struct rtw_dev *rtwdev, u32 addr); 25 u16 (*read16)(struct rtw_dev *rtwdev, u32 addr); 26 u32 (*read32)(struct rtw_dev *rtwdev, u32 addr); 27 void (*write8)(struct rtw_dev *rtwdev, u32 addr, u8 val); 28 void (*write16)(struct rtw_dev *rtwdev, u32 addr, u16 val); 29 void (*write32)(struct rtw_dev *rtwdev, u32 addr, u32 val); 86 static inline u8 rtw_read8(struct rtw_dev *rtwdev, u32 addr) in rtw_read8() argument 88 return rtwdev->hci.ops->read8(rtwdev, addr); in rtw_read8() 91 static inline u16 rtw_read16(struct rtw_dev *rtwdev, u32 addr) in rtw_read16() argument 93 return rtwdev->hci.ops->read16(rtwdev, addr); in rtw_read16() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-io.h | 24 static inline u32 cx18_raw_readl(struct cx18 *cx, const void __iomem *addr) in cx18_raw_readl() argument 26 return __raw_readl(addr); in cx18_raw_readl() 30 void cx18_raw_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel_noretry() argument 32 __raw_writel(val, addr); in cx18_raw_writel_noretry() 35 static inline void cx18_raw_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel() argument 39 cx18_raw_writel_noretry(cx, val, addr); in cx18_raw_writel() 40 if (val == cx18_raw_readl(cx, addr)) in cx18_raw_writel() 46 static inline u32 cx18_readl(struct cx18 *cx, const void __iomem *addr) in cx18_readl() argument 48 return readl(addr); in cx18_readl() 52 void cx18_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel_noretry() argument [all …]
|
/drivers/iio/imu/st_lsm6dsx/ |
D | st_lsm6dsx_core.c | 95 .addr = 0x22, 99 .addr = 0x22, 103 .addr = 0x22, 129 .addr = 0x20, 142 .addr = 0x10, 157 .addr = 0x20, 168 .addr = 0x10, 180 .addr = 0x0c, 184 .addr = 0x0d, 188 .addr = 0x22, [all …]
|
/drivers/net/ethernet/8390/ |
D | mcf8390.c | 49 static inline u32 NE_PTR(u32 addr) in NE_PTR() argument 51 if (addr & 1) in NE_PTR() 52 return addr - 1 + NE2000_ODDOFFSET; in NE_PTR() 53 return addr; in NE_PTR() 56 static inline u32 NE_DATA_PTR(u32 addr) in NE_DATA_PTR() argument 58 return addr; in NE_DATA_PTR() 61 void ei_outb(u32 val, u32 addr) in ei_outb() argument 65 rp = (NE2000_BYTE *) NE_PTR(addr); in ei_outb() 70 u8 ei_inb(u32 addr) in ei_inb() argument 74 rp = (NE2000_BYTE *) NE_PTR(addr); in ei_inb() [all …]
|
/drivers/soc/mediatek/ |
D | mtk-mmsys.c | 106 unsigned int *addr) in mtk_mmsys_ddp_mout_en() argument 111 *addr = DISP_REG_CONFIG_DISP_OVL0_MOUT_EN; in mtk_mmsys_ddp_mout_en() 114 *addr = DISP_REG_CONFIG_DISP_OVL_MOUT_EN; in mtk_mmsys_ddp_mout_en() 117 *addr = DISP_REG_CONFIG_DISP_OD_MOUT_EN; in mtk_mmsys_ddp_mout_en() 120 *addr = DISP_REG_CONFIG_DISP_UFOE_MOUT_EN; in mtk_mmsys_ddp_mout_en() 123 *addr = DISP_REG_CONFIG_DISP_OVL1_MOUT_EN; in mtk_mmsys_ddp_mout_en() 126 *addr = DISP_REG_CONFIG_DISP_GAMMA_MOUT_EN; in mtk_mmsys_ddp_mout_en() 129 *addr = DISP_REG_CONFIG_DISP_OD_MOUT_EN; in mtk_mmsys_ddp_mout_en() 132 *addr = DISP_REG_CONFIG_DISP_RDMA0_SOUT_EN; in mtk_mmsys_ddp_mout_en() 135 *addr = DISP_REG_CONFIG_DISP_RDMA0_SOUT_EN; in mtk_mmsys_ddp_mout_en() [all …]
|
/drivers/net/ethernet/wiznet/ |
D | w5100-spi.c | 26 static int w5100_spi_read(struct net_device *ndev, u32 addr) in w5100_spi_read() argument 29 u8 cmd[3] = { W5100_SPI_READ_OPCODE, addr >> 8, addr & 0xff }; in w5100_spi_read() 38 static int w5100_spi_write(struct net_device *ndev, u32 addr, u8 data) in w5100_spi_write() argument 41 u8 cmd[4] = { W5100_SPI_WRITE_OPCODE, addr >> 8, addr & 0xff, data}; in w5100_spi_write() 46 static int w5100_spi_read16(struct net_device *ndev, u32 addr) in w5100_spi_read16() argument 51 ret = w5100_spi_read(ndev, addr); in w5100_spi_read16() 55 ret = w5100_spi_read(ndev, addr + 1); in w5100_spi_read16() 60 static int w5100_spi_write16(struct net_device *ndev, u32 addr, u16 data) in w5100_spi_write16() argument 64 ret = w5100_spi_write(ndev, addr, data >> 8); in w5100_spi_write16() 68 return w5100_spi_write(ndev, addr + 1, data & 0xff); in w5100_spi_write16() [all …]
|
/drivers/staging/rtl8723bs/include/ |
D | rtw_io.h | 80 u8 (*_read8)(struct intf_hdl *pintfhdl, u32 addr); 81 u16 (*_read16)(struct intf_hdl *pintfhdl, u32 addr); 82 u32 (*_read32)(struct intf_hdl *pintfhdl, u32 addr); 84 int (*_write8)(struct intf_hdl *pintfhdl, u32 addr, u8 val); 85 int (*_write16)(struct intf_hdl *pintfhdl, u32 addr, u16 val); 86 int (*_write32)(struct intf_hdl *pintfhdl, u32 addr, u32 val); 87 int (*_writeN)(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata); 89 int (*_write8_async)(struct intf_hdl *pintfhdl, u32 addr, u8 val); 90 int (*_write16_async)(struct intf_hdl *pintfhdl, u32 addr, u16 val); 91 int (*_write32_async)(struct intf_hdl *pintfhdl, u32 addr, u32 val); [all …]
|
/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_timing_generator_v.c | 102 uint32_t addr = mmCRTCV_BLANK_CONTROL; in dce110_timing_generator_v_blank_crtc() local 103 uint32_t value = dm_read_reg(tg->ctx, addr); in dce110_timing_generator_v_blank_crtc() 117 dm_write_reg(tg->ctx, addr, value); in dce110_timing_generator_v_blank_crtc() 122 uint32_t addr = mmCRTCV_BLANK_CONTROL; in dce110_timing_generator_v_unblank_crtc() local 123 uint32_t value = dm_read_reg(tg->ctx, addr); in dce110_timing_generator_v_unblank_crtc() 137 dm_write_reg(tg->ctx, addr, value); in dce110_timing_generator_v_unblank_crtc() 143 uint32_t addr = 0; in dce110_timing_generator_v_is_in_vertical_blank() local 147 addr = mmCRTCV_STATUS; in dce110_timing_generator_v_is_in_vertical_blank() 148 value = dm_read_reg(tg->ctx, addr); in dce110_timing_generator_v_is_in_vertical_blank() 256 uint32_t addr = 0; in dce110_timing_generator_v_program_blanking() local [all …]
|
/drivers/iio/accel/ |
D | st_accel_core.c | 108 .addr = 0x20, 122 .addr = 0x20, 127 .addr = ST_SENSORS_DEFAULT_AXIS_ADDR, 131 .addr = 0x23, 157 .addr = 0x23, 162 .addr = 0x22, 168 .addr = ST_SENSORS_DEFAULT_STAT_ADDR, 173 .addr = 0x23, 190 .addr = 0x20, 200 .addr = 0x20, [all …]
|
/drivers/staging/media/atomisp/pci/ |
D | ia_css_device_access.c | 33 ia_css_device_load_uint8(const hrt_address addr) in ia_css_device_load_uint8() argument 35 return my_env.load_8(addr); in ia_css_device_load_uint8() 39 ia_css_device_load_uint16(const hrt_address addr) in ia_css_device_load_uint16() argument 41 return my_env.load_16(addr); in ia_css_device_load_uint16() 45 ia_css_device_load_uint32(const hrt_address addr) in ia_css_device_load_uint32() argument 47 return my_env.load_32(addr); in ia_css_device_load_uint32() 51 ia_css_device_load_uint64(const hrt_address addr) in ia_css_device_load_uint64() argument 55 (void)addr; in ia_css_device_load_uint64() 60 ia_css_device_store_uint8(const hrt_address addr, const uint8_t data) in ia_css_device_store_uint8() argument 62 my_env.store_8(addr, data); in ia_css_device_store_uint8() [all …]
|
/drivers/s390/cio/ |
D | ioasm.c | 16 static inline int __stsch(struct subchannel_id schid, struct schib *addr) in __stsch() argument 27 : "+d" (ccode), "=m" (*addr) in __stsch() 28 : "d" (reg1), "a" (addr) in __stsch() 33 int stsch(struct subchannel_id schid, struct schib *addr) in stsch() argument 37 ccode = __stsch(schid, addr); in stsch() 38 trace_s390_cio_stsch(schid, addr, ccode); in stsch() 44 static inline int __msch(struct subchannel_id schid, struct schib *addr) in __msch() argument 56 : "d" (reg1), "a" (addr), "m" (*addr) in __msch() 61 int msch(struct subchannel_id schid, struct schib *addr) in msch() argument 65 ccode = __msch(schid, addr); in msch() [all …]
|
/drivers/scsi/ |
D | initio.c | 337 static u16 initio_se2_rd(unsigned long base, u8 addr) in initio_se2_rd() argument 343 instr = (u8) (addr | 0x80); in initio_se2_rd() 372 static void initio_se2_wr(unsigned long base, u8 addr, u16 val) in initio_se2_wr() argument 378 instr = (u8) (addr | 0x40); in initio_se2_wr() 510 if (inb(host->addr + TUL_XStatus) & XPEND) { /* if DMA xfer is pending, abort DMA xfer */ in initio_stop_bm() 511 outb(TAX_X_ABT | TAX_X_CLR_FIFO, host->addr + TUL_XCmd); in initio_stop_bm() 513 while ((inb(host->addr + TUL_Int) & XABT) == 0) in initio_stop_bm() 516 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in initio_stop_bm() 529 outb(TSC_RST_BUS, host->addr + TUL_SCtrl0); in initio_reset_scsi() 531 while (!((host->jsint = inb(host->addr + TUL_SInt)) & TSS_SCSIRST_INT)) in initio_reset_scsi() [all …]
|
/drivers/staging/rtl8723bs/hal/ |
D | sdio_ops.c | 25 u32 addr, in HalSdioGetCmdAddr8723BSdio() argument 31 *cmdaddr = ((SDIO_LOCAL_DEVICE_ID << 13) | (addr & SDIO_LOCAL_MSK)); in HalSdioGetCmdAddr8723BSdio() 35 *cmdaddr = ((WLAN_IOREG_DEVICE_ID << 13) | (addr & WLAN_IOREG_MSK)); in HalSdioGetCmdAddr8723BSdio() 39 *cmdaddr = ((WLAN_TX_HIQ_DEVICE_ID << 13) | (addr & WLAN_FIFO_MSK)); in HalSdioGetCmdAddr8723BSdio() 43 *cmdaddr = ((WLAN_TX_MIQ_DEVICE_ID << 13) | (addr & WLAN_FIFO_MSK)); in HalSdioGetCmdAddr8723BSdio() 47 *cmdaddr = ((WLAN_TX_LOQ_DEVICE_ID << 13) | (addr & WLAN_FIFO_MSK)); in HalSdioGetCmdAddr8723BSdio() 51 *cmdaddr = ((WLAN_RX0FF_DEVICE_ID << 13) | (addr & WLAN_RX0FF_MSK)); in HalSdioGetCmdAddr8723BSdio() 59 static u8 get_deviceid(u32 addr) in get_deviceid() argument 64 pseudo_id = (u16)(addr >> 16); in get_deviceid() 102 static u32 _cvrt2ftaddr(const u32 addr, u8 *pdevice_id, u16 *poffset) in _cvrt2ftaddr() argument [all …]
|
/drivers/media/common/b2c2/ |
D | flexcop-sram.c | 76 static void flexcop_sram_write(struct adapter *adapter, u32 bank, u32 addr, u8 *buf, u32 len) 82 command = bank | addr | 0x04000000 | (*buf << 0x10); 97 addr++; 101 static void flex_sram_read(struct adapter *adapter, u32 bank, u32 addr, u8 *buf, u32 len) 107 command = bank | addr | 0x04008000; 135 addr++; 140 static void sram_write_chunk(struct adapter *adapter, u32 addr, u8 *buf, u16 len) 147 bank = (addr & 0x18000) << 0x0d; 151 if ((addr >> 0x0f) == 0) 156 flex_sram_write(adapter, bank, addr & 0x7fff, buf, len); [all …]
|
/drivers/s390/net/ |
D | qeth_l3.h | 36 __be32 addr; member 40 struct in6_addr addr; member 46 static inline void qeth_l3_init_ipaddr(struct qeth_ipaddr *addr, in qeth_l3_init_ipaddr() argument 50 memset(addr, 0, sizeof(*addr)); in qeth_l3_init_ipaddr() 51 addr->type = type; in qeth_l3_init_ipaddr() 52 addr->proto = proto; in qeth_l3_init_ipaddr() 53 addr->disp_flag = QETH_DISP_ADDR_DO_NOTHING; in qeth_l3_init_ipaddr() 54 addr->ref_counter = 1; in qeth_l3_init_ipaddr() 63 return ipv6_addr_equal(&a1->u.a6.addr, &a2->u.a6.addr); in qeth_l3_addr_match_ip() 64 return a1->u.a4.addr == a2->u.a4.addr; in qeth_l3_addr_match_ip() [all …]
|
D | qeth_l3_main.c | 45 int qeth_l3_ipaddr_to_string(enum qeth_prot_versions proto, const u8 *addr, in qeth_l3_ipaddr_to_string() argument 49 return sprintf(buf, "%pI4", addr); in qeth_l3_ipaddr_to_string() 51 return sprintf(buf, "%pI6", addr); in qeth_l3_ipaddr_to_string() 58 struct qeth_ipaddr *addr; in qeth_l3_find_addr_by_ip() local 61 hash_for_each_possible(card->rx_mode_addrs, addr, hnode, key) in qeth_l3_find_addr_by_ip() 62 if (qeth_l3_addr_match_ip(addr, query)) in qeth_l3_find_addr_by_ip() 63 return addr; in qeth_l3_find_addr_by_ip() 65 hash_for_each_possible(card->ip_htable, addr, hnode, key) in qeth_l3_find_addr_by_ip() 66 if (qeth_l3_addr_match_ip(addr, query)) in qeth_l3_find_addr_by_ip() 67 return addr; in qeth_l3_find_addr_by_ip() [all …]
|
/drivers/net/wan/ |
D | slic_ds26522.c | 37 static void slic_write(struct spi_device *spi, u16 addr, in slic_write() argument 42 addr = bitrev16(addr) >> 1; in slic_write() 44 temp[0] = (u8)((addr >> 8) & 0x7f); in slic_write() 45 temp[1] = (u8)(addr & 0xfe); in slic_write() 52 static u8 slic_read(struct spi_device *spi, u16 addr) in slic_read() argument 57 addr = bitrev16(addr) >> 1; in slic_read() 58 temp[0] = (u8)(((addr >> 8) & 0x7f) | 0x80); in slic_read() 59 temp[1] = (u8)(addr & 0xfe); in slic_read() 141 u16 addr; in slic_ds26522_init_configure() local 173 for (addr = DS26522_RF_ADDR_START; addr <= DS26522_RF_ADDR_END; in slic_ds26522_init_configure() [all …]
|
/drivers/net/dsa/mv88e6xxx/ |
D | global2_avb.c | 93 int port, int addr, u16 *data, in mv88e6352_g2_avb_port_ptp_read() argument 99 addr; in mv88e6352_g2_avb_port_ptp_read() 105 int port, int addr, u16 data) in mv88e6352_g2_avb_port_ptp_write() argument 108 (MV88E6352_G2_AVB_CMD_BLOCK_PTP << 5) | addr; in mv88e6352_g2_avb_port_ptp_write() 113 static int mv88e6352_g2_avb_ptp_read(struct mv88e6xxx_chip *chip, int addr, in mv88e6352_g2_avb_ptp_read() argument 118 addr, data, len); in mv88e6352_g2_avb_ptp_read() 121 static int mv88e6352_g2_avb_ptp_write(struct mv88e6xxx_chip *chip, int addr, in mv88e6352_g2_avb_ptp_write() argument 126 addr, data); in mv88e6352_g2_avb_ptp_write() 129 static int mv88e6352_g2_avb_tai_read(struct mv88e6xxx_chip *chip, int addr, in mv88e6352_g2_avb_tai_read() argument 134 addr, data, len); in mv88e6352_g2_avb_tai_read() [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/pci/controller/ |
D | pci-thunder-ecam.c | 32 void __iomem *addr; in handle_ea_bar() local 43 addr = bus->ops->map_bus(bus, devfn, bar); /* BAR 0 */ in handle_ea_bar() 44 if (!addr) { in handle_ea_bar() 48 v = readl(addr); in handle_ea_bar() 58 addr = bus->ops->map_bus(bus, devfn, bar); /* BAR 0 */ in handle_ea_bar() 59 if (!addr) { in handle_ea_bar() 63 barl_orig = readl(addr + 0); in handle_ea_bar() 64 writel(0xffffffff, addr + 0); in handle_ea_bar() 65 barl_rb = readl(addr + 0); in handle_ea_bar() 66 writel(barl_orig, addr + 0); in handle_ea_bar() [all …]
|
/drivers/media/pci/pt1/ |
D | pt1.c | 54 dma_addr_t addr; member 59 dma_addr_t addr; member 205 msg[0].addr = cl->addr; in config_demod() 210 msg[1].addr = cl->addr; in config_demod() 532 static void pt1_free_page(struct pt1 *pt1, void *page, dma_addr_t addr) in pt1_free_page() argument 534 dma_free_coherent(&pt1->pdev->dev, PT1_PAGE_SIZE, page, addr); in pt1_free_page() 540 dma_addr_t addr; in pt1_alloc_page() local 542 page = dma_alloc_coherent(&pt1->pdev->dev, PT1_PAGE_SIZE, &addr, in pt1_alloc_page() 547 BUG_ON(addr & (PT1_PAGE_SIZE - 1)); in pt1_alloc_page() 548 BUG_ON(addr >> PT1_PAGE_SHIFT >> 31 >> 1); in pt1_alloc_page() [all …]
|
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_if.c | 43 u32 msix_ctrl, addr; in hinic_msix_attr_set() local 54 addr = HINIC_CSR_MSIX_CTRL_ADDR(msix_index); in hinic_msix_attr_set() 56 hinic_hwif_write_reg(hwif, addr, msix_ctrl); in hinic_msix_attr_set() 77 u32 addr, val; in hinic_msix_attr_get() local 82 addr = HINIC_CSR_MSIX_CTRL_ADDR(msix_index); in hinic_msix_attr_get() 83 val = hinic_hwif_read_reg(hwif, addr); in hinic_msix_attr_get() 102 u32 msix_ctrl, addr; in hinic_msix_attr_cnt_clear() local 108 addr = HINIC_CSR_MSIX_CNT_ADDR(msix_index); in hinic_msix_attr_cnt_clear() 110 hinic_hwif_write_reg(hwif, addr, msix_ctrl); in hinic_msix_attr_cnt_clear() 195 u32 addr, attr1; in hwif_ready() local [all …]
|
/drivers/net/phy/ |
D | mdio_bus.c | 74 if (mdiodev->bus->mdio_map[mdiodev->addr]) in mdiobus_register_device() 90 mdiodev->bus->mdio_map[mdiodev->addr] = mdiodev; in mdiobus_register_device() 98 if (mdiodev->bus->mdio_map[mdiodev->addr] != mdiodev) in mdiobus_unregister_device() 103 mdiodev->bus->mdio_map[mdiodev->addr] = NULL; in mdiobus_unregister_device() 109 struct phy_device *mdiobus_get_phy(struct mii_bus *bus, int addr) in mdiobus_get_phy() argument 113 if (addr < 0 || addr >= ARRAY_SIZE(bus->mdio_map)) in mdiobus_get_phy() 116 mdiodev = bus->mdio_map[addr]; in mdiobus_get_phy() 128 bool mdiobus_is_registered_device(struct mii_bus *bus, int addr) in mdiobus_is_registered_device() argument 130 return bus->mdio_map[addr]; in mdiobus_is_registered_device() 190 int addr; member [all …]
|
/drivers/char/ipmi/ |
D | ipmi_si_port_io.c | 8 unsigned int addr = io->addr_data; in port_inb() local 10 return inb(addr + (offset * io->regspacing)); in port_inb() 16 unsigned int addr = io->addr_data; in port_outb() local 18 outb(b, addr + (offset * io->regspacing)); in port_outb() 23 unsigned int addr = io->addr_data; in port_inw() local 25 return (inw(addr + (offset * io->regspacing)) >> io->regshift) & 0xff; in port_inw() 31 unsigned int addr = io->addr_data; in port_outw() local 33 outw(b << io->regshift, addr + (offset * io->regspacing)); in port_outw() 38 unsigned int addr = io->addr_data; in port_inl() local 40 return (inl(addr + (offset * io->regspacing)) >> io->regshift) & 0xff; in port_inl() [all …]
|