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()
798 struct prestera_port_mac_state smac; in prestera_port_handle_event() local
811 memset(&smac, 0, sizeof(smac)); in prestera_port_handle_event()
812 smac.valid = true; in prestera_port_handle_event()
813 smac.oper = pevt->data.mac.oper; in prestera_port_handle_event()
814 if (smac.oper) { in prestera_port_handle_event()
815 smac.mode = pevt->data.mac.mode; in prestera_port_handle_event()
816 smac.speed = pevt->data.mac.speed; in prestera_port_handle_event()
817 smac.duplex = pevt->data.mac.duplex; in prestera_port_handle_event()
818 smac.fc = pevt->data.mac.fc; in prestera_port_handle_event()
819 smac.fec = pevt->data.mac.fec; in prestera_port_handle_event()
821 prestera_port_mac_state_cache_write(port, &smac); in prestera_port_handle_event()