Lines Matching refs:cons
80 static inline void notify_daemon(struct xencons_info *cons) in notify_daemon() argument
83 notify_remote_via_evtchn(cons->evtchn); in notify_daemon()
89 XENCONS_RING_IDX cons, prod; in __write_console() local
93 cons = intf->out_cons; in __write_console()
97 if ((prod - cons) > sizeof(intf->out)) { in __write_console()
102 while ((sent < len) && ((prod - cons) < sizeof(intf->out))) in __write_console()
116 struct xencons_info *cons = vtermno_to_xencons(vtermno); in domU_write_console() local
117 if (cons == NULL) in domU_write_console()
127 int sent = __write_console(cons, data, len); in domU_write_console()
145 XENCONS_RING_IDX cons, prod; in domU_read_console() local
154 cons = intf->in_cons; in domU_read_console()
158 if ((prod - cons) > sizeof(intf->in)) { in domU_read_console()
163 while (cons != prod && recv < len) in domU_read_console()
164 buf[recv++] = intf->in[MASK_XENCONS_IDX(cons++, intf->in)]; in domU_read_console()
167 intf->in_cons = cons; in domU_read_console()