Lines Matching defs:llc1
28 * llc1 - an LLC Class 1 MUX compatible with SunConnect LLC2 uses DLPI
52 #include <sys/llc1.h>
120 "llc1",
175 * loadable module/driver wrapper this allows llc1 to be unloaded later
273 if (ddi_create_minor_node(devinfo, "llc1", S_IFCHR,
345 llc1_t *llc1;
358 * llc1 devices, but open and close are not frequent so should not
384 llc1 = kmem_zalloc(sizeof (llc1_t), KM_SLEEP);
385 llc1->llc_qptr = q;
386 WR(q)->q_ptr = q->q_ptr = (caddr_t)llc1;
390 llc1->llc_state = DL_UNATTACHED;
391 llc1->llc_style = DL_STYLE2;
392 llc1->llc_minor = minordev;
394 mutex_init(&llc1->llc_lock, NULL, MUTEX_DRIVER, NULL);
395 llc1insque(llc1, llc1_device_list.llc1_str_prev);
410 llc1_t *llc1;
416 llc1 = (llc1_t *)q->q_ptr;
421 (void) llc1remque(llc1); /* remove from active list */
424 mutex_enter(&llc1->llc_lock);
425 if (llc1->llc_state == DL_IDLE || llc1->llc_state == DL_UNBOUND) {
426 llc1->llc_state = DL_UNBOUND; /* force the issue */
429 if (llc1->llc_mcast != NULL) {
435 if ((mcast = llc1->llc_mcast[i]) != NULL) {
440 if (llc1->llc_mac_info &&
441 llc1->llc_mac_info->llcp_flags &
444 llc1->llc_mac_info,
446 llc1->llc_mcast[i] = NULL;
449 kmem_free(llc1->llc_mcast,
450 sizeof (llc_mcast_t *) * llc1->llc_multicnt);
451 llc1->llc_mcast = NULL;
453 llc1->llc_state = DL_UNATTACHED;
455 mutex_exit(&llc1->llc_lock);
457 mutex_destroy(&llc1->llc_lock);
459 kmem_free(llc1, sizeof (llc1_t));
519 printf("llc1: Unexpected packet type from queue: %d\n",