| /freebsd-14.2/sys/dev/ocs_fc/ |
| H A D | ocs_ddump.c | 66 ocs_ddump_section(textbuf, name, i); in ocs_ddump_sli4_queue() 170 ocs_ddump_section(textbuf, "sli4", 0); in ocs_ddump_sli() 456 ocs_ddump_sli(textbuf, &hw->sli); in ocs_ddump_hw() 488 ocs_ddump_hw_io(textbuf, io); in ocs_ddump_hw() 494 ocs_ddump_hw_io(textbuf, io); in ocs_ddump_hw() 501 ocs_ddump_hw_io(textbuf, io); in ocs_ddump_hw() 521 ocs_ddump_hw_io(textbuf, io); in ocs_ddump_hw() 545 hw_queue_ddump(textbuf, hw); in ocs_ddump_hw() 645 ocs_ddump_startfile(textbuf); in ocs_ddump() 696 ocs_ddump_io(textbuf, io); in ocs_ddump() [all …]
|
| H A D | ocs_io.c | 46 void ocs_mgmt_io_list(ocs_textbuf_t *textbuf, void *io); 47 void ocs_mgmt_io_get_all(ocs_textbuf_t *textbuf, void *io); 361 ocs_ddump_io(ocs_textbuf_t *textbuf, ocs_io_t *io) in ocs_ddump_io() argument 363 ocs_ddump_section(textbuf, "io", io->instance_index); in ocs_ddump_io() 376 ocs_ddump_value(textbuf, "tag", "0x%x", io->tag); in ocs_ddump_io() 397 ocs_ddump_value(textbuf, "hw_tag", "%s", "pending"); in ocs_ddump_io() 398 ocs_ddump_value(textbuf, "hw_xri", "%s", "pending"); in ocs_ddump_io() 399 ocs_ddump_value(textbuf, "hw_type", "%s", "pending"); in ocs_ddump_io() 402 ocs_scsi_ini_ddump(textbuf, OCS_SCSI_DDUMP_IO, io); in ocs_ddump_io() 403 ocs_scsi_tgt_ddump(textbuf, OCS_SCSI_DDUMP_IO, io); in ocs_ddump_io() [all …]
|
| H A D | ocs_mgmt.c | 221 ocs_mgmt_get_list(ocs_t *ocs, ocs_textbuf_t *textbuf) in ocs_mgmt_get_list() argument 227 ocs_mgmt_start_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get_list() 262 ocs_mgmt_end_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get_list() 300 ocs_mgmt_start_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get() 311 mgmt_table[i].get_handler(ocs, name, textbuf); in ocs_mgmt_get() 346 ocs_mgmt_end_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get() 528 ocs_mgmt_start_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get_all() 556 ocs_mgmt_end_unnumbered_section(textbuf, "ocs"); in ocs_mgmt_get_all() 2610 ocs_textbuf_printf(textbuf, "<%s>\n", name); in ocs_mgmt_start_unnumbered_section() 2629 ocs_textbuf_printf(textbuf, "</%s>\n", name); in ocs_mgmt_end_unnumbered_section() [all …]
|
| H A D | ocs_utils.c | 1686 ocs_memset(textbuf, 0, sizeof(*textbuf)); in ocs_textbuf_alloc() 1688 textbuf->ocs = ocs; in ocs_textbuf_alloc() 1698 textbuf->extendable = TRUE; in ocs_textbuf_alloc() 1712 if (textbuf->extendable) { in ocs_textbuf_segment_alloc() 1720 textbuf->total_allocation_length += textbuf->allocation_length; in ocs_textbuf_segment_alloc() 1723 if (textbuf->total_allocation_length >= textbuf->max_allocation_length) { in ocs_textbuf_segment_alloc() 1724 textbuf->extendable = 0; in ocs_textbuf_segment_alloc() 1771 ocs_memset(textbuf, 0, sizeof(*textbuf)); in ocs_textbuf_init() 1773 textbuf->ocs = ocs; in ocs_textbuf_init() 1800 ocs_memset(textbuf, 0, sizeof(*textbuf)); in ocs_textbuf_free() [all …]
|
| H A D | ocs_mgmt.h | 76 typedef void (*ocs_mgmt_get_list_handler)(ocs_textbuf_t *textbuf, void* object); 77 typedef void (*ocs_mgmt_get_all_handler)(ocs_textbuf_t *textbuf, void* object); 92 extern void ocs_mgmt_start_section(ocs_textbuf_t *textbuf, const char *name, int index); 93 extern void ocs_mgmt_start_unnumbered_section(ocs_textbuf_t *textbuf, const char *name); 94 extern void ocs_mgmt_end_section(ocs_textbuf_t *textbuf, const char *name, int index); 95 extern void ocs_mgmt_end_unnumbered_section(ocs_textbuf_t *textbuf, const char *name); 96 extern void ocs_mgmt_emit_property_name(ocs_textbuf_t *textbuf, int access, const char *name); 100 extern void ocs_mgmt_emit_boolean(ocs_textbuf_t *textbuf, int access, const char *name, const int v… 104 extern void ocs_mgmt_get_list(ocs_t *ocs, ocs_textbuf_t *textbuf); 105 extern void ocs_mgmt_get_all(ocs_t *ocs, ocs_textbuf_t *textbuf); [all …]
|
| H A D | ocs_node.c | 1535 ocs_ddump_value(textbuf, "targ", "%d", node->targ); in ocs_ddump_node() 1536 ocs_ddump_value(textbuf, "init", "%d", node->init); in ocs_ddump_node() 1537 ocs_ddump_value(textbuf, "wwnn", "%s", node->wwnn); in ocs_ddump_node() 1548 ocs_ddump_section(textbuf, "pending_frames", 0); in ocs_ddump_node() 1557 ocs_ddump_value(textbuf, "frame", "%s", buf); in ocs_ddump_node() 1567 ocs_ddump_section(textbuf, "active_ios", 0); in ocs_ddump_node() 1569 ocs_ddump_io(textbuf, io); in ocs_ddump_node() 1571 ocs_ddump_endsection(textbuf, "active_ios", 0); in ocs_ddump_node() 1575 ocs_ddump_els(textbuf, els); in ocs_ddump_node() 1581 ocs_ddump_els(textbuf, els); in ocs_ddump_node() [all …]
|
| H A D | ocs_sport.c | 45 void ocs_mgmt_sport_list(ocs_textbuf_t *textbuf, void *sport); 1202 ocs_ddump_value(textbuf, "fc_id", "x%06x", sport->fc_id); in ocs_ddump_sport() 1203 ocs_ddump_value(textbuf, "index", "%d", sport->index); in ocs_ddump_sport() 1208 ocs_ddump_section(textbuf, "hlm", sport->instance_index); in ocs_ddump_sport() 1222 ocs_ddump_endsection(textbuf, "node_group", 0); in ocs_ddump_sport() 1224 ocs_ddump_endsection(textbuf, "node_group_dir", 0); in ocs_ddump_sport() 1229 ocs_scsi_ini_ddump(textbuf, OCS_SCSI_DDUMP_SPORT, sport); in ocs_ddump_sport() 1239 retval = ocs_ddump_node(textbuf, node); in ocs_ddump_sport() 1246 ocs_ddump_endsection(textbuf, "sport", sport->index); in ocs_ddump_sport() 1252 ocs_mgmt_sport_list(ocs_textbuf_t *textbuf, void *object) in ocs_mgmt_sport_list() argument [all …]
|
| H A D | ocs_domain.c | 63 void ocs_mgmt_domain_list(ocs_textbuf_t *textbuf, void *domain); 1324 ocs_ddump_value(textbuf, "fcf", "%#x", domain->fcf); in ocs_ddump_domain() 1329 ocs_ddump_value(textbuf, "is_loop", "%d", domain->is_loop); 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() 1342 retval = ocs_ddump_sport(textbuf, sport); in ocs_ddump_domain() 1349 ocs_ddump_ns(textbuf, domain->ocs_ns); in ocs_ddump_domain() 1360 ocs_mgmt_domain_list(ocs_textbuf_t *textbuf, void *object) in ocs_mgmt_domain_list() argument 1368 ocs_mgmt_emit_property_name(textbuf, MGMT_MODE_RD, "fcf"); in ocs_mgmt_domain_list() 1490 sport->mgmt_functions->get_all_handler(textbuf, sport); in ocs_mgmt_domain_get_all() [all …]
|
| H A D | ocs_ddump.h | 43 extern int ocs_ddump(ocs_t *ocs, ocs_textbuf_t *textbuf, uint32_t flags, uint32_t qentries); 45 extern void ocs_ddump_startfile(ocs_textbuf_t *textbuf); 46 extern void ocs_ddump_endfile(ocs_textbuf_t *textbuf); 47 extern void ocs_ddump_section(ocs_textbuf_t *textbuf, const char *name, uint32_t instance); 48 extern void ocs_ddump_endsection(ocs_textbuf_t *textbuf, const char *name, uint32_t instance); 50 extern void ocs_ddump_value(ocs_textbuf_t *textbuf, const char *name, const char *fmt, ...); 51 extern void ocs_ddump_buffer(ocs_textbuf_t *textbuf, const char *name, uint32_t instance, void *buf… 53 extern int32_t ocs_get_saved_ddump(ocs_t *ocs, ocs_textbuf_t *textbuf); 56 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 | 101 extern uint32_t ocs_textbuf_initialized(ocs_textbuf_t *textbuf); 103 extern void ocs_textbuf_free(ocs_t *ocs, ocs_textbuf_t *textbuf); 104 extern void ocs_textbuf_putc(ocs_textbuf_t *textbuf, uint8_t c); 105 extern void ocs_textbuf_puts(ocs_textbuf_t *textbuf, char *s); 107 extern void ocs_textbuf_printf(ocs_textbuf_t *textbuf, const char *fmt, ...); 112 extern int32_t ocs_textbuf_remaining(ocs_textbuf_t *textbuf); 113 extern void ocs_textbuf_reset(ocs_textbuf_t *textbuf); 114 extern uint8_t *ocs_textbuf_get_buffer(ocs_textbuf_t *textbuf); 115 extern int32_t ocs_textbuf_get_length(ocs_textbuf_t *textbuf); 116 extern int32_t ocs_textbuf_get_written(ocs_textbuf_t *textbuf); [all …]
|
| H A D | ocs_ioctl.c | 401 ocs_textbuf_t textbuf; in ocs_ioctl() local 450 ocs_textbuf_reset(&textbuf); in ocs_ioctl() 461 ptbuf = &textbuf; in ocs_ioctl() 485 if (ptbuf == &textbuf) { in ocs_ioctl() 522 ocs_textbuf_t textbuf; in ocs_ioctl() local 541 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl() 548 ocs_textbuf_t textbuf; in ocs_ioctl() local 559 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 | 87 extern int ocs_ddump_domain(ocs_textbuf_t *textbuf, ocs_domain_t *domain);
|
| H A D | ocs_scsi.h | 381 extern void ocs_scsi_ini_ddump(ocs_textbuf_t *textbuf, ocs_scsi_ddump_type_e type, void *obj); 382 extern void ocs_scsi_tgt_ddump(ocs_textbuf_t *textbuf, ocs_scsi_ddump_type_e type, void *obj);
|
| H A D | ocs_io.h | 191 extern void ocs_ddump_io(ocs_textbuf_t *textbuf, ocs_io_t *io);
|
| H A D | ocs_sport.h | 97 extern int ocs_ddump_sport(ocs_textbuf_t *textbuf, ocs_sport_t *sport);
|
| H A D | ocs_els.c | 2628 ocs_ddump_els(ocs_textbuf_t *textbuf, ocs_io_t *els) in ocs_ddump_els() argument 2630 ocs_ddump_section(textbuf, "els", -1); in ocs_ddump_els() 2631 ocs_ddump_value(textbuf, "req_free", "%d", els->els_req_free); in ocs_ddump_els() 2632 ocs_ddump_value(textbuf, "evtdepth", "%d", els->els_evtdepth); in ocs_ddump_els() 2633 ocs_ddump_value(textbuf, "pend", "%d", els->els_pend); in ocs_ddump_els() 2634 ocs_ddump_value(textbuf, "active", "%d", els->els_active); in ocs_ddump_els() 2635 ocs_ddump_io(textbuf, els); in ocs_ddump_els() 2636 ocs_ddump_endsection(textbuf, "els", -1); in ocs_ddump_els()
|
| H A D | ocs_els.h | 85 extern void ocs_ddump_els(ocs_textbuf_t *textbuf, ocs_io_t *els);
|
| H A D | ocs_node.h | 215 extern int ocs_ddump_node(ocs_textbuf_t *textbuf, ocs_node_t *node);
|
| H A D | ocs_cam.c | 2785 ocs_scsi_ini_ddump(ocs_textbuf_t *textbuf, ocs_scsi_ddump_type_e type, void *obj) in ocs_scsi_ini_ddump() argument 2815 ocs_scsi_tgt_ddump(ocs_textbuf_t *textbuf, ocs_scsi_ddump_type_e type, void *obj) in ocs_scsi_tgt_ddump() argument 2857 ocs_ddump_value(textbuf, "cam_st", "%s", state_str); in ocs_scsi_tgt_ddump() 2859 ocs_ddump_value(textbuf, "cam_flags", "%#x", in ocs_scsi_tgt_ddump() 2861 ocs_ddump_value(textbuf, "cam_status", "%#x", in ocs_scsi_tgt_ddump()
|
| /freebsd-14.2/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 …]
|