Lines Matching refs:llc

466  * general llc stream write put routine. Receives ioctl's from
962 * with our llc struct, to avoid erroneous references.
1002 llc1_t *llc = (llc1_t *)q->q_ptr;
1004 llc_mac_info_t *macinfo = llc->llc_mac_info;
1012 mutex_enter(&llc->llc_lock);
1077 if (llc->llc_state != DL_UNATTACHED && macinfo) {
1078 llc->llc_waiting_for = dlp->dl_primitive;
1101 mutex_exit(&llc->llc_lock);
1308 * NOTE: We are reusing the DL_unitdata_req mblock; if llc header gets any
1369 /* set length with llc header size */
1391 /* set length without llc header size */
1410 DB_TYPE(nmp) = M_DATA; /* ether/llc header is data */
1731 llc1_t *llc = (llc1_t *)q->q_ptr;
1735 if (llc->llc_state != DL_UNATTACHED) {
1738 llc->llc_state = DL_ATTACH_PENDING;
1771 llc->llc_mac_info = mac;
1773 llc->llc_state = DL_UNBOUND; /* now ready for action */
1774 llc->llc_stats = &mac->llcp_stats;
1780 llc->llc_state = DL_UNATTACHED;
1791 llc1_t *llc = (llc1_t *)q->q_ptr;
1795 state = llc->llc_state;
1800 llc->llc_state = DL_DETACH_PENDING;
1812 if (llc->llc_mcast) {
1816 if ((mcast = llc->llc_mcast[i]) != NULL) {
1818 llc1_send_disable_multi(llc->llc_mac_info,
1820 llc->llc_mcast[i] = NULL;
1823 kmem_free(llc->llc_mcast,
1824 sizeof (llc_mcast_t *) * llc->llc_multicnt);
1825 llc->llc_mcast = NULL;
1827 if (llc->llc_mac_info)
1828 llc->llc_mac_info->llcp_nstreams--;
1829 llc->llc_sap = 0;
1830 llc->llc_state = DL_UNATTACHED;
1844 llc1_t *llc;
1858 llc = (llc1_t *)q->q_ptr;
1860 if (llc->llc_state == DL_UNATTACHED)
1863 macinfo = llc->llc_mac_info;
1881 if (llc->llc_mcast == NULL) {
1883 llc->llc_mcast =
1886 if (llc->llc_mcast == NULL)
1888 llc->llc_multicnt = llc1_device_list.llc1_multisize;
1891 if (llc->llc_mcast[i] &&
1892 bcmp(llc->llc_mcast[i]->llcm_addr,
1940 if (llc->llc_mcast[i] == NULL) {
1941 llc->llc_mcast[i] = mcast;
1960 llc1_t *llc;
1973 llc = (llc1_t *)q->q_ptr;
1975 if (llc->llc_state == DL_UNATTACHED)
1978 macinfo = llc->llc_mac_info;
1986 if (llc->llc_mcast != NULL) {
1987 for (i = 0; i < llc->llc_multicnt; i++)
1988 if (((mcast = llc->llc_mcast[i]) != NULL) &&
1994 llc->llc_mcast[i] = NULL;
2005 * llc1_send_disable_multi(llc, macinfo, mcast) this function is used to
2458 llc1_t *llc = (llc1_t *)q->q_ptr;
2464 if (llc == NULL || llc->llc_state == DL_UNATTACHED)
2467 if (llc->llc_sap == LLC_NOVELL_SAP)
2470 if (llc->llc_flags & DL_AUTO_XID)
2473 macinfo = llc->llc_mac_info;
2522 llchdr->llc_ssap = llc->llc_sap | (req_or_res ? LLC_RESPONSE : 0);
2707 llc1_t *llc = (llc1_t *)q->q_ptr;
2713 if (llc == NULL || llc->llc_state == DL_UNATTACHED)
2716 if (llc->llc_sap == LLC_NOVELL_SAP)
2719 if (llc->llc_flags & DL_AUTO_TEST)
2722 macinfo = llc->llc_mac_info;
2774 llchdr->llc_ssap = llc->llc_sap | (req_or_res ? LLC_RESPONSE : 0);
2793 llc1_t *llc;
2795 for (llc = llc1_device_list.llc1_str_next;
2796 llc != (llc1_t *)&llc1_device_list.llc1_str_next;
2797 llc = llc->llc_next)
2798 if (llc->llc_mac_info == macinfo &&
2799 prim == llc->llc_waiting_for) {
2800 putnext(RD(llc->llc_qptr), mp);
2801 llc->llc_waiting_for = -1;
2899 macinfo->llcp_kstatp = kstat_create("llc", (-macinfo->llcp_ppa - 1),