Lines Matching refs:err
82 int err; in mv88e6xxx_g1_wait_eeprom_done() local
88 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STS, &val); in mv88e6xxx_g1_wait_eeprom_done()
89 if (err) { in mv88e6xxx_g1_wait_eeprom_done()
116 int err; in mv88e6xxx_g1_set_switch_mac() local
119 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_MAC_01, reg); in mv88e6xxx_g1_set_switch_mac()
120 if (err) in mv88e6xxx_g1_set_switch_mac()
121 return err; in mv88e6xxx_g1_set_switch_mac()
124 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_MAC_23, reg); in mv88e6xxx_g1_set_switch_mac()
125 if (err) in mv88e6xxx_g1_set_switch_mac()
126 return err; in mv88e6xxx_g1_set_switch_mac()
129 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_MAC_45, reg); in mv88e6xxx_g1_set_switch_mac()
130 if (err) in mv88e6xxx_g1_set_switch_mac()
131 return err; in mv88e6xxx_g1_set_switch_mac()
141 int err; in mv88e6185_g1_reset() local
146 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL1, &val); in mv88e6185_g1_reset()
147 if (err) in mv88e6185_g1_reset()
148 return err; in mv88e6185_g1_reset()
153 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_CTL1, val); in mv88e6185_g1_reset()
154 if (err) in mv88e6185_g1_reset()
155 return err; in mv88e6185_g1_reset()
157 err = mv88e6xxx_g1_wait_init_ready(chip); in mv88e6185_g1_reset()
158 if (err) in mv88e6185_g1_reset()
159 return err; in mv88e6185_g1_reset()
167 int err; in mv88e6250_g1_reset() local
170 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL1, &val); in mv88e6250_g1_reset()
171 if (err) in mv88e6250_g1_reset()
172 return err; in mv88e6250_g1_reset()
176 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_CTL1, val); in mv88e6250_g1_reset()
177 if (err) in mv88e6250_g1_reset()
178 return err; in mv88e6250_g1_reset()
185 int err; in mv88e6352_g1_reset() local
187 err = mv88e6250_g1_reset(chip); in mv88e6352_g1_reset()
188 if (err) in mv88e6352_g1_reset()
189 return err; in mv88e6352_g1_reset()
197 int err; in mv88e6185_g1_ppu_enable() local
199 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL1, &val); in mv88e6185_g1_ppu_enable()
200 if (err) in mv88e6185_g1_ppu_enable()
201 return err; in mv88e6185_g1_ppu_enable()
205 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_CTL1, val); in mv88e6185_g1_ppu_enable()
206 if (err) in mv88e6185_g1_ppu_enable()
207 return err; in mv88e6185_g1_ppu_enable()
215 int err; in mv88e6185_g1_ppu_disable() local
217 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL1, &val); in mv88e6185_g1_ppu_disable()
218 if (err) in mv88e6185_g1_ppu_disable()
219 return err; in mv88e6185_g1_ppu_disable()
223 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_CTL1, val); in mv88e6185_g1_ppu_disable()
224 if (err) in mv88e6185_g1_ppu_disable()
225 return err; in mv88e6185_g1_ppu_disable()
233 int err; in mv88e6185_g1_set_max_frame_size() local
235 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL1, &val); in mv88e6185_g1_set_max_frame_size()
236 if (err) in mv88e6185_g1_set_max_frame_size()
237 return err; in mv88e6185_g1_set_max_frame_size()
259 int err; in mv88e6085_g1_ip_pri_map() local
262 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_0, 0x0000); in mv88e6085_g1_ip_pri_map()
263 if (err) in mv88e6085_g1_ip_pri_map()
264 return err; in mv88e6085_g1_ip_pri_map()
266 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_1, 0x0000); in mv88e6085_g1_ip_pri_map()
267 if (err) in mv88e6085_g1_ip_pri_map()
268 return err; in mv88e6085_g1_ip_pri_map()
270 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_2, 0x5555); in mv88e6085_g1_ip_pri_map()
271 if (err) in mv88e6085_g1_ip_pri_map()
272 return err; in mv88e6085_g1_ip_pri_map()
274 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_3, 0x5555); in mv88e6085_g1_ip_pri_map()
275 if (err) in mv88e6085_g1_ip_pri_map()
276 return err; in mv88e6085_g1_ip_pri_map()
278 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_4, 0xaaaa); in mv88e6085_g1_ip_pri_map()
279 if (err) in mv88e6085_g1_ip_pri_map()
280 return err; in mv88e6085_g1_ip_pri_map()
282 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_5, 0xaaaa); in mv88e6085_g1_ip_pri_map()
283 if (err) in mv88e6085_g1_ip_pri_map()
284 return err; in mv88e6085_g1_ip_pri_map()
286 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_6, 0xffff); in mv88e6085_g1_ip_pri_map()
287 if (err) in mv88e6085_g1_ip_pri_map()
288 return err; in mv88e6085_g1_ip_pri_map()
290 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_IP_PRI_7, 0xffff); in mv88e6085_g1_ip_pri_map()
291 if (err) in mv88e6085_g1_ip_pri_map()
292 return err; in mv88e6085_g1_ip_pri_map()
320 int err; in mv88e6095_g1_set_egress_port() local
322 err = mv88e6xxx_g1_read(chip, MV88E6185_G1_MONITOR_CTL, ®); in mv88e6095_g1_set_egress_port()
323 if (err) in mv88e6095_g1_set_egress_port()
324 return err; in mv88e6095_g1_set_egress_port()
343 err = mv88e6xxx_g1_write(chip, MV88E6185_G1_MONITOR_CTL, reg); in mv88e6095_g1_set_egress_port()
344 if (!err) in mv88e6095_g1_set_egress_port()
347 return err; in mv88e6095_g1_set_egress_port()
357 int err; in mv88e6095_g1_set_cpu_port() local
359 err = mv88e6xxx_g1_read(chip, MV88E6185_G1_MONITOR_CTL, ®); in mv88e6095_g1_set_cpu_port()
360 if (err) in mv88e6095_g1_set_cpu_port()
361 return err; in mv88e6095_g1_set_cpu_port()
385 int err; in mv88e6390_g1_set_egress_port() local
400 err = mv88e6390_g1_monitor_write(chip, ptr, port); in mv88e6390_g1_set_egress_port()
401 if (!err) in mv88e6390_g1_set_egress_port()
404 return err; in mv88e6390_g1_set_egress_port()
422 int err; in mv88e6390_g1_mgmt_rsvd2cpu() local
426 err = mv88e6390_g1_monitor_write(chip, ptr, 0xff); in mv88e6390_g1_mgmt_rsvd2cpu()
427 if (err) in mv88e6390_g1_mgmt_rsvd2cpu()
428 return err; in mv88e6390_g1_mgmt_rsvd2cpu()
432 err = mv88e6390_g1_monitor_write(chip, ptr, 0xff); in mv88e6390_g1_mgmt_rsvd2cpu()
433 if (err) in mv88e6390_g1_mgmt_rsvd2cpu()
434 return err; in mv88e6390_g1_mgmt_rsvd2cpu()
438 err = mv88e6390_g1_monitor_write(chip, ptr, 0xff); in mv88e6390_g1_mgmt_rsvd2cpu()
439 if (err) in mv88e6390_g1_mgmt_rsvd2cpu()
440 return err; in mv88e6390_g1_mgmt_rsvd2cpu()
444 err = mv88e6390_g1_monitor_write(chip, ptr, 0xff); in mv88e6390_g1_mgmt_rsvd2cpu()
445 if (err) in mv88e6390_g1_mgmt_rsvd2cpu()
446 return err; in mv88e6390_g1_mgmt_rsvd2cpu()
457 int err; in mv88e6xxx_g1_ctl2_mask() local
459 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL2, ®); in mv88e6xxx_g1_ctl2_mask()
460 if (err) in mv88e6xxx_g1_ctl2_mask()
461 return err; in mv88e6xxx_g1_ctl2_mask()
520 int err; in mv88e6095_g1_stats_set_histogram() local
522 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STATS_OP, &val); in mv88e6095_g1_stats_set_histogram()
523 if (err) in mv88e6095_g1_stats_set_histogram()
524 return err; in mv88e6095_g1_stats_set_histogram()
528 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, val); in mv88e6095_g1_stats_set_histogram()
530 return err; in mv88e6095_g1_stats_set_histogram()
535 int err; in mv88e6xxx_g1_stats_snapshot() local
538 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, in mv88e6xxx_g1_stats_snapshot()
542 if (err) in mv88e6xxx_g1_stats_snapshot()
543 return err; in mv88e6xxx_g1_stats_snapshot()
558 int err; in mv88e6390_g1_stats_snapshot() local
563 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, in mv88e6390_g1_stats_snapshot()
566 if (err) in mv88e6390_g1_stats_snapshot()
567 return err; in mv88e6390_g1_stats_snapshot()
577 int err; in mv88e6xxx_g1_stats_read() local
581 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, in mv88e6xxx_g1_stats_read()
584 if (err) in mv88e6xxx_g1_stats_read()
587 err = mv88e6xxx_g1_stats_wait(chip); in mv88e6xxx_g1_stats_read()
588 if (err) in mv88e6xxx_g1_stats_read()
591 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STATS_COUNTER_32, ®); in mv88e6xxx_g1_stats_read()
592 if (err) in mv88e6xxx_g1_stats_read()
597 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STATS_COUNTER_01, ®); in mv88e6xxx_g1_stats_read()
598 if (err) in mv88e6xxx_g1_stats_read()
606 int err; in mv88e6xxx_g1_stats_clear() local
609 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STATS_OP, &val); in mv88e6xxx_g1_stats_clear()
610 if (err) in mv88e6xxx_g1_stats_clear()
611 return err; in mv88e6xxx_g1_stats_clear()
617 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_STATS_OP, val); in mv88e6xxx_g1_stats_clear()
618 if (err) in mv88e6xxx_g1_stats_clear()
619 return err; in mv88e6xxx_g1_stats_clear()