: We generalize the notion of pattern avoidance to arbitrary functions on ordered sets, and consider specifically three scenarios for permutations: linear, cyclic and hybrid, the first one corresponding to classical permutation avoidance. The cyclic modification allows for circular shifts in the entries. Using two bijections, both ascribable to both Deutsch and Krattenthaler independently, we single out two geometrically significant classes of Dyck paths that correspond to two instances of simultaneous avoidance in the purely linear case, and to two distinct patterns in the hybrid case: non-decreasing Dyck paths (first considered by Barcucci et al.), and Dyck paths with at most one long vertical or horizontal edge. We derive a generating function counting Dyck paths by their number of low and high peaks, long horizontal and vertical edges, and what we call sinking steps. This translates into the joint distribution of fixed points, excedances, deficiencies, descents and inverse descents...