/freebsd-current/sys/dev/sbni/ |
H A D | if_sbni_pci.c | 43 #include <dev/pci/pcivar.h> 44 #include <dev/pci/pcireg.h> 46 #include <dev/sbni/if_sbnireg.h> 47 #include <dev/sbni/if_sbnivar.h> 71 sbni_pci_probe(device_t dev) argument 75 if (pci_get_vendor(dev) != SBNI_PCI_VENDOR || 76 pci_get_device(dev) != SBNI_PCI_DEVICE) 79 sc = device_get_softc(dev); 80 if (pci_get_subdevice(dev) == 2) { 85 device_set_desc(dev, "Granc 114 sbni_pci_attach(device_t dev) argument 170 sbni_pci_detach(device_t dev) argument [all...] |
/freebsd-current/sys/arm/arm/ |
H A D | pmu_fdt.c | 38 #include <dev/ofw/openfirm.h> 39 #include <dev/ofw/ofw_bus.h> 40 #include <dev/ofw/ofw_bus_subr.h> 72 pmu_fdt_probe(device_t dev) argument 75 if (!ofw_bus_status_okay(dev)) 78 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data != 0) { 79 device_set_desc(dev, "Performance Monitoring Unit"); 87 pmu_parse_affinity(device_t dev, struct pmu_softc *sc, struct pmu_intr *irq, argument 98 device_printf(dev, "missing 'reg' property\n"); 111 device_printf(dev, "Canno 116 pmu_parse_intr(device_t dev, struct pmu_softc *sc) argument 209 pmu_fdt_attach(device_t dev) argument [all...] |
/freebsd-current/sys/dev/qcom_tcsr/ |
H A D | qcom_tcsr.c | 49 #include <dev/fdt/fdt_common.h> 50 #include <dev/fdt/fdt_pinctrl.h> 52 #include <dev/gpio/gpiobusvar.h> 53 #include <dev/ofw/ofw_bus.h> 54 #include <dev/ofw/ofw_bus_subr.h> 56 #include <dev/qcom_tcsr/qcom_tcsr_var.h> 57 #include <dev/qcom_tcsr/qcom_tcsr_reg.h> 76 qcom_tcsr_probe(device_t dev) argument 79 if (!ofw_bus_status_okay(dev)) 82 if (!ofw_bus_search_compatible(dev, compat_dat 90 qcom_tcsr_attach(device_t dev) argument 201 qcom_tcsr_detach(device_t dev) argument [all...] |
/freebsd-current/sys/dev/pwm/ |
H A D | ofw_pwmbus.c | 35 #include <dev/fdt/fdt_common.h> 36 #include <dev/ofw/ofw_bus.h> 37 #include <dev/ofw/ofw_bus_subr.h> 38 #include <dev/ofw/openfirm.h> 39 #include <dev/pwm/pwmbus.h> 57 ofw_pwmbus_add_child(device_t dev, u_int order, const char *name, int unit) argument 67 if ((child = device_add_child_ordered(dev, order, name, unit)) == NULL) { 79 ofw_pwmbus_child_deleted(device_t dev, device_t child) argument 91 ofw_pwmbus_get_devinfo(device_t bus, device_t dev) argument 95 ivars = device_get_ivars(dev); 104 ofw_pwmbus_probe(device_t dev) argument 116 ofw_pwmbus_attach(device_t dev) argument [all...] |
/freebsd-current/sys/dev/iicbus/controller/opencores/ |
H A D | iicoc_fdt.c | 42 #include <dev/clk/clk.h> 44 #include <dev/iicbus/iicbus.h> 45 #include <dev/iicbus/iiconf.h> 47 #include <dev/ofw/ofw_bus.h> 48 #include <dev/ofw/ofw_bus_subr.h> 67 iicoc_get_node(device_t bus, device_t dev) argument 75 iicoc_attach(device_t dev) argument 83 sc = device_get_softc(dev); 84 sc->dev = dev; 144 iicoc_probe(device_t dev) argument [all...] |
/freebsd-current/sys/powerpc/psim/ |
H A D | ata_iobus.c | 48 #include <dev/ata/ata-all.h> 51 #include <dev/ofw/openfirm.h> 58 static int ata_iobus_attach(device_t dev); 59 static int ata_iobus_probe(device_t dev); 60 static int ata_iobus_print_child(device_t dev, device_t child); 96 ata_iobus_probe(device_t dev) argument 98 char *type = iobus_get_name(dev); 103 device_set_desc(dev, "PSIM ATA Controller"); 108 ata_iobus_attach(device_t dev) argument 114 device_add_child(dev, "at 119 ata_iobus_print_child(device_t dev, device_t child) argument 131 ata_iobus_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 194 ata_iobus_release_resource(device_t dev, device_t child, struct resource *r) argument 229 ata_iobus_sub_probe(device_t dev) argument [all...] |
/freebsd-current/sys/dev/iicbus/mux/ |
H A D | iicmux.c | 38 #include <dev/ofw/ofw_bus.h> 39 #include <dev/ofw/ofw_bus_subr.h> 40 #include <dev/ofw/openfirm.h> 43 #include <dev/iicbus/iiconf.h> 57 iicmux_callback(device_t dev, int index, caddr_t data) argument 59 struct iicmux_softc *sc = device_get_softc(dev); 88 device_printf(dev, "idle the bus for %s on bus %s\n", 89 device_get_nameunit(rd->dev), 92 IICMUX_BUS_SELECT(dev, IICMUX_SELECT_IDLE, rd); 93 iicbus_release_bus(sc->busdev, dev); 124 iicmux_get_frequency(device_t dev, u_char speed) argument 133 iicmux_get_node(device_t dev, device_t child) argument 147 iicmux_intr(device_t dev, int event, char *buf) argument 158 iicmux_read(device_t dev, char *buf, int len, int *bytes, int last, int delay) argument 166 iicmux_repeated_start(device_t dev, u_char slave, int timeout) argument 174 iicmux_reset(device_t dev, u_char speed, u_char addr, u_char *oldaddr) argument 182 iicmux_start(device_t dev, u_char slave, int timeout) argument 190 iicmux_stop(device_t dev) argument 198 iicmux_transfer( device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument 206 iicmux_write(device_t dev, const char *buf, int len, int *bytes, int timeout) argument 219 iicmux_add_child(device_t dev, device_t child, int busidx) argument 306 iicmux_attach(device_t dev, device_t busdev, int numbuses) argument 333 iicmux_detach(device_t dev) argument [all...] |
/freebsd-current/sys/compat/linuxkpi/common/src/ |
H A D | linux_devres.c | 77 * We have no dev, so cannot lock. This means someone else has 98 lkpi_devres_add(struct device *dev, void *p) argument 102 KASSERT(dev != NULL && p != NULL, ("%s: dev %p p %p\n", 103 __func__, dev, p)); 106 spin_lock(&dev->devres_lock); 107 list_add(&dr->entry, &dev->devres_head); 108 spin_unlock(&dev->devres_lock); 112 lkpi_devres_find_dr(struct device *dev, void(*release)(struct device *, void *), argument 118 KASSERT(dev ! 134 lkpi_devres_find(struct device *dev, void(*release)(struct device *, void *), int (*match)(struct device *, void *, void *), void *mp) argument 152 lkpi_devres_unlink_locked(struct device *dev, struct devres *dr) argument 162 lkpi_devres_unlink(struct device *dev, void *p) argument 177 lkpi_devres_release_free_list(struct device *dev) argument 195 lkpi_devres_destroy(struct device *dev, void(*release)(struct device *, void *), int (*match)(struct device *, void *, void *), void *mp) argument 232 lkpi_devm_action_release(struct device *dev, void *res) argument 241 lkpi_devm_add_action(struct device *dev, void (*action)(void *), void *data) argument 258 lkpi_devm_add_action_or_reset(struct device *dev, void (*action)(void *), void *data) argument [all...] |
/freebsd-current/sys/dev/ppbus/ |
H A D | pcfclock.c | 46 #include <dev/ppbus/ppbconf.h> 47 #include <dev/ppbus/ppb_msq.h> 48 #include <dev/ppbus/ppbio.h> 55 device_t dev; member in struct:pcfclock_data 112 device_t dev; local 114 dev = device_find_child(parent, PCFCLOCK_NAME, -1); 115 if (!dev) 120 pcfclock_probe(device_t dev) argument 123 device_set_desc(dev, "PCF-1.0"); 128 pcfclock_attach(device_t dev) argument 148 pcfclock_open(struct cdev *dev, int flag, int fms, struct thread *td) argument 168 pcfclock_close(struct cdev *dev, int flags, int fmt, struct thread *td) argument 182 pcfclock_write_cmd(struct cdev *dev, unsigned char command) argument 202 pcfclock_display_data(struct cdev *dev, char buf[18]) argument 224 pcfclock_read_data(struct cdev *dev, char *buf, ssize_t bits) argument 263 pcfclock_read_dev(struct cdev *dev, char *buf, int maxretries) argument 293 pcfclock_read(struct cdev *dev, struct uio *uio, int ioflag) argument [all...] |
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7603/ |
H A D | mt7603.h | 165 static inline bool is_mt7603(struct mt7603_dev *dev) argument 167 return mt76xx_chip(dev) == 0x7603; 170 static inline bool is_mt7628(struct mt7603_dev *dev) argument 172 return mt76xx_chip(dev) == 0x7628; 178 u32 mt7603_reg_map(struct mt7603_dev *dev, u32 addr); 182 int mt7603_register_device(struct mt7603_dev *dev); 183 void mt7603_unregister_device(struct mt7603_dev *dev); 184 int mt7603_eeprom_init(struct mt7603_dev *dev); 185 int mt7603_dma_init(struct mt7603_dev *dev); 186 void mt7603_dma_cleanup(struct mt7603_dev *dev); 190 mt7603_irq_enable(struct mt7603_dev *dev, u32 mask) argument 195 mt7603_irq_disable(struct mt7603_dev *dev, u32 mask) argument [all...] |
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | pci.c | 49 get_device(hif->dev); 65 put_device(hif->dev); 92 hif = devm_kzalloc(&pdev->dev, sizeof(*hif), GFP_KERNEL); 96 hif->dev = &pdev->dev; 111 struct mt7996_dev *dev; local 126 ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); 135 dev = mt7996_mmio_probe(&pdev->dev, pcim_iomap_table(pdev)[0], 137 if (IS_ERR(dev)) 212 struct mt7996_dev *dev; local [all...] |
/freebsd-current/sys/dev/iicbus/sensor/ |
H A D | tmp461.c | 41 #include <dev/iicbus/iicbus.h> 42 #include <dev/iicbus/iiconf.h> 44 #include <dev/ofw/ofw_bus_subr.h> 45 #include <dev/ofw/ofw_bus.h> 75 static int tmp461_probe(device_t dev); 76 static int tmp461_attach(device_t dev); 77 static int tmp461_read_1(device_t dev, uint8_t reg, uint8_t *data); 78 static int tmp461_write_1(device_t dev, uint8_t reg, uint8_t data); 79 static int tmp461_read_temperature(device_t dev, int32_t *temperature, bool mode); 80 static int tmp461_detach(device_t dev); 125 tmp461_attach(device_t dev) argument 174 tmp461_probe(device_t dev) argument 192 tmp461_detach(device_t dev) argument 203 tmp461_read_1(device_t dev, uint8_t reg, uint8_t *data) argument 215 tmp461_write_1(device_t dev, uint8_t reg, uint8_t data) argument 227 tmp461_read_temperature(device_t dev, int32_t *temperature, bool remote_measure) argument 298 device_t dev; local [all...] |
/freebsd-current/sys/arm64/freescale/imx/ |
H A D | imx7gpc.c | 41 #include <dev/ofw/openfirm.h> 42 #include <dev/ofw/ofw_bus.h> 43 #include <dev/ofw/ofw_bus_subr.h> 48 device_t dev; member in struct:imx7gpc_softc 60 imx7gpc_activate_intr(device_t dev, struct intr_irqsrc *isrc, argument 63 struct imx7gpc_softc *sc = device_get_softc(dev); 69 imx7gpc_disable_intr(device_t dev, struct intr_irqsrc *isrc) argument 71 struct imx7gpc_softc *sc = device_get_softc(dev); 77 imx7gpc_enable_intr(device_t dev, struct intr_irqsrc *isrc) argument 79 struct imx7gpc_softc *sc = device_get_softc(dev); 85 imx7gpc_map_intr(device_t dev, struct intr_map_data *data, struct intr_irqsrc **isrcp) argument 94 imx7gpc_deactivate_intr(device_t dev, struct intr_irqsrc *isrc, struct resource *res, struct intr_map_data *data) argument 103 imx7gpc_setup_intr(device_t dev, struct intr_irqsrc *isrc, struct resource *res, struct intr_map_data *data) argument 112 imx7gpc_teardown_intr(device_t dev, struct intr_irqsrc *isrc, struct resource *res, struct intr_map_data *data) argument 121 imx7gpc_pre_ithread(device_t dev, struct intr_irqsrc *isrc) argument 129 imx7gpc_post_ithread(device_t dev, struct intr_irqsrc *isrc) argument 137 imx7gpc_post_filter(device_t dev, struct intr_irqsrc *isrc) argument 146 imx7gpc_bind_intr(device_t dev, struct intr_irqsrc *isrc) argument 155 imx7gpc_probe(device_t dev) argument 169 imx7gpc_attach(device_t dev) argument [all...] |
/freebsd-current/sys/arm/ti/ |
H A D | ti_prcm.c | 51 #include <dev/fdt/simplebus.h> 53 #include <dev/ofw/openfirm.h> 54 #include <dev/ofw/ofw_bus.h> 55 #include <dev/ofw/ofw_bus_subr.h> 60 #define DPRINTF(dev, msg...) device_printf(dev, msg) 62 #define DPRINTF(dev, msg...) 67 device_t dev; member in struct:ti_prcm_softc 122 ti_prcm_probe(device_t dev) argument 124 if (!ofw_bus_status_okay(dev)) 136 ti_prcm_attach(device_t dev) argument 200 ti_prcm_write_4(device_t dev, bus_addr_t addr, uint32_t val) argument 210 ti_prcm_read_4(device_t dev, bus_addr_t addr, uint32_t *val) argument 222 ti_prcm_modify_4(device_t dev, bus_addr_t addr, uint32_t clr, uint32_t set) argument 239 ti_prcm_device_lock(device_t dev) argument 248 ti_prcm_device_unlock(device_t dev) argument [all...] |
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7915/ |
H A D | init.c | 50 static ssize_t mt7915_thermal_temp_show(struct device *dev, argument 54 struct mt7915_phy *phy = dev_get_drvdata(dev); 76 static ssize_t mt7915_thermal_temp_store(struct device *dev, argument 80 struct mt7915_phy *phy = dev_get_drvdata(dev); 88 mutex_lock(&phy->dev->mt76.mutex); 95 dev_err(phy->dev->mt76.dev, 97 mutex_unlock(&phy->dev->mt76.mutex); 102 mutex_unlock(&phy->dev->mt76.mutex); 154 dev_err(phy->dev 233 struct mt7915_dev *dev; local 294 mt7915_init_txpower(struct mt7915_dev *dev, struct ieee80211_supported_band *sband) argument 331 struct mt7915_dev *dev = mt7915_hw_dev(hw); local 358 struct mt7915_dev *dev = phy->dev; local 466 mt7915_mac_init_band(struct mt7915_dev *dev, u8 band) argument 528 mt7915_init_led_mux(struct mt7915_dev *dev) argument 593 mt7915_mac_init(struct mt7915_dev *dev) argument 622 mt7915_txbf_init(struct mt7915_dev *dev) argument 642 mt7915_alloc_ext_phy(struct mt7915_dev *dev) argument 665 mt7915_register_ext_phy(struct mt7915_dev *dev, struct mt7915_phy *phy) argument 720 struct mt7915_dev *dev = container_of(work, struct mt7915_dev, local 731 mt7915_wfsys_reset(struct mt7915_dev *dev) argument 785 mt7915_band_config(struct mt7915_dev *dev) argument 812 mt7915_init_hardware(struct mt7915_dev *dev, struct mt7915_phy *phy2) argument 887 struct mt7915_dev *dev = phy->dev; local 974 struct mt7915_dev *dev = phy->dev; local 1180 mt7915_unregister_ext_phy(struct mt7915_dev *dev) argument 1195 mt7915_stop_hardware(struct mt7915_dev *dev) argument 1206 mt7915_register_device(struct mt7915_dev *dev) argument 1285 mt7915_unregister_device(struct mt7915_dev *dev) argument [all...] |
/freebsd-current/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76x02_mac.c | 11 void mt76x02_mac_reset_counters(struct mt76x02_dev *dev) argument 15 mt76_rr(dev, MT_RX_STAT_0); 16 mt76_rr(dev, MT_RX_STAT_1); 17 mt76_rr(dev, MT_RX_STAT_2); 18 mt76_rr(dev, MT_TX_STA_0); 19 mt76_rr(dev, MT_TX_STA_1); 20 mt76_rr(dev, MT_TX_STA_2); 23 mt76_rr(dev, MT_TX_AGG_CNT(i)); 26 mt76_rr(dev, MT_TX_STAT_FIFO); 28 memset(dev 58 mt76x02_mac_shared_key_setup(struct mt76x02_dev *dev, u8 vif_idx, u8 key_idx, struct ieee80211_key_conf *key) argument 81 mt76x02_mac_wcid_sync_pn(struct mt76x02_dev *dev, u8 idx, struct ieee80211_key_conf *key) argument 106 mt76x02_mac_wcid_set_key(struct mt76x02_dev *dev, u8 idx, struct ieee80211_key_conf *key) argument 148 mt76x02_mac_wcid_setup(struct mt76x02_dev *dev, u8 idx, u8 vif_idx, u8 *mac) argument 169 mt76x02_mac_wcid_set_drop(struct mt76x02_dev *dev, u8 idx, bool drop) argument 180 mt76x02_mac_tx_rate_val(struct mt76x02_dev *dev, const struct ieee80211_tx_rate *rate, u8 *nss_val) argument 228 mt76x02_mac_wcid_set_rate(struct mt76x02_dev *dev, struct mt76_wcid *wcid, const struct ieee80211_tx_rate *rate) argument 244 mt76x02_mac_set_short_preamble(struct mt76x02_dev *dev, bool enable) argument 252 mt76x02_mac_load_tx_status(struct mt76x02_dev *dev, struct mt76x02_tx_status *stat) argument 335 mt76x02_mac_write_txwi(struct mt76x02_dev *dev, struct mt76x02_txwi *txwi, struct sk_buff *skb, struct mt76_wcid *wcid, struct ieee80211_sta *sta, int len) argument 476 mt76x02_mac_fill_tx_status(struct mt76x02_dev *dev, struct mt76x02_sta *msta, struct ieee80211_tx_info *info, struct mt76x02_tx_status *st, int n_frames) argument 540 mt76x02_send_tx_status(struct mt76x02_dev *dev, struct mt76x02_tx_status *stat, u8 *update) argument 657 mt76x02_mac_process_rate(struct mt76x02_dev *dev, struct mt76_rx_status *status, u16 rate) argument 729 mt76x02_mac_setaddr(struct mt76x02_dev *dev, const u8 *addr) argument 763 mt76x02_mac_get_rssi(struct mt76x02_dev *dev, s8 rssi, int chain) argument 773 mt76x02_mac_process_rx(struct mt76x02_dev *dev, struct sk_buff *skb, void *rxi) argument 878 mt76x02_mac_poll_tx_status(struct mt76x02_dev *dev, bool irq) argument 910 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); local 929 mt76x02_mac_set_rts_thresh(struct mt76x02_dev *dev, u32 val) argument 945 mt76x02_mac_set_tx_protection(struct mt76x02_dev *dev, bool legacy_prot, int ht_mode) argument 1030 struct mt76x02_dev *dev = container_of(mphy->dev, struct mt76x02_dev, mt76); local 1043 mt76x02_check_mac_err(struct mt76x02_dev *dev) argument 1078 mt76x02_edcca_tx_enable(struct mt76x02_dev *dev, bool enable) argument 1102 mt76x02_edcca_init(struct mt76x02_dev *dev) argument 1144 mt76x02_edcca_check(struct mt76x02_dev *dev) argument 1188 struct mt76x02_dev *dev = container_of(work, struct mt76x02_dev, local 1215 mt76x02_mac_cc_reset(struct mt76x02_dev *dev) argument 1234 mt76x02_mac_set_bssid(struct mt76x02_dev *dev, u8 idx, const u8 *addr) argument [all...] |
/freebsd-current/sys/dev/mthca/ |
H A D | mthca_srq.c | 97 static void mthca_tavor_init_srq_context(struct mthca_dev *dev, argument 115 context->uar = cpu_to_be32(dev->driver_uar.index); 118 static void mthca_arbel_init_srq_context(struct mthca_dev *dev, argument 137 context->logstride_usrpage |= cpu_to_be32(dev->driver_uar.index); 141 static void mthca_free_srq_buf(struct mthca_dev *dev, struct mthca_srq *srq) argument 143 mthca_buf_free(dev, srq->max << srq->wqe_shift, &srq->queue, 148 static int mthca_alloc_srq_buf(struct mthca_dev *dev, struct mthca_pd *pd, argument 163 err = mthca_buf_alloc(dev, srq->max << srq->wqe_shift, 200 int mthca_alloc_srq(struct mthca_dev *dev, struct mthca_pd *pd, argument 209 if (attr->max_wr > dev 321 get_srq_refcount(struct mthca_dev *dev, struct mthca_srq *srq) argument 332 mthca_free_srq(struct mthca_dev *dev, struct mthca_srq *srq) argument 369 struct mthca_dev *dev = to_mdev(ibsrq->device); local 392 struct mthca_dev *dev = to_mdev(ibsrq->device); local 424 mthca_srq_event(struct mthca_dev *dev, u32 srqn, enum ib_event_type event_type) argument 480 struct mthca_dev *dev = to_mdev(ibsrq->device); local 580 struct mthca_dev *dev = to_mdev(ibsrq->device); local 642 mthca_max_srq_sge(struct mthca_dev *dev) argument 667 mthca_init_srq_table(struct mthca_dev *dev) argument 691 mthca_cleanup_srq_table(struct mthca_dev *dev) argument [all...] |
H A D | mthca_av.c | 94 enum ib_rate mthca_rate_to_ib(struct mthca_dev *dev, u8 mthca_rate, u8 port) argument 96 if (mthca_is_memfree(dev)) { 98 if (dev->limits.stat_rate_support == 0x3 && mthca_rate) 101 return memfree_rate_to_ib(mthca_rate, dev->rate[port - 1]); 103 return tavor_rate_to_ib(mthca_rate, dev->rate[port - 1]); 134 u8 mthca_get_rate(struct mthca_dev *dev, int static_rate, u8 port) argument 138 if (!static_rate || ib_rate_to_mult(static_rate) >= dev->rate[port - 1]) 141 if (mthca_is_memfree(dev)) 143 dev->rate[port - 1]); 147 if (!(dev 153 mthca_create_ah(struct mthca_dev *dev, struct mthca_pd *pd, struct ib_ah_attr *ah_attr, struct mthca_ah *ah) argument 240 mthca_destroy_ah(struct mthca_dev *dev, struct mthca_ah *ah) argument 266 mthca_read_ah(struct mthca_dev *dev, struct mthca_ah *ah, struct ib_ud_header *header) argument 295 struct mthca_dev *dev = to_mdev(ibah->device); local 324 mthca_init_av_table(struct mthca_dev *dev) argument 365 mthca_cleanup_av_table(struct mthca_dev *dev) argument [all...] |
/freebsd-current/sys/dev/ath/ |
H A D | if_ath_pci.c | 61 #include <dev/ath/if_athvar.h> 63 #include <dev/pci/pcivar.h> 64 #include <dev/pci/pcireg.h> 109 ath_pci_setup(device_t dev) argument 119 cz = pci_read_config(dev, PCIR_CACHELNSZ, 1); 121 pci_write_config(dev, PCIR_CACHELNSZ, 126 pci_write_config(dev, PCIR_LATTIMER, 0xa8, 1); 133 pmcsr = pci_read_config(dev, PCIR_CFG_PMCSR, 2); 135 pci_write_config(dev, PCIR_CFG_PMCSR, pmcsr, 2); 137 pci_write_config(dev, PCIR_CFG_PMCS 149 ath_pci_probe(device_t dev) argument 162 ath_pci_attach(device_t dev) argument 308 ath_pci_detach(device_t dev) argument 343 ath_pci_shutdown(device_t dev) argument 352 ath_pci_suspend(device_t dev) argument 362 ath_pci_resume(device_t dev) argument [all...] |
/freebsd-current/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_qp.c | 40 #include <dev/mlx4/cmd.h> 41 #include <dev/mlx4/qp.h> 50 void mlx4_qp_event(struct mlx4_dev *dev, u32 qpn, int event_type) argument 52 struct mlx4_qp_table *qp_table = &mlx4_priv(dev)->qp_table; 57 qp = __mlx4_qp_lookup(dev, qpn); 64 mlx4_dbg(dev, "Async event for none existent QP %08x\n", qpn); 75 static int is_master_qp0(struct mlx4_dev *dev, struct mlx4_qp *qp, int *real_qp0, int *proxy_qp0) argument 79 u32 pf_proxy_offset = dev->phys_caps.base_proxy_sqpn + 8 * mlx4_master_func_num(dev); 82 *real_qp0 = qp->qpn >= dev 88 __mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, struct mlx4_qp_context *context, enum mlx4_qp_optpar optpar, int sqd_event, struct mlx4_qp *qp, int native) argument 209 mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, struct mlx4_qp_context *context, enum mlx4_qp_optpar optpar, int sqd_event, struct mlx4_qp *qp) argument 220 __mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align, int *base, u8 flags) argument 248 mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align, int *base, u8 flags) argument 275 __mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt) argument 285 mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt) argument 305 __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp) argument 349 mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp) argument 362 __mlx4_qp_free_icm(struct mlx4_dev *dev, int qpn) argument 374 mlx4_qp_free_icm(struct mlx4_dev *dev, int qpn) argument 388 mlx4_qp_alloc(struct mlx4_dev *dev, int qpn, struct mlx4_qp *qp, gfp_t gfp) argument 422 mlx4_update_qp(struct mlx4_dev *dev, u32 qpn, enum mlx4_update_qp_attr attr, struct mlx4_update_qp_params *params) argument 491 mlx4_qp_remove(struct mlx4_dev *dev, struct mlx4_qp *qp) argument 502 mlx4_qp_free(struct mlx4_dev *dev, struct mlx4_qp *qp) argument 512 mlx4_CONF_SPECIAL_QP(struct mlx4_dev *dev, u32 base_qpn) argument 522 mlx4_create_zones(struct mlx4_dev *dev, u32 reserved_bottom_general, u32 reserved_top_general, u32 reserved_bottom_rss, u32 start_offset_rss, u32 max_table_offset) argument 712 mlx4_cleanup_qp_zones(struct mlx4_dev *dev) argument 739 mlx4_init_qp_table(struct mlx4_dev *dev) argument 868 mlx4_cleanup_qp_table(struct mlx4_dev *dev) argument 878 mlx4_qp_query(struct mlx4_dev *dev, struct mlx4_qp *qp, struct mlx4_qp_context *context) argument 899 mlx4_qp_to_ready(struct mlx4_dev *dev, struct mlx4_mtt *mtt, struct mlx4_qp_context *context, struct mlx4_qp *qp, enum mlx4_qp_state *qp_state) argument 932 mlx4_qp_roce_entropy(struct mlx4_dev *dev, u32 qpn) argument [all...] |
/freebsd-current/sys/dev/imcsmb/ |
H A D | imcsmb.c | 46 #include <dev/pci/pcivar.h> 47 #include <dev/pci/pcireg.h> 49 #include <dev/smbus/smbconf.h> 55 static int imcsmb_attach(device_t dev); 56 static int imcsmb_detach(device_t dev); 57 static int imcsmb_probe(device_t dev); 60 static int imcsmb_callback(device_t dev, int index, void *data); 61 static int imcsmb_readb(device_t dev, u_char slave, char cmd, char *byte); 62 static int imcsmb_readw(device_t dev, u_char slave, char cmd, short *word); 63 static int imcsmb_writeb(device_t dev, u_cha 81 imcsmb_attach(device_t dev) argument 120 imcsmb_detach(device_t dev) argument 144 imcsmb_probe(device_t dev) argument 168 imcsmb_callback(device_t dev, int index, void *data) argument 217 imcsmb_readb(device_t dev, u_char slave, char cmd, char *byte) argument 241 imcsmb_readw(device_t dev, u_char slave, char cmd, short *word) argument 265 imcsmb_writeb(device_t dev, u_char slave, char cmd, char byte) argument 289 imcsmb_writew(device_t dev, u_char slave, char cmd, short word) argument 321 imcsmb_transfer(device_t dev, u_char slave, char cmd, void *data, int word_op, int write_op) argument [all...] |
/freebsd-current/sys/dev/ips/ |
H A D | ips_pci.c | 32 #include <dev/ips/ipsreg.h> 33 #include <dev/ips/ips.h> 35 #include <dev/pci/pcireg.h> 36 #include <dev/pci/pcivar.h> 41 static int ips_pci_probe(device_t dev) argument 44 if ((pci_get_vendor(dev) == IPS_VENDOR_ID) && 45 (pci_get_device(dev) == IPS_MORPHEUS_DEVICE_ID)) { 46 device_set_desc(dev, "IBM ServeRAID Adapter"); 48 } else if ((pci_get_vendor(dev) == IPS_VENDOR_ID) && 49 (pci_get_device(dev) 60 ips_pci_attach(device_t dev) argument 181 ips_pci_detach(device_t dev) argument 197 ips_pci_shutdown(device_t dev) argument [all...] |
/freebsd-current/sys/dev/dpaa2/ |
H A D | dpaa2_bp.c | 49 #include <dev/pci/pcivar.h> 78 dpaa2_bp_probe(device_t dev) argument 81 device_set_desc(dev, "DPAA2 Buffer Pool"); 86 dpaa2_bp_detach(device_t dev) argument 88 device_t pdev = device_get_parent(dev); 89 device_t child = dev; 90 struct dpaa2_bp_softc *sc = device_get_softc(dev); 92 struct dpaa2_devinfo *dinfo = device_get_ivars(dev); 99 error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token); 101 device_printf(dev, " 127 dpaa2_bp_attach(device_t dev) argument [all...] |
/freebsd-current/sys/powerpc/mpc85xx/ |
H A D | mpc85xx_gpio.c | 44 #include <dev/fdt/fdt_common.h> 45 #include <dev/gpio/gpiobusvar.h> 46 #include <dev/ofw/ofw_bus.h> 47 #include <dev/ofw/ofw_bus_subr.h> 58 mtx_init(&(sc)->sc_mtx, device_get_nameunit((sc)->dev), \ 63 device_t dev; member in struct:mpc85xx_gpio_softc 71 mpc85xx_gpio_get_bus(device_t dev) argument 75 sc = device_get_softc(dev); 81 mpc85xx_gpio_pin_max(device_t dev, int *maxpin) argument 90 mpc85xx_gpio_pin_getcaps(device_t dev, uint32_ argument 103 mpc85xx_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument 117 mpc85xx_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument 141 mpc85xx_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *value) argument 155 mpc85xx_gpio_pin_toggle(device_t dev, uint32_t pin) argument 175 mpc85xx_gpio_probe(device_t dev) argument 201 mpc85xx_gpio_attach(device_t dev) argument 241 mpc85xx_gpio_detach(device_t dev) argument [all...] |
/freebsd-current/sys/dev/ow/ |
H A D | ow_temp.c | 40 #include <dev/ow/ow.h> 41 #include <dev/ow/own.h> 60 device_t dev; member in struct:ow_temp_softc 73 ow_temp_probe(device_t dev) argument 76 switch (ow_get_family(dev)) { 78 device_set_desc(dev, "One Wire Temperature"); 83 device_set_desc(dev, "Advanced One Wire Temperature"); 91 ow_temp_read_scratchpad(device_t dev, uint8_t *scratch, int len) argument 95 own_self_command(dev, &cmd, READ_SCRATCHPAD); 97 own_command_wait(dev, 104 ow_temp_convert_t(device_t dev) argument 115 ow_temp_read_power_supply(device_t dev, int *parasite) argument 187 ow_temp_attach(device_t dev) argument 239 ow_temp_detach(device_t dev) argument [all...] |