Searched refs:mymtd (Results 1 – 7 of 7) sorted by relevance
/linux-5.19.10/drivers/mtd/maps/ |
D | netsc520.c | 78 static struct mtd_info *mymtd; variable 94 mymtd = do_map_probe("cfi_probe", &netsc520_map); in init_netsc520() 95 if(!mymtd) in init_netsc520() 96 mymtd = do_map_probe("map_ram", &netsc520_map); in init_netsc520() 97 if(!mymtd) in init_netsc520() 98 mymtd = do_map_probe("map_rom", &netsc520_map); in init_netsc520() 100 if (!mymtd) { in init_netsc520() 105 mymtd->owner = THIS_MODULE; in init_netsc520() 106 mtd_device_register(mymtd, partition_info, NUM_PARTITIONS); in init_netsc520() 112 if (mymtd) { in cleanup_netsc520() [all …]
|
D | ts5500_flash.c | 53 static struct mtd_info *mymtd; variable 69 mymtd = do_map_probe("jedec_probe", &ts5500_map); in init_ts5500_map() 70 if (!mymtd) in init_ts5500_map() 71 mymtd = do_map_probe("map_rom", &ts5500_map); in init_ts5500_map() 73 if (!mymtd) { in init_ts5500_map() 78 mymtd->owner = THIS_MODULE; in init_ts5500_map() 79 mtd_device_register(mymtd, ts5500_partitions, NUM_PARTITIONS); in init_ts5500_map() 91 if (mymtd) { in cleanup_ts5500_map() 92 mtd_device_unregister(mymtd); in cleanup_ts5500_map() 93 map_destroy(mymtd); in cleanup_ts5500_map()
|
D | sc520cdp.c | 95 static struct mtd_info *mymtd[NUM_FLASH_BANKS]; variable 233 if (mymtd[j]) { in init_sc520cdp() 234 map_destroy(mymtd[j]); in init_sc520cdp() 243 mymtd[i] = do_map_probe("cfi_probe", &sc520cdp_map[i]); in init_sc520cdp() 244 if(!mymtd[i]) in init_sc520cdp() 245 mymtd[i] = do_map_probe("jedec_probe", &sc520cdp_map[i]); in init_sc520cdp() 246 if(!mymtd[i]) in init_sc520cdp() 247 mymtd[i] = do_map_probe("map_rom", &sc520cdp_map[i]); in init_sc520cdp() 249 if (mymtd[i]) { in init_sc520cdp() 250 mymtd[i]->owner = THIS_MODULE; in init_sc520cdp() [all …]
|
D | cfi_flagadm.c | 89 static struct mtd_info *mymtd; variable 107 mymtd = do_map_probe("cfi_probe", &flagadm_map); in init_flagadm() 108 if (mymtd) { in init_flagadm() 109 mymtd->owner = THIS_MODULE; in init_flagadm() 110 mtd_device_register(mymtd, flagadm_parts, PARTITION_COUNT); in init_flagadm() 121 if (mymtd) { in cleanup_flagadm() 122 mtd_device_unregister(mymtd); in cleanup_flagadm() 123 map_destroy(mymtd); in cleanup_flagadm()
|
D | l440gx.c | 27 static struct mtd_info *mymtd; variable 138 mymtd = do_map_probe("jedec_probe", &l440gx_map); in init_l440gx() 139 if (!mymtd) { in init_l440gx() 141 mymtd = do_map_probe("map_rom", &l440gx_map); in init_l440gx() 143 if (mymtd) { in init_l440gx() 144 mymtd->owner = THIS_MODULE; in init_l440gx() 146 mtd_device_register(mymtd, NULL, 0); in init_l440gx() 156 mtd_device_unregister(mymtd); in cleanup_l440gx() 157 map_destroy(mymtd); in cleanup_l440gx()
|
D | scx200_docflash.c | 46 static struct mtd_info *mymtd; variable 186 mymtd = do_map_probe(flashtype, &scx200_docflash_map); in init_scx200_docflash() 187 if (!mymtd) { in init_scx200_docflash() 194 if (size < mymtd->size) in init_scx200_docflash() 197 mymtd->owner = THIS_MODULE; in init_scx200_docflash() 199 partition_info[3].offset = mymtd->size-partition_info[3].size; in init_scx200_docflash() 201 mtd_device_register(mymtd, partition_info, NUM_PARTITIONS); in init_scx200_docflash() 208 if (mymtd) { in cleanup_scx200_docflash() 209 mtd_device_unregister(mymtd); in cleanup_scx200_docflash() 210 map_destroy(mymtd); in cleanup_scx200_docflash()
|
/linux-5.19.10/arch/mips/cavium-octeon/ |
D | flash_setup.c | 21 static struct mtd_info *mymtd; variable 109 mymtd = do_map_probe("cfi_probe", &flash_map); in octeon_flash_probe() 110 if (mymtd) { in octeon_flash_probe() 111 mymtd->owner = THIS_MODULE; in octeon_flash_probe() 112 mtd_device_parse_register(mymtd, part_probe_types, in octeon_flash_probe()
|