/freebsd/sys/dev/acpica/ |
H A D | acpi_battery.c | 100 acpi_battery_bst_valid(struct acpi_bst *bst) in acpi_battery_bst_valid() argument 103 return (bst->state != ACPI_BATT_STAT_NOT_PRESENT && in acpi_battery_bst_valid() 104 bst->cap != ACPI_BATT_UNKNOWN && bst->volt != ACPI_BATT_UNKNOWN); in acpi_battery_bst_valid() 123 struct acpi_bst *bst; in acpi_battery_get_battinfo() local 142 bst = malloc(devcount * sizeof(*bst), M_TEMP, M_WAITOK | M_ZERO); in acpi_battery_get_battinfo() 173 if (ACPI_BATT_GET_STATUS(batt_dev, &bst[i]) != 0 || in acpi_battery_get_battinfo() 178 if (!acpi_battery_bst_valid(&bst[i]) || in acpi_battery_get_battinfo() 187 if ((bst[ in acpi_battery_get_battinfo() [all...] |
H A D | acpi_smbat.c | 48 struct acpi_bst bst; member 59 static int acpi_smbat_get_bst(device_t dev, struct acpi_bst *bst); 344 acpi_smbat_get_bst(device_t dev, struct acpi_bst *bst) in acpi_smbat_get_bst() argument 374 sc->bst.state = 0; in acpi_smbat_get_bst() 376 sc->bst.state |= ACPI_BATT_STAT_DISCHARG; in acpi_smbat_get_bst() 379 sc->bst.state |= ACPI_BATT_STAT_CRITICAL; in acpi_smbat_get_bst() 389 sc->bst.rate = val * factor; in acpi_smbat_get_bst() 390 sc->bst.state &= ~SMBATT_BS_DISCHARGING; in acpi_smbat_get_bst() 391 sc->bst.state |= ACPI_BATT_STAT_CHARGING; in acpi_smbat_get_bst() 393 sc->bst.rate = (-val) * factor; in acpi_smbat_get_bst() [all …]
|
H A D | acpi_cmbat.c | 69 struct acpi_bst bst; member 282 if (acpi_PkgInt32(res, 0, &sc->bst.state) != 0) in acpi_cmbat_get_bst() 284 if (acpi_PkgInt32(res, 1, &sc->bst.rate) != 0) in acpi_cmbat_get_bst() 286 if (acpi_PkgInt32(res, 2, &sc->bst.cap) != 0) in acpi_cmbat_get_bst() 288 if (acpi_PkgInt32(res, 3, &sc->bst.volt) != 0) in acpi_cmbat_get_bst() 293 sc->bst.state &= ACPI_BATT_STAT_BST_MASK; in acpi_cmbat_get_bst() 294 if ((sc->bst.state & ACPI_BATT_STAT_INVALID) == ACPI_BATT_STAT_INVALID) in acpi_cmbat_get_bst() 299 if (sc->bst.state & ACPI_BATT_STAT_CRITICAL) { in acpi_cmbat_get_bst() 517 acpi_cmbat_bst(device_t dev, struct acpi_bst *bst) in acpi_cmbat_bst() argument 526 memcpy(bst, &sc->bst, sizeof(*bst)); in acpi_cmbat_bst() [all …]
|
/freebsd/sys/dev/uart/ |
H A D | uart.h | 41 bus_space_tag_t bst; member 62 ret = bus_space_read_8(bas->bst, bas->bsh, uart_regofs(bas, reg)); in uart_getreg() 66 ret = bus_space_read_4(bas->bst, bas->bsh, uart_regofs(bas, reg)); in uart_getreg() 69 ret = bus_space_read_2(bas->bst, bas->bsh, uart_regofs(bas, reg)); in uart_getreg() 72 ret = bus_space_read_1(bas->bst, bas->bsh, uart_regofs(bas, reg)); in uart_getreg() 86 bus_space_write_8(bas->bst, bas->bsh, uart_regofs(bas, reg), value); in uart_setreg() 90 bus_space_write_4(bas->bst, bas->bsh, uart_regofs(bas, reg), value); in uart_setreg() 93 bus_space_write_2(bas->bst, bas->bsh, uart_regofs(bas, reg), value); in uart_setreg() 96 bus_space_write_1(bas->bst, bas->bsh, uart_regofs(bas, reg), value); in uart_setreg() 107 bus_space_barrier((bas)->bst, (bas)->bsh, 0, 0, \
|
H A D | uart_cpu_fdt.c | 63 if (b1->bst != b2->bst) in uart_cpu_eqres() 76 bus_space_tag_t bst; in uart_cpu_getdev() local 87 err = uart_cpu_fdt_probe(&class, &bst, &bsh, &br, &rclk, in uart_cpu_getdev() 104 di->bas.bst = bst; in uart_cpu_getdev() 107 uart_bus_space_mem = di->bas.bst; in uart_cpu_getdev()
|
H A D | uart_cpu_arm64.c | 84 bus_space_tag_t bst; in uart_cpu_fdt_setup() local 88 err = uart_cpu_fdt_probe(&class, &bst, &bsh, &br, &rclk, in uart_cpu_fdt_setup() 105 di->bas.bst = bst; in uart_cpu_fdt_setup() 107 uart_bus_space_mem = di->bas.bst; in uart_cpu_fdt_setup()
|
H A D | uart_cpu_x86.c | 50 return ((b1->bsh == b2->bsh && b1->bst == b2->bst) ? 1 : 0); in uart_cpu_eqres() 105 di->bas.bst = uart_bus_space_io; in uart_cpu_getdev() 106 if (bus_space_map(di->bas.bst, ivar, uart_getrange(class), 0, in uart_cpu_getdev()
|
/freebsd/sys/arm/freescale/vybrid/ |
H A D | vf_common.h | 30 bus_space_read_4(_sc->bst, _sc->bsh, _reg) 32 bus_space_write_4(_sc->bst, _sc->bsh, _reg, _val) 34 bus_space_read_2(_sc->bst, _sc->bsh, _reg) 36 bus_space_write_2(_sc->bst, _sc->bsh, _reg, _val) 38 bus_space_read_1(_sc->bst, _sc->bsh, _reg) 40 bus_space_write_1(_sc->bst, _sc->bsh, _reg, _val)
|
/freebsd/sys/dev/dpaa2/ |
H A D | dpaa2_console.c | 112 bus_space_tag_t bst; member 119 bus_space_tag_t bst; member 168 bus_space_read_region_1(cd->bst, cd->bsh, offset + count, p + count, l); in dpaa2_cons_read_bs() 175 bus_space_read_region_8(cd->bst, cd->bsh, offset + count, (uint64_t *)(p + count), l); in dpaa2_cons_read_bs() 182 bus_space_read_region_4(cd->bst, cd->bsh, offset + count, (uint32_t *)(p + count), l); in dpaa2_cons_read_bs() 189 bus_space_read_region_2(cd->bst, cd->bsh, offset + count, (uint16_t *)(p + count), l); in dpaa2_cons_read_bs() 195 bus_space_read_region_1(cd->bst, cd->bsh, offset + count, p + count, len); in dpaa2_cons_read_bs() 341 error = bus_space_map(sc->bst, pa, size, 0, &cd->bsh); in dpaa2_cons_create_dev() 348 cd->bst = sc->bst; in dpaa2_cons_create_dev() 355 bus_space_unmap(cd->bst, cd->bsh, cd->size); in dpaa2_cons_create_dev() [all …]
|
/freebsd/sys/arm/ti/ |
H A D | ti_scm_syscon.c | 67 bus_space_tag_t bst; member 92 bus_space_write_4(sc->bst, sc->bsh, offset, val); in ti_scm_syscon_write_4() 106 val = bus_space_read_4(sc->bst, sc->bsh, offset); in ti_scm_syscon_read_4() 120 reg = bus_space_read_4(sc->bst, sc->bsh, offset); in ti_scm_syscon_modify_4() 123 bus_space_write_4(sc->bst, sc->bsh, offset, reg); in ti_scm_syscon_modify_4() 173 sc->bst = rman_get_bustag(sc->res[0]); in ti_scm_syscon_attach() 217 bus_space_write_4(sc->bst, sc->bsh, addr, val); in ti_scm_syscon_clk_write_4() 228 *val = bus_space_read_4(sc->bst, sc->bsh, addr); in ti_scm_syscon_clk_read_4() 241 reg = bus_space_read_4(sc->bst, sc->bsh, addr); in ti_scm_syscon_clk_modify_4() 244 bus_space_write_4(sc->bst, sc->bsh, addr, reg); in ti_scm_syscon_clk_modify_4()
|
H A D | ti_prcm.c | 69 bus_space_tag_t bst; member 168 sc->bst = rman_get_bustag(sc->mem_res); in ti_prcm_attach() 206 bus_space_write_4(sc->bst, sc->bsh, addr, val); in ti_prcm_write_4() 216 *val = bus_space_read_4(sc->bst, sc->bsh, addr); in ti_prcm_read_4() 229 reg = bus_space_read_4(sc->bst, sc->bsh, addr); in ti_prcm_modify_4() 232 bus_space_write_4(sc->bst, sc->bsh, addr, reg); in ti_prcm_modify_4()
|
/freebsd/sys/contrib/device-tree/Bindings/iio/pressure/ |
H A D | bmp085.yaml | 16 https://www.bosch-sensortec.com/bst/products/all_products/bmp180 17 https://www.bosch-sensortec.com/bst/products/all_products/bmp280 18 https://www.bosch-sensortec.com/bst/products/all_products/bme280 19 https://www.bosch-sensortec.com/bst/products/all_products/bmp380 20 https://www.bosch-sensortec.com/bst/products/all_products/bmp580
|
/freebsd/sys/dev/clk/allwinner/ |
H A D | aw_ccu.c | 54 bus_space_tag_t bst; member 92 bus_space_write_4(sc->bst, bsh, reg, val); in aw_ccu_write_4() 110 *val = bus_space_read_4(sc->bst, bsh, reg); in aw_ccu_read_4() 129 val = bus_space_read_4(sc->bst, bsh, reg); in aw_ccu_modify_4() 132 bus_space_write_4(sc->bst, bsh, reg, val); in aw_ccu_modify_4() 206 sc->bst = bus_get_bus_tag(dev); in aw_ccu_attach() 207 error = bus_space_map(sc->bst, CCU_BASE, CCU_SIZE, 0, in aw_ccu_attach()
|
/freebsd/sys/arm/allwinner/a20/ |
H A D | a20_cpu_cfg.c | 55 bus_space_tag_t bst; member 62 bus_space_read_4((sc)->bst, (sc)->bsh, (reg)) 64 bus_space_write_4((sc)->bst, (sc)->bsh, (reg), (val)) 96 sc->bst = rman_get_bustag(sc->res); in a20_cpu_cfg_attach()
|
/freebsd/sys/arm/allwinner/ |
H A D | a10_sramc.c | 55 bus_space_tag_t bst; member 62 bus_space_read_4((sc)->bst, (sc)->bsh, (reg)) 64 bus_space_write_4((sc)->bst, (sc)->bsh, (reg), (val)) 90 sc->bst = rman_get_bustag(sc->res); in a10_sramc_attach()
|
/freebsd/sys/dev/scc/ |
H A D | scc_bfe.h | 41 bus_space_tag_t bst; member 51 bus_space_read_1((bas)->bst, (bas)->bsh, scc_regofs(bas, reg)) 53 bus_space_write_1((bas)->bst, (bas)->bsh, scc_regofs(bas, reg), value) 56 bus_space_barrier((bas)->bst, (bas)->bsh, 0, (bas)->range, \
|
H A D | scc_dev_quicc.c | 47 bus_space_read_2((bas)->bst, (bas)->bsh, reg) 49 bus_space_read_4((bas)->bst, (bas)->bsh, reg) 52 bus_space_write_2((bas)->bst, (bas)->bsh, reg, val) 54 bus_space_write_4((bas)->bst, (bas)->bsh, reg, val)
|
/freebsd/sys/contrib/device-tree/Bindings/sound/ |
H A D | cs35l35.txt | 51 - cirrus,bst-pdn-fet-on : Boolean to determine if the Boost PDN control 85 - cirrus,classh-bst-overide : Boolean 86 - cirrus,classh-bst-max-limit 158 cirrus,classh-bst-overide; 159 cirrus,classh-bst-max-limit = <0x01>;
|
/freebsd/sys/arm/freescale/imx/ |
H A D | imx6_audmux.c | 53 bus_space_read_4(_sc->bst, _sc->bsh, _reg) 55 bus_space_write_4(_sc->bst, _sc->bsh, _reg, _val) 73 bus_space_tag_t bst; member 127 sc->bst = rman_get_bustag(sc->res[0]); in audmux_attach()
|
/freebsd/sys/arm/ti/am335x/ |
H A D | am3359_cppi41.c | 60 bus_space_tag_t bst; member 87 bus_space_write_4(sc->bst, sc->bsh, addr, val); in ti_am3359_cppi41_write_4() 101 val = bus_space_read_4(sc->bst, sc->bsh, addr); in ti_am3359_cppi41_read_4() 138 sc->bst = rman_get_bustag(sc->res[0]); in ti_am3359_cppi41_attach()
|
/freebsd/sys/dev/agp/ |
H A D | agp_amd.c | 55 #define READ2(off) bus_space_read_2(sc->bst, sc->bsh, off) 56 #define READ4(off) bus_space_read_4(sc->bst, sc->bsh, off) 57 #define WRITE2(off,v) bus_space_write_2(sc->bst, sc->bsh, off, v) 58 #define WRITE4(off,v) bus_space_write_4(sc->bst, sc->bsh, off, v) 71 bus_space_tag_t bst; /* bus_space tag */ member 229 sc->bst = rman_get_bustag(sc->regs); in agp_amd_attach()
|
/freebsd/sys/contrib/device-tree/Bindings/iio/magnetometer/ |
H A D | bmc150_magn.txt | 3 http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf
|
/freebsd/sys/contrib/vchiq/interface/vchiq_arm/ |
H A D | vchiq_kmod.c | 74 bus_space_tag_t bst; member 91 bus_space_read_4(bcm_vchiq_sc->bst, bcm_vchiq_sc->bsh, (reg) + \ 94 bus_space_write_4(bcm_vchiq_sc->bst, bcm_vchiq_sc->bsh, (reg) + \ 161 sc->bst = rman_get_bustag(sc->mem_res); in bcm_vchiq_attach()
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_wdog.c | 58 #define READ(_sc, _r) bus_space_read_4((_sc)->bst, (_sc)->bsh, (_r) + (_sc)->regs_offset) 59 #define WRITE(_sc, _r, _v) bus_space_write_4((_sc)->bst, (_sc)->bsh, (_r) + (_sc)->regs_offset, (_v… 75 bus_space_tag_t bst; member 135 sc->bst = rman_get_bustag(sc->res); in bcmwd_attach()
|
/freebsd/sys/contrib/device-tree/Bindings/iio/accel/ |
H A D | bma180.txt | 5 http://ae-bst.resource.bosch.com/media/products/dokumente/bma250/bst-bma250-ds002-05.pdf
|