Lines Matching refs:err
23 int err; in mv88e6xxx_g1_vtu_fid_read() local
25 err = mv88e6xxx_g1_read(chip, MV88E6352_G1_VTU_FID, &val); in mv88e6xxx_g1_vtu_fid_read()
26 if (err) in mv88e6xxx_g1_vtu_fid_read()
27 return err; in mv88e6xxx_g1_vtu_fid_read()
48 int err; in mv88e6xxx_g1_vtu_sid_read() local
50 err = mv88e6xxx_g1_read(chip, MV88E6352_G1_VTU_SID, &val); in mv88e6xxx_g1_vtu_sid_read()
51 if (err) in mv88e6xxx_g1_vtu_sid_read()
52 return err; in mv88e6xxx_g1_vtu_sid_read()
78 int err; in mv88e6xxx_g1_vtu_op() local
80 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_VTU_OP, in mv88e6xxx_g1_vtu_op()
82 if (err) in mv88e6xxx_g1_vtu_op()
83 return err; in mv88e6xxx_g1_vtu_op()
94 int err; in mv88e6xxx_g1_vtu_vid_read() local
96 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_VTU_VID, &val); in mv88e6xxx_g1_vtu_vid_read()
97 if (err) in mv88e6xxx_g1_vtu_vid_read()
98 return err; in mv88e6xxx_g1_vtu_vid_read()
136 int err; in mv88e6185_g1_vtu_stu_data_read() local
138 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_VTU_DATA1 + i, reg); in mv88e6185_g1_vtu_stu_data_read()
139 if (err) in mv88e6185_g1_vtu_stu_data_read()
140 return err; in mv88e6185_g1_vtu_stu_data_read()
150 int err; in mv88e6185_g1_vtu_data_read() local
153 err = mv88e6185_g1_vtu_stu_data_read(chip, regs); in mv88e6185_g1_vtu_data_read()
154 if (err) in mv88e6185_g1_vtu_data_read()
155 return err; in mv88e6185_g1_vtu_data_read()
171 int err; in mv88e6185_g1_stu_data_read() local
174 err = mv88e6185_g1_vtu_stu_data_read(chip, regs); in mv88e6185_g1_stu_data_read()
175 if (err) in mv88e6185_g1_stu_data_read()
176 return err; in mv88e6185_g1_stu_data_read()
206 int err; in mv88e6185_g1_vtu_data_write() local
208 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_VTU_DATA1 + i, reg); in mv88e6185_g1_vtu_data_write()
209 if (err) in mv88e6185_g1_vtu_data_write()
210 return err; in mv88e6185_g1_vtu_data_write()
224 int err; in mv88e6390_g1_vtu_data_read() local
226 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_VTU_DATA1 + i, reg); in mv88e6390_g1_vtu_data_read()
227 if (err) in mv88e6390_g1_vtu_data_read()
228 return err; in mv88e6390_g1_vtu_data_read()
256 int err; in mv88e6390_g1_vtu_data_write() local
258 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_VTU_DATA1 + i, reg); in mv88e6390_g1_vtu_data_write()
259 if (err) in mv88e6390_g1_vtu_data_write()
260 return err; in mv88e6390_g1_vtu_data_write()
271 int err; in mv88e6xxx_g1_vtu_stu_getnext() local
273 err = mv88e6xxx_g1_vtu_sid_write(chip, entry); in mv88e6xxx_g1_vtu_stu_getnext()
274 if (err) in mv88e6xxx_g1_vtu_stu_getnext()
275 return err; in mv88e6xxx_g1_vtu_stu_getnext()
277 err = mv88e6xxx_g1_vtu_op(chip, MV88E6XXX_G1_VTU_OP_STU_GET_NEXT); in mv88e6xxx_g1_vtu_stu_getnext()
278 if (err) in mv88e6xxx_g1_vtu_stu_getnext()
279 return err; in mv88e6xxx_g1_vtu_stu_getnext()
281 err = mv88e6xxx_g1_vtu_sid_read(chip, entry); in mv88e6xxx_g1_vtu_stu_getnext()
282 if (err) in mv88e6xxx_g1_vtu_stu_getnext()
283 return err; in mv88e6xxx_g1_vtu_stu_getnext()
292 int err; in mv88e6xxx_g1_vtu_stu_get() local
294 err = mv88e6xxx_g1_vtu_sid_read(chip, vtu); in mv88e6xxx_g1_vtu_stu_get()
295 if (err) in mv88e6xxx_g1_vtu_stu_get()
296 return err; in mv88e6xxx_g1_vtu_stu_get()
300 err = mv88e6xxx_g1_vtu_stu_getnext(chip, &stu); in mv88e6xxx_g1_vtu_stu_get()
301 if (err) in mv88e6xxx_g1_vtu_stu_get()
302 return err; in mv88e6xxx_g1_vtu_stu_get()
313 int err; in mv88e6xxx_g1_vtu_getnext() local
315 err = mv88e6xxx_g1_vtu_op_wait(chip); in mv88e6xxx_g1_vtu_getnext()
316 if (err) in mv88e6xxx_g1_vtu_getnext()
317 return err; in mv88e6xxx_g1_vtu_getnext()
327 err = mv88e6xxx_g1_vtu_vid_write(chip, entry); in mv88e6xxx_g1_vtu_getnext()
328 if (err) in mv88e6xxx_g1_vtu_getnext()
329 return err; in mv88e6xxx_g1_vtu_getnext()
332 err = mv88e6xxx_g1_vtu_op(chip, MV88E6XXX_G1_VTU_OP_VTU_GET_NEXT); in mv88e6xxx_g1_vtu_getnext()
333 if (err) in mv88e6xxx_g1_vtu_getnext()
334 return err; in mv88e6xxx_g1_vtu_getnext()
343 int err; in mv88e6250_g1_vtu_getnext() local
345 err = mv88e6xxx_g1_vtu_getnext(chip, entry); in mv88e6250_g1_vtu_getnext()
346 if (err) in mv88e6250_g1_vtu_getnext()
347 return err; in mv88e6250_g1_vtu_getnext()
350 err = mv88e6185_g1_vtu_data_read(chip, entry); in mv88e6250_g1_vtu_getnext()
351 if (err) in mv88e6250_g1_vtu_getnext()
352 return err; in mv88e6250_g1_vtu_getnext()
357 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_VTU_OP, &val); in mv88e6250_g1_vtu_getnext()
358 if (err) in mv88e6250_g1_vtu_getnext()
359 return err; in mv88e6250_g1_vtu_getnext()
372 int err; in mv88e6185_g1_vtu_getnext() local
374 err = mv88e6xxx_g1_vtu_getnext(chip, entry); in mv88e6185_g1_vtu_getnext()
375 if (err) in mv88e6185_g1_vtu_getnext()
376 return err; in mv88e6185_g1_vtu_getnext()
379 err = mv88e6185_g1_vtu_data_read(chip, entry); in mv88e6185_g1_vtu_getnext()
380 if (err) in mv88e6185_g1_vtu_getnext()
381 return err; in mv88e6185_g1_vtu_getnext()
383 err = mv88e6185_g1_stu_data_read(chip, entry); in mv88e6185_g1_vtu_getnext()
384 if (err) in mv88e6185_g1_vtu_getnext()
385 return err; in mv88e6185_g1_vtu_getnext()
390 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_VTU_OP, &val); in mv88e6185_g1_vtu_getnext()
391 if (err) in mv88e6185_g1_vtu_getnext()
392 return err; in mv88e6185_g1_vtu_getnext()
404 int err; in mv88e6352_g1_vtu_getnext() local
407 err = mv88e6xxx_g1_vtu_getnext(chip, entry); in mv88e6352_g1_vtu_getnext()
408 if (err) in mv88e6352_g1_vtu_getnext()
409 return err; in mv88e6352_g1_vtu_getnext()
412 err = mv88e6185_g1_vtu_data_read(chip, entry); in mv88e6352_g1_vtu_getnext()
413 if (err) in mv88e6352_g1_vtu_getnext()
414 return err; in mv88e6352_g1_vtu_getnext()
416 err = mv88e6xxx_g1_vtu_fid_read(chip, entry); in mv88e6352_g1_vtu_getnext()
417 if (err) in mv88e6352_g1_vtu_getnext()
418 return err; in mv88e6352_g1_vtu_getnext()
421 err = mv88e6xxx_g1_vtu_stu_get(chip, entry); in mv88e6352_g1_vtu_getnext()
422 if (err) in mv88e6352_g1_vtu_getnext()
423 return err; in mv88e6352_g1_vtu_getnext()
425 err = mv88e6185_g1_stu_data_read(chip, entry); in mv88e6352_g1_vtu_getnext()
426 if (err) in mv88e6352_g1_vtu_getnext()
427 return err; in mv88e6352_g1_vtu_getnext()
436 int err; in mv88e6390_g1_vtu_getnext() local
439 err = mv88e6xxx_g1_vtu_getnext(chip, entry); in mv88e6390_g1_vtu_getnext()
440 if (err) in mv88e6390_g1_vtu_getnext()
441 return err; in mv88e6390_g1_vtu_getnext()
444 err = mv88e6390_g1_vtu_data_read(chip, entry->member); in mv88e6390_g1_vtu_getnext()
445 if (err) in mv88e6390_g1_vtu_getnext()
446 return err; in mv88e6390_g1_vtu_getnext()
449 err = mv88e6xxx_g1_vtu_stu_get(chip, entry); in mv88e6390_g1_vtu_getnext()
450 if (err) in mv88e6390_g1_vtu_getnext()
451 return err; in mv88e6390_g1_vtu_getnext()
453 err = mv88e6390_g1_vtu_data_read(chip, entry->state); in mv88e6390_g1_vtu_getnext()
454 if (err) in mv88e6390_g1_vtu_getnext()
455 return err; in mv88e6390_g1_vtu_getnext()
457 err = mv88e6xxx_g1_vtu_fid_read(chip, entry); in mv88e6390_g1_vtu_getnext()
458 if (err) in mv88e6390_g1_vtu_getnext()
459 return err; in mv88e6390_g1_vtu_getnext()
469 int err; in mv88e6250_g1_vtu_loadpurge() local
471 err = mv88e6xxx_g1_vtu_op_wait(chip); in mv88e6250_g1_vtu_loadpurge()
472 if (err) in mv88e6250_g1_vtu_loadpurge()
473 return err; in mv88e6250_g1_vtu_loadpurge()
475 err = mv88e6xxx_g1_vtu_vid_write(chip, entry); in mv88e6250_g1_vtu_loadpurge()
476 if (err) in mv88e6250_g1_vtu_loadpurge()
477 return err; in mv88e6250_g1_vtu_loadpurge()
480 err = mv88e6185_g1_vtu_data_write(chip, entry); in mv88e6250_g1_vtu_loadpurge()
481 if (err) in mv88e6250_g1_vtu_loadpurge()
482 return err; in mv88e6250_g1_vtu_loadpurge()
498 int err; in mv88e6185_g1_vtu_loadpurge() local
500 err = mv88e6xxx_g1_vtu_op_wait(chip); in mv88e6185_g1_vtu_loadpurge()
501 if (err) in mv88e6185_g1_vtu_loadpurge()
502 return err; in mv88e6185_g1_vtu_loadpurge()
504 err = mv88e6xxx_g1_vtu_vid_write(chip, entry); in mv88e6185_g1_vtu_loadpurge()
505 if (err) in mv88e6185_g1_vtu_loadpurge()
506 return err; in mv88e6185_g1_vtu_loadpurge()
509 err = mv88e6185_g1_vtu_data_write(chip, entry); in mv88e6185_g1_vtu_loadpurge()
510 if (err) in mv88e6185_g1_vtu_loadpurge()
511 return err; in mv88e6185_g1_vtu_loadpurge()
526 int err; in mv88e6352_g1_vtu_loadpurge() local
528 err = mv88e6xxx_g1_vtu_op_wait(chip); in mv88e6352_g1_vtu_loadpurge()
529 if (err) in mv88e6352_g1_vtu_loadpurge()
530 return err; in mv88e6352_g1_vtu_loadpurge()
532 err = mv88e6xxx_g1_vtu_vid_write(chip, entry); in mv88e6352_g1_vtu_loadpurge()
533 if (err) in mv88e6352_g1_vtu_loadpurge()
534 return err; in mv88e6352_g1_vtu_loadpurge()
538 err = mv88e6185_g1_vtu_data_write(chip, entry); in mv88e6352_g1_vtu_loadpurge()
539 if (err) in mv88e6352_g1_vtu_loadpurge()
540 return err; in mv88e6352_g1_vtu_loadpurge()
542 err = mv88e6xxx_g1_vtu_sid_write(chip, entry); in mv88e6352_g1_vtu_loadpurge()
543 if (err) in mv88e6352_g1_vtu_loadpurge()
544 return err; in mv88e6352_g1_vtu_loadpurge()
547 err = mv88e6xxx_g1_vtu_op(chip, in mv88e6352_g1_vtu_loadpurge()
549 if (err) in mv88e6352_g1_vtu_loadpurge()
550 return err; in mv88e6352_g1_vtu_loadpurge()
552 err = mv88e6xxx_g1_vtu_fid_write(chip, entry); in mv88e6352_g1_vtu_loadpurge()
553 if (err) in mv88e6352_g1_vtu_loadpurge()
554 return err; in mv88e6352_g1_vtu_loadpurge()
564 int err; in mv88e6390_g1_vtu_loadpurge() local
566 err = mv88e6xxx_g1_vtu_op_wait(chip); in mv88e6390_g1_vtu_loadpurge()
567 if (err) in mv88e6390_g1_vtu_loadpurge()
568 return err; in mv88e6390_g1_vtu_loadpurge()
570 err = mv88e6xxx_g1_vtu_vid_write(chip, entry); in mv88e6390_g1_vtu_loadpurge()
571 if (err) in mv88e6390_g1_vtu_loadpurge()
572 return err; in mv88e6390_g1_vtu_loadpurge()
576 err = mv88e6390_g1_vtu_data_write(chip, entry->state); in mv88e6390_g1_vtu_loadpurge()
577 if (err) in mv88e6390_g1_vtu_loadpurge()
578 return err; in mv88e6390_g1_vtu_loadpurge()
580 err = mv88e6xxx_g1_vtu_sid_write(chip, entry); in mv88e6390_g1_vtu_loadpurge()
581 if (err) in mv88e6390_g1_vtu_loadpurge()
582 return err; in mv88e6390_g1_vtu_loadpurge()
585 err = mv88e6xxx_g1_vtu_op(chip, in mv88e6390_g1_vtu_loadpurge()
587 if (err) in mv88e6390_g1_vtu_loadpurge()
588 return err; in mv88e6390_g1_vtu_loadpurge()
591 err = mv88e6390_g1_vtu_data_write(chip, entry->member); in mv88e6390_g1_vtu_loadpurge()
592 if (err) in mv88e6390_g1_vtu_loadpurge()
593 return err; in mv88e6390_g1_vtu_loadpurge()
595 err = mv88e6xxx_g1_vtu_fid_write(chip, entry); in mv88e6390_g1_vtu_loadpurge()
596 if (err) in mv88e6390_g1_vtu_loadpurge()
597 return err; in mv88e6390_g1_vtu_loadpurge()
606 int err; in mv88e6xxx_g1_vtu_flush() local
608 err = mv88e6xxx_g1_vtu_op_wait(chip); in mv88e6xxx_g1_vtu_flush()
609 if (err) in mv88e6xxx_g1_vtu_flush()
610 return err; in mv88e6xxx_g1_vtu_flush()
620 int err; in mv88e6xxx_g1_vtu_prob_irq_thread_fn() local
625 err = mv88e6xxx_g1_vtu_op(chip, MV88E6XXX_G1_VTU_OP_GET_CLR_VIOLATION); in mv88e6xxx_g1_vtu_prob_irq_thread_fn()
626 if (err) in mv88e6xxx_g1_vtu_prob_irq_thread_fn()
629 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_VTU_OP, &val); in mv88e6xxx_g1_vtu_prob_irq_thread_fn()
630 if (err) in mv88e6xxx_g1_vtu_prob_irq_thread_fn()
633 err = mv88e6xxx_g1_vtu_vid_read(chip, &entry); in mv88e6xxx_g1_vtu_prob_irq_thread_fn()
634 if (err) in mv88e6xxx_g1_vtu_prob_irq_thread_fn()
659 err); in mv88e6xxx_g1_vtu_prob_irq_thread_fn()
666 int err; in mv88e6xxx_g1_vtu_prob_irq_setup() local
676 err = request_threaded_irq(chip->vtu_prob_irq, NULL, in mv88e6xxx_g1_vtu_prob_irq_setup()
680 if (err) in mv88e6xxx_g1_vtu_prob_irq_setup()
683 return err; in mv88e6xxx_g1_vtu_prob_irq_setup()