Searched refs:dev (Results 1 – 6 of 6) sorted by relevance
| /hal_ethos_u-latest/src/ |
| D | ethosu_device_u85.c | 59 bool ethosu_dev_init(struct ethosu_device *dev, void *base_address, uint32_t secure_enable, uint32_… in ethosu_dev_init() argument 61 dev->reg = (volatile struct NPU_REG *)base_address; in ethosu_dev_init() 62 dev->secure = secure_enable; in ethosu_dev_init() 63 dev->privileged = privilege_enable; in ethosu_dev_init() 65 if (dev->reg->CONFIG.product != ETHOSU_PRODUCT_U85) in ethosu_dev_init() 72 if (ethosu_dev_soft_reset(dev) != ETHOSU_SUCCESS) in ethosu_dev_init() 80 enum ethosu_error_codes ethosu_dev_axi_init(struct ethosu_device *dev) in ethosu_dev_axi_init() argument 89 dev->reg->MEM_ATTR[0].word = NPU_MEM_ATTR_0; in ethosu_dev_axi_init() 90 dev->reg->MEM_ATTR[1].word = NPU_MEM_ATTR_1; in ethosu_dev_axi_init() 91 dev->reg->MEM_ATTR[2].word = NPU_MEM_ATTR_2; in ethosu_dev_axi_init() [all …]
|
| D | ethosu_device_u55_u65.c | 69 bool ethosu_dev_init(struct ethosu_device *dev, void *base_address, uint32_t secure_enable, uint32_… in ethosu_dev_init() argument 71 dev->reg = (volatile struct NPU_REG *)base_address; in ethosu_dev_init() 72 dev->secure = secure_enable; in ethosu_dev_init() 73 dev->privileged = privilege_enable; in ethosu_dev_init() 76 if (dev->reg->CONFIG.product != ETHOSU_PRODUCT_U55) in ethosu_dev_init() 78 if (dev->reg->CONFIG.product != ETHOSU_PRODUCT_U65) in ethosu_dev_init() 86 if (ethosu_dev_soft_reset(dev) != ETHOSU_SUCCESS) in ethosu_dev_init() 94 enum ethosu_error_codes ethosu_dev_axi_init(struct ethosu_device *dev) in ethosu_dev_axi_init() argument 102 dev->reg->QCONFIG.word = NPU_QCONFIG; in ethosu_dev_axi_init() 112 dev->reg->REGIONCFG.word = rcfg.word; in ethosu_dev_axi_init() [all …]
|
| D | ethosu_pmu.c | 91 drv->dev.reg->PMCR.word = pmcr.word; in ETHOSU_PMU_Enable() 97 drv->dev.reg->PMCR.word = 0; in ETHOSU_PMU_Disable() 117 drv->dev.reg->PMEVTYPER[num].word = val; in ETHOSU_PMU_Set_EVTYPER() 123 uint32_t val = drv->dev.reg->PMEVTYPER[num].word; in ETHOSU_PMU_Get_EVTYPER() 133 pmcr.word = drv->dev.reg->PMCR.word; in ETHOSU_PMU_CYCCNT_Reset() 135 drv->dev.reg->PMCR.word = pmcr.word; in ETHOSU_PMU_CYCCNT_Reset() 142 pmcr.word = drv->dev.reg->PMCR.word; in ETHOSU_PMU_EVCNTR_ALL_Reset() 144 drv->dev.reg->PMCR.word = pmcr.word; in ETHOSU_PMU_EVCNTR_ALL_Reset() 150 drv->dev.reg->PMCNTENSET.word = mask; in ETHOSU_PMU_CNTR_Enable() 156 drv->dev.reg->PMCNTENCLR.word = mask; in ETHOSU_PMU_CNTR_Disable() [all …]
|
| D | ethosu_device.h | 40 bool ethosu_dev_init(struct ethosu_device *dev, void *base_address, uint32_t secure_enable, uint32_… 45 enum ethosu_error_codes ethosu_dev_axi_init(struct ethosu_device *dev); 58 void ethosu_dev_run_command_stream(struct ethosu_device *dev, 67 void ethosu_dev_print_err_status(struct ethosu_device *dev); 73 bool ethosu_dev_handle_interrupt(struct ethosu_device *dev); 79 void ethosu_dev_get_hw_info(struct ethosu_device *dev, struct ethosu_hw_info *hwinfo); 85 bool ethosu_dev_verify_access_state(struct ethosu_device *dev); 91 enum ethosu_error_codes ethosu_dev_soft_reset(struct ethosu_device *dev); 99 enum ethosu_error_codes ethosu_dev_set_clock_and_power(struct ethosu_device *dev, 109 bool ethosu_dev_verify_optimizer_config(struct ethosu_device *dev, uint32_t cfg_in, uint32_t id_in);
|
| D | ethosu_driver.c | 262 LOG_INFO("New NPU driver registered (handle: 0x%p, NPU: 0x%p)", drv, drv->dev.reg); in ethosu_register_driver() 308 if (ethosu_dev_verify_optimizer_config(&drv->dev, opt_cfg_p->cfg, opt_cfg_p->id) != true) in handle_optimizer_config() 375 …ethosu_dev_run_command_stream(&drv->dev, cmd_stream, cms_bytes, drv->job.base_addr, drv->job.num_b… in handle_command_stream() 393 …drv->job.result = ethosu_dev_handle_interrupt(&drv->dev) ? ETHOSU_JOB_RESULT_OK : ETHOSU_JOB_RESUL… in ethosu_irq_handler() 451 if (!ethosu_dev_init(&drv->dev, base_address, secure_enable, privilege_enable)) in ethosu_init() 479 if (ethosu_dev_soft_reset(&drv->dev) != ETHOSU_SUCCESS) in ethosu_soft_reset() 486 ethosu_dev_set_clock_and_power(&drv->dev, in ethosu_soft_reset() 521 ethosu_dev_set_clock_and_power(&drv->dev, ETHOSU_CLOCK_Q_ENABLE, ETHOSU_POWER_Q_ENABLE); in ethosu_release_power() 537 ethosu_dev_get_hw_info(&drv->dev, hw); in ethosu_get_hw_info() 601 ethosu_dev_print_err_status(&drv->dev); in ethosu_wait()
|
| /hal_ethos_u-latest/include/ |
| D | ethosu_driver.h | 81 struct ethosu_device dev; member
|