Lines Matching refs:desc
287 struct vmpacket_descriptor *desc = kv_list[0].iov_base; in hv_ringbuffer_write() local
337 if (desc->flags == VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED) { in hv_ringbuffer_write()
346 desc = hv_get_ring_buffer(outring_info) + old_write; in hv_ringbuffer_write()
353 WRITE_ONCE(desc->trans_id, __trans_id); in hv_ringbuffer_write()
392 struct vmpacket_descriptor *desc; in hv_ringbuffer_read() local
402 desc = hv_pkt_iter_first(channel); in hv_ringbuffer_read()
403 if (desc == NULL) { in hv_ringbuffer_read()
411 offset = raw ? 0 : (desc->offset8 << 3); in hv_ringbuffer_read()
412 packetlen = (desc->len8 << 3) - offset; in hv_ringbuffer_read()
414 *requestid = desc->trans_id; in hv_ringbuffer_read()
420 memcpy(buffer, (const char *)desc + offset, packetlen); in hv_ringbuffer_read()
423 __hv_pkt_iter_next(channel, desc); in hv_ringbuffer_read()
466 struct vmpacket_descriptor *desc, *desc_copy; in hv_pkt_iter_first() local
476 desc = (struct vmpacket_descriptor *)(hv_get_ring_buffer(rbi) + rbi->priv_read_index); in hv_pkt_iter_first()
482 pkt_len = READ_ONCE(desc->len8) << 3; in hv_pkt_iter_first()
483 pkt_offset = READ_ONCE(desc->offset8) << 3; in hv_pkt_iter_first()
501 memcpy(desc_copy, desc, pkt_len); in hv_pkt_iter_first()
523 const struct vmpacket_descriptor *desc) in __hv_pkt_iter_next() argument
526 u32 packetlen = desc->len8 << 3; in __hv_pkt_iter_next()