Lines Matching full:ua
182 struct dlm_user_args *ua; in dlm_user_add_ast() local
196 lkb->ua so we can't try to use it. This second check is necessary in dlm_user_add_ast()
205 ua = lkb->lkb_ua; in dlm_user_add_ast()
206 proc = ua->proc; in dlm_user_add_ast()
208 if ((flags & DLM_CB_BAST) && ua->bastaddr == NULL) in dlm_user_add_ast()
221 cb->ua = *ua; in dlm_user_add_ast()
222 cb->lkb_lksb = &cb->ua.lksb; in dlm_user_add_ast()
224 memcpy(cb->lvbptr, ua->lksb.sb_lvbptr, in dlm_user_add_ast()
252 struct dlm_user_args *ua; in device_user_lock() local
265 ua = kzalloc(sizeof(struct dlm_user_args), GFP_NOFS); in device_user_lock()
266 if (!ua) in device_user_lock()
268 ua->proc = proc; in device_user_lock()
269 ua->user_lksb = params->lksb; in device_user_lock()
270 ua->castparam = params->castparam; in device_user_lock()
271 ua->castaddr = params->castaddr; in device_user_lock()
272 ua->bastparam = params->bastparam; in device_user_lock()
273 ua->bastaddr = params->bastaddr; in device_user_lock()
274 ua->xid = params->xid; in device_user_lock()
277 error = dlm_user_convert(ls, ua, in device_user_lock()
281 error = dlm_user_adopt_orphan(ls, ua, in device_user_lock()
288 error = dlm_user_request(ls, ua, in device_user_lock()
292 error = ua->lksb.sb_lkid; in device_user_lock()
303 struct dlm_user_args *ua; in device_user_unlock() local
310 ua = kzalloc(sizeof(struct dlm_user_args), GFP_NOFS); in device_user_unlock()
311 if (!ua) in device_user_unlock()
313 ua->proc = proc; in device_user_unlock()
314 ua->user_lksb = params->lksb; in device_user_unlock()
315 ua->castparam = params->castparam; in device_user_unlock()
316 ua->castaddr = params->castaddr; in device_user_unlock()
319 error = dlm_user_cancel(ls, ua, params->flags, params->lkid); in device_user_unlock()
321 error = dlm_user_unlock(ls, ua, params->flags, params->lkid, in device_user_unlock()
681 looking for lkb->ua->proc */ in device_close()
695 static int copy_result_to_user(struct dlm_user_args *ua, int compat, in copy_result_to_user() argument
712 memcpy(&result.lksb, &ua->lksb, offsetof(struct dlm_lksb, sb_lvbptr)); in copy_result_to_user()
713 result.user_lksb = ua->user_lksb; in copy_result_to_user()
717 in dlm_user_convert() for updating ua from ua_tmp. OpenVMS, though, in copy_result_to_user()
722 result.user_astaddr = ua->bastaddr; in copy_result_to_user()
723 result.user_astparam = ua->bastparam; in copy_result_to_user()
726 result.user_astaddr = ua->castaddr; in copy_result_to_user()
727 result.user_astparam = ua->castparam; in copy_result_to_user()
741 if (copy_lvb && ua->lksb.sb_lvbptr && count >= len + DLM_USER_LVB_LEN) { in copy_result_to_user()
742 if (copy_to_user(buf+len, ua->lksb.sb_lvbptr, in copy_result_to_user()
858 ret = copy_result_to_user(&cb->ua, in device_read()