Lines Matching refs:param
60 smb_rw_param_t *param; in smb_pre_read() local
66 param = kmem_zalloc(sizeof (smb_rw_param_t), KM_SLEEP); in smb_pre_read()
67 sr->arg.rw = param; in smb_pre_read()
72 param->rw_offset = (uint64_t)off_low; in smb_pre_read()
73 param->rw_count = (uint32_t)count; in smb_pre_read()
74 param->rw_mincnt = 0; in smb_pre_read()
92 smb_rw_param_t *param = sr->arg.rw; in smb_com_read() local
104 if (param->rw_count > SMB_CORE_READ_MAX) in smb_com_read()
105 param->rw_count = SMB_CORE_READ_MAX; in smb_com_read()
107 if ((rc = smb_common_read(sr, param)) != 0) { in smb_com_read()
112 count = (uint16_t)param->rw_count; in smb_com_read()
144 smb_rw_param_t *param; in smb_pre_lock_and_read() local
150 param = kmem_zalloc(sizeof (smb_rw_param_t), KM_SLEEP); in smb_pre_lock_and_read()
151 sr->arg.rw = param; in smb_pre_lock_and_read()
156 param->rw_offset = (uint64_t)off_low; in smb_pre_lock_and_read()
157 param->rw_count = (uint32_t)count; in smb_pre_lock_and_read()
158 param->rw_mincnt = 0; in smb_pre_lock_and_read()
176 smb_rw_param_t *param = sr->arg.rw; in smb_com_lock_and_read() local
198 status = smb_lock_range(sr, param->rw_offset, (uint64_t)param->rw_count, in smb_com_lock_and_read()
206 if (param->rw_count > SMB_CORE_READ_MAX) in smb_com_lock_and_read()
207 param->rw_count = SMB_CORE_READ_MAX; in smb_com_lock_and_read()
209 if ((rc = smb_common_read(sr, param)) != 0) { in smb_com_lock_and_read()
214 count = (uint16_t)param->rw_count; in smb_com_lock_and_read()
264 smb_rw_param_t *param; in smb_pre_read_andx() local
273 param = kmem_zalloc(sizeof (smb_rw_param_t), KM_SLEEP); in smb_pre_read_andx()
274 sr->arg.rw = param; in smb_pre_read_andx()
277 rc = smbsr_decode_vwv(sr, "b3.wlwwlwl", ¶m->rw_andx, in smb_pre_read_andx()
281 param->rw_offset = ((uint64_t)off_high << 32) | in smb_pre_read_andx()
284 param->rw_count = (uint32_t)maxcnt_low; in smb_pre_read_andx()
288 param->rw_count |= maxcnt_high << 16; in smb_pre_read_andx()
290 rc = smbsr_decode_vwv(sr, "b3.wlwwlw", ¶m->rw_andx, in smb_pre_read_andx()
294 param->rw_offset = (uint64_t)off_low; in smb_pre_read_andx()
295 param->rw_count = (uint32_t)maxcnt_low; in smb_pre_read_andx()
298 param->rw_mincnt = 0; in smb_pre_read_andx()
316 smb_rw_param_t *param = sr->arg.rw; in smb_com_read_andx() local
331 if (param->rw_count >= SMB_READX_MAX) in smb_com_read_andx()
332 param->rw_count = 0; in smb_com_read_andx()
334 if ((rc = smb_common_read(sr, param)) != 0) { in smb_com_read_andx()
339 datalen_low = param->rw_count & 0xFFFF; in smb_com_read_andx()
340 datalen_high = (param->rw_count >> 16) & 0xFF; in smb_com_read_andx()
350 offset2 = (param->rw_andx == 0xFF) ? 0 : param->rw_count + 60; in smb_com_read_andx()
354 param->rw_andx, /* secondary andx command */ in smb_com_read_andx()
365 offset2 = (param->rw_andx == 0xFF) ? 0 : param->rw_count + 59; in smb_com_read_andx()
369 param->rw_andx, /* secondary andx command */ in smb_com_read_andx()
394 smb_common_read(smb_request_t *sr, smb_rw_param_t *param) in smb_common_read() argument
398 smb_vdb_t *vdb = ¶m->rw_vdb; in smb_common_read()
405 vdb->vdb_uio.uio_resid = param->rw_count; in smb_common_read()
406 vdb->vdb_uio.uio_loffset = (offset_t)param->rw_offset; in smb_common_read()
415 rc = smb_lock_range_access(sr, node, param->rw_offset, in smb_common_read()
416 param->rw_count, B_FALSE); in smb_common_read()
464 param->rw_count -= vdb->vdb_uio.uio_resid; in smb_common_read()
469 if (param->rw_mincnt != 0 && param->rw_count < param->rw_mincnt) { in smb_common_read()
476 param->rw_count = 0; in smb_common_read()
479 param->rw_offset += param->rw_count; in smb_common_read()
481 ofile->f_seek_pos = param->rw_offset; in smb_common_read()