| /freebsd-13.1/sys/dev/ocs_fc/ |
| H A D | ocs_ddump.c | 68 ocs_ddump_section(textbuf, name, i); in ocs_ddump_sli4_queue() 172 ocs_ddump_section(textbuf, "sli4", 0); in ocs_ddump_sli() 458 ocs_ddump_sli(textbuf, &hw->sli); in ocs_ddump_hw() 490 ocs_ddump_hw_io(textbuf, io); in ocs_ddump_hw() 496 ocs_ddump_hw_io(textbuf, io); in ocs_ddump_hw() 503 ocs_ddump_hw_io(textbuf, io); in ocs_ddump_hw() 523 ocs_ddump_hw_io(textbuf, io); in ocs_ddump_hw() 547 hw_queue_ddump(textbuf, hw); in ocs_ddump_hw() 647 ocs_ddump_startfile(textbuf); in ocs_ddump() 698 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 | 223 ocs_mgmt_get_list(ocs_t *ocs, ocs_textbuf_t *textbuf) in ocs_mgmt_get_list() argument 229 ocs_mgmt_start_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get_list() 264 ocs_mgmt_end_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get_list() 302 ocs_mgmt_start_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get() 313 mgmt_table[i].get_handler(ocs, name, textbuf); in ocs_mgmt_get() 348 ocs_mgmt_end_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get() 530 ocs_mgmt_start_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get_all() 558 ocs_mgmt_end_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get_all() 2612 ocs_textbuf_printf(textbuf, "<%s>\n", name); in ocs_mgmt_start_unnumbered_section() 2631 ocs_textbuf_printf(textbuf, "</%s>\n", name); in ocs_mgmt_end_unnumbered_section() [all …]
|
| H A D | ocs_utils.c | 1688 ocs_memset(textbuf, 0, sizeof(*textbuf)); in ocs_textbuf_alloc() 1690 textbuf->ocs = ocs; in ocs_textbuf_alloc() 1700 textbuf->extendable = TRUE; in ocs_textbuf_alloc() 1714 if (textbuf->extendable) { in ocs_textbuf_segment_alloc() 1722 textbuf->total_allocation_length += textbuf->allocation_length; in ocs_textbuf_segment_alloc() 1725 if (textbuf->total_allocation_length >= textbuf->max_allocation_length) { in ocs_textbuf_segment_alloc() 1726 textbuf->extendable = 0; in ocs_textbuf_segment_alloc() 1773 ocs_memset(textbuf, 0, sizeof(*textbuf)); in ocs_textbuf_init() 1775 textbuf->ocs = ocs; in ocs_textbuf_init() 1802 ocs_memset(textbuf, 0, sizeof(*textbuf)); in ocs_textbuf_free() [all …]
|
| H A D | ocs_mgmt.h | 78 typedef void (*ocs_mgmt_get_list_handler)(ocs_textbuf_t *textbuf, void* object); 79 typedef void (*ocs_mgmt_get_all_handler)(ocs_textbuf_t *textbuf, void* object); 94 extern void ocs_mgmt_start_section(ocs_textbuf_t *textbuf, const char *name, int index); 95 extern void ocs_mgmt_start_unnumbered_section(ocs_textbuf_t *textbuf, const char *name); 96 extern void ocs_mgmt_end_section(ocs_textbuf_t *textbuf, const char *name, int index); 97 extern void ocs_mgmt_end_unnumbered_section(ocs_textbuf_t *textbuf, const char *name); 98 extern void ocs_mgmt_emit_property_name(ocs_textbuf_t *textbuf, int access, const char *name); 102 extern void ocs_mgmt_emit_boolean(ocs_textbuf_t *textbuf, int access, const char *name, const int v… 106 extern void ocs_mgmt_get_list(ocs_t *ocs, ocs_textbuf_t *textbuf); 107 extern void ocs_mgmt_get_all(ocs_t *ocs, ocs_textbuf_t *textbuf); [all …]
|
| H A D | ocs_node.c | 1537 ocs_ddump_value(textbuf, "targ", "%d", node->targ); in ocs_ddump_node() 1538 ocs_ddump_value(textbuf, "init", "%d", node->init); in ocs_ddump_node() 1539 ocs_ddump_value(textbuf, "wwnn", "%s", node->wwnn); in ocs_ddump_node() 1550 ocs_ddump_section(textbuf, "pending_frames", 0); in ocs_ddump_node() 1559 ocs_ddump_value(textbuf, "frame", "%s", buf); in ocs_ddump_node() 1569 ocs_ddump_section(textbuf, "active_ios", 0); in ocs_ddump_node() 1571 ocs_ddump_io(textbuf, io); in ocs_ddump_node() 1573 ocs_ddump_endsection(textbuf, "active_ios", 0); in ocs_ddump_node() 1577 ocs_ddump_els(textbuf, els); in ocs_ddump_node() 1583 ocs_ddump_els(textbuf, els); in ocs_ddump_node() [all …]
|
| H A D | ocs_sport.c | 47 void ocs_mgmt_sport_list(ocs_textbuf_t *textbuf, void *sport); 1204 ocs_ddump_value(textbuf, "fc_id", "x%06x", sport->fc_id); in ocs_ddump_sport() 1205 ocs_ddump_value(textbuf, "index", "%d", sport->index); in ocs_ddump_sport() 1210 ocs_ddump_section(textbuf, "hlm", sport->instance_index); in ocs_ddump_sport() 1224 ocs_ddump_endsection(textbuf, "node_group", 0); in ocs_ddump_sport() 1226 ocs_ddump_endsection(textbuf, "node_group_dir", 0); in ocs_ddump_sport() 1231 ocs_scsi_ini_ddump(textbuf, OCS_SCSI_DDUMP_SPORT, sport); in ocs_ddump_sport() 1241 retval = ocs_ddump_node(textbuf, node); in ocs_ddump_sport() 1248 ocs_ddump_endsection(textbuf, "sport", sport->index); in ocs_ddump_sport() 1254 ocs_mgmt_sport_list(ocs_textbuf_t *textbuf, void *object) in ocs_mgmt_sport_list() argument [all …]
|
| H A D | ocs_domain.c | 65 void ocs_mgmt_domain_list(ocs_textbuf_t *textbuf, void *domain); 1326 ocs_ddump_value(textbuf, "fcf", "%#x", domain->fcf); in ocs_ddump_domain() 1331 ocs_ddump_value(textbuf, "is_loop", "%d", domain->is_loop); in ocs_ddump_domain() 1334 ocs_scsi_ini_ddump(textbuf, OCS_SCSI_DDUMP_DOMAIN, domain); in ocs_ddump_domain() 1335 ocs_scsi_tgt_ddump(textbuf, OCS_SCSI_DDUMP_DOMAIN, domain); in ocs_ddump_domain() 1344 retval = ocs_ddump_sport(textbuf, sport); in ocs_ddump_domain() 1351 ocs_ddump_ns(textbuf, domain->ocs_ns); in ocs_ddump_domain() 1362 ocs_mgmt_domain_list(ocs_textbuf_t *textbuf, void *object) in ocs_mgmt_domain_list() argument 1370 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "fcf"); in ocs_mgmt_domain_list() 1492 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 | 103 extern uint32_t ocs_textbuf_initialized(ocs_textbuf_t *textbuf); 105 extern void ocs_textbuf_free(ocs_t *ocs, ocs_textbuf_t *textbuf); 106 extern void ocs_textbuf_putc(ocs_textbuf_t *textbuf, uint8_t c); 107 extern void ocs_textbuf_puts(ocs_textbuf_t *textbuf, char *s); 109 extern void ocs_textbuf_printf(ocs_textbuf_t *textbuf, const char *fmt, ...); 114 extern int32_t ocs_textbuf_remaining(ocs_textbuf_t *textbuf); 115 extern void ocs_textbuf_reset(ocs_textbuf_t *textbuf); 116 extern uint8_t *ocs_textbuf_get_buffer(ocs_textbuf_t *textbuf); 117 extern int32_t ocs_textbuf_get_length(ocs_textbuf_t *textbuf); 118 extern int32_t ocs_textbuf_get_written(ocs_textbuf_t *textbuf); [all …]
|
| H A D | ocs_ioctl.c | 387 ocs_textbuf_t textbuf; in ocs_ioctl() local 436 ocs_textbuf_reset(&textbuf); in ocs_ioctl() 447 ptbuf = &textbuf; in ocs_ioctl() 471 if (ptbuf == &textbuf) { in ocs_ioctl() 508 ocs_textbuf_t textbuf; in ocs_ioctl() local 527 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl() 534 ocs_textbuf_t textbuf; in ocs_ioctl() local 545 ocs_mgmt_get_all(ocs, &textbuf); in ocs_ioctl() 557 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl() 564 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 | 383 extern void ocs_scsi_ini_ddump(ocs_textbuf_t *textbuf, ocs_scsi_ddump_type_e type, void *obj); 384 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 | 193 extern void ocs_ddump_io(ocs_textbuf_t *textbuf, ocs_io_t *io);
|
| H A D | ocs_els.c | 2630 ocs_ddump_els(ocs_textbuf_t *textbuf, ocs_io_t *els) in ocs_ddump_els() argument 2632 ocs_ddump_section(textbuf, "els", -1); in ocs_ddump_els() 2633 ocs_ddump_value(textbuf, "req_free", "%d", els->els_req_free); in ocs_ddump_els() 2634 ocs_ddump_value(textbuf, "evtdepth", "%d", els->els_evtdepth); in ocs_ddump_els() 2635 ocs_ddump_value(textbuf, "pend", "%d", els->els_pend); in ocs_ddump_els() 2636 ocs_ddump_value(textbuf, "active", "%d", els->els_active); in ocs_ddump_els() 2637 ocs_ddump_io(textbuf, els); in ocs_ddump_els() 2638 ocs_ddump_endsection(textbuf, "els", -1); in ocs_ddump_els()
|
| H A D | ocs_node.h | 217 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 | 2713 ocs_scsi_ini_ddump(ocs_textbuf_t *textbuf, ocs_scsi_ddump_type_e type, void *obj) in ocs_scsi_ini_ddump() argument 2743 ocs_scsi_tgt_ddump(ocs_textbuf_t *textbuf, ocs_scsi_ddump_type_e type, void *obj) in ocs_scsi_tgt_ddump() argument 2785 ocs_ddump_value(textbuf, "cam_st", "%s", state_str); in ocs_scsi_tgt_ddump() 2787 ocs_ddump_value(textbuf, "cam_flags", "%#x", in ocs_scsi_tgt_ddump() 2789 ocs_ddump_value(textbuf, "cam_status", "%#x", in ocs_scsi_tgt_ddump()
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | audit-bsm.c | 333 char textbuf[BSM_TEXTBUFSZ]; in bsm_audit_bad_login() local 336 (void) snprintf(textbuf, sizeof (textbuf), in bsm_audit_bad_login() 339 bsm_audit_record(4, textbuf, AUE_openssh); in bsm_audit_bad_login() 341 (void) snprintf(textbuf, sizeof (textbuf), in bsm_audit_bad_login() 344 bsm_audit_record(3, textbuf, AUE_openssh); in bsm_audit_bad_login() 397 char textbuf[BSM_TEXTBUFSZ]; in audit_event() local 408 snprintf(textbuf, sizeof(textbuf), in audit_event() 410 bsm_audit_record(0, textbuf, AUE_openssh); in audit_event() 419 snprintf(textbuf, sizeof(textbuf), in audit_event() 421 bsm_audit_record(0, textbuf, AUE_logout); in audit_event() [all …]
|