Lines Matching refs:temp_buff

411 	struct cudbg_buffer temp_buff = { 0 };  in cudbg_collect_reg_dump()  local
420 rc = cudbg_get_buff(pdbg_init, dbg_buff, buf_size, &temp_buff); in cudbg_collect_reg_dump()
423 t4_get_regs(padap, (void *)temp_buff.data, temp_buff.size); in cudbg_collect_reg_dump()
424 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_reg_dump()
432 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_fw_devlog() local
443 rc = cudbg_get_buff(pdbg_init, dbg_buff, dparams->size, &temp_buff); in cudbg_collect_fw_devlog()
453 (__be32 *)(char *)temp_buff.data, in cudbg_collect_fw_devlog()
458 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_fw_devlog()
462 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_fw_devlog()
470 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_cim_la() local
483 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cim_la()
490 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_la()
494 memcpy((char *)temp_buff.data, &cfg, sizeof(cfg)); in cudbg_collect_cim_la()
496 (u32 *)((char *)temp_buff.data + sizeof(cfg)), in cudbg_collect_cim_la()
500 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_la()
503 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_la()
511 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_cim_ma_la() local
515 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cim_ma_la()
520 (u32 *)temp_buff.data, in cudbg_collect_cim_ma_la()
521 (u32 *)((char *)temp_buff.data + in cudbg_collect_cim_ma_la()
523 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_ma_la()
531 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_cim_qcfg() local
536 &temp_buff); in cudbg_collect_cim_qcfg()
540 cim_qcfg_data = (struct cudbg_cim_qcfg *)temp_buff.data; in cudbg_collect_cim_qcfg()
546 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_qcfg()
555 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_qcfg()
561 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_qcfg()
569 struct cudbg_buffer temp_buff = { 0 }; in cudbg_read_cim_ibq() local
575 rc = cudbg_get_buff(pdbg_init, dbg_buff, qsize, &temp_buff); in cudbg_read_cim_ibq()
581 (u32 *)temp_buff.data, qsize); in cudbg_read_cim_ibq()
589 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_cim_ibq()
592 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_read_cim_ibq()
653 struct cudbg_buffer temp_buff = { 0 }; in cudbg_read_cim_obq() local
659 rc = cudbg_get_buff(pdbg_init, dbg_buff, qsize, &temp_buff); in cudbg_read_cim_obq()
665 (u32 *)temp_buff.data, qsize); in cudbg_read_cim_obq()
673 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_cim_obq()
676 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_read_cim_obq()
973 struct cudbg_buffer temp_buff = { 0 }; in cudbg_read_fw_mem() local
1009 rc = cudbg_get_buff(pdbg_init, dbg_buff, bytes, &temp_buff); in cudbg_read_fw_mem()
1022 bytes_read, bytes, temp_buff.data); in cudbg_read_fw_mem()
1026 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_fw_mem()
1033 rc = cudbg_write_and_release_buff(pdbg_init, &temp_buff, in cudbg_read_fw_mem()
1036 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_fw_mem()
1135 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_rss() local
1140 &temp_buff); in cudbg_collect_rss()
1144 rc = t4_read_rss(padap, (u16 *)temp_buff.data); in cudbg_collect_rss()
1147 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_rss()
1150 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_rss()
1158 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_rss_vf_config() local
1165 &temp_buff); in cudbg_collect_rss_vf_config()
1169 vfconf = (struct cudbg_rss_vf_conf *)temp_buff.data; in cudbg_collect_rss_vf_config()
1173 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_rss_vf_config()
1181 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_path_mtu() local
1185 &temp_buff); in cudbg_collect_path_mtu()
1189 t4_read_mtu_tbl(padap, (u16 *)temp_buff.data, NULL); in cudbg_collect_path_mtu()
1190 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_path_mtu()
1198 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_pm_stats() local
1203 &temp_buff); in cudbg_collect_pm_stats()
1207 pm_stats_buff = (struct cudbg_pm_stats *)temp_buff.data; in cudbg_collect_pm_stats()
1210 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pm_stats()
1218 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_hw_sched() local
1226 &temp_buff); in cudbg_collect_hw_sched()
1231 hw_sched_buff = (struct cudbg_hw_sched *)temp_buff.data; in cudbg_collect_hw_sched()
1238 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_hw_sched()
1246 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_tp_indirect() local
1262 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_tp_indirect()
1266 ch_tp_pio = (struct ireg_buf *)temp_buff.data; in cudbg_collect_tp_indirect()
1351 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tp_indirect()
1380 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_sge_indirect() local
1387 &temp_buff); in cudbg_collect_sge_indirect()
1391 ch_sge_dbg = (struct ireg_buf *)temp_buff.data; in cudbg_collect_sge_indirect()
1430 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_sge_indirect()
1438 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_ulprx_la() local
1443 &temp_buff); in cudbg_collect_ulprx_la()
1447 ulprx_la_buff = (struct cudbg_ulprx_la *)temp_buff.data; in cudbg_collect_ulprx_la()
1450 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_ulprx_la()
1458 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_tp_la() local
1463 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_tp_la()
1467 tp_la_buff = (struct cudbg_tp_la *)temp_buff.data; in cudbg_collect_tp_la()
1470 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tp_la()
1478 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_meminfo() local
1486 &temp_buff); in cudbg_collect_meminfo()
1490 ver_hdr = (struct cudbg_ver_hdr *)temp_buff.data; in cudbg_collect_meminfo()
1495 meminfo_buff = (struct cudbg_meminfo *)(temp_buff.data + in cudbg_collect_meminfo()
1500 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_meminfo()
1504 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_meminfo()
1513 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_cim_pif_la() local
1518 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cim_pif_la()
1522 cim_pif_la_buff = (struct cudbg_cim_pif_la *)temp_buff.data; in cudbg_collect_cim_pif_la()
1527 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_pif_la()
1535 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_clk_info() local
1544 &temp_buff); in cudbg_collect_clk_info()
1548 clk_info_buff = (struct cudbg_clk_info *)temp_buff.data; in cudbg_collect_clk_info()
1575 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_clk_info()
1583 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_pcie_indirect() local
1590 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_pcie_indirect()
1594 ch_pcie = (struct ireg_buf *)temp_buff.data; in cudbg_collect_pcie_indirect()
1631 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pcie_indirect()
1639 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_pm_indirect() local
1646 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_pm_indirect()
1650 ch_pm = (struct ireg_buf *)temp_buff.data; in cudbg_collect_pm_indirect()
1687 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pm_indirect()
1696 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_tid() local
1703 &temp_buff); in cudbg_collect_tid()
1707 tid1 = (struct cudbg_tid_info_region_rev1 *)temp_buff.data; in cudbg_collect_tid()
1731 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_tid()
1750 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_tid()
1779 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tid()
1787 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_pcie_config() local
1793 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_pcie_config()
1797 value = (u32 *)temp_buff.data; in cudbg_collect_pcie_config()
1805 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pcie_config()
1968 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_dump_context() local
1985 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_dump_context()
1999 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_dump_context()
2003 buff = (struct cudbg_ch_cntxt *)temp_buff.data; in cudbg_collect_dump_context()
2069 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_dump_context()
2234 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_mps_tcam() local
2241 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_mps_tcam()
2245 tcam = (struct cudbg_mps_tcam *)temp_buff.data; in cudbg_collect_mps_tcam()
2250 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_mps_tcam()
2260 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_mps_tcam()
2263 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_mps_tcam()
2271 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_vpd_data() local
2315 &temp_buff); in cudbg_collect_vpd_data()
2319 vpd_data = (struct cudbg_vpd_data *)temp_buff.data; in cudbg_collect_vpd_data()
2330 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_vpd_data()
2481 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_le_tcam() local
2492 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_le_tcam()
2496 memcpy(temp_buff.data, &tcam_region, sizeof(struct cudbg_tcam)); in cudbg_collect_le_tcam()
2498 tid_data = (struct cudbg_tid_data *)(temp_buff.data + bytes); in cudbg_collect_le_tcam()
2506 memcpy(temp_buff.data, &tcam_region, in cudbg_collect_le_tcam()
2528 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_le_tcam()
2536 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_cctrl() local
2541 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cctrl()
2545 t4_read_cong_tbl(padap, (void *)temp_buff.data); in cudbg_collect_cctrl()
2546 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cctrl()
2554 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_ma_indirect() local
2564 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_ma_indirect()
2568 ma_indr = (struct ireg_buf *)temp_buff.data; in cudbg_collect_ma_indirect()
2600 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_ma_indirect()
2608 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_ulptx_la() local
2617 &temp_buff); in cudbg_collect_ulptx_la()
2621 ver_hdr = (struct cudbg_ver_hdr *)temp_buff.data; in cudbg_collect_ulptx_la()
2626 ulptx_la_buff = (struct cudbg_ulptx_la *)(temp_buff.data + in cudbg_collect_ulptx_la()
2662 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_ulptx_la()
2670 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_up_cim_indirect() local
2687 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_up_cim_indirect()
2691 up_cim = (struct ireg_buf *)temp_buff.data; in cudbg_collect_up_cim_indirect()
2737 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_up_cim_indirect()
2743 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_up_cim_indirect()
2751 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_pbt_tables() local
2758 &temp_buff); in cudbg_collect_pbt_tables()
2762 pbt = (struct cudbg_pbt_tables *)temp_buff.data; in cudbg_collect_pbt_tables()
2770 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
2783 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
2795 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
2807 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
2811 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pbt_tables()
2820 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_mbox_log() local
2832 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_mbox_log()
2836 mboxlog = (struct cudbg_mbox_log *)temp_buff.data; in cudbg_collect_mbox_log()
2855 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_mbox_log()
2863 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_hma_indirect() local
2873 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_hma_indirect()
2877 hma_indr = (struct ireg_buf *)temp_buff.data; in cudbg_collect_hma_indirect()
2891 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_hma_indirect()
2950 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_qdesc() local
3101 &temp_buff); in cudbg_collect_qdesc()
3107 memcpy(temp_buff.data, data + cur_off, chunk_size); in cudbg_collect_qdesc()
3110 rc = cudbg_write_and_release_buff(pdbg_init, &temp_buff, in cudbg_collect_qdesc()
3113 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_qdesc()