Lines Matching refs:wa
124 xdr_writeargs(XDR *xdrs, struct nfswriteargs *wa)
131 wa->wa_args = &wa->wa_args_buf;
135 fhp = (int32_t *)&wa->wa_fhandle;
144 wa->wa_begoff = IXDR_GET_U_INT32(ptr);
145 wa->wa_offset = IXDR_GET_U_INT32(ptr);
146 wa->wa_totcount = IXDR_GET_U_INT32(ptr);
147 wa->wa_mblk = NULL;
148 wa->wa_data = NULL;
149 wa->wa_rlist = NULL;
150 wa->wa_conn = NULL;
152 return (xdrmblk_getmblk(xdrs, &wa->wa_mblk,
153 &wa->wa_count));
157 &wa->wa_rlist,
158 &wa->wa_count,
159 &wa->wa_conn,
162 wa->wa_rlist,
163 &wa->wa_conn,
164 wa->wa_count));
166 wa->wa_rlist = NULL;
167 wa->wa_conn = NULL;
175 return (xdr_bytes(xdrs, &wa->wa_data,
176 &wa->wa_count, NFS_MAXDATA));
178 if (xdr_fhandle(xdrs, &wa->wa_fhandle) &&
179 xdr_u_int(xdrs, &wa->wa_begoff) &&
180 xdr_u_int(xdrs, &wa->wa_offset) &&
181 xdr_u_int(xdrs, &wa->wa_totcount)) {
184 wa->wa_mblk = NULL;
185 wa->wa_data = NULL;
186 wa->wa_rlist = NULL;
187 wa->wa_conn = NULL;
190 if (xdrmblk_getmblk(xdrs, &wa->wa_mblk,
191 &wa->wa_count) == TRUE)
196 &wa->wa_rlist,
197 &wa->wa_count,
198 &wa->wa_conn,
201 wa->wa_rlist,
202 &wa->wa_conn,
203 wa->wa_count));
205 wa->wa_rlist = NULL;
206 wa->wa_conn = NULL;
209 return (xdr_bytes(xdrs, &wa->wa_data,
210 &wa->wa_count, NFS_MAXDATA));
217 fhp = (int32_t *)&wa->wa_fhandle;
226 IXDR_PUT_U_INT32(ptr, wa->wa_begoff);
227 IXDR_PUT_U_INT32(ptr, wa->wa_offset);
228 IXDR_PUT_U_INT32(ptr, wa->wa_totcount);
230 if (!(xdr_fhandle(xdrs, &wa->wa_fhandle) &&
231 xdr_u_int(xdrs, &wa->wa_begoff) &&
232 xdr_u_int(xdrs, &wa->wa_offset) &&
233 xdr_u_int(xdrs, &wa->wa_totcount)))
237 return (xdr_bytes(xdrs, &wa->wa_data, &wa->wa_count,
240 if (wa->wa_rlist) {
241 (void) xdrrdma_free_clist(wa->wa_conn, wa->wa_rlist);
242 wa->wa_rlist = NULL;
245 if (wa->wa_data != NULL) {
246 kmem_free(wa->wa_data, wa->wa_count);
247 wa->wa_data = NULL;