Home
last modified time | relevance | path

Searched refs:ethosudev (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/accel/ethosu/
H A Dethosu_drv.c29 struct ethosu_device *ethosudev = to_ethosu_device(ddev); in ethosu_ioctl_dev_query() local
35 args->size = sizeof(ethosudev->npu_info); in ethosu_ioctl_dev_query()
48 &ethosudev->npu_info, in ethosu_ioctl_dev_query()
49 sizeof(ethosudev->npu_info), NULL); in ethosu_ioctl_dev_query()
219 static int ethosu_reset(struct ethosu_device *ethosudev) in ethosu_reset() argument
224 writel_relaxed(RESET_PENDING_CSL, ethosudev->regs + NPU_REG_RESET); in ethosu_reset()
225 ret = readl_poll_timeout(ethosudev->regs + NPU_REG_STATUS, reg, in ethosu_reset()
231 if (!FIELD_GET(PROT_ACTIVE_CSL, readl_relaxed(ethosudev->regs + NPU_REG_PROT))) { in ethosu_reset()
232 dev_warn(ethosudev->base.dev, "Could not reset to non-secure mode (PROT = %x)\n", in ethosu_reset()
233 readl_relaxed(ethosudev->regs + NPU_REG_PROT)); in ethosu_reset()
[all …]
H A Dethosu_device.h224 static inline bool ethosu_is_u65(const struct ethosu_device *ethosudev) in ethosu_is_u65() argument
226 return FIELD_GET(ID_ARCH_MAJOR_MASK, ethosudev->npu_info.id) == 1; in ethosu_is_u65()