/freebsd/sys/dev/ppbus/ |
H A D | ppbio.h | 38 (PPBUS_IO(device_get_parent(dev), PPB_OUTSB_EPP, buf, cnt, 0)) 40 (PPBUS_IO(device_get_parent(dev), PPB_OUTSW_EPP, buf, cnt, 0)) 42 (PPBUS_IO(device_get_parent(dev), PPB_OUTSL_EPP, buf, cnt, 0)) 45 (PPBUS_IO(device_get_parent(dev), PPB_INSB_EPP, buf, cnt, 0)) 47 (PPBUS_IO(device_get_parent(dev), PPB_INSW_EPP, buf, cnt, 0)) 49 (PPBUS_IO(device_get_parent(dev), PPB_INSL_EPP, buf, cnt, 0)) 52 (PPBUS_IO(device_get_parent(dev), PPB_REPP_A, 0, 0, 0)) 54 (PPBUS_IO(device_get_parent(dev), PPB_REPP_D, 0, 0, 0)) 56 (PPBUS_IO(device_get_parent(dev), PPB_RECR, 0, 0, 0)) 58 (PPBUS_IO(device_get_parent(dev), PPB_RFIFO, 0, 0, 0)) [all …]
|
H A D | lpbb.c | 97 device_t ppbus = device_get_parent(dev); in lpbb_callback() 135 device_t ppbus = device_get_parent(dev); in lpbb_reset_bus() 145 device_t ppbus = device_get_parent(dev); in lpbb_getscl() 157 device_t ppbus = device_get_parent(dev); in lpbb_getsda() 169 device_t ppbus = device_get_parent(dev); in lpbb_setsda() 182 device_t ppbus = device_get_parent(dev); in lpbb_setscl() 195 device_t ppbus = device_get_parent(dev); in lpbb_detect() 222 device_t ppbus = device_get_parent(dev); in lpbb_reset()
|
/freebsd/sys/dev/dpaa2/ |
H A D | dpaa2_cmd_if.m | 57 if (device_get_parent(dev) != NULL) 58 return (DPAA2_CMD_MNG_GET_VERSION(device_get_parent(dev), child, 67 if (device_get_parent(dev) != NULL) 69 device_get_parent(dev), child, cmd, pvr, svr)); 77 if (device_get_parent(dev) != NULL) 79 device_get_parent(dev), child, cmd, cont_id)); 87 if (device_get_parent(dev) != NULL) 89 device_get_parent(dev), child, cmd, cont_id, token)); 96 if (device_get_parent(dev) != NULL) 98 device_get_parent(dev), child, cmd)); [all …]
|
H A D | dpaa2_mc_if.m | 45 if (device_get_parent(dev) != NULL) 46 return (DPAA2_MC_MANAGE_DEV(device_get_parent(dev), 55 if (device_get_parent(dev) != NULL) 56 return (DPAA2_MC_GET_FREE_DEV(device_get_parent(dev), 65 if (device_get_parent(dev) != NULL) 66 return (DPAA2_MC_GET_DEV(device_get_parent(dev), 75 if (device_get_parent(dev) != NULL) 76 return (DPAA2_MC_GET_SHARED_DEV(device_get_parent(dev), 85 if (device_get_parent(dev) != NULL) 86 return (DPAA2_MC_RESERVE_DEV(device_get_parent(dev), [all …]
|
/freebsd/sys/dev/bhnd/ |
H A D | bhnd.h | 672 return (BHND_BUS_REGISTER_PROVIDER(device_get_parent(dev), dev, dev, in bhnd_register_provider() 691 return (BHND_BUS_DEREGISTER_PROVIDER(device_get_parent(dev), dev, dev, in bhnd_deregister_provider() 711 return (BHND_BUS_RETAIN_PROVIDER(device_get_parent(dev), dev, in bhnd_retain_provider() 727 return (BHND_BUS_RELEASE_PROVIDER(device_get_parent(dev), dev, in bhnd_release_provider() 744 return (BHND_BUS_IS_HW_DISABLED(device_get_parent(dev), dev)); in bhnd_is_hw_disabled() 754 return (BHND_BUS_GET_CHIPID(device_get_parent(dev), dev)); in bhnd_get_chipid() 772 return (BHND_BUS_READ_IOCTL(device_get_parent(dev), dev, ioctl)); in bhnd_read_ioctl() 793 return (BHND_BUS_WRITE_IOCTL(device_get_parent(dev), dev, value, mask)); in bhnd_write_ioctl() 811 return (BHND_BUS_READ_IOST(device_get_parent(dev), dev, iost)); in bhnd_read_iost() 827 return (BHND_BUS_IS_HW_SUSPENDED(device_get_parent(dev), dev)); in bhnd_is_hw_suspended() [all …]
|
H A D | bhnd.c | 243 if ((error = BUS_RESUME_CHILD(device_get_parent(child), child))) in bhnd_generic_resume() 280 error = BUS_SUSPEND_CHILD(device_get_parent(child), child); in bhnd_generic_suspend() 285 BUS_RESUME_CHILD(device_get_parent(devs[j]), in bhnd_generic_suspend() 377 if (device_get_parent(child) != dev) in bhnd_generic_alloc_pmu() 492 if (device_get_parent(child) != dev) in bhnd_generic_release_pmu() 542 if (device_get_parent(child) != dev) in bhnd_generic_get_clock_latency() 560 if (device_get_parent(child) != dev) in bhnd_generic_get_clock_freq() 580 if (device_get_parent(child) != dev) in bhnd_generic_request_clock() 635 if (device_get_parent(child) != dev) in bhnd_generic_enable_clocks() 696 if (device_get_parent(child) != dev) in bhnd_generic_request_ext_rsrc() [all …]
|
/freebsd/sys/dev/smbus/ |
H A D | smbconf.h | 98 (SMBUS_QUICK(device_get_parent(bus), slave, how)) 100 (SMBUS_SENDB(device_get_parent(bus), slave, byte)) 102 (SMBUS_RECVB(device_get_parent(bus), slave, byte)) 104 (SMBUS_WRITEB(device_get_parent(bus), slave, cmd, byte)) 106 (SMBUS_WRITEW(device_get_parent(bus), slave, cmd, word)) 108 (SMBUS_READB(device_get_parent(bus), slave, cmd, byte)) 110 (SMBUS_READW(device_get_parent(bus), slave, cmd, word)) 112 (SMBUS_PCALL(device_get_parent(bus), slave, cmd, sdata, rdata)) 114 (SMBUS_BWRITE(device_get_parent(bus), slave, cmd, count, buf)) 116 (SMBUS_BREAD(device_get_parent(bus), slave, cmd, count, buf)) [all …]
|
/freebsd/sys/dev/ntb/ |
H A D | ntb.c | 253 return (NTB_PORT_NUMBER(device_get_parent(ntb))); in ntb_port_number() 259 return (NTB_PEER_PORT_COUNT(device_get_parent(ntb))); in ntb_peer_port_count() 265 return (NTB_PEER_PORT_NUMBER(device_get_parent(ntb), pidx)); in ntb_peer_port_number() 271 return (NTB_PEER_PORT_IDX(device_get_parent(ntb), port)); in ntb_peer_port_idx() 278 return (NTB_LINK_IS_UP(device_get_parent(ntb), speed, width)); in ntb_link_is_up() 285 struct ntb_child **cpp = device_get_softc(device_get_parent(nc->dev)); in ntb_link_enable() 295 return (NTB_LINK_ENABLE(device_get_parent(ntb), speed, width)); in ntb_link_enable() 302 struct ntb_child **cpp = device_get_softc(device_get_parent(nc->dev)); in ntb_link_disable() 312 return (NTB_LINK_DISABLE(device_get_parent(ntb))); in ntb_link_disable() 320 return (nc->enabled && NTB_LINK_ENABLED(device_get_parent(ntb))); in ntb_link_enabled() [all …]
|
/freebsd/sys/dev/acpica/ |
H A D | acpi_container.c | 96 rv = ACPI_ID_PROBE(device_get_parent(dev), dev, syscont_ids, NULL); in acpi_syscont_probe() 115 device_t parent = device_get_parent(bus); in acpi_syscont_alloc_msi() 117 return (PCIB_ALLOC_MSI(device_get_parent(parent), dev, count, maxcount, in acpi_syscont_alloc_msi() 124 device_t parent = device_get_parent(bus); in acpi_syscont_release_msi() 126 return (PCIB_RELEASE_MSI(device_get_parent(parent), dev, count, irqs)); in acpi_syscont_release_msi() 132 device_t parent = device_get_parent(bus); in acpi_syscont_alloc_msix() 134 return (PCIB_ALLOC_MSIX(device_get_parent(parent), dev, irq)); in acpi_syscont_alloc_msix() 140 device_t parent = device_get_parent(bus); in acpi_syscont_release_msix() 142 return (PCIB_RELEASE_MSIX(device_get_parent(parent), dev, irq)); in acpi_syscont_release_msix() 149 device_t parent = device_get_parent(bus); in acpi_syscont_map_msi() [all …]
|
/freebsd/sys/dev/etherswitch/arswitch/ |
H A D | arswitch_reg.c | 76 MDIO_WRITEREG(device_get_parent(dev), 0x18, 0, page); in arswitch_split_setpage() 93 return (MDIO_READREG(device_get_parent(dev), 0x10 | phy, reg)); in arswitch_readreg16() 105 return (MDIO_WRITEREG(device_get_parent(dev), 0x10 | phy, reg, data)); in arswitch_writereg16() 112 (void) MDIO_WRITEREG(device_get_parent(dev), phy, in arswitch_writedbg() 114 (void) MDIO_WRITEREG(device_get_parent(dev), phy, in arswitch_writedbg() 122 (void) MDIO_WRITEREG(device_get_parent(dev), phy, in arswitch_writemmd() 124 (void) MDIO_WRITEREG(device_get_parent(dev), phy, in arswitch_writemmd() 132 lo = MDIO_READREG(device_get_parent(dev), phy, reg); in arswitch_reg_read32() 133 hi = MDIO_READREG(device_get_parent(dev), phy, reg + 1); in arswitch_reg_read32() 150 r = MDIO_WRITEREG(device_get_parent(dev), in arswitch_reg_write32() [all …]
|
/freebsd/sys/dev/pci/ |
H A D | pcivar.h | 402 return PCI_READ_CONFIG(device_get_parent(dev), dev, reg, width); in PCI_ACCESSOR() 408 PCI_WRITE_CONFIG(device_get_parent(dev), dev, reg, val, width); in pci_write_config() 446 return(PCI_ENABLE_BUSMASTER(device_get_parent(dev), dev)); in PCIB_ACCESSOR() 452 return(PCI_DISABLE_BUSMASTER(device_get_parent(dev), dev)); in pci_disable_busmaster() 458 return(PCI_ENABLE_IO(device_get_parent(dev), dev, space)); in pci_enable_io() 464 return(PCI_DISABLE_IO(device_get_parent(dev), dev, space)); in pci_disable_io() 470 return(PCI_GET_VPD_IDENT(device_get_parent(dev), dev, identptr)); in pci_get_vpd_ident() 476 return(PCI_GET_VPD_READONLY(device_get_parent(dev), dev, kw, vptr)); in pci_get_vpd_readonly() 521 return PCI_SET_POWERSTATE(device_get_parent(dev), dev, state); in pci_set_powerstate() 527 return PCI_GET_POWERSTATE(device_get_parent(dev), dev); in pci_get_powerstate() [all …]
|
/freebsd/sys/dev/bhnd/bhndb/ |
H A D | bhnd_bhndb.c | 62 return (BHNDB_POPULATE_BOARD_INFO(device_get_parent(dev), dev, info)); in bhnd_bhndb_read_board_info() 78 return (BHNDB_IS_CORE_DISABLED(device_get_parent(dev), dev, &core)); in bhnd_bhndb_is_hw_disabled() 89 if ((error = BHNDB_GET_HOSTB_CORE(device_get_parent(dev), dev, &core))) in bhnd_bhndb_find_hostb_device() 101 return (BHND_BUS_MAP_INTR(device_get_parent(dev), child, intr, irq)); in bhnd_bhndb_map_intr() 108 return (BHND_BUS_UNMAP_INTR(device_get_parent(dev), child, irq)); in bhnd_bhndb_unmap_intr() 116 return (BHND_PWRCTL_HOSTB_GET_CLKSRC(device_get_parent(dev), child, in bhnd_bhndb_pwrctl_get_clksrc() 125 return (BHND_PWRCTL_HOSTB_GATE_CLOCK(device_get_parent(dev), child, in bhnd_bhndb_pwrctl_gate_clock() 134 return (BHND_PWRCTL_HOSTB_UNGATE_CLOCK(device_get_parent(dev), child, in bhnd_bhndb_pwrctl_ungate_clock() 148 while ((bus = device_get_parent(core)) != NULL) { in bhnd_bhndb_setup_intr() 159 error = BHNDB_ROUTE_INTERRUPTS(device_get_parent(dev), core); in bhnd_bhndb_setup_intr()
|
/freebsd/sys/dev/etherswitch/e6000sw/ |
H A D | e6060sw.c | 171 data = MDIO_READREG(device_get_parent(dev), in e6060sw_probe() 472 p->es_pvid = MDIO_READREG(device_get_parent(dev), in e6060sw_getport() 518 data = MDIO_READREG(device_get_parent(dev), in e6060sw_setport() 524 MDIO_WRITEREG(device_get_parent(dev), in e6060sw_setport() 556 data1 = MDIO_READREG(device_get_parent(dev), in e6060sw_getvgroup() 607 data1 = MDIO_READREG(device_get_parent(dev), in e6060sw_setvgroup() 612 MDIO_WRITEREG(device_get_parent(dev), in e6060sw_setvgroup() 668 MDIO_WRITEREG(device_get_parent(dev), in e6060sw_reset_vlans() 684 data = MDIO_READREG(device_get_parent(dev), in e6060sw_setup() 687 MDIO_WRITEREG(device_get_parent(dev), in e6060sw_setup() [all …]
|
/freebsd/sys/dev/virtio/ |
H A D | virtio.c | 243 BUS_READ_IVAR(device_get_parent(dev), dev, ivar, val); in virtio_read_ivar() 250 BUS_WRITE_IVAR(device_get_parent(dev), dev, ivar, val); in virtio_write_ivar() 257 return (VIRTIO_BUS_NEGOTIATE_FEATURES(device_get_parent(dev), in virtio_negotiate_features() 265 return (VIRTIO_BUS_FINALIZE_FEATURES(device_get_parent(dev))); in virtio_finalize_features() 273 return (VIRTIO_BUS_ALLOC_VIRTQUEUES(device_get_parent(dev), nvqs, info)); in virtio_alloc_virtqueues() 280 return (VIRTIO_BUS_SETUP_INTR(device_get_parent(dev), type)); in virtio_setup_intr() 287 return (VIRTIO_BUS_WITH_FEATURE(device_get_parent(dev), feature)); in virtio_with_feature() 294 VIRTIO_BUS_STOP(device_get_parent(dev)); in virtio_stop() 301 return (VIRTIO_BUS_REINIT(device_get_parent(dev), features)); in virtio_reinit() 308 VIRTIO_BUS_REINIT_COMPLETE(device_get_parent(de in virtio_reinit_complete() [all...] |
/freebsd/sys/dev/bhnd/bcma/ |
H A D | bcma_bhndb.c | 61 cid = BHNDB_GET_CHIPID(device_get_parent(dev), dev); in bcma_bhndb_probe() 97 if (device_get_parent(child) != dev) in bcma_bhndb_suspend_child() 98 BUS_SUSPEND_CHILD(device_get_parent(dev), child); in bcma_bhndb_suspend_child() 111 BHNDB_SUSPEND_RESOURCE(device_get_parent(dev), dev, in bcma_bhndb_suspend_child() 123 if (device_get_parent(child) != dev) in bcma_bhndb_resume_child() 124 BUS_SUSPEND_CHILD(device_get_parent(dev), child); in bcma_bhndb_resume_child() 133 error = BHNDB_RESUME_RESOURCE(device_get_parent(dev), dev, in bcma_bhndb_resume_child() 143 BHNDB_SUSPEND_RESOURCE(device_get_parent(dev), dev, in bcma_bhndb_resume_child()
|
H A D | bcma.c | 240 if (device_get_parent(child) != dev) in bcma_write_ioctl() 302 if (device_get_parent(child) != dev) in bcma_reset_hw() 350 if (device_get_parent(child) != dev) in bcma_suspend_hw() 387 if (device_get_parent(child) != dev) in bcma_read_config() 425 if (device_get_parent(child) != dev) in bcma_write_config() 461 if (device_get_parent(child) != dev) in bcma_get_port_count() 462 return (BHND_BUS_GET_PORT_COUNT(device_get_parent(dev), child, in bcma_get_port_count() 490 if (device_get_parent(child) != dev) in bcma_get_region_count() 491 return (BHND_BUS_GET_REGION_COUNT(device_get_parent(dev), child, in bcma_get_region_count() 612 if (device_get_parent(child) != dev) in bcma_get_intr_count() [all …]
|
/freebsd/sys/dev/ofw/ |
H A D | ofw_bus.h | 42 return (OFW_BUS_GET_COMPAT(device_get_parent(dev), dev)); in ofw_bus_get_compat() 49 return (OFW_BUS_GET_MODEL(device_get_parent(dev), dev)); in ofw_bus_get_model() 56 return (OFW_BUS_GET_NAME(device_get_parent(dev), dev)); in ofw_bus_get_name() 63 return (OFW_BUS_GET_NODE(device_get_parent(dev), dev)); in ofw_bus_get_node() 70 return (OFW_BUS_GET_TYPE(device_get_parent(dev), dev)); in ofw_bus_get_type()
|
/freebsd/sys/dev/sdio/ |
H A D | sdio_subr.c | 80 pdev = device_get_parent(dev); in sdio_set_bool_for_func() 127 pdev = device_get_parent(f->dev); in sdio_set_block_size() 147 error = SDIO_READ_DIRECT(device_get_parent(f->dev), f->fn, addr, &v); in sdio_read_1() 164 error = SDIO_WRITE_DIRECT(device_get_parent(f->dev), f->fn, addr, val); in sdio_write_1() 175 error = SDIO_READ_EXTENDED(device_get_parent(f->dev), f->fn, addr, in sdio_read_4() 193 error = SDIO_WRITE_EXTENDED(device_get_parent(f->dev), f->fn, addr, in sdio_write_4() 205 error = SDIO_READ_DIRECT(device_get_parent(f->dev), 0, addr, &v); in sdio_f0_read_1() 222 error = SDIO_WRITE_DIRECT(device_get_parent(f->dev), 0, addr, val); in sdio_f0_write_1()
|
/freebsd/sys/dev/mmc/ |
H A D | mmcbrvar.h | 110 if (__predict_false(BUS_READ_IVAR(device_get_parent(dev), dev, in MMCBR_ACCESSOR() 123 return (MMCBR_UPDATE_IOS(device_get_parent(dev), dev)); in mmcbr_update_ios() 130 return (MMCBR_TUNE(device_get_parent(dev), dev, hs400)); in mmcbr_tune() 137 return (MMCBR_RETUNE(device_get_parent(dev), dev, reset)); in mmcbr_retune() 144 return (MMCBR_SWITCH_VCCQ(device_get_parent(dev), dev)); in mmcbr_switch_vccq() 151 return (MMCBR_GET_RO(device_get_parent(dev), dev)); in mmcbr_get_ro()
|
/freebsd/sys/dev/pwm/ |
H A D | pwmbus.c | 76 device_get_nameunit(device_get_parent(dev)), ivars->pi_channel); in pwmbus_child_location() 164 parent = device_get_parent(dev); in pwmbus_attach() 198 return (PWMBUS_CHANNEL_CONFIG(device_get_parent(dev), chan, period, duty)); in pwmbus_channel_config() 204 return (PWMBUS_CHANNEL_GET_CONFIG(device_get_parent(dev), chan, period, duty)); in pwmbus_channel_get_config() 210 return (PWMBUS_CHANNEL_GET_FLAGS(device_get_parent(dev), chan, flags)); in pwmbus_channel_get_flags() 216 return (PWMBUS_CHANNEL_ENABLE(device_get_parent(dev), chan, enable)); in pwmbus_channel_enable() 222 return (PWMBUS_CHANNEL_SET_FLAGS(device_get_parent(dev), chan, flags)); in pwmbus_channel_set_flags() 228 return (PWMBUS_CHANNEL_IS_ENABLED(device_get_parent(dev), chan, enable)); in pwmbus_channel_is_enabled() 234 return (PWMBUS_CHANNEL_COUNT(device_get_parent(dev), nchannel)); in pwmbus_channel_count()
|
/freebsd/sys/dev/bhnd/siba/ |
H A D | siba.c | 250 if (device_get_parent(child) != dev) in siba_alloc_pmu() 323 if (device_get_parent(child) != dev) in siba_release_pmu() 382 if (device_get_parent(child) != dev) in siba_get_clock_latency() 437 if (device_get_parent(child) != dev) in siba_get_clock_freq() 478 if (device_get_parent(child) != dev) in siba_request_ext_rsrc() 513 if (device_get_parent(child) != dev) in siba_release_ext_rsrc() 549 if (device_get_parent(child) != dev) in siba_request_clock() 601 if (device_get_parent(child) != dev) in siba_enable_clocks() 675 if (device_get_parent(child) != dev) in siba_write_ioctl() 733 if (device_get_parent(child) != dev) in siba_reset_hw() [all …]
|
H A D | siba_bhndb.c | 99 cid = BHNDB_GET_CHIPID(device_get_parent(dev), dev); in siba_bhndb_probe() 167 BHNDB_SUSPEND_RESOURCE(device_get_parent(dev), dev, in siba_bhndb_suspend_cfgblocks() 178 if (device_get_parent(child) != dev) in siba_bhndb_suspend_child() 179 BUS_SUSPEND_CHILD(device_get_parent(dev), child); in siba_bhndb_suspend_child() 199 if (device_get_parent(child) != dev) in siba_bhndb_resume_child() 200 BUS_SUSPEND_CHILD(device_get_parent(dev), child); in siba_bhndb_resume_child() 212 error = BHNDB_RESUME_RESOURCE(device_get_parent(dev), dev, in siba_bhndb_resume_child()
|
/freebsd/sys/dev/ata/ |
H A D | ata-pci.c | 190 return (BUS_READ_IVAR(device_get_parent(dev), dev, which, result)); in ata_pci_read_ivar() 197 return (BUS_WRITE_IVAR(device_get_parent(dev), dev, which, value)); in ata_pci_write_ivar() 236 res = BUS_ALLOC_RESOURCE(device_get_parent(dev), dev, in ata_pci_alloc_resource() 248 res = BUS_ALLOC_RESOURCE(device_get_parent(dev), dev, in ata_pci_alloc_resource() 258 res = BUS_ALLOC_RESOURCE(device_get_parent(dev), child, in ata_pci_alloc_resource() 269 res = BUS_ALLOC_RESOURCE(device_get_parent(dev), dev, in ata_pci_alloc_resource() 289 return BUS_RELEASE_RESOURCE(device_get_parent(dev), dev, in ata_pci_release_resource() 299 return BUS_RELEASE_RESOURCE(device_get_parent(dev), child, in ata_pci_release_resource() 310 return (BUS_RELEASE_RESOURCE(device_get_parent(dev), child, in ata_pci_release_resource() 325 return BUS_SETUP_INTR(device_get_parent(dev), child, irq, in ata_pci_setup_intr() [all …]
|
/freebsd/sys/dev/pccard/ |
H A D | pccardvar.h | 119 return CARD_DO_PRODUCT_LOOKUP(device_get_parent(dev), dev, in pccard_product_lookup() 162 return (CARD_CIS_SCAN(device_get_parent(dev), dev, fct, arg)); in pccard_cis_scan() 168 return (CARD_ATTR_READ(device_get_parent(dev), dev, offset, val)); in pccard_attr_read_1() 174 return (CARD_ATTR_WRITE(device_get_parent(dev), dev, offset, val)); in pccard_attr_write_1() 180 return (CARD_CCR_READ(device_get_parent(dev), dev, offset, val)); in pccard_ccr_read_1() 186 return (CARD_CCR_WRITE(device_get_parent(dev), dev, offset, val)); in pccard_ccr_write_1() 211 return BUS_READ_IVAR(device_get_parent(dev), dev, \
|
/freebsd/sys/dev/ow/ |
H A D | own.h | 40 device_t ndev = device_get_parent(pdev); in own_send_command() 54 device_t ndev = device_get_parent(pdev); in own_acquire_bus() 62 device_t ndev = device_get_parent(pdev); in own_release_bus() 70 device_t ndev = device_get_parent(pdev); in own_crc()
|