Lines Matching refs:flash_dir
595 struct asd_flash_dir *flash_dir) in asd_find_flash_dir() argument
599 asd_read_flash_seg(asd_ha, flash_dir, v, in asd_find_flash_dir()
601 if (memcmp(flash_dir->cookie, FLASH_DIR_COOKIE, in asd_find_flash_dir()
604 asd_read_flash_seg(asd_ha, flash_dir, v, in asd_find_flash_dir()
605 sizeof(*flash_dir)); in asd_find_flash_dir()
646 static int asd_find_flash_de(struct asd_flash_dir *flash_dir, u32 entry_type, in asd_find_flash_de() argument
653 u32 type = le32_to_cpu(flash_dir->dir_entry[i].type); in asd_find_flash_de()
661 de = &flash_dir->dir_entry[i]; in asd_find_flash_de()
855 struct asd_flash_dir *flash_dir) in asd_process_ms() argument
861 err = asd_find_flash_de(flash_dir, FLASH_DE_MS, &offs, &size); in asd_process_ms()
968 struct asd_flash_dir *flash_dir) in asd_process_ctrl_a_user() argument
976 err = asd_find_flash_de(flash_dir, FLASH_DE_CTRL_A_USER, &offs, &size); in asd_process_ctrl_a_user()
1037 struct asd_flash_dir *flash_dir; in asd_read_flash() local
1043 flash_dir = kmalloc(sizeof(*flash_dir), GFP_KERNEL); in asd_read_flash()
1044 if (!flash_dir) in asd_read_flash()
1048 if (!asd_find_flash_dir(asd_ha, flash_dir)) { in asd_read_flash()
1053 if (le32_to_cpu(flash_dir->rev) != 2) { in asd_read_flash()
1055 le32_to_cpu(flash_dir->rev)); in asd_read_flash()
1059 err = asd_process_ms(asd_ha, flash_dir); in asd_read_flash()
1065 err = asd_process_ctrl_a_user(asd_ha, flash_dir); in asd_read_flash()
1072 kfree(flash_dir); in asd_read_flash()