Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/mtd/
H A Dmtdcore.c176 #define MTD_DEVT(index) MKDEV(MTD_CHAR_MAJOR, (index)*2) macro
184 dev_t index = MTD_DEVT(mtd->index); in mtd_release()
477 mtd->dev.devt = MTD_DEVT(i); in add_mtd_device()
483 if (MTD_DEVT(i)) in add_mtd_device()
485 MTD_DEVT(i) + 1, in add_mtd_device()
/openbmc/linux/drivers/mtd/
H A Dmtdcore.c86 #define MTD_DEVT(index) MKDEV(MTD_CHAR_MAJOR, (index)*2) macro
94 dev_t index = MTD_DEVT(mtd->index); in mtd_release()
742 mtd->dev.devt = MTD_DEVT(i); in add_mtd_device()
760 device_create(&mtd_class, mtd->dev.parent, MTD_DEVT(i) + 1, NULL, in add_mtd_device()