Lines Matching defs:icp
97 struct icp_softc *icp = device_private(parent);
98 struct icp_cachedrv *cd = &icp->icp_cdr[icpa->icpa_unit];
105 icp_register_servicecb(icp, icpa->icpa_unit, &ld_icp_servicecb);
115 ld->sc_maxqueuecnt = icp->icp_openings;
117 if (!icp_cmd(icp, ICP_CACHESERVICE, ICP_IOCTL, ICP_CACHE_DRV_INFO,
123 cdi = (struct icp_cdevinfo *)icp->icp_scr;
183 struct icp_softc *icp;
186 icp = device_private(device_parent(sc->sc_ld.sc_dv));
191 if (__predict_false((ic = icp_ccb_alloc(icp)) == NULL))
201 rv = icp_ccb_map(icp, ic, data, datasize,
204 icp_ccb_free(icp, ic);
226 rv = icp_ccb_poll(icp, ic, 10000);
227 icp_ccb_unmap(icp, ic);
228 icp_ccb_free(icp, ic);
234 icp_ccb_enqueue(icp, ic);
260 struct icp_softc *icp;
266 icp = device_private(device_parent(ld->sc_dv));
268 ic = icp_ccb_alloc_wait(icp);
281 rv = icp_ccb_wait(icp, ic, 30000);
282 icp_ccb_free(icp, ic);
292 struct icp_softc *icp;
296 icp = device_private(device_parent(sc->sc_ld.sc_dv));
304 icp->icp_evt.size = sizeof(icp->icp_evt.eu.sync);
305 icp->icp_evt.eu.sync.ionode = device_unit(&icp->icp_dv);
306 icp->icp_evt.eu.sync.service = icp->icp_service;
307 icp->icp_evt.eu.sync.status = icp->icp_status;
308 icp->icp_evt.eu.sync.info = icp->icp_info;
309 icp->icp_evt.eu.sync.hostdrive = sc->sc_hwunit;
310 if (icp->icp_status >= 0x8000)
311 icp_store_event(icp, GDT_ES_SYNC, 0, &icp->icp_evt);
313 icp_store_event(icp, GDT_ES_SYNC, icp->icp_service,
314 &icp->icp_evt);
318 icp_ccb_unmap(icp, ic);
319 icp_ccb_free(icp, ic);