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

1234567891011>>

/freebsd-current/sys/contrib/dev/mediatek/mt76/
H A Dmt76x02_beacon.c10 static void mt76x02_set_beacon_offsets(struct mt76x02_dev *dev) argument
16 for (i = 0; i < dev->beacon_ops->nslots; i++) {
17 val = i * dev->beacon_ops->slot_size;
22 mt76_wr(dev, MT_BCN_OFFSET(i), regs[i]);
26 mt76x02_write_beacon(struct mt76x02_dev *dev, int offset, struct sk_buff *skb) argument
28 int beacon_len = dev->beacon_ops->slot_size;
36 if (mt76_is_usb(&dev->mt76)) {
40 mt76x02_mac_write_txwi(dev, txwi, skb, NULL, NULL, skb->len);
45 mt76x02_mac_write_txwi(dev, &txwi, skb, NULL, NULL, skb->len);
46 mt76_wr_copy(dev, offse
54 mt76x02_mac_set_beacon(struct mt76x02_dev *dev, struct sk_buff *skb) argument
69 mt76x02_mac_set_beacon_enable(struct mt76x02_dev *dev, struct ieee80211_vif *vif, bool enable) argument
107 mt76x02_resync_beacon_timer(struct mt76x02_dev *dev) argument
139 struct mt76x02_dev *dev = (struct mt76x02_dev *)priv; local
158 struct mt76x02_dev *dev = data->dev; local
179 mt76x02_enqueue_buffered_bc(struct mt76x02_dev *dev, struct beacon_bc_data *data, int max_nframes) argument
207 mt76x02_init_beacon_config(struct mt76x02_dev *dev) argument
[all...]
/freebsd-current/sys/dev/itwd/
H A Ditwd.c37 #include <dev/superio/superio.h>
53 device_t dev = priv; local
99 device_printf(dev, "setting timeout to %d\n", val);
101 superio_write(dev, 0x73, val);
102 if (superio_read(dev, 0x73) != val)
103 superio_write(dev, 0x73, val);
109 device_t dev = cookie; local
112 val = superio_read(dev, 0x71);
114 device_printf(dev, "got interrupt, wdt status = %d\n", val & 1);
115 superio_write(dev,
119 itwd_probe(device_t dev) argument
131 itwd_attach(device_t dev) argument
197 itwd_detach(device_t dev) argument
[all...]
/freebsd-current/sys/arm/broadcom/bcm2835/
H A Dbcm2838_xhci.c50 #include <dev/usb/usb.h>
51 #include <dev/usb/usbdi.h>
53 #include <dev/usb/usb_core.h>
54 #include <dev/usb/usb_busdma.h>
55 #include <dev/usb/usb_process.h>
56 #include <dev/usb/usb_util.h>
58 #include <dev/usb/usb_controller.h>
59 #include <dev/usb/usb_bus.h>
60 #include <dev/usb/usb_pci.h>
61 #include <dev/us
75 bcm_xhci_probe(device_t dev) argument
114 bcm_xhci_check_firmware(device_t dev, bool expect_loaded) argument
138 bcm_xhci_install_xhci_firmware(device_t dev) argument
178 bcm_xhci_attach(device_t dev) argument
[all...]
/freebsd-current/sys/dev/etherswitch/arswitch/
H A Darswitch_reg.c47 #include <dev/iicbus/iic.h>
48 #include <dev/iicbus/iiconf.h>
49 #include <dev/iicbus/iicbus.h>
50 #include <dev/mii/mii.h>
51 #include <dev/mii/miivar.h>
52 #include <dev/mdio/mdio.h>
54 #include <dev/etherswitch/etherswitch.h>
56 #include <dev/etherswitch/arswitch/arswitchreg.h>
57 #include <dev/etherswitch/arswitch/arswitchvar.h>
58 #include <dev/etherswitc
65 arswitch_split_setpage(device_t dev, uint32_t addr, uint16_t *phy, uint16_t *reg) argument
88 arswitch_readreg16(device_t dev, int addr) argument
100 arswitch_writereg16(device_t dev, int addr, int data) argument
109 arswitch_writedbg(device_t dev, int phy, uint16_t dbg_addr, uint16_t dbg_data) argument
119 arswitch_writemmd(device_t dev, int phy, uint16_t dbg_addr, uint16_t dbg_data) argument
129 arswitch_reg_read32(device_t dev, int phy, int reg) argument
139 arswitch_reg_write32(device_t dev, int phy, int reg, uint32_t value) argument
165 arswitch_readreg(device_t dev, int addr) argument
174 arswitch_writereg(device_t dev, int addr, int value) argument
190 arswitch_readreg_lsb(device_t dev, int addr) argument
197 arswitch_readreg_msb(device_t dev, int addr) argument
204 arswitch_writereg_lsb(device_t dev, int addr, int data) argument
211 arswitch_writereg_msb(device_t dev, int addr, int data) argument
218 arswitch_modifyreg(device_t dev, int addr, int mask, int set) argument
235 arswitch_waitreg(device_t dev, int addr, int mask, int val, int timeout) argument
[all...]
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dpci_mac.c18 mt7615_write_fw_txp(struct mt7615_dev *dev, struct mt76_tx_info *tx_info, argument
65 struct mt7615_dev *dev = container_of(mdev, struct mt7615_dev, mt76); local
76 wcid = &dev->mt76.global_wcid;
79 struct mt7615_phy *phy = &dev->phy;
85 spin_lock_bh(&dev->mt76.lock);
88 spin_unlock_bh(&dev->mt76.lock);
99 mt7615_mac_write_txwi(dev, txwi_ptr, tx_info->skb, wcid, sta,
104 if (is_mt7615(&dev->mt76))
105 mt7615_write_fw_txp(dev, tx_info, txp, id);
114 void mt7615_dma_reset(struct mt7615_dev *dev) argument
140 mt7615_hif_int_event_trigger(struct mt7615_dev *dev, u8 event) argument
154 mt7615_wait_reset_state(struct mt7615_dev *dev, u32 state) argument
169 struct mt7615_dev *dev = mt7615_hw_dev(hw); local
184 mt7615_update_beacons(struct mt7615_dev *dev) argument
204 struct mt7615_dev *dev; local
[all...]
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt76x0/
H A Dpci_mcu.c13 static int mt76x0e_load_firmware(struct mt76x02_dev *dev) argument
15 bool is_combo_chip = mt76_chip(&dev->mt76) != 0x7610;
28 err = request_firmware(&fw, firmware, dev->mt76.dev);
51 dev_info(dev->mt76.dev, "Firmware Version: %d.%d.%02d\n",
55 dev_dbg(dev->mt76.dev,
60 if (is_combo_chip && !mt76_poll(dev, MT_MCU_SEMAPHORE_00, 1, 1, 600)) {
61 dev_err(dev
116 mt76x0e_mcu_init(struct mt76x02_dev *dev) argument
[all...]
/freebsd-current/usr.sbin/bhyve/
H A Dacpi_device.h12 #include <contrib/dev/acpica/include/acpi.h>
33 int (*build_table)(const struct acpi_device *dev);
34 int (*write_dsdt)(const struct acpi_device *dev);
49 void acpi_device_destroy(struct acpi_device *dev);
51 int acpi_device_add_res_fixed_ioport(struct acpi_device *dev, UINT16 port,
53 int acpi_device_add_res_fixed_memory32(struct acpi_device *dev,
56 void *acpi_device_get_softc(const struct acpi_device *dev);
58 int acpi_device_build_table(const struct acpi_device *dev);
59 int acpi_device_write_dsdt(const struct acpi_device *dev);
/freebsd-current/share/examples/ses/srcs/
H A Dsesd.c59 int fd, polltime, dev, nodaemon, clear, c; local
92 for (dev = optind; dev < a; dev++)
93 carray[dev] = (encioc_enc_status_t) -1;
98 for (dev = optind; dev < a; dev++) {
99 fd = open(v[dev], O_RDWR);
101 perror(v[dev]);
[all...]
/freebsd-current/sys/dev/sff/
H A Dsfp_fdt.c37 #include <dev/ofw/ofw_bus.h>
38 #include <dev/ofw/ofw_bus_subr.h>
39 #include <dev/fdt/simplebus.h>
57 sfp_fdt_probe(device_t dev) argument
62 node = ofw_bus_get_node(dev);
66 s = device_get_property(dev, "i2c-bus", &node, sizeof(node),
69 device_printf(dev, "%s: '%s' has no 'i2c-bus' property, s %zd\n",
70 __func__, ofw_bus_get_name(dev), s);
74 device_set_desc(dev, "Small Form-factor Pluggable Transceiver");
79 sfp_fdt_attach(device_t dev) argument
121 sfp_fdt_get_i2c_bus(device_t dev, device_t *i2c_bus) argument
[all...]
/freebsd-current/sys/dev/iicbus/controller/opencores/
H A Diicoc_pci.c38 #include <dev/iicbus/iicbus.h>
39 #include <dev/iicbus/iiconf.h>
41 #include <dev/pci/pcireg.h>
42 #include <dev/pci/pcivar.h>
48 iicoc_detach(device_t dev) argument
52 sc = device_get_softc(dev);
53 device_delete_children(dev);
54 bus_generic_detach(dev);
55 bus_release_resource(dev, SYS_RES_MEMORY, sc->mem_rid, sc->mem_res);
66 iicoc_attach(device_t dev) argument
97 iicoc_probe(device_t dev) argument
[all...]
/freebsd-current/sys/amd64/vmm/amd/
H A Damdiommu.c37 #include <dev/pci/pcireg.h>
38 #include <dev/pci/pcivar.h>
72 amdiommu_probe(device_t dev) argument
80 if (pci_get_class(dev) != PCIC_BASEPERIPH ||
81 pci_get_subclass(dev) != PCIS_BASEPERIPH_IOMMU)
87 error = pci_find_cap(dev, PCIY_SECDEV, &capoff);
95 if ((pci_read_config(dev, capoff + 2, 2) & 0x7) != 0x3)
102 amdiommu_attach(device_t dev) argument
105 device_set_desc(dev, "AMD-Vi/IOMMU PCI function");
110 amdiommu_detach(device_t dev) argument
117 ivhd_setup_intr(device_t dev, driver_intr_t handler, void *arg, const char *desc) argument
159 ivhd_teardown_intr(device_t dev) argument
[all...]
/freebsd-current/sys/arm/ti/
H A Dti_omap4_cm.c45 #include <dev/fdt/simplebus.h>
47 #include <dev/ofw/ofw_bus.h>
48 #include <dev/ofw/ofw_bus_subr.h>
59 device_t dev; member in struct:ti_omap4_cm_softc
63 ti_omap4_cm_get_simplebus_base_host(device_t dev) { argument
66 sc = device_get_softc(dev);
73 static int ti_omap4_cm_probe(device_t dev);
74 static int ti_omap4_cm_attach(device_t dev);
75 static int ti_omap4_cm_detach(device_t dev);
78 ti_omap4_cm_probe(device_t dev) argument
94 ti_omap4_cm_attach(device_t dev) argument
122 ti_omap4_cm_detach(device_t dev) argument
[all...]
/freebsd-current/sys/arm/ti/am335x/
H A Dam3359_cppi41.c42 #include <dev/fdt/simplebus.h>
44 #include <dev/ofw/openfirm.h>
45 #include <dev/ofw/ofw_bus.h>
46 #include <dev/ofw/ofw_bus_subr.h>
51 #define DPRINTF(dev, msg...) device_printf(dev, msg)
53 #define DPRINTF(dev, msg...)
57 device_t dev; member in struct:ti_am3359_cppi41_softc
80 ti_am3359_cppi41_write_4(device_t dev, bus_addr_t addr, uint32_t val) argument
84 sc = device_get_softc(dev);
93 ti_am3359_cppi41_read_4(device_t dev, bus_addr_t addr) argument
109 ti_am3359_cppi41_probe(device_t dev) argument
122 ti_am3359_cppi41_attach(device_t dev) argument
[all...]
/freebsd-current/sys/dev/usb/controller/
H A Ddwc_otg_fdt.c39 #include <dev/ofw/openfirm.h>
40 #include <dev/ofw/ofw_bus.h>
41 #include <dev/ofw/ofw_bus_subr.h>
43 #include <dev/usb/usb.h>
44 #include <dev/usb/usbdi.h>
46 #include <dev/usb/usb_core.h>
47 #include <dev/usb/usb_busdma.h>
48 #include <dev/usb/usb_process.h>
49 #include <dev/usb/usb_util.h>
51 #include <dev/us
66 dwc_otg_probe(device_t dev) argument
81 dwc_otg_irq_index(device_t dev, int *rid) argument
95 dwc_otg_attach(device_t dev) argument
162 dwc_otg_detach(device_t dev) argument
[all...]
H A Dgeneric_xhci_acpi.c38 #include <dev/usb/usb.h>
39 #include <dev/usb/usbdi.h>
41 #include <dev/usb/usb_core.h>
42 #include <dev/usb/usb_busdma.h>
43 #include <dev/usb/usb_process.h>
45 #include <dev/usb/usb_controller.h>
46 #include <dev/usb/usb_bus.h>
47 #include <dev/usb/controller/xhci.h>
49 #include <contrib/dev/acpica/include/acpi.h>
50 #include <dev/acpic
61 generic_xhci_acpi_probe(device_t dev) argument
[all...]
/freebsd-current/tests/sys/geom/class/mirror/
H A D9_test.sh14 dd if=/dev/zero of=$m1 bs=$ddbs count=1024 >/dev/null 2>&1
15 dd if=/dev/zero of=$m2 bs=$ddbs count=1024 >/dev/null 2>&1
16 dd if=/dev/zero of=$m3 bs=$ddbs count=1024 >/dev/null 2>&1
22 gmirror label $name /dev/$us0 /dev/$us1 || exit 1
29 dd if=/dev/random of=/dev/mirro
[all...]
/freebsd-current/sys/riscv/riscv/
H A Driscv_syscon.c42 #include <dev/ofw/openfirm.h>
43 #include <dev/ofw/ofw_bus.h>
44 #include <dev/ofw/ofw_bus_subr.h>
46 #include <dev/syscon/syscon.h>
47 #include <dev/syscon/syscon_generic.h>
56 riscv_syscon_probe(device_t dev) argument
59 if (!ofw_bus_status_okay(dev))
61 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
64 device_set_desc(dev, "RISC-V syscon");
/freebsd-current/sys/arm/mv/
H A Dmv_cp110_icu_bus.c37 #include <dev/ofw/openfirm.h>
38 #include <dev/ofw/ofw_bus.h>
39 #include <dev/ofw/ofw_bus_subr.h>
41 #include <dev/syscon/syscon.h>
42 #include <dev/fdt/simple_mfd.h>
50 mv_cp110_icu_bus_probe(device_t dev) argument
53 if (!ofw_bus_status_okay(dev))
55 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
58 device_set_desc(dev, "Marvell Interrupt Consolidation Unit Bus");
/freebsd-current/sys/arm64/rockchip/
H A Drk_pmu.c36 #include <dev/ofw/openfirm.h>
37 #include <dev/ofw/ofw_bus.h>
38 #include <dev/ofw/ofw_bus_subr.h>
40 #include <dev/syscon/syscon.h>
41 #include <dev/fdt/simple_mfd.h>
49 rk_pmu_probe(device_t dev) argument
52 if (!ofw_bus_status_okay(dev))
54 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
57 device_set_desc(dev, "RockChip Power Management Unit");
H A Drk_grf.c36 #include <dev/ofw/openfirm.h>
37 #include <dev/ofw/ofw_bus.h>
38 #include <dev/ofw/ofw_bus_subr.h>
40 #include <dev/syscon/syscon.h>
41 #include <dev/fdt/simple_mfd.h>
59 rk_grf_probe(device_t dev) argument
62 if (!ofw_bus_status_okay(dev))
64 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
67 device_set_desc(dev, "RockChip General Register Files");
/freebsd-current/sys/arm/allwinner/
H A Daw_syscon.c40 #include <dev/ofw/openfirm.h>
41 #include <dev/ofw/ofw_bus.h>
42 #include <dev/ofw/ofw_bus_subr.h>
44 #include <dev/syscon/syscon.h>
45 #include <dev/syscon/syscon_generic.h>
58 aw_syscon_probe(device_t dev) argument
61 if (!ofw_bus_status_okay(dev))
63 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
66 device_set_desc(dev, "Allwinner syscon");
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7603/
H A Dsoc.c12 struct mt7603_dev *dev; local
26 mdev = mt76_alloc_device(&pdev->dev, sizeof(*dev), &mt7603_ops,
31 dev = container_of(mdev, struct mt7603_dev, mt76);
34 mdev->rev = (mt76_rr(dev, MT_HW_CHIPID) << 16) |
35 (mt76_rr(dev, MT_HW_REV) & 0xff);
36 dev_info(mdev->dev, "ASIC revision: %04x\n", mdev->rev);
38 mt76_wr(dev, MT_INT_MASK_CSR, 0);
40 ret = devm_request_irq(mdev->dev, irq, mt7603_irq_handler,
41 IRQF_SHARED, KBUILD_MODNAME, dev);
59 struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76); local
[all...]
/freebsd-current/tools/tools/nanobsd/Files/root/
H A Dupdatep238 if mount | grep ${NANO_DRIVE}s2 > /dev/null ; then
45 dd if=/dev/zero of=/dev/${NANO_DRIVE}s2 bs=1m count=1 > /dev/null 2>&1
48 dd of=/dev/${NANO_DRIVE}s2 obs=64k
51 fsck_ffs -n /dev/${NANO_DRIVE}s2a
55 mount /dev/${NANO_DRIVE}s2a /mnt
/freebsd-current/tools/tools/nanobsd/pcengines/Files/root/
H A Dupdatep238 if mount | grep ${NANO_DRIVE}s2 > /dev/null ; then
45 dd if=/dev/zero of=/dev/${NANO_DRIVE}s2 bs=1m count=1 > /dev/null 2>&1
48 dd of=/dev/${NANO_DRIVE}s2 obs=64k
51 fsck_ffs -n /dev/${NANO_DRIVE}s2a
55 mount /dev/${NANO_DRIVE}s2a /mnt
/freebsd-current/sys/dev/gpio/
H A Dpl061_fdt.c39 #include <dev/ofw/openfirm.h>
40 #include <dev/ofw/ofw_bus.h>
41 #include <dev/ofw/ofw_bus_subr.h>
43 #include <dev/gpio/gpiobusvar.h>
48 pl061_fdt_probe(device_t dev) argument
50 if (!ofw_bus_status_okay(dev))
53 if (!ofw_bus_is_compatible(dev, "arm,pl061"))
56 device_set_desc(dev, "Arm PL061 GPIO Controller");
62 pl061_fdt_attach(device_t dev) argument
66 error = pl061_attach(dev);
[all...]

Completed in 288 milliseconds

1234567891011>>