Lines Matching defs:cldcp
326 cnex_ldc_t *cldcp;
332 cldcp = cnex_ssp->clist;
333 while (cldcp != NULL) {
335 mutex_enter(&cldcp->lock);
337 if (cldcp->tx.hdlr && (cldcp->tx.weight == weight ||
338 (weight_max == weight && cldcp->tx.weight > weight))) {
339 (void) cnex_intr_new_cpu(cnex_ssp, &cldcp->tx);
342 if (cldcp->rx.hdlr && (cldcp->rx.weight == weight ||
343 (weight_max == weight && cldcp->rx.weight > weight))) {
344 (void) cnex_intr_new_cpu(cnex_ssp, &cldcp->rx);
347 mutex_exit(&cldcp->lock);
350 cldcp = cldcp->next;
470 cnex_ldc_t *cldcp;
488 cldcp = cnex_ssp->clist;
489 while (cldcp) {
490 if (cldcp->id == id) {
495 cldcp = cldcp->next;
586 cldcp = cnex_ssp->clist;
587 while (cldcp) {
588 if (cldcp->id == id) {
595 cldcp = cldcp->next;
612 cnex_ldc_t *cldcp;
623 cldcp = cnex_ssp->clist;
624 while (cldcp) {
625 if (cldcp->id == id)
627 cldcp = cldcp->next;
629 if (cldcp == NULL) {
637 mutex_enter(&cldcp->lock);
641 iinfo = &(cldcp->tx);
643 iinfo = &(cldcp->rx);
646 mutex_exit(&cldcp->lock);
653 mutex_exit(&cldcp->lock);
663 iinfo->dip = cldcp->dip;
664 iinfo->id = cldcp->id;
676 mutex_exit(&cldcp->lock);
685 if (cldcp->devclass == cnex_class_to_intr[idx].devclass) {
696 mutex_exit(&cldcp->lock);
730 mutex_exit(&cldcp->lock);
735 mutex_exit(&cldcp->lock);
747 cnex_ldc_t *cldcp, *prev_cldcp;
758 cldcp = cnex_ssp->clist;
759 while (cldcp) {
760 if (cldcp->id == id)
762 prev_cldcp = cldcp;
763 cldcp = cldcp->next;
766 if (cldcp == 0) {
772 if (cldcp->tx.hdlr || cldcp->rx.hdlr) {
779 prev_cldcp->next = cldcp->next;
781 cnex_ssp->clist = cldcp->next;
786 mutex_destroy(&cldcp->lock);
789 kmem_free(cldcp, sizeof (*cldcp));
801 cnex_ldc_t *cldcp;
812 cldcp = cnex_ssp->clist;
813 while (cldcp) {
814 if (cldcp->id == id)
816 cldcp = cldcp->next;
818 if (cldcp == NULL) {
826 mutex_enter(&cldcp->lock);
830 iinfo = &(cldcp->tx);
832 iinfo = &(cldcp->rx);
835 mutex_exit(&cldcp->lock);
844 mutex_exit(&cldcp->lock);
853 mutex_exit(&cldcp->lock);
865 mutex_exit(&cldcp->lock);
873 mutex_exit(&cldcp->lock);
879 if (cldcp->devclass == cnex_class_to_intr[idx].devclass) {
893 mutex_exit(&cldcp->lock);
906 cnex_ldc_t *cldcp;
917 cldcp = cnex_ssp->clist;
918 while (cldcp) {
919 if (cldcp->id == id)
921 cldcp = cldcp->next;
923 if (cldcp == NULL) {
930 mutex_enter(&cldcp->lock);
934 iinfo = &(cldcp->tx);
936 iinfo = &(cldcp->rx);
939 mutex_exit(&cldcp->lock);
948 mutex_exit(&cldcp->lock);
956 mutex_exit(&cldcp->lock);
960 mutex_exit(&cldcp->lock);