Lines Matching refs:total_bytes

553 static int _alloc_cdb_cont(struct osd_request *or, unsigned total_bytes)
555 OSD_DEBUG("total_bytes=%d\n", total_bytes);
556 return _osd_realloc_seg(or, &or->cdb_cont, total_bytes);
562 unsigned total_bytes = add_bytes;
565 total_bytes += _osd_req_alist_elem_size(or, oa->len);
567 OSD_DEBUG("total_bytes=%d\n", total_bytes);
568 return _osd_realloc_seg(or, &or->set_attr, total_bytes);
573 OSD_DEBUG("total_bytes=%d\n", max_bytes);
579 OSD_DEBUG("total_bytes=%d\n", or->get_attr.total_bytes);
580 return _osd_realloc_seg(or, &or->get_attr, or->get_attr.total_bytes);
730 or->in.total_bytes = bio->bi_size;
825 WARN_ON(or->out.bio || or->out.total_bytes);
828 or->out.total_bytes = len;
876 WARN_ON(or->in.bio || or->in.total_bytes);
879 or->in.total_bytes = len;
907 if (!or->cdb_cont.total_bytes) {
909 * cdb_cont.buff + cdb_cont.total_bytes
911 or->cdb_cont.total_bytes =
915 ret = _alloc_cdb_cont(or, or->cdb_cont.total_bytes + oscd_size);
919 oscd = or->cdb_cont.buff + or->cdb_cont.total_bytes;
932 or->cdb_cont.total_bytes += oscd_size;
933 OSD_DEBUG("total_bytes=%d oscd_size=%d numentries=%d\n",
934 or->cdb_cont.total_bytes, oscd_size, numentries);
945 if (!or->cdb_cont.total_bytes)
953 bio = bio_map_kern(req_q, or->cdb_cont.buff, or->cdb_cont.total_bytes,
966 cdbh->v2.cdb_continuation_length = cpu_to_be32(or->cdb_cont.total_bytes);
975 or->out.total_bytes += or->cdb_cont.total_bytes;
984 * total_bytes(sglist) >= total_bytes(bio)
1123 unsigned total_bytes = or->set_attr.total_bytes;
1134 if (!total_bytes) { /* first-time: allocate and put list header */
1135 total_bytes = _osd_req_sizeof_alist_header(or);
1136 ret = _alloc_set_attr_list(or, oa, nelem, total_bytes);
1142 attr_last = or->set_attr.buff + total_bytes;
1147 total_bytes += elem_size;
1148 if (unlikely(or->set_attr.alloc_size < total_bytes)) {
1149 or->set_attr.total_bytes = total_bytes - elem_size;
1150 ret = _alloc_set_attr_list(or, oa, nelem, total_bytes);
1154 or->set_attr.buff + or->set_attr.total_bytes;
1163 or->set_attr.total_bytes = total_bytes;
1178 (padding <= last_seg->alloc_size - last_seg->total_bytes))
1179 pad_buff = last_seg->buff + last_seg->total_bytes;
1187 io->total_bytes += padding;
1190 ret = blk_rq_map_kern(io->req->q, io->req, seg->buff, seg->total_bytes,
1195 io->total_bytes += seg->total_bytes;
1196 OSD_DEBUG("padding=%d buff=%p total_bytes=%d\n", padding, seg->buff,
1197 seg->total_bytes);
1207 if (!or->set_attr.total_bytes) {
1212 cdbh->attrs_list.set_attr_bytes = cpu_to_be32(or->set_attr.total_bytes);
1214 osd_req_encode_offset(or, or->out.total_bytes, &padding);
1228 unsigned total_bytes = or->enc_get_attr.total_bytes;
1240 if (!or->get_attr.total_bytes)
1241 or->get_attr.total_bytes = _osd_req_sizeof_alist_header(or);
1244 if (!total_bytes) { /* first-time: allocate and put list header */
1247 total_bytes = _osd_req_sizeof_alist_header(or);
1248 max_bytes = total_bytes +
1257 attr_last = or->enc_get_attr.buff + total_bytes;
1263 total_bytes += cur_size;
1264 if (unlikely(or->enc_get_attr.alloc_size < total_bytes)) {
1265 or->enc_get_attr.total_bytes = total_bytes - cur_size;
1267 total_bytes + nelem * sizeof(*attrid));
1271 or->enc_get_attr.total_bytes;
1281 or->get_attr.total_bytes +=
1286 or->enc_get_attr.total_bytes = total_bytes;
1289 "get_attr.total_bytes=%u(%u) enc_get_attr.total_bytes=%u(%Zu)\n",
1290 or->get_attr.total_bytes,
1291 or->get_attr.total_bytes - _osd_req_sizeof_alist_header(or),
1292 or->enc_get_attr.total_bytes,
1293 (or->enc_get_attr.total_bytes - _osd_req_sizeof_alist_header(or))
1307 if (!or->enc_get_attr.total_bytes) {
1320 cpu_to_be32(or->enc_get_attr.total_bytes);
1323 osd_req_encode_offset(or, or->out.total_bytes, &out_padding);
1334 cpu_to_be32(or->get_attr.total_bytes);
1337 osd_req_encode_offset(or, or->in.total_bytes, &in_padding);
1371 returned_bytes = or->get_attr.total_bytes;
1388 or->get_attr.total_bytes = returned_bytes;
1433 or->get_attr.total_bytes = max_page_len;
1442 or->set_attr.total_bytes = set_one_attr->len;
1459 osd_req_encode_offset(or, or->in.total_bytes, &in_padding);
1466 if (or->set_attr.total_bytes == 0)
1471 osd_req_encode_offset(or, or->out.total_bytes, &out_padding);
1509 .total_bytes = sizeof(or->out_data_integ),
1515 or->set_attr.total_bytes);
1517 or->enc_get_attr.total_bytes);
1520 osd_req_encode_offset(or, or->out.total_bytes, &pad));
1536 .total_bytes = sizeof(or->in_data_integ),
1541 osd_req_encode_offset(or, or->in.total_bytes, &pad));
1627 u64 out_data_bytes = or->out.total_bytes;
1641 has_in = or->in.bio || or->get_attr.total_bytes;
1642 has_out = or->out.bio || or->cdb_cont.total_bytes ||
1643 or->set_attr.total_bytes || or->enc_get_attr.total_bytes;
1938 or->out.residual = or->out.total_bytes;
1940 or->in.residual = or->in.total_bytes;