Lines Matching defs:first
845 /* first try to map the upper buffer directly */
1203 static int gpmi_count_bitflips(struct nand_chip *chip, void *buf, int first,
1216 for (i = first; i < last; i++, status++) {
1240 * in-band data in the first and last byte of
1264 /* The first block includes metadata */
1351 * rely on the first byte of the auxiliary buffer to contain
1371 int first, last, marker_pos;
1380 first = offs / size;
1386 * If this chunk is in the range of [first, last],
1392 if (last >= marker_pos && first <= marker_pos) {
1394 "page:%d, first:%d, last:%d, marker at:%d\n",
1395 page, first, last, marker_pos);
1401 if (first) {
1402 col = meta + (size + ecc_parity_size) * first;
1404 buf = buf + first * size;
1409 n = last - first + 1;
1431 page, offs, len, col, first, n, page_size);
1433 max_bitflips = gpmi_count_bitflips(chip, buf, first, last, meta);
1479 * 2) In read operations, the first byte of the OOB we return must reflect the
1514 * | into the first byte of | |
1550 /* Read the block mark into the first byte of the OOB buffer. */
1731 * If required, swap the bad block marker and the first byte of the
1826 * Loop through the first search area, looking for the NCB fingerprint.
1895 /* Loop over blocks in the first search area, erasing them. */
1910 /* Loop through the first search area, writing NCB fingerprints. */
1916 /* Write the first page of the current stride. */