Lines Matching refs:smac
287 struct prestera_port_mac_state smac; in prestera_pcs_get_state() local
289 prestera_port_mac_state_cache_read(port, &smac); in prestera_pcs_get_state()
291 if (smac.valid) { in prestera_pcs_get_state()
292 state->link = smac.oper ? 1 : 0; in prestera_pcs_get_state()
294 state->an_complete = (smac.oper && port->autoneg) ? 1 : 0; in prestera_pcs_get_state()
295 state->speed = smac.speed; in prestera_pcs_get_state()
296 state->duplex = smac.duplex; in prestera_pcs_get_state()
806 struct prestera_port_mac_state smac; in prestera_port_handle_event() local
819 memset(&smac, 0, sizeof(smac)); in prestera_port_handle_event()
820 smac.valid = true; in prestera_port_handle_event()
821 smac.oper = pevt->data.mac.oper; in prestera_port_handle_event()
822 if (smac.oper) { in prestera_port_handle_event()
823 smac.mode = pevt->data.mac.mode; in prestera_port_handle_event()
824 smac.speed = pevt->data.mac.speed; in prestera_port_handle_event()
825 smac.duplex = pevt->data.mac.duplex; in prestera_port_handle_event()
826 smac.fc = pevt->data.mac.fc; in prestera_port_handle_event()
827 smac.fec = pevt->data.mac.fec; in prestera_port_handle_event()
829 prestera_port_mac_state_cache_write(port, &smac); in prestera_port_handle_event()