Lines Matching refs:intf
36 XENCONS_RING_IDX cons = hvc_data->intf->in_cons; in read_from_ring()
37 XENCONS_RING_IDX prod = hvc_data->intf->in_prod; in read_from_ring()
41 __ASSERT((prod - cons) <= sizeof(hvc_data->intf->in), in read_from_ring()
45 in_idx = MASK_XENCONS_IDX(cons, hvc_data->intf->in); in read_from_ring()
46 str[recv] = hvc_data->intf->in[in_idx]; in read_from_ring()
52 hvc_data->intf->in_cons = cons; in read_from_ring()
62 XENCONS_RING_IDX cons = hvc_data->intf->out_cons; in write_to_ring()
63 XENCONS_RING_IDX prod = hvc_data->intf->out_prod; in write_to_ring()
67 __ASSERT((prod - cons) <= sizeof(hvc_data->intf->out), in write_to_ring()
70 while ((sent < len) && ((prod - cons) < sizeof(hvc_data->intf->out))) { in write_to_ring()
71 out_idx = MASK_XENCONS_IDX(prod, hvc_data->intf->out); in write_to_ring()
72 hvc_data->intf->out[out_idx] = str[sent]; in write_to_ring()
78 hvc_data->intf->out_prod = prod; in write_to_ring()
177 return (data->intf->in_prod != data->intf->in_cons); in xen_hvc_irq_rx_ready()
256 data->intf = (struct xencons_interface *) DEVICE_MMIO_GET(dev); in xen_console_init()