Lines Matching refs:ofile
166 smb_ofile_t *ofile = &ofile_array[fid]; in do_open() local
171 if (ofile->f_refcnt) { in do_open()
177 (void) strlcpy((char *)ofile->TargetOplockKey, arg2, in do_open()
181 ofile->f_refcnt++; in do_open()
183 smb_llist_insert_tail(&node->n_ofile_list, ofile); in do_open()
191 smb_ofile_t *ofile = &ofile_array[fid]; in do_close() local
196 if (ofile->f_refcnt <= 0) { in do_close()
204 smb_oplock_break_CLOSE(ofile->f_node, ofile); in do_close()
206 smb_llist_remove(&node->n_ofile_list, ofile); in do_close()
212 ofile->f_refcnt--; in do_close()
214 bzero(ofile->TargetOplockKey, SMB_LEASE_KEY_SZ); in do_close()
222 smb_ofile_t *ofile = &ofile_array[fid]; in do_req() local
232 status = smb_oplock_request(&test_sr, ofile, &oplock); in do_req()
235 ofile->f_oplock.og_state = oplock; in do_req()
237 ofile->f_oplock.og_breakto = oplock; in do_req()
238 ofile->f_oplock.og_breaking = B_FALSE; in do_req()
249 smb_ofile_t *ofile = &ofile_array[fid]; in do_ack() local
261 ofile->f_oplock.og_breaking = 0; in do_ack()
262 status = smb_oplock_ack_break(&test_sr, ofile, &oplock); in do_ack()
264 ofile->f_oplock.og_state = oplock; in do_ack()
278 run_ind_break_in_ack(ofile); in do_ack()
284 smb_ofile_t *ofile = &ofile_array[fid]; in do_brk_parent() local
287 status = smb_oplock_break_PARENT(&test_node, ofile); in do_brk_parent()
295 smb_ofile_t *ofile = &ofile_array[fid]; in do_brk_open() local
302 status = smb_oplock_break_OPEN(&test_node, ofile, 7, disp); in do_brk_open()
310 smb_ofile_t *ofile = &ofile_array[fid]; in do_brk_handle() local
313 status = smb_oplock_break_HANDLE(&test_node, ofile); in do_brk_handle()
322 smb_ofile_t *ofile = &ofile_array[fid]; in do_brk_read() local
325 status = smb_oplock_break_READ(ofile->f_node, ofile); in do_brk_read()
333 smb_ofile_t *ofile = &ofile_array[fid]; in do_brk_write() local
336 status = smb_oplock_break_WRITE(ofile->f_node, ofile); in do_brk_write()
344 smb_ofile_t *ofile = &ofile_array[fid]; in do_brk_setinfo() local
352 &test_node, ofile, infoclass); in do_brk_setinfo()
366 smb_ofile_t *ofile = &ofile_array[fid]; in do_move() local
383 smb_oplock_move(&test_node, ofile, of2); in do_move()
558 smb_ofile_is_open(smb_ofile_t *ofile) in smb_ofile_is_open() argument
560 return (ofile->f_refcnt != 0); in smb_ofile_is_open()
584 test_oplock_send_break(smb_ofile_t *ofile, in test_oplock_send_break() argument
587 smb_oplock_grant_t *og = &ofile->f_oplock; in test_oplock_send_break()
601 ofile->f_fid, NewLevel, OldLevel, AckReq); in test_oplock_send_break()
616 smb_oplock_ind_break(smb_ofile_t *ofile, uint32_t NewLevel, in smb_oplock_ind_break() argument
619 smb_oplock_grant_t *og = &ofile->f_oplock; in smb_oplock_ind_break()
623 ofile->f_fid, NewLevel, AckReq, in smb_oplock_ind_break()
635 test_oplock_send_break(ofile, NewLevel, AckReq); in smb_oplock_ind_break()
657 smb_oplock_ind_break_in_ack(smb_request_t *sr, smb_ofile_t *ofile, in smb_oplock_ind_break_in_ack() argument
670 run_ind_break_in_ack(smb_ofile_t *ofile) in run_ind_break_in_ack() argument
684 ofile->f_fid, NewLevel, AckReq); in run_ind_break_in_ack()
686 test_oplock_send_break(ofile, NewLevel, AckReq); in run_ind_break_in_ack()