Lines Matching refs:dev
942 static int ftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in ftl_getgeo() argument
944 partition_t *part = container_of(dev, struct partition_t, mbd); in ftl_getgeo()
957 static int ftl_readsect(struct mtd_blktrans_dev *dev, in ftl_readsect() argument
960 return ftl_read((void *)dev, buf, block, 1); in ftl_readsect()
963 static int ftl_writesect(struct mtd_blktrans_dev *dev, in ftl_writesect() argument
966 return ftl_write((void *)dev, buf, block, 1); in ftl_writesect()
969 static int ftl_discardsect(struct mtd_blktrans_dev *dev, in ftl_discardsect() argument
972 partition_t *part = container_of(dev, struct partition_t, mbd); in ftl_discardsect()
1039 static void ftl_remove_dev(struct mtd_blktrans_dev *dev) in ftl_remove_dev() argument
1041 del_mtd_blktrans_dev(dev); in ftl_remove_dev()
1042 ftl_freepart((partition_t *)dev); in ftl_remove_dev()