/freebsd/sys/dev/usb/controller/ |
H A D | usb_controller.c | 153 usb_root_mount_rel(struct usb_bus *bus) in usb_root_mount_rel() argument 155 if (bus->bus_roothold != NULL) { in usb_root_mount_rel() 156 DPRINTF("Releasing root mount hold %p\n", bus->bus_roothold); in usb_root_mount_rel() 157 root_mount_rel(bus->bus_roothold); in usb_root_mount_rel() 158 bus->bus_roothold = NULL; in usb_root_mount_rel() 169 struct usb_bus *bus = device_get_ivars(dev); in usb_attach() local 173 if (bus == NULL) { in usb_attach() 181 bus->bus_roothold = root_mount_hold(device_get_nameunit(dev)); in usb_attach() 184 usb_attach_sub(dev, bus); in usb_attach() 195 struct usb_bus *bus = device_get_softc(dev); in usb_detach() local [all …]
|
/freebsd/sys/dev/ppbus/ |
H A D | ppb_1284.c | 59 do_1284_wait(device_t bus, uint8_t mask, uint8_t status) in do_1284_wait() argument 61 return (ppb_poll_bus(bus, 4, mask, status, PPB_NOINTR | PPB_POLL)); in do_1284_wait() 65 do_peripheral_wait(device_t bus, uint8_t mask, uint8_t status) in do_peripheral_wait() argument 67 return (ppb_poll_bus(bus, 100, mask, status, PPB_NOINTR | PPB_POLL)); in do_peripheral_wait() 78 ppb_1284_reset_error(device_t bus, int state) in ppb_1284_reset_error() argument 80 struct ppb_data *ppb = DEVTOSOFTC(bus); in ppb_1284_reset_error() 94 ppb_1284_get_state(device_t bus) in ppb_1284_get_state() argument 96 struct ppb_data *ppb = DEVTOSOFTC(bus); in ppb_1284_get_state() 108 ppb_1284_set_state(device_t bus, int state) in ppb_1284_set_state() argument 110 struct ppb_data *ppb = DEVTOSOFTC(bus); in ppb_1284_set_state() [all …]
|
H A D | ppb_base.c | 55 ppb_poll_bus(device_t bus, int max, in ppb_poll_bus() argument 58 struct ppb_data *ppb = DEVTOSOFTC(bus); in ppb_poll_bus() 62 ppb_assert_locked(bus); in ppb_poll_bus() 67 r = ppb_rstr(bus); in ppb_poll_bus() 76 if ((ppb_rstr(bus) & mask) == status) in ppb_poll_bus() 80 error = mtx_sleep((caddr_t)bus, ppb->ppc_lock, PPBPRI | in ppb_poll_bus() 96 ppb_get_epp_protocol(device_t bus) in ppb_get_epp_protocol() argument 100 ppb_assert_locked(bus); in ppb_get_epp_protocol() 101 BUS_READ_IVAR(device_get_parent(bus), bus, PPC_IVAR_EPP_PROTO, &protocol); in ppb_get_epp_protocol() 111 ppb_get_mode(device_t bus) in ppb_get_mode() argument [all …]
|
H A D | ppbconf.c | 62 ppbus_print_child(device_t bus, device_t dev) in ppbus_print_child() argument 67 retval = bus_print_child_header(bus, dev); in ppbus_print_child() 74 retval += bus_print_child_footer(bus, dev); in ppbus_print_child() 116 ppbus_read_ivar(device_t bus, device_t dev, int index, uintptr_t* val) in ppbus_read_ivar() argument 122 *val = (u_long)ppb_get_mode(bus); in ppbus_read_ivar() 132 ppbus_write_ivar(device_t bus, device_t dev, int index, uintptr_t val) in ppbus_write_ivar() argument 138 ppb_set_mode(bus, val); in ppbus_write_ivar() 207 ppb_pnp_detect(device_t bus) in ppb_pnp_detect() argument 214 device_printf(bus, "Probing for PnP devices:\n"); in ppb_pnp_detect() 216 if ((error = ppb_1284_read_id(bus, PPB_NIBBLE, str, in ppb_pnp_detect() [all …]
|
/freebsd/sys/dev/iicbus/ |
H A D | iiconf.c | 94 iicbus_intr(device_t bus, int event, char *buf) in iicbus_intr() argument 96 struct iicbus_softc *sc = (struct iicbus_softc *)device_get_softc(bus); in iicbus_intr() 135 iicbus_request_bus(device_t bus, device_t dev, int how) in iicbus_request_bus() argument 138 struct iicbus_softc *sc = (struct iicbus_softc *)device_get_softc(bus); in iicbus_request_bus() 164 sc->busydev = bus; in iicbus_request_bus() 177 reqdata.bus = bus; in iicbus_request_bus() 179 error = IICBUS_CALLBACK(device_get_parent(bus), in iicbus_request_bus() 203 iicbus_release_bus(device_t bus, device_t dev) in iicbus_release_bus() argument 206 struct iicbus_softc *sc = (struct iicbus_softc *)device_get_softc(bus); in iicbus_release_bus() 219 reqdata.bus = bus; in iicbus_release_bus() [all …]
|
/freebsd/sys/amd64/pci/ |
H A D | pci_cfgreg.c | 52 static uint32_t pci_docfgregread(int domain, int bus, int slot, int func, 54 static struct pcie_mcfg_region *pcie_lookup_region(int domain, int bus); 55 static int pciereg_cfgread(struct pcie_mcfg_region *region, int bus, 57 static void pciereg_cfgwrite(struct pcie_mcfg_region *region, int bus, 60 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes); 61 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes); 90 pcie_lookup_region(int domain, int bus) in pcie_lookup_region() argument 94 bus >= mcfg_regions[i].minbus && in pcie_lookup_region() 95 bus <= mcfg_regions[i].maxbus) in pcie_lookup_region() 101 pci_docfgregread(int domain, int bus, int slot, int func, int reg, int bytes) in pci_docfgregread() argument [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/aspeed/ |
H A D | ibm-power9-dual.dtsi | 22 cfam0_i2c0: i2c-bus@0 { 26 cfam0_i2c1: i2c-bus@1 { 30 cfam0_i2c2: i2c-bus@2 { 34 cfam0_i2c3: i2c-bus@3 { 38 cfam0_i2c4: i2c-bus@4 { 42 cfam0_i2c5: i2c-bus@5 { 46 cfam0_i2c6: i2c-bus@6 { 50 cfam0_i2c7: i2c-bus@7 { 54 cfam0_i2c8: i2c-bus@8 { 58 cfam0_i2c9: i2c-bus@9 { [all …]
|
/freebsd/sys/dev/smbus/ |
H A D | smbconf.h | 97 #define smbus_quick(bus,slave,how) \ argument 98 (SMBUS_QUICK(device_get_parent(bus), slave, how)) 99 #define smbus_sendb(bus,slave,byte) \ argument 100 (SMBUS_SENDB(device_get_parent(bus), slave, byte)) 101 #define smbus_recvb(bus,slave,byte) \ argument 102 (SMBUS_RECVB(device_get_parent(bus), slave, byte)) 103 #define smbus_writeb(bus,slave,cmd,byte) \ argument 104 (SMBUS_WRITEB(device_get_parent(bus), slave, cmd, byte)) 105 #define smbus_writew(bus,slave,cmd,word) \ argument 106 (SMBUS_WRITEW(device_get_parent(bus), slave, cmd, word)) [all …]
|
/freebsd/sys/x86/pci/ |
H A D | pci_bus.c | 63 legacy_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func, in legacy_pcib_read_config() argument 66 return(pci_cfgregread(0, bus, slot, func, reg, bytes)); in legacy_pcib_read_config() 72 legacy_pcib_write_config(device_t dev, u_int bus, u_int slot, u_int func, in legacy_pcib_write_config() argument 75 pci_cfgregwrite(0, bus, slot, func, reg, data, bytes); in legacy_pcib_write_config() 99 device_t bus; in legacy_pcib_alloc_msi() local 101 bus = device_get_parent(pcib); in legacy_pcib_alloc_msi() 102 return (PCIB_ALLOC_MSI(device_get_parent(bus), dev, count, maxcount, in legacy_pcib_alloc_msi() 109 device_t bus; in legacy_pcib_alloc_msix() local 111 bus = device_get_parent(pcib); in legacy_pcib_alloc_msix() 112 return (PCIB_ALLOC_MSIX(device_get_parent(bus), dev, irq)); in legacy_pcib_alloc_msix() [all …]
|
H A D | pci_early_quirks.c | 30 #include <sys/bus.h> 70 intel_stolen_base_gen3(int domain, int bus, int slot, int func) in intel_stolen_base_gen3() argument 75 ctrl = pci_cfgregread(domain, bus, slot, func, INTEL_BSM, 4); in intel_stolen_base_gen3() 81 intel_stolen_base_gen11(int domain, int bus, int slot, int func) in intel_stolen_base_gen11() argument 86 ctrl = pci_cfgregread(domain, bus, slot, func, INTEL_GEN11_BSM_DW0, 4); in intel_stolen_base_gen11() 89 domain, bus, slot, func, INTEL_GEN11_BSM_DW1, 4) << 32; in intel_stolen_base_gen11() 94 intel_stolen_size_gen3(int domain, int bus, int slot, int func) in intel_stolen_size_gen3() argument 134 intel_stolen_size_gen6(int domain, int bus, int slot, int func) in intel_stolen_size_gen6() argument 139 ctrl = pci_cfgregread(domain, bus, slot, func, SNB_GMCH_CTRL, 2); in intel_stolen_size_gen6() 145 intel_stolen_size_gen8(int domain, int bus, in argument 156 intel_stolen_size_chv(int domain,int bus,int slot,int func) intel_stolen_size_chv() argument 178 intel_stolen_size_gen9(int domain,int bus,int slot,int func) intel_stolen_size_gen9() argument 282 const int bus = 0; intel_graphics_stolen() local [all...] |
/freebsd/sys/dev/usb/ |
H A D | usb_bus.h | 40 struct usb_bus *bus; member 53 #define USB_BUS_TT_PROC(bus) USB_BUS_NON_GIANT_ISOC_PROC(bus) argument 54 #define USB_BUS_CS_PROC(bus) USB_BUS_NON_GIANT_ISOC_PROC(bus) argument 57 #define USB_BUS_GIANT_PROC(bus) (&(bus)->giant_callback_proc) argument 58 #define USB_BUS_NON_GIANT_ISOC_PROC(bus) (&(bus)->non_giant_isoc_callback_proc) argument 59 #define USB_BUS_NON_GIANT_BULK_PROC(bus) (&(bus)->non_giant_bulk_callback_proc) argument 60 #define USB_BUS_EXPLORE_PROC(bus) (&(bus)->explore_proc) argument 61 #define USB_BUS_CONTROL_XFER_PROC(bus) (&(bus)->control_xfer_proc) argument
|
H A D | usb_hub.c | 198 usb_needs_explore(sc->sc_udev->bus, 0); in uhub_intr_callback() 242 USB_BUS_UNLOCK(udev->bus); in uhub_reset_tt_proc() 248 USB_BUS_LOCK(udev->bus); in uhub_reset_tt_proc() 288 USB_BUS_LOCK_ASSERT(udev->bus, MA_OWNED); in uhub_tt_buffer_reset_async_locked() 319 usb_proc_msignal(USB_BUS_TT_PROC(udev->bus), in uhub_tt_buffer_reset_async_locked() 342 USB_BUS_LOCK(udev->bus); in uhub_reset_tt_callback() 359 USB_BUS_UNLOCK(udev->bus); in uhub_reset_tt_callback() 364 USB_BUS_UNLOCK(udev->bus); in uhub_reset_tt_callback() 403 child = usb_bus_port_get_device(udev->bus, up); in uhub_count_active_host_ports() 509 struct usb_bus *bus; in uhub_explore_sub() local [all …]
|
H A D | usb_transfer.c | 191 mtod = udev->bus->methods; in usbd_get_dma_delay() 1081 parm->dma_tag_p, udev->bus->dma_parent_tag[0].tag, in usbd_transfer_setup() 1082 xfer_mtx, &usb_bdma_done_event, udev->bus->dma_bits, in usbd_transfer_setup() 1086 info->bus = udev->bus; in usbd_transfer_setup() 1109 USB_BUS_CONTROL_XFER_PROC(udev->bus); in usbd_transfer_setup() 1112 USB_BUS_GIANT_PROC(udev->bus); in usbd_transfer_setup() 1115 USB_BUS_NON_GIANT_BULK_PROC(udev->bus); in usbd_transfer_setup() 1118 USB_BUS_NON_GIANT_ISOC_PROC(udev->bus); in usbd_transfer_setup() 1176 &udev->bus->bus_mtx, 0); in usbd_transfer_setup() 1204 (udev->bus->methods->xfer_setup) (parm); in usbd_transfer_setup() [all …]
|
/freebsd/sys/i386/pci/ |
H A D | pci_cfgreg.c | 86 static uint32_t pci_docfgregread(int domain, int bus, int slot, int func, 88 static struct pcie_mcfg_region *pcie_lookup_region(int domain, int bus); 89 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes); 90 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes); 92 static int pciereg_cfgread(struct pcie_mcfg_region *region, int bus, 94 static void pciereg_cfgwrite(struct pcie_mcfg_region *region, int bus, 164 pcie_lookup_region(int domain, int bus) in pcie_lookup_region() argument 168 bus >= mcfg_regions[i].minbus && in pcie_lookup_region() 169 bus <= mcfg_regions[i].maxbus) in pcie_lookup_region() 175 pci_docfgregread(int domain, int bus, int slot, int func, int reg, int bytes) in pci_docfgregread() argument [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/devfreq/ |
H A D | exynos-bus.txt | 5 for buses. Generally, each bus of Exynos SoC includes a source clock 7 of the bus in runtime. To monitor the usage of each bus in runtime, 11 The Exynos SoC includes the various sub-blocks which have the each AXI bus. 12 The each AXI bus has the owned source clock but, has not the only owned 15 There are two type of bus devices as following: 16 - parent bus device 17 - passive bus device 19 Basically, parent and passive bus device share the same power line. 20 The parent bus device can only change the voltage of shared power line 21 and the rest bus devices (passive bus device) depend on the decision of [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/exynos/ |
H A D | exynos5433-bus.dtsi | 3 * Samsung's Exynos5433 SoC Memory interface and AMBA bus device tree source 11 compatible = "samsung,exynos-bus"; 13 clock-names = "bus"; 19 compatible = "samsung,exynos-bus"; 21 clock-names = "bus"; 27 compatible = "samsung,exynos-bus"; 29 clock-names = "bus"; 35 compatible = "samsung,exynos-bus"; 37 clock-names = "bus"; 43 compatible = "samsung,exynos-bus"; [all …]
|
/freebsd/sys/dev/mdio/ |
H A D | mdio_if.m | 2 #include <sys/bus.h> 29 * @brief Read register from device on MDIO bus. 31 * @param dev MDIO bus device. 42 * @brief Read register from device on MDIO muxed bus. 44 * @param dev MDIO bus device. 45 * @param bus MDIO bus mux position 51 int bus; 57 * @brief Write register to device on MDIO bus. 59 * @param dev MDIO bus device. 72 * @brief Write register to device on MDIO muxed bus. [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/examples/ |
H A D | wpas-dbus-new-signals.py | 32 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path) 48 net_obj = bus.get_object(WPAS_DBUS_SERVICE, bss) 128 global bus 129 bus = dbus.SystemBus() 130 wpas_obj = bus.get_object(WPAS_DBUS_SERVICE, WPAS_DBUS_OPATH) 137 bus.add_signal_receiver(interfaceAdded, 140 bus.add_signal_receiver(interfaceRemoved, 143 bus.add_signal_receiver(propertiesChanged, 149 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path) 154 bus.add_signal_receiver(scanDone, [all …]
|
/freebsd/sys/cam/ |
H A D | cam_xpt.c | 150 typedef int xpt_busfunc_t (struct cam_eb *bus, void *arg); 242 static void xpt_acquire_bus(struct cam_eb *bus); 243 static void xpt_release_bus(struct cam_eb *bus); 248 xpt_alloc_target(struct cam_eb *bus, target_id_t target_id); 254 xpt_find_target(struct cam_eb *bus, target_id_t target_id); 269 u_int num_patterns, struct cam_eb *bus); 286 static int xpttargettraverse(struct cam_eb *bus, 307 struct cam_eb *bus, 311 static struct cam_ed * xpt_alloc_device_default(struct cam_eb *bus, 417 struct cam_eb *bus; in xptdoioctl() local [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/arm/omap/ |
H A D | l4.txt | 3 These bindings describe the OMAP SoCs L4 interconnect bus. 6 - compatible : Should be "ti,omap2-l4" for OMAP2 family l4 core bus 7 Should be "ti,omap2-l4-wkup" for OMAP2 family l4 wkup bus 8 Should be "ti,omap3-l4-core" for OMAP3 family l4 core bus 9 Should be "ti,omap4-l4-cfg" for OMAP4 family l4 cfg bus 10 Should be "ti,omap4-l4-per" for OMAP4 family l4 per bus 11 Should be "ti,omap4-l4-wkup" for OMAP4 family l4 wkup bus 12 Should be "ti,omap5-l4-cfg" for OMAP5 family l4 cfg bus 13 Should be "ti,omap5-l4-wkup" for OMAP5 family l4 wkup bus 14 Should be "ti,dra7-l4-cfg" for DRA7 family l4 cfg bus [all …]
|
/freebsd/sys/dev/acpica/ |
H A D | acpi_container.c | 43 static int acpi_syscont_release_msi(device_t bus, device_t dev, 45 static int acpi_syscont_alloc_msix(device_t bus, device_t dev, 47 static int acpi_syscont_release_msix(device_t bus, device_t dev, 49 static int acpi_syscont_map_msi(device_t bus, device_t dev, 111 acpi_syscont_alloc_msi(device_t bus, device_t dev, int count, int maxcount, in acpi_syscont_alloc_msi() argument 114 device_t parent = device_get_parent(bus); in acpi_syscont_alloc_msi() 121 acpi_syscont_release_msi(device_t bus, device_t dev, int count, int *irqs) in acpi_syscont_release_msi() argument 123 device_t parent = device_get_parent(bus); in acpi_syscont_release_msi() 129 acpi_syscont_alloc_msix(device_t bus, device_t dev, int *irq) in acpi_syscont_alloc_msix() argument 131 device_t parent = device_get_parent(bus); in acpi_syscont_alloc_msix() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/i2c/ |
H A D | i2c-aspeed.txt | 6 - reg : address offset and range of bus 7 - compatible : should be "aspeed,ast2400-i2c-bus" 8 or "aspeed,ast2500-i2c-bus" 9 or "aspeed,ast2600-i2c-bus" 10 - clocks : root clock of bus, should reference the APB 17 - bus-frequency : frequency of the bus clock in Hz defaults to 100 kHz when not 19 - multi-master : states that there is another master active on this bus. 24 compatible = "simple-bus"; 37 i2c0: i2c-bus@40 { 42 compatible = "aspeed,ast2400-i2c-bus"; [all …]
|
/freebsd/sys/dev/ofw/ |
H A D | ofw_bus_if.m | 29 # properties of a device on an Open Firmware assisted bus for use 32 # as they are expected to be only of interest in the respective bus 35 #include <sys/bus.h> 62 ofw_bus_default_get_devinfo(device_t bus, device_t dev) 69 ofw_bus_default_get_compat(device_t bus, device_t dev) 76 ofw_bus_default_get_model(device_t bus, device_t dev) 83 ofw_bus_default_get_name(device_t bus, device_t dev) 90 ofw_bus_default_get_node(device_t bus, device_t dev) 97 ofw_bus_default_get_type(device_t bus, device_t dev) 104 ofw_bus_default_map_intr(device_t bus, device_t dev, phandle_t iparent, [all …]
|
/freebsd/sys/dev/hid/ |
H A D | hidbus.c | 29 #include <sys/bus.h> 288 device_t *children, bus; in hidbus_detach_children() local 295 bus = is_bus ? dev : device_get_parent(dev); in hidbus_detach_children() 297 KASSERT(device_get_devclass(bus) == devclass_find("hidbus"), in hidbus_detach_children() 302 bus_generic_detach(bus); in hidbus_detach_children() 303 device_delete_children(bus); in hidbus_detach_children() 309 error = device_get_children(bus, &children, &i); in hidbus_detach_children() 318 error = device_delete_child(bus, children[i]); in hidbus_detach_children() 328 HID_INTR_UNSETUP(device_get_parent(bus), bus); in hidbus_detach_children() 399 hidbus_child_detached(device_t bus,device_t child) hidbus_child_detached() argument 423 hidbus_child_deleted(device_t bus,device_t child) hidbus_child_deleted() argument 436 hidbus_read_ivar(device_t bus,device_t child,int which,uintptr_t * result) hidbus_read_ivar() argument 464 hidbus_write_ivar(device_t bus,device_t child,int which,uintptr_t value) hidbus_write_ivar() argument 497 hidbus_child_location(device_t bus,device_t child,struct sbuf * sb) hidbus_child_location() argument 507 hidbus_child_pnpinfo(device_t bus,device_t child,struct sbuf * sb) hidbus_child_pnpinfo() argument 524 device_t bus = device_get_parent(child); hidbus_set_desc() local 538 hidbus_find_child(device_t bus,int32_t usage) hidbus_find_child() argument 603 hidbus_intr_start(device_t bus,device_t child) hidbus_intr_start() argument 629 hidbus_intr_stop(device_t bus,device_t child) hidbus_intr_stop() argument 656 hidbus_intr_poll(device_t bus,device_t child __unused) hidbus_intr_poll() argument 664 device_t bus = device_get_parent(child); hidbus_get_rdesc_info() local 680 device_t bus; hid_get_report_descr() local 716 device_t bus; hid_set_report_descr() local 924 device_t bus; hid_get_device_info() local [all...] |
/freebsd/tools/tools/dmardump/ |
H A D | dmardump.c | 58 pci_find_conf(int segment, int bus, int slot, int func) in pci_find_conf() argument 76 patterns[0].pc_sel.pc_bus = bus; in pci_find_conf() 96 dump_context_table(int segment, int bus, uint64_t base_addr) in dump_context_table() argument 109 printf("\tPCI bus %d:\n", bus); in dump_context_table() 114 conf = pci_find_conf(segment, bus, 0, idx); in dump_context_table() 116 conf = pci_find_conf(segment, bus, idx >> 3, idx & 7); in dump_context_table() 157 int bus; in handle_drhd() local 174 for (bus = 0; bus < 255; bus++) { in handle_drhd() 177 if (root_table[bus].r1 & DMAR_ROOT_R1_P) in handle_drhd() 178 dump_ext_context_table(segment, bus, in handle_drhd() [all …]
|