/freebsd/sys/dev/qat/qat_api/firmware/include/ |
H A D | icp_qat_hw_20_comp.h | 61 uint32_t val32 = 0; in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() local 63 QAT_FIELD_SET(val32, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 68 QAT_FIELD_SET(val32, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 74 val32, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 79 QAT_FIELD_SET(val32, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 84 QAT_FIELD_SET(val32, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 89 QAT_FIELD_SET(val32, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 94 QAT_FIELD_SET(val32, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 99 QAT_FIELD_SET(val32, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 105 QAT_FIELD_SET(val32, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() [all …]
|
/freebsd/sys/dev/sdhci/ |
H A D | fsl_sdhci.c | 207 uint32_t val32, wrk32; in fsl_sdhci_read_1() local 216 val32 = wrk32 & (SDHCI_CTRL_LED | SDHCI_CTRL_CARD_DET | in fsl_sdhci_read_1() 223 val32 |= SDHCI_CTRL_4BITBUS; in fsl_sdhci_read_1() 226 val32 |= SDHCI_CTRL_8BITBUS; in fsl_sdhci_read_1() 237 val32 |= SDHCI_CTRL_ADMA2; in fsl_sdhci_read_1() 240 val32 |= SDHCI_CTRL_ADMA264; in fsl_sdhci_read_1() 243 return val32; in fsl_sdhci_read_1() 261 uint32_t val32; in fsl_sdhci_read_2() local 298 val32 = RD4(sc, SDHCI_INT_STATUS); in fsl_sdhci_read_2() 299 val32 &= RD4(sc, SDHCI_SIGNAL_ENABLE); in fsl_sdhci_read_2() [all …]
|
H A D | sdhci_fsl_fdt.c | 319 uint32_t prescale, div, val32, div_ratio; in fsl_sdhc_fdt_set_clock() local 322 val32 = RD4(sc, SDHCI_CLOCK_CONTROL); in fsl_sdhc_fdt_set_clock() 325 WR4(sc, SDHCI_CLOCK_CONTROL, val32 & ~SDHCI_FSL_CLK_SDCLKEN); in fsl_sdhc_fdt_set_clock() 368 val32 &= ~(SDHCI_FSL_CLK_DIVIDER_MASK | SDHCI_FSL_CLK_PRESCALE_MASK); in fsl_sdhc_fdt_set_clock() 369 val32 |= div << SDHCI_FSL_CLK_DIVIDER_SHIFT; in fsl_sdhc_fdt_set_clock() 370 val32 |= prescale << SDHCI_FSL_CLK_PRESCALE_SHIFT; in fsl_sdhc_fdt_set_clock() 371 val32 |= SDHCI_FSL_CLK_IPGEN | SDHCI_FSL_CLK_SDCLKEN; in fsl_sdhc_fdt_set_clock() 372 WR4(sc, SDHCI_CLOCK_CONTROL, val32); in fsl_sdhc_fdt_set_clock() 379 uint32_t wrk32, val32; in sdhci_fsl_fdt_read_1() local 386 val32 = wrk32 & (SDHCI_CTRL_LED | SDHCI_CTRL_CARD_DET | in sdhci_fsl_fdt_read_1() [all …]
|
H A D | sdhci_fdt.c | 387 uint32_t val32; in sdhci_fdt_read_4() local 389 val32 = bus_read_4(sc->mem_res[slot->num], off); in sdhci_fdt_read_4() 391 val32 &= ~SDHCI_CAN_VDD_180; in sdhci_fdt_read_4() 393 return (val32); in sdhci_fdt_read_4()
|
/freebsd/sys/arm/ti/ |
H A D | ti_sdhci.c | 174 uint32_t clkdiv, val32; in ti_sdhci_read_2() local 190 val32 = RD4(sc, SDHCI_CLOCK_CONTROL); in ti_sdhci_read_2() 191 clkdiv = ((val32 >> MMCHS_SYSCTL_CLKD_SHIFT) & in ti_sdhci_read_2() 193 val32 &= ~(MMCHS_SYSCTL_CLKD_MASK << MMCHS_SYSCTL_CLKD_SHIFT); in ti_sdhci_read_2() 194 val32 |= (clkdiv & SDHCI_DIVIDER_MASK) << SDHCI_DIVIDER_SHIFT; in ti_sdhci_read_2() 196 val32 |= ((clkdiv >> SDHCI_DIVIDER_MASK_LEN) & in ti_sdhci_read_2() 198 return (val32 & 0xffff); in ti_sdhci_read_2() 217 uint32_t val32; in ti_sdhci_read_4() local 219 val32 = RD4(sc, off); in ti_sdhci_read_4() 226 val32 &= ~SDHCI_CAN_DO_HISPD; in ti_sdhci_read_4() [all …]
|
/freebsd/sys/contrib/dev/rtw89/ |
H A D | debug.c | 1247 val32 = DLE_DFI_DUMP(__type, QUOTA, __type##_QTAID_##__id); \ in rtw89_debug_mac_dump_dmac_dbg() 1248 rsv_pgnum = FIELD_GET(B_AX_DLE_RSV_PGNUM, val32); \ in rtw89_debug_mac_dump_dmac_dbg() 1249 use_pgnum = FIELD_GET(B_AX_DLE_USE_PGNUM, val32); \ in rtw89_debug_mac_dump_dmac_dbg() 1256 u32 val32; in rtw89_debug_mac_dump_dmac_dbg() 2467 u32 val32; in rtw89_debug_mac_dbg_port_sel() 2488 val32 = rtw89_read32(rtwdev, R_AX_SCH_DBG_SEL); in rtw89_debug_mac_dbg_port_sel() 2489 val32 |= B_AX_SCH_DBG_EN; in rtw89_debug_mac_dbg_port_sel() 2490 rtw89_write32(rtwdev, R_AX_SCH_DBG_SEL, val32); in rtw89_debug_mac_dbg_port_sel() 2495 val32 = rtw89_read32(rtwdev, R_AX_SCH_DBG_SEL_C1); in rtw89_debug_mac_dbg_port_sel() 2496 val32 | in rtw89_debug_mac_dbg_port_sel() 1001 u32 val32; rtw89_debug_mac_dump_dle_dbg() local 2212 u32 val32; rtw89_debug_mac_dbg_port_sel() local 2816 u32 val32; rtw89_debug_mac_dbg_port_dump() local [all...] |
H A D | mac.c | 1547 u32 val32; in get_dle_mem_cfg() 1550 val32 = (B_AX_MAC_FUNC_EN | B_AX_DMAC_FUNC_EN | in mac_is_txq_empty() 1558 val32 = (B_AX_MAC_FUNC_EN | B_AX_DMAC_FUNC_EN | in mac_is_txq_empty() 1565 rtw89_write32(rtwdev, R_AX_DMAC_FUNC_EN, val32); in mac_is_txq_empty() 1567 val32 = (B_AX_MAC_SEC_CLK_EN | B_AX_DISPATCHER_CLK_EN | in mac_is_txq_empty() 1572 val32 |= B_AX_AXIDMA_CLK_EN; in mac_is_txq_empty() 1573 rtw89_write32(rtwdev, R_AX_DMAC_CLK_EN, val32); in mac_is_txq_empty() 1770 u32 grpnum, qtmp, val32, msk32; in rtw89_mac_resize_ple_rx_quota() 1785 val32 = u32_get_bits(qtmp, QEMP_ACQ_GRP_QSEL_MASK); in rtw89_mac_hw_mgnt_sec() 1786 if (val32 ! in rtw89_mac_hw_mgnt_sec() 1400 u32 val32; dmac_func_en() local 1552 u32 qnum, qtmp, val32, msk32; mac_is_txq_empty() local 1916 u32 val32; dle_is_txq_empty() local 2215 u32 reg, val32; _patch_dis_resp_chk() local 2369 u32 val32; rst_bacam() local 3436 u32 val32; rtw89_disable_fw_watchdog() local 4844 u32 val32; rtw89_mac_coex_init() local 5192 u32 val32; rtw89_mac_init_bfee() local 5575 u32 val32; rtw89_mac_write_xtal_si() local 5599 u32 val32; rtw89_mac_read_xtal_si() local [all...] |
H A D | pci.c | 1632 u32 val32; in rtw89_pci_ops_read32_cmac() 1650 val32 = FIELD_PREP(BDRAM_SIDX_MASK, bd_ram->start_idx) | in rtw89_pci_ops_read8() 1654 rtw89_write32(rtwdev, addr_bdram, val32); in rtw89_pci_ops_read8() 1848 u32 addr32, val32, shift; in rtw89_write16_mdio_mask() 1865 val32 = rtw89_pci_ops_read32_cmac(rtwdev, addr32); 1866 return val32 >> shift; in rtw89_write16_mdio_set() 1872 u32 addr32, val32, shift; in rtw89_write16_mdio_set() 1889 val32 = rtw89_pci_ops_read32_cmac(rtwdev, addr32); in rtw89_write16_mdio_clr() 1890 return val32 >> shift; in rtw89_write16_mdio_clr() 2651 u32 val32; in rtw89_pci_ltr_set() 1443 u32 val32; rtw89_pci_reset_trx_rings() local 1645 u32 addr32, val32, shift; rtw89_pci_ops_read8() local 1669 u32 addr32, val32, shift; rtw89_pci_ops_read16() local 2333 u32 val32; rtw89_pci_set_io_rcy() local 2476 u32 val32; rtw89_pci_mode_op() local 2680 u32 val32; rtw89_pci_ltr_set_v1() local 3721 u32 val32, sts; rtw89_pci_rst_bdram() local [all...] |
/freebsd/sys/arm/arm/ |
H A D | stdatomic.c | 195 reg_t val32, negmask, old; \ 199 val32.v32 = 0x00000000; \ 200 put_##N(&val32, mem, val); \ 215 : "r" (val32.v32), "r" (negmask.v32), "m" (*mem32)); \ 268 reg_t val32, posmask, old; \ 272 val32.v32 = 0x00000000; \ 273 put_##N(&val32, mem, val); \ 291 : "r" (val32.v32), "r" (posmask.v32), "r" (negmask), \ 306 reg_t val32, old; \ 310 val32.v32 = idempotence ? 0xffffffff : 0x00000000; \ [all …]
|
/freebsd/sys/contrib/ncsw/etc/ |
H A D | memcpy.c | 445 uint32_t val32; in MemSet32() local 452 val32 = (uint32_t) val; in MemSet32() 453 val32 |= (val32 << 8); in MemSet32() 454 val32 |= (val32 << 16); in MemSet32() 467 *p_Dst32++ = val32; in MemSet32() 481 uint32_t val32; in IOMemSet32() local 488 val32 = (uint32_t) val; in IOMemSet32() 489 val32 |= (val32 << 8); in IOMemSet32() 490 val32 |= (val32 << 16); in IOMemSet32() 504 WRITE_UINT32(*p_Dst32, val32); in IOMemSet32()
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_sdhci.c | 465 uint32_t val32; in bcm_sdhci_read_2() local 473 val32 = sc->blksz_and_count; in bcm_sdhci_read_2() 475 val32 = sc->cmd_and_mode; in bcm_sdhci_read_2() 477 val32 = RD4(sc, off & ~3); in bcm_sdhci_read_2() 479 return ((val32 >> (off & 3)*8) & 0xffff); in bcm_sdhci_read_2() 504 uint32_t val32 = RD4(sc, off & ~3); in bcm_sdhci_write_1() local 505 val32 &= ~(0xff << (off & 3)*8); in bcm_sdhci_write_1() 506 val32 |= (val << (off & 3)*8); in bcm_sdhci_write_1() 507 WR4(sc, off & ~3, val32); in bcm_sdhci_write_1() 515 uint32_t val32; in bcm_sdhci_write_2() local [all …]
|
H A D | bcm2835_sdhost.c | 274 uint32_t val32; in WR2() local 276 val32 = RD4(sc, off & ~3); in WR2() 277 val32 &= ~(0xffff << (off & 3)*8); in WR2() 278 val32 |= (val << (off & 3)*8); in WR2() 279 WR4(sc, off & ~3, val32); in WR2() 285 uint32_t val32; in WR1() local 287 val32 = RD4(sc, off & ~3); in WR1() 288 val32 &= ~(0xff << (off & 3)*8); in WR1() 289 val32 |= (val << (off & 3)*8); in WR1() 290 WR4(sc, off & ~3, val32); in WR1()
|
/freebsd/sys/contrib/zstd/lib/common/ |
H A D | mem.h | 114 MEM_STATIC void MEM_writeLE32(void* memPtr, U32 val32); 123 MEM_STATIC void MEM_writeBE32(void* memPtr, U32 val32); 344 MEM_STATIC void MEM_writeLE32(void* memPtr, U32 val32) in MEM_writeLE32() argument 347 MEM_write32(memPtr, val32); in MEM_writeLE32() 349 MEM_write32(memPtr, MEM_swap32(val32)); in MEM_writeLE32() 394 MEM_STATIC void MEM_writeBE32(void* memPtr, U32 val32) in MEM_writeBE32() argument 397 MEM_write32(memPtr, MEM_swap32(val32)); in MEM_writeBE32() 399 MEM_write32(memPtr, val32); in MEM_writeBE32()
|
/freebsd/sys/amd64/amd64/ |
H A D | elf_machdep.c | 280 Elf32_Addr *where32, val32; in elf_reloc_internal() local 342 val32 = (Elf32_Addr)(addr + addend - (Elf_Addr)where); in elf_reloc_internal() 345 if (*where32 != val32) in elf_reloc_internal() 346 *where32 = val32; in elf_reloc_internal() 351 val32 = (Elf32_Addr)(addr + addend); in elf_reloc_internal() 355 if (*where32 != val32) in elf_reloc_internal() 356 *where32 = val32; in elf_reloc_internal()
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | mem.h | 355 MEM_STATIC void MEM_writeLE32(void* memPtr, U32 val32) in MEM_writeLE32() argument 358 MEM_write32(memPtr, val32); in MEM_writeLE32() 360 MEM_write32(memPtr, MEM_swap32(val32)); in MEM_writeLE32() 405 MEM_STATIC void MEM_writeBE32(void* memPtr, U32 val32) in MEM_writeBE32() argument 408 MEM_write32(memPtr, MEM_swap32(val32)); in MEM_writeBE32() 410 MEM_write32(memPtr, val32); in MEM_writeBE32()
|
/freebsd/sys/contrib/dev/rtw88/ |
H A D | mac.c | 858 u32 val32; in write_firmware_page() 869 val32 = rtw_read32(rtwdev, REG_MCUFW_CTRL); in write_firmware_page() 870 val32 &= ~BIT_ROM_PGE; in write_firmware_page() 871 val32 |= (page << BIT_SHIFT_ROM_PGE) & BIT_ROM_PGE; in write_firmware_page() 872 rtw_write32(rtwdev, REG_MCUFW_CTRL, val32); in write_firmware_page() 919 u32 val32; in download_firmware_validate_legacy() 922 val32 = rtw_read32(rtwdev, REG_MCUFW_CTRL); in download_firmware_validate_legacy() 923 val32 |= BIT_MCUFWDL_RDY; in download_firmware_validate_legacy() 924 val32 &= ~BIT_WINTINI_RDY; in download_firmware_validate_legacy() 925 rtw_write32(rtwdev, REG_MCUFW_CTRL, val32); in download_firmware_validate_legacy() 851 u32 val32; write_firmware_page() local 912 u32 val32; download_firmware_validate_legacy() local 1206 u32 val32; __priority_queue_cfg_legacy() local [all...] |
H A D | rtw8821c.c | 447 u32 val32; in rtw8821c_set_channel_bb() 503 val32 = rtw_read32_mask(rtwdev, REG_ADCCLK, MASKDWORD); in rtw8821c_set_channel_bb_swing() 504 val32 &= 0xffcffc00; in rtw8821c_set_channel_bb_swing() 505 val32 |= 0x10010000; in rtw8821c_set_channel_bb_swing() 506 rtw_write32_mask(rtwdev, REG_ADCCLK, MASKDWORD, val32); in rtw8821c_set_channel_bb_swing() 516 val32 = rtw_read32_mask(rtwdev, REG_ADCCLK, MASKDWORD); in rtw8821c_set_channel() 517 val32 &= 0xff3ff300; in rtw8821c_set_channel() 518 val32 |= 0x20020000 | ((primary_ch_idx & 0xf) << 2) | 520 rtw_write32_mask(rtwdev, REG_ADCCLK, MASKDWORD, val32); in get_cck_rx_pwr() 525 val32 in get_cck_rx_pwr() 388 u32 val32; rtw8821c_set_channel_bb() local [all...] |
H A D | rtw8822b.c | 615 u32 val32; in rtw8822b_set_channel_bb() local 662 val32 = rtw_read32_mask(rtwdev, REG_ADCCLK, MASKDWORD); in rtw8822b_set_channel_bb() 663 val32 &= 0xFFCFFC00; in rtw8822b_set_channel_bb() 664 val32 |= (RTW_CHANNEL_WIDTH_20); in rtw8822b_set_channel_bb() 665 rtw_write32_mask(rtwdev, REG_ADCCLK, MASKDWORD, val32); in rtw8822b_set_channel_bb() 675 val32 = rtw_read32_mask(rtwdev, REG_ADCCLK, MASKDWORD); in rtw8822b_set_channel_bb() 676 val32 &= 0xFF3FF300; in rtw8822b_set_channel_bb() 677 val32 |= (((primary_ch_idx & 0xf) << 2) | RTW_CHANNEL_WIDTH_40); in rtw8822b_set_channel_bb() 678 rtw_write32_mask(rtwdev, REG_ADCCLK, MASKDWORD, val32); in rtw8822b_set_channel_bb() 683 val32 in rtw8822b_set_channel_bb() [all...] |
H A D | rtw8723d.c | 88 u32 val32; in rtw8723d_lck() 122 val32 = rtw_read32(rtwdev, REG_TBTT_PROHIBIT); in rtw8723d_pwrtrack_init() 123 val32 &= ~BIT_MASK_TBTT_MASK; in rtw8723d_pwrtrack_init() 124 val32 |= WLAN_TBTT_TIME_STOP_BCN; in rtw8723d_pwrtrack_init() 125 rtw_write8(rtwdev, REG_TBTT_PROHIBIT, val32); in rtw8723d_pwrtrack_init() 139 u32 val32; rtw8723d_phy_set_param() local 646 u32 val32; rtw8723d_false_alarm_statistics() local
|
/freebsd/sys/netinet6/ |
H A D | in6_ifattach.c | 158 u_int32_t val32; in generate_tmp_ifid() local 166 val32 = arc4random(); in generate_tmp_ifid() 167 bcopy(&val32, seed + sizeof(val32) * i, sizeof(val32)); in generate_tmp_ifid() 208 val32 = arc4random(); in generate_tmp_ifid() 209 val32 = 1 + (val32 % (0xffffffff - 1)); in generate_tmp_ifid()
|
/freebsd/sys/powerpc/powernv/ |
H A D | opal_sensor.c | 96 uint32_t val32; in opal_sensor_get_val() local 101 rv = opal_call(OPAL_SENSOR_READ, key, token, vtophys(&val32)); in opal_sensor_get_val() 110 val32 = msg.params[0]; in opal_sensor_get_val() 115 *val = be32toh(val32); in opal_sensor_get_val()
|
/freebsd/lib/libc/iconv/ |
H A D | citrus_csmapper.c | 107 uint32_t val32; in find_best_pivot_pvdb() local 132 ret = get32(&r2, &val32); in find_best_pivot_pvdb() 135 norm = val32; in find_best_pivot_pvdb() 146 ret = get32(&r2, &val32); in find_best_pivot_pvdb() 149 norm += val32; in find_best_pivot_pvdb()
|
/freebsd/sys/arm/nvidia/ |
H A D | tegra_sdhci.c | 147 uint32_t val32; in tegra_sdhci_read_4() local 150 val32 = bus_read_4(sc->mem_res, off); in tegra_sdhci_read_4() 153 val32 |= SDHCI_CARD_PRESENT; in tegra_sdhci_read_4() 154 return (val32); in tegra_sdhci_read_4()
|
/freebsd/sys/vm/ |
H A D | vm_meter.c | 309 uint32_t val32; in sysctl_handle_vmstat() local 314 if (req->oldlen == sizeof(val32)) { in sysctl_handle_vmstat() 315 val32 = val; /* truncate */ in sysctl_handle_vmstat() 316 return (SYSCTL_OUT(req, &val32, sizeof(val32))); in sysctl_handle_vmstat()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zio_crypt.c | 670 uint32_t val32; in zio_crypt_encode_params_bp() local 677 memcpy(&val32, iv + sizeof (uint64_t), sizeof (uint32_t)); in zio_crypt_encode_params_bp() 678 BP_SET_IV2(bp, val32); in zio_crypt_encode_params_bp() 686 memcpy(&val32, iv + sizeof (uint64_t), sizeof (uint32_t)); in zio_crypt_encode_params_bp() 687 BP_SET_IV2(bp, BSWAP_32(val32)); in zio_crypt_encode_params_bp() 695 uint32_t val32; in zio_crypt_decode_params_bp() local 710 val32 = (uint32_t)BP_GET_IV2(bp); in zio_crypt_decode_params_bp() 711 memcpy(iv + sizeof (uint64_t), &val32, sizeof (uint32_t)); in zio_crypt_decode_params_bp() 719 val32 = BSWAP_32((uint32_t)BP_GET_IV2(bp)); in zio_crypt_decode_params_bp() 720 memcpy(iv + sizeof (uint64_t), &val32, sizeof (uint32_t)); in zio_crypt_decode_params_bp()
|