brl               142 source3/rpc_server/srv_srvsvc_nt.c 	struct byte_range_lock *brl;
brl               174 source3/rpc_server/srv_srvsvc_nt.c 	if ( (brl = brl_get_locks(talloc_tos(), &fsp)) != NULL ) {
brl               175 source3/rpc_server/srv_srvsvc_nt.c 		num_locks = brl->num_locks;
brl               176 source3/rpc_server/srv_srvsvc_nt.c 		TALLOC_FREE(brl);
brl                72 source4/ntvfs/common/brlock.c NTSTATUS brl_lock(struct brl_context *brl,
brl                79 source4/ntvfs/common/brlock.c 	return ops->brl_lock(brl, brlh, smbpid, start, size, lock_type, notify_ptr);
brl                86 source4/ntvfs/common/brlock.c NTSTATUS brl_unlock(struct brl_context *brl,
brl                91 source4/ntvfs/common/brlock.c 	return ops->brl_unlock(brl, brlh, smbpid, start, size);
brl                99 source4/ntvfs/common/brlock.c NTSTATUS brl_remove_pending(struct brl_context *brl,
brl               103 source4/ntvfs/common/brlock.c 	return ops->brl_remove_pending(brl, brlh, notify_ptr);
brl               110 source4/ntvfs/common/brlock.c NTSTATUS brl_locktest(struct brl_context *brl,
brl               116 source4/ntvfs/common/brlock.c 	return ops->brl_locktest(brl, brlh, smbpid, start, size, lock_type);
brl               123 source4/ntvfs/common/brlock.c NTSTATUS brl_close(struct brl_context *brl,
brl               126 source4/ntvfs/common/brlock.c 	return ops->brl_close(brl, brlh);
brl                92 source4/ntvfs/common/brlock_tdb.c 	struct brl_context *brl;
brl                94 source4/ntvfs/common/brlock_tdb.c 	brl = talloc(mem_ctx, struct brl_context);
brl                95 source4/ntvfs/common/brlock_tdb.c 	if (brl == NULL) {
brl                99 source4/ntvfs/common/brlock_tdb.c 	brl->w = cluster_tdb_tmp_open(brl, lp_ctx, "brlock.tdb", TDB_DEFAULT);
brl               100 source4/ntvfs/common/brlock_tdb.c 	if (brl->w == NULL) {
brl               101 source4/ntvfs/common/brlock_tdb.c 		talloc_free(brl);
brl               105 source4/ntvfs/common/brlock_tdb.c 	brl->server = server;
brl               106 source4/ntvfs/common/brlock_tdb.c 	brl->messaging_ctx = messaging_ctx;
brl               108 source4/ntvfs/common/brlock_tdb.c 	return brl;
brl               287 source4/ntvfs/common/brlock_tdb.c static NTSTATUS brl_tdb_lock(struct brl_context *brl,
brl               302 source4/ntvfs/common/brlock_tdb.c 	if (tdb_chainlock(brl->w->tdb, kbuf) != 0) {
brl               316 source4/ntvfs/common/brlock_tdb.c 		status = brl_tdb_lock(brl, brlh, smbpid, start, size, rw, NULL);
brl               320 source4/ntvfs/common/brlock_tdb.c 			tdb_chainunlock(brl->w->tdb, kbuf);
brl               325 source4/ntvfs/common/brlock_tdb.c 	dbuf = tdb_fetch(brl->w->tdb, kbuf);
brl               328 source4/ntvfs/common/brlock_tdb.c 	lock.context.server = brl->server;
brl               329 source4/ntvfs/common/brlock_tdb.c 	lock.context.ctx = brl;
brl               331 source4/ntvfs/common/brlock_tdb.c 	lock.context.ctx = brl;
brl               360 source4/ntvfs/common/brlock_tdb.c 	if (tdb_store(brl->w->tdb, kbuf, dbuf, TDB_REPLACE) != 0) {
brl               366 source4/ntvfs/common/brlock_tdb.c 	tdb_chainunlock(brl->w->tdb, kbuf);
brl               380 source4/ntvfs/common/brlock_tdb.c 	tdb_chainunlock(brl->w->tdb, kbuf);
brl               390 source4/ntvfs/common/brlock_tdb.c static void brl_tdb_notify_unlock(struct brl_context *brl,
brl               411 source4/ntvfs/common/brlock_tdb.c 			messaging_send_ptr(brl->messaging_ctx, locks[i].context.server, 
brl               422 source4/ntvfs/common/brlock_tdb.c static void brl_tdb_notify_all(struct brl_context *brl,
brl               428 source4/ntvfs/common/brlock_tdb.c 			brl_tdb_notify_unlock(brl, locks, count, &locks[i]);
brl               438 source4/ntvfs/common/brlock_tdb.c static NTSTATUS brl_tdb_unlock(struct brl_context *brl,
brl               452 source4/ntvfs/common/brlock_tdb.c 	if (tdb_chainlock(brl->w->tdb, kbuf) != 0) {
brl               456 source4/ntvfs/common/brlock_tdb.c 	dbuf = tdb_fetch(brl->w->tdb, kbuf);
brl               458 source4/ntvfs/common/brlock_tdb.c 		tdb_chainunlock(brl->w->tdb, kbuf);
brl               463 source4/ntvfs/common/brlock_tdb.c 	context.server = brl->server;
brl               464 source4/ntvfs/common/brlock_tdb.c 	context.ctx = brl;
brl               497 source4/ntvfs/common/brlock_tdb.c 			if (tdb_delete(brl->w->tdb, kbuf) != 0) {
brl               510 source4/ntvfs/common/brlock_tdb.c 			brl_tdb_notify_unlock(brl, locks, count, &removed_lock);
brl               514 source4/ntvfs/common/brlock_tdb.c 			if (tdb_store(brl->w->tdb, kbuf, dbuf, TDB_REPLACE) != 0) {
brl               521 source4/ntvfs/common/brlock_tdb.c 		tdb_chainunlock(brl->w->tdb, kbuf);
brl               530 source4/ntvfs/common/brlock_tdb.c 	tdb_chainunlock(brl->w->tdb, kbuf);
brl               540 source4/ntvfs/common/brlock_tdb.c static NTSTATUS brl_tdb_remove_pending(struct brl_context *brl,
brl               552 source4/ntvfs/common/brlock_tdb.c 	if (tdb_chainlock(brl->w->tdb, kbuf) != 0) {
brl               556 source4/ntvfs/common/brlock_tdb.c 	dbuf = tdb_fetch(brl->w->tdb, kbuf);
brl               558 source4/ntvfs/common/brlock_tdb.c 		tdb_chainunlock(brl->w->tdb, kbuf);
brl               571 source4/ntvfs/common/brlock_tdb.c 		    cluster_id_equal(&lock->context.server, &brl->server)) {
brl               574 source4/ntvfs/common/brlock_tdb.c 				if (tdb_delete(brl->w->tdb, kbuf) != 0) {
brl               585 source4/ntvfs/common/brlock_tdb.c 				if (tdb_store(brl->w->tdb, kbuf, dbuf, TDB_REPLACE) != 0) {
brl               592 source4/ntvfs/common/brlock_tdb.c 			tdb_chainunlock(brl->w->tdb, kbuf);
brl               602 source4/ntvfs/common/brlock_tdb.c 	tdb_chainunlock(brl->w->tdb, kbuf);
brl               610 source4/ntvfs/common/brlock_tdb.c static NTSTATUS brl_tdb_locktest(struct brl_context *brl,
brl               623 source4/ntvfs/common/brlock_tdb.c 	dbuf = tdb_fetch(brl->w->tdb, kbuf);
brl               629 source4/ntvfs/common/brlock_tdb.c 	lock.context.server = brl->server;
brl               630 source4/ntvfs/common/brlock_tdb.c 	lock.context.ctx = brl;
brl               655 source4/ntvfs/common/brlock_tdb.c static NTSTATUS brl_tdb_close(struct brl_context *brl,
brl               666 source4/ntvfs/common/brlock_tdb.c 	if (tdb_chainlock(brl->w->tdb, kbuf) != 0) {
brl               670 source4/ntvfs/common/brlock_tdb.c 	dbuf = tdb_fetch(brl->w->tdb, kbuf);
brl               672 source4/ntvfs/common/brlock_tdb.c 		tdb_chainunlock(brl->w->tdb, kbuf);
brl               683 source4/ntvfs/common/brlock_tdb.c 		if (lock->context.ctx == brl &&
brl               684 source4/ntvfs/common/brlock_tdb.c 		    cluster_id_equal(&lock->context.server, &brl->server) &&
brl               700 source4/ntvfs/common/brlock_tdb.c 		if (tdb_delete(brl->w->tdb, kbuf) != 0) {
brl               707 source4/ntvfs/common/brlock_tdb.c 		brl_tdb_notify_all(brl, locks, count);
brl               711 source4/ntvfs/common/brlock_tdb.c 		if (tdb_store(brl->w->tdb, kbuf, dbuf, TDB_REPLACE) != 0) {
brl               717 source4/ntvfs/common/brlock_tdb.c 	tdb_chainunlock(brl->w->tdb, kbuf);