Lines Matching defs:php

65 #define	PHLOCKADDR(php)	&plocks[(((uintptr_t)(php)) >> 8) & (NPHLOCKS - 1)]
66 #define PHLOCK(php) PHLOCKADDR(php).pp_lock
67 #define PH_ENTER(php) mutex_enter(PHLOCK(php))
68 #define PH_EXIT(php) mutex_exit(PHLOCK(php))
237 * polllock(php, mutex) does the common case: pollunlock(),
306 polllock(pollhead_t *php, kmutex_t *lp)
765 pollwakeup(pollhead_t *php, short events_arg)
777 PH_ENTER(php);
779 for (pdp = php->ph_list; pdp; pdp = pdp->pd_next) {
871 PH_EXIT(php);
891 * Event ports - If this php is of the port on the list,
897 if (plhead != NULL && &plhead->pp->port_pollhd == php) {
904 PH_EXIT(php);
913 php = &plhead->pp->port_pollhd;
940 pollhead_insert(pollhead_t *php, polldat_t *pdp)
942 PH_ENTER(php);
950 for (wp = php->ph_list; wp; wp = wp->pd_next) {
955 pdp->pd_next = php->ph_list;
956 php->ph_list = pdp;
957 PH_EXIT(php);
964 pollhead_delete(pollhead_t *php, polldat_t *pdp)
969 PH_ENTER(php);
970 for (wpp = &php->ph_list; (wp = *wpp) != NULL; wpp = &wp->pd_next) {
983 PH_EXIT(php);
1873 pollhead_t *php;
1890 php = NULL;
1996 &pollfdp[entry].revents, &php, NULL);
2011 if (php != NULL && pdp->pd_php != NULL &&
2012 php != pdp->pd_php) {
2015 pdp->pd_php = php;
2016 pollhead_insert(php, pdp);
2066 if ((pdp->pd_php == NULL) && (php != NULL)) {
2067 pdp->pd_php = php;
2068 pollhead_insert(php, pdp);
2612 pollhead_clean(pollhead_t *php)
2621 PH_ENTER(php);
2622 while (php->ph_list != NULL) {
2626 pdp = php->ph_list;
2627 ASSERT(pdp->pd_php == php);
2634 php->ph_list = pdp->pd_next;
2649 PH_EXIT(php);
2655 PH_ENTER(php);
2656 if (pdp->pd_php == php) {
2657 ASSERT(pdp == php->ph_list);
2658 php->ph_list = pdp->pd_next;
2662 PH_EXIT(php);
2674 PH_ENTER(php);
2676 PH_EXIT(php);
3018 pollhead_t *php;
3025 php = NULL;
3029 &pollfdp[i].revents, &php, NULL);
3038 if (php != NULL && pdp->pd_php != NULL &&
3039 php != pdp->pd_php) {
3041 pdp->pd_php = php;
3042 pollhead_insert(php, pdp);