Lines Matching defs:piv
612 * mas_safe_pivot() - get the pivot at @piv or mas->max.
615 * @piv: The pivot to fetch
618 * Return: The pivot at @piv within the limit of the @pivots array, @mas->max
623 unsigned char piv, enum maple_type type)
625 if (piv >= mt_pivots[type])
628 return pivots[piv];
651 * @piv: The pivot offset
654 static inline void mte_set_pivot(struct maple_enode *mn, unsigned char piv,
660 BUG_ON(piv >= mt_pivots[type]);
664 node->mr64.pivot[piv] = val;
667 node->ma64.pivot[piv] = val;
6826 unsigned long piv;
6828 piv = mas_safe_pivot(mas, pivots, i, type);
6830 if (!piv && (i != 0)) {
6836 if (prev_piv > piv) {
6837 pr_err(PTR_FMT "[%u] piv %lu < prev_piv %lu\n",
6838 mas_mn(mas), i, piv, prev_piv);
6839 MAS_WARN_ON(mas, piv < prev_piv);
6842 if (piv < mas->min) {
6844 piv, mas->min);
6845 MAS_WARN_ON(mas, piv < mas->min);
6847 if (piv > mas->max) {
6849 piv, mas->max);
6850 MAS_WARN_ON(mas, piv > mas->max);
6852 prev_piv = piv;
6853 if (piv == mas->max)
6873 unsigned long piv = pivots[i];
6875 if (!piv)
6878 pr_err(PTR_FMT "[%u] should not have piv %lu\n",
6879 mas_mn(mas), i, piv);