Home
last modified time | relevance | path

Searched refs:pdata (Results 1 – 25 of 1000) sorted by relevance

12345678910>>...40

/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-mdio.c129 static int xgbe_phy_module_eeprom(struct xgbe_prv_data *pdata, in xgbe_phy_module_eeprom() argument
132 if (!pdata->phy_if.phy_impl.module_eeprom) in xgbe_phy_module_eeprom()
135 return pdata->phy_if.phy_impl.module_eeprom(pdata, eeprom, data); in xgbe_phy_module_eeprom()
138 static int xgbe_phy_module_info(struct xgbe_prv_data *pdata, in xgbe_phy_module_info() argument
141 if (!pdata->phy_if.phy_impl.module_info) in xgbe_phy_module_info()
144 return pdata->phy_if.phy_impl.module_info(pdata, modinfo); in xgbe_phy_module_info()
147 static void xgbe_an37_clear_interrupts(struct xgbe_prv_data *pdata) in xgbe_an37_clear_interrupts() argument
151 reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_STAT); in xgbe_an37_clear_interrupts()
153 XMDIO_WRITE(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_STAT, reg); in xgbe_an37_clear_interrupts()
156 static void xgbe_an37_disable_interrupts(struct xgbe_prv_data *pdata) in xgbe_an37_disable_interrupts() argument
[all …]
H A Dxgbe-pci.c125 static int xgbe_config_multi_msi(struct xgbe_prv_data *pdata) in xgbe_config_multi_msi() argument
132 vector_count += max(pdata->rx_ring_count, in xgbe_config_multi_msi()
133 pdata->tx_ring_count); in xgbe_config_multi_msi()
135 ret = pci_alloc_irq_vectors(pdata->pcidev, XGBE_MSI_MIN_COUNT, in xgbe_config_multi_msi()
138 dev_info(pdata->dev, "multi MSI/MSI-X enablement failed\n"); in xgbe_config_multi_msi()
142 pdata->isr_as_bh_work = 1; in xgbe_config_multi_msi()
143 pdata->irq_count = ret; in xgbe_config_multi_msi()
145 pdata->dev_irq = pci_irq_vector(pdata->pcidev, 0); in xgbe_config_multi_msi()
146 pdata->ecc_irq = pci_irq_vector(pdata->pcidev, 1); in xgbe_config_multi_msi()
147 pdata->i2c_irq = pci_irq_vector(pdata->pcidev, 2); in xgbe_config_multi_msi()
[all …]
H A Dxgbe-main.c139 static void xgbe_default_config(struct xgbe_prv_data *pdata) in xgbe_default_config() argument
143 pdata->blen = DMA_SBMR_BLEN_64; in xgbe_default_config()
144 pdata->pbl = DMA_PBL_128; in xgbe_default_config()
145 pdata->aal = 1; in xgbe_default_config()
146 pdata->rd_osr_limit = 8; in xgbe_default_config()
147 pdata->wr_osr_limit = 8; in xgbe_default_config()
148 pdata->tx_sf_mode = MTL_TSF_ENABLE; in xgbe_default_config()
149 pdata->tx_threshold = MTL_TX_THRESHOLD_64; in xgbe_default_config()
150 pdata->tx_osp_mode = DMA_OSP_ENABLE; in xgbe_default_config()
151 pdata->rx_sf_mode = MTL_RSF_DISABLE; in xgbe_default_config()
[all …]
H A Dxgbe-i2c.c144 static int xgbe_i2c_abort(struct xgbe_prv_data *pdata) in xgbe_i2c_abort() argument
149 XI2C_IOWRITE_BITS(pdata, IC_ENABLE, EN, 1); in xgbe_i2c_abort()
152 XI2C_IOWRITE_BITS(pdata, IC_ENABLE, ABORT, 1); in xgbe_i2c_abort()
155 if (!XI2C_IOREAD_BITS(pdata, IC_ENABLE, ABORT)) in xgbe_i2c_abort()
164 static int xgbe_i2c_set_enable(struct xgbe_prv_data *pdata, bool enable) in xgbe_i2c_set_enable() argument
170 XI2C_IOWRITE_BITS(pdata, IC_ENABLE, EN, mode); in xgbe_i2c_set_enable()
171 if (XI2C_IOREAD_BITS(pdata, IC_ENABLE_STATUS, EN) == mode) in xgbe_i2c_set_enable()
180 static int xgbe_i2c_disable(struct xgbe_prv_data *pdata) in xgbe_i2c_disable() argument
184 ret = xgbe_i2c_set_enable(pdata, false); in xgbe_i2c_disable()
187 ret = xgbe_i2c_abort(pdata); in xgbe_i2c_disable()
[all …]
H A Dxgbe-dev.c127 static inline unsigned int xgbe_get_max_frame(struct xgbe_prv_data *pdata) in xgbe_get_max_frame() argument
129 return pdata->netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in xgbe_get_max_frame()
132 static unsigned int xgbe_usec_to_riwt(struct xgbe_prv_data *pdata, in xgbe_usec_to_riwt() argument
140 rate = pdata->sysclk_rate; in xgbe_usec_to_riwt()
155 static unsigned int xgbe_riwt_to_usec(struct xgbe_prv_data *pdata, in xgbe_riwt_to_usec() argument
163 rate = pdata->sysclk_rate; in xgbe_riwt_to_usec()
178 static int xgbe_config_pbl_val(struct xgbe_prv_data *pdata) in xgbe_config_pbl_val() argument
184 pbl = pdata->pbl; in xgbe_config_pbl_val()
186 if (pdata->pbl > 32) { in xgbe_config_pbl_val()
191 for (i = 0; i < pdata->channel_count; i++) { in xgbe_config_pbl_val()
[all …]
H A Dxgbe-drv.c172 static void xgbe_free_channels(struct xgbe_prv_data *pdata) in xgbe_free_channels() argument
176 for (i = 0; i < ARRAY_SIZE(pdata->channel); i++) { in xgbe_free_channels()
177 if (!pdata->channel[i]) in xgbe_free_channels()
180 kfree(pdata->channel[i]->rx_ring); in xgbe_free_channels()
181 kfree(pdata->channel[i]->tx_ring); in xgbe_free_channels()
182 kfree(pdata->channel[i]); in xgbe_free_channels()
184 pdata->channel[i] = NULL; in xgbe_free_channels()
187 pdata->channel_count = 0; in xgbe_free_channels()
190 static int xgbe_alloc_channels(struct xgbe_prv_data *pdata) in xgbe_alloc_channels() argument
198 count = max_t(unsigned int, pdata->tx_ring_count, pdata->rx_ring_count); in xgbe_alloc_channels()
[all …]
H A Dxgbe-phy-v2.c390 static enum xgbe_an_mode xgbe_phy_an_mode(struct xgbe_prv_data *pdata);
391 static void xgbe_phy_rrc(struct xgbe_prv_data *pdata);
392 static void xgbe_phy_perform_ratechange(struct xgbe_prv_data *pdata,
396 static int xgbe_phy_i2c_xfer(struct xgbe_prv_data *pdata, in xgbe_phy_i2c_xfer() argument
399 return pdata->i2c_if.i2c_xfer(pdata, i2c_op); in xgbe_phy_i2c_xfer()
402 static int xgbe_phy_redrv_write(struct xgbe_prv_data *pdata, unsigned int reg, in xgbe_phy_redrv_write() argument
405 struct xgbe_phy_data *phy_data = pdata->phy_data; in xgbe_phy_redrv_write()
433 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_redrv_write()
447 ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); in xgbe_phy_redrv_write()
456 netif_dbg(pdata, drv, pdata->netdev, in xgbe_phy_redrv_write()
[all …]
H A Dxgbe-phy-v1.c222 static void xgbe_phy_kr_training_pre(struct xgbe_prv_data *pdata) in xgbe_phy_kr_training_pre() argument
224 XSIR0_IOWRITE_BITS(pdata, SIR0_KR_RT_1, RESET, 1); in xgbe_phy_kr_training_pre()
227 static void xgbe_phy_kr_training_post(struct xgbe_prv_data *pdata) in xgbe_phy_kr_training_post() argument
229 XSIR0_IOWRITE_BITS(pdata, SIR0_KR_RT_1, RESET, 0); in xgbe_phy_kr_training_post()
232 static enum xgbe_mode xgbe_phy_an_outcome(struct xgbe_prv_data *pdata) in xgbe_phy_an_outcome() argument
234 struct ethtool_link_ksettings *lks = &pdata->phy.lks; in xgbe_phy_an_outcome()
235 struct xgbe_phy_data *phy_data = pdata->phy_data; in xgbe_phy_an_outcome()
243 ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE); in xgbe_phy_an_outcome()
244 lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA); in xgbe_phy_an_outcome()
250 if (pdata->phy.pause_autoneg) { in xgbe_phy_an_outcome()
[all …]
H A Dxgbe-debugfs.c177 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_addr_read() local
179 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xgmac_reg); in xgmac_reg_addr_read()
186 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_addr_write() local
189 &pdata->debugfs_xgmac_reg); in xgmac_reg_addr_write()
195 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_value_read() local
198 value = XGMAC_IOREAD(pdata, pdata->debugfs_xgmac_reg); in xgmac_reg_value_read()
207 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_value_write() local
215 XGMAC_IOWRITE(pdata, pdata in xgmac_reg_value_write()
237 struct xgbe_prv_data *pdata = filp->private_data; xpcs_mmd_read() local
245 struct xgbe_prv_data *pdata = filp->private_data; xpcs_mmd_write() local
254 struct xgbe_prv_data *pdata = filp->private_data; xpcs_reg_addr_read() local
262 struct xgbe_prv_data *pdata = filp->private_data; xpcs_reg_addr_write() local
271 struct xgbe_prv_data *pdata = filp->private_data; xpcs_reg_value_read() local
284 struct xgbe_prv_data *pdata = filp->private_data; xpcs_reg_value_write() local
322 struct xgbe_prv_data *pdata = filp->private_data; xprop_reg_addr_read() local
331 struct xgbe_prv_data *pdata = filp->private_data; xprop_reg_addr_write() local
340 struct xgbe_prv_data *pdata = filp->private_data; xprop_reg_value_read() local
352 struct xgbe_prv_data *pdata = filp->private_data; xprop_reg_value_write() local
382 struct xgbe_prv_data *pdata = filp->private_data; xi2c_reg_addr_read() local
391 struct xgbe_prv_data *pdata = filp->private_data; xi2c_reg_addr_write() local
400 struct xgbe_prv_data *pdata = filp->private_data; xi2c_reg_value_read() local
412 struct xgbe_prv_data *pdata = filp->private_data; xi2c_reg_value_write() local
439 xgbe_debugfs_init(struct xgbe_prv_data * pdata) xgbe_debugfs_init() argument
500 xgbe_debugfs_exit(struct xgbe_prv_data * pdata) xgbe_debugfs_exit() argument
506 xgbe_debugfs_rename(struct xgbe_prv_data * pdata) xgbe_debugfs_rename() argument
[all...]
H A Dxgbe-ethtool.c193 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_strings() local
201 for (i = 0; i < pdata->tx_ring_count; i++) { in xgbe_get_strings()
206 for (i = 0; i < pdata->rx_ring_count; i++) { in xgbe_get_strings()
218 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_ethtool_stats() local
222 pdata->hw_if.read_mmc_stats(pdata); in xgbe_get_ethtool_stats()
224 stat = (u8 *)pdata + xgbe_gstring_stats[i].stat_offset; in xgbe_get_ethtool_stats()
227 for (i = 0; i < pdata->tx_ring_count; i++) { in xgbe_get_ethtool_stats()
228 *data++ = pdata->ext_stats.txq_packets[i]; in xgbe_get_ethtool_stats()
229 *data++ = pdata->ext_stats.txq_bytes[i]; in xgbe_get_ethtool_stats()
231 for (i = 0; i < pdata->rx_ring_count; i++) { in xgbe_get_ethtool_stats()
[all …]
H A Dxgbe-dcb.c126 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_getets() local
129 ets->ets_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getets()
131 if (pdata->ets) { in xgbe_dcb_ieee_getets()
132 ets->cbs = pdata->ets->cbs; in xgbe_dcb_ieee_getets()
133 memcpy(ets->tc_tx_bw, pdata->ets->tc_tx_bw, in xgbe_dcb_ieee_getets()
135 memcpy(ets->tc_tsa, pdata->ets->tc_tsa, in xgbe_dcb_ieee_getets()
137 memcpy(ets->prio_tc, pdata->ets->prio_tc, in xgbe_dcb_ieee_getets()
147 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_setets() local
154 netif_dbg(pdata, drv, netdev, in xgbe_dcb_ieee_setets()
158 netif_dbg(pdata, drv, netdev, "PRIO%u: TC=%hhu\n", i, in xgbe_dcb_ieee_setets()
[all …]
H A Dxgbe-ptp.c127 struct xgbe_prv_data *pdata = container_of(cc, in xgbe_cc_read() local
132 nsec = pdata->hw_if.get_tstamp_time(pdata); in xgbe_cc_read()
139 struct xgbe_prv_data *pdata = container_of(info, in xgbe_adjfine() local
145 addend = adjust_by_scaled_ppm(pdata->tstamp_addend, scaled_ppm); in xgbe_adjfine()
147 spin_lock_irqsave(&pdata->tstamp_lock, flags); in xgbe_adjfine()
149 pdata->hw_if.update_tstamp_addend(pdata, addend); in xgbe_adjfine()
151 spin_unlock_irqrestore(&pdata->tstamp_lock, flags); in xgbe_adjfine()
158 struct xgbe_prv_data *pdata = container_of(info, in xgbe_adjtime() local
163 spin_lock_irqsave(&pdata->tstamp_lock, flags); in xgbe_adjtime()
164 timecounter_adjtime(&pdata->tstamp_tc, delta); in xgbe_adjtime()
[all …]
/linux/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_xgmac.c15 static void xgene_enet_wr_csr(struct xgene_enet_pdata *pdata, in xgene_enet_wr_csr() argument
18 void __iomem *addr = pdata->eth_csr_addr + offset; in xgene_enet_wr_csr()
23 static void xgene_enet_wr_ring_if(struct xgene_enet_pdata *pdata, in xgene_enet_wr_ring_if() argument
26 void __iomem *addr = pdata->eth_ring_if_addr + offset; in xgene_enet_wr_ring_if()
31 static void xgene_enet_wr_diag_csr(struct xgene_enet_pdata *pdata, in xgene_enet_wr_diag_csr() argument
34 void __iomem *addr = pdata->eth_diag_csr_addr + offset; in xgene_enet_wr_diag_csr()
62 static void xgene_enet_wr_pcs(struct xgene_enet_pdata *pdata, in xgene_enet_wr_pcs() argument
67 addr = pdata->pcs_addr + PCS_ADDR_REG_OFFSET; in xgene_enet_wr_pcs()
68 wr = pdata->pcs_addr + PCS_WRITE_REG_OFFSET; in xgene_enet_wr_pcs()
69 cmd = pdata->pcs_addr + PCS_COMMAND_REG_OFFSET; in xgene_enet_wr_pcs()
[all …]
/linux/drivers/net/ethernet/synopsys/
H A Ddwc-xlgmac-common.c32 static void xlgmac_read_mac_addr(struct xlgmac_pdata *pdata) in xlgmac_read_mac_addr() argument
34 struct net_device *netdev = pdata->netdev; in xlgmac_read_mac_addr()
37 memcpy(pdata->mac_addr, dev_addr, netdev->addr_len); in xlgmac_read_mac_addr()
40 static void xlgmac_default_config(struct xlgmac_pdata *pdata) in xlgmac_default_config() argument
42 pdata->tx_osp_mode = DMA_OSP_ENABLE; in xlgmac_default_config()
43 pdata->tx_sf_mode = MTL_TSF_ENABLE; in xlgmac_default_config()
44 pdata->rx_sf_mode = MTL_RSF_DISABLE; in xlgmac_default_config()
45 pdata->pblx8 = DMA_PBL_X8_ENABLE; in xlgmac_default_config()
46 pdata->tx_pbl = DMA_PBL_32; in xlgmac_default_config()
47 pdata->rx_pbl = DMA_PBL_32; in xlgmac_default_config()
[all …]
H A Ddwc-xlgmac-hw.c36 static int xlgmac_disable_rx_csum(struct xlgmac_pdata *pdata) in xlgmac_disable_rx_csum() argument
40 regval = readl(pdata->mac_regs + MAC_RCR); in xlgmac_disable_rx_csum()
43 writel(regval, pdata->mac_regs + MAC_RCR); in xlgmac_disable_rx_csum()
48 static int xlgmac_enable_rx_csum(struct xlgmac_pdata *pdata) in xlgmac_enable_rx_csum() argument
52 regval = readl(pdata->mac_regs + MAC_RCR); in xlgmac_enable_rx_csum()
55 writel(regval, pdata->mac_regs + MAC_RCR); in xlgmac_enable_rx_csum()
60 static int xlgmac_set_mac_address(struct xlgmac_pdata *pdata, const u8 *addr) in xlgmac_set_mac_address() argument
68 writel(mac_addr_hi, pdata->mac_regs + MAC_MACA0HR); in xlgmac_set_mac_address()
69 writel(mac_addr_lo, pdata->mac_regs + MAC_MACA0LR); in xlgmac_set_mac_address()
74 static void xlgmac_set_mac_reg(struct xlgmac_pdata *pdata, in xlgmac_set_mac_reg() argument
[all …]
H A Ddwc-xlgmac-net.c43 struct xlgmac_pdata *pdata = channel->pdata; in xlgmac_maybe_stop_tx_queue() local
46 netif_info(pdata, drv, pdata->netdev, in xlgmac_maybe_stop_tx_queue()
48 netif_stop_subqueue(pdata->netdev, channel->queue_index); in xlgmac_maybe_stop_tx_queue()
55 pdata->hw_ops.tx_start_xmit(channel, ring); in xlgmac_maybe_stop_tx_queue()
114 static void xlgmac_prep_tx_pkt(struct xlgmac_pdata *pdata, in xlgmac_prep_tx_pkt() argument
207 static void xlgmac_enable_rx_tx_ints(struct xlgmac_pdata *pdata) in xlgmac_enable_rx_tx_ints() argument
209 struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; in xlgmac_enable_rx_tx_ints()
214 channel = pdata->channel_head; in xlgmac_enable_rx_tx_ints()
215 for (i = 0; i < pdata->channel_count; i++, channel++) { in xlgmac_enable_rx_tx_ints()
229 static void xlgmac_disable_rx_tx_ints(struct xlgmac_pdata *pdata) in xlgmac_disable_rx_tx_ints() argument
[all …]
H A Ddwc-xlgmac-desc.c21 static void xlgmac_unmap_desc_data(struct xlgmac_pdata *pdata, in xlgmac_unmap_desc_data() argument
26 dma_unmap_page(pdata->dev, desc_data->skb_dma, in xlgmac_unmap_desc_data()
29 dma_unmap_single(pdata->dev, desc_data->skb_dma, in xlgmac_unmap_desc_data()
45 dma_unmap_page(pdata->dev, desc_data->rx.hdr.pa_unmap.pages_dma, in xlgmac_unmap_desc_data()
55 dma_unmap_page(pdata->dev, desc_data->rx.buf.pa_unmap.pages_dma, in xlgmac_unmap_desc_data()
74 static void xlgmac_free_ring(struct xlgmac_pdata *pdata, in xlgmac_free_ring() argument
86 xlgmac_unmap_desc_data(pdata, desc_data); in xlgmac_free_ring()
94 dma_unmap_page(pdata->dev, ring->rx_hdr_pa.pages_dma, in xlgmac_free_ring()
105 dma_unmap_page(pdata->dev, ring->rx_buf_pa.pages_dma, in xlgmac_free_ring()
116 dma_free_coherent(pdata->dev, in xlgmac_free_ring()
[all …]
/linux/drivers/gpu/drm/bridge/
H A Dti-sn65dsi86.c224 static int __maybe_unused ti_sn65dsi86_read_u16(struct ti_sn65dsi86 *pdata, in ti_sn65dsi86_read_u16() argument
230 ret = regmap_bulk_read(pdata->regmap, reg, buf, ARRAY_SIZE(buf)); in ti_sn65dsi86_read_u16()
239 static void ti_sn65dsi86_write_u16(struct ti_sn65dsi86 *pdata, in ti_sn65dsi86_write_u16() argument
244 regmap_bulk_write(pdata->regmap, reg, buf, ARRAY_SIZE(buf)); in ti_sn65dsi86_write_u16()
247 static u32 ti_sn_bridge_get_dsi_freq(struct ti_sn65dsi86 *pdata) in ti_sn_bridge_get_dsi_freq() argument
251 &pdata->bridge.encoder->crtc->state->adjusted_mode; in ti_sn_bridge_get_dsi_freq()
254 mipi_dsi_pixel_format_to_bpp(pdata->dsi->format); in ti_sn_bridge_get_dsi_freq()
255 clk_freq_khz = bit_rate_khz / (pdata->dsi->lanes * 2); in ti_sn_bridge_get_dsi_freq()
278 static void ti_sn_bridge_set_refclk_freq(struct ti_sn65dsi86 *pdata) in ti_sn_bridge_set_refclk_freq() argument
285 if (pdata->refclk) { in ti_sn_bridge_set_refclk_freq()
[all …]
/linux/drivers/usb/misc/
H A Dappledisplay.c79 struct appledisplay *pdata = urb->context; in appledisplay_complete() local
80 struct device *dev = &pdata->udev->dev; in appledisplay_complete()
91 ACD_URB_BUFFER_LEN, pdata->urb->actual_length); in appledisplay_complete()
106 switch(pdata->urbdata[1]) { in appledisplay_complete()
109 pdata->button_pressed = 1; in appledisplay_complete()
114 if (pdata->bd ) in appledisplay_complete()
115 schedule_delayed_work(&pdata->work, 0); in appledisplay_complete()
119 pdata->button_pressed = 0; in appledisplay_complete()
124 retval = usb_submit_urb(pdata->urb, GFP_ATOMIC); in appledisplay_complete()
133 struct appledisplay *pdata = bl_get_data(bd); in appledisplay_bl_update_status() local
[all …]
/linux/drivers/rtc/
H A Drtc-mxc_v2.c75 struct mxc_rtc_data *pdata = dev_get_drvdata(dev); in mxc_rtc_interrupt() local
76 void __iomem *ioaddr = pdata->ioaddr; in mxc_rtc_interrupt()
80 spin_lock(&pdata->lock); in mxc_rtc_interrupt()
81 if (clk_enable(pdata->clk)) { in mxc_rtc_interrupt()
82 spin_unlock(&pdata->lock); in mxc_rtc_interrupt()
92 rtc_update_irq(pdata->rtc, 1, RTC_AF | RTC_IRQF); in mxc_rtc_interrupt()
105 clk_disable(pdata->clk); in mxc_rtc_interrupt()
106 spin_unlock(&pdata->lock); in mxc_rtc_interrupt()
114 static int mxc_rtc_lock(struct mxc_rtc_data *const pdata) in mxc_rtc_lock() argument
118 spin_lock_irq(&pdata->lock); in mxc_rtc_lock()
[all …]
H A Drtc-pic32.c65 static void pic32_rtc_alarm_clk_enable(struct pic32_rtc_dev *pdata, in pic32_rtc_alarm_clk_enable() argument
70 spin_lock_irqsave(&pdata->alarm_lock, flags); in pic32_rtc_alarm_clk_enable()
72 if (!pdata->alarm_clk_enabled) { in pic32_rtc_alarm_clk_enable()
73 clk_enable(pdata->clk); in pic32_rtc_alarm_clk_enable()
74 pdata->alarm_clk_enabled = true; in pic32_rtc_alarm_clk_enable()
77 if (pdata->alarm_clk_enabled) { in pic32_rtc_alarm_clk_enable()
78 clk_disable(pdata->clk); in pic32_rtc_alarm_clk_enable()
79 pdata->alarm_clk_enabled = false; in pic32_rtc_alarm_clk_enable()
82 spin_unlock_irqrestore(&pdata->alarm_lock, flags); in pic32_rtc_alarm_clk_enable()
87 struct pic32_rtc_dev *pdata = (struct pic32_rtc_dev *)id; in pic32_rtc_alarmirq() local
[all …]
H A Drtc-ds1553.c73 struct rtc_plat_data *pdata = dev_get_drvdata(dev); in ds1553_rtc_set_time() local
74 void __iomem *ioaddr = pdata->ioaddr; in ds1553_rtc_set_time()
79 writeb(RTC_WRITE, pdata->ioaddr + RTC_CONTROL); in ds1553_rtc_set_time()
97 struct rtc_plat_data *pdata = dev_get_drvdata(dev); in ds1553_rtc_read_time() local
98 void __iomem *ioaddr = pdata->ioaddr; in ds1553_rtc_read_time()
103 if (pdata->last_jiffies == jiffies) in ds1553_rtc_read_time()
105 pdata->last_jiffies = jiffies; in ds1553_rtc_read_time()
128 static void ds1553_rtc_update_alarm(struct rtc_plat_data *pdata) in ds1553_rtc_update_alarm() argument
130 void __iomem *ioaddr = pdata->ioaddr; in ds1553_rtc_update_alarm()
133 spin_lock_irqsave(&pdata->lock, flags); in ds1553_rtc_update_alarm()
[all …]
H A Drtc-stk17ta8.c74 struct rtc_plat_data *pdata = dev_get_drvdata(dev); in stk17ta8_rtc_set_time() local
75 void __iomem *ioaddr = pdata->ioaddr; in stk17ta8_rtc_set_time()
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()
90 writeb(flags & ~RTC_WRITE, pdata->ioaddr + RTC_FLAGS); in stk17ta8_rtc_set_time()
96 struct rtc_plat_data *pdata = dev_get_drvdata(dev); in stk17ta8_rtc_read_time() local
97 void __iomem *ioaddr = pdata->ioaddr; in stk17ta8_rtc_read_time()
103 if (pdata->last_jiffies == jiffies) in stk17ta8_rtc_read_time()
105 pdata->last_jiffies = jiffies; in stk17ta8_rtc_read_time()
107 flags = readb(pdata->ioaddr + RTC_FLAGS); in stk17ta8_rtc_read_time()
[all …]
/linux/drivers/edac/
H A Dmpc85xx_edac.c52 struct mpc85xx_pci_pdata *pdata = pci->pvt_info; in mpc85xx_pci_check() local
55 err_detect = in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR); in mpc85xx_pci_check()
59 out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR, err_detect); in mpc85xx_pci_check()
67 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_ATTRIB)); in mpc85xx_pci_check()
69 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_ADDR)); in mpc85xx_pci_check()
71 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EXT_ADDR)); in mpc85xx_pci_check()
73 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DL)); in mpc85xx_pci_check()
75 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DH)); in mpc85xx_pci_check()
78 out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR, err_detect); in mpc85xx_pci_check()
89 struct mpc85xx_pci_pdata *pdata = pci->pvt_info; in mpc85xx_pcie_check() local
[all …]
/linux/drivers/tty/serial/8250/
H A D8250_fintek.c103 static u8 sio_read_reg(struct fintek_8250 *pdata, u8 reg) in sio_read_reg() argument
105 outb(reg, pdata->base_port + ADDR_PORT); in sio_read_reg()
106 return inb(pdata->base_port + DATA_PORT); in sio_read_reg()
109 static void sio_write_reg(struct fintek_8250 *pdata, u8 reg, u8 data) in sio_write_reg() argument
111 outb(reg, pdata->base_port + ADDR_PORT); in sio_write_reg()
112 outb(data, pdata->base_port + DATA_PORT); in sio_write_reg()
115 static void sio_write_mask_reg(struct fintek_8250 *pdata, u8 reg, u8 mask, in sio_write_mask_reg() argument
120 tmp = (sio_read_reg(pdata, reg) & ~mask) | (mask & data); in sio_write_mask_reg()
121 sio_write_reg(pdata, reg, tmp); in sio_write_mask_reg()
144 static int fintek_8250_check_id(struct fintek_8250 *pdata) in fintek_8250_check_id() argument
[all …]

12345678910>>...40