Lines Matching defs:mcd
7590 struct mt_config_data *mcd = (struct mt_config_data *)arg;
7591 struct mt_config_handle *hdl = mcd->mtc_hdl;
7592 dev_info_t *dip = mcd->mtc_dip;
7594 major_t major = mcd->mtc_major;
7595 int flags = mcd->mtc_flags;
7611 if (mcd->mtc_brn) {
7615 mcd->mtc_brn->brn_child = brevq;
7658 kmem_free(mcd, sizeof (*mcd));
7674 struct mt_config_data *mcd;
7720 mcd = kmem_alloc(sizeof (*mcd), KM_SLEEP);
7721 mcd->mtc_dip = dip;
7722 mcd->mtc_hdl = hdl;
7723 mcd->mtc_brn = brn;
7731 mcd->mtc_major = DDI_MAJOR_T_NONE;
7733 mcd->mtc_major = major;
7740 mcd->mtc_flags = hdl->mtc_flags;
7741 if ((mcd->mtc_flags & NDI_DETACH_DRIVER) &&
7744 mcd->mtc_flags |= NDI_AUTODETACH;
7754 mcd->mtc_next = NULL;
7756 mcd_head = mcd;
7758 mcd_tail->mtc_next = mcd;
7759 mcd_tail = mcd;
7766 for (mcd = mcd_head; mcd; mcd = mcd_head) {
7767 mcd_head = mcd->mtc_next;
7768 if (mtc_off || (mcd->mtc_flags & NDI_MTC_OFF))
7769 mt_config_thread(mcd);
7771 (void) thread_create(NULL, 0, mt_config_thread, mcd,
7785 struct mt_config_data *mcd;
7814 mcd = kmem_alloc(sizeof (*mcd), KM_SLEEP);
7815 mcd->mtc_dip = dip;
7816 mcd->mtc_hdl = hdl;
7817 mcd->mtc_major = major;
7818 mcd->mtc_flags = hdl->mtc_flags;
7828 mcd->mtc_next = NULL;
7830 mcd_head = mcd;
7832 mcd_tail->mtc_next = mcd;
7833 mcd_tail = mcd;
7840 for (mcd = mcd_head; mcd; mcd = mcd_head) {
7841 mcd_head = mcd->mtc_next;
7842 if (mtc_off || (mcd->mtc_flags & NDI_MTC_OFF))
7843 mt_config_thread(mcd);
7845 (void) thread_create(NULL, 0, mt_config_thread, mcd,