Lines Matching refs:ua
181 struct dlm_user_args *ua; in dlm_user_add_ast() local
201 ua = lkb->lkb_ua; in dlm_user_add_ast()
202 proc = ua->proc; in dlm_user_add_ast()
204 if ((flags & DLM_CB_BAST) && ua->bastaddr == NULL) in dlm_user_add_ast()
242 struct dlm_user_args *ua; in device_user_lock() local
263 ua = kzalloc(sizeof(struct dlm_user_args), GFP_NOFS); in device_user_lock()
264 if (!ua) in device_user_lock()
266 ua->proc = proc; in device_user_lock()
267 ua->user_lksb = params->lksb; in device_user_lock()
268 ua->castparam = params->castparam; in device_user_lock()
269 ua->castaddr = params->castaddr; in device_user_lock()
270 ua->bastparam = params->bastparam; in device_user_lock()
271 ua->bastaddr = params->bastaddr; in device_user_lock()
272 ua->xid = params->xid; in device_user_lock()
276 error = dlm_user_convert(ls, ua, in device_user_lock()
281 error = dlm_user_convert(ls, ua, in device_user_lock()
286 error = dlm_user_adopt_orphan(ls, ua, in device_user_lock()
294 error = dlm_user_request(ls, ua, in device_user_lock()
299 error = dlm_user_request(ls, ua, in device_user_lock()
304 error = ua->lksb.sb_lkid; in device_user_lock()
315 struct dlm_user_args *ua; in device_user_unlock() local
322 ua = kzalloc(sizeof(struct dlm_user_args), GFP_NOFS); in device_user_unlock()
323 if (!ua) in device_user_unlock()
325 ua->proc = proc; in device_user_unlock()
326 ua->user_lksb = params->lksb; in device_user_unlock()
327 ua->castparam = params->castparam; in device_user_unlock()
328 ua->castaddr = params->castaddr; in device_user_unlock()
331 error = dlm_user_cancel(ls, ua, params->flags, params->lkid); in device_user_unlock()
333 error = dlm_user_unlock(ls, ua, params->flags, params->lkid, in device_user_unlock()
707 static int copy_result_to_user(struct dlm_user_args *ua, int compat, in copy_result_to_user() argument
724 memcpy(&result.lksb, &ua->lksb, offsetof(struct dlm_lksb, sb_lvbptr)); in copy_result_to_user()
725 result.user_lksb = ua->user_lksb; in copy_result_to_user()
734 result.user_astaddr = ua->bastaddr; in copy_result_to_user()
735 result.user_astparam = ua->bastparam; in copy_result_to_user()
738 result.user_astaddr = ua->castaddr; in copy_result_to_user()
739 result.user_astparam = ua->castparam; in copy_result_to_user()
753 if (copy_lvb && ua->lksb.sb_lvbptr && count >= len + DLM_USER_LVB_LEN) { in copy_result_to_user()
754 if (copy_to_user(buf+len, ua->lksb.sb_lvbptr, in copy_result_to_user()