Lines Matching refs:period
4921 * nand_id_has_period - Check if an ID string has a given wraparound period
4924 * @period: the period of repitition
4927 * specific repetition interval period (e.g., {0x20,0x01,0x7F,0x20} has a
4928 * period of 3). This is a helper function for nand_id_len(). Returns non-zero
4929 * if the repetition has a period of @period; otherwise, returns zero.
4931 static int nand_id_has_period(u8 *id_data, int arrlen, int period)
4934 for (i = 0; i < period; i++)
4935 for (j = i + period; j < arrlen; j += period)
4951 int last_nonzero, period;
4962 /* Calculate wraparound period */
4963 for (period = 1; period < arrlen; period++)
4964 if (nand_id_has_period(id_data, arrlen, period))
4968 if (period < arrlen)
4969 return period;