Searched refs:dev (Results 101 - 125 of 6728) sorted by relevance

1234567891011>>

/freebsd-12-stable/sys/arm/ti/twl/
H A Dtwl.h34 int twl_read(device_t dev, uint8_t nsub, uint8_t reg, uint8_t *buf, uint16_t cnt);
35 int twl_write(device_t dev, uint8_t nsub, uint8_t reg, uint8_t *buf, uint16_t cnt);
37 int twl_is_4030(device_t dev);
38 int twl_is_6025(device_t dev);
39 int twl_is_6030(device_t dev);
/freebsd-12-stable/sys/dev/drm/
H A Ddrm_context.c38 #include "dev/drm/drmP.h"
44 void drm_ctxbitmap_free(struct drm_device *dev, int ctx_handle) argument
47 dev->ctx_bitmap == NULL) {
54 clear_bit(ctx_handle, dev->ctx_bitmap);
55 dev->context_sareas[ctx_handle] = NULL;
60 int drm_ctxbitmap_next(struct drm_device *dev) argument
64 if (dev->ctx_bitmap == NULL)
68 bit = find_first_zero_bit(dev->ctx_bitmap, DRM_MAX_CTXBITMAP);
74 set_bit(bit, dev->ctx_bitmap);
76 if ((bit+1) > dev
97 drm_ctxbitmap_init(struct drm_device *dev) argument
121 drm_ctxbitmap_cleanup(struct drm_device *dev) argument
134 drm_getsareactx(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
155 drm_setsareactx(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
183 drm_context_switch(struct drm_device *dev, int old, int new) argument
200 drm_context_switch_complete(struct drm_device *dev, int new) argument
216 drm_resctx(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
236 drm_addctx(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
261 drm_modctx(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
267 drm_getctx(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
277 drm_switchctx(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
286 drm_newctx(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
296 drm_rmctx(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
[all...]
H A Ddrm_drv.c41 #include "dev/drm/drmP.h"
42 #include "dev/drm/drm.h"
43 #include "dev/drm/drm_sarea.h"
51 static int drm_load(struct drm_device *dev);
52 static void drm_unload(struct drm_device *dev);
186 struct drm_device *dev; local
191 dev = device_get_softc(kdev);
193 dev->device = kdev;
194 dev->devnode = make_dev(&drm_cdevsw,
200 dev
249 struct drm_device *dev; local
289 drm_firstopen(struct drm_device *dev) argument
331 drm_lastclose(struct drm_device *dev) argument
408 drm_load(struct drm_device *dev) argument
502 drm_unload(struct drm_device *dev) argument
565 drm_version(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
592 struct drm_device *dev = NULL; local
616 struct drm_device *dev = file_priv->dev; local
704 struct drm_device *dev = drm_get_device_from_kdev(kdev); local
783 drm_getsarea(struct drm_device *dev) argument
[all...]
H A Dtdfx_drv.c38 #include "dev/drm/tdfx_drv.h"
39 #include "dev/drm/drmP.h"
40 #include "dev/drm/drm_pciids.h"
47 static void tdfx_configure(struct drm_device *dev) argument
49 dev->driver->driver_features =
52 dev->driver->buf_priv_size = 1; /* No dev_priv */
54 dev->driver->max_ioctl = 0;
56 dev->driver->name = DRIVER_NAME;
57 dev->driver->desc = DRIVER_DESC;
58 dev
73 struct drm_device *dev = device_get_softc(kdev); local
86 struct drm_device *dev = device_get_softc(kdev); local
[all...]
/freebsd-12-stable/sys/compat/linuxkpi/common/include/linux/
H A Dinterrupt.h47 struct device *dev; member in struct:irq_ent
56 linux_irq_rid(struct device *dev, unsigned int irq) argument
59 if (irq >= dev->irq_start && irq < dev->irq_end)
60 return (irq - dev->irq_start + 1);
68 linux_irq_ent(struct device *dev, unsigned int irq) argument
72 list_for_each_entry(irqe, &dev->irqents, links)
85 struct device *dev; local
89 dev = linux_pci_find_irq_dev(irq);
90 if (dev
119 struct device *dev; local
135 struct device *dev; local
152 struct device *dev; local
169 struct device *dev; local
[all...]
/freebsd-12-stable/sys/dev/mlx5/mlx5_core/
H A Dtransobj.h31 int mlx5_alloc_transport_domain(struct mlx5_core_dev *dev, u32 *tdn);
32 void mlx5_dealloc_transport_domain(struct mlx5_core_dev *dev, u32 tdn);
33 int mlx5_core_create_rq(struct mlx5_core_dev *dev, u32 *in, int inlen,
35 int mlx5_core_modify_rq(struct mlx5_core_dev *dev, u32 *in, int inlen);
36 void mlx5_core_destroy_rq(struct mlx5_core_dev *dev, u32 rqn);
37 int mlx5_core_query_rq(struct mlx5_core_dev *dev, u32 rqn, u32 *out);
38 int mlx5_core_create_sq(struct mlx5_core_dev *dev, u32 *in, int inlen,
40 int mlx5_core_modify_sq(struct mlx5_core_dev *dev, u32 *in, int inlen);
41 void mlx5_core_destroy_sq(struct mlx5_core_dev *dev, u32 sqn);
42 int mlx5_core_query_sq(struct mlx5_core_dev *dev, u3
[all...]
/freebsd-12-stable/sys/dev/agp/
H A Dagp_intel.c42 #include <dev/agp/agppriv.h>
43 #include <dev/agp/agpreg.h>
44 #include <dev/pci/pcivar.h>
45 #include <dev/pci/pcireg.h>
62 agp_intel_match(device_t dev) argument
64 if (pci_get_class(dev) != PCIC_BRIDGE
65 || pci_get_subclass(dev) != PCIS_BRIDGE_HOST)
68 if (agp_find_caps(dev) == 0)
71 switch (pci_get_devid(dev)) {
116 agp_intel_probe(device_t dev) argument
132 agp_intel_commit_gatt(device_t dev) argument
218 agp_intel_attach(device_t dev) argument
261 agp_intel_detach(device_t dev) argument
311 agp_intel_resume(device_t dev) argument
322 agp_intel_get_aperture(device_t dev) argument
342 agp_intel_set_aperture(device_t dev, u_int32_t aperture) argument
368 agp_intel_bind_page(device_t dev, vm_offset_t offset, vm_offset_t physical) argument
382 agp_intel_unbind_page(device_t dev, vm_offset_t offset) argument
396 agp_intel_flush_tlb(device_t dev) argument
[all...]
H A Dagppriv.h39 #include <dev/agp/agpvar.h>
88 u_int8_t agp_find_caps(device_t dev);
89 struct agp_gatt *agp_alloc_gatt(device_t dev);
90 void agp_set_aperture_resource(device_t dev, int rid);
91 void agp_free_cdev(device_t dev);
93 void agp_free_res(device_t dev);
94 int agp_generic_attach(device_t dev);
95 int agp_generic_detach(device_t dev);
96 u_int32_t agp_generic_get_aperture(device_t dev);
97 int agp_generic_set_aperture(device_t dev,
[all...]
/freebsd-12-stable/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-12-stable/sys/dev/cmx/
H A Dcmx_pccard.c48 #include <dev/cmx/cmxvar.h>
50 #include <dev/pccard/pccardvar.h>
51 #include <dev/pccard/pccard_cis.h>
64 cmx_pccard_probe(device_t dev) argument
67 if ((pp = pccard_product_lookup(dev, cmx_pccard_products,
70 device_set_desc(dev, pp->pp_name);
81 cmx_pccard_attach(device_t dev) argument
84 cmx_init_softc(dev);
86 if ((rv = cmx_alloc_resources(dev)) != 0) {
87 device_printf(dev, "cmx_alloc_resource
[all...]
/freebsd-12-stable/sys/dev/pci/
H A Dhostb_pci.c37 #include <dev/pci/pcivar.h>
38 #include <dev/pci/pcireg.h>
48 pci_hostb_probe(device_t dev) argument
52 id = pci_get_devid(dev);
64 if (pci_get_class(dev) == PCIC_BRIDGE &&
65 pci_get_subclass(dev) == PCIS_BRIDGE_HOST) {
66 device_set_desc(dev, "Host to PCI bridge");
67 device_quiet(dev);
74 pci_hostb_attach(device_t dev) argument
77 bus_generic_probe(dev);
92 pci_hostb_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) argument
99 pci_hostb_write_ivar(device_t dev, device_t child, int which, uintptr_t value) argument
106 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
114 pci_hostb_release_resource(device_t dev, device_t child, int type, int rid, struct resource *r) argument
124 pci_hostb_read_config(device_t dev, device_t child, int reg, int width) argument
131 pci_hostb_write_config(device_t dev, device_t child, int reg, uint32_t val, int width) argument
139 pci_hostb_enable_busmaster(device_t dev, device_t child) argument
148 pci_hostb_disable_busmaster(device_t dev, device_t child) argument
157 pci_hostb_enable_io(device_t dev, device_t child, int space) argument
166 pci_hostb_disable_io(device_t dev, device_t child, int space) argument
175 pci_hostb_set_powerstate(device_t dev, device_t child, int state) argument
184 pci_hostb_get_powerstate(device_t dev, device_t child) argument
193 pci_hostb_assign_interrupt(device_t dev, device_t child) argument
202 pci_hostb_find_cap(device_t dev, device_t child, int capability, int *capreg) argument
210 pci_hostb_find_next_cap(device_t dev, device_t child, int capability, int start, int *capreg) argument
218 pci_hostb_find_extcap(device_t dev, device_t child, int capability, int *capreg) argument
226 pci_hostb_find_next_extcap(device_t dev, device_t child, int capability, int start, int *capreg) argument
234 pci_hostb_find_htcap(device_t dev, device_t child, int capability, int *capreg) argument
242 pci_hostb_find_next_htcap(device_t dev, device_t child, int capability, int start, int *capreg) argument
[all...]
H A Dpci_dw_mv.c51 #include <dev/extres/clk/clk.h>
52 #include <dev/extres/phy/phy.h>
53 #include <dev/ofw/ofw_bus.h>
54 #include <dev/ofw/ofw_bus_subr.h>
55 #include <dev/ofw/ofw_pci.h>
56 #include <dev/ofw/ofwpci.h>
57 #include <dev/pci/pcivar.h>
58 #include <dev/pci/pcireg.h>
59 #include <dev/pci/pcib_private.h>
60 #include <dev/pc
92 device_t dev; member in struct:pci_mv_softc
195 pci_mv_get_link(device_t dev, bool *status) argument
210 pci_mv_probe(device_t dev) argument
224 pci_mv_attach(device_t dev) argument
[all...]
/freebsd-12-stable/sys/dev/acpi_support/
H A Dacpi_sony.c35 #include <contrib/dev/acpica/include/acpi.h>
39 #include <dev/acpica/acpivar.h>
87 static int acpi_sony_probe(device_t dev);
88 static int acpi_sony_attach(device_t dev);
89 static int acpi_sony_detach(device_t dev);
115 acpi_sony_probe(device_t dev) argument
119 if (ACPI_ID_PROBE(device_get_parent(dev), dev, sny_id)) {
120 device_set_desc(dev, "Sony notebook controller");
127 acpi_sony_attach(device_t dev) argument
156 acpi_sony_detach(device_t dev) argument
179 device_t dev = arg1; local
[all...]
/freebsd-12-stable/sys/dev/bhnd/bcma/
H A Dbcma_bhndb.c40 #include <dev/bhnd/bhnd_ids.h>
41 #include <dev/bhnd/bhndb/bhndbvar.h>
42 #include <dev/bhnd/bhndb/bhndb_hwdata.h>
54 bcma_bhndb_probe(device_t dev) argument
60 if ((error = bcma_probe(dev)) > 0)
64 cid = BHNDB_GET_CHIPID(device_get_parent(dev), dev);
69 bhnd_set_default_bus_desc(dev, cid);
75 bcma_bhndb_attach(device_t dev) argument
80 if ((error = bcma_attach(dev)))
95 bcma_bhndb_suspend_child(device_t dev, device_t child) argument
121 bcma_bhndb_resume_child(device_t dev, device_t child) argument
146 BHNDB_SUSPEND_RESOURCE(device_get_parent(dev), dev, local
[all...]
/freebsd-12-stable/sys/dev/altera/avgen/
H A Daltera_avgen_nexus.c55 #include <dev/altera/avgen/altera_avgen.h>
58 altera_avgen_nexus_probe(device_t dev) argument
61 device_set_desc(dev, "Generic Altera Avalon device attachment");
66 altera_avgen_nexus_attach(device_t dev) argument
73 sc = device_get_softc(dev);
74 sc->avg_dev = dev;
75 sc->avg_unit = device_get_unit(dev);
87 error = resource_int_value(device_get_name(dev), device_get_unit(dev),
90 device_printf(dev, "invali
121 altera_avgen_nexus_detach(device_t dev) argument
[all...]
/freebsd-12-stable/sys/dev/gpio/
H A Dgpiopower.c40 #include <dev/ofw/ofw_bus.h>
42 #include <dev/gpio/gpiobusvar.h>
49 static void gpiopower_assert(device_t dev, int howto);
52 gpiopower_probe(device_t dev) argument
55 if (ofw_bus_is_compatible(dev, "gpio-poweroff")) {
56 device_set_desc(dev, "GPIO poweroff control");
58 } else if (ofw_bus_is_compatible(dev, "gpio-restart")) {
59 device_set_desc(dev, "GPIO restart control");
67 gpiopower_attach(device_t dev) argument
72 sc = device_get_softc(dev);
95 gpiopower_assert(device_t dev, int howto) argument
[all...]
/freebsd-12-stable/sys/dev/mdio/
H A Dmdio.c34 #include <dev/mdio/mdio.h>
47 mdio_probe(device_t dev) argument
50 device_set_desc(dev, "MDIO");
56 mdio_attach(device_t dev) argument
59 bus_generic_probe(dev);
60 bus_enumerate_hinted_children(dev);
61 return (bus_generic_attach(dev));
65 mdio_detach(device_t dev) argument
68 bus_generic_detach(dev);
73 mdio_readreg(device_t dev, in argument
80 mdio_writereg(device_t dev, int phy, int reg, int val) argument
87 mdio_readextreg(device_t dev, int phy, int devad, int reg) argument
94 mdio_writeextreg(device_t dev, int phy, int devad, int reg, int val) argument
102 mdio_hinted_child(device_t dev, const char *name, int unit) argument
[all...]
/freebsd-12-stable/sys/dev/mmc/
H A Dmmcbrvar.h60 #include <dev/mmc/mmcreg.h>
108 mmcbr_get_retune_req(device_t dev) argument
112 if (__predict_false(BUS_READ_IVAR(device_get_parent(dev), dev,
122 mmcbr_update_ios(device_t dev) argument
125 return (MMCBR_UPDATE_IOS(device_get_parent(dev), dev));
129 mmcbr_tune(device_t dev, bool hs400) argument
132 return (MMCBR_TUNE(device_get_parent(dev), dev, hs40
136 mmcbr_retune(device_t dev, bool reset) argument
143 mmcbr_switch_vccq(device_t dev) argument
150 mmcbr_get_ro(device_t dev) argument
[all...]
/freebsd-12-stable/sys/mips/mediatek/
H A Dmtk_clock.c36 #include <dev/fdt/fdt_common.h>
37 #include <dev/ofw/openfirm.h>
38 #include <dev/ofw/ofw_bus.h>
39 #include <dev/ofw/ofw_bus_subr.h>
40 #include <dev/fdt/fdt_clock.h>
54 mtk_clock_probe(device_t dev) argument
57 if (!ofw_bus_status_okay(dev))
60 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
63 device_set_desc(dev, "MTK Clock Controller");
69 mtk_clock_attach(device_t dev) argument
86 mtk_clock_set(device_t dev, int index, int value) argument
105 mtk_clock_enable(device_t dev, int index) argument
112 mtk_clock_disable(device_t dev, int index) argument
119 mtk_clock_get_info(device_t dev, int index, struct fdt_clock_info *info) argument
[all...]
/freebsd-12-stable/sys/dev/etherswitch/arswitch/
H A Darswitch_reg.c49 #include <dev/iicbus/iic.h>
50 #include <dev/iicbus/iiconf.h>
51 #include <dev/iicbus/iicbus.h>
52 #include <dev/mii/mii.h>
53 #include <dev/mii/miivar.h>
54 #include <dev/mdio/mdio.h>
56 #include <dev/etherswitch/etherswitch.h>
58 #include <dev/etherswitch/arswitch/arswitchreg.h>
59 #include <dev/etherswitch/arswitch/arswitchvar.h>
60 #include <dev/etherswitc
67 arswitch_split_setpage(device_t dev, uint32_t addr, uint16_t *phy, uint16_t *reg) argument
90 arswitch_readreg16(device_t dev, int addr) argument
102 arswitch_writereg16(device_t dev, int addr, int data) argument
120 arswitch_writedbg(device_t dev, int phy, uint16_t dbg_addr, uint16_t dbg_data) argument
130 arswitch_writemmd(device_t dev, int phy, uint16_t dbg_addr, uint16_t dbg_data) argument
140 arswitch_reg_read32(device_t dev, int phy, int reg) argument
150 arswitch_reg_write32(device_t dev, int phy, int reg, uint32_t value) argument
176 arswitch_readreg(device_t dev, int addr) argument
185 arswitch_writereg(device_t dev, int addr, int value) argument
204 arswitch_readreg_lsb(device_t dev, int addr) argument
211 arswitch_readreg_msb(device_t dev, int addr) argument
218 arswitch_writereg_lsb(device_t dev, int addr, int data) argument
225 arswitch_writereg_msb(device_t dev, int addr, int data) argument
232 arswitch_modifyreg(device_t dev, int addr, int mask, int set) argument
249 arswitch_waitreg(device_t dev, int addr, int mask, int val, int timeout) argument
[all...]
/freebsd-12-stable/sys/dev/itwd/
H A Ditwd.c40 #include <dev/superio/superio.h>
56 device_t dev = priv; local
102 device_printf(dev, "setting timeout to %d\n", val);
104 superio_write(dev, 0x73, val);
105 if (superio_read(dev, 0x73) != val)
106 superio_write(dev, 0x73, val);
112 device_t dev = cookie; local
115 val = superio_read(dev, 0x71);
117 device_printf(dev, "got interrupt, wdt status = %d\n", val & 1);
118 superio_write(dev,
122 itwd_probe(device_t dev) argument
134 itwd_attach(device_t dev) argument
200 itwd_detach(device_t dev) argument
[all...]
/freebsd-12-stable/sys/mips/sibyte/
H A Data_zbbus.c45 #include <dev/ata/ata-all.h>
52 ata_zbbus_probe(device_t dev) argument
55 return (ata_probe(dev));
59 ata_zbbus_attach(device_t dev) argument
65 ch = device_get_softc(dev);
72 io = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
83 resource_int_value(device_get_name(dev), device_get_unit(dev),
86 device_printf(dev, "using a register shift of %d\n", regshift);
89 resource_int_value(device_get_name(dev), device_get_uni
116 ata_zbbus_detach(device_t dev) argument
134 ata_zbbus_suspend(device_t dev) argument
145 ata_zbbus_resume(device_t dev) argument
[all...]
/freebsd-12-stable/share/examples/ses/srcs/
H A Dsesd.c60 int fd, polltime, dev, nodaemon, clear, c; local
93 for (dev = optind; dev < a; dev++)
94 carray[dev] = (encioc_enc_status_t) -1;
99 for (dev = optind; dev < a; dev++) {
100 fd = open(v[dev], O_RDWR);
102 perror(v[dev]);
[all...]
/freebsd-12-stable/sys/dev/mc146818/
H A Dmc146818var.h48 u_int (*sc_mcread)(device_t dev, u_int reg);
49 void (*sc_mcwrite)(device_t dev, u_int reg, u_int val);
51 u_int (*sc_getcent)(device_t dev);
52 void (*sc_setcent)(device_t dev, u_int cent);
56 u_int mc146818_def_read(device_t dev, u_int reg);
57 void mc146818_def_write(device_t dev, u_int reg, u_int val);
64 int mc146818_getsecs(device_t dev, int *secp);
66 int mc146818_gettime(device_t dev, struct timespec *ts);
67 int mc146818_settime(device_t dev, struct timespec *ts);
/freebsd-12-stable/tests/sys/geom/class/mirror/
H A D9_test.sh15 dd if=/dev/zero of=$m1 bs=$ddbs count=1024 >/dev/null 2>&1
16 dd if=/dev/zero of=$m2 bs=$ddbs count=1024 >/dev/null 2>&1
17 dd if=/dev/zero of=$m3 bs=$ddbs count=1024 >/dev/null 2>&1
23 gmirror label $name /dev/$us0 /dev/$us1 || exit 1
30 dd if=/dev/random of=/dev/mirro
[all...]

Completed in 695 milliseconds

1234567891011>>