Lines Matching refs:lp
114 #ifndef LPMTU /* MTU for the lp# interfaces */
118 #ifndef LPMAXSPIN1 /* DELAY factor for the lp# interfaces */
122 #ifndef LPMAXSPIN2 /* DELAY factor for the lp# interfaces */
163 /* Tables for the lp# interface */
174 /* Functions for the lp# interface */
234 struct lp_data *lp = DEVTOSOFTC(dev);
238 lp->sc_dev = dev;
244 lp->res_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
246 if (lp->res_irq == NULL) {
251 ifp = lp->sc_ifp = if_alloc(IFT_PARA);
256 if_setsoftc(ifp, lp);
271 error = bus_setup_intr(dev, lp->res_irq, INTR_TYPE_NET | INTR_MPSAFE,
272 NULL, lp_intr, lp, &lp->sc_intr_cookie);
276 bus_release_resource(dev, SYS_RES_IRQ, 0, lp->res_irq);