Lines Matching refs:rvu_dl

32 	struct rvu_devlink *rvu_dl = rvu->rvu_dl;  in rvu_common_request_irq()  local
37 &rvu->irq_name[offset * NAME_SIZE], rvu_dl); in rvu_common_request_irq()
59 struct rvu_devlink *rvu_dl = rvu_irq; in rvu_nix_af_rvu_intr_handler() local
64 rvu = rvu_dl->rvu; in rvu_nix_af_rvu_intr_handler()
69 nix_event_context = rvu_dl->rvu_nix_health_reporter->nix_event_ctx; in rvu_nix_af_rvu_intr_handler()
76 queue_work(rvu_dl->devlink_wq, &rvu_dl->rvu_nix_health_reporter->intr_work); in rvu_nix_af_rvu_intr_handler()
94 struct rvu_devlink *rvu_dl = rvu_irq; in rvu_nix_af_rvu_gen_handler() local
99 rvu = rvu_dl->rvu; in rvu_nix_af_rvu_gen_handler()
104 nix_event_context = rvu_dl->rvu_nix_health_reporter->nix_event_ctx; in rvu_nix_af_rvu_gen_handler()
111 queue_work(rvu_dl->devlink_wq, &rvu_dl->rvu_nix_health_reporter->gen_work); in rvu_nix_af_rvu_gen_handler()
129 struct rvu_devlink *rvu_dl = rvu_irq; in rvu_nix_af_rvu_err_handler() local
134 rvu = rvu_dl->rvu; in rvu_nix_af_rvu_err_handler()
139 nix_event_context = rvu_dl->rvu_nix_health_reporter->nix_event_ctx; in rvu_nix_af_rvu_err_handler()
146 queue_work(rvu_dl->devlink_wq, &rvu_dl->rvu_nix_health_reporter->err_work); in rvu_nix_af_rvu_err_handler()
164 struct rvu_devlink *rvu_dl = rvu_irq; in rvu_nix_af_rvu_ras_handler() local
169 rvu = rvu_dl->rvu; in rvu_nix_af_rvu_ras_handler()
174 nix_event_context = rvu_dl->rvu_nix_health_reporter->nix_event_ctx; in rvu_nix_af_rvu_ras_handler()
181 queue_work(rvu_dl->devlink_wq, &rvu_dl->rvu_nix_health_reporter->ras_work); in rvu_nix_af_rvu_ras_handler()
188 struct rvu_devlink *rvu_dl = rvu->rvu_dl; in rvu_nix_unregister_interrupts() local
206 rvu_dl); in rvu_nix_unregister_interrupts()
212 free_irq(pci_irq_vector(rvu->pdev, offs + i), rvu_dl); in rvu_nix_unregister_interrupts()
365 struct rvu_devlink *rvu_dl = rvu->rvu_dl; in rvu_hw_nix_intr_dump() local
368 nix_ctx = rvu_dl->rvu_nix_health_reporter->nix_event_ctx; in rvu_hw_nix_intr_dump()
396 struct rvu_devlink *rvu_dl = rvu->rvu_dl; in rvu_hw_nix_gen_dump() local
399 nix_ctx = rvu_dl->rvu_nix_health_reporter->nix_event_ctx; in rvu_hw_nix_gen_dump()
427 struct rvu_devlink *rvu_dl = rvu->rvu_dl; in rvu_hw_nix_err_dump() local
430 nix_ctx = rvu_dl->rvu_nix_health_reporter->nix_event_ctx; in rvu_hw_nix_err_dump()
458 struct rvu_devlink *rvu_dl = rvu->rvu_dl; in rvu_hw_nix_ras_dump() local
461 nix_ctx = rvu_dl->rvu_nix_health_reporter->nix_event_ctx; in rvu_hw_nix_ras_dump()
489 static void rvu_nix_health_reporters_destroy(struct rvu_devlink *rvu_dl);
491 static int rvu_nix_register_reporters(struct rvu_devlink *rvu_dl) in rvu_nix_register_reporters() argument
495 struct rvu *rvu = rvu_dl->rvu; in rvu_nix_register_reporters()
501 rvu_dl->rvu_nix_health_reporter = rvu_reporters; in rvu_nix_register_reporters()
508 devlink_health_reporter_create(rvu_dl->dl, &rvu_hw_nix_intr_reporter_ops, 0, rvu); in rvu_nix_register_reporters()
516 devlink_health_reporter_create(rvu_dl->dl, &rvu_hw_nix_gen_reporter_ops, 0, rvu); in rvu_nix_register_reporters()
524 devlink_health_reporter_create(rvu_dl->dl, &rvu_hw_nix_err_reporter_ops, 0, rvu); in rvu_nix_register_reporters()
532 devlink_health_reporter_create(rvu_dl->dl, &rvu_hw_nix_ras_reporter_ops, 0, rvu); in rvu_nix_register_reporters()
539 rvu_dl->devlink_wq = create_workqueue("rvu_devlink_wq"); in rvu_nix_register_reporters()
540 if (!rvu_dl->devlink_wq) in rvu_nix_register_reporters()
551 static int rvu_nix_health_reporters_create(struct rvu_devlink *rvu_dl) in rvu_nix_health_reporters_create() argument
553 struct rvu *rvu = rvu_dl->rvu; in rvu_nix_health_reporters_create()
556 err = rvu_nix_register_reporters(rvu_dl); in rvu_nix_health_reporters_create()
567 static void rvu_nix_health_reporters_destroy(struct rvu_devlink *rvu_dl) in rvu_nix_health_reporters_destroy() argument
570 struct rvu *rvu = rvu_dl->rvu; in rvu_nix_health_reporters_destroy()
572 nix_reporters = rvu_dl->rvu_nix_health_reporter; in rvu_nix_health_reporters_destroy()
589 kfree(rvu_dl->rvu_nix_health_reporter->nix_event_ctx); in rvu_nix_health_reporters_destroy()
590 kfree(rvu_dl->rvu_nix_health_reporter); in rvu_nix_health_reporters_destroy()
606 struct rvu_devlink *rvu_dl = rvu_irq; in rvu_npa_af_rvu_intr_handler() local
611 rvu = rvu_dl->rvu; in rvu_npa_af_rvu_intr_handler()
616 npa_event_context = rvu_dl->rvu_npa_health_reporter->npa_event_ctx; in rvu_npa_af_rvu_intr_handler()
623 queue_work(rvu_dl->devlink_wq, &rvu_dl->rvu_npa_health_reporter->intr_work); in rvu_npa_af_rvu_intr_handler()
641 struct rvu_devlink *rvu_dl = rvu_irq; in rvu_npa_af_gen_intr_handler() local
646 rvu = rvu_dl->rvu; in rvu_npa_af_gen_intr_handler()
651 npa_event_context = rvu_dl->rvu_npa_health_reporter->npa_event_ctx; in rvu_npa_af_gen_intr_handler()
658 queue_work(rvu_dl->devlink_wq, &rvu_dl->rvu_npa_health_reporter->gen_work); in rvu_npa_af_gen_intr_handler()
676 struct rvu_devlink *rvu_dl = rvu_irq; in rvu_npa_af_err_intr_handler() local
681 rvu = rvu_dl->rvu; in rvu_npa_af_err_intr_handler()
685 npa_event_context = rvu_dl->rvu_npa_health_reporter->npa_event_ctx; in rvu_npa_af_err_intr_handler()
692 queue_work(rvu_dl->devlink_wq, &rvu_dl->rvu_npa_health_reporter->err_work); in rvu_npa_af_err_intr_handler()
710 struct rvu_devlink *rvu_dl = rvu_irq; in rvu_npa_af_ras_intr_handler() local
715 rvu = rvu_dl->rvu; in rvu_npa_af_ras_intr_handler()
720 npa_event_context = rvu_dl->rvu_npa_health_reporter->npa_event_ctx; in rvu_npa_af_ras_intr_handler()
727 queue_work(rvu_dl->devlink_wq, &rvu_dl->rvu_npa_health_reporter->ras_work); in rvu_npa_af_ras_intr_handler()
734 struct rvu_devlink *rvu_dl = rvu->rvu_dl; in rvu_npa_unregister_interrupts() local
752 free_irq(pci_irq_vector(rvu->pdev, offs + i), rvu_dl); in rvu_npa_unregister_interrupts()
911 struct rvu_devlink *rvu_dl = rvu->rvu_dl; in rvu_hw_npa_intr_dump() local
914 npa_ctx = rvu_dl->rvu_npa_health_reporter->npa_event_ctx; in rvu_hw_npa_intr_dump()
942 struct rvu_devlink *rvu_dl = rvu->rvu_dl; in rvu_hw_npa_gen_dump() local
945 npa_ctx = rvu_dl->rvu_npa_health_reporter->npa_event_ctx; in rvu_hw_npa_gen_dump()
973 struct rvu_devlink *rvu_dl = rvu->rvu_dl; in rvu_hw_npa_err_dump() local
976 npa_ctx = rvu_dl->rvu_npa_health_reporter->npa_event_ctx; in rvu_hw_npa_err_dump()
1004 struct rvu_devlink *rvu_dl = rvu->rvu_dl; in rvu_hw_npa_ras_dump() local
1007 npa_ctx = rvu_dl->rvu_npa_health_reporter->npa_event_ctx; in rvu_hw_npa_ras_dump()
1035 static void rvu_npa_health_reporters_destroy(struct rvu_devlink *rvu_dl);
1037 static int rvu_npa_register_reporters(struct rvu_devlink *rvu_dl) in rvu_npa_register_reporters() argument
1041 struct rvu *rvu = rvu_dl->rvu; in rvu_npa_register_reporters()
1047 rvu_dl->rvu_npa_health_reporter = rvu_reporters; in rvu_npa_register_reporters()
1054 devlink_health_reporter_create(rvu_dl->dl, &rvu_hw_npa_intr_reporter_ops, 0, rvu); in rvu_npa_register_reporters()
1062 devlink_health_reporter_create(rvu_dl->dl, &rvu_hw_npa_gen_reporter_ops, 0, rvu); in rvu_npa_register_reporters()
1070 devlink_health_reporter_create(rvu_dl->dl, &rvu_hw_npa_err_reporter_ops, 0, rvu); in rvu_npa_register_reporters()
1078 devlink_health_reporter_create(rvu_dl->dl, &rvu_hw_npa_ras_reporter_ops, 0, rvu); in rvu_npa_register_reporters()
1085 rvu_dl->devlink_wq = create_workqueue("rvu_devlink_wq"); in rvu_npa_register_reporters()
1086 if (!rvu_dl->devlink_wq) in rvu_npa_register_reporters()
1097 static int rvu_npa_health_reporters_create(struct rvu_devlink *rvu_dl) in rvu_npa_health_reporters_create() argument
1099 struct rvu *rvu = rvu_dl->rvu; in rvu_npa_health_reporters_create()
1102 err = rvu_npa_register_reporters(rvu_dl); in rvu_npa_health_reporters_create()
1113 static void rvu_npa_health_reporters_destroy(struct rvu_devlink *rvu_dl) in rvu_npa_health_reporters_destroy() argument
1116 struct rvu *rvu = rvu_dl->rvu; in rvu_npa_health_reporters_destroy()
1118 npa_reporters = rvu_dl->rvu_npa_health_reporter; in rvu_npa_health_reporters_destroy()
1135 kfree(rvu_dl->rvu_npa_health_reporter->npa_event_ctx); in rvu_npa_health_reporters_destroy()
1136 kfree(rvu_dl->rvu_npa_health_reporter); in rvu_npa_health_reporters_destroy()
1141 struct rvu_devlink *rvu_dl; in rvu_health_reporters_create() local
1144 rvu_dl = rvu->rvu_dl; in rvu_health_reporters_create()
1145 err = rvu_npa_health_reporters_create(rvu_dl); in rvu_health_reporters_create()
1149 return rvu_nix_health_reporters_create(rvu_dl); in rvu_health_reporters_create()
1154 struct rvu_devlink *rvu_dl; in rvu_health_reporters_destroy() local
1156 if (!rvu->rvu_dl) in rvu_health_reporters_destroy()
1159 rvu_dl = rvu->rvu_dl; in rvu_health_reporters_destroy()
1160 rvu_npa_health_reporters_destroy(rvu_dl); in rvu_health_reporters_destroy()
1161 rvu_nix_health_reporters_destroy(rvu_dl); in rvu_health_reporters_destroy()
1169 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_af_dl_dwrr_mtu_validate() local
1170 struct rvu *rvu = rvu_dl->rvu; in rvu_af_dl_dwrr_mtu_validate()
1208 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_af_dl_dwrr_mtu_set() local
1209 struct rvu *rvu = rvu_dl->rvu; in rvu_af_dl_dwrr_mtu_set()
1222 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_af_dl_dwrr_mtu_get() local
1223 struct rvu *rvu = rvu_dl->rvu; in rvu_af_dl_dwrr_mtu_get()
1247 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_af_npc_exact_feature_get() local
1248 struct rvu *rvu = rvu_dl->rvu; in rvu_af_npc_exact_feature_get()
1263 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_af_npc_exact_feature_disable() local
1264 struct rvu *rvu = rvu_dl->rvu; in rvu_af_npc_exact_feature_disable()
1275 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_af_npc_exact_feature_validate() local
1276 struct rvu *rvu = rvu_dl->rvu; in rvu_af_npc_exact_feature_validate()
1302 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_af_dl_npc_mcam_high_zone_percent_get() local
1303 struct rvu *rvu = rvu_dl->rvu; in rvu_af_dl_npc_mcam_high_zone_percent_get()
1318 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_af_dl_npc_mcam_high_zone_percent_set() local
1319 struct rvu *rvu = rvu_dl->rvu; in rvu_af_dl_npc_mcam_high_zone_percent_set()
1337 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_af_dl_npc_mcam_high_zone_percent_validate() local
1338 struct rvu *rvu = rvu_dl->rvu; in rvu_af_dl_npc_mcam_high_zone_percent_validate()
1364 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_af_dl_nix_maxlf_get() local
1365 struct rvu *rvu = rvu_dl->rvu; in rvu_af_dl_nix_maxlf_get()
1376 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_af_dl_nix_maxlf_set() local
1377 struct rvu *rvu = rvu_dl->rvu; in rvu_af_dl_nix_maxlf_set()
1399 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_af_dl_nix_maxlf_validate() local
1400 struct rvu *rvu = rvu_dl->rvu; in rvu_af_dl_nix_maxlf_validate()
1467 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_devlink_eswitch_mode_get() local
1468 struct rvu *rvu = rvu_dl->rvu; in rvu_devlink_eswitch_mode_get()
1480 struct rvu_devlink *rvu_dl = devlink_priv(devlink); in rvu_devlink_eswitch_mode_set() local
1481 struct rvu *rvu = rvu_dl->rvu; in rvu_devlink_eswitch_mode_set()
1510 struct rvu_devlink *rvu_dl; in rvu_register_dl() local
1521 rvu_dl = devlink_priv(dl); in rvu_register_dl()
1522 rvu_dl->dl = dl; in rvu_register_dl()
1523 rvu_dl->rvu = rvu; in rvu_register_dl()
1524 rvu->rvu_dl = rvu_dl; in rvu_register_dl()
1567 struct rvu_devlink *rvu_dl = rvu->rvu_dl; in rvu_unregister_dl() local
1568 struct devlink *dl = rvu_dl->dl; in rvu_unregister_dl()