Lines Matching refs:dbg

133 	struct hinic_debug_priv *dbg;  in hinic_dbg_cmd_read()  local
140 dbg = container_of(desc, struct hinic_debug_priv, field_id[*desc]); in hinic_dbg_cmd_read()
142 switch (dbg->type) { in hinic_dbg_cmd_read()
144 out = hinic_dbg_get_sq_info(dbg->dev, dbg->object, *desc); in hinic_dbg_cmd_read()
148 out = hinic_dbg_get_rq_info(dbg->dev, dbg->object, *desc); in hinic_dbg_cmd_read()
152 out = hinic_dbg_get_func_table(dbg->dev, *desc); in hinic_dbg_cmd_read()
156 netif_warn(dbg->dev, drv, dbg->dev->netdev, "Invalid hinic debug cmd: %d\n", in hinic_dbg_cmd_read()
157 dbg->type); in hinic_dbg_cmd_read()
173 struct dentry *root, struct hinic_debug_priv **dbg, char **field, in create_dbg_files() argument
193 *dbg = tmp; in create_dbg_files()
198 static void rem_dbg_files(struct hinic_debug_priv *dbg) in rem_dbg_files() argument
200 if (dbg->type != HINIC_DBG_FUNC_TABLE) in rem_dbg_files()
201 debugfs_remove_recursive(dbg->root); in rem_dbg_files()
203 kfree(dbg); in rem_dbg_files()
218 return create_dbg_files(dev, HINIC_DBG_SQ_INFO, sq, root, &sq->dbg, sq_fields, in hinic_sq_debug_add()
224 if (sq->dbg) in hinic_sq_debug_rem()
225 rem_dbg_files(sq->dbg); in hinic_sq_debug_rem()
240 return create_dbg_files(dev, HINIC_DBG_RQ_INFO, rq, root, &rq->dbg, rq_fields, in hinic_rq_debug_add()
246 if (rq->dbg) in hinic_rq_debug_rem()
247 rem_dbg_files(rq->dbg); in hinic_rq_debug_rem()
255 return create_dbg_files(dev, HINIC_DBG_FUNC_TABLE, dev, dev->func_tbl_dbgfs, &dev->dbg, in hinic_func_table_debug_add()
261 if (!HINIC_IS_VF(dev->hwdev->hwif) && dev->dbg) in hinic_func_table_debug_rem()
262 rem_dbg_files(dev->dbg); in hinic_func_table_debug_rem()