Lines Matching full: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()
291 int err; in mv88e6095_g1_set_egress_port() local
293 err = mv88e6xxx_g1_read(chip, MV88E6185_G1_MONITOR_CTL, ®); in mv88e6095_g1_set_egress_port()
294 if (err) in mv88e6095_g1_set_egress_port()
295 return err; in mv88e6095_g1_set_egress_port()
314 err = mv88e6xxx_g1_write(chip, MV88E6185_G1_MONITOR_CTL, reg); in mv88e6095_g1_set_egress_port()
315 if (!err) in mv88e6095_g1_set_egress_port()
318 return err; in mv88e6095_g1_set_egress_port()
328 int err; in mv88e6095_g1_set_cpu_port() local
330 err = mv88e6xxx_g1_read(chip, MV88E6185_G1_MONITOR_CTL, ®); in mv88e6095_g1_set_cpu_port()
331 if (err) in mv88e6095_g1_set_cpu_port()
332 return err; in mv88e6095_g1_set_cpu_port()
356 int err; in mv88e6390_g1_set_egress_port() local
371 err = mv88e6390_g1_monitor_write(chip, ptr, port); in mv88e6390_g1_set_egress_port()
372 if (!err) in mv88e6390_g1_set_egress_port()
375 return err; in mv88e6390_g1_set_egress_port()
393 int err; in mv88e6390_g1_mgmt_rsvd2cpu() local
397 err = mv88e6390_g1_monitor_write(chip, ptr, 0xff); in mv88e6390_g1_mgmt_rsvd2cpu()
398 if (err) in mv88e6390_g1_mgmt_rsvd2cpu()
399 return err; in mv88e6390_g1_mgmt_rsvd2cpu()
403 err = mv88e6390_g1_monitor_write(chip, ptr, 0xff); in mv88e6390_g1_mgmt_rsvd2cpu()
404 if (err) in mv88e6390_g1_mgmt_rsvd2cpu()
405 return err; in mv88e6390_g1_mgmt_rsvd2cpu()
409 err = mv88e6390_g1_monitor_write(chip, ptr, 0xff); in mv88e6390_g1_mgmt_rsvd2cpu()
410 if (err) in mv88e6390_g1_mgmt_rsvd2cpu()
411 return err; in mv88e6390_g1_mgmt_rsvd2cpu()
415 err = mv88e6390_g1_monitor_write(chip, ptr, 0xff); in mv88e6390_g1_mgmt_rsvd2cpu()
416 if (err) in mv88e6390_g1_mgmt_rsvd2cpu()
417 return err; in mv88e6390_g1_mgmt_rsvd2cpu()
428 int err; in mv88e6xxx_g1_ctl2_mask() local
430 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL2, ®); in mv88e6xxx_g1_ctl2_mask()
431 if (err) in mv88e6xxx_g1_ctl2_mask()
432 return err; in mv88e6xxx_g1_ctl2_mask()
491 int err; in mv88e6095_g1_stats_set_histogram() local
493 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STATS_OP, &val); in mv88e6095_g1_stats_set_histogram()
494 if (err) in mv88e6095_g1_stats_set_histogram()
495 return err; in mv88e6095_g1_stats_set_histogram()
499 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, val); in mv88e6095_g1_stats_set_histogram()
501 return err; in mv88e6095_g1_stats_set_histogram()
506 int err; in mv88e6xxx_g1_stats_snapshot() local
509 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, in mv88e6xxx_g1_stats_snapshot()
513 if (err) in mv88e6xxx_g1_stats_snapshot()
514 return err; in mv88e6xxx_g1_stats_snapshot()
529 int err; in mv88e6390_g1_stats_snapshot() local
534 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, in mv88e6390_g1_stats_snapshot()
537 if (err) in mv88e6390_g1_stats_snapshot()
538 return err; in mv88e6390_g1_stats_snapshot()
548 int err; in mv88e6xxx_g1_stats_read() local
552 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, in mv88e6xxx_g1_stats_read()
555 if (err) in mv88e6xxx_g1_stats_read()
558 err = mv88e6xxx_g1_stats_wait(chip); in mv88e6xxx_g1_stats_read()
559 if (err) in mv88e6xxx_g1_stats_read()
562 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STATS_COUNTER_32, ®); in mv88e6xxx_g1_stats_read()
563 if (err) in mv88e6xxx_g1_stats_read()
568 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STATS_COUNTER_01, ®); in mv88e6xxx_g1_stats_read()
569 if (err) in mv88e6xxx_g1_stats_read()
577 int err; in mv88e6xxx_g1_stats_clear() local
580 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STATS_OP, &val); in mv88e6xxx_g1_stats_clear()
581 if (err) in mv88e6xxx_g1_stats_clear()
582 return err; in mv88e6xxx_g1_stats_clear()
588 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, val); in mv88e6xxx_g1_stats_clear()
589 if (err) in mv88e6xxx_g1_stats_clear()
590 return err; in mv88e6xxx_g1_stats_clear()