Searched refs:bus (Results 101 - 125 of 2015) sorted by relevance

1234567891011>>

/freebsd-10.2-release/sys/dev/acpica/
H A Dacpi_pcibvar.h38 int acpi_pcib_attach(device_t bus, ACPI_BUFFER *prt, int busno);
/freebsd-10.2-release/sys/dev/fdc/
H A Dfdc_acpi.c33 #include <sys/bus.h>
45 static int fdc_acpi_probe_children(device_t bus, device_t dev,
80 device_t bus; local
83 bus = device_get_parent(dev);
84 if (ACPI_ID_PROBE(bus, dev, fdc_ids) == NULL)
87 if (ACPI_SUCCESS(ACPI_EVALUATE_OBJECT(bus, dev, "_FDE", NULL, NULL)))
100 device_t bus; local
128 bus = device_get_parent(dev);
129 if (ACPI_FAILURE(ACPI_EVALUATE_OBJECT(bus, dev, "_FDE", NULL, &buf))) {
136 error = fdc_acpi_probe_children(bus, de
148 fdc_acpi_probe_children(device_t bus, device_t dev, void *fde) argument
[all...]
/freebsd-10.2-release/sys/powerpc/ps3/
H A Dps3-hvcall.h98 int lv1_open_device(uint64_t bus, uint64_t dev, uint64_t zero);
99 int lv1_close_device(uint64_t bus, uint64_t dev);
100 int lv1_map_device_mmio_region(uint64_t bus, uint64_t dev, uint64_t bus_addr, uint64_t size, uint64_t page_size, uint64_t *lpar_addr);
101 int lv1_unmap_device_mmio_region(uint64_t bus, uint64_t dev, uint64_t lpar_addr);
102 int lv1_allocate_device_dma_region(uint64_t bus, uint64_t dev, uint64_t io_size, uint64_t io_pagesize, uint64_t flag, uint64_t *dma_region);
103 int lv1_free_device_dma_region(uint64_t bus, uint64_t dev, uint64_t dma_region);
104 int lv1_map_device_dma_region(uint64_t bus, uint64_t dev, uint64_t lpar_addr, uint64_t dma_region, uint64_t size, uint64_t flags);
105 int lv1_unmap_device_dma_region(uint64_t bus, uint64_t dev, uint64_t dma_region, uint64_t size);
106 int lv1_read_pci_config(uint64_t ps3bus, uint64_t bus, uint64_t dev, uint64_t func, uint64_t offset, uint64_t size, uint64_t *result);
107 int lv1_write_pci_config(uint64_t ps3bus, uint64_t bus, uint64_
[all...]
/freebsd-10.2-release/sys/mips/sibyte/
H A Dsb_zbbus.c34 #include <sys/bus.h>
232 zbbus_hinted_child(device_t bus, const char *dname, int dunit) argument
241 child = BUS_ADD_CHILD(bus, 0, dname, dunit);
247 device_printf(bus, "Adding hinted child %s%d\n", dname, dunit);
255 device_printf(bus, "Assigning memory resource "
261 device_printf(bus, "Unable to set memory resource "
269 device_printf(bus, "Assigning irq resource %d to "
274 device_printf(bus, "Unable to set irq resource %d"
282 zbbus_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
296 if (device_get_parent(child) == bus) {
405 zbbus_add_child(device_t bus, u_int order, const char *name, int unit) argument
[all...]
/freebsd-10.2-release/sys/i386/pci/
H A Dpci_pir.c35 #include <sys/bus.h>
67 int bus; member in struct:pci_link_lookup
74 int bus; member in struct:pci_dev_lookup
83 static int pci_pir_biosroute(int bus, int device, int func, int pin,
95 static uint8_t pci_pir_search_irq(int bus, int device, int pin);
198 if (entry->pe_bus == lookup->bus &&
267 * Look to see if any of the function on the PCI device at bus/device have
271 pci_pir_search_irq(int bus, int device, int pin) argument
277 value = pci_cfgregread(bus, device, 0, PCIR_HDRTYPE, 1);
287 value = pci_cfgregread(bus, devic
478 pci_pir_biosroute(int bus, int device, int func, int pin, int irq) argument
497 pci_pir_route_interrupt(int bus, int device, int func, int pin) argument
649 pci_pir_probe(int bus, int require_parse) argument
[all...]
/freebsd-10.2-release/sys/arm/at91/
H A Dat91_pinctrl.c30 #include <sys/bus.h>
37 #include <machine/bus.h>
50 uint64_t bus; member in struct:pinctrl_range
77 device_set_desc(dev, "pincontrol bus");
190 sc->ranges[i].bus = 0;
192 sc->ranges[i].bus <<= 32;
193 sc->ranges[i].bus |= base_ranges[j++];
257 pinctrl_get_devinfo(device_t bus __unused, device_t child)
266 pinctrl_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
274 sc = device_get_softc(bus);
336 pinctrl_probe_nomatch(device_t bus, device_t child) argument
359 pinctrl_print_child(device_t bus, device_t child) argument
374 pinctrl_walk_tree(device_t bus, phandle_t node) argument
442 pinctrl_new_pass(device_t bus) argument
[all...]
/freebsd-10.2-release/contrib/wpa/wpa_supplicant/examples/p2p/
H A Dp2p_disconnect.py32 global bus
72 self.bus = dbus.SystemBus()
73 self.wpas_object = self.bus.get_object(
91 self.interface_object = self.bus.get_object(
97 self.bus.add_signal_receiver(GroupFinished,
H A Dp2p_flush.py32 global bus
72 self.bus = dbus.SystemBus()
73 self.wpas_object = self.bus.get_object(
91 self.interface_object = self.bus.get_object(
97 self.bus.add_signal_receiver(deviceLost,
H A Dp2p_listen.py33 global bus
73 self.bus = dbus.SystemBus()
74 self.wpas_object = self.bus.get_object(
92 self.interface_object = self.bus.get_object(
97 self.bus.add_signal_receiver(p2pStateChange,
H A Dp2p_group_add.py42 global bus
90 self.bus = dbus.SystemBus()
91 self.wpas_object = self.bus.get_object(
109 self.interface_object = self.bus.get_object(
115 self.bus.add_signal_receiver(GroupStarted,
118 self.bus.add_signal_receiver(WpsFailure,
/freebsd-10.2-release/sys/dev/drm/
H A Dmga_drv.c67 device_t bus; local
73 * bus the "card" is on. If vendor is 0x3388 (Hint Corp) and the
78 bus = device_get_parent(device_get_parent(dev->device));
80 bus = device_get_parent(dev->device);
83 pci_get_vendor(bus) == 0x3388 &&
84 pci_get_device(bus) == 0x0021)
/freebsd-10.2-release/sys/mips/malta/
H A Dobio.c48 #include <sys/bus.h>
54 #include <machine/bus.h>
113 obio_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
120 struct obio_softc *sc = device_get_softc(bus);
159 obio_activate_resource(device_t bus, device_t child, int type, int rid, argument
/freebsd-10.2-release/sys/mips/sentry5/
H A Dobio.c50 #include <sys/bus.h>
56 #include <machine/bus.h>
89 sc->oba_size = 0x03FFFFFF; /* XXX sb pci bus 0 aperture size? */
115 obio_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
121 struct obio_softc *sc = device_get_softc(bus);
159 obio_activate_resource(device_t bus, device_t child, int type, int rid, argument
/freebsd-10.2-release/sys/arm/xscale/i80321/
H A Dobio.c48 #include <sys/bus.h>
54 #include <machine/bus.h>
99 obio_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
106 struct obio_softc *sc = device_get_softc(bus);
139 obio_activate_resource(device_t bus, device_t child, int type, int rid, argument
H A Di80321_pci.c48 #include <sys/bus.h>
53 #include <machine/bus.h>
73 device_set_desc(dev, "i80321 PCI bus");
133 i80321_pci_conf_setup(struct i80321_pci_softc *sc, int bus, int slot, int func, argument
144 * If the bus # is the same as our own, then use Type 0 cycles,
150 if (bus == busno) {
162 bus &= 0xff;
169 *addr = (bus << 16) | (slot << 11) | (func << 8) | reg | 1;
176 i80321_pci_read_config(device_t dev, u_int bus, u_int slot, u_int func, argument
185 if (i80321_pci_conf_setup(sc, bus, slo
217 i80321_pci_write_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, u_int32_t data, int bytes) argument
279 i80321_pci_alloc_resource(device_t bus, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) argument
333 i80321_pci_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
[all...]
/freebsd-10.2-release/sys/dev/usb/
H A Dusb_transfer.c37 #include <sys/bus.h>
166 mtod = udev->bus->methods;
985 parm->dma_tag_p, udev->bus->dma_parent_tag[0].tag,
986 xfer_mtx, &usb_bdma_done_event, udev->bus->dma_bits,
990 info->bus = udev->bus;
1012 USB_BUS_CONTROL_XFER_PROC(udev->bus);
1015 USB_BUS_GIANT_PROC(udev->bus);
1018 USB_BUS_NON_GIANT_PROC(udev->bus);
1077 &udev->bus
1626 struct usb_bus *bus; local
2815 struct usb_bus *bus; local
[all...]
/freebsd-10.2-release/sys/dev/ofw/
H A Dofwbus.c40 #include <sys/bus.h>
55 #include <machine/bus.h>
59 * The ofwbus (which is a pseudo-bus actually) iterates over the nodes that
60 * hang from the Open Firmware root node and adds them as devices to this bus
138 * ofwbus bus starts on unamed node in FDT, so we cannot make
169 ofwbus_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
179 passthrough = (device_get_parent(child) != bus);
180 sc = device_get_softc(bus);
183 rle = resource_list_find(BUS_GET_RESOURCE_LIST(bus, child),
187 device_printf(bus, "n
230 ofwbus_adjust_resource(device_t bus, device_t child __unused, int type, struct resource *r, u_long start, u_long end) argument
259 ofwbus_release_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
[all...]
/freebsd-10.2-release/sys/powerpc/powerpc/
H A Dnexus.c40 #include <sys/bus.h>
54 #include <machine/bus.h>
124 nexus_setup_intr(device_t bus __unused, device_t child, struct resource *r,
148 nexus_teardown_intr(device_t bus __unused, device_t child __unused,
160 nexus_bind_intr(device_t bus __unused, device_t child __unused,
187 nexus_activate_resource(device_t bus __unused, device_t child __unused,
211 nexus_deactivate_resource(device_t bus __unused, device_t child __unused,
/freebsd-10.2-release/sys/mips/atheros/
H A Dapb.c33 #include <sys/bus.h>
44 #include <machine/bus.h>
161 apb_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
164 struct apb_softc *sc = device_get_softc(bus);
176 passthrough = (device_get_parent(child) != bus);
180 __func__, bus, child, type, *rid, (void *)(intptr_t)start,
184 return (BUS_ALLOC_RESOURCE(device_get_parent(bus), child, type,
190 * maintained by a child bus), then work out the start/end values.
243 apb_activate_resource(device_t bus, device_t child, int type, int rid, argument
248 return (BUS_ACTIVATE_RESOURCE(device_get_parent(bus), chil
253 apb_deactivate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
282 apb_setup_intr(device_t bus, device_t child, struct resource *ires, int flags, driver_filter_t *filt, driver_intr_t *handler, void *arg, void **cookiep) argument
402 apb_hinted_child(device_t bus, const char *dname, int dunit) argument
444 apb_add_child(device_t bus, u_int order, const char *name, int unit) argument
[all...]
/freebsd-10.2-release/sys/arm/xscale/ixp425/
H A Dixp425_pci.c43 #include <sys/bus.h>
51 #include <machine/bus.h>
139 * The PCI bus can only address 64MB. However, due to the way our
147 * Initialize the bus space tags.
203 * and the big-endian AHB bus
211 * Enable bus mastering and I/O,memory access
279 ixppcib_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
282 struct ixppcib_softc *sc = device_get_softc(bus);
320 ixppcib_activate_resource(device_t bus, device_t child, int type, int rid, argument
324 struct ixppcib_softc *sc = device_get_softc(bus);
342 ixppcib_deactivate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
352 ixppcib_release_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
362 ixppcib_conf_setup(struct ixppcib_softc *sc, int bus, int slot, int func, int reg) argument
387 ixppcib_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, int bytes) argument
415 ixppcib_write_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, u_int32_t val, int bytes) argument
[all...]
/freebsd-10.2-release/sys/powerpc/ofw/
H A Dofw_pci.c32 #include <sys/bus.h>
44 #include <machine/bus.h>
64 static struct resource * ofw_pci_alloc_resource(device_t bus,
67 static int ofw_pci_release_resource(device_t bus, device_t child,
69 static int ofw_pci_activate_resource(device_t bus, device_t child,
71 static int ofw_pci_deactivate_resource(device_t bus,
74 static int ofw_pci_adjust_resource(device_t bus, device_t child,
87 static phandle_t ofw_pci_get_node(device_t bus, device_t dev);
142 if (OF_getprop(node, "bus-range", busrange, sizeof(busrange)) != 8)
255 ofw_pci_route_interrupt(device_t bus, device_ argument
309 ofw_pci_alloc_resource(device_t bus, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) argument
364 ofw_pci_release_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
377 ofw_pci_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
438 ofw_pci_deactivate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
455 ofw_pci_adjust_resource(device_t bus, device_t child, int type, struct resource *res, u_long start, u_long end) argument
485 ofw_pci_get_node(device_t bus, device_t dev) argument
[all...]
/freebsd-10.2-release/sys/mips/idt/
H A Didtpci.c70 #include <sys/bus.h>
81 #include <machine/bus.h>
131 idtpci_make_addr(int bus, int slot, int func, int reg) argument
134 return 0x80000000 | (bus << 16) | (slot << 11) | (func << 8) | reg;
290 idtpci_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, argument
298 bus, slot, func, reg, bytes);
300 addr = idtpci_make_addr(bus, slot, func, reg);
346 idtpci_write_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, argument
354 bus, slot, func, reg, bytes, data);
357 reg_data = idtpci_read_config(dev, bus, slo
414 int dev, bus, irq; local
467 idtpci_alloc_resource(device_t bus, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) argument
[all...]
/freebsd-10.2-release/sys/mips/mips/
H A Dnexus.c45 #include <sys/bus.h>
55 #include <machine/bus.h>
180 nexus_print_child(device_t bus, device_t child) argument
184 retval += bus_print_child_header(bus, child);
188 retval += printf(" on %s\n", device_get_nameunit(bus));
210 nexus_add_child(device_t bus, u_int order, const char *name, int unit) argument
220 child = device_add_child_ordered(bus, order, name, unit);
222 device_printf(bus, "failed to add child: %s%d\n", name, unit);
238 nexus_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
248 __func__, bus, chil
363 nexus_release_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
378 nexus_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
402 nexus_deactivate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
444 nexus_hinted_child(device_t bus, const char *dname, int dunit) argument
[all...]
/freebsd-10.2-release/sys/mips/cavium/octe/
H A Dethernet.c34 #include <sys/bus.h>
188 static void cvm_oct_configure_common_hw(device_t bus) argument
195 sc = device_get_softc(bus);
234 sc->sc_rx_irq = bus_alloc_resource(bus, SYS_RES_IRQ, &rid,
239 device_printf(bus, "could not allocate workq irq");
243 error = bus_setup_intr(bus, sc->sc_rx_irq, INTR_TYPE_NET | INTR_MPSAFE,
247 device_printf(bus, "could not setup workq irq");
302 int cvm_oct_init_module(device_t bus) argument
312 cvm_oct_configure_common_hw(bus);
357 dev = BUS_ADD_CHILD(bus,
469 cvm_oct_cleanup_module(device_t bus) argument
[all...]
/freebsd-10.2-release/sys/powerpc/psim/
H A Diobus.c31 * PSIM 'iobus' local bus. Should be set up in the device tree like:
43 #include <sys/bus.h>
44 #include <machine/bus.h>
129 device_set_desc(dev, "PSIM local bus");
307 iobus_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
315 sc = device_get_softc(bus);
326 return (bus_alloc_resource(bus, type, rid, start, end, count,
329 device_printf(bus, "unknown resource request from %s\n",
336 device_printf(bus, "failed to reserve resource for %s\n",
345 device_printf(bus,
358 iobus_release_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
372 iobus_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
398 iobus_deactivate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
[all...]

Completed in 484 milliseconds

1234567891011>>