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;
150 struct xencons_interface *intf;
159 intf = xencons->intf;
162 cons = intf->in_cons;
163 prod = intf->in_prod;
166 if ((prod - cons) > sizeof(intf->in)) {
173 buf[recv++] = intf->in[MASK_XENCONS_IDX(cons++, intf->in)];
176 intf->in_cons = cons;
187 if (intf->out_cons != xencons->out_cons) {
188 xencons->out_cons = intf->out_cons;
255 } else if (info->intf != NULL) {
274 info->intf = memremap(gfn << XEN_PAGE_SHIFT, XEN_PAGE_SIZE, MEMREMAP_WB);
275 if (info->intf == NULL)
294 info->intf = gfn_to_virt(xen_start_info->console.domU.mfn);
318 } else if (info->intf != NULL) {
400 free_page((unsigned long)info->intf);
401 info->intf = NULL;
418 iounmap(info->intf);
457 virt_to_gfn(info->intf), 0);
507 info->intf = (void *)__get_free_page(GFP_KERNEL | __GFP_ZERO);
508 if (!info->intf)
534 memset(info->intf, 0, XEN_PAGE_SIZE);