Lines Matching refs:buf
26 __u32 *oplock, FILE_ALL_INFO *buf) in smb2_open_file() argument
76 if (buf) { in smb2_open_file()
92 move_smb2_info_to_cifs(buf, smb2_data); in smb2_open_file()
108 struct smb2_lock_element *buf, *cur; in smb2_unlock_range() local
128 buf = kcalloc(max_num, sizeof(struct smb2_lock_element), GFP_KERNEL); in smb2_unlock_range()
129 if (!buf) in smb2_unlock_range()
132 cur = buf; in smb2_unlock_range()
169 current->tgid, num, buf); in smb2_unlock_range()
185 cur = buf; in smb2_unlock_range()
193 num, buf); in smb2_unlock_range()
202 kfree(buf); in smb2_unlock_range()
208 struct smb2_lock_element *buf, unsigned int max_num) in smb2_push_mand_fdlocks() argument
214 struct smb2_lock_element *cur = buf; in smb2_push_mand_fdlocks()
226 current->tgid, num, buf); in smb2_push_mand_fdlocks()
229 cur = buf; in smb2_push_mand_fdlocks()
238 current->tgid, num, buf); in smb2_push_mand_fdlocks()
252 struct smb2_lock_element *buf; in smb2_push_mandatory_locks() local
271 buf = kcalloc(max_num, sizeof(struct smb2_lock_element), GFP_KERNEL); in smb2_push_mandatory_locks()
272 if (!buf) { in smb2_push_mandatory_locks()
278 stored_rc = smb2_push_mand_fdlocks(fdlocks, xid, buf, max_num); in smb2_push_mandatory_locks()
283 kfree(buf); in smb2_push_mandatory_locks()