Lines Matching refs:prot
1059 int prot; in flash_erase() local
1072 prot = 0; in flash_erase()
1075 prot++; in flash_erase()
1076 if (prot) { in flash_erase()
1078 prot); in flash_erase()
1446 static int cfi_protect_bugfix(flash_info_t *info, long sector, int prot) in cfi_protect_bugfix() argument
1456 prot)) { in cfi_protect_bugfix()
1464 if (prot) in cfi_protect_bugfix()
1480 int flash_real_protect(flash_info_t *info, long sector, int prot) in flash_real_protect() argument
1488 if (!cfi_protect_bugfix(info, sector, prot)) { in flash_real_protect()
1493 if (prot) in flash_real_protect()
1505 if (prot) { in flash_real_protect()
1530 if (prot) { in flash_real_protect()
1555 prot ? "protect" : "unprotect")) in flash_real_protect()
1568 if (prot) in flash_real_protect()
1583 prot ? "protect" : "unprotect"); in flash_real_protect()
1585 info->protect[sector] = prot; in flash_real_protect()
1591 if (prot == 0 && info->legacy_unlock) { in flash_real_protect()