Lines Matching refs:pos
57 size_t pos; in atmel_find_pmecc_parameter_in_token() local
62 for (pos = 0; pos < ARRAY_SIZE(configs); pos++) { in atmel_find_pmecc_parameter_in_token()
63 if (strncmp(token, configs[pos], strlen(configs[pos])) == 0) { in atmel_find_pmecc_parameter_in_token()
69 debug("\t%s parameter: '%s'\n", configs[pos], param); in atmel_find_pmecc_parameter_in_token()
71 switch (pos) { in atmel_find_pmecc_parameter_in_token()
118 size_t pos; in atmel_verify_header() local
122 for (pos = 0; pos < ARRAY_SIZE(nand_pmecc_header); pos++) in atmel_verify_header()
123 if (ints[pos] >> 28 != 0xC) in atmel_verify_header()
126 if (pos == ARRAY_SIZE(nand_pmecc_header)) { in atmel_verify_header()
132 for (pos = 0; pos < 7; pos++) { in atmel_verify_header()
133 debug("atmelimage: interrupt vector #%zu is 0x%08X\n", pos+1, in atmel_verify_header()
134 ints[pos]); in atmel_verify_header()
139 if (pos == 5) in atmel_verify_header()
142 if ((ints[pos] & 0xff000000) == 0xea000000) in atmel_verify_header()
145 if ((ints[pos] & 0xfffff000) == 0xe59ff000) in atmel_verify_header()
188 size_t pos; in atmel_print_header() local
191 for (pos = 0; pos < ARRAY_SIZE(nand_pmecc_header); pos++) in atmel_print_header()
192 if (ints[pos] >> 28 != 0xC) in atmel_print_header()
195 if (pos == ARRAY_SIZE(nand_pmecc_header)) { in atmel_print_header()
198 pos += 5; in atmel_print_header()
201 pos = 5; in atmel_print_header()
203 printf("\t\t6'th vector has %u set\n", le32_to_cpu(ints[pos])); in atmel_print_header()
212 size_t pos = 5; in atmel_set_header() local
220 pos += ARRAY_SIZE(nand_pmecc_header); in atmel_set_header()
224 ints[pos] = cpu_to_le32(size); in atmel_set_header()
244 size_t pos; in atmel_vrec_header() local
315 for (pos = 0; pos < ARRAY_SIZE(nand_pmecc_header); pos++) in atmel_vrec_header()
316 nand_pmecc_header[pos] = tmp; in atmel_vrec_header()