Lines Matching refs:fcfg
309 struct espi_saf_flash_cfg *fcfg = cfg->flash_cfgs; in saf_init_erase_block_size() local
310 uint32_t opb = fcfg->opb; in saf_init_erase_block_size()
316 fcfg++; in saf_init_erase_block_size()
317 opb &= fcfg->opb; in saf_init_erase_block_size()
347 const struct espi_saf_flash_cfg *fcfg) in saf_flash_misc_cfg() argument
359 if (fcfg->cont_prefix != 0) { in saf_flash_misc_cfg()
371 if (fcfg->flags & MCHP_FLASH_FLAG_ADDR32) { in saf_flash_misc_cfg()
393 const struct espi_saf_flash_cfg *fcfg, uint8_t cs) in saf_flash_cfg() argument
402 regs->SAF_CS_OP[cs].OPA = fcfg->opa; in saf_flash_cfg()
403 regs->SAF_CS_OP[cs].OPB = fcfg->opb; in saf_flash_cfg()
404 regs->SAF_CS_OP[cs].OPC = fcfg->opc; in saf_flash_cfg()
405 regs->SAF_CS_OP[cs].OP_DESCR = (uint32_t)fcfg->cs_cfg_descr_ids; in saf_flash_cfg()
413 d = fcfg->descr[i] & ~(MCHP_QMSPI_C_NEXT_DESCR_MASK); in saf_flash_cfg()
419 mchp_saf_poll2_mask_wr(regs, cs, fcfg->poll2_mask); in saf_flash_cfg()
420 mchp_saf_cm_prefix_wr(regs, cs, fcfg->cont_prefix); in saf_flash_cfg()
421 saf_flash_misc_cfg(regs, cs, fcfg); in saf_flash_cfg()
468 const struct espi_saf_flash_cfg *fcfg = cfg->flash_cfgs; in espi_saf_xec_configuration() local
470 if ((fcfg == NULL) || (cfg->nflash_devices == 0U) || in espi_saf_xec_configuration()
487 totalsz = fcfg->flashsz; in espi_saf_xec_configuration()
489 saf_flash_cfg(dev, fcfg, 0); in espi_saf_xec_configuration()
493 fcfg++; in espi_saf_xec_configuration()
494 totalsz += fcfg->flashsz; in espi_saf_xec_configuration()
497 saf_flash_cfg(dev, fcfg, 1); in espi_saf_xec_configuration()