Lines Matching refs:lkb_callbacks
45 (unsigned long long)lkb->lkb_callbacks[i].seq, in dlm_dump_lkb_callbacks()
46 lkb->lkb_callbacks[i].flags, in dlm_dump_lkb_callbacks()
47 lkb->lkb_callbacks[i].mode, in dlm_dump_lkb_callbacks()
48 lkb->lkb_callbacks[i].sb_status, in dlm_dump_lkb_callbacks()
49 lkb->lkb_callbacks[i].sb_flags); in dlm_dump_lkb_callbacks()
62 if (lkb->lkb_callbacks[i].seq) in dlm_add_lkb_callback()
73 (lkb->lkb_callbacks[i-1].flags & DLM_CB_BAST)) { in dlm_add_lkb_callback()
75 prev_seq = lkb->lkb_callbacks[i-1].seq; in dlm_add_lkb_callback()
76 prev_mode = lkb->lkb_callbacks[i-1].mode; in dlm_add_lkb_callback()
93 lkb->lkb_callbacks[i].seq = seq; in dlm_add_lkb_callback()
94 lkb->lkb_callbacks[i].flags = flags; in dlm_add_lkb_callback()
95 lkb->lkb_callbacks[i].mode = mode; in dlm_add_lkb_callback()
96 lkb->lkb_callbacks[i].sb_status = status; in dlm_add_lkb_callback()
97 lkb->lkb_callbacks[i].sb_flags = (sbflags & 0x000000FF); in dlm_add_lkb_callback()
121 if (!lkb->lkb_callbacks[0].seq) { in dlm_rem_lkb_callback()
128 memcpy(cb, &lkb->lkb_callbacks[0], sizeof(struct dlm_callback)); in dlm_rem_lkb_callback()
129 memset(&lkb->lkb_callbacks[0], 0, sizeof(struct dlm_callback)); in dlm_rem_lkb_callback()
134 if (!lkb->lkb_callbacks[i].seq) in dlm_rem_lkb_callback()
136 memcpy(&lkb->lkb_callbacks[i-1], &lkb->lkb_callbacks[i], in dlm_rem_lkb_callback()
138 memset(&lkb->lkb_callbacks[i], 0, sizeof(struct dlm_callback)); in dlm_rem_lkb_callback()
194 prev_seq = lkb->lkb_callbacks[0].seq; in dlm_add_cb()
227 if (!lkb->lkb_callbacks[0].seq) { in dlm_callback_work()