Lines Matching refs:qspi_cfg
57 static struct qspi_config *qspi_cfg; variable
316 p_reg->IFTIMING |= qspi_cfg->RDC4IO; in _nrfx_qspi_init()
465 if (!qspi_cfg->easydma) { in _qspi_complete()
473 if (!qspi_cfg->easydma) { in _qspi_wait_for_completion()
521 NRF_QSPI->IFTIMING |= qspi_cfg->RDC4IO; in qspi_device_init()
700 qspi_cfg->qspi_slave_latency = 1; in qspi_fill_init_struct()
1202 qspi_cfg = config; in qspi_init()
1209 k_sem_init(&qspi_cfg->lock, 1, 1); in qspi_init()
1220 if (!qspi_cfg->encryption) { in qspi_update_nonce()
1250 addr |= qspi_cfg->addrmask; in qspi_write()
1252 k_sem_take(&qspi_cfg->lock, K_FOREVER); in qspi_write()
1258 k_sem_give(&qspi_cfg->lock); in qspi_write()
1269 addr |= qspi_cfg->addrmask; in qspi_read()
1271 k_sem_take(&qspi_cfg->lock, K_FOREVER); in qspi_read()
1277 k_sem_give(&qspi_cfg->lock); in qspi_read()
1288 len = len + (4 * qspi_cfg->qspi_slave_latency); in qspi_hl_readw()
1299 k_sem_take(&qspi_cfg->lock, K_FOREVER); in qspi_hl_readw()
1305 k_sem_give(&qspi_cfg->lock); in qspi_hl_readw()
1365 if (qspi_cfg->encryption) { in qspi_enable_encryption()
1376 memcpy(qspi_cfg->p_cfg.key, key, 16); in qspi_enable_encryption()
1378 err = nrfx_qspi_dma_encrypt(&qspi_cfg->p_cfg); in qspi_enable_encryption()
1384 err = qspi_cmd_encryption(&qspi_perip, &qspi_cfg->p_cfg); in qspi_enable_encryption()
1390 qspi_cfg->encryption = true; in qspi_enable_encryption()