Home
last modified time | relevance | path

Searched refs:AST2600_SEG_ADDR_MASK (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/spi/
H A Dspi-aspeed-smc.c830 #define AST2600_SEG_ADDR_MASK 0x0ff00000 macro
835 u32 start_offset = (reg << 16) & AST2600_SEG_ADDR_MASK; in aspeed_spi_segment_ast2600_start()
843 u32 end_offset = reg & AST2600_SEG_ADDR_MASK; in aspeed_spi_segment_ast2600_end()
859 return ((start & AST2600_SEG_ADDR_MASK) >> 16) | in aspeed_spi_segment_ast2600_reg()
860 ((end - 1) & AST2600_SEG_ADDR_MASK); in aspeed_spi_segment_ast2600_reg()
/openbmc/qemu/hw/ssi/
H A Daspeed_smc.c1708 #define AST2600_SEG_ADDR_MASK 0x0ff00000 macro
1720 reg |= (seg->addr & AST2600_SEG_ADDR_MASK) >> 16; /* start offset */ in aspeed_2600_smc_segment_to_reg()
1721 reg |= (seg->addr + seg->size - 1) & AST2600_SEG_ADDR_MASK; /* end offset */ in aspeed_2600_smc_segment_to_reg()
1728 uint32_t start_offset = (reg << 16) & AST2600_SEG_ADDR_MASK; in aspeed_2600_smc_reg_to_segment()
1729 uint32_t end_offset = reg & AST2600_SEG_ADDR_MASK; in aspeed_2600_smc_reg_to_segment()