Lines Matching refs:fnl
1562 funnel_t *fnl;
1571 if ((fnl = (funnel_t *)kalloc(sizeof(funnel_t))) != 0){
1572 bzero((void *)fnl, sizeof(funnel_t));
1574 kfree(fnl, sizeof(funnel_t));
1577 fnl->fnl_mutex = m;
1578 fnl->fnl_type = type;
1580 return(fnl);
1585 funnel_t * fnl)
1587 lck_mtx_free(fnl->fnl_mutex, funnel_lck_grp);
1588 if (fnl->fnl_oldmutex)
1589 lck_mtx_free(fnl->fnl_oldmutex, funnel_lck_grp);
1590 kfree(fnl, sizeof(funnel_t));
1595 funnel_t * fnl)
1597 lck_mtx_lock(fnl->fnl_mutex);
1598 fnl->fnl_mtxholder = current_thread();
1603 funnel_t * fnl)
1605 lck_mtx_unlock(fnl->fnl_mutex);
1606 fnl->fnl_mtxholder = NULL;
1607 fnl->fnl_mtxrelease = current_thread();
1624 funnel_t * fnl,
1641 fnl, 1, 0, 0, 0);
1642 funnel_lock(fnl);
1644 fnl, 1, 0, 0, 0);
1646 cur_thread->funnel_lock = fnl;
1648 if(cur_thread->funnel_lock->fnl_mutex != fnl->fnl_mutex)
1652 fnl, 1, 0, 0, 0);
1655 funnel_unlock(fnl);
1662 if (funneled && (fnl->fnl_mutex != cur_thread->funnel_lock->fnl_mutex)) {