Home
last modified time | relevance | path

Searched refs:ioaddr (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/linux-6.12.1/drivers/net/
Dsb1000.c90 static int card_wait_for_busy_clear(const int ioaddr[],
92 static int card_wait_for_ready(const int ioaddr[], const char* name,
94 static int card_send_command(const int ioaddr[], const char* name,
98 static int sb1000_wait_for_ready(const int ioaddr[], const char* name);
99 static int sb1000_wait_for_ready_clear(const int ioaddr[],
101 static void sb1000_send_command(const int ioaddr[], const char* name,
103 static void sb1000_read_status(const int ioaddr[], unsigned char in[]);
104 static void sb1000_issue_read_command(const int ioaddr[],
108 static int sb1000_reset(const int ioaddr[], const char* name);
109 static int sb1000_check_CRC(const int ioaddr[], const char* name);
[all …]
/linux-6.12.1/drivers/net/ethernet/realtek/
Datp.c193 static int atp_probe1(long ioaddr);
195 static unsigned short eeprom_op(long ioaddr, unsigned int cmd);
198 static void write_packet(long ioaddr, int length, unsigned char *packet, int pad, int mode);
199 static void trigger_send(long ioaddr, int length);
204 static void read_block(long ioaddr, int length, unsigned char *buffer, int data_mode);
232 long ioaddr = *port; in atp_init() local
233 outb(0x57, ioaddr + PAR_DATA); in atp_init()
234 if (inb(ioaddr + PAR_DATA) != 0x57) in atp_init()
236 if (atp_probe1(ioaddr) == 0) in atp_init()
253 static int __init atp_probe1(long ioaddr) in atp_probe1() argument
[all …]
Datp.h108 static inline unsigned char read_byte_mode0(short ioaddr) in read_byte_mode0() argument
112 outb(Ctrl_LNibRead, ioaddr + PAR_CONTROL); in read_byte_mode0()
113 inbyte(ioaddr + PAR_STATUS); in read_byte_mode0()
114 low_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f; in read_byte_mode0()
115 outb(Ctrl_HNibRead, ioaddr + PAR_CONTROL); in read_byte_mode0()
116 inbyte(ioaddr + PAR_STATUS); /* Settling time delay -- needed! */ in read_byte_mode0()
117 inbyte(ioaddr + PAR_STATUS); /* Settling time delay -- needed! */ in read_byte_mode0()
118 return low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0); in read_byte_mode0()
122 static inline unsigned char read_byte_mode2(short ioaddr) in read_byte_mode2() argument
126 outb(Ctrl_LNibRead, ioaddr + PAR_CONTROL); in read_byte_mode2()
[all …]
/linux-6.12.1/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_core.c21 static void sxgbe_core_init(void __iomem *ioaddr) in sxgbe_core_init() argument
26 regval = readl(ioaddr + SXGBE_CORE_TX_CONFIG_REG); in sxgbe_core_init()
31 writel(regval, ioaddr + SXGBE_CORE_TX_CONFIG_REG); in sxgbe_core_init()
34 regval = readl(ioaddr + SXGBE_CORE_RX_CONFIG_REG); in sxgbe_core_init()
40 writel(regval, ioaddr + SXGBE_CORE_RX_CONFIG_REG); in sxgbe_core_init()
44 static void sxgbe_core_dump_regs(void __iomem *ioaddr) in sxgbe_core_dump_regs() argument
48 static int sxgbe_get_lpi_status(void __iomem *ioaddr, const u32 irq_status) in sxgbe_get_lpi_status() argument
54 lpi_status = readl(ioaddr + SXGBE_CORE_LPI_CTRL_STATUS); in sxgbe_get_lpi_status()
69 static int sxgbe_core_host_irq_status(void __iomem *ioaddr, in sxgbe_core_host_irq_status() argument
74 irq_status = readl(ioaddr + SXGBE_CORE_INT_STATUS_REG); in sxgbe_core_host_irq_status()
[all …]
Dsxgbe_mtl.c20 static void sxgbe_mtl_init(void __iomem *ioaddr, unsigned int etsalg, in sxgbe_mtl_init() argument
25 reg_val = readl(ioaddr + SXGBE_MTL_OP_MODE_REG); in sxgbe_mtl_init()
40 writel(reg_val, ioaddr + SXGBE_MTL_OP_MODE_REG); in sxgbe_mtl_init()
50 writel(reg_val, ioaddr + SXGBE_MTL_OP_MODE_REG); in sxgbe_mtl_init()
54 static void sxgbe_mtl_dma_dm_rxqueue(void __iomem *ioaddr) in sxgbe_mtl_dma_dm_rxqueue() argument
56 writel(RX_QUEUE_DYNAMIC, ioaddr + SXGBE_MTL_RXQ_DMAMAP0_REG); in sxgbe_mtl_dma_dm_rxqueue()
57 writel(RX_QUEUE_DYNAMIC, ioaddr + SXGBE_MTL_RXQ_DMAMAP1_REG); in sxgbe_mtl_dma_dm_rxqueue()
58 writel(RX_QUEUE_DYNAMIC, ioaddr + SXGBE_MTL_RXQ_DMAMAP2_REG); in sxgbe_mtl_dma_dm_rxqueue()
61 static void sxgbe_mtl_set_txfifosize(void __iomem *ioaddr, int queue_num, in sxgbe_mtl_set_txfifosize() argument
68 reg_val = readl(ioaddr + SXGBE_MTL_TXQ_OPMODE_REG(queue_num)); in sxgbe_mtl_set_txfifosize()
[all …]
Dsxgbe_dma.c21 static int sxgbe_dma_init(void __iomem *ioaddr, int fix_burst, int burst_map) in sxgbe_dma_init() argument
25 reg_val = readl(ioaddr + SXGBE_DMA_SYSBUS_MODE_REG); in sxgbe_dma_init()
38 writel(reg_val, ioaddr + SXGBE_DMA_SYSBUS_MODE_REG); in sxgbe_dma_init()
43 static void sxgbe_dma_channel_init(void __iomem *ioaddr, int cha_num, in sxgbe_dma_channel_init() argument
50 reg_val = readl(ioaddr + SXGBE_DMA_CHA_CTL_REG(cha_num)); in sxgbe_dma_channel_init()
54 writel(reg_val, ioaddr + SXGBE_DMA_CHA_CTL_REG(cha_num)); in sxgbe_dma_channel_init()
56 reg_val = readl(ioaddr + SXGBE_DMA_CHA_TXCTL_REG(cha_num)); in sxgbe_dma_channel_init()
58 writel(reg_val, ioaddr + SXGBE_DMA_CHA_TXCTL_REG(cha_num)); in sxgbe_dma_channel_init()
60 reg_val = readl(ioaddr + SXGBE_DMA_CHA_RXCTL_REG(cha_num)); in sxgbe_dma_channel_init()
62 writel(reg_val, ioaddr + SXGBE_DMA_CHA_RXCTL_REG(cha_num)); in sxgbe_dma_channel_init()
[all …]
/linux-6.12.1/drivers/net/ethernet/smsc/
Dsmc9194.c268 static int smc_probe(struct net_device *dev, int ioaddr);
290 static void smc_reset( int ioaddr );
293 static void smc_enable( int ioaddr );
296 static void smc_shutdown( int ioaddr );
300 static int smc_findirq( int ioaddr );
319 static void smc_reset( int ioaddr ) in smc_reset() argument
324 outw( RCR_SOFTRESET, ioaddr + RCR ); in smc_reset()
331 outw( RCR_CLEAR, ioaddr + RCR ); in smc_reset()
332 outw( TCR_CLEAR, ioaddr + TCR ); in smc_reset()
338 outw( inw( ioaddr + CONTROL ) | CTL_AUTO_RELEASE , ioaddr + CONTROL ); in smc_reset()
[all …]
/linux-6.12.1/drivers/net/ethernet/stmicro/stmmac/
Ddwxgmac2_dma.c11 static int dwxgmac2_dma_reset(void __iomem *ioaddr) in dwxgmac2_dma_reset() argument
13 u32 value = readl(ioaddr + XGMAC_DMA_MODE); in dwxgmac2_dma_reset()
16 writel(value | XGMAC_SWR, ioaddr + XGMAC_DMA_MODE); in dwxgmac2_dma_reset()
18 return readl_poll_timeout(ioaddr + XGMAC_DMA_MODE, value, in dwxgmac2_dma_reset()
22 static void dwxgmac2_dma_init(void __iomem *ioaddr, in dwxgmac2_dma_init() argument
25 u32 value = readl(ioaddr + XGMAC_DMA_SYSBUS_MODE); in dwxgmac2_dma_init()
33 writel(value, ioaddr + XGMAC_DMA_SYSBUS_MODE); in dwxgmac2_dma_init()
37 void __iomem *ioaddr, in dwxgmac2_dma_init_chan() argument
40 u32 value = readl(ioaddr + XGMAC_DMA_CH_CONTROL(chan)); in dwxgmac2_dma_init_chan()
45 writel(value, ioaddr + XGMAC_DMA_CH_CONTROL(chan)); in dwxgmac2_dma_init_chan()
[all …]
Ddwxgmac2_core.c18 void __iomem *ioaddr = hw->pcsr; in dwxgmac2_core_init() local
21 tx = readl(ioaddr + XGMAC_TX_CONFIG); in dwxgmac2_core_init()
22 rx = readl(ioaddr + XGMAC_RX_CONFIG); in dwxgmac2_core_init()
45 writel(tx, ioaddr + XGMAC_TX_CONFIG); in dwxgmac2_core_init()
46 writel(rx, ioaddr + XGMAC_RX_CONFIG); in dwxgmac2_core_init()
47 writel(XGMAC_INT_DEFAULT_EN, ioaddr + XGMAC_INT_EN); in dwxgmac2_core_init()
50 static void dwxgmac2_set_mac(void __iomem *ioaddr, bool enable) in dwxgmac2_set_mac() argument
52 u32 tx = readl(ioaddr + XGMAC_TX_CONFIG); in dwxgmac2_set_mac()
53 u32 rx = readl(ioaddr + XGMAC_RX_CONFIG); in dwxgmac2_set_mac()
63 writel(tx, ioaddr + XGMAC_TX_CONFIG); in dwxgmac2_set_mac()
[all …]
Ddwmac4_lib.c16 int dwmac4_dma_reset(void __iomem *ioaddr) in dwmac4_dma_reset() argument
18 u32 value = readl(ioaddr + DMA_BUS_MODE); in dwmac4_dma_reset()
22 writel(value, ioaddr + DMA_BUS_MODE); in dwmac4_dma_reset()
24 return readl_poll_timeout(ioaddr + DMA_BUS_MODE, value, in dwmac4_dma_reset()
29 void dwmac4_set_rx_tail_ptr(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_set_rx_tail_ptr() argument
34 writel(tail_ptr, ioaddr + DMA_CHAN_RX_END_ADDR(dwmac4_addrs, chan)); in dwmac4_set_rx_tail_ptr()
37 void dwmac4_set_tx_tail_ptr(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_set_tx_tail_ptr() argument
42 writel(tail_ptr, ioaddr + DMA_CHAN_TX_END_ADDR(dwmac4_addrs, chan)); in dwmac4_set_tx_tail_ptr()
45 void dwmac4_dma_start_tx(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_dma_start_tx() argument
49 u32 value = readl(ioaddr + DMA_CHAN_TX_CONTROL(dwmac4_addrs, chan)); in dwmac4_dma_start_tx()
[all …]
Ddwmac5.c78 void __iomem *ioaddr, bool correctable, in dwmac5_handle_mac_err() argument
83 value = readl(ioaddr + MAC_DPP_FSM_INT_STATUS); in dwmac5_handle_mac_err()
84 writel(value, ioaddr + MAC_DPP_FSM_INT_STATUS); in dwmac5_handle_mac_err()
126 void __iomem *ioaddr, bool correctable, in dwmac5_handle_mtl_err() argument
131 value = readl(ioaddr + MTL_ECC_INT_STATUS); in dwmac5_handle_mtl_err()
132 writel(value, ioaddr + MTL_ECC_INT_STATUS); in dwmac5_handle_mtl_err()
174 void __iomem *ioaddr, bool correctable, in dwmac5_handle_dma_err() argument
179 value = readl(ioaddr + DMA_ECC_INT_STATUS); in dwmac5_handle_dma_err()
180 writel(value, ioaddr + DMA_ECC_INT_STATUS); in dwmac5_handle_dma_err()
186 int dwmac5_safety_feat_config(void __iomem *ioaddr, unsigned int asp, in dwmac5_safety_feat_config() argument
[all …]
Ddwmac4_core.c27 void __iomem *ioaddr = hw->pcsr; in dwmac4_core_init() local
28 u32 value = readl(ioaddr + GMAC_CONFIG); in dwmac4_core_init()
50 writel(value, ioaddr + GMAC_CONFIG); in dwmac4_core_init()
54 writel((clk_rate / 1000000) - 1, ioaddr + GMAC4_MAC_ONEUS_TIC_COUNTER); in dwmac4_core_init()
62 writel(value, ioaddr + GMAC_INT_EN); in dwmac4_core_init()
79 void __iomem *ioaddr = hw->pcsr; in dwmac4_rx_queue_enable() local
80 u32 value = readl(ioaddr + GMAC_RXQ_CTRL0); in dwmac4_rx_queue_enable()
88 writel(value, ioaddr + GMAC_RXQ_CTRL0); in dwmac4_rx_queue_enable()
94 void __iomem *ioaddr = hw->pcsr; in dwmac4_rx_queue_priority() local
99 ctrl2 = readl(ioaddr + GMAC_RXQ_CTRL2); in dwmac4_rx_queue_priority()
[all …]
Ddwmac_lib.c17 int dwmac_dma_reset(void __iomem *ioaddr) in dwmac_dma_reset() argument
19 u32 value = readl(ioaddr + DMA_BUS_MODE); in dwmac_dma_reset()
23 writel(value, ioaddr + DMA_BUS_MODE); in dwmac_dma_reset()
25 return readl_poll_timeout(ioaddr + DMA_BUS_MODE, value, in dwmac_dma_reset()
31 void dwmac_enable_dma_transmission(void __iomem *ioaddr, u32 chan) in dwmac_enable_dma_transmission() argument
33 writel(1, ioaddr + DMA_CHAN_XMT_POLL_DEMAND(chan)); in dwmac_enable_dma_transmission()
36 void dwmac_enable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac_enable_dma_irq() argument
39 u32 value = readl(ioaddr + DMA_CHAN_INTR_ENA(chan)); in dwmac_enable_dma_irq()
46 writel(value, ioaddr + DMA_CHAN_INTR_ENA(chan)); in dwmac_enable_dma_irq()
49 void dwmac_disable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac_disable_dma_irq() argument
[all …]
Dstmmac_hwtstamp.c21 static void config_hw_tstamping(void __iomem *ioaddr, u32 data) in config_hw_tstamping() argument
23 writel(data, ioaddr + PTP_TCR); in config_hw_tstamping()
26 static void config_sub_second_increment(void __iomem *ioaddr, in config_sub_second_increment() argument
29 u32 value = readl(ioaddr + PTP_TCR); in config_sub_second_increment()
57 writel(reg_value, ioaddr + PTP_SSIR); in config_sub_second_increment()
65 void __iomem *ioaddr = priv->ptpaddr; in hwtstamp_correct_latency() local
72 scaled_ns = readl(ioaddr + PTP_TS_INGR_LAT); in hwtstamp_correct_latency()
77 val = readl(ioaddr + PTP_TCR); in hwtstamp_correct_latency()
92 writel(reg_tsic, ioaddr + PTP_TS_INGR_CORR_NS); in hwtstamp_correct_latency()
93 writel(reg_tsicsns, ioaddr + PTP_TS_INGR_CORR_SNS); in hwtstamp_correct_latency()
[all …]
Ddwmac4_dma.c18 static void dwmac4_dma_axi(void __iomem *ioaddr, struct stmmac_axi *axi) in dwmac4_dma_axi() argument
20 u32 value = readl(ioaddr + DMA_SYS_BUS_MODE); in dwmac4_dma_axi()
69 writel(value, ioaddr + DMA_SYS_BUS_MODE); in dwmac4_dma_axi()
73 void __iomem *ioaddr, in dwmac4_dma_init_rx_chan() argument
81 value = readl(ioaddr + DMA_CHAN_RX_CONTROL(dwmac4_addrs, chan)); in dwmac4_dma_init_rx_chan()
83 writel(value, ioaddr + DMA_CHAN_RX_CONTROL(dwmac4_addrs, chan)); in dwmac4_dma_init_rx_chan()
87 ioaddr + DMA_CHAN_RX_BASE_ADDR_HI(dwmac4_addrs, chan)); in dwmac4_dma_init_rx_chan()
90 ioaddr + DMA_CHAN_RX_BASE_ADDR(dwmac4_addrs, chan)); in dwmac4_dma_init_rx_chan()
94 void __iomem *ioaddr, in dwmac4_dma_init_tx_chan() argument
102 value = readl(ioaddr + DMA_CHAN_TX_CONTROL(dwmac4_addrs, chan)); in dwmac4_dma_init_tx_chan()
[all …]
Ddwmac1000_core.c26 void __iomem *ioaddr = hw->pcsr; in dwmac1000_core_init() local
27 u32 value = readl(ioaddr + GMAC_CONTROL); in dwmac1000_core_init()
55 writel(value, ioaddr + GMAC_CONTROL); in dwmac1000_core_init()
63 writel(value, ioaddr + GMAC_INT_MASK); in dwmac1000_core_init()
67 writel(0x0, ioaddr + GMAC_VLAN_TAG); in dwmac1000_core_init()
73 void __iomem *ioaddr = hw->pcsr; in dwmac1000_rx_ipc_enable() local
74 u32 value = readl(ioaddr + GMAC_CONTROL); in dwmac1000_rx_ipc_enable()
81 writel(value, ioaddr + GMAC_CONTROL); in dwmac1000_rx_ipc_enable()
83 value = readl(ioaddr + GMAC_CONTROL); in dwmac1000_rx_ipc_enable()
90 void __iomem *ioaddr = hw->pcsr; in dwmac1000_dump_regs() local
[all …]
/linux-6.12.1/drivers/net/ethernet/3com/
D3c509.c116 #define EL3WINDOW(win_num) outw(SelectWindow + (win_num), ioaddr + EL3_CMD)
186 static ushort read_eeprom(int ioaddr, int index);
268 static void el3_dev_fill(struct net_device *dev, __be16 *phys_addr, int ioaddr, in el3_dev_fill() argument
274 dev->base_addr = ioaddr; in el3_dev_fill()
283 int ioaddr, isa_irq, if_port, err; in el3_isa_match() local
294 ioaddr = 0x200 + ((iobase & 0x1f) << 4); in el3_isa_match()
306 if (!request_region(ioaddr, EL3_IO_EXTENT, "3c509-isa")) { in el3_isa_match()
315 outb((ioaddr >> 4) | 0xe0, id_port); in el3_isa_match()
318 if (inw(ioaddr) != 0x6d50) { in el3_isa_match()
324 outw(0x0f00, ioaddr + WN0_IRQ); in el3_isa_match()
[all …]
D3c574_cs.c131 #define EL3WINDOW(win_num) outw(SelectWindow + (win_num), ioaddr + EL3_CMD)
220 static void mdio_sync(unsigned int ioaddr, int bits);
221 static int mdio_read(unsigned int ioaddr, int phy_id, int location);
222 static void mdio_write(unsigned int ioaddr, int phy_id, int location,
224 static unsigned short read_eeprom(unsigned int ioaddr, int index);
309 unsigned int ioaddr; in tc574_config() local
339 ioaddr = dev->base_addr; in tc574_config()
354 addr[i] = htons(read_eeprom(ioaddr, i + 10)); in tc574_config()
369 outw(2<<11, ioaddr + RunnerRdCtrl); in tc574_config()
370 mcr = inb(ioaddr + 2); in tc574_config()
[all …]
D3c515.c168 #define EL3WINDOW(win_num) outw(SelectWindow + (win_num), ioaddr + EL3_CMD)
360 static int corkscrew_setup(struct net_device *dev, int ioaddr,
432 static int check_device(unsigned ioaddr) in check_device() argument
436 if (!request_region(ioaddr, CORKSCREW_TOTAL_SIZE, "3c515")) in check_device()
439 if ((inw(ioaddr + 0x2002) & 0x1f0) != (ioaddr & 0x1f0)) { in check_device()
440 release_region(ioaddr, CORKSCREW_TOTAL_SIZE); in check_device()
444 outw(EEPROM_Read + 7, ioaddr + Wn0EepromCmd); in check_device()
448 if ((inw(ioaddr + Wn0EepromCmd) & 0x0200) == 0) in check_device()
451 if (inw(ioaddr + Wn0EepromData) != 0x6d50) { in check_device()
452 release_region(ioaddr, CORKSCREW_TOTAL_SIZE); in check_device()
[all …]
D3c589_cs.c67 #define EL3WINDOW(win_num) outw(SelectWindow + (win_num), ioaddr + EL3_CMD)
163 static u16 read_eeprom(unsigned int ioaddr, int index);
251 unsigned int ioaddr; in tc589_config() local
287 ioaddr = dev->base_addr; in tc589_config()
301 addr[i] = htons(read_eeprom(ioaddr, i)); in tc589_config()
314 outw(0x3f00, ioaddr + 8); in tc589_config()
315 fifo = inl(ioaddr); in tc589_config()
389 static u16 read_eeprom(unsigned int ioaddr, int index) in read_eeprom() argument
392 outw(EEPROM_READ + index, ioaddr + 10); in read_eeprom()
395 if ((inw(ioaddr + 10) & EEPROM_BUSY) == 0) in read_eeprom()
[all …]
/linux-6.12.1/drivers/net/arcnet/
Dcom90io.c73 int ioaddr = dev->base_addr; in get_buffer_byte() local
75 arcnet_outb(offset >> 8, ioaddr, COM9026_REG_W_ADDR_HI); in get_buffer_byte()
76 arcnet_outb(offset & 0xff, ioaddr, COM9026_REG_W_ADDR_LO); in get_buffer_byte()
78 return arcnet_inb(ioaddr, COM9026_REG_RW_MEMDATA); in get_buffer_byte()
85 int ioaddr = dev->base_addr; in put_buffer_byte() local
87 arcnet_outb(offset >> 8, ioaddr, COM9026_REG_W_ADDR_HI); in put_buffer_byte()
88 arcnet_outb(offset & 0xff, ioaddr, COM9026_REG_W_ADDR_LO); in put_buffer_byte()
90 arcnet_outb(datum, ioaddr, COM9026_REG_RW_MEMDATA); in put_buffer_byte()
98 int ioaddr = dev->base_addr; in get_whole_buffer() local
100 arcnet_outb((offset >> 8) | AUTOINCflag, ioaddr, COM9026_REG_W_ADDR_HI); in get_whole_buffer()
[all …]
Dcom20020.c65 int ioaddr = dev->base_addr, ofs = 512 * bufnum + offset; in com20020_copy_from_card() local
69 ioaddr, COM20020_REG_W_ADDR_HI); in com20020_copy_from_card()
70 arcnet_outb(ofs & 0xff, ioaddr, COM20020_REG_W_ADDR_LO); in com20020_copy_from_card()
74 arcnet_insb(ioaddr, COM20020_REG_RW_MEMDATA, buf, count)); in com20020_copy_from_card()
80 int ioaddr = dev->base_addr, ofs = 512 * bufnum + offset; in com20020_copy_to_card() local
83 arcnet_outb((ofs >> 8) | AUTOINCflag, ioaddr, COM20020_REG_W_ADDR_HI); in com20020_copy_to_card()
84 arcnet_outb(ofs & 0xff, ioaddr, COM20020_REG_W_ADDR_LO); in com20020_copy_to_card()
88 arcnet_outsb(ioaddr, COM20020_REG_RW_MEMDATA, buf, count)); in com20020_copy_to_card()
94 int ioaddr = dev->base_addr, status; in com20020_check() local
97 arcnet_outb(XTOcfg(3) | RESETcfg, ioaddr, COM20020_REG_W_CONFIG); in com20020_check()
[all …]
/linux-6.12.1/drivers/rtc/
Drtc-stk17ta8.c61 void __iomem *ioaddr; member
75 void __iomem *ioaddr = pdata->ioaddr; in stk17ta8_rtc_set_time() local
78 flags = readb(pdata->ioaddr + RTC_FLAGS); in stk17ta8_rtc_set_time()
79 writeb(flags | RTC_WRITE, pdata->ioaddr + RTC_FLAGS); in stk17ta8_rtc_set_time()
81 writeb(bin2bcd(tm->tm_year % 100), ioaddr + RTC_YEAR); in stk17ta8_rtc_set_time()
82 writeb(bin2bcd(tm->tm_mon + 1), ioaddr + RTC_MONTH); in stk17ta8_rtc_set_time()
83 writeb(bin2bcd(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY); in stk17ta8_rtc_set_time()
84 writeb(bin2bcd(tm->tm_mday), ioaddr + RTC_DATE); in stk17ta8_rtc_set_time()
85 writeb(bin2bcd(tm->tm_hour), ioaddr + RTC_HOURS); in stk17ta8_rtc_set_time()
86 writeb(bin2bcd(tm->tm_min), ioaddr + RTC_MINUTES); in stk17ta8_rtc_set_time()
[all …]
Drtc-ds1553.c60 void __iomem *ioaddr; member
74 void __iomem *ioaddr = pdata->ioaddr; in ds1553_rtc_set_time() local
79 writeb(RTC_WRITE, pdata->ioaddr + RTC_CONTROL); in ds1553_rtc_set_time()
81 writeb(bin2bcd(tm->tm_year % 100), ioaddr + RTC_YEAR); in ds1553_rtc_set_time()
82 writeb(bin2bcd(tm->tm_mon + 1), ioaddr + RTC_MONTH); in ds1553_rtc_set_time()
83 writeb(bin2bcd(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY); in ds1553_rtc_set_time()
84 writeb(bin2bcd(tm->tm_mday), ioaddr + RTC_DATE); in ds1553_rtc_set_time()
85 writeb(bin2bcd(tm->tm_hour), ioaddr + RTC_HOURS); in ds1553_rtc_set_time()
86 writeb(bin2bcd(tm->tm_min), ioaddr + RTC_MINUTES); in ds1553_rtc_set_time()
87 writeb(bin2bcd(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS); in ds1553_rtc_set_time()
[all …]
Drtc-ds1742.c58 void __iomem *ioaddr = pdata->ioaddr_rtc; in ds1742_rtc_set_time() local
63 writeb(RTC_WRITE, ioaddr + RTC_CONTROL); in ds1742_rtc_set_time()
65 writeb(bin2bcd(tm->tm_year % 100), ioaddr + RTC_YEAR); in ds1742_rtc_set_time()
66 writeb(bin2bcd(tm->tm_mon + 1), ioaddr + RTC_MONTH); in ds1742_rtc_set_time()
67 writeb(bin2bcd(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY); in ds1742_rtc_set_time()
68 writeb(bin2bcd(tm->tm_mday), ioaddr + RTC_DATE); in ds1742_rtc_set_time()
69 writeb(bin2bcd(tm->tm_hour), ioaddr + RTC_HOURS); in ds1742_rtc_set_time()
70 writeb(bin2bcd(tm->tm_min), ioaddr + RTC_MINUTES); in ds1742_rtc_set_time()
71 writeb(bin2bcd(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS); in ds1742_rtc_set_time()
74 writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY); in ds1742_rtc_set_time()
[all …]

12345678910>>...13