Lines Matching refs:flash_cfg
77 struct flash_nios2_qspi_config *flash_cfg = dev->data; in flash_nios2_qspi_erase() local
78 alt_qspi_controller2_dev *qspi_dev = &flash_cfg->qspi_dev; in flash_nios2_qspi_erase()
85 k_sem_take(&flash_cfg->sem_lock, K_FOREVER); in flash_nios2_qspi_erase()
175 k_sem_give(&flash_cfg->sem_lock); in flash_nios2_qspi_erase()
185 struct flash_nios2_qspi_config *flash_cfg = dev->data; in flash_nios2_qspi_write_block() local
186 alt_qspi_controller2_dev *qspi_dev = &flash_cfg->qspi_dev; in flash_nios2_qspi_write_block()
282 struct flash_nios2_qspi_config *flash_cfg = dev->data; in flash_nios2_qspi_write() local
283 alt_qspi_controller2_dev *qspi_dev = &flash_cfg->qspi_dev; in flash_nios2_qspi_write()
290 k_sem_take(&flash_cfg->sem_lock, K_FOREVER); in flash_nios2_qspi_write()
352 k_sem_give(&flash_cfg->sem_lock); in flash_nios2_qspi_write()
359 struct flash_nios2_qspi_config *flash_cfg = dev->data; in flash_nios2_qspi_read() local
360 alt_qspi_controller2_dev *qspi_dev = &flash_cfg->qspi_dev; in flash_nios2_qspi_read()
380 k_sem_take(&flash_cfg->sem_lock, K_FOREVER); in flash_nios2_qspi_read()
419 k_sem_give(&flash_cfg->sem_lock); in flash_nios2_qspi_read()
426 struct flash_nios2_qspi_config *flash_cfg = dev->data; in flash_nios2_qspi_write_protection() local
427 alt_qspi_controller2_dev *qspi_dev = &flash_cfg->qspi_dev; in flash_nios2_qspi_write_protection()
506 struct flash_nios2_qspi_config *flash_cfg = dev->data; in flash_nios2_qspi_init() local
508 k_sem_init(&flash_cfg->sem_lock, 1, 1); in flash_nios2_qspi_init()
512 struct flash_nios2_qspi_config flash_cfg = { variable
529 flash_nios2_qspi_init, NULL, &flash_cfg, NULL,