Searched refs:dev (Results 176 - 200 of 20581) sorted by relevance

1234567891011>>

/linux-master/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dinit.c13 static ssize_t mt7925_thermal_temp_show(struct device *dev, argument
19 struct mt792x_phy *phy = dev_get_drvdata(dev);
20 struct mt792x_dev *mdev = phy->dev;
53 name = devm_kasprintf(&wiphy->dev, GFP_KERNEL, "mt7925_%s",
56 hwmon = devm_hwmon_device_register_with_groups(&wiphy->dev, name, phy,
65 struct mt792x_dev *dev = mt792x_hw_dev(hw); local
66 struct mt76_dev *mdev = &dev->mt76;
75 dev->country_ie_env == req->country_ie_env)
80 dev->country_ie_env = req->country_ie_env;
82 mt792x_mutex_acquire(dev);
89 mt7925_mac_init_basic_rates(struct mt792x_dev *dev) argument
103 mt7925_mac_init(struct mt792x_dev *dev) argument
125 __mt7925_init_hardware(struct mt792x_dev *dev) argument
147 mt7925_init_hardware(struct mt792x_dev *dev) argument
171 struct mt792x_dev *dev = container_of(work, struct mt792x_dev, local
207 mt7925_register_device(struct mt792x_dev *dev) argument
[all...]
H A Dpci_mac.c13 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); local
25 wcid = &dev->mt76.global_wcid;
56 void mt7925_tx_token_put(struct mt792x_dev *dev) argument
61 spin_lock_bh(&dev->mt76.token_lock);
62 idr_for_each_entry(&dev->mt76.token, txwi, id) {
63 mt7925_txwi_free(dev, txwi, NULL, false, NULL);
64 dev->mt76.token_count--;
66 spin_unlock_bh(&dev->mt76.token_lock);
67 idr_destroy(&dev->mt76.token);
70 int mt7925e_mac_reset(struct mt792x_dev *dev) argument
[all...]
/linux-master/drivers/net/ethernet/cirrus/
H A Dmac89x0.c115 static int net_open(struct net_device *dev);
116 static netdev_tx_t net_send_packet(struct sk_buff *skb, struct net_device *dev);
118 static void set_multicast_list(struct net_device *dev);
119 static void net_rx(struct net_device *dev);
120 static int net_close(struct net_device *dev);
121 static struct net_device_stats *net_get_stats(struct net_device *dev);
122 static int set_mac_address(struct net_device *dev, void *addr);
126 readreg_io(struct net_device *dev, int portno) argument
128 nubus_writew(swab16(portno), dev->base_addr + ADD_PORT);
129 return swab16(nubus_readw(dev
133 writereg_io(struct net_device *dev, int portno, int value) argument
141 readreg(struct net_device *dev, int portno) argument
147 writereg(struct net_device *dev, int portno, int value) argument
166 struct net_device *dev; local
285 net_open(struct net_device *dev) argument
331 net_send_packet(struct sk_buff *skb, struct net_device *dev) argument
372 struct net_device *dev = dev_id; local
436 net_rx(struct net_device *dev) argument
482 net_close(struct net_device *dev) argument
503 net_get_stats(struct net_device *dev) argument
516 set_multicast_list(struct net_device *dev) argument
539 set_mac_address(struct net_device *dev, void *addr) argument
561 struct net_device *dev = platform_get_drvdata(pdev); local
[all...]
/linux-master/sound/soc/starfive/
H A Djh7110_pwmdac.c96 struct device *dev; member in struct:jh7110_pwmdac_dev
111 static void jh7110_pwmdac_set_enable(struct jh7110_pwmdac_dev *dev, bool enable) argument
115 value = jh7110_pwmdac_read_reg(dev->base, JH7110_PWMDAC_CTRL);
121 jh7110_pwmdac_write_reg(dev->base, JH7110_PWMDAC_CTRL, value);
124 static void jh7110_pwmdac_set_shift(struct jh7110_pwmdac_dev *dev) argument
128 value = jh7110_pwmdac_read_reg(dev->base, JH7110_PWMDAC_CTRL);
129 if (dev->cfg.shift == PWMDAC_SHIFT_8)
131 else if (dev->cfg.shift == PWMDAC_SHIFT_10)
134 jh7110_pwmdac_write_reg(dev->base, JH7110_PWMDAC_CTRL, value);
137 static void jh7110_pwmdac_set_duty_cycle(struct jh7110_pwmdac_dev *dev) argument
148 jh7110_pwmdac_set_cnt_n(struct jh7110_pwmdac_dev *dev) argument
159 jh7110_pwmdac_set_data_change(struct jh7110_pwmdac_dev *dev) argument
172 jh7110_pwmdac_set_data_mode(struct jh7110_pwmdac_dev *dev) argument
185 jh7110_pwmdac_set_data_shift(struct jh7110_pwmdac_dev *dev) argument
196 jh7110_pwmdac_set(struct jh7110_pwmdac_dev *dev) argument
208 jh7110_pwmdac_stop(struct jh7110_pwmdac_dev *dev) argument
228 struct jh7110_pwmdac_dev *dev = dev_get_drvdata(dai->dev); local
299 struct jh7110_pwmdac_dev *dev = snd_soc_dai_get_drvdata(dai); local
322 jh7110_pwmdac_crg_enable(struct jh7110_pwmdac_dev *dev, bool enable) argument
351 struct jh7110_pwmdac_dev *dev = dev_get_drvdata(dai->dev); local
382 jh7110_pwmdac_runtime_suspend(struct device *dev) argument
389 jh7110_pwmdac_runtime_resume(struct device *dev) argument
396 jh7110_pwmdac_system_suspend(struct device *dev) argument
406 jh7110_pwmdac_system_resume(struct device *dev) argument
428 jh7110_pwmdac_init_params(struct jh7110_pwmdac_dev *dev) argument
445 struct jh7110_pwmdac_dev *dev; local
[all...]
/linux-master/arch/mips/pci/
H A Dfixup-rc32434.c39 int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) argument
43 if (dev->bus->number < 2 && PCI_SLOT(dev->devfn) < 12)
44 irq = irq_map[dev->bus->number][PCI_SLOT(dev->devfn)];
49 static void rc32434_pci_early_fixup(struct pci_dev *dev) argument
51 if (PCI_SLOT(dev->devfn) == 6 && dev->bus->number == 0) {
53 pci_write_config_word(dev, PCI_PREF_MEMORY_LIMIT, 0);
54 pci_write_config_word(dev, PCI_PREF_MEMORY_BAS
66 pcibios_plat_dev_init(struct pci_dev *dev) argument
[all...]
H A Dfixup-lantiq.c10 int pcibios_plat_dev_init(struct pci_dev *dev) argument
15 int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) argument
17 return of_irq_parse_and_map_pci(dev, slot, pin);
H A Dfixup-ath79.c10 int pcibios_plat_dev_init(struct pci_dev *dev) argument
15 int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) argument
17 return of_irq_parse_and_map_pci(dev, slot, pin);
/linux-master/drivers/gpu/drm/mediatek/
H A Dmtk_cec.h13 void mtk_cec_set_hpd_event(struct device *dev,
14 void (*hotplug_event)(bool hpd, struct device *dev),
16 bool mtk_cec_hpd_high(struct device *dev);
/linux-master/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Dmt76x2u.h21 int mt76x2u_register_device(struct mt76x02_dev *dev);
22 int mt76x2u_init_hardware(struct mt76x02_dev *dev);
23 void mt76x2u_cleanup(struct mt76x02_dev *dev);
24 void mt76x2u_stop_hw(struct mt76x02_dev *dev);
26 int mt76x2u_mac_reset(struct mt76x02_dev *dev);
27 int mt76x2u_mac_stop(struct mt76x02_dev *dev);
29 int mt76x2u_phy_set_channel(struct mt76x02_dev *dev,
34 int mt76x2u_mcu_init(struct mt76x02_dev *dev);
35 int mt76x2u_mcu_fw_init(struct mt76x02_dev *dev);
37 int mt76x2u_alloc_queues(struct mt76x02_dev *dev);
[all...]
H A Dmac.h15 void mt76x2_mac_stop(struct mt76x02_dev *dev, bool force);
17 static inline void mt76x2_mac_resume(struct mt76x02_dev *dev) argument
19 mt76_wr(dev, MT_MAC_SYS_CTRL,
H A Dpci_phy.c13 mt76x2_phy_tssi_init_cal(struct mt76x02_dev *dev) argument
15 struct ieee80211_channel *chan = dev->mphy.chandef.chan;
18 if (!mt76x2_tssi_enabled(dev))
21 if (mt76x2_channel_silent(dev))
27 if (mt76x02_ext_pa_enabled(dev, chan->band))
30 mt76x02_mcu_calibrate(dev, MCU_CAL_TSSI, flag);
31 dev->cal.tssi_cal_done = true;
36 mt76x2_phy_channel_calibrate(struct mt76x02_dev *dev, bool mac_stopped) argument
38 struct ieee80211_channel *chan = dev->mphy.chandef.chan;
41 if (dev
71 mt76x2_phy_set_antenna(struct mt76x02_dev *dev) argument
117 mt76x2_phy_set_channel(struct mt76x02_dev *dev, struct cfg80211_chan_def *chandef) argument
254 mt76x2_phy_temp_compensate(struct mt76x02_dev *dev) argument
283 struct mt76x02_dev *dev; local
300 mt76x2_phy_start(struct mt76x02_dev *dev) argument
[all...]
/linux-master/drivers/media/test-drivers/vivid/
H A Dvivid-radio-common.c59 void vivid_radio_rds_init(struct vivid_dev *dev) argument
61 struct vivid_rds_gen *rds = &dev->rds_gen;
62 bool alt = dev->radio_rx_rds_use_alternates;
65 if (dev->radio_rds_loop && !dev->radio_tx_rds_controls)
68 if (dev->radio_rds_loop) {
69 v4l2_ctrl_lock(dev->radio_tx_rds_pi);
70 rds->picode = dev->radio_tx_rds_pi->cur.val;
71 rds->pty = dev->radio_tx_rds_pty->cur.val;
72 rds->mono_stereo = dev
106 vivid_radio_calc_sig_qual(struct vivid_dev *dev) argument
151 struct vivid_dev *dev = video_drvdata(file); local
[all...]
H A Dvivid-kthread-out.c44 static void vivid_thread_vid_out_tick(struct vivid_dev *dev) argument
50 dprintk(dev, 1, "Video Output Thread Tick\n");
53 if (dev->perc_dropped_buffers &&
54 get_random_u32_below(100) < dev->perc_dropped_buffers)
57 spin_lock(&dev->slock);
62 if (!list_empty(&dev->vid_out_active) &&
63 !list_is_singular(&dev->vid_out_active)) {
64 vid_out_buf = list_entry(dev->vid_out_active.next,
68 if (!list_empty(&dev->vbi_out_active) &&
69 (dev
142 struct vivid_dev *dev = data; local
246 vivid_grab_controls(struct vivid_dev *dev, bool grab) argument
255 vivid_start_generating_vid_out(struct vivid_dev *dev, bool *pstreaming) argument
295 vivid_stop_generating_vid_out(struct vivid_dev *dev, bool *pstreaming) argument
[all...]
/linux-master/drivers/gpu/drm/gma500/
H A Dcdv_device.h12 extern void cdv_intel_crt_init(struct drm_device *dev,
14 extern void cdv_intel_lvds_init(struct drm_device *dev,
16 extern void cdv_hdmi_init(struct drm_device *dev, struct psb_intel_mode_device *mode_dev,
18 extern struct drm_display_mode *cdv_intel_crtc_mode_get(struct drm_device *dev,
20 extern void cdv_update_wm(struct drm_device *dev, struct drm_crtc *crtc);
21 extern void cdv_disable_sr(struct drm_device *dev);
/linux-master/arch/x86/include/asm/xen/
H A Dpci.h32 int (*enable_msi)(struct pci_dev *dev, int vectors[]);
33 void (*disable_msi)(struct pci_dev *dev);
34 int (*enable_msix)(struct pci_dev *dev, int vectors[], int nvec);
35 void (*disable_msix)(struct pci_dev *dev);
40 static inline int xen_pci_frontend_enable_msi(struct pci_dev *dev, argument
44 return xen_pci_frontend->enable_msi(dev, vectors);
47 static inline void xen_pci_frontend_disable_msi(struct pci_dev *dev) argument
50 xen_pci_frontend->disable_msi(dev);
52 static inline int xen_pci_frontend_enable_msix(struct pci_dev *dev, argument
56 return xen_pci_frontend->enable_msix(dev, vector
59 xen_pci_frontend_disable_msix(struct pci_dev *dev) argument
[all...]
/linux-master/include/net/
H A Dbareudp.h10 static inline bool netif_is_bareudp(const struct net_device *dev) argument
12 return dev->rtnl_link_ops &&
13 !strcmp(dev->rtnl_link_ops->kind, "bareudp");
/linux-master/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_iommu.h14 static inline bool exynos_is_iommu_available(struct device *dev) argument
16 return dev_iommu_priv_get(dev) != NULL;
21 static inline bool exynos_is_iommu_available(struct device *dev) argument
/linux-master/drivers/virtio/
H A Dvirtio_anchor.c5 bool virtio_require_restricted_mem_acc(struct virtio_device *dev) argument
11 static bool virtio_no_restricted_mem_acc(struct virtio_device *dev) argument
16 bool (*virtio_check_mem_acc_cb)(struct virtio_device *dev) =
/linux-master/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_debugfs.c12 struct mt76x02_dev *dev = file->private; local
23 dev->mphy.aggr_stats[i * 8 + j]);
38 struct mt76x02_dev *dev = dev_get_drvdata(file->private); local
40 seq_printf(file, "Target power: %d\n", dev->target_power);
42 mt76_seq_puts_array(file, "Delta", dev->target_power_delta,
43 ARRAY_SIZE(dev->target_power_delta));
50 struct mt76x02_dev *dev = file->private; local
51 struct mt76x02_dfs_pattern_detector *dfs_pd = &dev->dfs_pd;
77 struct mt76x02_dev *dev = dev_get_drvdata(file->private); local
79 seq_printf(file, "avg_rssi: %d\n", dev
90 struct mt76x02_dev *dev = data; local
108 struct mt76x02_dev *dev = data; local
119 struct mt76x02_dev *dev = dev_get_drvdata(s->private); local
132 mt76x02_init_debugfs(struct mt76x02_dev *dev) argument
[all...]
H A Dmt76x02_mmio.c16 struct mt76x02_dev *dev = from_tasklet(dev, t, mt76.pre_tbtt_tasklet); local
17 struct mt76_dev *mdev = &dev->mt76;
18 struct mt76_queue *q = dev->mphy.q_tx[MT_TXQ_PSD];
20 .dev = dev,
25 if (mt76_hw(dev)->conf.flags & IEEE80211_CONF_OFFCHANNEL)
30 mt76x02_resync_beacon_timer(dev);
33 mt76_set(dev, MT_BCN_BYPASS_MASK, 0xffff);
34 dev
75 mt76x02e_pre_tbtt_enable(struct mt76x02_dev *dev, bool en) argument
83 mt76x02e_beacon_enable(struct mt76x02_dev *dev, bool en) argument
92 mt76x02e_init_beacon_config(struct mt76x02_dev *dev) argument
115 mt76x02_init_rx_queue(struct mt76x02_dev *dev, struct mt76_queue *q, int idx, int n_desc, int bufsize) argument
130 mt76x02_process_tx_status_fifo(struct mt76x02_dev *dev) argument
141 struct mt76x02_dev *dev; local
153 struct mt76x02_dev *dev = container_of(napi, struct mt76x02_dev, local
175 mt76x02_dma_init(struct mt76x02_dev *dev) argument
252 struct mt76x02_dev *dev; local
261 struct mt76x02_dev *dev = dev_instance; local
309 mt76x02_dma_enable(struct mt76x02_dev *dev) argument
325 mt76x02_dma_disable(struct mt76x02_dev *dev) argument
337 mt76x02_mac_start(struct mt76x02_dev *dev) argument
351 mt76x02_tx_hang(struct mt76x02_dev *dev) argument
380 struct mt76x02_dev *dev = hw->priv; local
394 mt76x02_reset_state(struct mt76x02_dev *dev) argument
434 mt76x02_watchdog_reset(struct mt76x02_dev *dev) argument
530 struct mt76x02_dev *dev = hw->priv; local
539 mt76x02_check_tx_hang(struct mt76x02_dev *dev) argument
557 struct mt76x02_dev *dev = container_of(work, struct mt76x02_dev, local
[all...]
/linux-master/drivers/clk/samsung/
H A Dclk-exynos-arm64.h17 void exynos_arm64_register_cmu(struct device *dev,
20 int exynos_arm64_cmu_suspend(struct device *dev);
21 int exynos_arm64_cmu_resume(struct device *dev);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Dsf.h12 int mlx5_sf_hw_table_init(struct mlx5_core_dev *dev);
13 void mlx5_sf_hw_table_cleanup(struct mlx5_core_dev *dev);
15 int mlx5_sf_hw_table_create(struct mlx5_core_dev *dev);
16 void mlx5_sf_hw_table_destroy(struct mlx5_core_dev *dev);
18 int mlx5_sf_table_init(struct mlx5_core_dev *dev);
19 void mlx5_sf_table_cleanup(struct mlx5_core_dev *dev);
37 static inline int mlx5_sf_hw_table_init(struct mlx5_core_dev *dev) argument
42 static inline void mlx5_sf_hw_table_cleanup(struct mlx5_core_dev *dev) argument
46 static inline int mlx5_sf_hw_table_create(struct mlx5_core_dev *dev) argument
51 static inline void mlx5_sf_hw_table_destroy(struct mlx5_core_dev *dev) argument
55 mlx5_sf_table_init(struct mlx5_core_dev *dev) argument
60 mlx5_sf_table_cleanup(struct mlx5_core_dev *dev) argument
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dreporter_vnic.h9 void mlx5_reporter_vnic_create(struct mlx5_core_dev *dev);
10 void mlx5_reporter_vnic_destroy(struct mlx5_core_dev *dev);
12 void mlx5_reporter_vnic_diagnose_counters(struct mlx5_core_dev *dev,
/linux-master/drivers/net/wireless/mediatek/mt76/mt76x0/
H A Dmain.c12 mt76x0_set_channel(struct mt76x02_dev *dev, struct cfg80211_chan_def *chandef) argument
14 cancel_delayed_work_sync(&dev->cal_work);
15 mt76x02_pre_tbtt_enable(dev, false);
16 if (mt76_is_mmio(&dev->mt76))
17 tasklet_disable(&dev->dfs_pd.dfs_tasklet);
19 mt76_set_channel(&dev->mphy);
20 mt76x0_phy_set_channel(dev, chandef);
22 mt76x02_mac_cc_reset(dev);
23 mt76x02_edcca_init(dev);
25 if (mt76_is_mmio(&dev
38 struct mt76x02_dev *dev = hw->priv; local
62 struct mt76x02_dev *dev = hw->priv; local
[all...]
/linux-master/drivers/i2c/busses/
H A Di2c-highlander.c41 struct device *dev; member in struct:highlander_i2c_dev
54 static inline void highlander_i2c_irq_enable(struct highlander_i2c_dev *dev) argument
56 iowrite16(ioread16(dev->base + SMCR) | SMCR_IEIC, dev->base + SMCR);
59 static inline void highlander_i2c_irq_disable(struct highlander_i2c_dev *dev) argument
61 iowrite16(ioread16(dev->base + SMCR) & ~SMCR_IEIC, dev->base + SMCR);
64 static inline void highlander_i2c_start(struct highlander_i2c_dev *dev) argument
66 iowrite16(ioread16(dev->base + SMCR) | SMCR_START, dev
69 highlander_i2c_done(struct highlander_i2c_dev *dev) argument
74 highlander_i2c_setup(struct highlander_i2c_dev *dev) argument
111 highlander_i2c_command(struct highlander_i2c_dev *dev, u8 command, int len) argument
125 highlander_i2c_wait_for_bbsy(struct highlander_i2c_dev *dev) argument
142 highlander_i2c_reset(struct highlander_i2c_dev *dev) argument
148 highlander_i2c_wait_for_ack(struct highlander_i2c_dev *dev) argument
162 struct highlander_i2c_dev *dev = dev_id; local
170 highlander_i2c_poll(struct highlander_i2c_dev *dev) argument
197 highlander_i2c_wait_xfer_done(struct highlander_i2c_dev *dev) argument
209 highlander_i2c_read(struct highlander_i2c_dev *dev) argument
254 highlander_i2c_write(struct highlander_i2c_dev *dev) argument
280 struct highlander_i2c_dev *dev = i2c_get_adapdata(adap); local
357 struct highlander_i2c_dev *dev; local
440 struct highlander_i2c_dev *dev = platform_get_drvdata(pdev); local
[all...]

Completed in 217 milliseconds

1234567891011>>