Lines Matching refs:bfpt
438 struct sfdp_bfpt bfpt; in spi_nor_parse_bfpt() local
450 len = min_t(size_t, sizeof(bfpt), in spi_nor_parse_bfpt()
453 memset(&bfpt, 0, sizeof(bfpt)); in spi_nor_parse_bfpt()
454 err = spi_nor_read_sfdp_dma_unsafe(nor, addr, len, &bfpt); in spi_nor_parse_bfpt()
459 le32_to_cpu_array(bfpt.dwords, BFPT_DWORD_MAX); in spi_nor_parse_bfpt()
462 switch (bfpt.dwords[BFPT_DWORD(1)] & BFPT_DWORD1_ADDRESS_BYTES_MASK) { in spi_nor_parse_bfpt()
479 val = bfpt.dwords[BFPT_DWORD(2)]; in spi_nor_parse_bfpt()
502 if (!(bfpt.dwords[rd->supported_dword] & rd->supported_bit)) { in spi_nor_parse_bfpt()
510 half = bfpt.dwords[rd->settings_dword] >> rd->settings_shift; in spi_nor_parse_bfpt()
525 half = bfpt.dwords[er->dword] >> er->shift; in spi_nor_parse_bfpt()
556 return spi_nor_post_bfpt_fixups(nor, bfpt_header, &bfpt); in spi_nor_parse_bfpt()
559 val = bfpt.dwords[BFPT_DWORD(11)]; in spi_nor_parse_bfpt()
565 switch (bfpt.dwords[BFPT_DWORD(15)] & BFPT_DWORD15_QER_MASK) { in spi_nor_parse_bfpt()
612 if (bfpt.dwords[BFPT_DWORD(16)] & BFPT_DWORD16_SWRST_EN_RST) in spi_nor_parse_bfpt()
617 return spi_nor_post_bfpt_fixups(nor, bfpt_header, &bfpt); in spi_nor_parse_bfpt()
620 switch (bfpt.dwords[BFPT_DWORD(18)] & BFPT_DWORD18_CMD_EXT_MASK) { in spi_nor_parse_bfpt()
638 return spi_nor_post_bfpt_fixups(nor, bfpt_header, &bfpt); in spi_nor_parse_bfpt()