Searched refs:dev (Results 451 - 475 of 6298) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/sys/dev/cxgbe/
H A Dt4_iov.c29 __FBSDID("$FreeBSD: stable/11/sys/dev/cxgbe/t4_iov.c 355253 2019-11-30 21:11:17Z np $");
36 #include <dev/pci/pcivar.h>
41 #include <dev/pci/pci_iov.h>
116 static int t4iov_attach_child(device_t dev);
119 t4iov_probe(device_t dev) argument
124 if (pci_get_vendor(dev) != PCI_VENDOR_ID_CHELSIO)
127 d = pci_get_device(dev);
130 device_set_desc(dev, t4iov_pciids[i].desc);
131 device_quiet(dev);
139 t5iov_probe(device_t dev) argument
159 t6iov_probe(device_t dev) argument
179 t4iov_attach(device_t dev) argument
196 t4iov_attach_child(device_t dev) argument
234 t4iov_detach_child(device_t dev) argument
258 t4iov_detach(device_t dev) argument
274 t4iov_iov_init(device_t dev, uint16_t num_vfs, const struct nvlist *config) argument
282 t4iov_iov_uninit(device_t dev) argument
287 t4iov_add_vf(device_t dev, uint16_t vfnum, const struct nvlist *config) argument
[all...]
/freebsd-11-stable/sys/arm/allwinner/
H A Daxp81x.c47 #include <dev/iicbus/iicbus.h>
48 #include <dev/iicbus/iiconf.h>
50 #include <dev/gpio/gpiobusvar.h>
52 #include <dev/ofw/ofw_bus.h>
53 #include <dev/ofw/ofw_bus_subr.h>
112 axp81x_read(device_t dev, uint8_t reg, uint8_t *data, uint8_t size) argument
117 sc = device_get_softc(dev);
129 return (iicbus_transfer(dev, msg, 2));
133 axp81x_write(device_t dev, uint8_t reg, uint8_t val) argument
138 sc = device_get_softc(dev);
156 device_t dev; local
173 device_t dev; local
196 axp81x_gpio_get_bus(device_t dev) argument
206 axp81x_gpio_pin_max(device_t dev, int *maxpin) argument
214 axp81x_gpio_pin_getname(device_t dev, uint32_t pin, char *name) argument
225 axp81x_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) argument
236 axp81x_gpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags) argument
265 axp81x_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags) argument
292 axp81x_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument
330 axp81x_gpio_pin_set(device_t dev, uint32_t pin, unsigned int val) argument
365 axp81x_gpio_pin_toggle(device_t dev, uint32_t pin) argument
402 axp81x_gpio_map_gpios(device_t bus, phandle_t dev, phandle_t gparent, int gcells, pcell_t *gpios, uint32_t *pin, uint32_t *flags) argument
415 axp81x_get_node(device_t dev, device_t bus) argument
421 axp81x_probe(device_t dev) argument
435 axp81x_attach(device_t dev) argument
[all...]
H A Daw_nmi.c42 #include <dev/fdt/fdt_common.h>
43 #include <dev/ofw/openfirm.h>
44 #include <dev/ofw/ofw_bus.h>
45 #include <dev/ofw/ofw_bus_subr.h>
79 device_t dev; member in struct:aw_nmi_softc
104 device_printf(sc->dev, "Spurious interrupt\n");
110 device_printf(sc->dev, "Stray interrupt, NMI disabled\n");
117 aw_nmi_enable_intr(device_t dev, struct intr_irqsrc *isrc) argument
121 sc = device_get_softc(dev);
127 aw_nmi_disable_intr(device_t dev, struc argument
137 aw_nmi_map_fdt(device_t dev, u_int ncells, pcell_t *cells, u_int *irqp, enum intr_polarity *polp, enum intr_trigger *trigp) argument
189 aw_nmi_map_intr(device_t dev, struct intr_map_data *data, struct intr_irqsrc **isrcp) argument
211 aw_nmi_setup_intr(device_t dev, struct intr_irqsrc *isrc, struct resource *res, struct intr_map_data *data) argument
265 aw_nmi_teardown_intr(device_t dev, struct intr_irqsrc *isrc, struct resource *res, struct intr_map_data *data) argument
283 aw_nmi_pre_ithread(device_t dev, struct intr_irqsrc *isrc) argument
293 aw_nmi_post_ithread(device_t dev, struct intr_irqsrc *isrc) argument
301 aw_nmi_post_filter(device_t dev, struct intr_irqsrc *isrc) argument
312 aw_nmi_probe(device_t dev) argument
325 aw_nmi_attach(device_t dev) argument
[all...]
/freebsd-11-stable/stand/pc98/libpc98/
H A Dbiosdisk.c98 #define BD(dev) (bdinfo[(dev)->dd.d_unit])
100 static int bd_read(struct disk_devdesc *dev, daddr_t dblk, int blks,
102 static int bd_write(struct disk_devdesc *dev, daddr_t dblk, int blks,
247 struct disk_devdesc dev; local
269 dev.dd.d_dev = &biosdisk;
270 dev.dd.d_unit = i;
271 dev.d_slice = -1;
272 dev.d_partition = -1;
273 if (disk_open(&dev,
323 struct disk_devdesc *dev; local
369 struct disk_devdesc *dev; local
383 struct disk_devdesc *dev; local
410 struct disk_devdesc *dev; local
424 struct disk_devdesc *dev = (struct disk_devdesc *)devdata; local
529 bd_chs_io(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest, int write) argument
567 bd_io(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest, int write) argument
660 bd_read(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest) argument
668 bd_write(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest) argument
763 struct disk_devdesc *dev; local
[all...]
/freebsd-11-stable/sys/dev/cs/
H A Dif_cs_isa.c51 #include <dev/cs/if_csvar.h>
52 #include <dev/cs/if_csreg.h>
67 cs_isa_probe(device_t dev) argument
72 error = ISA_PNP_PROBE(device_get_parent(dev), dev, cs_ids);
80 error = cs_cs89x0_probe(dev);
84 error = cs_alloc_irq(dev, 0);
86 cs_release_resources(dev);
91 cs_isa_attach(device_t dev) argument
93 struct cs_softc *sc = device_get_softc(dev);
[all...]
/freebsd-11-stable/sys/dev/drm2/i915/
H A Dintel_modes.c29 #include <dev/drm2/drmP.h>
30 #include <dev/drm2/drm_edid.h>
31 #include <dev/drm2/i915/intel_drv.h>
32 #include <dev/drm2/i915/i915_drv.h>
33 #include <dev/iicbus/iiconf.h>
85 struct drm_device *dev = connector->dev; local
86 struct drm_i915_private *dev_priv = dev->dev_private;
91 prop = drm_property_create_enum(dev, 0,
111 struct drm_device *dev local
[all...]
/freebsd-11-stable/sys/dev/pms/RefTisa/discovery/dm/
H A Ddmmisc.c25 #include <dev/pms/config.h>
27 #include <dev/pms/freebsd/driver/common/osenv.h>
28 #include <dev/pms/freebsd/driver/common/ostypes.h>
29 #include <dev/pms/freebsd/driver/common/osdebug.h>
31 #include <dev/pms/RefTisa/sallsdk/api/sa.h>
32 #include <dev/pms/RefTisa/sallsdk/api/saapi.h>
33 #include <dev/pms/RefTisa/sallsdk/api/saosapi.h>
36 #include <dev/pms/RefTisa/discovery/api/dm.h>
37 #include <dev/pms/RefTisa/discovery/api/dmapi.h>
38 #include <dev/pm
[all...]
/freebsd-11-stable/sys/mips/rt305x/
H A Drt305x_ic.c53 rt305x_ic_probe(device_t dev) argument
55 device_set_desc(dev, "RT305X Interrupt Controller driver");
60 rt305x_ic_attach(device_t dev) argument
62 struct rt305x_ic_softc *sc = device_get_softc(dev);
65 KASSERT((device_get_unit(dev) == 0),
75 sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
79 device_printf(dev, "couldn't map memory\n");
81 rt305x_ic_detach(dev);
84 return (bus_generic_attach(dev));
88 rt305x_ic_detach(device_t dev) argument
[all...]
/freebsd-11-stable/sys/arm/xscale/i8134x/
H A Duart_bus_i81342.c38 #include <dev/pci/pcivar.h>
40 #include <dev/uart/uart.h>
41 #include <dev/uart/uart_bus.h>
42 #include <dev/uart/uart_cpu.h>
44 #include <dev/ic/ns16550.h>
48 static int uart_i81342_probe(device_t dev);
66 uart_i81342_probe(device_t dev) argument
71 sc = device_get_softc(dev);
73 if (device_get_unit(dev) == 0) {
77 sc->sc_rres = bus_alloc_resource_anywhere(dev, SYS_RES_IOPOR
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_core/
H A Dmlx5_pagealloc.c25 * $FreeBSD: stable/11/sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c 341926 2018-12-12 12:06:25Z hselasky $
31 #include <dev/mlx5/driver.h>
37 struct mlx5_core_dev *dev; member in struct:mlx5_pages_req
55 owned = MLX5_DMA_OWNED(fwp->dev);
58 MLX5_DMA_LOCK(fwp->dev);
67 MLX5_DMA_DONE(fwp->dev);
70 MLX5_DMA_UNLOCK(fwp->dev);
79 bus_dmamap_sync(fwp[num].dev->cmd.dma_tag, fwp[num].dma_map, BUS_DMASYNC_PREWRITE);
88 bus_dmamap_sync(fwp[num].dev->cmd.dma_tag, fwp[num].dma_map, BUS_DMASYNC_POSTREAD);
89 bus_dmamap_sync(fwp[num].dev
94 mlx5_fwp_alloc(struct mlx5_core_dev *dev, gfp_t flags, unsigned num) argument
163 struct mlx5_core_dev *dev; local
206 mlx5_insert_fw_page_locked(struct mlx5_core_dev *dev, struct mlx5_fw_page *nfp) argument
230 mlx5_remove_fw_page_locked(struct mlx5_core_dev *dev, bus_addr_t addr) argument
253 alloc_4k(struct mlx5_core_dev *dev, u64 *addr, u16 func_id) argument
281 free_4k(struct mlx5_core_dev *dev, u64 addr) argument
296 mlx5_cmd_query_pages(struct mlx5_core_dev *dev, u16 *func_id, s32 *npages, int boot) argument
318 give_pages(struct mlx5_core_dev *dev, u16 func_id, int npages, int notify_fail) argument
384 reclaim_pages_cmd(struct mlx5_core_dev *dev, u32 *in, int in_size, u32 *out, int out_size) argument
415 reclaim_pages(struct mlx5_core_dev *dev, u32 func_id, int npages, int *nclaimed) argument
462 struct mlx5_core_dev *dev = req->dev; local
477 mlx5_core_req_pages_handler(struct mlx5_core_dev *dev, u16 func_id, s32 npages) argument
496 mlx5_satisfy_startup_pages(struct mlx5_core_dev *dev, int boot) argument
516 mlx5_wait_for_reclaim_vfs_pages(struct mlx5_core_dev *dev) argument
554 mlx5_reclaim_startup_pages(struct mlx5_core_dev *dev) argument
587 mlx5_pagealloc_init(struct mlx5_core_dev *dev) argument
593 mlx5_pagealloc_cleanup(struct mlx5_core_dev *dev) argument
598 mlx5_pagealloc_start(struct mlx5_core_dev *dev) argument
607 mlx5_pagealloc_stop(struct mlx5_core_dev *dev) argument
[all...]
H A Dmlx5_core.h25 * $FreeBSD: stable/11/sys/dev/mlx5/mlx5_core/mlx5_core.h 369102 2021-01-22 12:50:12Z hselasky $
35 #include <dev/mlxfw/mlxfw.h>
45 #define mlx5_core_dbg(dev, format, ...) \
47 (dev)->priv.name, __func__, __LINE__, curthread->td_proc->p_pid, \
50 #define mlx5_core_dbg_mask(dev, mask, format, ...) \
53 mlx5_core_dbg(dev, format, ##__VA_ARGS__); \
57 device_printf((_dev)->pdev->dev.bsddev, "ERR: ""%s:%d:(pid %d): " format, \
62 device_printf((_dev)->pdev->dev.bsddev, "WARN: ""%s:%d:(pid %d): " format, \
67 device_printf((_dev)->pdev->dev.bsddev, "INFO: ""%s:%d:(pid %d): " format, \
111 int mlx5_query_hca_caps(struct mlx5_core_dev *dev);
[all...]
/freebsd-11-stable/sys/dev/agp/
H A Dagp_amd64.c40 #include <dev/agp/agppriv.h>
41 #include <dev/agp/agpreg.h>
42 #include <dev/pci/pcivar.h>
43 #include <dev/pci/pcireg.h>
84 agp_amd64_match(device_t dev) argument
86 if (pci_get_class(dev) != PCIC_BRIDGE ||
87 pci_get_subclass(dev) != PCIS_BRIDGE_HOST ||
88 agp_find_caps(dev) == 0)
91 switch (pci_get_devid(dev)) {
149 agp_amd64_probe(device_t dev) argument
164 agp_amd64_attach(device_t dev) argument
248 agp_amd64_detach(device_t dev) argument
280 agp_amd64_get_aperture(device_t dev) argument
295 agp_amd64_set_aperture(device_t dev, uint32_t aperture) argument
331 agp_amd64_bind_page(device_t dev, vm_offset_t offset, vm_offset_t physical) argument
345 agp_amd64_unbind_page(device_t dev, vm_offset_t offset) argument
358 agp_amd64_flush_tlb(device_t dev) argument
370 agp_amd64_apbase_fixup(device_t dev) argument
384 agp_amd64_uli_init(device_t dev) argument
396 agp_amd64_uli_set_aperture(device_t dev, uint32_t aperture) argument
417 agp_amd64_nvidia_init(device_t dev) argument
430 agp_amd64_nvidia_set_aperture(device_t dev, uint32_t aperture) argument
457 agp_amd64_via_init(device_t dev) argument
468 agp_amd64_via_set_aperture(device_t dev, uint32_t aperture) argument
[all...]
H A Dagp_amd.c40 #include <dev/agp/agppriv.h>
41 #include <dev/agp/agpreg.h>
42 #include <dev/pci/pcivar.h>
43 #include <dev/pci/pcireg.h>
79 agp_amd_alloc_gatt(device_t dev) argument
81 u_int32_t apsize = AGP_GET_APERTURE(dev);
87 device_printf(dev,
107 device_printf(dev, "allocation failed\n");
119 device_printf(dev,
129 device_printf(dev, "gat
177 agp_amd_match(device_t dev) argument
199 agp_amd_probe(device_t dev) argument
215 agp_amd_attach(device_t dev) argument
274 agp_amd_detach(device_t dev) argument
303 agp_amd_get_aperture(device_t dev) argument
315 agp_amd_set_aperture(device_t dev, u_int32_t aperture) argument
342 agp_amd_bind_page(device_t dev, vm_offset_t offset, vm_offset_t physical) argument
354 agp_amd_unbind_page(device_t dev, vm_offset_t offset) argument
366 agp_amd_flush_tlb(device_t dev) argument
[all...]
/freebsd-11-stable/usr.sbin/ppp/
H A Dexec.c75 struct device dev; /* What struct physical knows about */ member in struct:execdevice
90 struct execdevice *dev = device2exec(p->handler); local
92 if (dev->fd_out != -1)
93 close(dev->fd_out);
94 free(dev);
101 struct execdevice *dev; local
112 dev = device2exec(d);
113 if (dev->fd_out >= 0) {
114 *auxfd = dev->fd_out;
122 struct execdevice *dev local
148 struct execdevice *dev = device2exec(p->handler); local
180 struct execdevice *dev = (struct execdevice *)iov[(*niov)++].iov_base; local
209 struct execdevice *dev = device2exec(p->handler); local
235 struct execdevice *dev = device2exec(p->handler); local
245 struct execdevice *dev; local
[all...]
/freebsd-11-stable/sys/dev/mlx/
H A Dmlx_pci.c48 #include <dev/pci/pcireg.h>
49 #include <dev/pci/pcivar.h>
51 #include <dev/mlx/mlxio.h>
52 #include <dev/mlx/mlxvar.h>
53 #include <dev/mlx/mlxreg.h>
55 static int mlx_pci_probe(device_t dev);
56 static int mlx_pci_attach(device_t dev);
95 mlx_pci_match(device_t dev) argument
100 if ((m->vendor == pci_get_vendor(dev)) &&
101 (m->device == pci_get_device(dev))
110 mlx_pci_probe(device_t dev) argument
125 mlx_pci_attach(device_t dev) argument
[all...]
/freebsd-11-stable/sys/dev/si/
H A Dsi_eisa.c34 #include <dev/si/sireg.h>
35 #include <dev/si/sivar.h>
37 #include <dev/eisa/eisaconf.h>
40 si_eisa_probe(device_t dev) argument
46 if (eisa_get_id(dev) != SIEISADEVID)
49 device_set_desc(dev, "Specialix SI/XIO EISA host card");
51 iobase = (eisa_get_slot(dev) * EISA_SLOT_SIZE) + SIEISABASE;
52 eisa_add_iospace(dev, iobase, SIEISAIOSIZE, RESVADDR_NONE);
55 eisa_add_mspace(dev, maddr, SIEISA_MEMSIZE, RESVADDR_NONE);
58 eisa_add_intr(dev, ir
64 si_eisa_attach(device_t dev) argument
[all...]
/freebsd-11-stable/sys/dev/spibus/
H A Dofw_spibus.c32 __FBSDID("$FreeBSD: stable/11/sys/dev/spibus/ofw_spibus.c 332942 2018-04-24 17:00:08Z ian $");
42 #include <dev/fdt/fdt_common.h>
43 #include <dev/spibus/spi.h>
44 #include <dev/spibus/spibusvar.h>
45 #include <dev/ofw/ofw_bus.h>
46 #include <dev/ofw/ofw_bus_subr.h>
47 #include <dev/ofw/openfirm.h>
59 static device_t ofw_spibus_add_child(device_t dev, u_int order,
62 device_t dev);
65 ofw_spibus_probe(device_t dev) argument
76 ofw_spibus_attach(device_t dev) argument
140 ofw_spibus_add_child(device_t dev, u_int order, const char *name, int unit) argument
171 ofw_spibus_get_devinfo(device_t bus, device_t dev) argument
[all...]
/freebsd-11-stable/sys/arm/allwinner/clk/
H A Daw_gate.c44 #include <dev/ofw/ofw_bus.h>
45 #include <dev/ofw/ofw_bus_subr.h>
46 #include <dev/ofw/ofw_subr.h>
47 #include <dev/fdt/fdt_common.h>
49 #include <dev/extres/clk/clk_gate.h>
107 aw_gate_create(device_t dev, bus_addr_t paddr, struct clkdom *clkdom, argument
128 aw_gate_add(device_t dev, struct clkdom *clkdom, phandle_t node, argument
138 nout = clk_parse_ofw_out_names(dev, node, &names, &indices);
140 device_printf(dev, "no clock outputs found\n");
144 device_printf(dev, "n
165 aw_gate_probe(device_t dev) argument
181 aw_gate_attach(device_t dev) argument
[all...]
/freebsd-11-stable/sys/dev/acpica/
H A Dacpi_container.c28 __FBSDID("$FreeBSD: stable/11/sys/dev/acpica/acpi_container.c 318392 2017-05-17 01:48:44Z sephe $");
35 #include <contrib/dev/acpica/include/acpi.h>
36 #include <dev/acpica/acpivar.h>
47 static int acpi_syscont_release_msi(device_t bus, device_t dev,
49 static int acpi_syscont_alloc_msix(device_t bus, device_t dev,
51 static int acpi_syscont_release_msix(device_t bus, device_t dev,
53 static int acpi_syscont_map_msi(device_t bus, device_t dev,
98 acpi_syscont_probe(device_t dev) argument
103 ACPI_ID_PROBE(device_get_parent(dev), dev, syscont_id
111 acpi_syscont_attach(device_t dev) argument
119 acpi_syscont_detach(device_t dev) argument
126 acpi_syscont_alloc_msi(device_t bus, device_t dev, int count, int maxcount, int *irqs) argument
136 acpi_syscont_release_msi(device_t bus, device_t dev, int count, int *irqs) argument
144 acpi_syscont_alloc_msix(device_t bus, device_t dev, int *irq) argument
152 acpi_syscont_release_msix(device_t bus, device_t dev, int irq) argument
160 acpi_syscont_map_msi(device_t bus, device_t dev, int irq, uint64_t *addr, uint32_t *data) argument
[all...]
H A Dacpi_lid.c31 __FBSDID("$FreeBSD: stable/11/sys/dev/acpica/acpi_lid.c 358884 2020-03-11 08:34:29Z hselasky $");
41 #include <contrib/dev/acpica/include/acpi.h>
42 #include <contrib/dev/acpica/include/accommon.h>
44 #include <dev/acpica/acpivar.h>
47 #include <dev/evdev/input.h>
48 #include <dev/evdev/evdev.h>
68 static int acpi_lid_probe(device_t dev);
69 static int acpi_lid_attach(device_t dev);
70 static int acpi_lid_suspend(device_t dev);
71 static int acpi_lid_resume(device_t dev);
124 acpi_lid_probe(device_t dev) argument
137 acpi_lid_attach(device_t dev) argument
190 acpi_lid_suspend(device_t dev) argument
196 acpi_lid_resume(device_t dev) argument
[all...]
/freebsd-11-stable/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_kmod.c44 #include <dev/fdt/fdt_common.h>
45 #include <dev/ofw/openfirm.h>
46 #include <dev/ofw/ofw_bus.h>
47 #include <dev/ofw/ofw_bus_subr.h>
133 bcm_vchiq_probe(device_t dev) argument
136 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
139 device_set_desc(dev, "BCM2835 VCHIQ");
144 bcm_vchiq_attach(device_t dev) argument
146 struct bcm_vchiq_softc *sc = device_get_softc(dev);
154 sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMOR
201 bcm_vchiq_detach(device_t dev) argument
[all...]
/freebsd-11-stable/sys/dev/imcsmb/
H A Dimcsmb_pci.c29 * $FreeBSD: stable/11/sys/dev/imcsmb/imcsmb_pci.c 355366 2019-12-03 22:53:50Z rpokala $
46 #include <dev/pci/pcivar.h>
47 #include <dev/pci/pcireg.h>
49 #include <dev/smbus/smbconf.h>
150 static int imcsmb_pci_attach(device_t dev);
151 static int imcsmb_pci_detach(device_t dev);
152 static int imcsmb_pci_probe(device_t dev);
161 * @param[in,out] dev
165 imcsmb_pci_attach(device_t dev) argument
173 sc = device_get_softc(dev);
212 imcsmb_pci_detach(device_t dev) argument
235 imcsmb_pci_probe(device_t dev) argument
273 imcsmb_pci_release_bus(device_t dev) argument
298 imcsmb_pci_request_bus(device_t dev) argument
[all...]
/freebsd-11-stable/sys/mips/rmi/
H A Dxlr_i2c.c48 #include <dev/iicbus/iiconf.h>
49 #include <dev/iicbus/iicbus.h>
77 #define XLR_I2C_CFG_ADDR 0xF8 /* 8-Bit dev Addr + POR Values */
78 #define XLR_I2C_CFG_NOADDR 0xFA /* 8-Bit reg Addr + POR Values : No dev addr */
97 static int xlr_i2c_start(device_t dev, u_char slave, int timeout);
98 static int xlr_i2c_stop(device_t dev);
99 static int xlr_i2c_read(device_t dev, char *buf, int len, int *read, int last, int delay);
100 static int xlr_i2c_write(device_t dev, const char *buf, int len, int *sent, int timeout);
101 static int xlr_i2c_callback(device_t dev, int index, caddr_t data);
102 static int xlr_i2c_repeated_start(device_t dev, u_cha
106 device_t dev; /* Self */ member in struct:xlr_i2c_softc
117 set_i2c_base(device_t dev) argument
129 xlr_i2c_dev_write(device_t dev, int reg, int value) argument
140 xlr_i2c_dev_read(device_t dev, int reg) argument
152 xlr_i2c_probe(device_t dev) argument
165 xlr_i2c_attach(device_t dev) argument
218 xlr_i2c_detach(device_t dev) argument
226 xlr_i2c_start(device_t dev, u_char slave, int timeout) argument
240 xlr_i2c_stop(device_t dev) argument
252 xlr_i2c_read(device_t dev, char *buf, int len, int *read, int last, int delay) argument
295 xlr_i2c_write(device_t dev, const char *buf, int len, int *sent, int timeout ) argument
354 xlr_i2c_callback(device_t dev, int index, caddr_t data) argument
360 xlr_i2c_repeated_start(device_t dev, u_char slave, int timeout) argument
[all...]
/freebsd-11-stable/sys/dev/buslogic/
H A Dbt_isa.c47 #include <dev/buslogic/btreg.h>
55 bt_isa_alloc_resources(device_t dev, u_long portstart, u_long portend) argument
63 port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
68 if (isa_get_irq(dev) != -1) {
70 irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE);
73 bus_release_resource(dev, SYS_RES_IOPORT,
80 if (isa_get_drq(dev) != -1) {
82 drq = bus_alloc_resource_any(dev, SYS_RES_DRQ, &rid, RF_ACTIVE);
85 bus_release_resource(dev, SYS_RES_IOPORT,
88 bus_release_resource(dev, SYS_RES_IR
101 bt_isa_release_resources(device_t dev) argument
121 bt_isa_probe(device_t dev) argument
189 bt_isa_attach(device_t dev) argument
[all...]
/freebsd-11-stable/sys/arm/amlogic/aml8726/
H A Daml8726_i2c.c50 #include <dev/fdt/fdt_common.h>
51 #include <dev/ofw/ofw_bus.h>
52 #include <dev/ofw/ofw_bus_subr.h>
54 #include <dev/iicbus/iiconf.h>
55 #include <dev/iicbus/iicbus.h>
61 device_t dev; member in struct:aml8726_iic_softc
75 mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \
90 aml8726_iic_probe(device_t dev) argument
93 if (!ofw_bus_status_okay(dev))
96 if (!ofw_bus_is_compatible(dev, "amlogi
105 aml8726_iic_attach(device_t dev) argument
144 aml8726_iic_detach(device_t dev) argument
171 aml8726_iic_child_detached(device_t dev, device_t child) argument
180 aml8726_iic_callback(device_t dev, int index, caddr_t data) argument
187 aml8726_iic_reset(device_t dev, u_char speed, u_char addr, u_char *oldaddr) argument
206 aml8726_iic_getscl(device_t dev) argument
214 aml8726_iic_getsda(device_t dev) argument
222 aml8726_iic_setscl(device_t dev, int val) argument
236 aml8726_iic_setsda(device_t dev, int val) argument
[all...]

Completed in 148 milliseconds

<<11121314151617181920>>