/openbmc/u-boot/arch/x86/cpu/broadwell/ |
H A D | adsp.c | 38 u32 tmp32; in broadwell_adsp_probe() local 53 tmp32 = type == WILDCAT_POINT ? ADSP_SHIM_BASE_WPT : ADSP_SHIM_BASE_LPT; in broadwell_adsp_probe() 54 writel(ADSP_SHIM_LTRC_VALUE, bar0 + tmp32); in broadwell_adsp_probe() 63 dm_pci_read_config32(dev, ADSP_PCI_VDRTCTL0, &tmp32); in broadwell_adsp_probe() 66 tmp32 &= ~ADSP_VDRTCTL0_D3PGD_WPT; in broadwell_adsp_probe() 68 tmp32 &= ~ADSP_VDRTCTL0_D3SRAMPGD_WPT; in broadwell_adsp_probe() 70 tmp32 |= ADSP_VDRTCTL0_D3SRAMPGD_WPT; in broadwell_adsp_probe() 72 tmp32 |= ADSP_VDRTCTL0_D3PGD_WPT; in broadwell_adsp_probe() 76 tmp32 &= ~ADSP_VDRTCTL0_D3PGD_LPT; in broadwell_adsp_probe() 78 tmp32 &= ~ADSP_VDRTCTL0_D3SRAMPGD_LPT; in broadwell_adsp_probe() [all …]
|
/openbmc/u-boot/drivers/ddr/imx/imx8m/ |
H A D | helper.c | 29 u32 tmp32, i; in ddr_load_train_firmware() local 39 tmp32 = readl(pr_from32); in ddr_load_train_firmware() 40 writew(tmp32 & 0x0000ffff, pr_to32); in ddr_load_train_firmware() 42 writew((tmp32 >> 16) & 0x0000ffff, pr_to32); in ddr_load_train_firmware() 51 tmp32 = readl(pr_from32); in ddr_load_train_firmware() 52 writew(tmp32 & 0x0000ffff, pr_to32); in ddr_load_train_firmware() 54 writew((tmp32 >> 16) & 0x0000ffff, pr_to32); in ddr_load_train_firmware() 64 tmp32 = (readw(pr_to32) & 0x0000ffff); in ddr_load_train_firmware() 66 tmp32 += ((readw(pr_to32) & 0x0000ffff) << 16); in ddr_load_train_firmware() 68 if (tmp32 != readl(pr_from32)) { in ddr_load_train_firmware() [all …]
|
/openbmc/u-boot/drivers/pci/ |
H A D | pci_ftpci100.c | 33 unsigned int i, tmp32, bar_no, iovsmem = 1; in setup_pci_bar() local 54 PCI_BASE_ADDRESS_0 + i * 4, &tmp32); in setup_pci_bar() 56 if (tmp32 == 0x0) in setup_pci_bar() 60 if (tmp32 & 0x1) { in setup_pci_bar() 62 unsigned int size_mask = ~(tmp32 & 0xfffffffc); in setup_pci_bar() 83 unsigned int is_64bit = ((tmp32 & 0x6) == 0x4); in setup_pci_bar() 84 unsigned int is_pref = tmp32 & 0x8; in setup_pci_bar() 85 unsigned int size_mask = ~(tmp32 & 0xfffffff0); in setup_pci_bar() 128 pci_hose_read_config_dword(hose, dev_nu, PCI_CACHE_LINE_SIZE, &tmp32); in setup_pci_bar() 130 pci_hose_read_config_dword(hose, dev_nu, PCI_CACHE_LINE_SIZE, &tmp32); in setup_pci_bar() [all …]
|
/openbmc/u-boot/lib/ |
H A D | uuid.c | 147 uint32_t tmp32; in uuid_str_to_bin() local 159 tmp32 = cpu_to_be32(simple_strtoul(uuid_str, NULL, 16)); in uuid_str_to_bin() 160 memcpy(uuid_bin, &tmp32, 4); in uuid_str_to_bin() 168 tmp32 = cpu_to_le32(simple_strtoul(uuid_str, NULL, 16)); in uuid_str_to_bin() 169 memcpy(uuid_bin, &tmp32, 4); in uuid_str_to_bin()
|
/openbmc/linux/drivers/virtio/ |
H A D | virtio_pci_modern.c | 403 u32 tmp32; in virtio_pci_find_shm_cap() local 435 offset), &tmp32); in virtio_pci_find_shm_cap() 436 res_offset = tmp32; in virtio_pci_find_shm_cap() 438 length), &tmp32); in virtio_pci_find_shm_cap() 439 res_length = tmp32; in virtio_pci_find_shm_cap() 444 offset_hi), &tmp32); in virtio_pci_find_shm_cap() 445 res_offset |= ((u64)tmp32) << 32; in virtio_pci_find_shm_cap() 448 length_hi), &tmp32); in virtio_pci_find_shm_cap() 449 res_length |= ((u64)tmp32) << 32; in virtio_pci_find_shm_cap()
|
/openbmc/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | bf.c | 347 u32 tmp32; in rtw_bf_phy_init() local 352 tmp32 = rtw_read32(rtwdev, REG_MU_TX_CTL); in rtw_bf_phy_init() 354 tmp32 |= BIT_MU_P1_WAIT_STATE_EN; in rtw_bf_phy_init() 356 tmp32 &= ~BIT_MASK_R_MU_RL; in rtw_bf_phy_init() 357 tmp32 |= (retry_limit << BIT_SHIFT_R_MU_RL) & BIT_MASK_R_MU_RL; in rtw_bf_phy_init() 359 tmp32 &= ~BIT_EN_MU_MIMO; in rtw_bf_phy_init() 361 tmp32 &= ~BIT_MASK_R_MU_TABLE_VALID; in rtw_bf_phy_init() 362 rtw_write32(rtwdev, REG_MU_TX_CTL, tmp32); in rtw_bf_phy_init()
|
/openbmc/linux/arch/mips/sgi-ip22/ |
H A D | ip22-gio.c | 271 u32 tmp32; in ip22_gio_id() local 277 if (!get_dbe(tmp32, ptr32)) { in ip22_gio_id() 294 *res = tmp32; in ip22_gio_id() 300 tmp8 == (tmp32 & 0xff) && in ip22_gio_id() 301 tmp16 == (tmp32 & 0xffff)) { in ip22_gio_id() 302 *res = tmp32; in ip22_gio_id()
|
/openbmc/linux/drivers/hwtracing/coresight/ |
H A D | coresight-config.c | 24 u32 tmp32 = reg_csdev->reg_desc.val32; in cscfg_set_reg() local 32 tmp32 = *p_val32; in cscfg_set_reg() 33 tmp32 &= ~reg_csdev->reg_desc.mask32; in cscfg_set_reg() 34 tmp32 |= reg_csdev->reg_desc.val32 & reg_csdev->reg_desc.mask32; in cscfg_set_reg() 36 *p_val32 = tmp32; in cscfg_set_reg()
|
/openbmc/linux/drivers/usb/misc/sisusbvga/ |
H A D | sisusbvga.c | 1824 u32 tmp32; in sisusb_init_gfxcore() local 1945 ret |= sisusb_read_pci_config(sisusb, 0x50, &tmp32); in sisusb_init_gfxcore() 1946 tmp32 &= 0x00f00000; in sisusb_init_gfxcore() 1947 tmp8 = (tmp32 == 0x100000) ? 0x33 : 0x03; in sisusb_init_gfxcore() 1949 tmp8 = (tmp32 == 0x100000) ? 0xaa : 0x88; in sisusb_init_gfxcore() 2071 u32 tmp32; in sisusb_do_init_gfxdevice() local 2101 ret |= sisusb_read_pci_config(sisusb, 0x10, &tmp32); in sisusb_do_init_gfxdevice() 2103 ret |= sisusb_read_pci_config(sisusb, 0x10, &tmp32); in sisusb_do_init_gfxdevice() 2104 tmp32 &= 0x0f; in sisusb_do_init_gfxdevice() 2105 tmp32 |= SISUSB_PCI_MEMBASE; in sisusb_do_init_gfxdevice() [all …]
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | pci_common.c | 57 u32 tmp32, *addr; in sun4u_read_pci_cfg_host() local 95 tmp32 = 0xffffffff; in sun4u_read_pci_cfg_host() 97 where, 2, &tmp32); in sun4u_read_pci_cfg_host() 98 *value = tmp32; in sun4u_read_pci_cfg_host() 100 tmp32 = 0xffffffff; in sun4u_read_pci_cfg_host() 102 where + 2, 2, &tmp32); in sun4u_read_pci_cfg_host() 103 *value |= tmp32 << 16; in sun4u_read_pci_cfg_host()
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/ |
H A D | 0002-FF-A-v15-lib-uuid-introduce-uuid_str_to_le_bin-funct.patch | 89 + u32 tmp32; 95 + tmp32 = cpu_to_le32(hextoul(uuid_str, NULL)); 96 + memcpy(uuid_bin, &tmp32, 4);
|
/openbmc/qemu/tcg/ |
H A D | tci.c | 379 uint32_t tmp32; in tcg_qemu_tb_exec() local 453 tmp32 = tci_compare32(regs[r1], regs[r2], condition); in tcg_qemu_tb_exec() 454 regs[r0] = regs[tmp32 ? r3 : r4]; in tcg_qemu_tb_exec() 470 tmp32 = tci_compare64(regs[r1], regs[r2], condition); in tcg_qemu_tb_exec() 471 regs[r0] = regs[tmp32 ? r3 : r4]; in tcg_qemu_tb_exec() 610 tmp32 = regs[r1]; in tcg_qemu_tb_exec() 611 regs[r0] = tmp32 ? clz32(tmp32) : regs[r2]; in tcg_qemu_tb_exec() 617 tmp32 = regs[r1]; in tcg_qemu_tb_exec() 618 regs[r0] = tmp32 ? ctz32(tmp32) : regs[r2]; in tcg_qemu_tb_exec()
|
/openbmc/linux/net/caif/ |
H A D | cfctrl.c | 204 u32 tmp32; in cfctrl_linkup_request() local 242 tmp32 = cpu_to_le32(param->u.datagram.connid); in cfctrl_linkup_request() 243 cfpkt_add_body(pkt, &tmp32, 4); in cfctrl_linkup_request() 249 tmp32 = cpu_to_le32(param->u.rfm.connid); in cfctrl_linkup_request() 250 cfpkt_add_body(pkt, &tmp32, 4); in cfctrl_linkup_request()
|
/openbmc/linux/drivers/ata/ |
H A D | sata_nv.c | 1274 u32 tmp32; in nv_adma_host_init() local 1277 pci_read_config_dword(pdev, NV_MCP_SATA_CFG_20, &tmp32); in nv_adma_host_init() 1278 tmp32 |= NV_MCP_SATA_CFG_20_PORT0_EN | in nv_adma_host_init() 1283 pci_write_config_dword(pdev, NV_MCP_SATA_CFG_20, tmp32); in nv_adma_host_init() 2407 u32 tmp32; in nv_pci_device_resume() local 2410 pci_read_config_dword(pdev, NV_MCP_SATA_CFG_20, &tmp32); in nv_pci_device_resume() 2414 tmp32 &= ~(NV_MCP_SATA_CFG_20_PORT0_EN | in nv_pci_device_resume() 2417 tmp32 |= (NV_MCP_SATA_CFG_20_PORT0_EN | in nv_pci_device_resume() 2421 tmp32 &= ~(NV_MCP_SATA_CFG_20_PORT1_EN | in nv_pci_device_resume() 2424 tmp32 |= (NV_MCP_SATA_CFG_20_PORT1_EN | in nv_pci_device_resume() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | radio.c | 978 u32 tmp32; in b43legacy_radio_interference_mitigation_enable() local 1180 tmp32 = b43legacy_shm_read32(dev, B43legacy_SHM_SHARED, in b43legacy_radio_interference_mitigation_enable() 1182 if (!(tmp32 & 0x800)) { in b43legacy_radio_interference_mitigation_enable() 1183 tmp32 |= 0x800; in b43legacy_radio_interference_mitigation_enable() 1186 tmp32); in b43legacy_radio_interference_mitigation_enable() 1222 u32 tmp32; in b43legacy_radio_interference_mitigation_disable() local 1300 tmp32 = b43legacy_shm_read32(dev, B43legacy_SHM_SHARED, in b43legacy_radio_interference_mitigation_disable() 1302 if (tmp32 & 0x800) { in b43legacy_radio_interference_mitigation_disable() 1303 tmp32 &= ~0x800; in b43legacy_radio_interference_mitigation_disable() 1306 tmp32); in b43legacy_radio_interference_mitigation_disable()
|
/openbmc/linux/drivers/comedi/drivers/ |
H A D | dt9812.c | 744 __le32 tmp32; in dt9812_reset_device() local 788 ret = dt9812_read_info(dev, 7, &tmp32, sizeof(tmp32)); in dt9812_reset_device() 793 serial = le32_to_cpu(tmp32); in dt9812_reset_device()
|
/openbmc/qemu/target/alpha/ |
H A D | translate.c | 290 TCGv_i32 tmp32 = tcg_temp_new_i32(); in gen_ldf() local 291 tcg_gen_qemu_ld_i32(tmp32, addr, ctx->mem_idx, MO_LEUL | UNALIGN(ctx)); in gen_ldf() 292 gen_helper_memory_to_f(dest, tmp32); in gen_ldf() 304 TCGv_i32 tmp32 = tcg_temp_new_i32(); in gen_lds() local 305 tcg_gen_qemu_ld_i32(tmp32, addr, ctx->mem_idx, MO_LEUL | UNALIGN(ctx)); in gen_lds() 306 gen_helper_memory_to_s(dest, tmp32); in gen_lds() 356 TCGv_i32 tmp32 = tcg_temp_new_i32(); in gen_stf() local 357 gen_helper_f_to_memory(tmp32, addr); in gen_stf() 358 tcg_gen_qemu_st_i32(tmp32, addr, ctx->mem_idx, MO_LEUL | UNALIGN(ctx)); in gen_stf() 370 TCGv_i32 tmp32 = tcg_temp_new_i32(); in gen_sts() local [all …]
|
/openbmc/linux/drivers/input/ |
H A D | joydev.c | 601 s32 tmp32; in joydev_compat_ioctl() local 617 retval = get_user(tmp32, (s32 __user *) arg); in joydev_compat_ioctl() 619 joydev->glue.JS_TIMELIMIT = tmp32; in joydev_compat_ioctl() 623 tmp32 = joydev->glue.JS_TIMELIMIT; in joydev_compat_ioctl() 624 retval = put_user(tmp32, (s32 __user *) arg); in joydev_compat_ioctl()
|
/openbmc/linux/drivers/net/ethernet/nxp/ |
H A D | lpc_eth.c | 1112 u32 tmp32, hash_val, hashlo, hashhi; in lpc_eth_set_multicast_list() local 1120 tmp32 = LPC_RXFLTRW_ACCEPTUBROADCAST | LPC_RXFLTRW_ACCEPTPERFECT; in lpc_eth_set_multicast_list() 1123 tmp32 |= LPC_RXFLTRW_ACCEPTUNICAST | in lpc_eth_set_multicast_list() 1126 tmp32 |= LPC_RXFLTRW_ACCEPTUMULTICAST; in lpc_eth_set_multicast_list() 1129 tmp32 |= LPC_RXFLTRW_ACCEPTUMULTICASTHASH; in lpc_eth_set_multicast_list() 1131 writel(tmp32, LPC_ENET_RXFILTER_CTRL(pldat->net_base)); in lpc_eth_set_multicast_list()
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | ar5008_phy.c | 115 u32 tmp32, mask, arrayEntry, lastBit; in ar5008_hw_phy_modify_rx_buffer() local 118 tmp32 = ath9k_hw_reverse_bits(reg32, numBits); in ar5008_hw_phy_modify_rx_buffer() 128 rfBuf[arrayEntry] |= ((tmp32 << bitPosition) << in ar5008_hw_phy_modify_rx_buffer() 131 tmp32 = tmp32 >> (8 - bitPosition); in ar5008_hw_phy_modify_rx_buffer()
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
H A D | hw.c | 1020 u32 tmp32 = 0, count = 0; in _rtl92ee_enable_aspm_back_door() local 1034 tmp32 = rtl_read_dword(rtlpriv, REG_BACKDOOR_DBI_RDATA); in _rtl92ee_enable_aspm_back_door() 1035 if ((tmp32 & 0xff00) != 0x2000) { in _rtl92ee_enable_aspm_back_door() 1036 tmp32 &= 0xffff00ff; in _rtl92ee_enable_aspm_back_door() 1038 tmp32 | BIT(13)); in _rtl92ee_enable_aspm_back_door() 1064 tmp32 = rtl_read_dword(rtlpriv, REG_BACKDOOR_DBI_RDATA); in _rtl92ee_enable_aspm_back_door() 1066 tmp32 | BIT(31)); in _rtl92ee_enable_aspm_back_door() 1089 tmp32 = rtl_read_dword(rtlpriv, REG_BACKDOOR_DBI_RDATA); in _rtl92ee_enable_aspm_back_door() 1091 tmp32 | BIT(11) | BIT(12)); in _rtl92ee_enable_aspm_back_door()
|
/openbmc/qemu/migration/ |
H A D | migration.c | 2282 uint32_t tmp32, sibling_error; in source_return_path_thread() local 2344 tmp32 = ldl_be_p(buf); in source_return_path_thread() 2345 trace_source_return_path_thread_pong(tmp32); in source_return_path_thread() 2365 tmp32 = buf[12]; /* Length of the following idstr */ in source_return_path_thread() 2366 buf[13 + tmp32] = '\0'; in source_return_path_thread() 2367 expected_len += tmp32; in source_return_path_thread() 2394 tmp32 = ldl_be_p(buf); in source_return_path_thread() 2395 if (!migrate_handle_rp_resume_ack(ms, tmp32, &err)) { in source_return_path_thread()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | ioam6_parser.c | 412 __u32 tmp32 = node2.egr_wide; in check_ioam_header_and_data() local 422 node2.egr_wide = tmp32; in check_ioam_header_and_data()
|
/openbmc/qemu/target/hexagon/ |
H A D | genptr.c | 1150 TCGv tmp32 = tcg_temp_new(); in gen_asr_r_svw_trun() local 1163 tcg_gen_extrl_i64_i32(tmp32, tmp64); in gen_asr_r_svw_trun() 1164 tcg_gen_deposit_tl(RdV, RdV, tmp32, i * 16, 16); in gen_asr_r_svw_trun() 1176 tcg_gen_extrl_i64_i32(tmp32, tmp64); in gen_asr_r_svw_trun() 1177 tcg_gen_deposit_tl(RdV, RdV, tmp32, i * 16, 16); in gen_asr_r_svw_trun()
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | phy_n.c | 2720 u32 tmp32; in b43_nphy_workarounds_rev7plus() local 2765 tmp32 = b43_ntab_read(dev, B43_NTAB32(30, 0)); in b43_nphy_workarounds_rev7plus() 2766 tmp32 &= 0xffffff; in b43_nphy_workarounds_rev7plus() 2767 b43_ntab_write(dev, B43_NTAB32(30, 0), tmp32); in b43_nphy_workarounds_rev7plus() 3170 u32 tmp32; in b43_nphy_workarounds_rev3plus() local 3175 tmp32 = b43_ntab_read(dev, B43_NTAB32(30, 0)); in b43_nphy_workarounds_rev3plus() 3176 tmp32 &= 0xffffff; in b43_nphy_workarounds_rev3plus() 3177 b43_ntab_write(dev, B43_NTAB32(30, 0), tmp32); in b43_nphy_workarounds_rev3plus() 3312 tmp32 = 0x00088888; in b43_nphy_workarounds_rev3plus() 3314 tmp32 = 0x88888888; in b43_nphy_workarounds_rev3plus() [all …]
|