/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-mdio.c | 128 static void xgbe_an_enable_kr_training(struct xgbe_prv_data *pdata) in xgbe_an_enable_kr_training() argument 132 reg = XMDIO_READ(pdata, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL); in xgbe_an_enable_kr_training() 135 XMDIO_WRITE(pdata, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL, reg); in xgbe_an_enable_kr_training() 138 static void xgbe_an_disable_kr_training(struct xgbe_prv_data *pdata) in xgbe_an_disable_kr_training() argument 142 reg = XMDIO_READ(pdata, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL); in xgbe_an_disable_kr_training() 145 XMDIO_WRITE(pdata, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL, reg); in xgbe_an_disable_kr_training() 148 static void xgbe_pcs_power_cycle(struct xgbe_prv_data *pdata) in xgbe_pcs_power_cycle() argument 152 reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL1); in xgbe_pcs_power_cycle() 155 XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, reg); in xgbe_pcs_power_cycle() 160 XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, reg); in xgbe_pcs_power_cycle() [all …]
|
D | xgbe-dev.c | 126 static unsigned int xgbe_usec_to_riwt(struct xgbe_prv_data *pdata, in xgbe_usec_to_riwt() argument 134 rate = pdata->sysclk_rate; in xgbe_usec_to_riwt() 149 static unsigned int xgbe_riwt_to_usec(struct xgbe_prv_data *pdata, in xgbe_riwt_to_usec() argument 157 rate = pdata->sysclk_rate; in xgbe_riwt_to_usec() 172 static int xgbe_config_pblx8(struct xgbe_prv_data *pdata) in xgbe_config_pblx8() argument 177 channel = pdata->channel; in xgbe_config_pblx8() 178 for (i = 0; i < pdata->channel_count; i++, channel++) in xgbe_config_pblx8() 180 pdata->pblx8); in xgbe_config_pblx8() 185 static int xgbe_get_tx_pbl_val(struct xgbe_prv_data *pdata) in xgbe_get_tx_pbl_val() argument 187 return XGMAC_DMA_IOREAD_BITS(pdata->channel, DMA_CH_TCR, PBL); in xgbe_get_tx_pbl_val() [all …]
|
D | xgbe-main.c | 184 static void xgbe_default_config(struct xgbe_prv_data *pdata) in xgbe_default_config() argument 188 pdata->pblx8 = DMA_PBL_X8_ENABLE; in xgbe_default_config() 189 pdata->tx_sf_mode = MTL_TSF_ENABLE; in xgbe_default_config() 190 pdata->tx_threshold = MTL_TX_THRESHOLD_64; in xgbe_default_config() 191 pdata->tx_pbl = DMA_PBL_16; in xgbe_default_config() 192 pdata->tx_osp_mode = DMA_OSP_ENABLE; in xgbe_default_config() 193 pdata->rx_sf_mode = MTL_RSF_DISABLE; in xgbe_default_config() 194 pdata->rx_threshold = MTL_RX_THRESHOLD_64; in xgbe_default_config() 195 pdata->rx_pbl = DMA_PBL_16; in xgbe_default_config() 196 pdata->pause_autoneg = 1; in xgbe_default_config() [all …]
|
D | xgbe-drv.c | 133 static int xgbe_alloc_channels(struct xgbe_prv_data *pdata) in xgbe_alloc_channels() argument 140 count = max_t(unsigned int, pdata->tx_ring_count, pdata->rx_ring_count); in xgbe_alloc_channels() 146 tx_ring = kcalloc(pdata->tx_ring_count, sizeof(struct xgbe_ring), in xgbe_alloc_channels() 151 rx_ring = kcalloc(pdata->rx_ring_count, sizeof(struct xgbe_ring), in xgbe_alloc_channels() 158 channel->pdata = pdata; in xgbe_alloc_channels() 160 channel->dma_regs = pdata->xgmac_regs + DMA_CH_BASE + in xgbe_alloc_channels() 163 if (pdata->per_channel_irq) { in xgbe_alloc_channels() 165 ret = platform_get_irq(pdata->pdev, i + 1); in xgbe_alloc_channels() 167 netdev_err(pdata->netdev, in xgbe_alloc_channels() 176 if (i < pdata->tx_ring_count) { in xgbe_alloc_channels() [all …]
|
D | xgbe-dcb.c | 126 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 …]
|
D | xgbe-ptp.c | 127 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_adjfreq() local 152 adjust = pdata->tstamp_addend; in xgbe_adjfreq() 156 addend = (neg_adjust) ? pdata->tstamp_addend - diff : in xgbe_adjfreq() 157 pdata->tstamp_addend + diff; in xgbe_adjfreq() 159 spin_lock_irqsave(&pdata->tstamp_lock, flags); in xgbe_adjfreq() 161 pdata->hw_if.update_tstamp_addend(pdata, addend); in xgbe_adjfreq() 163 spin_unlock_irqrestore(&pdata->tstamp_lock, flags); in xgbe_adjfreq() 170 struct xgbe_prv_data *pdata = container_of(info, in xgbe_adjtime() local [all …]
|
D | xgbe-ethtool.c | 205 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_ethtool_stats() local 209 pdata->hw_if.read_mmc_stats(pdata); in xgbe_get_ethtool_stats() 211 stat = (u8 *)pdata + xgbe_gstring_stats[i].stat_offset; in xgbe_get_ethtool_stats() 235 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_pauseparam() local 237 pause->autoneg = pdata->phy.pause_autoneg; in xgbe_get_pauseparam() 238 pause->tx_pause = pdata->phy.tx_pause; in xgbe_get_pauseparam() 239 pause->rx_pause = pdata->phy.rx_pause; in xgbe_get_pauseparam() 245 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_pauseparam() local 248 if (pause->autoneg && (pdata->phy.autoneg != AUTONEG_ENABLE)) { in xgbe_set_pauseparam() 254 pdata->phy.pause_autoneg = pause->autoneg; in xgbe_set_pauseparam() [all …]
|
D | xgbe-debugfs.c | 177 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->debugfs_xgmac_reg, value); in xgmac_reg_value_write() 237 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_mmd_read() local 239 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xpcs_mmd); in xpcs_mmd_read() [all …]
|
/drivers/net/ethernet/smsc/ |
D | smsc911x.c | 89 u32 (*reg_read)(struct smsc911x_data *pdata, u32 reg); 90 void (*reg_write)(struct smsc911x_data *pdata, u32 reg, u32 val); 91 void (*rx_readfifo)(struct smsc911x_data *pdata, 93 void (*tx_writefifo)(struct smsc911x_data *pdata, 159 #define __smsc_shift(pdata, reg) ((reg) << ((pdata)->config.shift)) argument 161 static inline u32 __smsc911x_reg_read(struct smsc911x_data *pdata, u32 reg) in __smsc911x_reg_read() argument 163 if (pdata->config.flags & SMSC911X_USE_32BIT) in __smsc911x_reg_read() 164 return readl(pdata->ioaddr + reg); in __smsc911x_reg_read() 166 if (pdata->config.flags & SMSC911X_USE_16BIT) in __smsc911x_reg_read() 167 return ((readw(pdata->ioaddr + reg) & 0xFFFF) | in __smsc911x_reg_read() [all …]
|
/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_xgmac.c | 27 static void xgene_enet_wr_csr(struct xgene_enet_pdata *pdata, in xgene_enet_wr_csr() argument 30 void __iomem *addr = pdata->eth_csr_addr + offset; in xgene_enet_wr_csr() 35 static void xgene_enet_wr_ring_if(struct xgene_enet_pdata *pdata, in xgene_enet_wr_ring_if() argument 38 void __iomem *addr = pdata->eth_ring_if_addr + offset; in xgene_enet_wr_ring_if() 43 static void xgene_enet_wr_diag_csr(struct xgene_enet_pdata *pdata, in xgene_enet_wr_diag_csr() argument 46 void __iomem *addr = pdata->eth_diag_csr_addr + offset; in xgene_enet_wr_diag_csr() 74 static void xgene_enet_wr_mac(struct xgene_enet_pdata *pdata, in xgene_enet_wr_mac() argument 79 addr = pdata->mcx_mac_addr + MAC_ADDR_REG_OFFSET; in xgene_enet_wr_mac() 80 wr = pdata->mcx_mac_addr + MAC_WRITE_REG_OFFSET; in xgene_enet_wr_mac() 81 cmd = pdata->mcx_mac_addr + MAC_COMMAND_REG_OFFSET; in xgene_enet_wr_mac() [all …]
|
D | xgene_enet_hw.c | 75 struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); in xgene_enet_ring_wr32() local 77 iowrite32(data, pdata->ring_csr_addr + offset); in xgene_enet_ring_wr32() 83 struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); in xgene_enet_ring_rd32() local 85 *data = ioread32(pdata->ring_csr_addr + offset); in xgene_enet_ring_rd32() 90 struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); in xgene_enet_write_ring_state() local 94 for (i = 0; i < pdata->ring_ops->num_ring_config; i++) { in xgene_enet_write_ring_state() 208 struct xgene_enet_pdata *pdata, in xgene_enet_parse_error() argument 241 static void xgene_enet_wr_csr(struct xgene_enet_pdata *pdata, in xgene_enet_wr_csr() argument 244 void __iomem *addr = pdata->eth_csr_addr + offset; in xgene_enet_wr_csr() 249 static void xgene_enet_wr_ring_if(struct xgene_enet_pdata *pdata, in xgene_enet_wr_ring_if() argument [all …]
|
D | xgene_enet_main.c | 55 struct xgene_enet_pdata *pdata; in xgene_enet_refill_bufpool() local 66 pdata = netdev_priv(ndev); in xgene_enet_refill_bufpool() 92 pdata->ring_ops->wr_cmd(buf_pool, nbuf); in xgene_enet_refill_bufpool() 140 struct xgene_enet_pdata *pdata = netdev_priv(cp_ring->ndev); in xgene_enet_tx_completion() local 167 spin_lock(&pdata->mss_lock); in xgene_enet_tx_completion() 168 pdata->mss_refcnt[mss_index]--; in xgene_enet_tx_completion() 169 spin_unlock(&pdata->mss_lock); in xgene_enet_tx_completion() 192 struct xgene_enet_pdata *pdata = netdev_priv(ndev); in xgene_enet_setup_mss() local 197 spin_lock(&pdata->mss_lock); in xgene_enet_setup_mss() 201 if (pdata->mss[i] == mss) { in xgene_enet_setup_mss() [all …]
|
/drivers/input/keyboard/ |
D | matrix_keypad.c | 30 const struct matrix_keypad_platform_data *pdata; member 49 static void __activate_col(const struct matrix_keypad_platform_data *pdata, in __activate_col() argument 52 bool level_on = !pdata->active_low; in __activate_col() 55 gpio_direction_output(pdata->col_gpios[col], level_on); in __activate_col() 57 gpio_set_value_cansleep(pdata->col_gpios[col], !level_on); in __activate_col() 58 gpio_direction_input(pdata->col_gpios[col]); in __activate_col() 62 static void activate_col(const struct matrix_keypad_platform_data *pdata, in activate_col() argument 65 __activate_col(pdata, col, on); in activate_col() 67 if (on && pdata->col_scan_delay_us) in activate_col() 68 udelay(pdata->col_scan_delay_us); in activate_col() [all …]
|
/drivers/usb/misc/ |
D | appledisplay.c | 91 struct appledisplay *pdata = urb->context; in appledisplay_complete() local 92 struct device *dev = &pdata->udev->dev; in appledisplay_complete() 104 ACD_URB_BUFFER_LEN, pdata->urb->actual_length); in appledisplay_complete() 118 spin_lock_irqsave(&pdata->lock, flags); in appledisplay_complete() 120 switch(pdata->urbdata[1]) { in appledisplay_complete() 123 pdata->button_pressed = 1; in appledisplay_complete() 124 schedule_delayed_work(&pdata->work, 0); in appledisplay_complete() 128 pdata->button_pressed = 0; in appledisplay_complete() 132 spin_unlock_irqrestore(&pdata->lock, flags); in appledisplay_complete() 135 retval = usb_submit_urb(pdata->urb, GFP_ATOMIC); in appledisplay_complete() [all …]
|
/drivers/power/supply/ |
D | max8903_charger.c | 35 struct max8903_pdata *pdata; member 59 if (gpio_is_valid(data->pdata->chg)) { in max8903_get_property() 60 if (gpio_get_value(data->pdata->chg) == 0) in max8903_get_property() 88 struct max8903_pdata *pdata = data->pdata; in max8903_dcin() local 92 ta_in = gpio_get_value(pdata->dok) ? false : true; in max8903_dcin() 100 if (gpio_is_valid(pdata->dcm)) in max8903_dcin() 101 gpio_set_value(pdata->dcm, ta_in ? 1 : 0); in max8903_dcin() 104 if (gpio_is_valid(pdata->cen)) in max8903_dcin() 105 gpio_set_value(pdata->cen, ta_in ? 0 : in max8903_dcin() 129 struct max8903_pdata *pdata = data->pdata; in max8903_usbin() local [all …]
|
D | wm97xx_battery.c | 34 struct wm97xx_batt_pdata *pdata = wmdata->batt_pdata; in wm97xx_read_bat() local 37 pdata->batt_aux) * pdata->batt_mult / in wm97xx_read_bat() 38 pdata->batt_div; in wm97xx_read_bat() 44 struct wm97xx_batt_pdata *pdata = wmdata->batt_pdata; in wm97xx_read_temp() local 47 pdata->temp_aux) * pdata->temp_mult / in wm97xx_read_temp() 48 pdata->temp_div; in wm97xx_read_temp() 56 struct wm97xx_batt_pdata *pdata = wmdata->batt_pdata; in wm97xx_bat_get_property() local 63 val->intval = pdata->batt_tech; in wm97xx_bat_get_property() 66 if (pdata->batt_aux >= 0) in wm97xx_bat_get_property() 72 if (pdata->temp_aux >= 0) in wm97xx_bat_get_property() [all …]
|
D | s3c_adc_battery.c | 33 struct s3c_adc_bat_pdata *pdata; member 87 bat->pdata->backup_volt_samples, in s3c_adc_backup_bat_get_property() 88 bat->pdata->backup_volt_channel); in s3c_adc_backup_bat_get_property() 89 bat->volt_value *= bat->pdata->backup_volt_mult; in s3c_adc_backup_bat_get_property() 98 val->intval = bat->pdata->backup_volt_min; in s3c_adc_backup_bat_get_property() 101 val->intval = bat->pdata->backup_volt_max; in s3c_adc_backup_bat_get_property() 135 return bat->pdata->gpio_inverted ? in charge_finished() 136 !gpio_get_value(bat->pdata->gpio_charge_finished) : in charge_finished() 137 gpio_get_value(bat->pdata->gpio_charge_finished); in charge_finished() 156 lut = bat->pdata->lut_noac; in s3c_adc_bat_get_property() [all …]
|
/drivers/w1/masters/ |
D | w1-gpio.c | 28 struct w1_gpio_platform_data *pdata = data; in w1_gpio_set_pullup() local 31 pdata->pullup_duration = delay; in w1_gpio_set_pullup() 33 if (pdata->pullup_duration) { in w1_gpio_set_pullup() 34 gpio_direction_output(pdata->pin, 1); in w1_gpio_set_pullup() 36 msleep(pdata->pullup_duration); in w1_gpio_set_pullup() 38 gpio_direction_input(pdata->pin); in w1_gpio_set_pullup() 40 pdata->pullup_duration = 0; in w1_gpio_set_pullup() 48 struct w1_gpio_platform_data *pdata = data; in w1_gpio_write_bit_dir() local 51 gpio_direction_input(pdata->pin); in w1_gpio_write_bit_dir() 53 gpio_direction_output(pdata->pin, 0); in w1_gpio_write_bit_dir() [all …]
|
/drivers/edac/ |
D | mpc85xx_edac.c | 52 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 …]
|
D | mv64x60_edac.c | 33 struct mv64x60_pci_pdata *pdata = pci->pvt_info; in mv64x60_pci_check() local 36 cause = in_le32(pdata->pci_vbase + MV64X60_PCI_ERROR_CAUSE); in mv64x60_pci_check() 40 printk(KERN_ERR "Error in PCI %d Interface\n", pdata->pci_hose); in mv64x60_pci_check() 43 in_le32(pdata->pci_vbase + MV64X60_PCI_ERROR_ADDR_LO)); in mv64x60_pci_check() 45 in_le32(pdata->pci_vbase + MV64X60_PCI_ERROR_ADDR_HI)); in mv64x60_pci_check() 47 in_le32(pdata->pci_vbase + MV64X60_PCI_ERROR_ATTR)); in mv64x60_pci_check() 49 in_le32(pdata->pci_vbase + MV64X60_PCI_ERROR_CMD)); in mv64x60_pci_check() 50 out_le32(pdata->pci_vbase + MV64X60_PCI_ERROR_CAUSE, ~cause); in mv64x60_pci_check() 62 struct mv64x60_pci_pdata *pdata = pci->pvt_info; in mv64x60_pci_isr() local 65 val = in_le32(pdata->pci_vbase + MV64X60_PCI_ERROR_CAUSE); in mv64x60_pci_isr() [all …]
|
/drivers/rtc/ |
D | rtc-stk17ta8.c | 78 struct rtc_plat_data *pdata = platform_get_drvdata(pdev); in stk17ta8_rtc_set_time() local 79 void __iomem *ioaddr = pdata->ioaddr; in stk17ta8_rtc_set_time() 82 flags = readb(pdata->ioaddr + RTC_FLAGS); in stk17ta8_rtc_set_time() 83 writeb(flags | RTC_WRITE, pdata->ioaddr + RTC_FLAGS); in stk17ta8_rtc_set_time() 94 writeb(flags & ~RTC_WRITE, pdata->ioaddr + RTC_FLAGS); in stk17ta8_rtc_set_time() 101 struct rtc_plat_data *pdata = platform_get_drvdata(pdev); in stk17ta8_rtc_read_time() local 102 void __iomem *ioaddr = pdata->ioaddr; in stk17ta8_rtc_read_time() 108 if (pdata->last_jiffies == jiffies) in stk17ta8_rtc_read_time() 110 pdata->last_jiffies = jiffies; in stk17ta8_rtc_read_time() 112 flags = readb(pdata->ioaddr + RTC_FLAGS); in stk17ta8_rtc_read_time() [all …]
|
D | rtc-pic32.c | 73 static void pic32_rtc_alarm_clk_enable(struct pic32_rtc_dev *pdata, in pic32_rtc_alarm_clk_enable() argument 78 spin_lock_irqsave(&pdata->alarm_lock, flags); in pic32_rtc_alarm_clk_enable() 80 if (!pdata->alarm_clk_enabled) { in pic32_rtc_alarm_clk_enable() 81 clk_enable(pdata->clk); in pic32_rtc_alarm_clk_enable() 82 pdata->alarm_clk_enabled = true; in pic32_rtc_alarm_clk_enable() 85 if (pdata->alarm_clk_enabled) { in pic32_rtc_alarm_clk_enable() 86 clk_disable(pdata->clk); in pic32_rtc_alarm_clk_enable() 87 pdata->alarm_clk_enabled = false; in pic32_rtc_alarm_clk_enable() 90 spin_unlock_irqrestore(&pdata->alarm_lock, flags); in pic32_rtc_alarm_clk_enable() 95 struct pic32_rtc_dev *pdata = (struct pic32_rtc_dev *)id; in pic32_rtc_alarmirq() local [all …]
|
D | rtc-ds1553.c | 77 struct rtc_plat_data *pdata = platform_get_drvdata(pdev); in ds1553_rtc_set_time() local 78 void __iomem *ioaddr = pdata->ioaddr; in ds1553_rtc_set_time() 83 writeb(RTC_WRITE, pdata->ioaddr + RTC_CONTROL); in ds1553_rtc_set_time() 102 struct rtc_plat_data *pdata = platform_get_drvdata(pdev); in ds1553_rtc_read_time() local 103 void __iomem *ioaddr = pdata->ioaddr; in ds1553_rtc_read_time() 108 if (pdata->last_jiffies == jiffies) in ds1553_rtc_read_time() 110 pdata->last_jiffies = jiffies; in ds1553_rtc_read_time() 137 static void ds1553_rtc_update_alarm(struct rtc_plat_data *pdata) in ds1553_rtc_update_alarm() argument 139 void __iomem *ioaddr = pdata->ioaddr; in ds1553_rtc_update_alarm() 142 spin_lock_irqsave(&pdata->lock, flags); in ds1553_rtc_update_alarm() [all …]
|
D | rtc-xgene.c | 59 struct xgene_rtc_dev *pdata = dev_get_drvdata(dev); in xgene_rtc_read_time() local 61 rtc_time_to_tm(readl(pdata->csr_base + RTC_CCVR), tm); in xgene_rtc_read_time() 67 struct xgene_rtc_dev *pdata = dev_get_drvdata(dev); in xgene_rtc_set_mmss() local 73 writel((u32) secs, pdata->csr_base + RTC_CLR); in xgene_rtc_set_mmss() 74 readl(pdata->csr_base + RTC_CLR); /* Force a barrier */ in xgene_rtc_set_mmss() 81 struct xgene_rtc_dev *pdata = dev_get_drvdata(dev); in xgene_rtc_read_alarm() local 83 rtc_time_to_tm(pdata->alarm_time, &alrm->time); in xgene_rtc_read_alarm() 84 alrm->enabled = readl(pdata->csr_base + RTC_CCR) & RTC_CCR_IE; in xgene_rtc_read_alarm() 91 struct xgene_rtc_dev *pdata = dev_get_drvdata(dev); in xgene_rtc_alarm_irq_enable() local 94 ccr = readl(pdata->csr_base + RTC_CCR); in xgene_rtc_alarm_irq_enable() [all …]
|
/drivers/i2c/busses/ |
D | i2c-gpio.c | 24 struct i2c_gpio_platform_data pdata; member 30 struct i2c_gpio_platform_data *pdata = data; in i2c_gpio_setsda_dir() local 33 gpio_direction_input(pdata->sda_pin); in i2c_gpio_setsda_dir() 35 gpio_direction_output(pdata->sda_pin, 0); in i2c_gpio_setsda_dir() 45 struct i2c_gpio_platform_data *pdata = data; in i2c_gpio_setsda_val() local 47 gpio_set_value(pdata->sda_pin, state); in i2c_gpio_setsda_val() 53 struct i2c_gpio_platform_data *pdata = data; in i2c_gpio_setscl_dir() local 56 gpio_direction_input(pdata->scl_pin); in i2c_gpio_setscl_dir() 58 gpio_direction_output(pdata->scl_pin, 0); in i2c_gpio_setscl_dir() 69 struct i2c_gpio_platform_data *pdata = data; in i2c_gpio_setscl_val() local [all …]
|