Searched refs:dev (Results 151 - 175 of 8117) sorted by relevance

1234567891011>>

/freebsd-current/sys/dev/mlx4/
H A Ddriver.h36 #include <dev/mlx4/device.h>
57 void * (*add) (struct mlx4_dev *dev);
58 void (*remove)(struct mlx4_dev *dev, void *context);
59 void (*event) (struct mlx4_dev *dev, void *context,
61 void * (*get_dev)(struct mlx4_dev *dev, void *context, u8 port);
62 void (*activate)(struct mlx4_dev *dev, void *context);
71 int mlx4_bond(struct mlx4_dev *dev);
72 int mlx4_unbond(struct mlx4_dev *dev);
73 static inline int mlx4_is_bonded(struct mlx4_dev *dev) argument
75 return !!(dev
78 mlx4_is_mf_bonded(struct mlx4_dev *dev) argument
[all...]
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt76x2/
H A Dpci_mcu.c15 mt76pci_load_rom_patch(struct mt76x02_dev *dev) argument
19 bool rom_protect = !is_mt7612(dev);
24 if (rom_protect && !mt76_poll(dev, MT_MCU_SEMAPHORE_03, 1, 1, 600)) {
25 dev_err(dev->mt76.dev,
30 if (mt76xx_rev(dev) >= MT76XX_REV_E3) {
38 if (rom_protect && (mt76_rr(dev, patch_reg) & patch_mask)) {
39 dev_info(dev->mt76.dev, "ROM patch already applied\n");
43 ret = request_firmware(&fw, MT7662_ROM_PATCH, dev
81 mt76pci_load_firmware(struct mt76x02_dev *dev) argument
160 struct mt76x02_dev *dev; local
177 mt76x2_mcu_init(struct mt76x02_dev *dev) argument
[all...]
/freebsd-current/sys/dev/agp/
H A Dagppriv.h37 #include <dev/agp/agpvar.h>
87 u_int8_t agp_find_caps(device_t dev);
88 struct agp_gatt *agp_alloc_gatt(device_t dev);
89 void agp_set_aperture_resource(device_t dev, int rid);
90 void agp_free_cdev(device_t dev);
92 void agp_free_res(device_t dev);
93 int agp_generic_attach(device_t dev);
94 int agp_generic_detach(device_t dev);
95 u_int32_t agp_generic_get_aperture(device_t dev);
96 int agp_generic_set_aperture(device_t dev,
[all...]
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7603/
H A Dbeacon.c6 struct mt7603_dev *dev; member in struct:beacon_bc_data
15 struct mt7603_dev *dev = (struct mt7603_dev *)priv; local
16 struct mt76_dev *mdev = &dev->mt76;
23 skb = ieee80211_beacon_get(mt76_hw(dev), vif, 0);
27 mt76_tx_queue_skb(dev, dev->mphy.q_tx[MT_TXQ_BEACON],
30 spin_lock_bh(&dev->ps_lock);
31 mt76_wr(dev, MT_DMA_FQCR0, MT_DMA_FQCR0_BUSY |
34 dev->mphy.q_tx[MT_TXQ_CAB]->hw_idx) |
38 if (!mt76_poll(dev, MT_DMA_FQCR
48 struct mt7603_dev *dev = data->dev; local
71 struct mt7603_dev *dev = from_tasklet(dev, t, mt76.pre_tbtt_tasklet); local
88 mt7603_update_beacon_iter, dev); local
146 mt7603_beacon_set_timer(struct mt7603_dev *dev, int idx, int intval) argument
[all...]
H A Dinit.c24 mt7603_set_tmac_template(struct mt7603_dev *dev) argument
33 addr = mt7603_reg_map(dev, MT_CLIENT_BASE_PHYS_ADDR);
36 mt76_wr(dev, addr + 4 * i, desc[i]);
40 mt7603_dma_sched_init(struct mt7603_dev *dev) argument
54 page_count = mt76_get_field(dev, MT_PSE_FC_P0,
59 mt76_wr(dev, MT_PSE_FRP,
64 mt76_wr(dev, MT_HIGH_PRIORITY_1, 0x55555553);
65 mt76_wr(dev, MT_HIGH_PRIORITY_2, 0x78555555);
67 mt76_wr(dev, MT_QUEUE_PRIORITY_1, 0x2b1a096e);
68 mt76_wr(dev, MT_QUEUE_PRIORITY_
114 mt7603_phy_init(struct mt7603_dev *dev) argument
133 mt7603_mac_init(struct mt7603_dev *dev) argument
270 mt7603_init_hardware(struct mt7603_dev *dev) argument
336 struct mt7603_dev *dev = container_of(mphy->dev, struct mt7603_dev, local
384 __mt7603_reg_addr(struct mt7603_dev *dev, u32 addr) argument
394 struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76); local
402 struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76); local
410 struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76); local
421 struct mt7603_dev *dev = hw->priv; local
444 mt7603_init_txpower(struct mt7603_dev *dev, struct ieee80211_supported_band *sband) argument
485 mt7603_register_device(struct mt7603_dev *dev) argument
553 mt7603_unregister_device(struct mt7603_dev *dev) argument
[all...]
H A Dmac.c24 mt76_stop_tx_ac(struct mt7603_dev *dev, u32 mask) argument
26 mt76_set(dev, MT_WF_ARB_TX_STOP_0, mt7603_ac_queue_mask0(mask));
30 mt76_start_tx_ac(struct mt7603_dev *dev, u32 mask) argument
32 mt76_set(dev, MT_WF_ARB_TX_START_0, mt7603_ac_queue_mask0(mask));
35 void mt7603_mac_reset_counters(struct mt7603_dev *dev) argument
40 mt76_rr(dev, MT_TX_AGG_CNT(i));
42 memset(dev->mphy.aggr_stats, 0, sizeof(dev->mphy.aggr_stats));
45 void mt7603_mac_set_timing(struct mt7603_dev *dev) argument
51 int offset = 3 * dev
87 mt7603_wtbl_update(struct mt7603_dev *dev, int idx, u32 mask) argument
124 mt7603_wtbl_init(struct mt7603_dev *dev, int idx, int vif, const u8 *mac_addr) argument
170 mt7603_wtbl_set_skip_tx(struct mt7603_dev *dev, int idx, bool enabled) argument
181 mt7603_filter_tx(struct mt7603_dev *dev, int mac_idx, int idx, bool abort) argument
226 mt7603_wtbl_set_smps(struct mt7603_dev *dev, struct mt7603_sta *sta, bool enabled) argument
238 mt7603_wtbl_set_ps(struct mt7603_dev *dev, struct mt7603_sta *sta, bool enabled) argument
272 mt7603_wtbl_clear(struct mt7603_dev *dev, int idx) argument
330 mt7603_wtbl_update_cap(struct mt7603_dev *dev, struct ieee80211_sta *sta) argument
370 mt7603_mac_rx_ba_reset(struct mt7603_dev *dev, void *addr, u8 tid) argument
379 mt7603_mac_tx_ba_reset(struct mt7603_dev *dev, int wcid, int tid, int ba_size) argument
406 mt7603_mac_sta_poll(struct mt7603_dev *dev) argument
485 mt7603_rx_get_wcid(struct mt7603_dev *dev, u8 idx, bool unicast) argument
508 mt7603_mac_fill_rx(struct mt7603_dev *dev, struct sk_buff *skb) argument
690 mt7603_mac_tx_rate_val(struct mt7603_dev *dev, const struct ieee80211_tx_rate *rate, bool stbc, u8 *bw) argument
730 mt7603_wtbl_set_rates(struct mt7603_dev *dev, struct mt7603_sta *sta, struct ieee80211_tx_rate *probe_rate, struct ieee80211_tx_rate *rates) argument
889 mt7603_wtbl_set_key(struct mt7603_dev *dev, int wcid, struct ieee80211_key_conf *key) argument
918 mt7603_mac_write_txwi(struct mt7603_dev *dev, __le32 *txwi, struct sk_buff *skb, enum mt76_txq_id qid, struct mt76_wcid *wcid, struct ieee80211_sta *sta, int pid, struct ieee80211_key_conf *key) argument
1052 struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76); local
1089 mt7603_fill_txs(struct mt7603_dev *dev, struct mt7603_sta *sta, struct ieee80211_tx_info *info, __le32 *txs_data) argument
1224 mt7603_mac_add_txs_skb(struct mt7603_dev *dev, struct mt7603_sta *sta, int pid, __le32 *txs_data) argument
1253 mt7603_mac_add_txs(struct mt7603_dev *dev, void *data) argument
1305 struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76); local
1318 wait_for_wpdma(struct mt7603_dev *dev) argument
1326 mt7603_pse_reset(struct mt7603_dev *dev) argument
1349 mt7603_mac_dma_start(struct mt7603_dev *dev) argument
1365 mt7603_mac_start(struct mt7603_dev *dev) argument
1373 mt7603_mac_stop(struct mt7603_dev *dev) argument
1381 mt7603_pse_client_reset(struct mt7603_dev *dev) argument
1413 mt7603_dma_sched_reset(struct mt7603_dev *dev) argument
1422 mt7603_mac_watchdog_reset(struct mt7603_dev *dev) argument
1506 mt7603_dma_debug(struct mt7603_dev *dev, u8 index) argument
1518 mt7603_rx_fifo_busy(struct mt7603_dev *dev) argument
1526 mt7603_rx_dma_busy(struct mt7603_dev *dev) argument
1534 mt7603_tx_dma_busy(struct mt7603_dev *dev) argument
1545 mt7603_tx_hang(struct mt7603_dev *dev) argument
1569 mt7603_rx_pse_busy(struct mt7603_dev *dev) argument
1590 mt7603_watchdog_check(struct mt7603_dev *dev, u8 *counter, enum mt7603_reset_cause cause, bool (*check)(struct mt7603_dev *dev)) argument
1618 struct mt7603_dev *dev = container_of(mphy->dev, struct mt7603_dev, mt76); local
1626 mt7603_edcca_set_strict(struct mt7603_dev *dev, bool val) argument
1653 mt7603_edcca_check(struct mt7603_dev *dev) argument
1714 mt7603_cca_stats_reset(struct mt7603_dev *dev) argument
1722 mt7603_adjust_sensitivity(struct mt7603_dev *dev) argument
1768 mt7603_false_cca_check(struct mt7603_dev *dev) argument
1828 struct mt7603_dev *dev = container_of(work, struct mt7603_dev, local
[all...]
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7921/
H A Dpci_mcu.c7 int mt7921e_driver_own(struct mt792x_dev *dev) argument
9 u32 reg = mt7921_reg_map_l1(dev, MT_TOP_LPCR_HOST_BAND0);
11 mt76_wr(dev, reg, MT_TOP_LPCR_HOST_DRV_OWN);
12 if (!mt76_poll_msec(dev, reg, MT_TOP_LPCR_HOST_FW_OWN,
14 dev_err(dev->mt76.dev, "Timeout for driver own\n");
25 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); local
38 return mt76_tx_queue_skb_raw(dev, mdev->q_mcu[txq], skb, 0);
41 int mt7921e_mcu_init(struct mt792x_dev *dev) argument
50 dev
[all...]
/freebsd-current/sys/dev/iicbus/controller/vybrid/
H A Dvf_i2c_acpi.c47 #include <contrib/dev/acpica/include/acpi.h>
48 #include <contrib/dev/acpica/include/accommon.h>
50 #include <dev/acpica/acpivar.h>
51 #include <dev/iicbus/iicbus.h>
52 #include <dev/iicbus/iiconf.h>
54 #include <dev/iicbus/controller/vybrid/vf_i2c.h>
62 vf_i2c_acpi_probe(device_t dev) argument
69 rv = ACPI_ID_PROBE(device_get_parent(dev), dev, vf_i2c_ids, NULL);
73 device_set_desc(dev, VF_I2C_DEVST
78 vf_i2c_acpi_attach(device_t dev) argument
[all...]
H A Dvf_i2c_fdt.c47 #include <dev/ofw/openfirm.h>
48 #include <dev/ofw/ofw_bus.h>
49 #include <dev/ofw/ofw_bus_subr.h>
51 #include <dev/iicbus/iicbus.h>
53 #include <dev/iicbus/controller/vybrid/vf_i2c.h>
62 vf_i2c_fdt_probe(device_t dev) argument
65 if (!ofw_bus_status_okay(dev))
68 if (ofw_bus_search_compatible(dev, vf_i2c_compat_data)->ocd_data == 0)
71 device_set_desc(dev, VF_I2C_DEVSTR);
76 vf_i2c_fdt_attach(device_t dev) argument
102 vf_i2c_get_node(device_t bus, device_t dev) argument
[all...]
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dmmio.c80 static u32 mt7996_reg_map_l1(struct mt7996_dev *dev, u32 addr) argument
85 dev->reg_l1_backup = dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1);
86 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L1,
90 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1);
95 static u32 mt7996_reg_map_l2(struct mt7996_dev *dev, u32 addr) argument
100 dev
110 mt7996_reg_remap_restore(struct mt7996_dev *dev) argument
124 __mt7996_reg_addr(struct mt7996_dev *dev, u32 addr) argument
165 mt7996_memcpy_fromio(struct mt7996_dev *dev, void *buf, u32 offset, size_t len) argument
179 struct mt7996_dev *dev = container_of(mdev, struct mt7996_dev, mt76); local
186 struct mt7996_dev *dev = container_of(mdev, struct mt7996_dev, mt76); local
193 struct mt7996_dev *dev = container_of(mdev, struct mt7996_dev, mt76); local
203 struct mt7996_dev *dev; local
236 mt7996_dual_hif_set_irq_mask(struct mt7996_dev *dev, bool write_reg, u32 clear, u32 set) argument
258 struct mt7996_dev *dev = container_of(mdev, struct mt7996_dev, mt76); local
266 struct mt7996_dev *dev = from_tasklet(dev, t, mt76.irq_tasklet); local
313 struct mt7996_dev *dev = dev_instance; local
349 struct mt7996_dev *dev; local
[all...]
/freebsd-current/sys/dev/iicbus/controller/opencores/
H A Diicoc.c42 #include <dev/iicbus/iicbus.h>
43 #include <dev/iicbus/iiconf.h>
51 iicoc_dev_write(device_t dev, int reg, int value) argument
55 sc = device_get_softc(dev);
60 iicoc_dev_read(device_t dev, int reg) argument
65 sc = device_get_softc(dev);
71 iicoc_wait_on_status(device_t dev, uint8_t bit) argument
77 status = iicoc_dev_read(dev, OC_I2C_STATUS_REG);
84 iicoc_rd_cmd(device_t dev, uint8_t cmd) argument
88 iicoc_dev_write(dev, OC_I2C_CMD_RE
98 iicoc_wr_cmd(device_t dev, uint8_t data, uint8_t cmd) argument
111 iicoc_wr_ack_cmd(device_t dev, uint8_t data, uint8_t cmd) argument
125 iicoc_init(device_t dev) argument
146 iicoc_iicbus_start_common(device_t dev, u_char slave, int timeout, bool repeat) argument
185 iicoc_iicbus_start(device_t dev, u_char slave, int timeout) argument
192 iicoc_iicbus_repeated_start(device_t dev, u_char slave, int timeout) argument
199 iicoc_iicbus_stop(device_t dev) argument
213 iicoc_iicbus_write(device_t dev, const char *buf, int len, int *sent, int timeout) argument
243 iicoc_iicbus_read(device_t dev, char *buf, int len, int *read, int last, int delay) argument
269 iicoc_iicbus_reset(device_t dev, u_char speed, u_char addr, u_char *oldadr) argument
[all...]
/freebsd-current/sys/dev/pci/
H A Dhostb_pci.c33 #include <dev/pci/pcivar.h>
34 #include <dev/pci/pcireg.h>
44 pci_hostb_probe(device_t dev) argument
48 id = pci_get_devid(dev);
59 if (pci_get_class(dev) == PCIC_BRIDGE &&
60 pci_get_subclass(dev) == PCIS_BRIDGE_HOST) {
61 device_set_desc(dev, "Host to PCI bridge");
62 device_quiet(dev);
69 pci_hostb_attach(device_t dev) argument
72 bus_generic_probe(dev);
87 pci_hostb_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) argument
94 pci_hostb_write_ivar(device_t dev, device_t child, int which, uintptr_t value) argument
101 pci_hostb_alloc_resource(device_t dev, device_t child, int type, int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) argument
109 pci_hostb_release_resource(device_t dev, device_t child, struct resource *r) argument
118 pci_hostb_read_config(device_t dev, device_t child, int reg, int width) argument
125 pci_hostb_write_config(device_t dev, device_t child, int reg, uint32_t val, int width) argument
133 pci_hostb_enable_busmaster(device_t dev, device_t child) argument
142 pci_hostb_disable_busmaster(device_t dev, device_t child) argument
151 pci_hostb_enable_io(device_t dev, device_t child, int space) argument
160 pci_hostb_disable_io(device_t dev, device_t child, int space) argument
169 pci_hostb_set_powerstate(device_t dev, device_t child, int state) argument
178 pci_hostb_get_powerstate(device_t dev, device_t child) argument
187 pci_hostb_assign_interrupt(device_t dev, device_t child) argument
196 pci_hostb_find_cap(device_t dev, device_t child, int capability, int *capreg) argument
204 pci_hostb_find_next_cap(device_t dev, device_t child, int capability, int start, int *capreg) argument
212 pci_hostb_find_extcap(device_t dev, device_t child, int capability, int *capreg) argument
220 pci_hostb_find_next_extcap(device_t dev, device_t child, int capability, int start, int *capreg) argument
228 pci_hostb_find_htcap(device_t dev, device_t child, int capability, int *capreg) argument
236 pci_hostb_find_next_htcap(device_t dev, device_t child, int capability, int start, int *capreg) argument
[all...]
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7615/
H A Deeprom.c12 static int mt7615_efuse_read(struct mt7615_dev *dev, u32 base, argument
18 val = mt76_rr(dev, base + MT_EFUSE_CTRL);
22 mt76_wr(dev, base + MT_EFUSE_CTRL, val);
24 if (!mt76_poll(dev, base + MT_EFUSE_CTRL, MT_EFUSE_CTRL_KICK, 0, 1000))
29 val = mt76_rr(dev, base + MT_EFUSE_CTRL);
37 val = mt76_rr(dev, base + MT_EFUSE_RDATA(i));
44 static int mt7615_efuse_init(struct mt7615_dev *dev, u32 base) argument
50 if (is_mt7663(&dev->mt76))
53 val = mt76_rr(dev, base + MT_EFUSE_BASE_CTRL);
57 dev
74 mt7615_eeprom_load(struct mt7615_dev *dev, u32 addr) argument
87 mt7615_check_eeprom(struct mt76_dev *dev) argument
102 mt7615_eeprom_parse_hw_band_cap(struct mt7615_dev *dev) argument
144 mt7615_eeprom_parse_hw_cap(struct mt7615_dev *dev) argument
173 mt7663_eeprom_get_target_power_index(struct mt7615_dev *dev, struct ieee80211_channel *chan, u8 chain_idx) argument
194 mt7615_eeprom_get_target_power_index(struct mt7615_dev *dev, struct ieee80211_channel *chan, u8 chain_idx) argument
242 mt7615_eeprom_get_power_delta_index(struct mt7615_dev *dev, enum nl80211_band band) argument
259 mt7615_apply_cal_free_data(struct mt7615_dev *dev) argument
295 mt7622_apply_cal_free_data(struct mt7615_dev *dev) argument
315 mt7615_cal_free_data(struct mt7615_dev *dev) argument
333 mt7615_eeprom_init(struct mt7615_dev *dev, u32 addr) argument
[all...]
H A Ddebugfs.c8 struct mt7615_dev *dev = data; local
10 mt7615_mutex_acquire(dev);
11 mt76_wr(dev, dev->mt76.debugfs_reg, val);
12 mt7615_mutex_release(dev);
20 struct mt7615_dev *dev = data; local
22 mt7615_mutex_acquire(dev);
23 *val = mt76_rr(dev, dev->mt76.debugfs_reg);
24 mt7615_mutex_release(dev);
35 struct mt7615_dev *dev = data; local
53 struct mt7615_dev *dev = data; local
68 struct mt7615_dev *dev = data; local
85 struct mt7615_dev *dev = data; local
98 struct mt7615_dev *dev = data; local
139 struct mt7615_dev *dev = data; local
151 struct mt7615_dev *dev = dev_get_drvdata(s->private); local
171 struct mt7615_dev *dev = data; local
181 struct mt7615_dev *dev = data; local
194 struct mt7615_dev *dev = data; local
210 struct mt7615_dev *dev = data; local
223 struct mt7615_dev *dev = data; local
240 struct mt7615_dev *dev = data; local
253 struct mt7615_dev *dev = data; local
279 struct mt7615_dev *dev = file->private; local
314 struct mt7615_dev *dev = file->private; local
331 struct mt7615_dev *dev = dev_get_drvdata(s->private); local
346 struct mt7615_dev *dev = dev_get_drvdata(s->private); local
357 struct mt7615_dev *dev = dev_get_drvdata(s->private); local
393 struct mt7615_dev *dev = dev_get_drvdata(s->private); local
419 struct mt7615_dev *dev = data; local
429 struct mt7615_dev *dev = data; local
443 struct mt7615_dev *dev = file->private_data; local
477 struct mt7615_dev *dev = file->private_data; local
537 struct mt7615_dev *dev = dev_get_drvdata(s->private); local
548 mt7615_init_debugfs(struct mt7615_dev *dev) argument
[all...]
/freebsd-current/sys/dev/acpi_support/
H A Dacpi_sony.c33 #include <contrib/dev/acpica/include/acpi.h>
37 #include <dev/acpica/acpivar.h>
85 static int acpi_sony_probe(device_t dev);
86 static int acpi_sony_attach(device_t dev);
87 static int acpi_sony_detach(device_t dev);
110 acpi_sony_probe(device_t dev) argument
114 ret = ACPI_ID_PROBE(device_get_parent(dev), dev, sny_id, NULL);
116 device_set_desc(dev, "Sony notebook controller");
122 acpi_sony_attach(device_t dev) argument
151 acpi_sony_detach(device_t dev) argument
174 device_t dev = arg1; local
[all...]
/freebsd-current/sys/dev/altera/avgen/
H A Daltera_avgen_nexus.c52 #include <dev/altera/avgen/altera_avgen.h>
55 altera_avgen_nexus_probe(device_t dev) argument
58 device_set_desc(dev, "Generic Altera Avalon device attachment");
63 altera_avgen_nexus_attach(device_t dev) argument
70 sc = device_get_softc(dev);
71 sc->avg_dev = dev;
72 sc->avg_unit = device_get_unit(dev);
84 error = resource_int_value(device_get_name(dev), device_get_unit(dev),
87 device_printf(dev, "invali
118 altera_avgen_nexus_detach(device_t dev) argument
[all...]
/freebsd-current/sys/dev/bhnd/bcma/
H A Dbcma_bhndb.c37 #include <dev/bhnd/bhnd_ids.h>
38 #include <dev/bhnd/bhndb/bhndbvar.h>
39 #include <dev/bhnd/bhndb/bhndb_hwdata.h>
51 bcma_bhndb_probe(device_t dev) argument
57 if ((error = bcma_probe(dev)) > 0)
61 cid = BHNDB_GET_CHIPID(device_get_parent(dev), dev);
66 bhnd_set_default_bus_desc(dev, cid);
72 bcma_bhndb_attach(device_t dev) argument
77 if ((error = bcma_attach(dev)))
92 bcma_bhndb_suspend_child(device_t dev, device_t child) argument
118 bcma_bhndb_resume_child(device_t dev, device_t child) argument
143 BHNDB_SUSPEND_RESOURCE(device_get_parent(dev), dev, local
[all...]
/freebsd-current/sys/dev/gpio/dwgpio/
H A Ddwgpio_bus.c42 #include <dev/fdt/simplebus.h>
43 #include <dev/fdt/fdt_common.h>
44 #include <dev/ofw/ofw_bus_subr.h>
50 device_t dev; member in struct:dwgpiobus_softc
60 dwgpiobus_probe(device_t dev) argument
63 if (!ofw_bus_is_compatible(dev, "snps,dw-apb-gpio"))
66 if (!ofw_bus_status_okay(dev))
69 device_set_desc(dev, "Synopsys�� DesignWare�� APB GPIO BUS");
75 dwgpiobus_attach(device_t dev) argument
80 sc = device_get_softc(dev);
109 dwgpiobus_detach(device_t dev) argument
121 dwgpiobus_write(device_t dev, bus_size_t offset, int val) argument
133 dwgpiobus_read(device_t dev, bus_size_t offset) argument
[all...]
/freebsd-current/sys/dev/sram/
H A Dmmio_sram.c40 #include <dev/fdt/simplebus.h>
41 #include <dev/fdt/fdt_common.h>
42 #include <dev/ofw/ofw_bus_subr.h>
56 device_t dev; member in struct:mmio_sram_softc
60 mmio_sram_probe(device_t dev) argument
63 if (!ofw_bus_is_compatible(dev, "mmio-sram"))
66 if (!ofw_bus_status_okay(dev))
69 device_set_desc(dev, "MMIO SRAM");
75 mmio_sram_attach(device_t dev) argument
80 sc = device_get_softc(dev);
109 mmio_sram_detach(device_t dev) argument
121 mmio_sram_read_1(device_t dev, bus_size_t offset) argument
133 mmio_sram_write_1(device_t dev, bus_size_t offset, uint8_t val) argument
[all...]
/freebsd-current/sys/dev/usb/controller/
H A Dgeneric_xhci_fdt.c40 #include <dev/usb/usb.h>
41 #include <dev/usb/usbdi.h>
43 #include <dev/usb/usb_core.h>
44 #include <dev/usb/usb_busdma.h>
45 #include <dev/usb/usb_process.h>
47 #include <dev/usb/usb_controller.h>
48 #include <dev/usb/usb_bus.h>
49 #include <dev/usb/controller/xhci.h>
51 #include <dev/ofw/ofw_bus.h>
52 #include <dev/of
71 generic_xhci_fdt_probe(device_t dev) argument
86 generic_xhci_fdt_attach(device_t dev) argument
106 generic_xhci_fdt_detach(device_t dev) argument
[all...]
/freebsd-current/sys/dev/mdio/
H A Dmdio.c32 #include <dev/mdio/mdio.h>
45 mdio_probe(device_t dev) argument
48 device_set_desc(dev, "MDIO");
54 mdio_attach(device_t dev) argument
57 bus_generic_probe(dev);
58 bus_enumerate_hinted_children(dev);
59 return (bus_generic_attach(dev));
63 mdio_detach(device_t dev) argument
66 bus_generic_detach(dev);
71 mdio_readreg(device_t dev, in argument
78 mdio_writereg(device_t dev, int phy, int reg, int val) argument
85 mdio_readextreg(device_t dev, int phy, int devad, int reg) argument
92 mdio_writeextreg(device_t dev, int phy, int devad, int reg, int val) argument
100 mdio_hinted_child(device_t dev, const char *name, int unit) argument
[all...]
/freebsd-current/sys/dev/mmc/
H A Dmmcbrvar.h58 #include <dev/mmc/mmcreg.h>
106 mmcbr_get_retune_req(device_t dev) argument
110 if (__predict_false(BUS_READ_IVAR(device_get_parent(dev), dev,
120 mmcbr_update_ios(device_t dev) argument
123 return (MMCBR_UPDATE_IOS(device_get_parent(dev), dev));
127 mmcbr_tune(device_t dev, bool hs400) argument
130 return (MMCBR_TUNE(device_get_parent(dev), dev, hs40
134 mmcbr_retune(device_t dev, bool reset) argument
141 mmcbr_switch_vccq(device_t dev) argument
148 mmcbr_get_ro(device_t dev) argument
[all...]
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dsoc.c43 mt76_wmac_spi_read(struct mt7915_dev *dev, u8 adie, u32 addr, u32 *val) argument
50 dev, MT_TOP_SPI_BUSY_CR(adie));
54 mt76_wr(dev, MT_TOP_SPI_ADDR_CR(adie),
56 mt76_wr(dev, MT_TOP_SPI_WRITE_DATA_CR(adie), 0);
60 dev, MT_TOP_SPI_BUSY_CR(adie));
64 *val = mt76_rr(dev, MT_TOP_SPI_READ_DATA_CR(adie));
70 mt76_wmac_spi_write(struct mt7915_dev *dev, u8 adie, u32 addr, u32 val) argument
77 dev, MT_TOP_SPI_BUSY_CR(adie));
81 mt76_wr(dev, MT_TOP_SPI_ADDR_CR(adie),
83 mt76_wr(dev, MT_TOP_SPI_WRITE_DATA_C
91 mt76_wmac_spi_rmw(struct mt7915_dev *dev, u8 adie, u32 addr, u32 mask, u32 val) argument
107 mt7986_wmac_adie_efuse_read(struct mt7915_dev *dev, u8 adie, u32 addr, u32 *data) argument
149 mt76_wmac_spi_lock(struct mt7915_dev *dev) argument
159 mt76_wmac_spi_unlock(struct mt7915_dev *dev) argument
172 mt798x_wmac_check_adie_type(struct mt7915_dev *dev) argument
185 mt7986_wmac_consys_reset(struct mt7915_dev *dev, bool enable) argument
197 mt7986_wmac_gpio_setup(struct mt7915_dev *dev) argument
233 mt7986_wmac_consys_lockup(struct mt7915_dev *dev, bool enable) argument
266 mt798x_wmac_coninfra_check(struct mt7915_dev *dev) argument
285 mt798x_wmac_coninfra_setup(struct mt7915_dev *dev) argument
334 mt798x_wmac_sku_setup(struct mt7915_dev *dev, u32 *adie_type) argument
376 is_7975(struct mt7915_dev *dev, u8 adie, u32 adie_type) argument
381 is_7976(struct mt7915_dev *dev, u8 adie, u32 adie_type) argument
386 mt7986_wmac_adie_thermal_cal(struct mt7915_dev *dev, u8 adie) argument
423 mt7986_read_efuse_xo_trim_7976(struct mt7915_dev *dev, u8 adie, bool is_40m, int *result) argument
456 mt7986_wmac_adie_xtal_trim_7976(struct mt7915_dev *dev, u8 adie) argument
504 mt798x_wmac_adie_patch_7976(struct mt7915_dev *dev, u8 adie) argument
542 mt7986_read_efuse_xo_trim_7975(struct mt7915_dev *dev, u8 adie, u32 addr, u32 *result) argument
564 mt7986_wmac_adie_xtal_trim_7975(struct mt7915_dev *dev, u8 adie) argument
620 mt7986_wmac_adie_patch_7975(struct mt7915_dev *dev, u8 adie) argument
713 mt7986_wmac_adie_cfg(struct mt7915_dev *dev, u8 adie, u32 adie_type) argument
762 mt7986_wmac_afe_cal(struct mt7915_dev *dev, u8 adie, bool dbdc, u32 adie_type) argument
821 mt7986_wmac_subsys_pll_initial(struct mt7915_dev *dev, u8 band) argument
833 mt7986_wmac_subsys_setting(struct mt7915_dev *dev) argument
851 mt7986_wmac_bus_timeout(struct mt7915_dev *dev) argument
868 mt7986_wmac_clock_enable(struct mt7915_dev *dev, u32 adie_type) argument
925 mt7986_wmac_top_wfsys_wakeup(struct mt7915_dev *dev, bool enable) argument
938 mt7986_wmac_wm_enable(struct mt7915_dev *dev, bool enable) argument
955 mt7986_wmac_wfsys_poweron(struct mt7915_dev *dev, bool enable) argument
969 mt7986_wmac_wfsys_setting(struct mt7915_dev *dev) argument
1002 mt7986_wmac_wfsys_set_timeout(struct mt7915_dev *dev) argument
1025 mt7986_wmac_sku_update(struct mt7915_dev *dev, u32 adie_type) argument
1051 mt7986_wmac_adie_setup(struct mt7915_dev *dev, u8 adie, u32 adie_type) argument
1072 mt7986_wmac_subsys_powerup(struct mt7915_dev *dev, u32 adie_type) argument
1087 mt7986_wmac_wfsys_powerup(struct mt7915_dev *dev) argument
1104 mt7986_wmac_enable(struct mt7915_dev *dev) argument
1159 mt7986_wmac_disable(struct mt7915_dev *dev) argument
1195 mt798x_wmac_init(struct mt7915_dev *dev) argument
1231 struct mt7915_dev *dev; local
1290 struct mt7915_dev *dev = platform_get_drvdata(pdev); local
[all...]
/freebsd-current/sys/dev/uart/
H A Duart_bus_scc.c40 #include <dev/scc/scc_bus.h>
42 #include <dev/uart/uart.h>
43 #include <dev/uart/uart_bus.h>
45 static int uart_scc_attach(device_t dev);
46 static int uart_scc_probe(device_t dev);
66 uart_scc_attach(device_t dev) argument
72 parent = device_get_parent(dev);
73 sc = device_get_softc(dev);
75 if (BUS_READ_IVAR(parent, dev, SCC_IVAR_HWMTX, &mtx))
78 return (uart_bus_attach(dev));
82 uart_scc_probe(device_t dev) argument
[all...]
/freebsd-current/sys/dev/sdhci/
H A Dsdhci_xenon_acpi.c33 #include <dev/mmc/bridge.h>
34 #include <dev/mmc/mmcbrvar.h>
35 #include <dev/mmc/mmcreg.h>
37 #include <dev/mmc/mmc_helpers.h>
39 #include <contrib/dev/acpica/include/acpi.h>
40 #include <contrib/dev/acpica/include/accommon.h>
41 #include <dev/acpica/acpivar.h>
43 #include <dev/regulator/regulator.h>
45 #include <dev/sdhci/sdhci.h>
46 #include <dev/sdhc
62 sdhci_xenon_acpi_probe(device_t dev) argument
79 sdhci_xenon_acpi_attach(device_t dev) argument
[all...]

Completed in 255 milliseconds

1234567891011>>