Home
last modified time | relevance | path

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

12345678910>>...161

/linux-6.6.21/drivers/net/wireless/marvell/libertas/
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-6.6.21/sound/soc/codecs/
Dmt6359-accdet.c62 static void accdet_set_debounce(struct mt6359_accdet *priv, int state,
64 static unsigned int adjust_eint_analog_setting(struct mt6359_accdet *priv);
65 static void config_digital_init_by_mode(struct mt6359_accdet *priv);
66 static void config_eint_init_by_mode(struct mt6359_accdet *priv);
67 static inline void mt6359_accdet_init(struct mt6359_accdet *priv);
68 static unsigned int mt6359_accdet_jd_setting(struct mt6359_accdet *priv);
69 static void mt6359_accdet_recover_jd_setting(struct mt6359_accdet *priv);
70 static void mt6359_accdet_jack_report(struct mt6359_accdet *priv);
71 static void recover_eint_analog_setting(struct mt6359_accdet *priv);
72 static void recover_eint_digital_setting(struct mt6359_accdet *priv);
[all …]
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-6.6.21/drivers/staging/rtl8192u/
Dr8192U_dm.c106 struct r8192_priv *priv = ieee80211_priv(dev); in init_hal_dm() local
109 priv->undecorated_smoothed_pwdb = -1; in init_hal_dm()
131 struct r8192_priv *priv = ieee80211_priv(dev); in dm_CheckRxAggregation() local
132 PRT_HIGH_THROUGHPUT pHTInfo = priv->ieee80211->pHTInfo; in dm_CheckRxAggregation()
138 curTxOkCnt = priv->stats.txbytesunicast - lastTxOkCnt; in dm_CheckRxAggregation()
139 curRxOkCnt = priv->stats.rxbytesunicast - lastRxOkCnt; in dm_CheckRxAggregation()
145 if (priv->bCurrentRxAggrEnable) { in dm_CheckRxAggregation()
147 priv->bCurrentRxAggrEnable = false; in dm_CheckRxAggregation()
150 if (!priv->bCurrentRxAggrEnable && !pHTInfo->bCurrentRT2RTAggregation) { in dm_CheckRxAggregation()
160 priv->bCurrentRxAggrEnable = true; in dm_CheckRxAggregation()
[all …]
/linux-6.6.21/drivers/net/ethernet/google/gve/
Dgve_main.c39 static int gve_verify_driver_compatibility(struct gve_priv *priv) in gve_verify_driver_compatibility() argument
45 driver_info = dma_alloc_coherent(&priv->pdev->dev, in gve_verify_driver_compatibility()
68 err = gve_adminq_verify_driver_compatibility(priv, in gve_verify_driver_compatibility()
76 dma_free_coherent(&priv->pdev->dev, in gve_verify_driver_compatibility()
84 struct gve_priv *priv = netdev_priv(dev); in gve_start_xmit() local
86 if (gve_is_gqi(priv)) in gve_start_xmit()
94 struct gve_priv *priv = netdev_priv(dev); in gve_get_stats() local
100 num_tx_queues = gve_num_tx_queues(priv); in gve_get_stats()
101 if (priv->rx) { in gve_get_stats()
102 for (ring = 0; ring < priv->rx_cfg.num_queues; ring++) { in gve_get_stats()
[all …]
/linux-6.6.21/drivers/media/dvb-frontends/
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-6.6.21/drivers/staging/vt6655/
Ddevice_main.c122 static void device_free_info(struct vnt_private *priv);
123 static void device_print_info(struct vnt_private *priv);
128 static int device_init_rd0_ring(struct vnt_private *priv);
129 static int device_init_rd1_ring(struct vnt_private *priv);
130 static int device_init_td0_ring(struct vnt_private *priv);
131 static int device_init_td1_ring(struct vnt_private *priv);
133 static int device_rx_srv(struct vnt_private *priv, unsigned int idx);
134 static int device_tx_srv(struct vnt_private *priv, unsigned int idx);
136 static void device_free_rx_buf(struct vnt_private *priv,
138 static void device_init_registers(struct vnt_private *priv);
[all …]
/linux-6.6.21/drivers/net/wireless/st/cw1200/
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 …]
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 …]
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-6.6.21/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu_8192e.c481 static int rtl8192eu_identify_chip(struct rtl8xxxu_priv *priv) in rtl8192eu_identify_chip() argument
483 struct device *dev = &priv->udev->dev; in rtl8192eu_identify_chip()
487 sys_cfg = rtl8xxxu_read32(priv, REG_SYS_CFG); in rtl8192eu_identify_chip()
488 priv->chip_cut = u32_get_bits(sys_cfg, SYS_CFG_CHIP_VERSION_MASK); in rtl8192eu_identify_chip()
495 bonding = rtl8xxxu_read32(priv, REG_HPON_FSM); in rtl8192eu_identify_chip()
498 strscpy(priv->chip_name, "8191EU", sizeof(priv->chip_name)); in rtl8192eu_identify_chip()
499 priv->tx_paths = 1; in rtl8192eu_identify_chip()
500 priv->rtl_chip = RTL8191E; in rtl8192eu_identify_chip()
502 strscpy(priv->chip_name, "8192EU", sizeof(priv->chip_name)); in rtl8192eu_identify_chip()
503 priv->tx_paths = 2; in rtl8192eu_identify_chip()
[all …]
Drtl8xxxu_8192f.c408 static int rtl8192fu_identify_chip(struct rtl8xxxu_priv *priv) in rtl8192fu_identify_chip() argument
410 struct device *dev = &priv->udev->dev; in rtl8192fu_identify_chip()
413 strscpy(priv->chip_name, "8192FU", sizeof(priv->chip_name)); in rtl8192fu_identify_chip()
414 priv->rtl_chip = RTL8192F; in rtl8192fu_identify_chip()
415 priv->rf_paths = 2; in rtl8192fu_identify_chip()
416 priv->rx_paths = 2; in rtl8192fu_identify_chip()
417 priv->tx_paths = 2; in rtl8192fu_identify_chip()
419 sys_cfg = rtl8xxxu_read32(priv, REG_SYS_CFG); in rtl8192fu_identify_chip()
420 priv->chip_cut = u32_get_bits(sys_cfg, SYS_CFG_CHIP_VERSION_MASK); in rtl8192fu_identify_chip()
426 val32 = rtl8xxxu_read32(priv, REG_MULTI_FUNC_CTRL); in rtl8192fu_identify_chip()
[all …]
Drtl8xxxu_8723b.c307 static int rtl8723bu_identify_chip(struct rtl8xxxu_priv *priv) in rtl8723bu_identify_chip() argument
309 struct device *dev = &priv->udev->dev; in rtl8723bu_identify_chip()
313 sys_cfg = rtl8xxxu_read32(priv, REG_SYS_CFG); in rtl8723bu_identify_chip()
314 priv->chip_cut = u32_get_bits(sys_cfg, SYS_CFG_CHIP_VERSION_MASK); in rtl8723bu_identify_chip()
321 strscpy(priv->chip_name, "8723BU", sizeof(priv->chip_name)); in rtl8723bu_identify_chip()
322 priv->rtl_chip = RTL8723B; in rtl8723bu_identify_chip()
323 priv->rf_paths = 1; in rtl8723bu_identify_chip()
324 priv->rx_paths = 1; in rtl8723bu_identify_chip()
325 priv->tx_paths = 1; in rtl8723bu_identify_chip()
327 val32 = rtl8xxxu_read32(priv, REG_MULTI_FUNC_CTRL); in rtl8723bu_identify_chip()
[all …]
Drtl8xxxu_8710b.c479 static u32 rtl8710b_indirect_read32(struct rtl8xxxu_priv *priv, u32 addr) in rtl8710b_indirect_read32() argument
481 struct device *dev = &priv->udev->dev; in rtl8710b_indirect_read32()
491 mutex_lock(&priv->syson_indirect_access_mutex); in rtl8710b_indirect_read32()
493 rtl8xxxu_write32(priv, REG_USB_HOST_INDIRECT_ADDR_8710B, addr); in rtl8710b_indirect_read32()
494 rtl8xxxu_write32(priv, REG_EFUSE_INDIRECT_CTRL_8710B, NORMAL_REG_READ_OFFSET); in rtl8710b_indirect_read32()
497 val32 = rtl8xxxu_read32(priv, REG_EFUSE_INDIRECT_CTRL_8710B); in rtl8710b_indirect_read32()
504 value = rtl8xxxu_read32(priv, REG_USB_HOST_INDIRECT_DATA_8710B); in rtl8710b_indirect_read32()
506 mutex_unlock(&priv->syson_indirect_access_mutex); in rtl8710b_indirect_read32()
514 static void rtl8710b_indirect_write32(struct rtl8xxxu_priv *priv, u32 addr, u32 val) in rtl8710b_indirect_write32() argument
516 struct device *dev = &priv->udev->dev; in rtl8710b_indirect_write32()
[all …]
/linux-6.6.21/drivers/net/dsa/realtek/
Drealtek-smi.c46 static inline void realtek_smi_clk_delay(struct realtek_priv *priv) in realtek_smi_clk_delay() argument
48 ndelay(priv->clk_delay); in realtek_smi_clk_delay()
51 static void realtek_smi_start(struct realtek_priv *priv) in realtek_smi_start() argument
56 gpiod_direction_output(priv->mdc, 0); in realtek_smi_start()
57 gpiod_direction_output(priv->mdio, 1); in realtek_smi_start()
58 realtek_smi_clk_delay(priv); in realtek_smi_start()
61 gpiod_set_value(priv->mdc, 1); in realtek_smi_start()
62 realtek_smi_clk_delay(priv); in realtek_smi_start()
63 gpiod_set_value(priv->mdc, 0); in realtek_smi_start()
64 realtek_smi_clk_delay(priv); in realtek_smi_start()
[all …]
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/dvm/
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 …]
/linux-6.6.21/drivers/gpu/drm/meson/
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-6.6.21/drivers/net/wireless/realtek/rtl818x/rtl8180/
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 …]
/linux-6.6.21/drivers/staging/vt6656/
Dmain_usb.c78 static void vnt_set_options(struct vnt_private *priv) in vnt_set_options() argument
82 priv->num_tx_context = TX_DESC_DEF0; in vnt_set_options()
84 priv->num_tx_context = vnt_tx_buffers; in vnt_set_options()
88 priv->num_rcb = RX_DESC_DEF0; in vnt_set_options()
90 priv->num_rcb = vnt_rx_buffers; in vnt_set_options()
92 priv->op_mode = NL80211_IFTYPE_UNSPECIFIED; in vnt_set_options()
93 priv->bb_type = BBP_TYPE_DEF; in vnt_set_options()
94 priv->packet_type = priv->bb_type; in vnt_set_options()
95 priv->preamble_type = PREAMBLE_LONG; in vnt_set_options()
96 priv->exist_sw_net_addr = false; in vnt_set_options()
[all …]
/linux-6.6.21/drivers/i2c/busses/
Di2c-hix5hd2.c95 static u32 hix5hd2_i2c_clr_pend_irq(struct hix5hd2_i2c_priv *priv) in hix5hd2_i2c_clr_pend_irq() argument
97 u32 val = readl_relaxed(priv->regs + HIX5I2C_SR); in hix5hd2_i2c_clr_pend_irq()
99 writel_relaxed(val, priv->regs + HIX5I2C_ICR); in hix5hd2_i2c_clr_pend_irq()
104 static void hix5hd2_i2c_clr_all_irq(struct hix5hd2_i2c_priv *priv) in hix5hd2_i2c_clr_all_irq() argument
106 writel_relaxed(I2C_CLEAR_ALL, priv->regs + HIX5I2C_ICR); in hix5hd2_i2c_clr_all_irq()
109 static void hix5hd2_i2c_disable_irq(struct hix5hd2_i2c_priv *priv) in hix5hd2_i2c_disable_irq() argument
111 writel_relaxed(0, priv->regs + HIX5I2C_CTRL); in hix5hd2_i2c_disable_irq()
114 static void hix5hd2_i2c_enable_irq(struct hix5hd2_i2c_priv *priv) in hix5hd2_i2c_enable_irq() argument
117 priv->regs + HIX5I2C_CTRL); in hix5hd2_i2c_enable_irq()
120 static void hix5hd2_i2c_drv_setrate(struct hix5hd2_i2c_priv *priv) in hix5hd2_i2c_drv_setrate() argument
[all …]
/linux-6.6.21/drivers/hwmon/
Daquacomputer_d5next.c621 static void aqc_delay_ctrl_report(struct aqc_data *priv) in aqc_delay_ctrl_report() argument
627 if (priv->ctrl_report_delay) { in aqc_delay_ctrl_report()
628 s64 delta = ktime_ms_delta(ktime_get(), priv->last_ctrl_report_op); in aqc_delay_ctrl_report()
630 if (delta < priv->ctrl_report_delay) in aqc_delay_ctrl_report()
631 msleep(priv->ctrl_report_delay - delta); in aqc_delay_ctrl_report()
636 static int aqc_get_ctrl_data(struct aqc_data *priv) in aqc_get_ctrl_data() argument
640 aqc_delay_ctrl_report(priv); in aqc_get_ctrl_data()
642 memset(priv->buffer, 0x00, priv->buffer_size); in aqc_get_ctrl_data()
643 ret = hid_hw_raw_request(priv->hdev, priv->ctrl_report_id, priv->buffer, priv->buffer_size, in aqc_get_ctrl_data()
648 priv->last_ctrl_report_op = ktime_get(); in aqc_get_ctrl_data()
[all …]
/linux-6.6.21/drivers/staging/ks7010/
Dks_hostif.c21 static inline void inc_smeqhead(struct ks_wlan_private *priv) in inc_smeqhead() argument
23 priv->sme_i.qhead = (priv->sme_i.qhead + 1) % SME_EVENT_BUFF_SIZE; in inc_smeqhead()
26 static inline void inc_smeqtail(struct ks_wlan_private *priv) in inc_smeqtail() argument
28 priv->sme_i.qtail = (priv->sme_i.qtail + 1) % SME_EVENT_BUFF_SIZE; in inc_smeqtail()
31 static inline unsigned int cnt_smeqbody(struct ks_wlan_private *priv) in cnt_smeqbody() argument
33 return CIRC_CNT_TO_END(priv->sme_i.qhead, priv->sme_i.qtail, in cnt_smeqbody()
37 static inline u8 get_byte(struct ks_wlan_private *priv) in get_byte() argument
41 data = *priv->rxp++; in get_byte()
43 --(priv->rx_size); in get_byte()
47 static inline u16 get_word(struct ks_wlan_private *priv) in get_word() argument
[all …]
Dks7010_sdio.c109 struct ks_wlan_private *priv; member
112 static struct sdio_func *ks7010_to_func(struct ks_wlan_private *priv) in ks7010_to_func() argument
114 struct ks_sdio_card *ks_sdio = priv->if_hw; in ks7010_to_func()
120 static int ks7010_sdio_readb(struct ks_wlan_private *priv, in ks7010_sdio_readb() argument
123 struct sdio_func *func = ks7010_to_func(priv); in ks7010_sdio_readb()
132 static int ks7010_sdio_read(struct ks_wlan_private *priv, u32 address, in ks7010_sdio_read() argument
135 struct sdio_func *func = ks7010_to_func(priv); in ks7010_sdio_read()
141 static int ks7010_sdio_writeb(struct ks_wlan_private *priv, in ks7010_sdio_writeb() argument
144 struct sdio_func *func = ks7010_to_func(priv); in ks7010_sdio_writeb()
153 static int ks7010_sdio_write(struct ks_wlan_private *priv, u32 address, in ks7010_sdio_write() argument
[all …]
/linux-6.6.21/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c36 static inline u32 enet_readl(struct bcm_enet_priv *priv, u32 off) in enet_readl() argument
38 return bcm_readl(priv->base + off); in enet_readl()
41 static inline void enet_writel(struct bcm_enet_priv *priv, in enet_writel() argument
44 bcm_writel(val, priv->base + off); in enet_writel()
50 static inline u32 enetsw_readl(struct bcm_enet_priv *priv, u32 off) in enetsw_readl() argument
52 return bcm_readl(priv->base + off); in enetsw_readl()
55 static inline void enetsw_writel(struct bcm_enet_priv *priv, in enetsw_writel() argument
58 bcm_writel(val, priv->base + off); in enetsw_writel()
61 static inline u16 enetsw_readw(struct bcm_enet_priv *priv, u32 off) in enetsw_readw() argument
63 return bcm_readw(priv->base + off); in enetsw_readw()
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtl818x/rtl8187/
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 …]

12345678910>>...161