Lines Matching defs:textbuf

48 void ocs_mgmt_sport_list(ocs_textbuf_t *textbuf, void *sport);
49 void ocs_mgmt_sport_get_all(ocs_textbuf_t *textbuf, void *sport);
50 int ocs_mgmt_sport_get(ocs_textbuf_t *textbuf, char *parent, char *name, void *sport);
1178 * @param textbuf Pointer to the text buffer.
1185 ocs_ddump_sport(ocs_textbuf_t *textbuf, ocs_sli_port_t *sport)
1191 ocs_ddump_section(textbuf, "sport", sport->instance_index);
1192 ocs_ddump_value(textbuf, "display_name", "%s", sport->display_name);
1194 ocs_ddump_value(textbuf, "is_vport", "%d", sport->is_vport);
1195 ocs_ddump_value(textbuf, "enable_ini", "%d", sport->enable_ini);
1196 ocs_ddump_value(textbuf, "enable_tgt", "%d", sport->enable_tgt);
1197 ocs_ddump_value(textbuf, "shutting_down", "%d", sport->shutting_down);
1198 ocs_ddump_value(textbuf, "topology", "%d", sport->topology);
1199 ocs_ddump_value(textbuf, "p2p_winner", "%d", sport->p2p_winner);
1200 ocs_ddump_value(textbuf, "p2p_port_id", "%06x", sport->p2p_port_id);
1201 ocs_ddump_value(textbuf, "p2p_remote_port_id", "%06x", sport->p2p_remote_port_id);
1202 ocs_ddump_value(textbuf, "wwpn", "%016llx", (unsigned long long)sport->wwpn);
1203 ocs_ddump_value(textbuf, "wwnn", "%016llx", (unsigned long long)sport->wwnn);
1206 ocs_ddump_value(textbuf, "indicator", "x%x", sport->indicator);
1207 ocs_ddump_value(textbuf, "fc_id", "x%06x", sport->fc_id);
1208 ocs_ddump_value(textbuf, "index", "%d", sport->index);
1210 ocs_display_sparams(NULL, "sport_sparams", 1, textbuf, sport->service_params+4);
1213 ocs_ddump_section(textbuf, "hlm", sport->instance_index);
1218 ocs_ddump_section(textbuf, "node_group_dir", node_group_dir->instance_index);
1220 ocs_ddump_value(textbuf, "node_group_list_count", "%d", node_group_dir->node_group_list_count);
1221 ocs_ddump_value(textbuf, "next_idx", "%d", node_group_dir->next_idx);
1223 ocs_ddump_section(textbuf, "node_group", remote_node_group->instance_index);
1224 ocs_ddump_value(textbuf, "indicator", "x%x", remote_node_group->indicator);
1225 ocs_ddump_value(textbuf, "index", "x%x", remote_node_group->index);
1226 ocs_ddump_value(textbuf, "instance_index", "x%x", remote_node_group->instance_index);
1227 ocs_ddump_endsection(textbuf, "node_group", 0);
1229 ocs_ddump_endsection(textbuf, "node_group_dir", 0);
1232 ocs_ddump_endsection(textbuf, "hlm", sport->instance_index);
1234 ocs_scsi_ini_ddump(textbuf, OCS_SCSI_DDUMP_SPORT, sport);
1235 ocs_scsi_tgt_ddump(textbuf, OCS_SCSI_DDUMP_SPORT, sport);
1244 retval = ocs_ddump_node(textbuf, node);
1251 ocs_ddump_endsection(textbuf, "sport", sport->index);
1258 ocs_mgmt_sport_list(ocs_textbuf_t *textbuf, void *object)
1263 ocs_mgmt_start_section(textbuf, "sport", sport->instance_index);
1265 /* Add my status values to textbuf */
1266 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "indicator");
1267 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "fc_id");
1268 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "index");
1269 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "display_name");
1270 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "is_vport");
1271 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "enable_ini");
1272 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "enable_tgt");
1273 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "p2p");
1274 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "p2p_winner");
1275 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "p2p_port_id");
1276 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "p2p_remote_port_id");
1277 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "wwpn");
1278 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "wwnn");
1285 node->mgmt_functions->get_list_handler(textbuf, node);
1292 ocs_mgmt_end_section(textbuf, "sport", sport->instance_index);
1296 ocs_mgmt_sport_get(ocs_textbuf_t *textbuf, char *parent, char *name, void *object)
1303 ocs_mgmt_start_section(textbuf, "sport", sport->instance_index);
1313 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "indicator", "0x%x", sport->indicator);
1316 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "fc_id", "0x%06x", sport->fc_id);
1319 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "index", "%d", sport->index);
1322 ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "display_name", sport->display_name);
1325 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "is_vport", sport->is_vport);
1328 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "enable_ini", sport->enable_ini);
1331 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "enable_tgt", sport->enable_tgt);
1334 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "p2p_winner", sport->p2p_winner);
1337 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "p2p_port_id", "0x%06x", sport->p2p_port_id);
1340 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "p2p_remote_port_id", "0x%06x", sport->p2p_remote_port_id);
1343 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwpn", "0x%016llx", (unsigned long long)sport->wwpn);
1346 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwnn", "0x%016llx", (unsigned long long)sport->wwnn);
1353 retval = node->mgmt_functions->get_handler(textbuf, qualifier, name, node);
1364 ocs_mgmt_end_section(textbuf, "sport", sport->instance_index);
1370 ocs_mgmt_sport_get_all(ocs_textbuf_t *textbuf, void *object)
1375 ocs_mgmt_start_section(textbuf, "sport", sport->instance_index);
1377 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "indicator", "0x%x", sport->indicator);
1378 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "fc_id", "0x%06x", sport->fc_id);
1379 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "index", "%d", sport->index);
1380 ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "display_name", sport->display_name);
1381 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "is_vport", sport->is_vport);
1382 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "enable_ini", sport->enable_ini);
1383 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "enable_tgt", sport->enable_tgt);
1384 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "p2p_winner", sport->p2p_winner);
1385 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "p2p_port_id", "0x%06x", sport->p2p_port_id);
1386 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "p2p_remote_port_id", "0x%06x", sport->p2p_remote_port_id);
1387 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwpn", "0x%016llx" , (unsigned long long)sport->wwpn);
1388 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwnn", "0x%016llx", (unsigned long long)sport->wwnn);
1393 node->mgmt_functions->get_all_handler(textbuf, node);
1398 ocs_mgmt_end_section(textbuf, "sport", sport->instance_index);