Searched refs:dev (Results 251 - 275 of 6298) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/tests/sys/geom/class/raid3/
H A D7_test.sh18 dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1
20 graid3 label $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1
23 dd if=${src} of=/dev/raid3/${name} bs=$ddbs count=$nblocks2 >/dev/null 2>&1
29 dd if=/dev/zero of=/dev/${us2} bs=512 count=`expr $nblocks1 + 1` >/dev/nul
[all...]
H A D9_test.sh18 dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1
20 graid3 label $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1
27 dd if=/dev/zero of=/dev/${us2} bs=512 count=`expr $nblocks1 + 1` >/dev/null 2>&1
28 dd if=${src} of=/dev/raid3/${name} bs=$ddbs count=$nblocks2 >/dev/nul
[all...]
/freebsd-11-stable/tests/sys/geom/class/shsec/
H A D2_test.sh13 dd if=/dev/random of=${src} count=$nblocks1 >/dev/null 2>&1
19 gshsec label $name /dev/$us0 /dev/$us1 /dev/$us2 || exit 1
22 dd if=${src} of=/dev/shsec/${name} count=$nblocks1 >/dev/null 2>&1
24 dd if=/dev/shsec/${name} of=${dst} count=$nblocks1 >/dev/null 2>&1
31 dd if=/dev/
[all...]
/freebsd-11-stable/sys/dev/gem/
H A Dif_gem_sbus.c52 #include <dev/ofw/ofw_bus.h>
60 #include <dev/gem/if_gemreg.h>
61 #include <dev/gem/if_gemvar.h>
100 gem_sbus_probe(device_t dev) argument
103 if (strcmp(ofw_bus_get_name(dev), "network") == 0 &&
104 ofw_bus_get_compat(dev) != NULL &&
105 strcmp(ofw_bus_get_compat(dev), "SUNW,sbus-gem") == 0) {
106 device_set_desc(dev, "Sun GEM Gigabit Ethernet");
121 gem_sbus_attach(device_t dev) argument
127 sc = device_get_softc(dev);
182 gem_sbus_detach(device_t dev) argument
195 gem_sbus_suspend(device_t dev) argument
203 gem_sbus_resume(device_t dev) argument
[all...]
/freebsd-11-stable/sys/dev/scd/
H A Dscd_isa.c25 #include <dev/scd/scdreg.h>
26 #include <dev/scd/scdvar.h>
36 scd_isa_probe (device_t dev) argument
42 if (isa_get_vendorid(dev))
46 if (bus_get_resource_start(dev, SYS_RES_IOPORT, 0) == 0)
49 sc = device_get_softc(dev);
50 sc->dev = dev;
53 error = scd_alloc_resources(dev);
59 device_printf(dev, "Prob
71 scd_isa_attach(device_t dev) argument
105 scd_isa_detach(device_t dev) argument
121 scd_alloc_resources(device_t dev) argument
145 scd_release_resources(device_t dev) argument
[all...]
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4_sense.c37 #include <dev/mlx4/cmd.h>
41 int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port, argument
47 err = mlx4_cmd_imm(dev, 0, &out_param, port, 0,
51 mlx4_err(dev, "Sense command failed for port: %d\n", port);
56 mlx4_err(dev, "Sense returned illegal value: 0x%llx\n", (long long)out_param);
64 void mlx4_do_sense_ports(struct mlx4_dev *dev, argument
68 struct mlx4_sense *sense = &mlx4_priv(dev)->sense;
72 for (i = 1; i <= dev->caps.num_ports; i++) {
75 dev->caps.possible_type[i] == MLX4_PORT_TYPE_AUTO) {
76 err = mlx4_SENSE_PORT(dev,
96 struct mlx4_dev *dev = sense->dev; local
119 mlx4_start_sense(struct mlx4_dev *dev) argument
134 mlx4_stop_sense(struct mlx4_dev *dev) argument
146 mlx4_sense_init(struct mlx4_dev *dev) argument
[all...]
/freebsd-11-stable/sys/dev/ata/
H A Data-pci.c45 #include <dev/pci/pcivar.h>
46 #include <dev/pci/pcireg.h>
47 #include <dev/ata/ata-all.h>
48 #include <dev/ata/ata-pci.h>
60 ata_pci_probe(device_t dev) argument
62 struct ata_pci_controller *ctlr = device_get_softc(dev);
66 if (pci_get_class(dev) != PCIC_STORAGE)
70 if (pci_get_subclass(dev) != PCIS_STORAGE_IDE)
73 sprintf(buffer, "%s ATA controller", ata_pcivendor2str(dev));
74 device_set_desc_copy(dev, buffe
82 ata_pci_attach(device_t dev) argument
132 ata_pci_detach(device_t dev) argument
166 ata_pci_suspend(device_t dev) argument
178 ata_pci_resume(device_t dev) argument
190 ata_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) argument
197 ata_pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value) argument
204 ata_pci_read_config(device_t dev, device_t child, int reg, int width) argument
211 ata_pci_write_config(device_t dev, device_t child, int reg, uint32_t val, int width) argument
219 ata_pci_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
280 ata_pci_release_resource(device_t dev, device_t child, int type, int rid, struct resource *r) argument
325 ata_pci_setup_intr(device_t dev, device_t child, struct resource *irq, int flags, driver_filter_t *filter, driver_intr_t *function, void *argument, void **cookiep) argument
354 ata_pci_teardown_intr(device_t dev, device_t child, struct resource *irq, void *cookie) argument
376 ata_generic_setmode(device_t dev, int target, int mode) argument
383 ata_generic_chipinit(device_t dev) argument
394 ata_pci_ch_attach(device_t dev) argument
433 ata_pci_ch_detach(device_t dev) argument
448 ata_pci_status(device_t dev) argument
473 ata_pci_hw(device_t dev) argument
516 ata_pci_dmareset(device_t dev) argument
532 ata_pci_dmainit(device_t dev) argument
543 ata_pci_dmafini(device_t dev) argument
550 ata_pci_print_child(device_t dev, device_t child) argument
563 ata_pci_child_location_str(device_t dev, device_t child, char *buf, size_t buflen) argument
619 ata_pcichannel_probe(device_t dev) argument
630 ata_pcichannel_attach(device_t dev) argument
653 ata_pcichannel_detach(device_t dev) argument
672 ata_pcichannel_suspend(device_t dev) argument
691 ata_pcichannel_resume(device_t dev) argument
707 ata_pcichannel_reset(device_t dev) argument
724 ata_pcichannel_setmode(device_t dev, int target, int mode) argument
735 ata_pcichannel_getrev(device_t dev, int target) argument
778 ata_legacy(device_t dev) argument
806 ata_setup_interrupt(device_t dev, void *intr_func) argument
842 ata_set_desc(device_t dev) argument
854 ata_match_chip(device_t dev, const struct ata_chip_id *index) argument
870 ata_find_chip(device_t dev, const struct ata_chip_id *index, int slot) argument
895 ata_pcivendor2str(device_t dev) argument
[all...]
/freebsd-11-stable/sys/dev/acpica/
H A Dacpi_cmbat.c31 __FBSDID("$FreeBSD: stable/11/sys/dev/acpica/acpi_cmbat.c 359076 2020-03-18 18:02:33Z hrs $");
44 #include <contrib/dev/acpica/include/acpi.h>
46 #include <dev/acpica/acpivar.h>
47 #include <dev/acpica/acpiio.h>
67 device_t dev; member in struct:acpi_cmbat_softc
77 static int acpi_cmbat_probe(device_t dev);
78 static int acpi_cmbat_attach(device_t dev);
79 static int acpi_cmbat_detach(device_t dev);
80 static int acpi_cmbat_resume(device_t dev);
117 acpi_cmbat_probe(device_t dev) argument
130 acpi_cmbat_attach(device_t dev) argument
161 acpi_cmbat_detach(device_t dev) argument
182 acpi_cmbat_resume(device_t dev) argument
193 device_t dev; local
256 device_t dev; local
331 device_t dev; local
486 acpi_cmbat_bix(device_t dev, void *bix, size_t len) argument
510 acpi_cmbat_bst(device_t dev, struct acpi_bst *bst) argument
532 device_t dev; local
[all...]
H A Dacpi_pcib_pci.c40 #include <contrib/dev/acpica/include/acpi.h>
41 #include <contrib/dev/acpica/include/accommon.h>
43 #include <dev/acpica/acpivar.h>
44 #include <dev/acpica/acpi_pcibvar.h>
47 #include <dev/pci/pcivar.h>
48 #include <dev/pci/pcireg.h>
49 #include <dev/pci/pcib_private.h>
70 static int acpi_pcib_read_ivar(device_t dev, device_t child,
73 device_t dev, int pin);
100 acpi_pcib_pci_probe(device_t dev) argument
117 acpi_pcib_pci_attach(device_t dev) argument
132 acpi_pcib_pci_detach(device_t dev) argument
147 acpi_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) argument
160 acpi_pcib_pci_route_interrupt(device_t pcib, device_t dev, int pin) argument
[all...]
/freebsd-11-stable/contrib/netbsd-tests/bin/df/
H A Dt_df.sh58 /dev/ld0g 1308726116 17901268 1225388540 1% /anon-root
59 /dev/ld0g 1308726116 0 1308726116 0% /anon-root
60 /dev/ld0g 1308726116 261745224 1046980892 20% /anon-root
61 /dev/ld0g 1308726116 785235672 523490444 60% /anon-root
62 /dev/ld0g 1308726116 1243289812 65436304 95% /anon-root
63 /dev/ld0g 1308726116 1308726116 0 100% /anon-root
64 /dev/ld0g 1308726116 0 1243289808 0% /anon-root
65 /dev/ld0g 1308726116 261745224 981544584 21% /anon-root
66 /dev/ld0g 1308726116 785235672 458054140 63% /anon-root
67 /dev/ld0
[all...]
/freebsd-11-stable/sys/dev/drm2/
H A Ddrm_ioctl.c39 #include <dev/drm2/drmP.h>
40 #include <dev/drm2/drm_core.h>
53 int drm_getunique(struct drm_device *dev, void *data, argument
69 drm_unset_busid(struct drm_device *dev, argument
93 int drm_setunique(struct drm_device *dev, void *data, argument
106 if (!dev->driver->bus->set_unique)
109 ret = dev->driver->bus->set_unique(dev, master, u);
116 drm_unset_busid(dev, master);
120 static int drm_set_busid(struct drm_device *dev, struc argument
150 drm_getmap(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
201 drm_getclient(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
240 drm_getstats(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
265 drm_getcap(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
308 drm_setversion(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
355 drm_noop(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
[all...]
H A Ddrm_vm.c43 #include <dev/drm2/drmP.h>
44 #include <dev/drm2/drm.h>
51 struct drm_device *dev = drm_get_device_from_kdev(kdev); local
72 if (dev->dma && offset < ptoa(dev->dma->page_count)) {
73 drm_device_dma_t *dma = dev->dma;
75 DRM_SPINLOCK(&dev->dma_lock);
81 DRM_SPINUNLOCK(&dev->dma_lock);
85 DRM_SPINUNLOCK(&dev->dma_lock);
98 DRM_LOCK(dev);
[all...]
/freebsd-11-stable/sys/arm/amlogic/aml8726/
H A Daml8726_gpio.c52 #include <dev/fdt/fdt_common.h>
53 #include <dev/ofw/ofw_bus.h>
54 #include <dev/ofw/ofw_bus_subr.h>
56 #include <dev/gpio/gpiobusvar.h>
62 device_t dev; member in struct:aml8726_gpio_softc
79 mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \
91 aml8726_gpio_probe(device_t dev) argument
94 if (!ofw_bus_status_okay(dev))
97 if (!ofw_bus_is_compatible(dev, "amlogic,aml8726-gpio"))
100 device_set_desc(dev, "Amlogi
106 aml8726_gpio_attach(device_t dev) argument
155 aml8726_gpio_detach(device_t dev) argument
169 aml8726_gpio_get_bus(device_t dev) argument
177 aml8726_gpio_pin_max(device_t dev, int *maxpin) argument
188 aml8726_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument
202 aml8726_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument
216 aml8726_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument
236 aml8726_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument
263 aml8726_gpio_pin_set(device_t dev, uint32_t pin, unsigned int value) argument
291 aml8726_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *value) argument
306 aml8726_gpio_pin_toggle(device_t dev, uint32_t pin) argument
333 aml8726_gpio_get_node(device_t bus, device_t dev) argument
[all...]
/freebsd-11-stable/sys/dev/malo/
H A Dif_malo_pci.c59 #include <dev/malo/if_malo.h>
61 #include <dev/pci/pcivar.h>
62 #include <dev/pci/pcireg.h>
132 malo_pci_probe(device_t dev) argument
138 vendor = pci_get_vendor(dev);
139 devid = pci_get_device(dev);
144 device_set_desc(dev, mp->mp_name);
153 malo_pci_attach(device_t dev) argument
156 struct malo_pci_softc *psc = device_get_softc(dev);
159 sc->malo_dev = dev;
270 malo_pci_detach(device_t dev) argument
302 malo_pci_shutdown(device_t dev) argument
312 malo_pci_suspend(device_t dev) argument
322 malo_pci_resume(device_t dev) argument
[all...]
/freebsd-11-stable/sys/arm/allwinner/clk/
H A Daw_oscclk.c43 #include <dev/ofw/ofw_bus.h>
44 #include <dev/ofw/ofw_bus_subr.h>
46 #include <dev/extres/clk/clk_fixed.h>
49 aw_oscclk_probe(device_t dev) argument
51 if (!ofw_bus_status_okay(dev))
54 if (!ofw_bus_is_compatible(dev, "allwinner,sun4i-a10-osc-clk"))
57 device_set_desc(dev, "Allwinner Oscillator Clock");
62 aw_oscclk_attach(device_t dev) argument
70 node = ofw_bus_get_node(dev);
73 device_printf(dev, "missin
[all...]
/freebsd-11-stable/sys/dev/agp/
H A Dagp_via.c40 #include <dev/agp/agppriv.h>
41 #include <dev/agp/agpreg.h>
42 #include <dev/pci/pcivar.h>
43 #include <dev/pci/pcireg.h>
66 agp_via_match(device_t dev) argument
68 if (pci_get_class(dev) != PCIC_BRIDGE
69 || pci_get_subclass(dev) != PCIS_BRIDGE_HOST)
72 if (agp_find_caps(dev) == 0)
75 switch (pci_get_devid(dev)) {
144 agp_via_probe(device_t dev) argument
160 agp_via_attach(device_t dev) argument
224 agp_via_detach(device_t dev) argument
240 agp_via_get_aperture(device_t dev) argument
288 agp_via_set_aperture(device_t dev, u_int32_t aperture) argument
351 agp_via_bind_page(device_t dev, vm_offset_t offset, vm_offset_t physical) argument
363 agp_via_unbind_page(device_t dev, vm_offset_t offset) argument
375 agp_via_flush_tlb(device_t dev) argument
[all...]
/freebsd-11-stable/sys/sys/
H A Dcpu.h43 static __inline struct pcpu *cpu_get_pcpu(device_t dev) argument
46 BUS_READ_IVAR(device_get_parent(dev), dev, CPU_IVAR_PCPU, &v); local
50 static __inline int32_t cpu_get_nominal_mhz(device_t dev) argument
53 if (BUS_READ_IVAR(device_get_parent(dev), dev,
59 static __inline const uint32_t *cpu_get_cpuid(device_t dev, size_t *count) argument
62 if (BUS_READ_IVAR(device_get_parent(dev), dev,
67 if (BUS_READ_IVAR(device_get_parent(dev), de
83 device_t dev; /* Driver providing this setting. */ member in struct:cf_setting
[all...]
/freebsd-11-stable/sys/mips/cavium/octe/
H A Doctebus.c52 static int octebus_probe(device_t dev);
53 static int octebus_attach(device_t dev);
54 static int octebus_detach(device_t dev);
55 static int octebus_shutdown(device_t dev);
88 octebus_probe(device_t dev) argument
90 if (device_get_unit(dev) != 0)
92 device_set_desc(dev, "Cavium Octeon Ethernet pseudo-bus");
97 octebus_attach(device_t dev) argument
102 sc = device_get_softc(dev);
103 sc->sc_dev = dev;
113 octebus_detach(device_t dev) argument
120 octebus_shutdown(device_t dev) argument
[all...]
/freebsd-11-stable/sys/dev/stg/
H A Dtmc18c30_pci.c55 #include <dev/pci/pcireg.h>
56 #include <dev/pci/pcivar.h>
60 #include <dev/stg/tmc18c30reg.h>
61 #include <dev/stg/tmc18c30var.h>
62 #include <dev/stg/tmc18c30.h>
74 stg_pci_probe(device_t dev) argument
76 u_int32_t type = pci_get_devid(dev);
82 device_set_desc(dev, stg->desc);
89 stg_pci_attach(device_t dev) argument
91 struct stg_softc *sc = device_get_softc(dev);
[all...]
/freebsd-11-stable/sys/dev/sio/
H A Dsio_puc.c42 #include <dev/puc/puc_bus.h>
44 #include <dev/sio/siovar.h>
45 #include <dev/sio/sioreg.h>
47 static int sio_puc_attach(device_t dev);
48 static int sio_puc_probe(device_t dev);
66 sio_puc_attach(device_t dev) argument
70 if (BUS_READ_IVAR(device_get_parent(dev), dev, PUC_IVAR_CLOCK,
73 return (sioattach(dev, 0, rclk));
77 sio_puc_probe(device_t dev) argument
[all...]
/freebsd-11-stable/stand/mips/beri/loader/
H A Dberi_disk_cfi.c95 struct disk_devdesc *dev; local
98 dev = va_arg(ap, struct disk_devdesc *);
101 if (dev->dd.d_unit != 0)
103 return (disk_open(dev, cfi_get_mediasize(), cfi_get_sectorsize()));
109 struct disk_devdesc *dev; local
111 dev = (struct disk_devdesc *)f->f_devdata;
112 return (disk_close(dev));
118 struct disk_devdesc dev; local
130 dev.dd.d_dev = &beri_cfi_disk;
131 dev
[all...]
/freebsd-11-stable/sys/dev/drm/
H A Ddrm_drawable.c39 #include "dev/drm/drmP.h"
62 drm_get_drawable_info(struct drm_device *dev, int handle) argument
67 result = RB_FIND(drawable_tree, &dev->drw_head, &find);
72 int drm_adddraw(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
82 info->handle = alloc_unr(dev->drw_unrhdr);
83 DRM_SPINLOCK(&dev->drw_lock);
84 RB_INSERT(drawable_tree, &dev->drw_head, info);
86 DRM_SPINUNLOCK(&dev->drw_lock);
93 int drm_rmdraw(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
98 DRM_SPINLOCK(&dev
114 drm_update_draw(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
156 drm_drawable_free_all(struct drm_device *dev) argument
[all...]
/freebsd-11-stable/sys/dev/altera/atse/
H A Dif_atse_fdt.c50 #include <dev/mii/mii.h>
51 #include <dev/mii/miivar.h>
54 #include <dev/fdt/fdt_common.h>
55 #include <dev/ofw/openfirm.h>
56 #include <dev/ofw/ofw_bus.h>
57 #include <dev/ofw/ofw_bus_subr.h>
59 #include <dev/altera/atse/if_atsereg.h>
65 atse_probe_fdt(device_t dev) argument
68 if (!ofw_bus_status_okay(dev))
71 if (ofw_bus_is_compatible(dev, "alter
79 atse_attach_fdt(device_t dev) argument
[all...]
/freebsd-11-stable/sys/powerpc/ofw/
H A Dofw_pcib_pci.c38 #include <dev/ofw/openfirm.h>
39 #include <dev/ofw/ofw_pci.h>
40 #include <dev/ofw/ofw_bus.h>
41 #include <dev/ofw/ofw_bus_subr.h>
43 #include <dev/pci/pcivar.h>
44 #include <dev/pci/pcireg.h>
45 #include <dev/pci/pcib_private.h>
53 static phandle_t ofw_pcib_pci_get_node(device_t bus, device_t dev);
54 static int ofw_pcib_pci_route_interrupt(device_t bridge, device_t dev,
76 * generic routines only need the dev, secbu
89 ofw_pcib_pci_probe(device_t dev) argument
105 ofw_pcib_pci_attach(device_t dev) argument
121 ofw_pcib_pci_get_node(device_t bridge, device_t dev) argument
129 ofw_pcib_pci_route_interrupt(device_t bridge, device_t dev, int intpin) argument
[all...]
/freebsd-11-stable/sys/dev/etherswitch/arswitch/
H A Darswitch_phy.c46 #include <dev/iicbus/iic.h>
47 #include <dev/iicbus/iiconf.h>
48 #include <dev/iicbus/iicbus.h>
49 #include <dev/mii/mii.h>
50 #include <dev/mii/miivar.h>
51 #include <dev/mdio/mdio.h>
53 #include <dev/etherswitch/etherswitch.h>
55 #include <dev/etherswitch/arswitch/arswitchreg.h>
56 #include <dev/etherswitch/arswitch/arswitchvar.h>
58 #include <dev/etherswitc
75 arswitch_readphy_external(device_t dev, int phy, int reg) argument
90 arswitch_writephy_external(device_t dev, int phy, int reg, int data) argument
109 arswitch_readphy_internal(device_t dev, int phy, int reg) argument
158 arswitch_writephy_internal(device_t dev, int phy, int reg, int data) argument
[all...]

Completed in 218 milliseconds

<<11121314151617181920>>