Home
last modified time | relevance | path

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

12345678910>>...152

/linux-6.12.1/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.12.1/sound/soc/codecs/
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 …]
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.12.1/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.12.1/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.12.1/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.12.1/drivers/net/ethernet/google/gve/
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-6.12.1/drivers/net/wireless/realtek/rtl8xxxu/
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 …]
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 …]
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 …]
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 …]
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-6.12.1/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.12.1/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.12.1/drivers/hwmon/
Daquacomputer_d5next.c651 static void aqc_delay_ctrl_report(struct aqc_data *priv) in aqc_delay_ctrl_report() argument
657 if (priv->ctrl_report_delay) { in aqc_delay_ctrl_report()
658 s64 delta = ktime_ms_delta(ktime_get(), priv->last_ctrl_report_op); in aqc_delay_ctrl_report()
660 if (delta < priv->ctrl_report_delay) in aqc_delay_ctrl_report()
661 msleep(priv->ctrl_report_delay - delta); in aqc_delay_ctrl_report()
666 static int aqc_get_ctrl_data(struct aqc_data *priv) in aqc_get_ctrl_data() argument
670 aqc_delay_ctrl_report(priv); in aqc_get_ctrl_data()
672 memset(priv->buffer, 0x00, priv->buffer_size); in aqc_get_ctrl_data()
673 ret = hid_hw_raw_request(priv->hdev, priv->ctrl_report_id, priv->buffer, priv->buffer_size, in aqc_get_ctrl_data()
678 priv->last_ctrl_report_op = ktime_get(); in aqc_get_ctrl_data()
[all …]
/linux-6.12.1/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.12.1/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.12.1/drivers/net/dsa/realtek/
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-6.12.1/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.12.1/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.12.1/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 …]
/linux-6.12.1/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c134 static void stmmac_reset_rx_queue(struct stmmac_priv *priv, u32 queue);
135 static void stmmac_reset_tx_queue(struct stmmac_priv *priv, u32 queue);
136 static void stmmac_reset_queues_param(struct stmmac_priv *priv);
137 static void stmmac_tx_timer_arm(struct stmmac_priv *priv, u32 queue);
138 static void stmmac_flush_tx_descriptors(struct stmmac_priv *priv, int queue);
139 static void stmmac_set_dma_operation_mode(struct stmmac_priv *priv, u32 txmode,
150 int stmmac_bus_clks_config(struct stmmac_priv *priv, bool enabled) in stmmac_bus_clks_config() argument
155 ret = clk_prepare_enable(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
158 ret = clk_prepare_enable(priv->plat->pclk); in stmmac_bus_clks_config()
160 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
[all …]
/linux-6.12.1/drivers/net/ethernet/microchip/
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 …]

12345678910>>...152