Lines Matching refs:err
85 int err; in mv88e6xxx_g1_set_switch_mac() local
88 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_MAC_01, reg); in mv88e6xxx_g1_set_switch_mac()
89 if (err) in mv88e6xxx_g1_set_switch_mac()
90 return err; in mv88e6xxx_g1_set_switch_mac()
93 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_MAC_23, reg); in mv88e6xxx_g1_set_switch_mac()
94 if (err) in mv88e6xxx_g1_set_switch_mac()
95 return err; in mv88e6xxx_g1_set_switch_mac()
98 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_MAC_45, reg); in mv88e6xxx_g1_set_switch_mac()
99 if (err) in mv88e6xxx_g1_set_switch_mac()
100 return err; in mv88e6xxx_g1_set_switch_mac()
110 int err; in mv88e6185_g1_reset() local
115 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL1, &val); in mv88e6185_g1_reset()
116 if (err) in mv88e6185_g1_reset()
117 return err; in mv88e6185_g1_reset()
122 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_CTL1, val); in mv88e6185_g1_reset()
123 if (err) in mv88e6185_g1_reset()
124 return err; in mv88e6185_g1_reset()
126 err = mv88e6xxx_g1_wait_init_ready(chip); in mv88e6185_g1_reset()
127 if (err) in mv88e6185_g1_reset()
128 return err; in mv88e6185_g1_reset()
136 int err; in mv88e6250_g1_reset() local
139 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL1, &val); in mv88e6250_g1_reset()
140 if (err) in mv88e6250_g1_reset()
141 return err; in mv88e6250_g1_reset()
145 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_CTL1, val); in mv88e6250_g1_reset()
146 if (err) in mv88e6250_g1_reset()
147 return err; in mv88e6250_g1_reset()
154 int err; in mv88e6352_g1_reset() local
156 err = mv88e6250_g1_reset(chip); in mv88e6352_g1_reset()
157 if (err) in mv88e6352_g1_reset()
158 return err; in mv88e6352_g1_reset()
166 int err; in mv88e6185_g1_ppu_enable() local
168 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL1, &val); in mv88e6185_g1_ppu_enable()
169 if (err) in mv88e6185_g1_ppu_enable()
170 return err; in mv88e6185_g1_ppu_enable()
174 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_CTL1, val); in mv88e6185_g1_ppu_enable()
175 if (err) in mv88e6185_g1_ppu_enable()
176 return err; in mv88e6185_g1_ppu_enable()
184 int err; in mv88e6185_g1_ppu_disable() local
186 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL1, &val); in mv88e6185_g1_ppu_disable()
187 if (err) in mv88e6185_g1_ppu_disable()
188 return err; in mv88e6185_g1_ppu_disable()
192 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_CTL1, val); in mv88e6185_g1_ppu_disable()
193 if (err) in mv88e6185_g1_ppu_disable()
194 return err; in mv88e6185_g1_ppu_disable()
202 int err; in mv88e6185_g1_set_max_frame_size() local
206 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL1, &val); in mv88e6185_g1_set_max_frame_size()
207 if (err) in mv88e6185_g1_set_max_frame_size()
208 return err; in mv88e6185_g1_set_max_frame_size()
230 int err; in mv88e6085_g1_ip_pri_map() local
233 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_0, 0x0000); in mv88e6085_g1_ip_pri_map()
234 if (err) in mv88e6085_g1_ip_pri_map()
235 return err; in mv88e6085_g1_ip_pri_map()
237 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_1, 0x0000); in mv88e6085_g1_ip_pri_map()
238 if (err) in mv88e6085_g1_ip_pri_map()
239 return err; in mv88e6085_g1_ip_pri_map()
241 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_2, 0x5555); in mv88e6085_g1_ip_pri_map()
242 if (err) in mv88e6085_g1_ip_pri_map()
243 return err; in mv88e6085_g1_ip_pri_map()
245 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_3, 0x5555); in mv88e6085_g1_ip_pri_map()
246 if (err) in mv88e6085_g1_ip_pri_map()
247 return err; in mv88e6085_g1_ip_pri_map()
249 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_4, 0xaaaa); in mv88e6085_g1_ip_pri_map()
250 if (err) in mv88e6085_g1_ip_pri_map()
251 return err; in mv88e6085_g1_ip_pri_map()
253 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_5, 0xaaaa); in mv88e6085_g1_ip_pri_map()
254 if (err) in mv88e6085_g1_ip_pri_map()
255 return err; in mv88e6085_g1_ip_pri_map()
257 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_6, 0xffff); in mv88e6085_g1_ip_pri_map()
258 if (err) in mv88e6085_g1_ip_pri_map()
259 return err; in mv88e6085_g1_ip_pri_map()
261 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_7, 0xffff); in mv88e6085_g1_ip_pri_map()
262 if (err) in mv88e6085_g1_ip_pri_map()
263 return err; in mv88e6085_g1_ip_pri_map()
290 int err; in mv88e6095_g1_set_egress_port() local
292 err = mv88e6xxx_g1_read(chip, MV88E6185_G1_MONITOR_CTL, ®); in mv88e6095_g1_set_egress_port()
293 if (err) in mv88e6095_g1_set_egress_port()
294 return err; in mv88e6095_g1_set_egress_port()
321 int err; in mv88e6095_g1_set_cpu_port() local
323 err = mv88e6xxx_g1_read(chip, MV88E6185_G1_MONITOR_CTL, ®); in mv88e6095_g1_set_cpu_port()
324 if (err) in mv88e6095_g1_set_cpu_port()
325 return err; in mv88e6095_g1_set_cpu_port()
390 int err; in mv88e6390_g1_mgmt_rsvd2cpu() local
394 err = mv88e6390_g1_monitor_write(chip, ptr, 0xff); in mv88e6390_g1_mgmt_rsvd2cpu()
395 if (err) in mv88e6390_g1_mgmt_rsvd2cpu()
396 return err; in mv88e6390_g1_mgmt_rsvd2cpu()
400 err = mv88e6390_g1_monitor_write(chip, ptr, 0xff); in mv88e6390_g1_mgmt_rsvd2cpu()
401 if (err) in mv88e6390_g1_mgmt_rsvd2cpu()
402 return err; in mv88e6390_g1_mgmt_rsvd2cpu()
406 err = mv88e6390_g1_monitor_write(chip, ptr, 0xff); in mv88e6390_g1_mgmt_rsvd2cpu()
407 if (err) in mv88e6390_g1_mgmt_rsvd2cpu()
408 return err; in mv88e6390_g1_mgmt_rsvd2cpu()
412 err = mv88e6390_g1_monitor_write(chip, ptr, 0xff); in mv88e6390_g1_mgmt_rsvd2cpu()
413 if (err) in mv88e6390_g1_mgmt_rsvd2cpu()
414 return err; in mv88e6390_g1_mgmt_rsvd2cpu()
425 int err; in mv88e6xxx_g1_ctl2_mask() local
427 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL2, ®); in mv88e6xxx_g1_ctl2_mask()
428 if (err) in mv88e6xxx_g1_ctl2_mask()
429 return err; in mv88e6xxx_g1_ctl2_mask()
488 int err; in mv88e6095_g1_stats_set_histogram() local
490 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STATS_OP, &val); in mv88e6095_g1_stats_set_histogram()
491 if (err) in mv88e6095_g1_stats_set_histogram()
492 return err; in mv88e6095_g1_stats_set_histogram()
496 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, val); in mv88e6095_g1_stats_set_histogram()
498 return err; in mv88e6095_g1_stats_set_histogram()
503 int err; in mv88e6xxx_g1_stats_snapshot() local
506 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, in mv88e6xxx_g1_stats_snapshot()
510 if (err) in mv88e6xxx_g1_stats_snapshot()
511 return err; in mv88e6xxx_g1_stats_snapshot()
526 int err; in mv88e6390_g1_stats_snapshot() local
531 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, in mv88e6390_g1_stats_snapshot()
534 if (err) in mv88e6390_g1_stats_snapshot()
535 return err; in mv88e6390_g1_stats_snapshot()
545 int err; in mv88e6xxx_g1_stats_read() local
549 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, in mv88e6xxx_g1_stats_read()
552 if (err) in mv88e6xxx_g1_stats_read()
555 err = mv88e6xxx_g1_stats_wait(chip); in mv88e6xxx_g1_stats_read()
556 if (err) in mv88e6xxx_g1_stats_read()
559 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STATS_COUNTER_32, ®); in mv88e6xxx_g1_stats_read()
560 if (err) in mv88e6xxx_g1_stats_read()
565 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STATS_COUNTER_01, ®); in mv88e6xxx_g1_stats_read()
566 if (err) in mv88e6xxx_g1_stats_read()
574 int err; in mv88e6xxx_g1_stats_clear() local
577 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STATS_OP, &val); in mv88e6xxx_g1_stats_clear()
578 if (err) in mv88e6xxx_g1_stats_clear()
579 return err; in mv88e6xxx_g1_stats_clear()
585 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, val); in mv88e6xxx_g1_stats_clear()
586 if (err) in mv88e6xxx_g1_stats_clear()
587 return err; in mv88e6xxx_g1_stats_clear()