Lines Matching refs:mac_state
95 struct arp_packet *in = (struct arp_packet *)mac_state.mac_buf; in ether_comarp()
103 bcopy((caddr_t)mac_state.mac_addr_buf, in ether_comarp()
110 bcopy(mac_state.mac_addr_buf, (caddr_t)&out->arp_ea.arp_sha, in ether_comarp()
133 (void) prom_write(mac_state.mac_dev, (caddr_t)out, in ether_comarp()
141 len = prom_read(mac_state.mac_dev, mac_state.mac_buf, in ether_comarp()
142 mac_state.mac_mtu, 0, NETWORK); in ether_comarp()
255 bcopy(mac_state.mac_addr_buf, (caddr_t)&out.arp_ea.arp_tha, in ether_revarp()
316 reltime = mac_state.mac_in_timeout; in ether_input()
330 bzero(mac_state.mac_buf, sizeof (struct ether_header)); in ether_input()
341 len = prom_read(mac_state.mac_dev, mac_state.mac_buf, in ether_input()
342 mac_state.mac_mtu, 0, NETWORK); in ether_input()
350 if (len > mac_state.mac_mtu) { in ether_input()
352 mac_state.mac_mtu, len); in ether_input()
353 bkmem_free(mac_state.mac_buf, mac_state.mac_mtu); in ether_input()
354 mac_state.mac_mtu = len; in ether_input()
355 mac_state.mac_buf = bkmem_alloc(mac_state.mac_mtu); in ether_input()
356 if (mac_state.mac_buf == NULL) { in ether_input()
378 eh = (struct ether_header *)mac_state.mac_buf; in ether_input()
403 bcopy((caddr_t)(mac_state.mac_buf + offset), in ether_input()
428 ea = (struct ether_arp *)(mac_state.mac_buf + in ether_input()
444 bcopy(mac_state.mac_addr_buf, in ether_input()
446 mac_state.mac_addr_len); in ether_input()
453 bcopy(mac_state.mac_addr_buf, in ether_input()
455 mac_state.mac_addr_len); in ether_input()
458 (void) prom_write(mac_state.mac_dev, in ether_input()
459 mac_state.mac_buf, in ether_input()
519 if (size > mac_state.mac_mtu) { in ether_output()
529 bcopy(mac_state.mac_addr_buf, (caddr_t)&eh.ether_shost, in ether_output()
530 mac_state.mac_addr_len); in ether_output()
559 sizeof (ether_addr_t), mac_state.mac_arp_timeout); in ether_output()
586 return (prom_write(mac_state.mac_dev, (char *)mp->b_rptr, size, in ether_output()