/openbsd/lib/libutil/ |
H A D | imsg-buffer.c | 57 struct ibuf *buf; in ibuf_open() local 76 struct ibuf *buf; in ibuf_dynamic() local 381 ibuf_rewind(struct ibuf *buf) in ibuf_rewind() 517 ibuf_free(struct ibuf *buf) in ibuf_free() 531 ibuf_fd_avail(struct ibuf *buf) in ibuf_fd_avail() 537 ibuf_fd_get(struct ibuf *buf) in ibuf_fd_get() 581 char *buf; in msgbuf_new_reader() local 624 struct ibuf *buf; in msgbuf_clear() local 644 struct ibuf *buf; in msgbuf_get() local 655 struct ibuf *buf; in ibuf_write() local [all …]
|
/openbsd/usr.bin/ssh/ |
H A D | sshbuf-getput-basic.c | 31 sshbuf_get(struct sshbuf *buf, void *v, size_t len) in sshbuf_get() 44 sshbuf_get_u64(struct sshbuf *buf, u_int64_t *valp) in sshbuf_get_u64() 57 sshbuf_get_u32(struct sshbuf *buf, u_int32_t *valp) in sshbuf_get_u32() 70 sshbuf_get_u16(struct sshbuf *buf, u_int16_t *valp) in sshbuf_get_u16() 83 sshbuf_get_u8(struct sshbuf *buf, u_char *valp) in sshbuf_get_u8() 343 sshbuf_putf(struct sshbuf *buf, const char *fmt, ...) in sshbuf_putf() 388 sshbuf_put_u64(struct sshbuf *buf, u_int64_t val) in sshbuf_put_u64() 400 sshbuf_put_u32(struct sshbuf *buf, u_int32_t val) in sshbuf_put_u32() 412 sshbuf_put_u16(struct sshbuf *buf, u_int16_t val) in sshbuf_put_u16() 424 sshbuf_put_u8(struct sshbuf *buf, u_char val) in sshbuf_put_u8() [all …]
|
H A D | sshbuf.c | 53 sshbuf_check_sanity(const struct sshbuf *buf) in sshbuf_check_sanity() 143 sshbuf_fromb(struct sshbuf *buf) in sshbuf_fromb() 159 sshbuf_free(struct sshbuf *buf) in sshbuf_free() 194 sshbuf_reset(struct sshbuf *buf) in sshbuf_reset() 217 sshbuf_max_size(const struct sshbuf *buf) in sshbuf_max_size() 223 sshbuf_alloc(const struct sshbuf *buf) in sshbuf_alloc() 229 sshbuf_parent(const struct sshbuf *buf) in sshbuf_parent() 235 sshbuf_refcount(const struct sshbuf *buf) in sshbuf_refcount() 279 sshbuf_len(const struct sshbuf *buf) in sshbuf_len() 287 sshbuf_avail(const struct sshbuf *buf) in sshbuf_avail() [all …]
|
/openbsd/gnu/usr.bin/binutils-2.17/opcodes/ |
H A D | z80-dis.c | 56 fetch_data (struct buffer *buf, disassemble_info * info, int n) in fetch_data() 72 prt (struct buffer *buf, disassemble_info * info, char *txt) in prt() 80 prt_e (struct buffer *buf, disassemble_info * info, char *txt) in prt_e() 99 jr_cc (struct buffer *buf, disassemble_info * info, char *txt) in jr_cc() 108 prt_nn (struct buffer *buf, disassemble_info * info, char *txt) in prt_nn() 144 prt_n (struct buffer *buf, disassemble_info * info, char *txt) in prt_n() 173 prt_r (struct buffer *buf, disassemble_info * info, char *txt) in prt_r() 242 rst (struct buffer *buf, disassemble_info * info, char *txt) in rst() 311 pref_ed (struct buffer * buf, disassemble_info * info, in pref_ed() 337 pref_cb (struct buffer * buf, disassemble_info * info, in pref_cb() [all …]
|
/openbsd/sys/sys/ |
H A D | buf.h | 120 struct buf { struct 128 long b_bufsize; /* Allocated buffer size. */ argument 129 long b_bcount; /* Valid bytes in buffer. */ argument 132 dev_t b_dev; /* Device associated with buffer. */ argument 136 TAILQ_ENTRY(buf) b_valist; /* LRU of va to reuse. */ argument 138 union bufq_data b_bufq; argument 139 struct bufq *b_bq; /* What bufq this buf is on */ argument 149 void (*b_iodone)(struct buf *); argument 151 int b_dirtyoff; /* Offset in buffer of dirty region. */ argument 153 int b_validoff; /* Offset in buffer of valid region. */ argument [all …]
|
/openbsd/lib/libssl/ |
H A D | tls_buffer.c | 39 struct tls_buffer *buf = NULL; in tls_buffer_new() local 58 tls_buffer_clear(struct tls_buffer *buf) in tls_buffer_clear() 69 tls_buffer_free(struct tls_buffer *buf) in tls_buffer_free() 80 tls_buffer_grow(struct tls_buffer *buf, size_t capacity) in tls_buffer_grow() 89 tls_buffer_resize(struct tls_buffer *buf, size_t capacity) in tls_buffer_resize() 119 tls_buffer_set_capacity_limit(struct tls_buffer *buf, size_t limit) in tls_buffer_set_capacity_limit() 129 tls_buffer_extend(struct tls_buffer *buf, size_t len, in tls_buffer_extend() 159 tls_buffer_remaining(struct tls_buffer *buf) in tls_buffer_remaining() 168 tls_buffer_read(struct tls_buffer *buf, uint8_t *rbuf, size_t n) in tls_buffer_read() 187 tls_buffer_write(struct tls_buffer *buf, const uint8_t *wbuf, size_t n) in tls_buffer_write() [all …]
|
/openbsd/sys/dev/pci/drm/amd/pm/ |
H A D | amdgpu_pm.c | 326 char *buf) in amdgpu_get_pp_num_states() 364 char *buf) in amdgpu_get_pp_cur_state() 406 char *buf) in amdgpu_get_pp_force_state() 497 char *buf) in amdgpu_get_pp_table() 820 char *buf) in amdgpu_get_pp_od_clk_voltage() 984 char *buf) in amdgpu_get_pp_dpm_clock() 1088 char *buf) in amdgpu_get_pp_dpm_sclk() 1103 char *buf) in amdgpu_get_pp_dpm_mclk() 1118 char *buf) in amdgpu_get_pp_dpm_socclk() 1133 char *buf) in amdgpu_get_pp_dpm_fclk() [all …]
|
/openbsd/sys/arch/sh/sh/ |
H A D | db_disasm.c | 194 get_opcode(vaddr_t loc, char *buf, size_t bufsiz) in get_opcode() 209 f_02(vaddr_t loc, u_int insn, char *buf, size_t bufsiz) in f_02() 251 f_03(vaddr_t loc, u_int insn, char *buf, size_t bufsiz) in f_03() 281 f_04(vaddr_t loc, u_int insn, char *buf, size_t bufsiz) in f_04() 306 f_08(vaddr_t loc, u_int insn, char *buf, size_t bufsiz) in f_08() 348 f_09(vaddr_t loc, u_int insn, char *buf, size_t bufsiz) in f_09() 373 f_0a(vaddr_t loc, u_int insn, char *buf, size_t bufsiz) in f_0a() 409 f_0b(vaddr_t loc, u_int insn, char *buf, size_t bufsiz) in f_0b() 432 f_0c(vaddr_t loc, u_int insn, char *buf, size_t bufsiz) in f_0c() 457 f_10(vaddr_t loc, u_int insn, char *buf, size_t bufsiz) in f_10() [all …]
|
/openbsd/gnu/llvm/lldb/source/Plugins/Process/OpenBSD/ |
H A D | NativeRegisterContextOpenBSD.cpp | 29 void *buf = GetGPRBuffer(); in ReadGPR() local 37 void *buf = GetGPRBuffer(); in WriteGPR() local 45 void *buf = GetFPRBuffer(); in ReadFPR() local 53 void *buf = GetFPRBuffer(); in WriteFPR() local 60 Status NativeRegisterContextOpenBSD::DoReadGPR(void *buf) { in DoReadGPR() 69 Status NativeRegisterContextOpenBSD::DoWriteGPR(void *buf) { in DoWriteGPR() 78 Status NativeRegisterContextOpenBSD::DoReadFPR(void *buf) { in DoReadFPR() 87 Status NativeRegisterContextOpenBSD::DoWriteFPR(void *buf) { in DoWriteFPR()
|
/openbsd/sbin/isakmpd/ |
H A D | field.c | 63 field_debug_raw(u_int8_t *buf, size_t len, struct constant_map **maps) in field_debug_raw() 73 extract_val(u_int8_t *buf, size_t len, u_int32_t *val) in extract_val() 97 field_debug_num(u_int8_t *buf, size_t len, struct constant_map **maps) in field_debug_num() 154 field_debug_ign(u_int8_t *buf, size_t len, struct constant_map **maps) in field_debug_ign() 164 field_debug_cst(u_int8_t *buf, size_t len, struct constant_map **maps) in field_debug_cst() 176 field_dump_field(struct field *f, u_int8_t *buf) in field_dump_field() 189 field_dump_payload(struct field *fields, u_int8_t *buf) in field_dump_payload() 199 field_get_num(struct field *f, u_int8_t *buf) in field_get_num() 210 field_set_num(struct field *f, u_int8_t *buf, u_int32_t val) in field_set_num() 227 field_get_raw(struct field *f, u_int8_t *buf, u_int8_t *val) in field_get_raw() [all …]
|
/openbsd/sys/dev/pci/drm/i915/gt/ |
H A D | sysfs_engines.c | 27 name_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in name_show() 45 inst_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in inst_show() 71 static ssize_t repr_trim(char *buf, ssize_t len) in repr_trim() 84 unsigned long caps, char *buf, bool show_unknown) in __caps_show() 144 const char *buf, size_t count) in max_spin_store() 204 const char *buf, size_t count) in timeslice_store() 258 const char *buf, size_t count) in stop_store() 309 const char *buf, size_t count) in preempt_timeout_store() 342 char *buf) in preempt_timeout_show() 354 char *buf) in preempt_timeout_default() [all …]
|
/openbsd/usr.bin/lex/ |
H A D | buf.c | 59 buf_print_strings(struct Buf * buf, FILE * out) in buf_print_strings() 76 buf_prints(struct Buf * buf, const char *fmt, const char *s) in buf_prints() 98 buf_linedir(struct Buf * buf, const char *filename, int lineno) in buf_linedir() 139 buf_strnappend(struct Buf *buf, const char *str, int n) in buf_strnappend() 151 buf_strappend(struct Buf *buf, const char *str) in buf_strappend() 158 buf_strdefine(struct Buf *buf, const char *str, const char *def) in buf_strdefine() 176 buf_m4_define(struct Buf * buf, const char *def, const char *val) in buf_m4_define() 199 buf_m4_undefine(struct Buf * buf, const char *def) in buf_m4_undefine() 217 buf_init(struct Buf *buf, size_t elem_size) in buf_init() 227 buf_destroy(struct Buf *buf) in buf_destroy() [all …]
|
/openbsd/sys/dev/ |
H A D | midivar.h | 42 #define MIDIBUF_START(buf) ((buf)->start) argument 43 #define MIDIBUF_END(buf) (((buf)->start + (buf)->used) & MIDIBUF_MASK) argument 44 #define MIDIBUF_USED(buf) ((buf)->used) argument 45 #define MIDIBUF_AVAIL(buf) (MIDIBUF_SIZE - (buf)->used) argument 46 #define MIDIBUF_ISFULL(buf) ((buf)->used >= MIDIBUF_SIZE) argument 47 #define MIDIBUF_ISEMPTY(buf) ((buf)->used == 0) argument 48 #define MIDIBUF_WRITE(buf, byte) \ argument 53 #define MIDIBUF_READ(buf, byte) \ argument 59 #define MIDIBUF_REMOVE(buf, count) \ argument 65 #define MIDIBUF_INIT(buf) \ argument
|
/openbsd/usr.sbin/ldpd/ |
H A D | logmsg.c | 37 static char buf[NUM_LOGS][NI_MAXHOST]; in log_sockaddr() local 83 static char buf[NUM_LOGS][INET6_ADDRSTRLEN]; in log_addr() local 108 char *buf; in log_label() local 138 static char buf[64]; in log_hello_src() local 157 static char buf[128]; in log_map() local 209 static char buf[64]; in log_fec() local 318 static char buf[16]; in msg_name() local 353 static char buf[16]; in status_code_name() local 441 static char buf[64]; in pw_type_name() local
|
H A D | init.c | 35 struct ibuf *buf; in send_init() local 62 recv_init(struct nbr *nbr, char *buf, uint16_t len) in recv_init() 225 struct ibuf *buf; in send_capability() local 268 recv_capability(struct nbr *nbr, char *buf, uint16_t len) in recv_capability() 381 gen_init_prms_tlv(struct ibuf *buf, struct nbr *nbr) in gen_init_prms_tlv() 400 gen_cap_dynamic_tlv(struct ibuf *buf) in gen_cap_dynamic_tlv() 414 gen_cap_twcard_tlv(struct ibuf *buf, int enable) in gen_cap_twcard_tlv() 428 gen_cap_unotif_tlv(struct ibuf *buf, int enable) in gen_cap_unotif_tlv()
|
/openbsd/usr.sbin/smtpd/ |
H A D | envelope.c | 69 char *buf, *field, *nextline; in envelope_buffer_to_dict() local 205 ascii_load_uint8(uint8_t *dest, char *buf) in ascii_load_uint8() 216 ascii_load_uint16(uint16_t *dest, char *buf) in ascii_load_uint16() 227 ascii_load_uint32(uint32_t *dest, char *buf) in ascii_load_uint32() 238 ascii_load_time(time_t *dest, char *buf) in ascii_load_time() 249 ascii_load_type(enum delivery_type *dest, char *buf) in ascii_load_type() 263 ascii_load_string(char *dest, char *buf, size_t len) in ascii_load_string() 305 ascii_load_mailaddr(struct mailaddr *dest, char *buf) in ascii_load_mailaddr() 349 ascii_load_dsn_ret(enum dsn_ret *ret, char *buf) in ascii_load_dsn_ret() 606 char *buf, size_t len) in ascii_dump_field() [all …]
|
/openbsd/sbin/iked/ |
H A D | imsg_util.c | 42 struct ibuf *buf; in ibuf_new() local 73 ibuf_length(struct ibuf *buf) in ibuf_length() 81 ibuf_getdata(struct ibuf *buf, size_t len) in ibuf_getdata() 92 ibuf_dup(struct ibuf *buf) in ibuf_dup() 102 struct ibuf *buf; in ibuf_random() local 116 ibuf_setsize(struct ibuf *buf, size_t len) in ibuf_setsize()
|
/openbsd/usr.bin/aucat/ |
H A D | abuf.c | 29 abuf_init(struct abuf *buf, unsigned int len) in abuf_init() 38 abuf_done(struct abuf *buf) in abuf_done() 52 abuf_rgetblk(struct abuf *buf, int *rsize) in abuf_rgetblk() 67 abuf_rdiscard(struct abuf *buf, int count) in abuf_rdiscard() 85 abuf_wcommit(struct abuf *buf, int count) in abuf_wcommit() 100 abuf_wgetblk(struct abuf *buf, int *rsize) in abuf_wgetblk()
|
/openbsd/usr.bin/sndiod/ |
H A D | abuf.c | 33 abuf_init(struct abuf *buf, unsigned int len) in abuf_init() 42 abuf_done(struct abuf *buf) in abuf_done() 56 abuf_rgetblk(struct abuf *buf, int *rsize) in abuf_rgetblk() 71 abuf_rdiscard(struct abuf *buf, int count) in abuf_rdiscard() 89 abuf_wcommit(struct abuf *buf, int count) in abuf_wcommit() 104 abuf_wgetblk(struct abuf *buf, int *rsize) in abuf_wgetblk()
|
/openbsd/usr.sbin/eigrpd/ |
H A D | tlv.c | 32 gen_parameter_tlv(struct ibuf *buf, struct eigrp_iface *ei, int peerterm) in gen_parameter_tlv() 53 gen_sequence_tlv(struct ibuf *buf, struct seq_addr_head *seq_addr_list) in gen_sequence_tlv() 97 gen_sw_version_tlv(struct ibuf *buf) in gen_sw_version_tlv() 121 gen_mcast_seq_tlv(struct ibuf *buf, uint32_t seq) in gen_mcast_seq_tlv() 160 gen_route_tlv(struct ibuf *buf, struct rinfo *ri) in gen_route_tlv() 263 tlv_decode_parameter(struct tlv *tlv, char *buf) in tlv_decode_parameter() 276 tlv_decode_seq(int af, struct tlv *tlv, char *buf, in tlv_decode_seq() 332 tlv_decode_sw_version(struct tlv *tlv, char *buf) in tlv_decode_sw_version() 345 tlv_decode_mcast_seq(struct tlv *tlv, char *buf) in tlv_decode_mcast_seq() 358 tlv_decode_route(int af, struct tlv *tlv, char *buf, struct rinfo *ri) in tlv_decode_route()
|
/openbsd/lib/libcurses/trace/ |
H A D | visbuf.c | 112 _nc_visbuf2n(int bufnum, const char *buf, int len) in _nc_visbuf2n() 161 _nc_visbuf2(int bufnum, const char *buf) in _nc_visbuf2() 167 _nc_visbuf(const char *buf) in _nc_visbuf() 173 _nc_visbufn(const char *buf, int len) in _nc_visbufn() 195 _nc_viswbuf2n(int bufnum, const wchar_t *buf, int len) in _nc_viswbuf2n() 242 _nc_viswbuf2(int bufnum, const wchar_t *buf) in _nc_viswbuf2() 248 _nc_viswbuf(const wchar_t *buf) in _nc_viswbuf() 254 _nc_viswbufn(const wchar_t *buf, int len) in _nc_viswbufn() 261 _nc_viswibuf(const wint_t *buf) in _nc_viswibuf() 290 _nc_viscbuf2(int bufnum, const NCURSES_CH_T *buf, int len) in _nc_viscbuf2() [all …]
|
/openbsd/usr.sbin/tcpdump/ |
H A D | smb.h | 10 #define CVAL(buf,pos) (((unsigned char *)(buf))[pos]) argument 11 #define PVAL(buf,pos) ((unsigned)CVAL(buf,pos)) argument 12 #define SCVAL(buf,pos,val) (CVAL(buf,pos) = (val)) argument 14 #define SVAL(buf,pos) (PVAL(buf,pos)|PVAL(buf,(pos)+1)<<8) argument 15 #define IVAL(buf,pos) (SVAL(buf,pos)|SVAL(buf,(pos)+2)<<16) argument 18 #define SVALS(buf,pos) ((int16)SVAL(buf,pos)) argument 19 #define IVALS(buf,pos) ((int32)IVAL(buf,pos)) argument 29 #define RSVAL(buf,pos) SREV(SVAL(buf,pos)) argument 30 #define RIVAL(buf,pos) IREV(IVAL(buf,pos)) argument 31 #define RSSVAL(buf,pos,val) SSVAL(buf,pos,SREV(val)) argument [all …]
|
/openbsd/gnu/usr.bin/cvs/src/ |
H A D | buffer.c | 35 struct buffer *buf; variable 54 buf_free (buf) in buf_free() argument 141 buf_empty_p (buf) in buf_empty_p() argument 159 buf_count_mem (buf) in buf_count_mem() argument 267 buf_send_output (buf) in buf_send_output() argument 330 buf_flush (buf, block) in buf_flush() argument 370 set_nonblock (buf) in set_nonblock() argument 392 set_block (buf) in set_block() argument 417 buf_send_counted (buf) in buf_send_counted() argument 668 buf_length (buf) in buf_length() argument [all …]
|
/openbsd/gnu/usr.bin/binutils/gdb/ |
H A D | remote-sds.c | 157 unsigned char buf[200]; in sds_start_remote() local 244 char buf[PBUFSIZ]; in sds_detach() local 334 unsigned char buf[PBUFSIZ]; in sds_resume() local 351 unsigned char buf[PBUFSIZ]; in sds_interrupt() local 404 unsigned char buf[PBUFSIZ]; in sds_wait() local 453 unsigned char buf[PBUFSIZ]; in sds_fetch_registers() local 501 unsigned char *p, buf[PBUFSIZ]; in sds_store_registers() local 544 unsigned char buf[PBUFSIZ]; in sds_write_bytes() local 592 unsigned char buf[PBUFSIZ]; in sds_read_bytes() local 793 read_frame (char *buf) in read_frame() [all …]
|
/openbsd/gnu/lib/libstdc++/libstdc++/testsuite/27_io/ |
H A D | ostream_sentry.cc | 36 struct buf: std::streambuf struct 40 buf (std::ios *io): io_ (io) { } in buf() argument 54 buf b(0); in test01() argument
|