Lines Matching refs:err

19 	int err;  in rvu_report_pair_start()  local
21 err = devlink_fmsg_pair_nest_start(fmsg, name); in rvu_report_pair_start()
22 if (err) in rvu_report_pair_start()
23 return err; in rvu_report_pair_start()
30 int err; in rvu_report_pair_end() local
32 err = devlink_fmsg_obj_nest_end(fmsg); in rvu_report_pair_end()
33 if (err) in rvu_report_pair_end()
34 return err; in rvu_report_pair_end()
249 goto err; in rvu_nix_register_interrupts()
257 goto err; in rvu_nix_register_interrupts()
265 goto err; in rvu_nix_register_interrupts()
273 goto err; in rvu_nix_register_interrupts()
277 err: in rvu_nix_register_interrupts()
287 int err; in rvu_nix_report_show() local
293 err = rvu_report_pair_start(fmsg, "NIX_AF_RVU"); in rvu_nix_report_show()
294 if (err) in rvu_nix_report_show()
295 return err; in rvu_nix_report_show()
296 err = devlink_fmsg_u64_pair_put(fmsg, "\tNIX RVU Interrupt Reg ", in rvu_nix_report_show()
298 if (err) in rvu_nix_report_show()
299 return err; in rvu_nix_report_show()
301 err = devlink_fmsg_string_put(fmsg, "\n\tUnmap Slot Error"); in rvu_nix_report_show()
302 if (err) in rvu_nix_report_show()
303 return err; in rvu_nix_report_show()
305 err = rvu_report_pair_end(fmsg); in rvu_nix_report_show()
306 if (err) in rvu_nix_report_show()
307 return err; in rvu_nix_report_show()
311 err = rvu_report_pair_start(fmsg, "NIX_AF_GENERAL"); in rvu_nix_report_show()
312 if (err) in rvu_nix_report_show()
313 return err; in rvu_nix_report_show()
314 err = devlink_fmsg_u64_pair_put(fmsg, "\tNIX General Interrupt Reg ", in rvu_nix_report_show()
316 if (err) in rvu_nix_report_show()
317 return err; in rvu_nix_report_show()
319 err = devlink_fmsg_string_put(fmsg, "\n\tRx multicast pkt drop"); in rvu_nix_report_show()
320 if (err) in rvu_nix_report_show()
321 return err; in rvu_nix_report_show()
324 err = devlink_fmsg_string_put(fmsg, "\n\tRx mirror pkt drop"); in rvu_nix_report_show()
325 if (err) in rvu_nix_report_show()
326 return err; in rvu_nix_report_show()
329 err = devlink_fmsg_string_put(fmsg, "\n\tSMQ flush done"); in rvu_nix_report_show()
330 if (err) in rvu_nix_report_show()
331 return err; in rvu_nix_report_show()
333 err = rvu_report_pair_end(fmsg); in rvu_nix_report_show()
334 if (err) in rvu_nix_report_show()
335 return err; in rvu_nix_report_show()
339 err = rvu_report_pair_start(fmsg, "NIX_AF_ERR"); in rvu_nix_report_show()
340 if (err) in rvu_nix_report_show()
341 return err; in rvu_nix_report_show()
342 err = devlink_fmsg_u64_pair_put(fmsg, "\tNIX Error Interrupt Reg ", in rvu_nix_report_show()
344 if (err) in rvu_nix_report_show()
345 return err; in rvu_nix_report_show()
347 err = devlink_fmsg_string_put(fmsg, "\n\tFault on NIX_AQ_INST_S read"); in rvu_nix_report_show()
348 if (err) in rvu_nix_report_show()
349 return err; in rvu_nix_report_show()
352 err = devlink_fmsg_string_put(fmsg, "\n\tFault on NIX_AQ_RES_S write"); in rvu_nix_report_show()
353 if (err) in rvu_nix_report_show()
354 return err; in rvu_nix_report_show()
357 err = devlink_fmsg_string_put(fmsg, "\n\tAQ Doorbell Error"); in rvu_nix_report_show()
358 if (err) in rvu_nix_report_show()
359 return err; in rvu_nix_report_show()
362 err = devlink_fmsg_string_put(fmsg, "\n\tRx on unmapped PF_FUNC"); in rvu_nix_report_show()
363 if (err) in rvu_nix_report_show()
364 return err; in rvu_nix_report_show()
367 err = devlink_fmsg_string_put(fmsg, "\n\tRx multicast replication error"); in rvu_nix_report_show()
368 if (err) in rvu_nix_report_show()
369 return err; in rvu_nix_report_show()
372 err = devlink_fmsg_string_put(fmsg, "\n\tFault on NIX_RX_MCE_S read"); in rvu_nix_report_show()
373 if (err) in rvu_nix_report_show()
374 return err; in rvu_nix_report_show()
377 err = devlink_fmsg_string_put(fmsg, "\n\tFault on multicast WQE read"); in rvu_nix_report_show()
378 if (err) in rvu_nix_report_show()
379 return err; in rvu_nix_report_show()
382 err = devlink_fmsg_string_put(fmsg, "\n\tFault on mirror WQE read"); in rvu_nix_report_show()
383 if (err) in rvu_nix_report_show()
384 return err; in rvu_nix_report_show()
387 err = devlink_fmsg_string_put(fmsg, "\n\tFault on mirror pkt write"); in rvu_nix_report_show()
388 if (err) in rvu_nix_report_show()
389 return err; in rvu_nix_report_show()
392 err = devlink_fmsg_string_put(fmsg, "\n\tFault on multicast pkt write"); in rvu_nix_report_show()
393 if (err) in rvu_nix_report_show()
394 return err; in rvu_nix_report_show()
396 err = rvu_report_pair_end(fmsg); in rvu_nix_report_show()
397 if (err) in rvu_nix_report_show()
398 return err; in rvu_nix_report_show()
402 err = rvu_report_pair_start(fmsg, "NIX_AF_RAS"); in rvu_nix_report_show()
403 if (err) in rvu_nix_report_show()
404 return err; in rvu_nix_report_show()
405 err = devlink_fmsg_u64_pair_put(fmsg, "\tNIX RAS Interrupt Reg ", in rvu_nix_report_show()
407 if (err) in rvu_nix_report_show()
408 return err; in rvu_nix_report_show()
409 err = devlink_fmsg_string_put(fmsg, "\n\tPoison Data on:"); in rvu_nix_report_show()
410 if (err) in rvu_nix_report_show()
411 return err; in rvu_nix_report_show()
413 err = devlink_fmsg_string_put(fmsg, "\n\tNIX_AQ_INST_S"); in rvu_nix_report_show()
414 if (err) in rvu_nix_report_show()
415 return err; in rvu_nix_report_show()
418 err = devlink_fmsg_string_put(fmsg, "\n\tNIX_AQ_RES_S"); in rvu_nix_report_show()
419 if (err) in rvu_nix_report_show()
420 return err; in rvu_nix_report_show()
423 err = devlink_fmsg_string_put(fmsg, "\n\tHW ctx"); in rvu_nix_report_show()
424 if (err) in rvu_nix_report_show()
425 return err; in rvu_nix_report_show()
428 err = devlink_fmsg_string_put(fmsg, "\n\tPacket from mirror buffer"); in rvu_nix_report_show()
429 if (err) in rvu_nix_report_show()
430 return err; in rvu_nix_report_show()
433 err = devlink_fmsg_string_put(fmsg, "\n\tPacket from multicast buffer"); in rvu_nix_report_show()
435 if (err) in rvu_nix_report_show()
436 return err; in rvu_nix_report_show()
439 err = devlink_fmsg_string_put(fmsg, "\n\tWQE read from mirror buffer"); in rvu_nix_report_show()
440 if (err) in rvu_nix_report_show()
441 return err; in rvu_nix_report_show()
444 err = devlink_fmsg_string_put(fmsg, "\n\tWQE read from multicast buffer"); in rvu_nix_report_show()
445 if (err) in rvu_nix_report_show()
446 return err; in rvu_nix_report_show()
449 err = devlink_fmsg_string_put(fmsg, "\n\tNIX_RX_MCE_S read"); in rvu_nix_report_show()
450 if (err) in rvu_nix_report_show()
451 return err; in rvu_nix_report_show()
453 err = rvu_report_pair_end(fmsg); in rvu_nix_report_show()
454 if (err) in rvu_nix_report_show()
455 return err; in rvu_nix_report_show()
658 int err; in rvu_nix_health_reporters_create() local
660 err = rvu_nix_register_reporters(rvu_dl); in rvu_nix_health_reporters_create()
661 if (err) { in rvu_nix_health_reporters_create()
663 err); in rvu_nix_health_reporters_create()
664 return err; in rvu_nix_health_reporters_create()
883 goto err; in rvu_npa_register_interrupts()
891 goto err; in rvu_npa_register_interrupts()
899 goto err; in rvu_npa_register_interrupts()
907 goto err; in rvu_npa_register_interrupts()
911 err: in rvu_npa_register_interrupts()
922 int err; in rvu_npa_report_show() local
928 err = rvu_report_pair_start(fmsg, "NPA_AF_GENERAL"); in rvu_npa_report_show()
929 if (err) in rvu_npa_report_show()
930 return err; in rvu_npa_report_show()
931 err = devlink_fmsg_u64_pair_put(fmsg, "\tNPA General Interrupt Reg ", in rvu_npa_report_show()
933 if (err) in rvu_npa_report_show()
934 return err; in rvu_npa_report_show()
936 err = devlink_fmsg_string_put(fmsg, "\n\tUnmap PF Error"); in rvu_npa_report_show()
937 if (err) in rvu_npa_report_show()
938 return err; in rvu_npa_report_show()
943 err = devlink_fmsg_string_put(fmsg, "\n\tNIX0: free disabled RX"); in rvu_npa_report_show()
944 if (err) in rvu_npa_report_show()
945 return err; in rvu_npa_report_show()
948 err = devlink_fmsg_string_put(fmsg, "\n\tNIX0:free disabled TX"); in rvu_npa_report_show()
949 if (err) in rvu_npa_report_show()
950 return err; in rvu_npa_report_show()
953 err = devlink_fmsg_string_put(fmsg, "\n\tNIX1: free disabled RX"); in rvu_npa_report_show()
954 if (err) in rvu_npa_report_show()
955 return err; in rvu_npa_report_show()
958 err = devlink_fmsg_string_put(fmsg, "\n\tNIX1:free disabled TX"); in rvu_npa_report_show()
959 if (err) in rvu_npa_report_show()
960 return err; in rvu_npa_report_show()
963 err = devlink_fmsg_string_put(fmsg, "\n\tFree Disabled for SSO"); in rvu_npa_report_show()
964 if (err) in rvu_npa_report_show()
965 return err; in rvu_npa_report_show()
968 err = devlink_fmsg_string_put(fmsg, "\n\tFree Disabled for TIM"); in rvu_npa_report_show()
969 if (err) in rvu_npa_report_show()
970 return err; in rvu_npa_report_show()
973 err = devlink_fmsg_string_put(fmsg, "\n\tFree Disabled for DPI"); in rvu_npa_report_show()
974 if (err) in rvu_npa_report_show()
975 return err; in rvu_npa_report_show()
978 err = devlink_fmsg_string_put(fmsg, "\n\tFree Disabled for AURA"); in rvu_npa_report_show()
979 if (err) in rvu_npa_report_show()
980 return err; in rvu_npa_report_show()
985 err = devlink_fmsg_string_put(fmsg, "\n\tNIX0: alloc disabled RX"); in rvu_npa_report_show()
986 if (err) in rvu_npa_report_show()
987 return err; in rvu_npa_report_show()
990 err = devlink_fmsg_string_put(fmsg, "\n\tNIX0:alloc disabled TX"); in rvu_npa_report_show()
991 if (err) in rvu_npa_report_show()
992 return err; in rvu_npa_report_show()
995 err = devlink_fmsg_string_put(fmsg, "\n\tNIX1: alloc disabled RX"); in rvu_npa_report_show()
996 if (err) in rvu_npa_report_show()
997 return err; in rvu_npa_report_show()
1000 err = devlink_fmsg_string_put(fmsg, "\n\tNIX1:alloc disabled TX"); in rvu_npa_report_show()
1001 if (err) in rvu_npa_report_show()
1002 return err; in rvu_npa_report_show()
1005 err = devlink_fmsg_string_put(fmsg, "\n\tAlloc Disabled for SSO"); in rvu_npa_report_show()
1006 if (err) in rvu_npa_report_show()
1007 return err; in rvu_npa_report_show()
1010 err = devlink_fmsg_string_put(fmsg, "\n\tAlloc Disabled for TIM"); in rvu_npa_report_show()
1011 if (err) in rvu_npa_report_show()
1012 return err; in rvu_npa_report_show()
1015 err = devlink_fmsg_string_put(fmsg, "\n\tAlloc Disabled for DPI"); in rvu_npa_report_show()
1016 if (err) in rvu_npa_report_show()
1017 return err; in rvu_npa_report_show()
1020 err = devlink_fmsg_string_put(fmsg, "\n\tAlloc Disabled for AURA"); in rvu_npa_report_show()
1021 if (err) in rvu_npa_report_show()
1022 return err; in rvu_npa_report_show()
1024 err = rvu_report_pair_end(fmsg); in rvu_npa_report_show()
1025 if (err) in rvu_npa_report_show()
1026 return err; in rvu_npa_report_show()
1029 err = rvu_report_pair_start(fmsg, "NPA_AF_ERR"); in rvu_npa_report_show()
1030 if (err) in rvu_npa_report_show()
1031 return err; in rvu_npa_report_show()
1032 err = devlink_fmsg_u64_pair_put(fmsg, "\tNPA Error Interrupt Reg ", in rvu_npa_report_show()
1034 if (err) in rvu_npa_report_show()
1035 return err; in rvu_npa_report_show()
1038 err = devlink_fmsg_string_put(fmsg, "\n\tFault on NPA_AQ_INST_S read"); in rvu_npa_report_show()
1039 if (err) in rvu_npa_report_show()
1040 return err; in rvu_npa_report_show()
1043 err = devlink_fmsg_string_put(fmsg, "\n\tFault on NPA_AQ_RES_S write"); in rvu_npa_report_show()
1044 if (err) in rvu_npa_report_show()
1045 return err; in rvu_npa_report_show()
1048 err = devlink_fmsg_string_put(fmsg, "\n\tAQ Doorbell Error"); in rvu_npa_report_show()
1049 if (err) in rvu_npa_report_show()
1050 return err; in rvu_npa_report_show()
1052 err = rvu_report_pair_end(fmsg); in rvu_npa_report_show()
1053 if (err) in rvu_npa_report_show()
1054 return err; in rvu_npa_report_show()
1057 err = rvu_report_pair_start(fmsg, "NPA_AF_RVU_RAS"); in rvu_npa_report_show()
1058 if (err) in rvu_npa_report_show()
1059 return err; in rvu_npa_report_show()
1060 err = devlink_fmsg_u64_pair_put(fmsg, "\tNPA RAS Interrupt Reg ", in rvu_npa_report_show()
1062 if (err) in rvu_npa_report_show()
1063 return err; in rvu_npa_report_show()
1065 err = devlink_fmsg_string_put(fmsg, "\n\tPoison data on NPA_AQ_INST_S"); in rvu_npa_report_show()
1066 if (err) in rvu_npa_report_show()
1067 return err; in rvu_npa_report_show()
1070 err = devlink_fmsg_string_put(fmsg, "\n\tPoison data on NPA_AQ_RES_S"); in rvu_npa_report_show()
1071 if (err) in rvu_npa_report_show()
1072 return err; in rvu_npa_report_show()
1075 err = devlink_fmsg_string_put(fmsg, "\n\tPoison data on HW context"); in rvu_npa_report_show()
1076 if (err) in rvu_npa_report_show()
1077 return err; in rvu_npa_report_show()
1079 err = rvu_report_pair_end(fmsg); in rvu_npa_report_show()
1080 if (err) in rvu_npa_report_show()
1081 return err; in rvu_npa_report_show()
1084 err = rvu_report_pair_start(fmsg, "NPA_AF_RVU"); in rvu_npa_report_show()
1085 if (err) in rvu_npa_report_show()
1086 return err; in rvu_npa_report_show()
1087 err = devlink_fmsg_u64_pair_put(fmsg, "\tNPA RVU Interrupt Reg ", in rvu_npa_report_show()
1089 if (err) in rvu_npa_report_show()
1090 return err; in rvu_npa_report_show()
1092 err = devlink_fmsg_string_put(fmsg, "\n\tUnmap Slot Error"); in rvu_npa_report_show()
1093 if (err) in rvu_npa_report_show()
1094 return err; in rvu_npa_report_show()
1298 int err; in rvu_npa_health_reporters_create() local
1300 err = rvu_npa_register_reporters(rvu_dl); in rvu_npa_health_reporters_create()
1301 if (err) { in rvu_npa_health_reporters_create()
1303 err); in rvu_npa_health_reporters_create()
1304 return err; in rvu_npa_health_reporters_create()
1340 int err; in rvu_health_reporters_create() local
1343 err = rvu_npa_health_reporters_create(rvu_dl); in rvu_health_reporters_create()
1344 if (err) in rvu_health_reporters_create()
1345 return err; in rvu_health_reporters_create()
1626 int err; in rvu_register_dl() local
1640 err = rvu_health_reporters_create(rvu); in rvu_register_dl()
1641 if (err) { in rvu_register_dl()
1643 "devlink health reporter creation failed with error %d\n", err); in rvu_register_dl()
1647 err = devlink_params_register(dl, rvu_af_dl_params, ARRAY_SIZE(rvu_af_dl_params)); in rvu_register_dl()
1648 if (err) { in rvu_register_dl()
1650 "devlink params register failed with error %d", err); in rvu_register_dl()
1658 err = devlink_params_register(dl, rvu_af_dl_param_exact_match, in rvu_register_dl()
1660 if (err) { in rvu_register_dl()
1662 "devlink exact match params register failed with error %d", err); in rvu_register_dl()
1676 return err; in rvu_register_dl()