Lines Matching refs:temp_buff

819 	struct cudbg_buffer temp_buff = { 0 };  in cudbg_collect_reg_dump()  local
828 rc = cudbg_get_buff(pdbg_init, dbg_buff, buf_size, &temp_buff); in cudbg_collect_reg_dump()
831 t4_get_regs(padap, (void *)temp_buff.data, temp_buff.size); in cudbg_collect_reg_dump()
832 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_reg_dump()
840 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_fw_devlog() local
851 rc = cudbg_get_buff(pdbg_init, dbg_buff, dparams->size, &temp_buff); in cudbg_collect_fw_devlog()
861 (__be32 *)(char *)temp_buff.data, in cudbg_collect_fw_devlog()
866 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_fw_devlog()
870 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_fw_devlog()
878 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_cim_la() local
891 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cim_la()
898 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_la()
902 memcpy((char *)temp_buff.data, &cfg, sizeof(cfg)); in cudbg_collect_cim_la()
904 (u32 *)((char *)temp_buff.data + sizeof(cfg)), in cudbg_collect_cim_la()
908 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_la()
911 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_la()
919 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_cim_ma_la() local
923 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cim_ma_la()
928 (u32 *)temp_buff.data, in cudbg_collect_cim_ma_la()
929 (u32 *)((char *)temp_buff.data + in cudbg_collect_cim_ma_la()
931 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_ma_la()
939 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_cim_qcfg() local
944 &temp_buff); in cudbg_collect_cim_qcfg()
948 cim_qcfg_data = (struct cudbg_cim_qcfg *)temp_buff.data; in cudbg_collect_cim_qcfg()
954 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_qcfg()
963 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_qcfg()
969 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_qcfg()
977 struct cudbg_buffer temp_buff = { 0 }; in cudbg_read_cim_ibq() local
983 rc = cudbg_get_buff(pdbg_init, dbg_buff, qsize, &temp_buff); in cudbg_read_cim_ibq()
989 (u32 *)temp_buff.data, qsize); in cudbg_read_cim_ibq()
997 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_cim_ibq()
1000 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_read_cim_ibq()
1061 struct cudbg_buffer temp_buff = { 0 }; in cudbg_read_cim_obq() local
1067 rc = cudbg_get_buff(pdbg_init, dbg_buff, qsize, &temp_buff); in cudbg_read_cim_obq()
1073 (u32 *)temp_buff.data, qsize); in cudbg_read_cim_obq()
1081 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_cim_obq()
1084 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_read_cim_obq()
1375 struct cudbg_buffer temp_buff = { 0 }; in cudbg_read_fw_mem() local
1411 rc = cudbg_get_buff(pdbg_init, dbg_buff, bytes, &temp_buff); in cudbg_read_fw_mem()
1424 bytes_read, bytes, temp_buff.data); in cudbg_read_fw_mem()
1428 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_fw_mem()
1435 rc = cudbg_write_and_release_buff(pdbg_init, &temp_buff, in cudbg_read_fw_mem()
1438 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_fw_mem()
1550 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_rss() local
1555 &temp_buff); in cudbg_collect_rss()
1559 rc = t4_read_rss(padap, (u16 *)temp_buff.data); in cudbg_collect_rss()
1562 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_rss()
1565 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_rss()
1573 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_rss_vf_config() local
1580 &temp_buff); in cudbg_collect_rss_vf_config()
1584 vfconf = (struct cudbg_rss_vf_conf *)temp_buff.data; in cudbg_collect_rss_vf_config()
1588 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_rss_vf_config()
1596 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_path_mtu() local
1600 &temp_buff); in cudbg_collect_path_mtu()
1604 t4_read_mtu_tbl(padap, (u16 *)temp_buff.data, NULL); in cudbg_collect_path_mtu()
1605 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_path_mtu()
1613 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_pm_stats() local
1618 &temp_buff); in cudbg_collect_pm_stats()
1622 pm_stats_buff = (struct cudbg_pm_stats *)temp_buff.data; in cudbg_collect_pm_stats()
1625 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pm_stats()
1633 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_hw_sched() local
1641 &temp_buff); in cudbg_collect_hw_sched()
1646 hw_sched_buff = (struct cudbg_hw_sched *)temp_buff.data; in cudbg_collect_hw_sched()
1653 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_hw_sched()
1661 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_tp_indirect() local
1677 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_tp_indirect()
1681 ch_tp_pio = (struct ireg_buf *)temp_buff.data; in cudbg_collect_tp_indirect()
1766 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tp_indirect()
1795 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_sge_indirect() local
1816 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_sge_indirect()
1820 ch_sge_dbg = (struct ireg_buf *)temp_buff.data; in cudbg_collect_sge_indirect()
1860 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_sge_indirect()
1868 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_ulprx_la() local
1873 &temp_buff); in cudbg_collect_ulprx_la()
1877 ulprx_la_buff = (struct cudbg_ulprx_la *)temp_buff.data; in cudbg_collect_ulprx_la()
1880 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_ulprx_la()
1888 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_tp_la() local
1893 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_tp_la()
1897 tp_la_buff = (struct cudbg_tp_la *)temp_buff.data; in cudbg_collect_tp_la()
1900 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tp_la()
1908 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_meminfo() local
1916 &temp_buff); in cudbg_collect_meminfo()
1920 ver_hdr = (struct cudbg_ver_hdr *)temp_buff.data; in cudbg_collect_meminfo()
1925 meminfo_buff = (struct cudbg_meminfo *)(temp_buff.data + in cudbg_collect_meminfo()
1930 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_meminfo()
1934 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_meminfo()
1943 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_cim_pif_la() local
1948 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cim_pif_la()
1952 cim_pif_la_buff = (struct cudbg_cim_pif_la *)temp_buff.data; in cudbg_collect_cim_pif_la()
1957 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_pif_la()
1965 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_clk_info() local
1974 &temp_buff); in cudbg_collect_clk_info()
1978 clk_info_buff = (struct cudbg_clk_info *)temp_buff.data; in cudbg_collect_clk_info()
2005 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_clk_info()
2013 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_pcie_indirect() local
2020 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_pcie_indirect()
2024 ch_pcie = (struct ireg_buf *)temp_buff.data; in cudbg_collect_pcie_indirect()
2061 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pcie_indirect()
2069 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_pm_indirect() local
2076 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_pm_indirect()
2080 ch_pm = (struct ireg_buf *)temp_buff.data; in cudbg_collect_pm_indirect()
2117 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pm_indirect()
2126 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_tid() local
2133 &temp_buff); in cudbg_collect_tid()
2137 tid1 = (struct cudbg_tid_info_region_rev1 *)temp_buff.data; in cudbg_collect_tid()
2161 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_tid()
2180 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_tid()
2209 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tid()
2217 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_pcie_config() local
2223 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_pcie_config()
2227 value = (u32 *)temp_buff.data; in cudbg_collect_pcie_config()
2235 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pcie_config()
2398 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_dump_context() local
2414 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_dump_context()
2428 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_dump_context()
2432 buff = (struct cudbg_ch_cntxt *)temp_buff.data; in cudbg_collect_dump_context()
2501 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_dump_context()
2666 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_mps_tcam() local
2673 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_mps_tcam()
2677 tcam = (struct cudbg_mps_tcam *)temp_buff.data; in cudbg_collect_mps_tcam()
2682 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_mps_tcam()
2692 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_mps_tcam()
2695 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_mps_tcam()
2703 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_vpd_data() local
2729 &temp_buff); in cudbg_collect_vpd_data()
2733 vpd_data = (struct cudbg_vpd_data *)temp_buff.data; in cudbg_collect_vpd_data()
2744 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_vpd_data()
2895 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_le_tcam() local
2906 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_le_tcam()
2910 memcpy(temp_buff.data, &tcam_region, sizeof(struct cudbg_tcam)); in cudbg_collect_le_tcam()
2912 tid_data = (struct cudbg_tid_data *)(temp_buff.data + bytes); in cudbg_collect_le_tcam()
2920 memcpy(temp_buff.data, &tcam_region, in cudbg_collect_le_tcam()
2942 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_le_tcam()
2950 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_cctrl() local
2955 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cctrl()
2959 t4_read_cong_tbl(padap, (void *)temp_buff.data); in cudbg_collect_cctrl()
2960 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cctrl()
2968 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_ma_indirect() local
2978 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_ma_indirect()
2982 ma_indr = (struct ireg_buf *)temp_buff.data; in cudbg_collect_ma_indirect()
3014 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_ma_indirect()
3022 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_ulptx_la() local
3031 &temp_buff); in cudbg_collect_ulptx_la()
3035 ver_hdr = (struct cudbg_ver_hdr *)temp_buff.data; in cudbg_collect_ulptx_la()
3040 ulptx_la_buff = (struct cudbg_ulptx_la *)(temp_buff.data + in cudbg_collect_ulptx_la()
3076 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_ulptx_la()
3084 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_up_cim_indirect() local
3101 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_up_cim_indirect()
3105 up_cim = (struct ireg_buf *)temp_buff.data; in cudbg_collect_up_cim_indirect()
3151 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_up_cim_indirect()
3157 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_up_cim_indirect()
3165 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_pbt_tables() local
3172 &temp_buff); in cudbg_collect_pbt_tables()
3176 pbt = (struct cudbg_pbt_tables *)temp_buff.data; in cudbg_collect_pbt_tables()
3184 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
3197 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
3209 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
3221 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
3225 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pbt_tables()
3234 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_mbox_log() local
3246 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_mbox_log()
3250 mboxlog = (struct cudbg_mbox_log *)temp_buff.data; in cudbg_collect_mbox_log()
3269 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_mbox_log()
3277 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_hma_indirect() local
3287 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_hma_indirect()
3291 hma_indr = (struct ireg_buf *)temp_buff.data; in cudbg_collect_hma_indirect()
3305 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_hma_indirect()
3368 struct cudbg_buffer temp_buff = { 0 }; in cudbg_collect_qdesc() local
3541 &temp_buff); in cudbg_collect_qdesc()
3547 memcpy(temp_buff.data, data + cur_off, chunk_size); in cudbg_collect_qdesc()
3550 rc = cudbg_write_and_release_buff(pdbg_init, &temp_buff, in cudbg_collect_qdesc()
3553 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_qdesc()
3580 struct cudbg_buffer temp_buff = {0}; in cudbg_collect_flash() local
3589 rc = cudbg_get_buff(pdbg_init, dbg_buff, n, &temp_buff); in cudbg_collect_flash()
3594 rc = t4_read_flash(padap, addr, n, (u32 *)temp_buff.data, 0); in cudbg_collect_flash()
3599 rc = cudbg_write_and_release_buff(pdbg_init, &temp_buff, in cudbg_collect_flash()