Lines Matching defs:intf
38 struct xencons_interface *intf;
91 struct xencons_interface *intf = xencons->intf;
96 cons = intf->out_cons;
97 prod = intf->out_prod;
100 if ((prod - cons) > sizeof(intf->out)) {
106 while ((sent < len) && ((prod - cons) < sizeof(intf->out)))
107 intf->out[MASK_XENCONS_IDX(prod++, intf->out)] = data[sent++];
110 intf->out_prod = prod;
149 struct xencons_interface *intf;
158 intf = xencons->intf;
161 cons = intf->in_cons;
162 prod = intf->in_prod;
165 if ((prod - cons) > sizeof(intf->in)) {
172 buf[recv++] = intf->in[MASK_XENCONS_IDX(cons++, intf->in)];
175 intf->in_cons = cons;
186 if (intf->out_cons != xencons->out_cons) {
187 xencons->out_cons = intf->out_cons;
254 } else if (info->intf != NULL) {
273 info->intf = memremap(gfn << XEN_PAGE_SHIFT, XEN_PAGE_SIZE, MEMREMAP_WB);
274 if (info->intf == NULL)
293 info->intf = gfn_to_virt(xen_start_info->console.domU.mfn);
317 } else if (info->intf != NULL) {
399 free_page((unsigned long)info->intf);
400 info->intf = NULL;
417 iounmap(info->intf);
456 virt_to_gfn(info->intf), 0);
506 info->intf = (void *)__get_free_page(GFP_KERNEL | __GFP_ZERO);
507 if (!info->intf)
533 memset(info->intf, 0, XEN_PAGE_SIZE);