Lines Matching defs:fcp
184 ndi_fmc_t *fcp;
186 fcp = kmem_zalloc(sizeof (ndi_fmc_t), KM_SLEEP);
187 mutex_init(&fcp->fc_lock, NULL, MUTEX_DRIVER, ibc);
189 *fcpp = fcp;
196 i_ndi_fmc_destroy(ndi_fmc_t *fcp)
200 if (fcp == NULL)
204 mutex_enter(&fcp->fc_lock);
205 for (fep = fcp->fc_head; fep != NULL; fep = pp) {
209 mutex_exit(&fcp->fc_lock);
210 mutex_destroy(&fcp->fc_lock);
211 kmem_free(fcp, sizeof (ndi_fmc_t));
224 ndi_fmc_t *fcp;
240 fcp = fmhdl->fh_dma_cache;
248 fcp = fmhdl->fh_acc_cache;
267 mutex_enter(&fcp->fc_lock);
270 fep->fce_prev = fcp->fc_tail;
271 if (fcp->fc_tail != NULL)
272 fcp->fc_tail->fce_next = fep;
274 fcp->fc_head = fep;
275 fcp->fc_tail = fep;
276 mutex_exit(&fcp->fc_lock);
287 ndi_fmc_t *fcp;
305 fcp = fmhdl->fh_dma_cache;
307 ASSERT(fcp);
309 mutex_enter(&fcp->fc_lock);
318 fcp = fmhdl->fh_acc_cache;
320 ASSERT(fcp);
322 mutex_enter(&fcp->fc_lock);
333 mutex_exit(&fcp->fc_lock);
343 if (fep == fcp->fc_head)
344 fcp->fc_head = fep->fce_next;
347 if (fep == fcp->fc_tail)
348 fcp->fc_tail = fep->fce_prev;
351 mutex_exit(&fcp->fc_lock);
361 ndi_fmc_t *fcp = NULL;
372 fcp = fmhdl->fh_dma_cache;
373 ASSERT(fcp);
375 fcp = fmhdl->fh_acc_cache;
376 ASSERT(fcp);
379 if (fcp != NULL) {
384 mutex_enter(&fcp->fc_lock);
385 for (fep = fcp->fc_head; fep != NULL; fep = fep->fce_next) {
430 mutex_exit(&fcp->fc_lock);
520 ndi_fmc_t *fcp = NULL;
531 fcp = fmhdl->fh_dma_cache;
532 ASSERT(fcp);
534 fcp = fmhdl->fh_acc_cache;
535 ASSERT(fcp);
538 if (fcp != NULL) {
542 mutex_enter(&fcp->fc_lock);
543 for (fep = fcp->fc_head; fep != NULL; fep = fep->fce_next) {
574 mutex_exit(&fcp->fc_lock);