Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 2799) sorted by relevance

12345678910>>...112

/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_main.c181 static inline void mlx4_set_num_reserved_uars(struct mlx4_dev *dev, in mlx4_set_num_reserved_uars() argument
188 dev->caps.reserved_uars = in mlx4_set_num_reserved_uars()
190 mlx4_get_num_reserved_uar(dev), in mlx4_set_num_reserved_uars()
192 (1 << (PAGE_SHIFT - dev->uar_page_shift))); in mlx4_set_num_reserved_uars()
195 int mlx4_check_port_params(struct mlx4_dev *dev, in mlx4_check_port_params() argument
200 if (!(dev->caps.flags & MLX4_DEV_CAP_FLAG_DPDP)) { in mlx4_check_port_params()
201 for (i = 0; i < dev->caps.num_ports - 1; i++) { in mlx4_check_port_params()
203 mlx4_err(dev, "Only same port types supported on this HCA, aborting\n"); in mlx4_check_port_params()
209 for (i = 0; i < dev->caps.num_ports; i++) { in mlx4_check_port_params()
210 if (!(port_type[i] & dev->caps.supported_type[i+1])) { in mlx4_check_port_params()
[all …]
/freebsd/contrib/libfido2/src/
H A Ddev.c18 set_random_report_len(fido_dev_t *dev) in set_random_report_len() argument
20 dev->rx_len = CTAP_MIN_REPORT_LEN + in set_random_report_len()
22 dev->tx_len = CTAP_MIN_REPORT_LEN + in set_random_report_len()
28 fido_dev_set_extension_flags(fido_dev_t *dev, const fido_cbor_info_t *info) in fido_dev_set_extension_flags() argument
35 dev->flags |= FIDO_DEV_CRED_PROT; in fido_dev_set_extension_flags()
39 fido_dev_set_option_flags(fido_dev_t *dev, const fido_cbor_info_t *info) in fido_dev_set_option_flags() argument
47 dev->flags |= val[i] ? in fido_dev_set_option_flags()
52 dev->flags |= FIDO_DEV_CREDMAN; in fido_dev_set_option_flags()
54 dev->flags |= val[i] ? in fido_dev_set_option_flags()
58 dev->flags |= FIDO_DEV_TOKEN_PERMS; in fido_dev_set_option_flags()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/
H A Dpci_init.c13 mt76x2_mac_pbf_init(struct mt76x02_dev *dev) in mt76x2_mac_pbf_init() argument
23 mt76_set(dev, MT_PBF_SYS_CTRL, val); in mt76x2_mac_pbf_init()
24 mt76_clear(dev, MT_PBF_SYS_CTRL, val); in mt76x2_mac_pbf_init()
26 mt76_wr(dev, MT_PBF_TX_MAX_PCNT, 0xefef3f1f); in mt76x2_mac_pbf_init()
27 mt76_wr(dev, MT_PBF_RX_MAX_PCNT, 0xfebf); in mt76x2_mac_pbf_init()
31 mt76x2_fixup_xtal(struct mt76x02_dev *dev) in mt76x2_fixup_xtal() argument
36 eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_2); in mt76x2_fixup_xtal()
46 eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_1); in mt76x2_fixup_xtal()
54 mt76_rmw_field(dev, MT_XO_CTRL5, MT_XO_CTRL5_C2_VAL, eep_val + offset); in mt76x2_fixup_xtal()
55 mt76_set(dev, MT_XO_CTRL6, MT_XO_CTRL6_C2_CTRL); in mt76x2_fixup_xtal()
[all …]
H A Dphy.c13 mt76x2_adjust_high_lna_gain(struct mt76x02_dev *dev, int reg, s8 offset) in mt76x2_adjust_high_lna_gain() argument
18 mt76_rr(dev, MT_BBP(AGC, reg))); in mt76x2_adjust_high_lna_gain()
20 mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_LNA_HIGH_GAIN, gain); in mt76x2_adjust_high_lna_gain()
24 mt76x2_adjust_agc_gain(struct mt76x02_dev *dev, int reg, s8 offset) in mt76x2_adjust_agc_gain() argument
28 gain = FIELD_GET(MT_BBP_AGC_GAIN, mt76_rr(dev, MT_BBP(AGC, reg))); in mt76x2_adjust_agc_gain()
30 mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_GAIN, gain); in mt76x2_adjust_agc_gain()
33 void mt76x2_apply_gain_adj(struct mt76x02_dev *dev) in mt76x2_apply_gain_adj() argument
35 s8 *gain_adj = dev->cal.rx.high_gain; in mt76x2_apply_gain_adj()
37 mt76x2_adjust_high_lna_gain(dev, 4, gain_adj[0]); in mt76x2_apply_gain_adj()
38 mt76x2_adjust_high_lna_gain(dev, 5, gain_adj[1]); in mt76x2_apply_gain_adj()
[all …]
H A Dusb_init.c13 static void mt76x2u_init_dma(struct mt76x02_dev *dev) in mt76x2u_init_dma() argument
15 u32 val = mt76_rr(dev, MT_VEND_ADDR(CFG, MT_USB_U3DMA_CFG)); in mt76x2u_init_dma()
25 mt76_wr(dev, MT_VEND_ADDR(CFG, MT_USB_U3DMA_CFG), val); in mt76x2u_init_dma()
28 static void mt76x2u_power_on_rf_patch(struct mt76x02_dev *dev) in mt76x2u_power_on_rf_patch() argument
30 mt76_set(dev, MT_VEND_ADDR(CFG, 0x130), BIT(0) | BIT(16)); in mt76x2u_power_on_rf_patch()
33 mt76_clear(dev, MT_VEND_ADDR(CFG, 0x1c), 0xff); in mt76x2u_power_on_rf_patch()
34 mt76_set(dev, MT_VEND_ADDR(CFG, 0x1c), 0x30); in mt76x2u_power_on_rf_patch()
36 mt76_wr(dev, MT_VEND_ADDR(CFG, 0x14), 0x484f); in mt76x2u_power_on_rf_patch()
39 mt76_set(dev, MT_VEND_ADDR(CFG, 0x130), BIT(17)); in mt76x2u_power_on_rf_patch()
42 mt76_clear(dev, MT_VEND_ADDR(CFG, 0x130), BIT(16)); in mt76x2u_power_on_rf_patch()
[all …]
H A Dpci_phy.c13 mt76x2_phy_tssi_init_cal(struct mt76x02_dev *dev) in mt76x2_phy_tssi_init_cal() argument
15 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x2_phy_tssi_init_cal()
18 if (!mt76x2_tssi_enabled(dev)) in mt76x2_phy_tssi_init_cal()
21 if (mt76x2_channel_silent(dev)) in mt76x2_phy_tssi_init_cal()
27 if (mt76x02_ext_pa_enabled(dev, chan->band)) in mt76x2_phy_tssi_init_cal()
30 mt76x02_mcu_calibrate(dev, MCU_CAL_TSSI, flag); in mt76x2_phy_tssi_init_cal()
31 dev->cal.tssi_cal_done = true; in mt76x2_phy_tssi_init_cal()
36 mt76x2_phy_channel_calibrate(struct mt76x02_dev *dev, bool mac_stopped) in mt76x2_phy_channel_calibrate() argument
38 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x2_phy_channel_calibrate()
41 if (dev->cal.channel_cal_done) in mt76x2_phy_channel_calibrate()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt76x02_mmio.c16 struct mt76x02_dev *dev = from_tasklet(dev, t, mt76.pre_tbtt_tasklet); in mt76x02_pre_tbtt_tasklet() local
17 struct mt76_dev *mdev = &dev->mt76; in mt76x02_pre_tbtt_tasklet()
18 struct mt76_queue *q = dev->mphy.q_tx[MT_TXQ_PSD]; in mt76x02_pre_tbtt_tasklet()
23 if (mt76_hw(dev)->conf.flags & IEEE80211_CONF_OFFCHANNEL) in mt76x02_pre_tbtt_tasklet()
26 mt76x02_resync_beacon_timer(dev); in mt76x02_pre_tbtt_tasklet()
29 mt76_set(dev, MT_BCN_BYPASS_MASK, 0xffff); in mt76x02_pre_tbtt_tasklet()
30 dev->beacon_data_count = 0; in mt76x02_pre_tbtt_tasklet()
32 ieee80211_iterate_active_interfaces_atomic(mt76_hw(dev), in mt76x02_pre_tbtt_tasklet()
34 mt76x02_update_beacon_iter, dev); in mt76x02_pre_tbtt_tasklet()
36 mt76_wr(dev, MT_BCN_BYPASS_MASK, in mt76x02_pre_tbtt_tasklet()
[all …]
H A Dmt792x_dma.c16 struct mt792x_dev *dev = dev_instance; in mt792x_irq_handler() local
18 mt76_wr(dev, dev->irq_map->host_irq_enable, 0); in mt792x_irq_handler()
20 if (!test_bit(MT76_STATE_INITIALIZED, &dev->mphy.state)) in mt792x_irq_handler()
23 tasklet_schedule(&dev->mt76.irq_tasklet); in mt792x_irq_handler()
31 struct mt792x_dev *dev = (struct mt792x_dev *)data; in mt792x_irq_tasklet() local
32 const struct mt792x_irq_map *irq_map = dev->irq_map; in mt792x_irq_tasklet()
35 mt76_wr(dev, irq_map->host_irq_enable, 0); in mt792x_irq_tasklet()
37 intr = mt76_rr(dev, MT_WFDMA0_HOST_INT_STA); in mt792x_irq_tasklet()
38 intr &= dev->mt76.mmio.irqmask; in mt792x_irq_tasklet()
39 mt76_wr(dev, MT_WFDMA0_HOST_INT_STA, intr); in mt792x_irq_tasklet()
[all …]
H A Dmt792x_usb.c14 u32 mt792xu_rr(struct mt76_dev *dev, u32 addr) in mt792xu_rr() argument
18 mutex_lock(&dev->usb.usb_ctrl_mtx); in mt792xu_rr()
19 ret = ___mt76u_rr(dev, MT_VEND_READ_EXT, in mt792xu_rr()
21 mutex_unlock(&dev->usb.usb_ctrl_mtx); in mt792xu_rr()
27 void mt792xu_wr(struct mt76_dev *dev, u32 addr, u32 val) in mt792xu_wr() argument
29 mutex_lock(&dev->usb.usb_ctrl_mtx); in mt792xu_wr()
30 ___mt76u_wr(dev, MT_VEND_WRITE_EXT, in mt792xu_wr()
32 mutex_unlock(&dev->usb.usb_ctrl_mtx); in mt792xu_wr()
36 u32 mt792xu_rmw(struct mt76_dev *dev, u32 addr, u32 mask, u32 val) in mt792xu_rmw() argument
38 mutex_lock(&dev->usb.usb_ctrl_mtx); in mt792xu_rmw()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/
H A Ddma.c15 mt7622_init_tx_queues_multi(struct mt7615_dev *dev) in mt7622_init_tx_queues_multi() argument
27 ret = mt76_init_tx_queue(&dev->mphy, i, wmm_queue_map[i], in mt7622_init_tx_queues_multi()
34 ret = mt76_init_tx_queue(&dev->mphy, MT_TXQ_PSD, MT7622_TXQ_MGMT, in mt7622_init_tx_queues_multi()
40 return mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_WM, MT7622_TXQ_MCU, in mt7622_init_tx_queues_multi()
45 mt7615_init_tx_queues(struct mt7615_dev *dev) in mt7615_init_tx_queues() argument
49 ret = mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_FWDL, MT7615_TXQ_FWDL, in mt7615_init_tx_queues()
54 if (!is_mt7615(&dev->mt76)) in mt7615_init_tx_queues()
55 return mt7622_init_tx_queues_multi(dev); in mt7615_init_tx_queues()
57 ret = mt76_connac_init_tx_queues(&dev->mphy, 0, MT7615_TX_RING_SIZE, in mt7615_init_tx_queues()
62 return mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_WM, MT7615_TXQ_MCU, in mt7615_init_tx_queues()
[all …]
H A Ddebugfs.c8 struct mt7615_dev *dev = data; in mt7615_reg_set() local
10 mt7615_mutex_acquire(dev); in mt7615_reg_set()
11 mt76_wr(dev, dev->mt76.debugfs_reg, val); in mt7615_reg_set()
12 mt7615_mutex_release(dev); in mt7615_reg_set()
20 struct mt7615_dev *dev = data; in mt7615_reg_get() local
22 mt7615_mutex_acquire(dev); in mt7615_reg_get()
23 *val = mt76_rr(dev, dev->mt76.debugfs_reg); in mt7615_reg_get()
24 mt7615_mutex_release(dev); in mt7615_reg_get()
35 struct mt7615_dev *dev = data; in mt7615_radar_pattern_set() local
38 if (!mt7615_wait_for_mcu_init(dev)) in mt7615_radar_pattern_set()
[all …]
/freebsd/libexec/rc/rc.d/
H A Dbluetooth74 if expr "$_line" : "[a-zA-Z0-9_]*=" > /dev/null 2>&1; then
93 dev=$1
99 ngctl mkpeer ${dev}: hci ${hook} drv \
100 > /dev/null 2>&1 || return 1
102 ngctl name ${dev}:${hook} ${dev}hci \
103 > /dev/null 2>&1 || return 1
105 ngctl msg ${dev}hci: set_debug ${bluetooth_device_hci_debug_level} \
106 > /dev/null 2>&1 || return 1
109 ngctl mkpeer ${dev}hci: l2cap acl hci \
110 > /dev/null 2>&1 || return 1
[all …]
/freebsd/sys/dev/drm2/
H A Ddrm_irq.c40 #define vblanktimestamp(dev, crtc, count) ( \ argument
41 (dev)->_vblank_time[(crtc) * DRM_VBLANKTIME_RBSIZE + \
67 int drm_irq_by_busid(struct drm_device *dev, void *data, in drm_irq_by_busid() argument
72 if (!dev->driver->bus->irq_by_busid) in drm_irq_by_busid()
75 if (!drm_core_check_feature(dev, DRIVER_HAVE_IRQ)) in drm_irq_by_busid()
78 return dev->driver->bus->irq_by_busid(dev, p); in drm_irq_by_busid()
84 static void clear_vblank_timestamps(struct drm_device *dev, int crtc) in clear_vblank_timestamps() argument
86 memset(&dev->_vblank_time[crtc * DRM_VBLANKTIME_RBSIZE], 0, in clear_vblank_timestamps()
96 static void vblank_disable_and_save(struct drm_device *dev, int crtc) in vblank_disable_and_save() argument
108 mtx_lock(&dev->vblank_time_lock); in vblank_disable_and_save()
[all …]
H A Ddrm_pci.c67 drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, in drm_pci_alloc() argument
85 mtx_assert(&dev->dma_lock, MA_NOTOWNED); in drm_pci_alloc()
86 if (mtx_owned(&dev->dma_lock)) in drm_pci_alloc()
90 bus_get_dma_tag(dev->dev), /* parent */ in drm_pci_alloc()
129 void __drm_pci_free(struct drm_device * dev, drm_dma_handle_t * dmah) in __drm_pci_free() argument
142 void drm_pci_free(struct drm_device * dev, drm_dma_handle_t * dmah) in drm_pci_free() argument
144 __drm_pci_free(dev, dmah); in drm_pci_free()
150 static int drm_get_pci_domain(struct drm_device *dev) in drm_get_pci_domain() argument
152 return dev->pci_domain; in drm_get_pci_domain()
155 static int drm_pci_get_irq(struct drm_device *dev) in drm_pci_get_irq() argument
[all …]
H A Ddrm_fops.c41 DRM_STRUCTPROC *p, struct drm_device *dev);
43 static int drm_setup(struct drm_device * dev) in drm_setup() argument
48 if (dev->driver->firstopen) { in drm_setup()
49 ret = dev->driver->firstopen(dev); in drm_setup()
54 atomic_set(&dev->ioctl_count, 0); in drm_setup()
55 atomic_set(&dev->vma_count, 0); in drm_setup()
57 if (drm_core_check_feature(dev, DRIVER_HAVE_DMA) && in drm_setup()
58 !drm_core_check_feature(dev, DRIVER_MODESET)) { in drm_setup()
59 dev->buf_use = 0; in drm_setup()
60 atomic_set(&dev->buf_alloc, 0); in drm_setup()
[all …]
H A Ddrm_context.c60 void drm_ctxbitmap_free(struct drm_device * dev, int ctx_handle) in drm_ctxbitmap_free() argument
63 dev->ctx_bitmap == NULL) { in drm_ctxbitmap_free()
69 DRM_LOCK(dev); in drm_ctxbitmap_free()
70 clear_bit(ctx_handle, dev->ctx_bitmap); in drm_ctxbitmap_free()
71 dev->context_sareas[ctx_handle] = NULL; in drm_ctxbitmap_free()
72 DRM_UNLOCK(dev); in drm_ctxbitmap_free()
84 static int drm_ctxbitmap_next(struct drm_device * dev) in drm_ctxbitmap_next() argument
88 if (dev->ctx_bitmap == NULL) in drm_ctxbitmap_next()
91 DRM_LOCK(dev); in drm_ctxbitmap_next()
92 bit = find_first_zero_bit(dev->ctx_bitmap, DRM_MAX_CTXBITMAP); in drm_ctxbitmap_next()
[all …]
/freebsd/sys/dev/mthca/
H A Dmthca_eq.c166 static inline u64 async_mask(struct mthca_dev *dev) in async_mask() argument
168 return dev->mthca_flags & MTHCA_FLAG_SRQ ? in async_mask()
173 static inline void tavor_set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) in tavor_set_eq_ci() argument
185 dev->kar + MTHCA_EQ_DOORBELL, in tavor_set_eq_ci()
186 MTHCA_GET_DOORBELL_LOCK(&dev->doorbell_lock)); in tavor_set_eq_ci()
189 static inline void arbel_set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) in arbel_set_eq_ci() argument
194 dev->eq_regs.arbel.eq_set_ci_base + eq->eqn * 8); in arbel_set_eq_ci()
199 static inline void set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) in set_eq_ci() argument
201 if (mthca_is_memfree(dev)) in set_eq_ci()
202 arbel_set_eq_ci(dev, eq, ci); in set_eq_ci()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Ddma.c15 struct mt7996_dev *dev; in mt7996_poll_tx() local
17 dev = container_of(napi, struct mt7996_dev, mt76.tx_napi); in mt7996_poll_tx()
19 mt76_connac_tx_cleanup(&dev->mt76); in mt7996_poll_tx()
21 mt7996_irq_enable(dev, MT_INT_TX_DONE_MCU); in mt7996_poll_tx()
26 static void mt7996_dma_config(struct mt7996_dev *dev) in mt7996_dma_config() argument
30 dev->q_wfdma_mask |= (1 << (q)); \ in mt7996_dma_config()
31 dev->q_int_mask[(q)] = int; \ in mt7996_dma_config()
32 dev->q_id[(q)] = id; \ in mt7996_dma_config()
62 static void __mt7996_dma_prefetch(struct mt7996_dev *dev, u32 ofs) in __mt7996_dma_prefetch() argument
66 mt76_wr(dev, MT_MCUQ_EXT_CTRL(MT_MCUQ_FWDL) + ofs, PREFETCH(0x0, 0x2)); in __mt7996_dma_prefetch()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/
H A Dinit.c14 static ssize_t mt7921_thermal_temp_show(struct device *dev, in mt7921_thermal_temp_show() argument
20 struct mt792x_phy *phy = dev_get_drvdata(dev); in mt7921_thermal_temp_show()
21 struct mt792x_dev *mdev = phy->dev; in mt7921_thermal_temp_show()
54 name = devm_kasprintf(&wiphy->dev, GFP_KERNEL, "mt7921_%s", in mt7921_thermal_init()
57 hwmon = devm_hwmon_device_register_with_groups(&wiphy->dev, name, phy, in mt7921_thermal_init()
71 struct mt792x_dev *dev = mt792x_hw_dev(hw); in mt7921_regd_notifier() local
73 memcpy(dev->mt76.alpha2, request->alpha2, sizeof(dev->mt76.alpha2)); in mt7921_regd_notifier()
74 dev->mt76.region = request->dfs_region; in mt7921_regd_notifier()
75 dev->country_ie_env = request->country_ie_env; in mt7921_regd_notifier()
77 mt792x_mutex_acquire(dev); in mt7921_regd_notifier()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Ddevice.h65 void (*dev_release)(struct device *dev);
66 char * (*devnode)(struct device *dev, umode_t *mode);
70 int (*prepare)(struct device *dev);
71 void (*complete)(struct device *dev);
72 int (*suspend)(struct device *dev);
73 int (*suspend_late)(struct device *dev);
74 int (*resume)(struct device *dev);
75 int (*resume_early)(struct device *dev);
76 int (*freeze)(struct device *dev);
77 int (*freeze_late)(struct device *dev);
[all …]
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_main.c210 static void mlx5_set_driver_version(struct mlx5_core_dev *dev) in mlx5_set_driver_version() argument
218 if (!MLX5_CAP_GEN(dev, driver_version)) in mlx5_set_driver_version()
231 mlx5_cmd_exec(dev, in, sizeof(in), out, sizeof(out)); in mlx5_set_driver_version()
243 struct mlx5_core_dev *dev = pci_get_drvdata(pdev); in set_dma_caps() local
248 mlx5_core_warn(dev, "couldn't set 64-bit PCI DMA mask\n"); in set_dma_caps()
251 mlx5_core_err(dev, "Can't set PCI DMA mask, aborting\n"); in set_dma_caps()
258 mlx5_core_warn(dev, "couldn't set 64-bit consistent PCI DMA mask\n"); in set_dma_caps()
261 mlx5_core_err(dev, "Can't set consistent PCI DMA mask, aborting\n"); in set_dma_caps()
266 dma_set_max_seg_size(&pdev->dev, 2u * 1024 * 1024 * 1024); in set_dma_caps()
270 int mlx5_pci_read_power_status(struct mlx5_core_dev *dev, in mlx5_pci_read_power_status() argument
[all …]
H A Dmlx5_health.c68 static int lock_sem_sw_reset(struct mlx5_core_dev *dev) in lock_sem_sw_reset() argument
73 ret = -mlx5_vsc_lock(dev); in lock_sem_sw_reset()
75 mlx5_core_warn(dev, "Timed out locking gateway %d\n", ret); in lock_sem_sw_reset()
79 ret = -mlx5_vsc_lock_addr_space(dev, MLX5_SEMAPHORE_SW_RESET); in lock_sem_sw_reset()
82 mlx5_core_dbg(dev, in lock_sem_sw_reset()
85 mlx5_core_warn(dev, in lock_sem_sw_reset()
90 mlx5_vsc_unlock(dev); in lock_sem_sw_reset()
95 static int unlock_sem_sw_reset(struct mlx5_core_dev *dev) in unlock_sem_sw_reset() argument
100 ret = -mlx5_vsc_lock(dev); in unlock_sem_sw_reset()
102 mlx5_core_warn(dev, "Timed out locking gateway %d\n", ret); in unlock_sem_sw_reset()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dsoc.c43 mt76_wmac_spi_read(struct mt7915_dev *dev, u8 adie, u32 addr, u32 *val) in mt76_wmac_spi_read() argument
50 dev, MT_TOP_SPI_BUSY_CR(adie)); in mt76_wmac_spi_read()
54 mt76_wr(dev, MT_TOP_SPI_ADDR_CR(adie), in mt76_wmac_spi_read()
56 mt76_wr(dev, MT_TOP_SPI_WRITE_DATA_CR(adie), 0); in mt76_wmac_spi_read()
60 dev, MT_TOP_SPI_BUSY_CR(adie)); in mt76_wmac_spi_read()
64 *val = mt76_rr(dev, MT_TOP_SPI_READ_DATA_CR(adie)); in mt76_wmac_spi_read()
70 mt76_wmac_spi_write(struct mt7915_dev *dev, u8 adie, u32 addr, u32 val) in mt76_wmac_spi_write() argument
77 dev, MT_TOP_SPI_BUSY_CR(adie)); in mt76_wmac_spi_write()
81 mt76_wr(dev, MT_TOP_SPI_ADDR_CR(adie), in mt76_wmac_spi_write()
83 mt76_wr(dev, MT_TOP_SPI_WRITE_DATA_CR(adie), val); in mt76_wmac_spi_write()
[all …]
H A Ddma.c11 struct mt7915_dev *dev = phy->dev; in mt7915_init_tx_queues() local
13 if (mtk_wed_device_active(&phy->dev->mt76.mmio.wed)) { in mt7915_init_tx_queues()
14 if (is_mt798x(&dev->mt76)) in mt7915_init_tx_queues()
28 struct mt7915_dev *dev; in mt7915_poll_tx() local
30 dev = container_of(napi, struct mt7915_dev, mt76.tx_napi); in mt7915_poll_tx()
32 mt76_connac_tx_cleanup(&dev->mt76); in mt7915_poll_tx()
34 mt7915_irq_enable(dev, MT_INT_TX_DONE_MCU); in mt7915_poll_tx()
39 static void mt7915_dma_config(struct mt7915_dev *dev) in mt7915_dma_config() argument
43 dev->wfdma_mask |= (1 << (q)); \ in mt7915_dma_config()
44 dev->q_int_mask[(q)] = int; \ in mt7915_dma_config()
[all …]
/freebsd/contrib/wpa/src/wps/
H A Dwps_dev_attr.c16 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument
21 len = dev->manufacturer ? os_strlen(dev->manufacturer) : 0; in wps_build_manufacturer()
35 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer()
40 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument
45 len = dev->model_name ? os_strlen(dev->model_name) : 0; in wps_build_model_name()
59 wpabuf_put_data(msg, dev->model_name, len); in wps_build_model_name()
64 int wps_build_model_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_number() argument
69 len = dev->model_number ? os_strlen(dev->model_number) : 0; in wps_build_model_number()
83 wpabuf_put_data(msg, dev->model_number, len); in wps_build_model_number()
88 int wps_build_serial_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_serial_number() argument
[all …]

12345678910>>...112