Lines Matching refs:err

49 	int err;  in mv88e6185_port_set_pause()  local
51 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_STS, &reg); in mv88e6185_port_set_pause()
52 if (err) in mv88e6185_port_set_pause()
53 return err; in mv88e6185_port_set_pause()
76 int err; in mv88e6xxx_port_set_rgmii_delay() local
78 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_MAC_CTL, &reg); in mv88e6xxx_port_set_rgmii_delay()
79 if (err) in mv88e6xxx_port_set_rgmii_delay()
80 return err; in mv88e6xxx_port_set_rgmii_delay()
102 err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_MAC_CTL, reg); in mv88e6xxx_port_set_rgmii_delay()
103 if (err) in mv88e6xxx_port_set_rgmii_delay()
104 return err; in mv88e6xxx_port_set_rgmii_delay()
134 int err; in mv88e6xxx_port_set_link() local
136 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_MAC_CTL, &reg); in mv88e6xxx_port_set_link()
137 if (err) in mv88e6xxx_port_set_link()
138 return err; in mv88e6xxx_port_set_link()
158 err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_MAC_CTL, reg); in mv88e6xxx_port_set_link()
159 if (err) in mv88e6xxx_port_set_link()
160 return err; in mv88e6xxx_port_set_link()
172 int err; in mv88e6xxx_port_set_duplex() local
174 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_MAC_CTL, &reg); in mv88e6xxx_port_set_duplex()
175 if (err) in mv88e6xxx_port_set_duplex()
176 return err; in mv88e6xxx_port_set_duplex()
196 err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_MAC_CTL, reg); in mv88e6xxx_port_set_duplex()
197 if (err) in mv88e6xxx_port_set_duplex()
198 return err; in mv88e6xxx_port_set_duplex()
211 int err; in mv88e6xxx_port_set_speed() local
243 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_MAC_CTL, &reg); in mv88e6xxx_port_set_speed()
244 if (err) in mv88e6xxx_port_set_speed()
245 return err; in mv88e6xxx_port_set_speed()
257 err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_MAC_CTL, reg); in mv88e6xxx_port_set_speed()
258 if (err) in mv88e6xxx_port_set_speed()
259 return err; in mv88e6xxx_port_set_speed()
348 int err; in mv88e6390x_port_set_cmode() local
382 err = mv88e6390_serdes_irq_disable(chip, port, lane); in mv88e6390x_port_set_cmode()
383 if (err) in mv88e6390x_port_set_cmode()
384 return err; in mv88e6390x_port_set_cmode()
387 err = mv88e6390_serdes_power(chip, port, false); in mv88e6390x_port_set_cmode()
388 if (err) in mv88e6390x_port_set_cmode()
389 return err; in mv88e6390x_port_set_cmode()
392 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_STS, &reg); in mv88e6390x_port_set_cmode()
393 if (err) in mv88e6390x_port_set_cmode()
394 return err; in mv88e6390x_port_set_cmode()
399 err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_STS, reg); in mv88e6390x_port_set_cmode()
400 if (err) in mv88e6390x_port_set_cmode()
401 return err; in mv88e6390x_port_set_cmode()
403 err = mv88e6390_serdes_power(chip, port, true); in mv88e6390x_port_set_cmode()
404 if (err) in mv88e6390x_port_set_cmode()
405 return err; in mv88e6390x_port_set_cmode()
408 err = mv88e6390_serdes_irq_enable(chip, port, lane); in mv88e6390x_port_set_cmode()
409 if (err) in mv88e6390x_port_set_cmode()
410 return err; in mv88e6390x_port_set_cmode()
421 int err; in mv88e6185_port_get_cmode() local
424 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_STS, &reg); in mv88e6185_port_get_cmode()
425 if (err) in mv88e6185_port_get_cmode()
426 return err; in mv88e6185_port_get_cmode()
435 int err; in mv88e6352_port_get_cmode() local
438 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_STS, &reg); in mv88e6352_port_get_cmode()
439 if (err) in mv88e6352_port_get_cmode()
440 return err; in mv88e6352_port_get_cmode()
450 int err; in mv88e6352_port_link_state() local
453 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_STS, &reg); in mv88e6352_port_link_state()
454 if (err) in mv88e6352_port_link_state()
455 return err; in mv88e6352_port_link_state()
498 int err; in mv88e6185_port_link_state() local
500 err = mv88e6xxx_port_read(chip, port, in mv88e6185_port_link_state()
502 if (err) in mv88e6185_port_link_state()
503 return err; in mv88e6185_port_link_state()
537 int err; in mv88e6390_port_pause_limit() local
539 err = mv88e6xxx_port_write(chip, port, MV88E6390_PORT_FLOW_CTL, in mv88e6390_port_pause_limit()
542 if (err) in mv88e6390_port_pause_limit()
543 return err; in mv88e6390_port_pause_limit()
562 int err; in mv88e6xxx_port_set_state() local
564 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL0, &reg); in mv88e6xxx_port_set_state()
565 if (err) in mv88e6xxx_port_set_state()
566 return err; in mv88e6xxx_port_set_state()
590 err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_CTL0, reg); in mv88e6xxx_port_set_state()
591 if (err) in mv88e6xxx_port_set_state()
592 return err; in mv88e6xxx_port_set_state()
603 int err; in mv88e6xxx_port_set_egress_mode() local
606 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL0, &reg); in mv88e6xxx_port_set_egress_mode()
607 if (err) in mv88e6xxx_port_set_egress_mode()
608 return err; in mv88e6xxx_port_set_egress_mode()
635 int err; in mv88e6085_port_set_frame_mode() local
638 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL0, &reg); in mv88e6085_port_set_frame_mode()
639 if (err) in mv88e6085_port_set_frame_mode()
640 return err; in mv88e6085_port_set_frame_mode()
661 int err; in mv88e6351_port_set_frame_mode() local
664 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL0, &reg); in mv88e6351_port_set_frame_mode()
665 if (err) in mv88e6351_port_set_frame_mode()
666 return err; in mv88e6351_port_set_frame_mode()
693 int err; in mv88e6185_port_set_forward_unknown() local
696 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL0, &reg); in mv88e6185_port_set_forward_unknown()
697 if (err) in mv88e6185_port_set_forward_unknown()
698 return err; in mv88e6185_port_set_forward_unknown()
711 int err; in mv88e6352_port_set_egress_floods() local
714 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL0, &reg); in mv88e6352_port_set_egress_floods()
715 if (err) in mv88e6352_port_set_egress_floods()
716 return err; in mv88e6352_port_set_egress_floods()
738 int err; in mv88e6xxx_port_set_message_port() local
740 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL1, &val); in mv88e6xxx_port_set_message_port()
741 if (err) in mv88e6xxx_port_set_message_port()
742 return err; in mv88e6xxx_port_set_message_port()
758 int err; in mv88e6xxx_port_set_vlan_map() local
760 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_BASE_VLAN, &reg); in mv88e6xxx_port_set_vlan_map()
761 if (err) in mv88e6xxx_port_set_vlan_map()
762 return err; in mv88e6xxx_port_set_vlan_map()
767 err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_BASE_VLAN, reg); in mv88e6xxx_port_set_vlan_map()
768 if (err) in mv88e6xxx_port_set_vlan_map()
769 return err; in mv88e6xxx_port_set_vlan_map()
780 int err; in mv88e6xxx_port_get_fid() local
783 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_BASE_VLAN, &reg); in mv88e6xxx_port_get_fid()
784 if (err) in mv88e6xxx_port_get_fid()
785 return err; in mv88e6xxx_port_get_fid()
791 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL1, in mv88e6xxx_port_get_fid()
793 if (err) in mv88e6xxx_port_get_fid()
794 return err; in mv88e6xxx_port_get_fid()
806 int err; in mv88e6xxx_port_set_fid() local
812 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_BASE_VLAN, &reg); in mv88e6xxx_port_set_fid()
813 if (err) in mv88e6xxx_port_set_fid()
814 return err; in mv88e6xxx_port_set_fid()
819 err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_BASE_VLAN, reg); in mv88e6xxx_port_set_fid()
820 if (err) in mv88e6xxx_port_set_fid()
821 return err; in mv88e6xxx_port_set_fid()
825 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL1, in mv88e6xxx_port_set_fid()
827 if (err) in mv88e6xxx_port_set_fid()
828 return err; in mv88e6xxx_port_set_fid()
833 err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_CTL1, in mv88e6xxx_port_set_fid()
835 if (err) in mv88e6xxx_port_set_fid()
836 return err; in mv88e6xxx_port_set_fid()
849 int err; in mv88e6xxx_port_get_pvid() local
851 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_DEFAULT_VLAN, in mv88e6xxx_port_get_pvid()
853 if (err) in mv88e6xxx_port_get_pvid()
854 return err; in mv88e6xxx_port_get_pvid()
864 int err; in mv88e6xxx_port_set_pvid() local
866 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_DEFAULT_VLAN, in mv88e6xxx_port_set_pvid()
868 if (err) in mv88e6xxx_port_set_pvid()
869 return err; in mv88e6xxx_port_set_pvid()
874 err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_DEFAULT_VLAN, in mv88e6xxx_port_set_pvid()
876 if (err) in mv88e6xxx_port_set_pvid()
877 return err; in mv88e6xxx_port_set_pvid()
896 int err; in mv88e6185_port_set_default_forward() local
899 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL2, &reg); in mv88e6185_port_set_default_forward()
900 if (err) in mv88e6185_port_set_default_forward()
901 return err; in mv88e6185_port_set_default_forward()
914 int err; in mv88e6185_port_set_egress_floods() local
916 err = mv88e6185_port_set_forward_unknown(chip, port, unicast); in mv88e6185_port_set_egress_floods()
917 if (err) in mv88e6185_port_set_egress_floods()
918 return err; in mv88e6185_port_set_egress_floods()
926 int err; in mv88e6095_port_set_upstream_port() local
929 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL2, &reg); in mv88e6095_port_set_upstream_port()
930 if (err) in mv88e6095_port_set_upstream_port()
931 return err; in mv88e6095_port_set_upstream_port()
943 int err; in mv88e6xxx_port_set_8021q_mode() local
945 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL2, &reg); in mv88e6xxx_port_set_8021q_mode()
946 if (err) in mv88e6xxx_port_set_8021q_mode()
947 return err; in mv88e6xxx_port_set_8021q_mode()
952 err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_CTL2, reg); in mv88e6xxx_port_set_8021q_mode()
953 if (err) in mv88e6xxx_port_set_8021q_mode()
954 return err; in mv88e6xxx_port_set_8021q_mode()
965 int err; in mv88e6xxx_port_set_map_da() local
967 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL2, &reg); in mv88e6xxx_port_set_map_da()
968 if (err) in mv88e6xxx_port_set_map_da()
969 return err; in mv88e6xxx_port_set_map_da()
980 int err; in mv88e6165_port_set_jumbo_size() local
982 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_CTL2, &reg); in mv88e6165_port_set_jumbo_size()
983 if (err) in mv88e6165_port_set_jumbo_size()
984 return err; in mv88e6165_port_set_jumbo_size()
1042 int err; in mv88e6095_port_tag_remap() local
1045 err = mv88e6xxx_port_write(chip, port, in mv88e6095_port_tag_remap()
1048 if (err) in mv88e6095_port_tag_remap()
1049 return err; in mv88e6095_port_tag_remap()
1071 int err, i; in mv88e6390_port_tag_remap() local
1076 err = mv88e6xxx_port_ieeepmt_write(chip, port, table, i, in mv88e6390_port_tag_remap()
1078 if (err) in mv88e6390_port_tag_remap()
1079 return err; in mv88e6390_port_tag_remap()
1082 err = mv88e6xxx_port_ieeepmt_write(chip, port, table, i, i); in mv88e6390_port_tag_remap()
1083 if (err) in mv88e6390_port_tag_remap()
1084 return err; in mv88e6390_port_tag_remap()
1087 err = mv88e6xxx_port_ieeepmt_write(chip, port, table, i, i); in mv88e6390_port_tag_remap()
1088 if (err) in mv88e6390_port_tag_remap()
1089 return err; in mv88e6390_port_tag_remap()
1092 err = mv88e6xxx_port_ieeepmt_write(chip, port, table, i, i); in mv88e6390_port_tag_remap()
1093 if (err) in mv88e6390_port_tag_remap()
1094 return err; in mv88e6390_port_tag_remap()