Lines Matching defs:cb

1546 	struct nfsreq_cbinfo cb;
1575 cb.rcb_func = async ? nfs_buf_read_rpc_finish : NULL;
1576 cb.rcb_bp = bp;
1592 cb.rcb_args[0] = offset;
1593 cb.rcb_args[1] = len;
1595 cb.rcb_args[2] = nmp->nm_stategenid;
1597 error = nmp->nm_funcs->nf_read_rpc_async(np, boff + offset, len, thd, cred, &cb, &req);
1649 struct nfsreq_cbinfo cb;
1666 cb = req->r_callback;
1667 bp = cb.rcb_bp;
1668 if (cb.rcb_func) /* take an extra reference on the nfsreq in case we want to resend it later due to grace error */
1683 offset = cb.rcb_args[0];
1684 rlen = length = cb.rcb_args[1];
1692 if ((error == EINPROGRESS) && cb.rcb_func) {
1694 if (cb.rcb_func)
1702 if ((error != NFSERR_OLD_STATEID) && (error != NFSERR_GRACE) && (cb.rcb_args[2] == nmp->nm_stategenid)) {
1704 error, NBOFF(bp)+offset, cb.rcb_args[2], nmp->nm_stategenid);
1712 if (cb.rcb_func) {
1773 cb.rcb_args[0] = offset;
1774 cb.rcb_args[1] = length;
1776 cb.rcb_args[2] = nmp->nm_stategenid;
1777 error = nmp->nm_funcs->nf_read_rpc_async(np, NBOFF(bp) + offset, length, thd, cred, &cb, &rreq);
1781 if (!cb.rcb_func) {
1800 if (cb.rcb_func)
2694 struct nfsreq_cbinfo cb;
2714 cb.rcb_func = async ? nfs_buf_write_rpc_finish : NULL;
2715 cb.rcb_bp = bp;
2741 cb.rcb_args[0] = offset;
2742 cb.rcb_args[1] = len;
2744 cb.rcb_args[2] = nmp->nm_stategenid;
2749 iomode, &cb, &req);
2806 struct nfsreq_cbinfo cb;
2822 cb = req->r_callback;
2823 bp = cb.rcb_bp;
2824 if (cb.rcb_func) /* take an extra reference on the nfsreq in case we want to resend it later due to grace error */
2839 offset = cb.rcb_args[0];
2840 rlen = length = cb.rcb_args[1];
2844 if ((error == EINPROGRESS) && cb.rcb_func) {
2846 if (cb.rcb_func)
2854 if ((error != NFSERR_OLD_STATEID) && (error != NFSERR_GRACE) && (cb.rcb_args[2] == nmp->nm_stategenid)) {
2856 error, NBOFF(bp)+offset, cb.rcb_args[2], nmp->nm_stategenid);
2864 if (cb.rcb_func) {
2939 cb.rcb_args[0] = offset;
2940 cb.rcb_args[1] = length;
2942 cb.rcb_args[2] = nmp->nm_stategenid;
2946 NFS_WRITE_FILESYNC, &cb, &wreq);
2950 if (!cb.rcb_func) {
2969 if (cb.rcb_func) {