/openbmc/linux/drivers/soc/fsl/qe/ |
H A D | qe_io.c | 53 u32 tmp_val; in __par_io_config_pin() local 59 tmp_val = ioread32be(&par_io->cpodr); in __par_io_config_pin() 61 iowrite32be(pin_mask1bit | tmp_val, &par_io->cpodr); in __par_io_config_pin() 63 iowrite32be(~pin_mask1bit & tmp_val, &par_io->cpodr); in __par_io_config_pin() 66 tmp_val = (pin > (QE_PIO_PINS / 2) - 1) ? in __par_io_config_pin() 80 iowrite32be(~pin_mask2bits & tmp_val, &par_io->cpdir2); in __par_io_config_pin() 81 tmp_val &= ~pin_mask2bits; in __par_io_config_pin() 82 iowrite32be(new_mask2bits | tmp_val, &par_io->cpdir2); in __par_io_config_pin() 84 iowrite32be(~pin_mask2bits & tmp_val, &par_io->cpdir1); in __par_io_config_pin() 85 tmp_val &= ~pin_mask2bits; in __par_io_config_pin() [all …]
|
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/ |
H A D | qe_io.c | 22 u32 tmp_val; in qe_config_iopin() local 32 tmp_val = (pin > (NUM_OF_PINS/2) - 1) ? \ in qe_config_iopin() 37 out_be32(&par_io[port].cpdir2, ~pin_2bit_mask & tmp_val); in qe_config_iopin() 38 out_be32(&par_io[port].cpdir2, pin_2bit_dir | tmp_val); in qe_config_iopin() 40 out_be32(&par_io[port].cpdir1, ~pin_2bit_mask & tmp_val); in qe_config_iopin() 41 out_be32(&par_io[port].cpdir1, pin_2bit_dir | tmp_val); in qe_config_iopin() 48 tmp_val = in_be32(&par_io[port].cpodr); in qe_config_iopin() 50 out_be32(&par_io[port].cpodr, pin_1bit_mask | tmp_val); in qe_config_iopin() 52 out_be32(&par_io[port].cpodr, ~pin_1bit_mask & tmp_val); in qe_config_iopin() 55 tmp_val = (pin > (NUM_OF_PINS/2) - 1) ? in qe_config_iopin() [all …]
|
/openbmc/u-boot/arch/powerpc/cpu/mpc83xx/ |
H A D | qe_io.c | 21 u32 tmp_val; in qe_config_iopin() local 30 tmp_val = (pin > (NUM_OF_PINS/2) - 1) ? \ in qe_config_iopin() 35 out_be32(&par_io->ioport[port].dir2, ~pin_2bit_mask & tmp_val); in qe_config_iopin() 36 out_be32(&par_io->ioport[port].dir2, pin_2bit_dir | tmp_val); in qe_config_iopin() 38 out_be32(&par_io->ioport[port].dir1, ~pin_2bit_mask & tmp_val); in qe_config_iopin() 39 out_be32(&par_io->ioport[port].dir1, pin_2bit_dir | tmp_val); in qe_config_iopin() 46 tmp_val = in_be32(&par_io->ioport[port].podr); in qe_config_iopin() 48 out_be32(&par_io->ioport[port].podr, pin_1bit_mask | tmp_val); in qe_config_iopin() 50 out_be32(&par_io->ioport[port].podr, ~pin_1bit_mask & tmp_val); in qe_config_iopin() 54 tmp_val = (pin > (NUM_OF_PINS/2) - 1) ? in qe_config_iopin() [all …]
|
/openbmc/u-boot/board/freescale/mpc8610hpcd/ |
H A D | mpc8610hpcd.c | 41 u8 tmp_val, version; in misc_init_r() local 45 tmp_val = in_8(pixis_base + PIXIS_BRDCFG0); in misc_init_r() 46 out_8(pixis_base + PIXIS_BRDCFG0, tmp_val | 0x80); in misc_init_r() 51 tmp_val = in_8(pixis_base + PIXIS_BRDCFG0); in misc_init_r() 52 out_8(pixis_base + PIXIS_BRDCFG0, tmp_val & 0xbf); in misc_init_r() 59 tmp_val = 0xBF; in misc_init_r() 60 i2c_write(0x38, 0x08, 1, &tmp_val, sizeof(tmp_val)); in misc_init_r() 62 tmp_val = 0; in misc_init_r() 63 i2c_read(0x38, 0x08, 1, &tmp_val, sizeof(tmp_val)); in misc_init_r() 64 debug("DVI Encoder Read: 0x%02x\n", tmp_val); in misc_init_r() [all …]
|
/openbmc/u-boot/drivers/misc/ |
H A D | aspeed_ahbc.c | 22 uint32_t tmp_val; in aspeed_ahbc_remap_enable() local 24 tmp_val = readl(&ahbc->addr_remap); in aspeed_ahbc_remap_enable() 25 tmp_val |= 0x20; in aspeed_ahbc_remap_enable() 27 writel(tmp_val, &ahbc->addr_remap); in aspeed_ahbc_remap_enable()
|
/openbmc/linux/drivers/gpu/drm/sti/ |
H A D | sti_awg_utils.c | 158 long int val, tmp_val; in sti_awg_generate_code_data_enable_mode() local 170 tmp_val = timing->active_lines - 1; in sti_awg_generate_code_data_enable_mode() 172 while (tmp_val > 0) { in sti_awg_generate_code_data_enable_mode() 177 min_t(int, AWG_MAX_ARG, tmp_val), in sti_awg_generate_code_data_enable_mode() 179 tmp_val -= AWG_MAX_ARG; in sti_awg_generate_code_data_enable_mode()
|
/openbmc/linux/drivers/xen/xen-pciback/ |
H A D | conf_space.c | 157 u32 value = 0, tmp_val; in xen_pcibk_config_read() local 187 &tmp_val); in xen_pcibk_config_read() 191 value = merge_value(value, tmp_val, in xen_pcibk_config_read() 210 u32 tmp_val; in xen_pcibk_config_write() local 227 &tmp_val); in xen_pcibk_config_write() 231 tmp_val = merge_value(tmp_val, value, get_mask(size), in xen_pcibk_config_write() 235 tmp_val); in xen_pcibk_config_write()
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-rx8581.c | 212 unsigned int tmp_val; in rx85x1_nvram_read() local 215 ret = regmap_read(rx8581->regmap, RX8581_REG_RAM, &tmp_val); in rx85x1_nvram_read() 216 (*(unsigned char *)val) = (unsigned char) tmp_val; in rx85x1_nvram_read() 225 unsigned char tmp_val; in rx85x1_nvram_write() local 227 tmp_val = *((unsigned char *)val); in rx85x1_nvram_write() 229 (unsigned int)tmp_val); in rx85x1_nvram_write()
|
H A D | rtc-pcf85363.c | 344 unsigned int tmp_val; in pcf85x63_nvram_read() local 347 ret = regmap_read(pcf85363->regmap, CTRL_RAMBYTE, &tmp_val); in pcf85x63_nvram_read() 348 (*(unsigned char *) val) = (unsigned char) tmp_val; in pcf85x63_nvram_read() 357 unsigned char tmp_val; in pcf85x63_nvram_write() local 359 tmp_val = *((unsigned char *)val); in pcf85x63_nvram_write() 361 (unsigned int)tmp_val); in pcf85x63_nvram_write()
|
/openbmc/linux/drivers/pinctrl/ti/ |
H A D | pinctrl-ti-iodelay.c | 219 u32 reg_mask, reg_val, tmp_val; in ti_iodelay_pinconf_set() local 242 tmp_val = c_elements << __ffs(reg->binary_data_coarse_mask); in ti_iodelay_pinconf_set() 243 if (tmp_val & ~reg->binary_data_coarse_mask) { in ti_iodelay_pinconf_set() 245 tmp_val); in ti_iodelay_pinconf_set() 246 tmp_val &= reg->binary_data_coarse_mask; in ti_iodelay_pinconf_set() 248 reg_val |= tmp_val; in ti_iodelay_pinconf_set() 251 tmp_val = f_elements << __ffs(reg->binary_data_fine_mask); in ti_iodelay_pinconf_set() 252 if (tmp_val & ~reg->binary_data_fine_mask) { in ti_iodelay_pinconf_set() 254 tmp_val); in ti_iodelay_pinconf_set() 255 tmp_val &= reg->binary_data_fine_mask; in ti_iodelay_pinconf_set() [all …]
|
/openbmc/u-boot/arch/arm/mach-aspeed/ast2600/ |
H A D | board_common.c | 60 u32 tmp_val; in board_init() local 68 tmp_val = readl(0x1e60008c) & (~BIT(0)); in board_init() 70 writel(tmp_val, 0x1e60008c); in board_init()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_bpf_hash_map.c | 51 __u64 tmp_val = 0; in dump_bpf_hash_map() local 71 ret = bpf_map_update_elem(&hashmap1, &tmp_key, &tmp_val, 0); in dump_bpf_hash_map()
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pci-thunder-pem.c | 40 u64 read_val, tmp_val; in thunder_pem_bridge_read() local 83 tmp_val = readq(pem_pci->pem_reg_base + PEM_CFG_RD); in thunder_pem_bridge_read() 84 tmp_val >>= 32; in thunder_pem_bridge_read() 85 if (!(tmp_val & (0x1f << 25))) in thunder_pem_bridge_read()
|
/openbmc/linux/drivers/vfio/pci/ |
H A D | vfio_pci_config.c | 127 u32 tmp_val = 0; in vfio_user_config_read() local 134 tmp_val = tmp; in vfio_user_config_read() 141 tmp_val = tmp; in vfio_user_config_read() 145 ret = pci_user_read_config_dword(pdev, offset, &tmp_val); in vfio_user_config_read() 149 *val = cpu_to_le32(tmp_val); in vfio_user_config_read() 158 u32 tmp_val = le32_to_cpu(val); in vfio_user_config_write() local 162 ret = pci_user_write_config_byte(pdev, offset, tmp_val); in vfio_user_config_write() 165 ret = pci_user_write_config_word(pdev, offset, tmp_val); in vfio_user_config_write() 168 ret = pci_user_write_config_dword(pdev, offset, tmp_val); in vfio_user_config_write() 537 u32 tmp_val = le32_to_cpu(*val); in vfio_basic_config_read() local [all …]
|
/openbmc/linux/drivers/remoteproc/ |
H A D | imx_dsp_rproc.c | 798 u32 tmp_val = value; in imx_dsp_rproc_memset() local 807 tmp_val |= tmp_val << 8; in imx_dsp_rproc_memset() 808 tmp_val |= tmp_val << 16; in imx_dsp_rproc_memset() 814 writel(tmp_val, tmp_dst++); in imx_dsp_rproc_memset() 827 tmp |= (tmp_val & affected_mask); in imx_dsp_rproc_memset()
|
/openbmc/linux/net/netlabel/ |
H A D | netlabel_mgmt.c | 86 u32 tmp_val; in netlbl_mgmt_add_common() local 120 tmp_val = nla_get_u32(info->attrs[NLBL_MGMT_A_CV4DOI]); in netlbl_mgmt_add_common() 121 cipsov4 = cipso_v4_doi_getdef(tmp_val); in netlbl_mgmt_add_common() 132 tmp_val = nla_get_u32(info->attrs[NLBL_MGMT_A_CLPDOI]); in netlbl_mgmt_add_common() 133 calipso = calipso_doi_getdef(tmp_val); in netlbl_mgmt_add_common()
|
/openbmc/linux/sound/pci/hda/ |
H A D | tas2781_hda_i2c.c | 450 unsigned int *tmp_val; in tas2781_save_calibration() local 476 tmp_val = (unsigned int *)tas_priv->cali_data.data; in tas2781_save_calibration() 480 crc, tmp_val[21]); in tas2781_save_calibration() 482 if (crc == tmp_val[21]) { in tas2781_save_calibration() 483 time64_to_tm(tmp_val[20], 0, tm); in tas2781_save_calibration()
|
/openbmc/linux/drivers/iio/dac/ |
H A D | ad3552r.c | 448 u16 tmp_val; in ad3552r_read_raw() local 456 &tmp_val); in ad3552r_read_raw() 460 *val = tmp_val; in ad3552r_read_raw() 465 &tmp_val); in ad3552r_read_raw() 469 *val = !((tmp_val & AD3552R_MASK_CH_DAC_POWERDOWN(ch)) >> in ad3552r_read_raw()
|
/openbmc/linux/drivers/regulator/ |
H A D | max8997-regulator.c | 621 int new_val, new_idx, damage, tmp_val, tmp_idx, tmp_dmg; in max8997_set_voltage_buck() local 653 tmp_val = -1; in max8997_set_voltage_buck() 661 tmp_val = new_val; in max8997_set_voltage_buck() 669 new_val = tmp_val; in max8997_set_voltage_buck()
|
/openbmc/linux/drivers/video/fbdev/intelfb/ |
H A D | intelfbhw.c | 1285 u32 count, tmp_val[3]; in intelfbhw_program_mode() local 1357 tmp_val[count % 3] = INREG(PIPEA_DSL); in intelfbhw_program_mode() 1358 if ((tmp_val[0] == tmp_val[1]) && (tmp_val[1] == tmp_val[2])) in intelfbhw_program_mode()
|
/openbmc/linux/drivers/staging/rtl8192e/rtl8192e/ |
H A D | r8192E_dev.c | 1407 u32 ij, tmp_val; in _rtl92e_process_phyinfo() local 1437 tmp_val = priv->stats.slide_rssi_total / slide_rssi_statistics; in _rtl92e_process_phyinfo() 1438 priv->stats.signal_strength = rtl92e_translate_to_dbm(priv, tmp_val); in _rtl92e_process_phyinfo() 1531 tmp_val = priv->stats.slide_evm_total / in _rtl92e_process_phyinfo() 1533 priv->stats.last_signal_strength_inpercent = tmp_val; in _rtl92e_process_phyinfo()
|
/openbmc/linux/drivers/staging/rtl8712/ |
H A D | rtl8712_recv.c | 894 u32 last_rssi, tmp_val; in process_rssi() local 907 tmp_val = ssd->total_val / ssd->total_num; in process_rssi() 908 padapter->recvpriv.rssi = (s8)translate2dbm(padapter, (u8)tmp_val); in process_rssi()
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | cow.c | 523 __u64 tmp_val; in do_test_ro_pin() local 619 tmp_val = (__u64)(uintptr_t)tmp; in do_test_ro_pin() 620 ret = ioctl(gup_fd, PIN_LONGTERM_TEST_READ, &tmp_val); in do_test_ro_pin()
|
/openbmc/linux/drivers/iio/adc/ |
H A D | at91-sama5d2_adc.c | 1738 u16 tmp_val; in at91_adc_read_info_raw() local 1751 &tmp_val); in at91_adc_read_info_raw() 1752 *val = tmp_val; in at91_adc_read_info_raw() 1760 &tmp_val); in at91_adc_read_info_raw() 1761 *val = tmp_val; in at91_adc_read_info_raw()
|
/openbmc/linux/tools/perf/util/ |
H A D | data-convert-bt.c | 318 unsigned long long tmp_val; in add_tracepoint_field_value() local 320 tmp_val = tep_read_number(fmtf->event->tep, in add_tracepoint_field_value() 322 offset = tmp_val; in add_tracepoint_field_value()
|