Lines Matching defs:mode
24 log_print("last_bast %x %llu flags %x mode %d sb %d %x",
28 lkb->lkb_last_bast.mode,
32 log_print("last_cast %x %llu flags %x mode %d sb %d %x",
36 lkb->lkb_last_cast.mode,
41 log_print("cb %x %llu flags %x mode %d sb %d %x",
45 lkb->lkb_callbacks[i].mode,
51 int dlm_add_lkb_callback(struct dlm_lkb *lkb, uint32_t flags, int mode,
66 * is a bast for the same mode or a more restrictive mode.
74 prev_mode = lkb->lkb_callbacks[i-1].mode;
76 if ((prev_mode == mode) ||
77 (prev_mode > mode && prev_mode > DLM_LOCK_PR)) {
79 log_debug(ls, "skip %x add bast %llu mode %d "
80 "for bast %llu mode %d",
83 mode,
93 lkb->lkb_callbacks[i].mode = mode;
101 log_error(ls, "no callbacks %x %llu flags %x mode %d sb %d %x",
103 flags, mode, status, sbflags);
140 /* if cb is a bast, it should be skipped if the blocking mode is
141 compatible with the last granted mode */
144 if (dlm_modes_compat(cb->mode, lkb->lkb_last_cast.mode)) {
147 log_debug(ls, "skip %x bast %llu mode %d "
148 "for cast %llu mode %d",
151 cb->mode,
153 lkb->lkb_last_cast.mode);
173 void dlm_add_cb(struct dlm_lkb *lkb, uint32_t flags, int mode, int status,
187 dlm_user_add_ast(lkb, flags, mode, status, sbflags, new_seq);
194 rv = dlm_add_lkb_callback(lkb, flags, mode, status, sbflags, new_seq);
218 void (*bastfn) (void *astparam, int mode);
256 bastfn(lkb->lkb_astparam, callbacks[i].mode);