Lines Matching refs:textbuf
63 void ocs_mgmt_domain_list(ocs_textbuf_t *textbuf, void *domain);
64 void ocs_mgmt_domain_get_all(ocs_textbuf_t *textbuf, void *domain);
65 int ocs_mgmt_domain_get(ocs_textbuf_t *textbuf, char *parent, char *name, void *domain);
1316 ocs_ddump_domain(ocs_textbuf_t *textbuf, ocs_domain_t *domain) in ocs_ddump_domain() argument
1321 ocs_ddump_section(textbuf, "domain", domain->instance_index); in ocs_ddump_domain()
1322 ocs_ddump_value(textbuf, "display_name", "%s", domain->display_name); in ocs_ddump_domain()
1324 ocs_ddump_value(textbuf, "fcf", "%#x", domain->fcf); in ocs_ddump_domain()
1325 ocs_ddump_value(textbuf, "fcf_indicator", "%#x", domain->fcf_indicator); in ocs_ddump_domain()
1326 ocs_ddump_value(textbuf, "vlan_id", "%#x", domain->vlan_id); in ocs_ddump_domain()
1327 ocs_ddump_value(textbuf, "indicator", "%#x", domain->indicator); in ocs_ddump_domain()
1328 ocs_ddump_value(textbuf, "attached", "%d", domain->attached); in ocs_ddump_domain()
1329 ocs_ddump_value(textbuf, "is_loop", "%d", domain->is_loop); in ocs_ddump_domain()
1330 ocs_ddump_value(textbuf, "is_nlport", "%d", domain->is_nlport); in ocs_ddump_domain()
1332 ocs_scsi_ini_ddump(textbuf, OCS_SCSI_DDUMP_DOMAIN, domain); in ocs_ddump_domain()
1333 ocs_scsi_tgt_ddump(textbuf, OCS_SCSI_DDUMP_DOMAIN, domain); in ocs_ddump_domain()
1335 ocs_display_sparams(NULL, "domain_sparms", 1, textbuf, domain->dma.virt); in ocs_ddump_domain()
1342 retval = ocs_ddump_sport(textbuf, sport); in ocs_ddump_domain()
1349 ocs_ddump_ns(textbuf, domain->ocs_ns); in ocs_ddump_domain()
1354 ocs_ddump_endsection(textbuf, "domain", domain->instance_index); in ocs_ddump_domain()
1360 ocs_mgmt_domain_list(ocs_textbuf_t *textbuf, void *object) in ocs_mgmt_domain_list() argument
1365 ocs_mgmt_start_section(textbuf, "domain", domain->instance_index); in ocs_mgmt_domain_list()
1368 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "fcf"); in ocs_mgmt_domain_list()
1369 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "fcf_indicator"); in ocs_mgmt_domain_list()
1370 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "vlan_id"); in ocs_mgmt_domain_list()
1371 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "indicator"); in ocs_mgmt_domain_list()
1372 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "attached"); in ocs_mgmt_domain_list()
1373 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "is_loop"); in ocs_mgmt_domain_list()
1374 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "display_name"); in ocs_mgmt_domain_list()
1375 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "num_sports"); in ocs_mgmt_domain_list()
1377 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RW, "femul_enable"); in ocs_mgmt_domain_list()
1384 sport->mgmt_functions->get_list_handler(textbuf, sport); in ocs_mgmt_domain_list()
1390 ocs_mgmt_end_section(textbuf, "domain", domain->instance_index); in ocs_mgmt_domain_list()
1394 ocs_mgmt_domain_get(ocs_textbuf_t *textbuf, char *parent, char *name, void *object) in ocs_mgmt_domain_get() argument
1401 ocs_mgmt_start_section(textbuf, "domain", domain->instance_index); in ocs_mgmt_domain_get()
1411 ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "display_name", domain->display_name); in ocs_mgmt_domain_get()
1414 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "fcf", "%#x", domain->fcf); in ocs_mgmt_domain_get()
1417 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "fcf_indicator", "%#x", domain->fcf_indicator); in ocs_mgmt_domain_get()
1420 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "vlan_id", "%#x", domain->vlan_id); in ocs_mgmt_domain_get()
1423 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "indicator", "%#x", domain->indicator); in ocs_mgmt_domain_get()
1426 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "attached", domain->attached); in ocs_mgmt_domain_get()
1429 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "is_loop", domain->is_loop); in ocs_mgmt_domain_get()
1432 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "is_nlport", domain->is_nlport); in ocs_mgmt_domain_get()
1435 ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "display_name", domain->display_name); in ocs_mgmt_domain_get()
1439 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RW, "femul_enable", "%d", domain->femul_enable); in ocs_mgmt_domain_get()
1443 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "num_sports", "%d", domain->sport_instance_count); in ocs_mgmt_domain_get()
1451 retval = sport->mgmt_functions->get_handler(textbuf, qualifier, name, sport); in ocs_mgmt_domain_get()
1462 ocs_mgmt_end_section(textbuf, "domain", domain->instance_index); in ocs_mgmt_domain_get()
1467 ocs_mgmt_domain_get_all(ocs_textbuf_t *textbuf, void *object) in ocs_mgmt_domain_get_all() argument
1472 ocs_mgmt_start_section(textbuf, "domain", domain->instance_index); in ocs_mgmt_domain_get_all()
1474 ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "display_name", domain->display_name); in ocs_mgmt_domain_get_all()
1475 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "fcf", "%#x", domain->fcf); in ocs_mgmt_domain_get_all()
1476 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "fcf_indicator", "%#x", domain->fcf_indicator); in ocs_mgmt_domain_get_all()
1477 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "vlan_id", "%#x", domain->vlan_id); in ocs_mgmt_domain_get_all()
1478 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "indicator", "%#x", domain->indicator); in ocs_mgmt_domain_get_all()
1479 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "attached", domain->attached); in ocs_mgmt_domain_get_all()
1480 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "is_loop", domain->is_loop); in ocs_mgmt_domain_get_all()
1481 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "is_nlport", domain->is_nlport); in ocs_mgmt_domain_get_all()
1483 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RW, "femul_enable", "%d", domain->femul_enable); in ocs_mgmt_domain_get_all()
1485 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "num_sports", "%d", domain->sport_instance_count); in ocs_mgmt_domain_get_all()
1490 sport->mgmt_functions->get_all_handler(textbuf, sport); in ocs_mgmt_domain_get_all()
1495 ocs_mgmt_end_unnumbered_section(textbuf, "domain"); in ocs_mgmt_domain_get_all()