/u-boot/arch/arm/mach-uniphier/ |
A D | soc-info.c | 18 return FIELD_GET(SG_REVISION_TYPE_MASK, rev); in uniphier_get_soc_id() 25 return FIELD_GET(SG_REVISION_MODEL_MASK, rev); in uniphier_get_soc_model() 32 return FIELD_GET(SG_REVISION_REV_MASK, rev); in uniphier_get_soc_revision()
|
/u-boot/arch/arm/mach-meson/ |
A D | board-info.c | 81 return FIELD_GET(SOCINFO_MAJOR, socinfo); in socinfo_to_major() 86 return FIELD_GET(SOCINFO_MINOR, socinfo); in socinfo_to_minor() 91 return FIELD_GET(SOCINFO_PACK, socinfo); in socinfo_to_pack() 96 return FIELD_GET(SOCINFO_MISC, socinfo); in socinfo_to_misc()
|
A D | sm.c | 123 return FIELD_GET(REBOOT_REASON_MASK, reason); in meson_sm_get_reboot_reason()
|
/u-boot/arch/mips/mach-octeon/ |
A D | cpu.c | 45 gd->cpu_clk = ref_clock * FIELD_GET(RST_BOOT_C_MUL, val); in get_clocks() 46 gd->bus_clk = ref_clock * FIELD_GET(RST_BOOT_PNR_MUL, val); in get_clocks()
|
/u-boot/arch/mips/mach-octeon/include/mach/ |
A D | cvmx-fuse.h | 27 return FIELD_GET(MIO_FUS_RCMD_DAT, val); in cvmx_fuse_read_byte_node()
|
/u-boot/drivers/mtd/nand/raw/ |
A D | stm32_fmc2_nand.c | 483 pos[0] = FIELD_GET(FMC2_BCHDSR1_EBP1, bchdsr1); in stm32_fmc2_nfc_bch_correct() 484 pos[1] = FIELD_GET(FMC2_BCHDSR1_EBP2, bchdsr1); in stm32_fmc2_nfc_bch_correct() 485 pos[2] = FIELD_GET(FMC2_BCHDSR2_EBP3, bchdsr2); in stm32_fmc2_nfc_bch_correct() 486 pos[3] = FIELD_GET(FMC2_BCHDSR2_EBP4, bchdsr2); in stm32_fmc2_nfc_bch_correct() 487 pos[4] = FIELD_GET(FMC2_BCHDSR3_EBP5, bchdsr3); in stm32_fmc2_nfc_bch_correct() 488 pos[5] = FIELD_GET(FMC2_BCHDSR3_EBP6, bchdsr3); in stm32_fmc2_nfc_bch_correct() 489 pos[6] = FIELD_GET(FMC2_BCHDSR4_EBP7, bchdsr4); in stm32_fmc2_nfc_bch_correct() 490 pos[7] = FIELD_GET(FMC2_BCHDSR4_EBP8, bchdsr4); in stm32_fmc2_nfc_bch_correct() 492 den = FIELD_GET(FMC2_BCHDSR0_DEN, bchdsr0); in stm32_fmc2_nfc_bch_correct()
|
A D | denali.c | 101 denali->max_banks = 1 << FIELD_GET(FEATURES__N_BANKS, features); in denali_detect_max_banks() 348 max_bitflips = FIELD_GET(ECC_COR_INFO__MAX_ERRORS, ecc_cor); in denali_hw_ecc_fixup() 378 err_sector = FIELD_GET(ECC_ERROR_ADDRESS__SECTOR, err_addr); in denali_sw_ecc_fixup() 379 err_byte = FIELD_GET(ECC_ERROR_ADDRESS__OFFSET, err_addr); in denali_sw_ecc_fixup() 382 err_cor_value = FIELD_GET(ERR_CORRECTION_INFO__BYTE, in denali_sw_ecc_fixup() 384 err_device = FIELD_GET(ERR_CORRECTION_INFO__DEVICE, in denali_sw_ecc_fixup()
|
A D | octeontx_nand.c | 622 return FIELD_GET(NDF_MISC_FR_BYTE, ndf_misc); in ndf_cmd_queue_free()
|
/u-boot/drivers/clk/kendryte/ |
A D | pll.c | 483 r = FIELD_GET(K210_PLL_CLKR, reg) + 1; in k210_pll_get_rate() 484 f = FIELD_GET(K210_PLL_CLKF, reg) + 1; in k210_pll_get_rate() 485 od = FIELD_GET(K210_PLL_CLKOD, reg) + 1; in k210_pll_get_rate()
|
/u-boot/drivers/adc/ |
A D | meson-saradc.c | 190 return FIELD_GET(MESON_SAR_ADC_REG0_FIFO_COUNT_MASK, regval); in meson_saradc_get_fifo_count() 259 } while (FIELD_GET(MESON_SAR_ADC_REG0_BUSY_MASK, regval) && timeout--); in meson_saradc_wait_busy_clear() 284 fifo_chan = FIELD_GET(MESON_SAR_ADC_FIFO_RD_CHAN_ID_MASK, regval); in meson_saradc_read_raw_sample() 291 fifo_val = FIELD_GET(MESON_SAR_ADC_FIFO_RD_SAMPLE_VALUE_MASK, regval); in meson_saradc_read_raw_sample()
|
/u-boot/include/linux/ |
A D | bitfield.h | 101 #define FIELD_GET(_mask, _reg) \ macro
|
/u-boot/drivers/clk/ |
A D | clk_versal.c | 260 topology[*nnodes].flag = FIELD_GET(CLK_FLAG_FIELD_MASK, in __versal_clock_get_topology() 263 FIELD_GET(CLK_TYPE_FLAG_FIELD_MASK, data[i]); in __versal_clock_get_topology() 265 FIELD_GET(CLK_TYPE_FLAG2_FIELD_MASK, data[i]) << in __versal_clock_get_topology()
|
/u-boot/drivers/net/ |
A D | mt7620-eth.c | 330 return FIELD_GET(MDIO_RW_DATA, val); in mt7620_mdio_rw() 437 FIELD_GET(MT7530_REG_PAGE_ADDR, reg)); in mt7530_reg_read() 442 low_word = mt7620_mii_read(priv, 0x1f, FIELD_GET(MT7530_REG_ADDR, reg)); in mt7530_reg_read() 463 FIELD_GET(MT7530_REG_PAGE_ADDR, reg)); in mt7530_reg_write() 468 ret = mt7620_mii_write(priv, 0x1f, FIELD_GET(MT7530_REG_ADDR, reg), in mt7530_reg_write()
|
A D | mt7628-eth.c | 198 *read_data = FIELD_GET(PCR1_RD_DATA, status); in mii_mgr_read() 439 length = FIELD_GET(RX_DMA_PLEN0, priv->rx_ring[idx].rxd2); in mt7628_eth_recv()
|
/u-boot/drivers/clk/at91/ |
A D | clk-sam9x60-pll.c | 31 #define PLL_DIV_MAX (FIELD_GET(PMC_PLL_CTRL0_DIV_MSK, UINT_MAX) + 1) 33 #define PLL_MUL_MAX (FIELD_GET(PMC_PLL_CTRL1_MUL_MSK, UINT_MAX) + 1)
|
/u-boot/drivers/gpio/ |
A D | octeon_gpio.c | 143 pin_sel = FIELD_GET(GPIO_BIT_CFG_PIN_SEL_MASK, val); in octeon_gpio_get_function()
|
/u-boot/drivers/pinctrl/ |
A D | pinctrl-kendryte.c | 483 unsigned pin = FIELD_GET(K210_PG_PIN, pinmux_group); in k210_pc_pinmux_set() 484 bool do_oe = FIELD_GET(K210_PG_DO, pinmux_group); in k210_pc_pinmux_set() 485 unsigned func = FIELD_GET(K210_PG_FUNC, pinmux_group); in k210_pc_pinmux_set()
|
A D | pinctrl-stmfx.c | 475 if (FIELD_GET(STMFX_REG_CHIP_ID_MASK, ~id) != (chip->chip_addr << 1)) { in stmfx_chip_init()
|
/u-boot/drivers/phy/ |
A D | meson-g12a-usb3-pcie.c | 116 *data = FIELD_GET(PHY_R5_PHY_CR_DATA_OUT, val); in phy_g12a_usb3_pcie_cr_bus_read()
|
/u-boot/drivers/usb/host/ |
A D | dwc3-octeon-glue.c | 236 if (div != FIELD_GET(UCTL_CTL_H_CLKDIV_SEL, uctl_ctl) || in dwc3_octeon_clocks_start()
|
/u-boot/drivers/memory/ |
A D | stm32-fmc2-ebi.c | 295 u32 clk_period = FIELD_GET(FMC2_BTR_CLKDIV, btr) + 1; in stm32_fmc2_ebi_ns_to_clk_period() 681 old_val = FIELD_GET(FMC2_PCSCNTR_CSCOUNT, pcscntr); in stm32_fmc2_ebi_set_max_low_pulse()
|
/u-boot/drivers/spi/ |
A D | stm32_spi.c | 57 #define SPI_CFG1_MBR_MAX FIELD_GET(SPI_CFG1_MBR, SPI_CFG1_MBR)
|
A D | designware_spi.c | 186 if (FIELD_GET(CTRLR0_DFS_MASK, dw_read(priv, DW_SPI_CTRLR0))) { in dw_spi_apb_init()
|