/linux-6.1.9/drivers/net/wireless/marvell/libertas/ |
D | main.c | 102 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.1.9/drivers/net/ethernet/google/gve/ |
D | gve_main.c | 35 struct gve_priv *priv = netdev_priv(dev); in gve_start_xmit() local 37 if (gve_is_gqi(priv)) in gve_start_xmit() 45 struct gve_priv *priv = netdev_priv(dev); in gve_get_stats() local 50 if (priv->rx) { in gve_get_stats() 51 for (ring = 0; ring < priv->rx_cfg.num_queues; ring++) { in gve_get_stats() 54 u64_stats_fetch_begin_irq(&priv->rx[ring].statss); in gve_get_stats() 55 packets = priv->rx[ring].rpackets; in gve_get_stats() 56 bytes = priv->rx[ring].rbytes; in gve_get_stats() 57 } while (u64_stats_fetch_retry_irq(&priv->rx[ring].statss, in gve_get_stats() 63 if (priv->tx) { in gve_get_stats() [all …]
|
/linux-6.1.9/sound/soc/codecs/ |
D | mt6359-accdet.c | 62 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 …]
|
D | mt6358.c | 105 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.1.9/drivers/staging/rtl8192u/ |
D | r8192U_dm.c | 116 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 …]
|
/linux-6.1.9/drivers/media/dvb-frontends/ |
D | cxd2841er.c | 200 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.1.9/drivers/staging/vt6655/ |
D | device_main.c | 122 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.1.9/drivers/net/wireless/st/cw1200/ |
D | sta.c | 25 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 …]
|
D | scan.c | 15 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 …]
|
D | bh.c | 47 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.1.9/drivers/net/dsa/realtek/ |
D | realtek-smi.c | 47 static inline void realtek_smi_clk_delay(struct realtek_priv *priv) in realtek_smi_clk_delay() argument 49 ndelay(priv->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.1.9/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | main.c | 142 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.1.9/drivers/staging/vt6656/ |
D | main_usb.c | 78 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 …]
|
D | wcmd.c | 29 static void vnt_cmd_timer_wait(struct vnt_private *priv, unsigned long msecs) in vnt_cmd_timer_wait() argument 31 schedule_delayed_work(&priv->run_command_work, msecs_to_jiffies(msecs)); in vnt_cmd_timer_wait() 43 static int vnt_cmd_complete(struct vnt_private *priv) in vnt_cmd_complete() argument 45 priv->command_state = WLAN_CMD_IDLE; in vnt_cmd_complete() 46 if (priv->free_cmd_queue == CMD_Q_SIZE) { in vnt_cmd_complete() 48 priv->cmd_running = false; in vnt_cmd_complete() 52 priv->command = priv->cmd_queue[priv->cmd_dequeue_idx]; in vnt_cmd_complete() 54 priv->cmd_dequeue_idx = add_one_with_wrap_around(priv->cmd_dequeue_idx, CMD_Q_SIZE); in vnt_cmd_complete() 55 priv->free_cmd_queue++; in vnt_cmd_complete() 56 priv->cmd_running = true; in vnt_cmd_complete() [all …]
|
/linux-6.1.9/drivers/gpu/drm/meson/ |
D | meson_crtc.c | 37 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.1.9/drivers/net/wireless/realtek/rtl818x/rtl8180/ |
D | dev.c | 197 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.1.9/drivers/i2c/busses/ |
D | i2c-hix5hd2.c | 95 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.1.9/drivers/net/wireless/realtek/rtl8xxxu/ |
D | rtl8xxxu_8192e.c | 482 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 …]
|
D | rtl8xxxu_8723b.c | 307 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 …]
|
/linux-6.1.9/drivers/staging/ks7010/ |
D | ks_hostif.c | 21 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 …]
|
D | ks7010_sdio.c | 109 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.1.9/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_main.c | 133 static void stmmac_reset_rx_queue(struct stmmac_priv *priv, u32 queue); 134 static void stmmac_reset_tx_queue(struct stmmac_priv *priv, u32 queue); 135 static void stmmac_reset_queues_param(struct stmmac_priv *priv); 136 static void stmmac_tx_timer_arm(struct stmmac_priv *priv, u32 queue); 137 static void stmmac_flush_tx_descriptors(struct stmmac_priv *priv, int queue); 138 static void stmmac_set_dma_operation_mode(struct stmmac_priv *priv, u32 txmode, 149 int stmmac_bus_clks_config(struct stmmac_priv *priv, bool enabled) in stmmac_bus_clks_config() argument 154 ret = clk_prepare_enable(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 157 ret = clk_prepare_enable(priv->plat->pclk); in stmmac_bus_clks_config() 159 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config() [all …]
|
/linux-6.1.9/drivers/net/ethernet/broadcom/ |
D | bcm63xx_enet.c | 36 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.1.9/drivers/net/wireless/realtek/rtl818x/rtl8187/ |
D | dev.c | 121 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.1.9/drivers/net/ethernet/microchip/ |
D | enc28j60.c | 85 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 …]
|