Lines Matching refs:ifp
256 xcp->ifp = (volatile struct xencons_interface *)HYPERVISOR_console_page;
524 #define INBUF_IX(ix, ifp) (DOMAIN_IS_INITDOMAIN(xen_info) ? \
525 (ix) : MASK_XENCONS_IDX((ix), (ifp)->in))
542 volatile struct xencons_interface *ifp;
558 ifp = xcp->ifp;
580 cons = ifp->in_cons;
581 prod = ifp->in_prod;
584 cp = (uchar_t *)ifp->in;
604 c = cp[INBUF_IX(cons + i, ifp)];
612 ifp->in_cons = cons + i;
646 c = cp[INBUF_IX(cons++, ifp)];
671 ifp->in_cons = cons;
734 volatile struct xencons_interface *ifp = xcp->ifp;
736 if (ifp->in_prod != ifp->in_cons)
738 if (ifp->out_prod - ifp->out_cons < sizeof (ifp->out))
860 volatile struct xencons_interface *ifp = xcp->ifp;
863 cons = ifp->out_cons;
864 prod = ifp->out_prod;
866 while (bp != NULL && ((prod - cons) < sizeof (ifp->out))) {
867 ifp->out[MASK_XENCONS_IDX(prod++, ifp->out)] =
876 ifp->out_prod = prod;
1282 volatile struct xencons_interface *ifp = xcp->ifp;
1302 while (ifp->out_prod - ifp->out_cons == sizeof (ifp->out))
1305 prod = ifp->out_prod;
1306 ifp->out[MASK_XENCONS_IDX(prod++, ifp->out)] = c;
1308 ifp->out_prod = prod;
1320 volatile struct xencons_interface *ifp = xcp->ifp;
1338 if (ifp->in_prod != ifp->in_cons) {
1341 cons = ifp->in_cons;
1343 xcp->pollbuf[0] = ifp->in[MASK_XENCONS_IDX(cons++, ifp->in)];
1345 ifp->in_cons = cons;