Home
last modified time | relevance | path

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

12345678910>>...143

/kernel/linux/linux-5.10/drivers/net/wireless/marvell/libertas/
Dmain.c103 int lbs_set_iface_type(struct lbs_private *priv, enum nl80211_iftype type) in lbs_set_iface_type() argument
109 ret = lbs_set_monitor_mode(priv, 1); in lbs_set_iface_type()
112 if (priv->wdev->iftype == NL80211_IFTYPE_MONITOR) in lbs_set_iface_type()
113 ret = lbs_set_monitor_mode(priv, 0); in lbs_set_iface_type()
115 ret = lbs_set_snmp_mib(priv, SNMP_MIB_OID_BSS_TYPE, 1); in lbs_set_iface_type()
118 if (priv->wdev->iftype == NL80211_IFTYPE_MONITOR) in lbs_set_iface_type()
119 ret = lbs_set_monitor_mode(priv, 0); in lbs_set_iface_type()
121 ret = lbs_set_snmp_mib(priv, SNMP_MIB_OID_BSS_TYPE, 2); in lbs_set_iface_type()
129 int lbs_start_iface(struct lbs_private *priv) in lbs_start_iface() argument
134 if (priv->power_restore) { in lbs_start_iface()
[all …]
/kernel/linux/linux-5.10/drivers/staging/vt6655/
Ddevice_main.c124 static void device_free_info(struct vnt_private *priv);
125 static void device_print_info(struct vnt_private *priv);
127 static int device_init_rd0_ring(struct vnt_private *priv);
128 static int device_init_rd1_ring(struct vnt_private *priv);
129 static int device_init_td0_ring(struct vnt_private *priv);
130 static int device_init_td1_ring(struct vnt_private *priv);
132 static int device_rx_srv(struct vnt_private *priv, unsigned int idx);
133 static int device_tx_srv(struct vnt_private *priv, unsigned int idx);
135 static void device_free_rx_buf(struct vnt_private *priv,
137 static void device_init_registers(struct vnt_private *priv);
[all …]
Dcard.c181 bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type) in CARDbSetPhyParameter() argument
192 if (priv->byRFType == RF_AIROHA7230) { in CARDbSetPhyParameter()
194 MACvSetBBType(priv->PortOffset, BB_TYPE_11G); in CARDbSetPhyParameter()
195 priv->abyBBVGA[0] = 0x20; in CARDbSetPhyParameter()
196 priv->abyBBVGA[2] = 0x10; in CARDbSetPhyParameter()
197 priv->abyBBVGA[3] = 0x10; in CARDbSetPhyParameter()
198 bb_read_embedded(priv, 0xE7, &byData); in CARDbSetPhyParameter()
200 bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]); in CARDbSetPhyParameter()
202 } else if (priv->byRFType == RF_UW2452) { in CARDbSetPhyParameter()
203 MACvSetBBType(priv->PortOffset, BB_TYPE_11A); in CARDbSetPhyParameter()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/google/gve/
Dgve_main.c34 struct gve_priv *priv = netdev_priv(dev); in gve_get_stats() local
39 if (priv->rx) { in gve_get_stats()
40 for (ring = 0; ring < priv->rx_cfg.num_queues; ring++) { in gve_get_stats()
43 u64_stats_fetch_begin_irq(&priv->rx[ring].statss); in gve_get_stats()
44 packets = priv->rx[ring].rpackets; in gve_get_stats()
45 bytes = priv->rx[ring].rbytes; in gve_get_stats()
46 } while (u64_stats_fetch_retry_irq(&priv->rx[ring].statss, in gve_get_stats()
52 if (priv->tx) { in gve_get_stats()
53 for (ring = 0; ring < priv->tx_cfg.num_queues; ring++) { in gve_get_stats()
56 u64_stats_fetch_begin_irq(&priv->tx[ring].statss); in gve_get_stats()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8192u/
Dr8192U_dm.c116 struct r8192_priv *priv = ieee80211_priv(dev); in init_hal_dm() local
119 priv->undecorated_smoothed_pwdb = -1; in init_hal_dm()
142 struct r8192_priv *priv = ieee80211_priv(dev); in dm_CheckRxAggregation() local
143 PRT_HIGH_THROUGHPUT pHTInfo = priv->ieee80211->pHTInfo; in dm_CheckRxAggregation()
164 curTxOkCnt = priv->stats.txbytesunicast - lastTxOkCnt; in dm_CheckRxAggregation()
165 curRxOkCnt = priv->stats.rxbytesunicast - lastRxOkCnt; in dm_CheckRxAggregation()
171 if (priv->bCurrentRxAggrEnable) { in dm_CheckRxAggregation()
173 priv->bCurrentRxAggrEnable = false; in dm_CheckRxAggregation()
176 if (!priv->bCurrentRxAggrEnable && !pHTInfo->bCurrentRT2RTAggregation) { in dm_CheckRxAggregation()
186 priv->bCurrentRxAggrEnable = true; in dm_CheckRxAggregation()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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.c45 typedef int (*cw1200_wsm_handler)(struct cw1200_common *priv,
50 struct cw1200_common *priv = in cw1200_bh_work() local
52 cw1200_bh(priv); in cw1200_bh_work()
55 int cw1200_register_bh(struct cw1200_common *priv) in cw1200_register_bh() argument
59 priv->bh_workqueue = alloc_workqueue("cw1200_bh", in cw1200_register_bh()
63 if (!priv->bh_workqueue) in cw1200_register_bh()
66 INIT_WORK(&priv->bh_work, cw1200_bh_work); in cw1200_register_bh()
70 atomic_set(&priv->bh_rx, 0); in cw1200_register_bh()
71 atomic_set(&priv->bh_tx, 0); in cw1200_register_bh()
72 atomic_set(&priv->bh_term, 0); in cw1200_register_bh()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Dmain.c147 void iwl_update_chain_flags(struct iwl_priv *priv) in iwl_update_chain_flags() argument
151 for_each_context(priv, ctx) { in iwl_update_chain_flags()
152 iwlagn_set_rxon_chain(priv, ctx); in iwl_update_chain_flags()
154 iwlagn_commit_rxon(priv, ctx); in iwl_update_chain_flags()
159 static void iwl_set_beacon_tim(struct iwl_priv *priv, in iwl_set_beacon_tim() argument
182 IWL_WARN(priv, "Unable to find TIM Element in beacon\n"); in iwl_set_beacon_tim()
185 int iwlagn_send_beacon_cmd(struct iwl_priv *priv) in iwlagn_send_beacon_cmd() argument
201 lockdep_assert_held(&priv->mutex); in iwlagn_send_beacon_cmd()
203 if (!priv->beacon_ctx) { in iwlagn_send_beacon_cmd()
204 IWL_ERR(priv, "trying to build beacon w/o beacon context!\n"); in iwlagn_send_beacon_cmd()
[all …]
/kernel/linux/linux-5.10/drivers/staging/vt6656/
Dmain_usb.c80 static void vnt_set_options(struct vnt_private *priv) in vnt_set_options() argument
84 priv->num_tx_context = TX_DESC_DEF0; in vnt_set_options()
86 priv->num_tx_context = vnt_tx_buffers; in vnt_set_options()
90 priv->num_rcb = RX_DESC_DEF0; in vnt_set_options()
92 priv->num_rcb = vnt_rx_buffers; in vnt_set_options()
94 priv->op_mode = NL80211_IFTYPE_UNSPECIFIED; in vnt_set_options()
95 priv->bb_type = BBP_TYPE_DEF; in vnt_set_options()
96 priv->packet_type = priv->bb_type; in vnt_set_options()
97 priv->preamble_type = PREAMBLE_LONG; in vnt_set_options()
98 priv->exist_sw_net_addr = false; in vnt_set_options()
[all …]
Dwcmd.c31 static void vnt_cmd_timer_wait(struct vnt_private *priv, unsigned long msecs) in vnt_cmd_timer_wait() argument
33 schedule_delayed_work(&priv->run_command_work, msecs_to_jiffies(msecs)); in vnt_cmd_timer_wait()
36 static int vnt_cmd_complete(struct vnt_private *priv) in vnt_cmd_complete() argument
38 priv->command_state = WLAN_CMD_IDLE; in vnt_cmd_complete()
39 if (priv->free_cmd_queue == CMD_Q_SIZE) { in vnt_cmd_complete()
41 priv->cmd_running = false; in vnt_cmd_complete()
45 priv->command = priv->cmd_queue[priv->cmd_dequeue_idx]; in vnt_cmd_complete()
47 ADD_ONE_WITH_WRAP_AROUND(priv->cmd_dequeue_idx, CMD_Q_SIZE); in vnt_cmd_complete()
48 priv->free_cmd_queue++; in vnt_cmd_complete()
49 priv->cmd_running = true; in vnt_cmd_complete()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c124 int stmmac_bus_clks_config(struct stmmac_priv *priv, bool enabled) in stmmac_bus_clks_config() argument
129 ret = clk_prepare_enable(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
132 ret = clk_prepare_enable(priv->plat->pclk); in stmmac_bus_clks_config()
134 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
138 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
139 clk_disable_unprepare(priv->plat->pclk); in stmmac_bus_clks_config()
171 static void stmmac_disable_all_queues(struct stmmac_priv *priv) in stmmac_disable_all_queues() argument
173 u32 rx_queues_cnt = priv->plat->rx_queues_to_use; in stmmac_disable_all_queues()
174 u32 tx_queues_cnt = priv->plat->tx_queues_to_use; in stmmac_disable_all_queues()
179 struct stmmac_channel *ch = &priv->channel[queue]; in stmmac_disable_all_queues()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu_8192e.c482 rtl8192e_set_tx_power(struct rtl8xxxu_priv *priv, int channel, bool ht40) in rtl8192e_set_tx_power() argument
491 cck = priv->cck_tx_power_index_A[group]; in rtl8192e_set_tx_power()
493 val32 = rtl8xxxu_read32(priv, REG_TX_AGC_A_CCK1_MCS32); in rtl8192e_set_tx_power()
496 rtl8xxxu_write32(priv, REG_TX_AGC_A_CCK1_MCS32, val32); in rtl8192e_set_tx_power()
498 val32 = rtl8xxxu_read32(priv, REG_TX_AGC_B_CCK11_A_CCK2_11); in rtl8192e_set_tx_power()
501 rtl8xxxu_write32(priv, REG_TX_AGC_B_CCK11_A_CCK2_11, val32); in rtl8192e_set_tx_power()
503 ofdmbase = priv->ht40_1s_tx_power_index_A[group]; in rtl8192e_set_tx_power()
504 ofdmbase += priv->ofdm_tx_power_diff[tx_idx].a; in rtl8192e_set_tx_power()
507 rtl8xxxu_write32(priv, REG_TX_AGC_A_RATE18_06, ofdm); in rtl8192e_set_tx_power()
508 rtl8xxxu_write32(priv, REG_TX_AGC_A_RATE54_24, ofdm); in rtl8192e_set_tx_power()
[all …]
Drtl8xxxu_8723b.c307 static void rtl8723bu_write_btreg(struct rtl8xxxu_priv *priv, u8 reg, u8 data) in rtl8723bu_write_btreg() argument
317 rtl8xxxu_gen2_h2c_cmd(priv, &h2c, sizeof(h2c.bt_mp_oper)); in rtl8723bu_write_btreg()
325 rtl8xxxu_gen2_h2c_cmd(priv, &h2c, sizeof(h2c.bt_mp_oper)); in rtl8723bu_write_btreg()
328 static void rtl8723bu_reset_8051(struct rtl8xxxu_priv *priv) in rtl8723bu_reset_8051() argument
333 val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL); in rtl8723bu_reset_8051()
335 rtl8xxxu_write8(priv, REG_RSV_CTRL, val8); in rtl8723bu_reset_8051()
337 val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL + 1); in rtl8723bu_reset_8051()
339 rtl8xxxu_write8(priv, REG_RSV_CTRL + 1, val8); in rtl8723bu_reset_8051()
341 sys_func = rtl8xxxu_read16(priv, REG_SYS_FUNC); in rtl8723bu_reset_8051()
343 rtl8xxxu_write16(priv, REG_SYS_FUNC, sys_func); in rtl8723bu_reset_8051()
[all …]
/kernel/linux/linux-5.10/drivers/net/hamradio/
Ddmascc.c212 struct scc_priv priv[2]; member
221 static void write_scc(struct scc_priv *priv, int reg, int val);
222 static void write_scc_data(struct scc_priv *priv, int val, int fast);
223 static int read_scc(struct scc_priv *priv, int reg);
224 static int read_scc_data(struct scc_priv *priv);
232 static inline void tx_on(struct scc_priv *priv);
233 static inline void rx_on(struct scc_priv *priv);
234 static inline void rx_off(struct scc_priv *priv);
235 static void start_timer(struct scc_priv *priv, int t, int r15);
240 static void rx_isr(struct scc_priv *priv);
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/microchip/
Denc28j60.c85 spi_read_buf(struct enc28j60_net *priv, int len, u8 *data) in spi_read_buf() argument
87 struct device *dev = &priv->spi->dev; in spi_read_buf()
88 u8 *rx_buf = priv->spi_transfer_buf + 4; in spi_read_buf()
89 u8 *tx_buf = priv->spi_transfer_buf; in spi_read_buf()
107 ret = spi_sync(priv->spi, &msg); in spi_read_buf()
112 if (ret && netif_msg_drv(priv)) in spi_read_buf()
122 static int spi_write_buf(struct enc28j60_net *priv, int len, const u8 *data) in spi_write_buf() argument
124 struct device *dev = &priv->spi->dev; in spi_write_buf()
130 priv->spi_transfer_buf[0] = ENC28J60_WRITE_BUF_MEM; in spi_write_buf()
131 memcpy(&priv->spi_transfer_buf[1], data, len); in spi_write_buf()
[all …]

12345678910>>...143