Home
last modified time | relevance | path

Searched refs:priv (Results 1 – 25 of 3238) sorted by relevance

12345678910>>...130

/linux/drivers/net/wireless/marvell/libertas/
H A Dmain.c102 int lbs_set_iface_type(struct lbs_private *priv, enum nl80211_iftype type) in lbs_set_iface_type() argument
108 ret = lbs_set_monitor_mode(priv, 1); in lbs_set_iface_type()
111 if (priv->wdev->iftype == NL80211_IFTYPE_MONITOR) in lbs_set_iface_type()
112 ret = lbs_set_monitor_mode(priv, 0); in lbs_set_iface_type()
114 ret = lbs_set_snmp_mib(priv, SNMP_MIB_OID_BSS_TYPE, 1); in lbs_set_iface_type()
117 if (priv->wdev->iftype == NL80211_IFTYPE_MONITOR) in lbs_set_iface_type()
118 ret = lbs_set_monitor_mode(priv, 0); in lbs_set_iface_type()
120 ret = lbs_set_snmp_mib(priv, SNMP_MIB_OID_BSS_TYPE, 2); in lbs_set_iface_type()
128 int lbs_start_iface(struct lbs_private *priv) in lbs_start_iface() argument
133 if (priv->power_restore) { in lbs_start_iface()
[all …]
/linux/drivers/media/dvb-frontends/
H A Dcxd2841er.c200 static int cxd2841er_freeze_regs(struct cxd2841er_priv *priv);
201 static int cxd2841er_unfreeze_regs(struct cxd2841er_priv *priv);
203 static void cxd2841er_i2c_debug(struct cxd2841er_priv *priv, in cxd2841er_i2c_debug() argument
207 dev_dbg(&priv->i2c->dev, in cxd2841er_i2c_debug()
212 static int cxd2841er_write_regs(struct cxd2841er_priv *priv, in cxd2841er_write_regs() argument
218 priv->i2c_addr_slvx : priv->i2c_addr_slvt); in cxd2841er_write_regs()
229 dev_warn(&priv->i2c->dev, "wr reg=%04x: len=%d is too big!\n", in cxd2841er_write_regs()
234 cxd2841er_i2c_debug(priv, i2c_addr, reg, 1, data, len); in cxd2841er_write_regs()
238 ret = i2c_transfer(priv->i2c, msg, 1); in cxd2841er_write_regs()
242 dev_warn(&priv->i2c->dev, in cxd2841er_write_regs()
[all …]
/linux/sound/soc/codecs/
H A Dmt6359-accdet.c58 static void accdet_set_debounce(struct mt6359_accdet *priv, int state,
60 static unsigned int adjust_eint_analog_setting(struct mt6359_accdet *priv);
61 static void config_digital_init_by_mode(struct mt6359_accdet *priv);
62 static void config_eint_init_by_mode(struct mt6359_accdet *priv);
63 static inline void mt6359_accdet_init(struct mt6359_accdet *priv);
64 static unsigned int mt6359_accdet_jd_setting(struct mt6359_accdet *priv);
65 static void mt6359_accdet_recover_jd_setting(struct mt6359_accdet *priv);
66 static void mt6359_accdet_jack_report(struct mt6359_accdet *priv);
67 static void recover_eint_analog_setting(struct mt6359_accdet *priv);
68 static void recover_eint_digital_setting(struct mt6359_accdet *priv);
[all …]
H A Dmt6358.c105 struct mt6358_priv *priv = snd_soc_component_get_drvdata(cmpnt); in mt6358_set_mtkaif_protocol() local
107 priv->mtkaif_protocol = mtkaif_protocol; in mt6358_set_mtkaif_protocol()
112 static void playback_gpio_set(struct mt6358_priv *priv) in playback_gpio_set() argument
115 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_set()
117 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_SET, in playback_gpio_set()
119 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_set()
123 static void playback_gpio_reset(struct mt6358_priv *priv) in playback_gpio_reset() argument
130 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_reset()
132 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_reset()
134 regmap_update_bits(priv->regmap, MT6358_GPIO_DIR0, in playback_gpio_reset()
[all …]
/linux/drivers/net/ethernet/google/gve/
H A Dgve_main.c42 static int gve_verify_driver_compatibility(struct gve_priv *priv) in gve_verify_driver_compatibility() argument
48 driver_info = dma_alloc_coherent(&priv->pdev->dev, in gve_verify_driver_compatibility()
71 err = gve_adminq_verify_driver_compatibility(priv, in gve_verify_driver_compatibility()
79 dma_free_coherent(&priv->pdev->dev, in gve_verify_driver_compatibility()
89 struct gve_priv *priv = netdev_priv(dev); in gve_features_check() local
91 if (!gve_is_gqi(priv)) in gve_features_check()
99 struct gve_priv *priv = netdev_priv(dev); in gve_start_xmit() local
101 if (gve_is_gqi(priv)) in gve_start_xmit()
109 struct gve_priv *priv = netdev_priv(dev); in gve_get_stats() local
115 num_tx_queues = gve_num_tx_queues(priv); in gve_get_stats()
[all …]
/linux/drivers/net/wireless/st/cw1200/
H A Dsta.c25 static void cw1200_do_join(struct cw1200_common *priv);
26 static void cw1200_do_unjoin(struct cw1200_common *priv);
28 static int cw1200_upload_beacon(struct cw1200_common *priv);
29 static int cw1200_upload_pspoll(struct cw1200_common *priv);
30 static int cw1200_upload_null(struct cw1200_common *priv);
31 static int cw1200_upload_qosnull(struct cw1200_common *priv);
32 static int cw1200_start_ap(struct cw1200_common *priv);
33 static int cw1200_update_beaconing(struct cw1200_common *priv);
34 static int cw1200_enable_beaconing(struct cw1200_common *priv,
40 static int __cw1200_flush(struct cw1200_common *priv, bool drop);
[all …]
H A Dscan.c15 static void cw1200_scan_restart_delayed(struct cw1200_common *priv);
17 static int cw1200_scan_start(struct cw1200_common *priv, struct wsm_scan *scan) in cw1200_scan_start() argument
22 switch (priv->join_status) { in cw1200_scan_start()
30 wiphy_dbg(priv->hw->wiphy, "[SCAN] hw req, type %d, %d channels, flags: 0x%x.\n", in cw1200_scan_start()
36 cancel_delayed_work_sync(&priv->clear_recent_scan_work); in cw1200_scan_start()
37 atomic_set(&priv->scan.in_progress, 1); in cw1200_scan_start()
38 atomic_set(&priv->recent_scan, 1); in cw1200_scan_start()
39 cw1200_pm_stay_awake(&priv->pm_state, msecs_to_jiffies(tmo)); in cw1200_scan_start()
40 queue_delayed_work(priv->workqueue, &priv->scan.timeout, in cw1200_scan_start()
42 ret = wsm_scan(priv, scan); in cw1200_scan_start()
[all …]
H A Dbh.c47 struct cw1200_common *priv = in cw1200_bh_work() local
49 cw1200_bh(priv); in cw1200_bh_work()
52 int cw1200_register_bh(struct cw1200_common *priv) in cw1200_register_bh() argument
56 priv->bh_workqueue = alloc_workqueue("cw1200_bh", in cw1200_register_bh()
60 if (!priv->bh_workqueue) in cw1200_register_bh()
63 INIT_WORK(&priv->bh_work, cw1200_bh_work); in cw1200_register_bh()
67 atomic_set(&priv->bh_rx, 0); in cw1200_register_bh()
68 atomic_set(&priv->bh_tx, 0); in cw1200_register_bh()
69 atomic_set(&priv->bh_term, 0); in cw1200_register_bh()
70 atomic_set(&priv->bh_suspend, CW1200_BH_RESUMED); in cw1200_register_bh()
[all …]
/linux/drivers/net/wireless/realtek/rtl8xxxu/
H A D8192e.c465 static int rtl8192eu_identify_chip(struct rtl8xxxu_priv *priv) in rtl8192eu_identify_chip() argument
467 struct device *dev = &priv->udev->dev; in rtl8192eu_identify_chip()
471 sys_cfg = rtl8xxxu_read32(priv, REG_SYS_CFG); in rtl8192eu_identify_chip()
472 priv->chip_cut = u32_get_bits(sys_cfg, SYS_CFG_CHIP_VERSION_MASK); in rtl8192eu_identify_chip()
479 bonding = rtl8xxxu_read32(priv, REG_HPON_FSM); in rtl8192eu_identify_chip()
482 strscpy(priv->chip_name, "8191EU", sizeof(priv->chip_name)); in rtl8192eu_identify_chip()
483 priv->tx_paths = 1; in rtl8192eu_identify_chip()
484 priv->rtl_chip = RTL8191E; in rtl8192eu_identify_chip()
486 strscpy(priv->chip_name, "8192EU", sizeof(priv->chip_name)); in rtl8192eu_identify_chip()
487 priv->tx_paths = 2; in rtl8192eu_identify_chip()
[all …]
H A D8192f.c392 static int rtl8192fu_identify_chip(struct rtl8xxxu_priv *priv) in rtl8192fu_identify_chip() argument
394 struct device *dev = &priv->udev->dev; in rtl8192fu_identify_chip()
397 strscpy(priv->chip_name, "8192FU", sizeof(priv->chip_name)); in rtl8192fu_identify_chip()
398 priv->rtl_chip = RTL8192F; in rtl8192fu_identify_chip()
399 priv->rf_paths = 2; in rtl8192fu_identify_chip()
400 priv->rx_paths = 2; in rtl8192fu_identify_chip()
401 priv->tx_paths = 2; in rtl8192fu_identify_chip()
403 sys_cfg = rtl8xxxu_read32(priv, REG_SYS_CFG); in rtl8192fu_identify_chip()
404 priv->chip_cut = u32_get_bits(sys_cfg, SYS_CFG_CHIP_VERSION_MASK); in rtl8192fu_identify_chip()
410 val32 = rtl8xxxu_read32(priv, REG_MULTI_FUNC_CTRL); in rtl8192fu_identify_chip()
[all …]
H A D8723b.c291 static int rtl8723bu_identify_chip(struct rtl8xxxu_priv *priv) in rtl8723bu_identify_chip() argument
293 struct device *dev = &priv->udev->dev; in rtl8723bu_identify_chip()
297 sys_cfg = rtl8xxxu_read32(priv, REG_SYS_CFG); in rtl8723bu_identify_chip()
298 priv->chip_cut = u32_get_bits(sys_cfg, SYS_CFG_CHIP_VERSION_MASK); in rtl8723bu_identify_chip()
305 strscpy(priv->chip_name, "8723BU", sizeof(priv->chip_name)); in rtl8723bu_identify_chip()
306 priv->rtl_chip = RTL8723B; in rtl8723bu_identify_chip()
307 priv->rf_paths = 1; in rtl8723bu_identify_chip()
308 priv->rx_paths = 1; in rtl8723bu_identify_chip()
309 priv->tx_paths = 1; in rtl8723bu_identify_chip()
311 val32 = rtl8xxxu_read32(priv, REG_MULTI_FUNC_CTRL); in rtl8723bu_identify_chip()
[all …]
H A D8710b.c463 static u32 rtl8710b_indirect_read32(struct rtl8xxxu_priv *priv, u32 addr) in rtl8710b_indirect_read32() argument
465 struct device *dev = &priv->udev->dev; in rtl8710b_indirect_read32()
475 mutex_lock(&priv->syson_indirect_access_mutex); in rtl8710b_indirect_read32()
477 rtl8xxxu_write32(priv, REG_USB_HOST_INDIRECT_ADDR_8710B, addr); in rtl8710b_indirect_read32()
478 rtl8xxxu_write32(priv, REG_EFUSE_INDIRECT_CTRL_8710B, NORMAL_REG_READ_OFFSET); in rtl8710b_indirect_read32()
481 val32 = rtl8xxxu_read32(priv, REG_EFUSE_INDIRECT_CTRL_8710B); in rtl8710b_indirect_read32()
488 value = rtl8xxxu_read32(priv, REG_USB_HOST_INDIRECT_DATA_8710B); in rtl8710b_indirect_read32()
490 mutex_unlock(&priv->syson_indirect_access_mutex); in rtl8710b_indirect_read32()
498 static void rtl8710b_indirect_write32(struct rtl8xxxu_priv *priv, u32 addr, u32 val) in rtl8710b_indirect_write32() argument
500 struct device *dev = &priv->udev->dev; in rtl8710b_indirect_write32()
[all …]
H A D8188f.c308 static int rtl8188fu_identify_chip(struct rtl8xxxu_priv *priv) in rtl8188fu_identify_chip() argument
310 struct device *dev = &priv->udev->dev; in rtl8188fu_identify_chip()
314 strscpy(priv->chip_name, "8188FU", sizeof(priv->chip_name)); in rtl8188fu_identify_chip()
315 priv->rtl_chip = RTL8188F; in rtl8188fu_identify_chip()
316 priv->rf_paths = 1; in rtl8188fu_identify_chip()
317 priv->rx_paths = 1; in rtl8188fu_identify_chip()
318 priv->tx_paths = 1; in rtl8188fu_identify_chip()
319 priv->has_wifi = 1; in rtl8188fu_identify_chip()
321 sys_cfg = rtl8xxxu_read32(priv, REG_SYS_CFG); in rtl8188fu_identify_chip()
322 priv->chip_cut = u32_get_bits(sys_cfg, SYS_CFG_CHIP_VERSION_MASK); in rtl8188fu_identify_chip()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dmain.c142 void iwl_update_chain_flags(struct iwl_priv *priv) in iwl_update_chain_flags() argument
146 for_each_context(priv, ctx) { in iwl_update_chain_flags()
147 iwlagn_set_rxon_chain(priv, ctx); in iwl_update_chain_flags()
149 iwlagn_commit_rxon(priv, ctx); in iwl_update_chain_flags()
154 static void iwl_set_beacon_tim(struct iwl_priv *priv, in iwl_set_beacon_tim() argument
177 IWL_WARN(priv, "Unable to find TIM Element in beacon\n"); in iwl_set_beacon_tim()
180 int iwlagn_send_beacon_cmd(struct iwl_priv *priv) in iwlagn_send_beacon_cmd() argument
196 lockdep_assert_held(&priv->mutex); in iwlagn_send_beacon_cmd()
198 if (!priv->beacon_ctx) { in iwlagn_send_beacon_cmd()
199 IWL_ERR(priv, "trying to build beacon w/o beacon context!\n"); in iwlagn_send_beacon_cmd()
[all …]
H A Dscan.c36 static int iwl_send_scan_abort(struct iwl_priv *priv) in iwl_send_scan_abort() argument
48 if (!test_bit(STATUS_READY, &priv->status) || in iwl_send_scan_abort()
49 !test_bit(STATUS_SCAN_HW, &priv->status) || in iwl_send_scan_abort()
50 test_bit(STATUS_FW_ERROR, &priv->status)) in iwl_send_scan_abort()
53 ret = iwl_dvm_send_cmd(priv, &cmd); in iwl_send_scan_abort()
65 IWL_DEBUG_SCAN(priv, "SCAN_ABORT ret %d.\n", in iwl_send_scan_abort()
74 static void iwl_complete_scan(struct iwl_priv *priv, bool aborted) in iwl_complete_scan() argument
81 if (priv->scan_request) { in iwl_complete_scan()
82 IWL_DEBUG_SCAN(priv, "Complete scan in mac80211\n"); in iwl_complete_scan()
83 ieee80211_scan_completed(priv->hw, &info); in iwl_complete_scan()
[all …]
/linux/drivers/gpu/drm/meson/
H A Dmeson_crtc.c37 struct meson_drm *priv; member
38 void (*enable_osd1)(struct meson_drm *priv);
39 void (*enable_vd1)(struct meson_drm *priv);
40 void (*enable_osd1_afbc)(struct meson_drm *priv);
41 void (*disable_osd1_afbc)(struct meson_drm *priv);
53 struct meson_drm *priv = meson_crtc->priv; in meson_crtc_enable_vblank() local
56 meson_venc_enable_vsync(priv); in meson_crtc_enable_vblank()
64 struct meson_drm *priv = meson_crtc->priv; in meson_crtc_disable_vblank() local
68 meson_venc_disable_vsync(priv); in meson_crtc_disable_vblank()
89 struct meson_drm *priv = meson_crtc->priv; in meson_g12a_crtc_atomic_enable() local
[all …]
/linux/drivers/net/wireless/realtek/rtl818x/rtl8180/
H A Ddev.c197 struct rtl8180_priv *priv = dev->priv; in rtl8180_write_phy() local
203 rtl818x_iowrite32(priv, (__le32 __iomem *)&priv->map->PHY[0], buf | 0x80); in rtl8180_write_phy()
205 rtl818x_iowrite32(priv, (__le32 __iomem *)&priv->map->PHY[0], buf); in rtl8180_write_phy()
206 if (rtl818x_ioread8(priv, &priv->map->PHY[2]) == (data & 0xFF)) in rtl8180_write_phy()
213 struct rtl8180_priv *priv = dev->priv; in rtl8180_handle_rx() local
221 void *entry = priv->rx_ring + priv->rx_idx * priv->rx_ring_sz; in rtl8180_handle_rx()
222 struct sk_buff *skb = priv->rx_buf[priv->rx_idx]; in rtl8180_handle_rx()
226 if (priv->chip_family == RTL818X_CHIP_FAMILY_RTL8187SE) { in rtl8180_handle_rx()
263 mapping = dma_map_single(&priv->pdev->dev, in rtl8180_handle_rx()
267 if (dma_mapping_error(&priv->pdev->dev, mapping)) { in rtl8180_handle_rx()
[all …]
H A Drtl8225.c24 struct rtl8180_priv *priv = dev->priv; in rtl8225_write() local
31 reg80 = rtl818x_ioread16(priv, &priv->map->RFPinsOutput) & 0xfff3; in rtl8225_write()
32 reg82 = rtl818x_ioread16(priv, &priv->map->RFPinsEnable); in rtl8225_write()
34 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, reg82 | 0x7); in rtl8225_write()
36 reg84 = rtl818x_ioread16(priv, &priv->map->RFPinsSelect); in rtl8225_write()
37 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84 | 0x7 | 0x400); in rtl8225_write()
38 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_write()
41 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); in rtl8225_write()
42 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_write()
44 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80); in rtl8225_write()
[all …]
/linux/drivers/net/dsa/realtek/
H A Drealtek-smi.c47 static inline void realtek_smi_clk_delay(struct realtek_priv *priv) in realtek_smi_clk_delay() argument
49 ndelay(priv->variant->clk_delay); in realtek_smi_clk_delay()
52 static void realtek_smi_start(struct realtek_priv *priv) in realtek_smi_start() argument
57 gpiod_direction_output(priv->mdc, 0); in realtek_smi_start()
58 gpiod_direction_output(priv->mdio, 1); in realtek_smi_start()
59 realtek_smi_clk_delay(priv); in realtek_smi_start()
62 gpiod_set_value(priv->mdc, 1); in realtek_smi_start()
63 realtek_smi_clk_delay(priv); in realtek_smi_start()
64 gpiod_set_value(priv->mdc, 0); in realtek_smi_start()
65 realtek_smi_clk_delay(priv); in realtek_smi_start()
[all …]
/linux/drivers/net/wireless/realtek/rtl818x/rtl8187/
H A Ddev.c121 static void rtl8187_iowrite_async(struct rtl8187_priv *priv, __le16 addr, in rtl8187_iowrite_async() argument
152 usb_fill_control_urb(urb, priv->udev, usb_sndctrlpipe(priv->udev, 0), in rtl8187_iowrite_async()
155 usb_anchor_urb(urb, &priv->anchored); in rtl8187_iowrite_async()
164 static inline void rtl818x_iowrite32_async(struct rtl8187_priv *priv, in rtl818x_iowrite32_async() argument
169 rtl8187_iowrite_async(priv, cpu_to_le16((unsigned long)addr), in rtl818x_iowrite32_async()
175 struct rtl8187_priv *priv = dev->priv; in rtl8187_write_phy() local
180 rtl818x_iowrite8(priv, &priv->map->PHY[3], (data >> 24) & 0xFF); in rtl8187_write_phy()
181 rtl818x_iowrite8(priv, &priv->map->PHY[2], (data >> 16) & 0xFF); in rtl8187_write_phy()
182 rtl818x_iowrite8(priv, &priv->map->PHY[1], (data >> 8) & 0xFF); in rtl8187_write_phy()
183 rtl818x_iowrite8(priv, &priv->map->PHY[0], data & 0xFF); in rtl8187_write_phy()
[all …]
/linux/drivers/net/ethernet/microchip/
H A Denc28j60.c84 spi_read_buf(struct enc28j60_net *priv, int len, u8 *data) in spi_read_buf() argument
86 struct device *dev = &priv->spi->dev; in spi_read_buf()
87 u8 *rx_buf = priv->spi_transfer_buf + 4; in spi_read_buf()
88 u8 *tx_buf = priv->spi_transfer_buf; in spi_read_buf()
106 ret = spi_sync(priv->spi, &msg); in spi_read_buf()
111 if (ret && netif_msg_drv(priv)) in spi_read_buf()
121 static int spi_write_buf(struct enc28j60_net *priv, int len, const u8 *data) in spi_write_buf() argument
123 struct device *dev = &priv->spi->dev; in spi_write_buf()
129 priv->spi_transfer_buf[0] = ENC28J60_WRITE_BUF_MEM; in spi_write_buf()
130 memcpy(&priv->spi_transfer_buf[1], data, len); in spi_write_buf()
[all …]
H A Dencx24j600.c71 static void encx24j600_dump_rsv(struct encx24j600_priv *priv, const char *msg, in encx24j600_dump_rsv() argument
74 struct net_device *dev = priv->ndev; in encx24j600_dump_rsv()
98 static u16 encx24j600_read_reg(struct encx24j600_priv *priv, u8 reg) in encx24j600_read_reg() argument
100 struct net_device *dev = priv->ndev; in encx24j600_read_reg()
102 int ret = regmap_read(priv->ctx.regmap, reg, &val); in encx24j600_read_reg()
105 netif_err(priv, drv, dev, "%s: error %d reading reg %02x\n", in encx24j600_read_reg()
110 static void encx24j600_write_reg(struct encx24j600_priv *priv, u8 reg, u16 val) in encx24j600_write_reg() argument
112 struct net_device *dev = priv->ndev; in encx24j600_write_reg()
113 int ret = regmap_write(priv->ctx.regmap, reg, val); in encx24j600_write_reg()
116 netif_err(priv, drv, dev, "%s: error %d writing reg %02x=%04x\n", in encx24j600_write_reg()
[all …]
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_main.c135 static void stmmac_reset_rx_queue(struct stmmac_priv *priv, u32 queue);
136 static void stmmac_reset_tx_queue(struct stmmac_priv *priv, u32 queue);
137 static void stmmac_reset_queues_param(struct stmmac_priv *priv);
138 static void stmmac_tx_timer_arm(struct stmmac_priv *priv, u32 queue);
139 static void stmmac_flush_tx_descriptors(struct stmmac_priv *priv, int queue);
140 static void stmmac_set_dma_operation_mode(struct stmmac_priv *priv, u32 txmode,
151 int stmmac_bus_clks_config(struct stmmac_priv *priv, bool enabled) in stmmac_bus_clks_config() argument
156 ret = clk_prepare_enable(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
159 ret = clk_prepare_enable(priv->plat->pclk); in stmmac_bus_clks_config()
161 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-rcar.c174 static void rcar_i2c_write(struct rcar_i2c_priv *priv, int reg, u32 val) in rcar_i2c_write() argument
176 writel(val, priv->io + reg); in rcar_i2c_write()
179 static u32 rcar_i2c_read(struct rcar_i2c_priv *priv, int reg) in rcar_i2c_read() argument
181 return readl(priv->io + reg); in rcar_i2c_read()
184 static void rcar_i2c_clear_irq(struct rcar_i2c_priv *priv, u32 val) in rcar_i2c_clear_irq() argument
186 writel(~val & 0x7f, priv->io + ICMSR); in rcar_i2c_clear_irq()
191 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); in rcar_i2c_get_scl() local
193 return !!(rcar_i2c_read(priv, ICMCR) & FSCL); in rcar_i2c_get_scl()
198 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); in rcar_i2c_set_scl() local
201 priv->recovery_icmcr |= FSCL; in rcar_i2c_set_scl()
[all …]
/linux/drivers/rapidio/devices/
H A Dtsi721.c43 static void tsi721_omsg_handler(struct tsi721_device *priv, int ch);
44 static void tsi721_imsg_handler(struct tsi721_device *priv, int ch);
61 struct tsi721_device *priv = mport->priv; in tsi721_lcread() local
66 *data = ioread32(priv->regs + offset); in tsi721_lcread()
86 struct tsi721_device *priv = mport->priv; in tsi721_lcwrite() local
91 iowrite32(data, priv->regs + offset); in tsi721_lcwrite()
111 static int tsi721_maint_dma(struct tsi721_device *priv, u32 sys_size, in tsi721_maint_dma() argument
115 void __iomem *regs = priv->regs + TSI721_DMAC_BASE(priv->mdma.ch_id); in tsi721_maint_dma()
127 bd_ptr = priv->mdma.bd_base; in tsi721_maint_dma()
153 tsi_debug(MAINT, &priv->pdev->dev, in tsi721_maint_dma()
[all …]

12345678910>>...130