Lines Matching defs:textbuf

57 void ocs_mgmt_node_list(ocs_textbuf_t *textbuf, void *node);
58 void ocs_mgmt_node_get_all(ocs_textbuf_t *textbuf, void *node);
59 int ocs_mgmt_node_get(ocs_textbuf_t *textbuf, char *parent, char *name, void *node);
1510 * @param textbuf pointer to text buffer
1517 ocs_ddump_node(ocs_textbuf_t *textbuf, ocs_node_t *node)
1523 ocs_ddump_section(textbuf, "node", node->instance_index);
1524 ocs_ddump_value(textbuf, "display_name", "%s", node->display_name);
1525 ocs_ddump_value(textbuf, "current_state", "%s", node->current_state_name);
1526 ocs_ddump_value(textbuf, "prev_state", "%s", node->prev_state_name);
1527 ocs_ddump_value(textbuf, "current_evt", "%s", ocs_sm_event_name(node->current_evt));
1528 ocs_ddump_value(textbuf, "prev_evt", "%s", ocs_sm_event_name(node->prev_evt));
1530 ocs_ddump_value(textbuf, "indicator", "%#x", node->rnode.indicator);
1531 ocs_ddump_value(textbuf, "fc_id", "%#06x", node->rnode.fc_id);
1532 ocs_ddump_value(textbuf, "attached", "%d", node->rnode.attached);
1534 ocs_ddump_value(textbuf, "hold_frames", "%d", node->hold_frames);
1535 ocs_ddump_value(textbuf, "io_alloc_enabled", "%d", node->io_alloc_enabled);
1536 ocs_ddump_value(textbuf, "shutdown_reason", "%d", node->shutdown_reason);
1537 ocs_ddump_value(textbuf, "send_ls_acc", "%d", node->send_ls_acc);
1538 ocs_ddump_value(textbuf, "ls_acc_did", "%d", node->ls_acc_did);
1539 ocs_ddump_value(textbuf, "ls_acc_oxid", "%#04x", node->ls_acc_oxid);
1540 ocs_ddump_value(textbuf, "req_free", "%d", node->req_free);
1541 ocs_ddump_value(textbuf, "els_req_cnt", "%d", node->els_req_cnt);
1542 ocs_ddump_value(textbuf, "els_cmpl_cnt", "%d", node->els_cmpl_cnt);
1544 ocs_ddump_value(textbuf, "targ", "%d", node->targ);
1545 ocs_ddump_value(textbuf, "init", "%d", node->init);
1546 ocs_ddump_value(textbuf, "wwnn", "%s", node->wwnn);
1547 ocs_ddump_value(textbuf, "wwpn", "%s", node->wwpn);
1548 ocs_ddump_value(textbuf, "login_state", "%d", (node->sm.current_state == __ocs_d_device_ready) ? 1 : 0);
1549 ocs_ddump_value(textbuf, "chained_io_count", "%d", node->chained_io_count);
1550 ocs_ddump_value(textbuf, "abort_cnt", "%d", node->abort_cnt);
1552 ocs_display_sparams(NULL, "node_sparams", 1, textbuf, node->service_params+4);
1557 ocs_ddump_section(textbuf, "pending_frames", 0);
1566 ocs_ddump_value(textbuf, "frame", "%s", buf);
1568 ocs_ddump_endsection(textbuf, "pending_frames", 0);
1572 ocs_scsi_ini_ddump(textbuf, OCS_SCSI_DDUMP_NODE, node);
1573 ocs_scsi_tgt_ddump(textbuf, OCS_SCSI_DDUMP_NODE, node);
1576 ocs_ddump_section(textbuf, "active_ios", 0);
1578 ocs_ddump_io(textbuf, io);
1580 ocs_ddump_endsection(textbuf, "active_ios", 0);
1582 ocs_ddump_section(textbuf, "els_io_pend_list", 0);
1584 ocs_ddump_els(textbuf, els);
1586 ocs_ddump_endsection(textbuf, "els_io_pend_list", 0);
1588 ocs_ddump_section(textbuf, "els_io_active_list", 0);
1590 ocs_ddump_els(textbuf, els);
1592 ocs_ddump_endsection(textbuf, "els_io_active_list", 0);
1595 ocs_ddump_endsection(textbuf, "node", node->instance_index);
1702 ocs_mgmt_node_list(ocs_textbuf_t *textbuf, void *object)
1707 ocs_mgmt_start_section(textbuf, "node", node->instance_index);
1710 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "display_name");
1711 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "indicator");
1712 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "fc_id");
1713 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "attached");
1714 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "hold_frames");
1715 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "shutting_down");
1716 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "req_free");
1717 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "ox_id");
1718 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "ox_id_in_use");
1719 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "abort_cnt");
1720 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "targ");
1721 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "init");
1722 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "wwpn");
1723 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "wwnn");
1724 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "pend_frames");
1725 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "chained_io_count");
1728 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_EX, "resume");
1733 io->mgmt_functions->get_list_handler(textbuf, io);
1738 ocs_mgmt_end_section(textbuf, "node", node->instance_index);
1742 ocs_mgmt_node_get(ocs_textbuf_t *textbuf, char *parent, char *name, void *object)
1749 ocs_mgmt_start_section(textbuf, "node", node->instance_index);
1759 ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "display_name", node->display_name);
1762 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "indicator", "0x%x", node->rnode.indicator);
1765 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "fc_id", "0x%06x", node->rnode.fc_id);
1768 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "attached", node->rnode.attached);
1771 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "hold_frames", node->hold_frames);
1774 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "io_alloc_enabled", node->io_alloc_enabled);
1777 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "req_free", node->req_free);
1780 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "ls_acc_oxid", "0x%#04x", node->ls_acc_oxid);
1783 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "ls_acc_did", "0x%#04x", node->ls_acc_did);
1786 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "abort_cnt", "%d", node->abort_cnt);
1789 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "targ", node->targ);
1792 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "init", node->init);
1795 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwpn", "%s", node->wwpn);
1798 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwnn", "%s", node->wwnn);
1801 ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "current_state", node->current_state_name);
1804 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "login_state", "%d", (node->sm.current_state == __ocs_d_device_ready) ? 1 : 0);
1817 ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "pend_frames", buf);
1822 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "chained_io_count", "%d", node->chained_io_count);
1829 retval = io->mgmt_functions->get_handler(textbuf, qualifier, name, io);
1840 ocs_mgmt_end_section(textbuf, "node", node->instance_index);
1846 ocs_mgmt_node_get_all(ocs_textbuf_t *textbuf, void *object)
1852 ocs_mgmt_start_section(textbuf, "node", node->instance_index);
1854 ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "display_name", node->display_name);
1855 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "indicator", "0x%x", node->rnode.indicator);
1856 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "fc_id", "0x%06x", node->rnode.fc_id);
1857 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "attached", node->rnode.attached);
1858 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "hold_frames", node->hold_frames);
1859 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "io_alloc_enabled", node->io_alloc_enabled);
1860 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "req_free", node->req_free);
1861 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "ls_acc_oxid", "0x%#04x", node->ls_acc_oxid);
1862 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "ls_acc_did", "0x%#04x", node->ls_acc_did);
1863 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "abort_cnt", "%d", node->abort_cnt);
1864 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "targ", node->targ);
1865 ocs_mgmt_emit_boolean(textbuf, MGMT_MODE_RD, "init", node->init);
1866 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwpn", "%s", node->wwpn);
1867 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwnn", "%s", node->wwnn);
1878 ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "pend_frames", buf);
1882 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "chained_io_count", "%d", node->chained_io_count);
1883 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_EX, "resume");
1884 ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "current_state", node->current_state_name);
1885 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "login_state", "%d", (node->sm.current_state == __ocs_d_device_ready) ? 1 : 0);
1890 io->mgmt_functions->get_all_handler(textbuf,io);
1895 ocs_mgmt_end_section(textbuf, "node", node->instance_index);