Lines Matching refs:sz

130     int sz;              /* input/output */  member
152 io_hdr.dxfer_len = data->sz; in do_sgio_worker()
172 data->sz -= io_hdr.resid; in do_sgio_worker()
174 data->sz = 0; in do_sgio_worker()
181 uint8_t *buf, int *sz, int dir) in do_sgio() argument
190 .sz = *sz, in do_sgio()
195 *sz = data.sz; in do_sgio()
332 int sz = 0; in mpath_reconstruct_sense() local
333 int ret = do_sgio(fd, cdb, sense, NULL, &sz, SG_DXFER_NONE); in mpath_reconstruct_sense()
371 uint8_t *data, int sz) in multipath_pr_in() argument
397 assert(sz >= 8); in multipath_pr_in()
398 written = MIN(out->additional_length + 8, sz); in multipath_pr_in()
406 assert(sz >= 6); in multipath_pr_in()
418 assert(written <= sz); in multipath_pr_in()
419 memset(data + written, 0, sz - written); in multipath_pr_in()
426 const uint8_t *param, int sz) in multipath_pr_out() argument
438 if (sz < PR_OUT_FIXED_PARAM_SIZE) { in multipath_pr_out()
470 if (sz > PR_OUT_FIXED_PARAM_SIZE) { in multipath_pr_out()
473 if (sz < PR_OUT_FIXED_PARAM_SIZE + 4) { in multipath_pr_out()
478 if (transportid_len > sz) { in multipath_pr_out()
562 const uint8_t *param, int sz) in do_pr_out() argument
573 return multipath_pr_out(fd, cdb, sense, param, sz); in do_pr_out()
577 resp_sz = sz; in do_pr_out()
593 size_t sz; member
597 static int coroutine_fn prh_read(PRHelperClient *client, void *buf, int sz, in prh_read() argument
602 while (sz > 0) { in prh_read()
610 iov.iov_len = sz; in prh_read()
642 sz -= n_read; in prh_read()
659 uint32_t sz; in prh_read_request() local
676 sz = scsi_cdb_xfer(req->cdb); in prh_read_request()
677 if (sz > sizeof(client->data)) { in prh_read_request()
683 (char *)client->data, sz, in prh_read_request()
690 req->sz = sz; in prh_read_request()
692 return sz; in prh_read_request()
705 size_t sz; in prh_write_response() local
708 assert(resp->sz <= req->sz && resp->sz <= sizeof(client->data)); in prh_write_response()
710 assert(resp->sz == 0); in prh_write_response()
713 sz = resp->sz; in prh_write_response()
716 resp->sz = cpu_to_be32(resp->sz); in prh_write_response()
725 sz, errp); in prh_write_response()
759 int sz; in prh_co_entry() local
761 sz = prh_read_request(client, &req, &resp, &local_err); in prh_co_entry()
762 if (sz < 0) { in prh_co_entry()
769 client->data, sz); in prh_co_entry()
770 resp.sz = 0; in prh_co_entry()
772 resp.sz = sizeof(client->data); in prh_co_entry()
774 client->data, &resp.sz); in prh_co_entry()
775 resp.sz = MIN(resp.sz, sz); in prh_co_entry()