| /freebsd-12.1/sys/dev/ocs_fc/ |
| H A D | ocs_ddump.c | 68 ocs_ddump_section(textbuf, name, i); in ocs_ddump_sli4_queue() 174 ocs_ddump_section(textbuf, "sli4", 0); in ocs_ddump_sli() 462 ocs_ddump_sli(textbuf, &hw->sli); in ocs_ddump_hw() 494 ocs_ddump_hw_io(textbuf, io); in ocs_ddump_hw() 500 ocs_ddump_hw_io(textbuf, io); in ocs_ddump_hw() 507 ocs_ddump_hw_io(textbuf, io); in ocs_ddump_hw() 527 ocs_ddump_hw_io(textbuf, io); in ocs_ddump_hw() 551 hw_queue_ddump(textbuf, hw); in ocs_ddump_hw() 651 ocs_ddump_startfile(textbuf); in ocs_ddump() 702 ocs_ddump_io(textbuf, io); in ocs_ddump() [all …]
|
| H A D | ocs_io.c | 48 void ocs_mgmt_io_list(ocs_textbuf_t *textbuf, void *io); 49 void ocs_mgmt_io_get_all(ocs_textbuf_t *textbuf, void *io); 363 ocs_ddump_io(ocs_textbuf_t *textbuf, ocs_io_t *io) in ocs_ddump_io() argument 365 ocs_ddump_section(textbuf, "io", io->instance_index); in ocs_ddump_io() 378 ocs_ddump_value(textbuf, "tag", "0x%x", io->tag); in ocs_ddump_io() 399 ocs_ddump_value(textbuf, "hw_tag", "%s", "pending"); in ocs_ddump_io() 400 ocs_ddump_value(textbuf, "hw_xri", "%s", "pending"); in ocs_ddump_io() 401 ocs_ddump_value(textbuf, "hw_type", "%s", "pending"); in ocs_ddump_io() 404 ocs_scsi_ini_ddump(textbuf, OCS_SCSI_DDUMP_IO, io); in ocs_ddump_io() 405 ocs_scsi_tgt_ddump(textbuf, OCS_SCSI_DDUMP_IO, io); in ocs_ddump_io() [all …]
|
| H A D | ocs_mgmt.c | 234 ocs_mgmt_get_list(ocs_t *ocs, ocs_textbuf_t *textbuf) in ocs_mgmt_get_list() argument 240 ocs_mgmt_start_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get_list() 276 ocs_mgmt_end_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get_list() 315 ocs_mgmt_start_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get() 327 mgmt_table[i].get_handler(ocs, name, textbuf); in ocs_mgmt_get() 365 ocs_mgmt_end_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get() 543 ocs_mgmt_start_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get_all() 571 ocs_mgmt_end_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get_all() 2770 ocs_textbuf_printf(textbuf, "<%s>\n", name); in ocs_mgmt_start_unnumbered_section() 2789 ocs_textbuf_printf(textbuf, "</%s>\n", name); in ocs_mgmt_end_unnumbered_section() [all …]
|
| H A D | ocs_utils.c | 1696 ocs_memset(textbuf, 0, sizeof(*textbuf)); in ocs_textbuf_alloc() 1698 textbuf->ocs = ocs; in ocs_textbuf_alloc() 1708 textbuf->extendable = TRUE; in ocs_textbuf_alloc() 1722 if (textbuf->extendable) { in ocs_textbuf_segment_alloc() 1730 textbuf->total_allocation_length += textbuf->allocation_length; in ocs_textbuf_segment_alloc() 1733 if (textbuf->total_allocation_length >= textbuf->max_allocation_length) { in ocs_textbuf_segment_alloc() 1734 textbuf->extendable = 0; in ocs_textbuf_segment_alloc() 1781 ocs_memset(textbuf, 0, sizeof(*textbuf)); in ocs_textbuf_init() 1783 textbuf->ocs = ocs; in ocs_textbuf_init() 1810 ocs_memset(textbuf, 0, sizeof(*textbuf)); in ocs_textbuf_free() [all …]
|
| H A D | ocs_node.c | 1544 ocs_ddump_value(textbuf, "targ", "%d", node->targ); in ocs_ddump_node() 1545 ocs_ddump_value(textbuf, "init", "%d", node->init); in ocs_ddump_node() 1546 ocs_ddump_value(textbuf, "wwnn", "%s", node->wwnn); in ocs_ddump_node() 1557 ocs_ddump_section(textbuf, "pending_frames", 0); in ocs_ddump_node() 1566 ocs_ddump_value(textbuf, "frame", "%s", buf); in ocs_ddump_node() 1576 ocs_ddump_section(textbuf, "active_ios", 0); in ocs_ddump_node() 1578 ocs_ddump_io(textbuf, io); in ocs_ddump_node() 1580 ocs_ddump_endsection(textbuf, "active_ios", 0); in ocs_ddump_node() 1584 ocs_ddump_els(textbuf, els); in ocs_ddump_node() 1590 ocs_ddump_els(textbuf, els); in ocs_ddump_node() [all …]
|
| H A D | ocs_sport.c | 48 void ocs_mgmt_sport_list(ocs_textbuf_t *textbuf, void *sport); 1207 ocs_ddump_value(textbuf, "fc_id", "x%06x", sport->fc_id); in ocs_ddump_sport() 1208 ocs_ddump_value(textbuf, "index", "%d", sport->index); in ocs_ddump_sport() 1213 ocs_ddump_section(textbuf, "hlm", sport->instance_index); in ocs_ddump_sport() 1227 ocs_ddump_endsection(textbuf, "node_group", 0); in ocs_ddump_sport() 1229 ocs_ddump_endsection(textbuf, "node_group_dir", 0); in ocs_ddump_sport() 1234 ocs_scsi_ini_ddump(textbuf, OCS_SCSI_DDUMP_SPORT, sport); in ocs_ddump_sport() 1244 retval = ocs_ddump_node(textbuf, node); in ocs_ddump_sport() 1251 ocs_ddump_endsection(textbuf, "sport", sport->index); in ocs_ddump_sport() 1258 ocs_mgmt_sport_list(ocs_textbuf_t *textbuf, void *object) in ocs_mgmt_sport_list() argument [all …]
|
| H A D | ocs_mgmt.h | 80 typedef void (*ocs_mgmt_get_list_handler)(ocs_textbuf_t *textbuf, void* object); 81 typedef void (*ocs_mgmt_get_all_handler)(ocs_textbuf_t *textbuf, void* object); 97 extern void ocs_mgmt_start_section(ocs_textbuf_t *textbuf, const char *name, int index); 98 extern void ocs_mgmt_start_unnumbered_section(ocs_textbuf_t *textbuf, const char *name); 99 extern void ocs_mgmt_end_section(ocs_textbuf_t *textbuf, const char *name, int index); 100 extern void ocs_mgmt_end_unnumbered_section(ocs_textbuf_t *textbuf, const char *name); 101 extern void ocs_mgmt_emit_property_name(ocs_textbuf_t *textbuf, int access, const char *name); 105 extern void ocs_mgmt_emit_boolean(ocs_textbuf_t *textbuf, int access, const char *name, const int v… 109 extern void ocs_mgmt_get_list(ocs_t *ocs, ocs_textbuf_t *textbuf); 110 extern void ocs_mgmt_get_all(ocs_t *ocs, ocs_textbuf_t *textbuf); [all …]
|
| H A D | ocs_domain.c | 65 void ocs_mgmt_domain_list(ocs_textbuf_t *textbuf, void *domain); 1335 ocs_ddump_value(textbuf, "fcf", "%#x", domain->fcf); in ocs_ddump_domain() 1340 ocs_ddump_value(textbuf, "is_loop", "%d", domain->is_loop); in ocs_ddump_domain() 1343 ocs_scsi_ini_ddump(textbuf, OCS_SCSI_DDUMP_DOMAIN, domain); in ocs_ddump_domain() 1344 ocs_scsi_tgt_ddump(textbuf, OCS_SCSI_DDUMP_DOMAIN, domain); in ocs_ddump_domain() 1353 retval = ocs_ddump_sport(textbuf, sport); in ocs_ddump_domain() 1360 ocs_ddump_ns(textbuf, domain->ocs_ns); in ocs_ddump_domain() 1372 ocs_mgmt_domain_list(ocs_textbuf_t *textbuf, void *object) in ocs_mgmt_domain_list() argument 1380 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "fcf"); in ocs_mgmt_domain_list() 1505 sport->mgmt_functions->get_all_handler(textbuf, sport); in ocs_mgmt_domain_get_all() [all …]
|
| H A D | ocs_ddump.h | 45 extern int ocs_ddump(ocs_t *ocs, ocs_textbuf_t *textbuf, uint32_t flags, uint32_t qentries); 47 extern void ocs_ddump_startfile(ocs_textbuf_t *textbuf); 48 extern void ocs_ddump_endfile(ocs_textbuf_t *textbuf); 49 extern void ocs_ddump_section(ocs_textbuf_t *textbuf, const char *name, uint32_t instance); 50 extern void ocs_ddump_endsection(ocs_textbuf_t *textbuf, const char *name, uint32_t instance); 52 extern void ocs_ddump_value(ocs_textbuf_t *textbuf, const char *name, const char *fmt, ...); 53 extern void ocs_ddump_buffer(ocs_textbuf_t *textbuf, const char *name, uint32_t instance, void *buf… 55 extern int32_t ocs_get_saved_ddump(ocs_t *ocs, ocs_textbuf_t *textbuf); 58 extern void ocs_ddump_queue_entries(ocs_textbuf_t *textbuf, void *q_addr, uint32_t size, uint32_t l…
|
| H A D | ocs_utils.h | 105 extern uint32_t ocs_textbuf_initialized(ocs_textbuf_t *textbuf); 107 extern void ocs_textbuf_free(ocs_t *ocs, ocs_textbuf_t *textbuf); 108 extern void ocs_textbuf_putc(ocs_textbuf_t *textbuf, uint8_t c); 109 extern void ocs_textbuf_puts(ocs_textbuf_t *textbuf, char *s); 111 extern void ocs_textbuf_printf(ocs_textbuf_t *textbuf, const char *fmt, ...); 116 extern int32_t ocs_textbuf_remaining(ocs_textbuf_t *textbuf); 117 extern void ocs_textbuf_reset(ocs_textbuf_t *textbuf); 118 extern uint8_t *ocs_textbuf_get_buffer(ocs_textbuf_t *textbuf); 119 extern int32_t ocs_textbuf_get_length(ocs_textbuf_t *textbuf); 120 extern int32_t ocs_textbuf_get_written(ocs_textbuf_t *textbuf); [all …]
|
| H A D | ocs_ioctl.c | 398 ocs_textbuf_t textbuf; in ocs_ioctl() local 447 ocs_textbuf_reset(&textbuf); in ocs_ioctl() 458 ptbuf = &textbuf; in ocs_ioctl() 483 if (ptbuf == &textbuf) { in ocs_ioctl() 520 ocs_textbuf_t textbuf; in ocs_ioctl() local 539 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl() 547 ocs_textbuf_t textbuf; in ocs_ioctl() local 558 ocs_mgmt_get_all(ocs, &textbuf); in ocs_ioctl() 571 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl() 578 ocs_textbuf_t textbuf; in ocs_ioctl() local [all …]
|
| H A D | ocs_domain.h | 89 extern int ocs_ddump_domain(ocs_textbuf_t *textbuf, ocs_domain_t *domain);
|
| H A D | ocs_scsi.h | 385 extern void ocs_scsi_ini_ddump(ocs_textbuf_t *textbuf, ocs_scsi_ddump_type_e type, void *obj); 386 extern void ocs_scsi_tgt_ddump(ocs_textbuf_t *textbuf, ocs_scsi_ddump_type_e type, void *obj);
|
| H A D | ocs_sport.h | 99 extern int ocs_ddump_sport(ocs_textbuf_t *textbuf, ocs_sport_t *sport);
|
| H A D | ocs_io.h | 194 extern void ocs_ddump_io(ocs_textbuf_t *textbuf, ocs_io_t *io);
|
| H A D | ocs_els.c | 2642 ocs_ddump_els(ocs_textbuf_t *textbuf, ocs_io_t *els) in ocs_ddump_els() argument 2644 ocs_ddump_section(textbuf, "els", -1); in ocs_ddump_els() 2645 ocs_ddump_value(textbuf, "req_free", "%d", els->els_req_free); in ocs_ddump_els() 2646 ocs_ddump_value(textbuf, "evtdepth", "%d", els->els_evtdepth); in ocs_ddump_els() 2647 ocs_ddump_value(textbuf, "pend", "%d", els->els_pend); in ocs_ddump_els() 2648 ocs_ddump_value(textbuf, "active", "%d", els->els_active); in ocs_ddump_els() 2649 ocs_ddump_io(textbuf, els); in ocs_ddump_els() 2650 ocs_ddump_endsection(textbuf, "els", -1); in ocs_ddump_els()
|
| H A D | ocs_node.h | 219 extern int ocs_ddump_node(ocs_textbuf_t *textbuf, ocs_node_t *node);
|
| H A D | ocs_els.h | 87 extern void ocs_ddump_els(ocs_textbuf_t *textbuf, ocs_io_t *els);
|
| H A D | ocs_cam.c | 2685 ocs_scsi_ini_ddump(ocs_textbuf_t *textbuf, ocs_scsi_ddump_type_e type, void *obj) in ocs_scsi_ini_ddump() argument 2715 ocs_scsi_tgt_ddump(ocs_textbuf_t *textbuf, ocs_scsi_ddump_type_e type, void *obj) in ocs_scsi_tgt_ddump() argument 2757 ocs_ddump_value(textbuf, "cam_st", "%s", state_str); in ocs_scsi_tgt_ddump() 2759 ocs_ddump_value(textbuf, "cam_flags", "%#x", in ocs_scsi_tgt_ddump() 2761 ocs_ddump_value(textbuf, "cam_status", "%#x", in ocs_scsi_tgt_ddump()
|
| /freebsd-12.1/crypto/openssh/ |
| H A D | audit-bsm.c | 332 char textbuf[BSM_TEXTBUFSZ]; in bsm_audit_bad_login() local 335 (void) snprintf(textbuf, sizeof (textbuf), in bsm_audit_bad_login() 338 bsm_audit_record(4, textbuf, AUE_openssh); in bsm_audit_bad_login() 340 (void) snprintf(textbuf, sizeof (textbuf), in bsm_audit_bad_login() 343 bsm_audit_record(3, textbuf, AUE_openssh); in bsm_audit_bad_login() 396 char textbuf[BSM_TEXTBUFSZ]; in audit_event() local 407 snprintf(textbuf, sizeof(textbuf), in audit_event() 409 bsm_audit_record(0, textbuf, AUE_openssh); in audit_event() 418 snprintf(textbuf, sizeof(textbuf), in audit_event() 420 bsm_audit_record(0, textbuf, AUE_logout); in audit_event() [all …]
|