Searched refs:bhnd_nvram_io (Results 1 - 23 of 23) sorted by relevance

/freebsd-13-stable/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_io.h47 struct bhnd_nvram_io;
49 struct bhnd_nvram_io *bhnd_nvram_iobuf_new(const void *buffer, size_t size);
50 struct bhnd_nvram_io *bhnd_nvram_iobuf_empty(size_t size, size_t capacity);
51 struct bhnd_nvram_io *bhnd_nvram_iobuf_copy(struct bhnd_nvram_io *src);
52 struct bhnd_nvram_io *bhnd_nvram_iobuf_copy_range(struct bhnd_nvram_io *src,
55 struct bhnd_nvram_io *bhnd_nvram_ioptr_new(const void *ptr, size_t size,
59 struct bhnd_nvram_io *bhnd_nvram_iores_new(struct bhnd_resource *r,
64 size_t bhnd_nvram_io_getsize(struct bhnd_nvram_io *i
[all...]
H A Dbhnd_nvram_io.c41 #include "bhnd_nvram_io.h"
63 bhnd_nvram_io_read(struct bhnd_nvram_io *io, size_t offset, void *buffer,
74 * operation performed on @p io; concrete implementations of bhnd_nvram_io
95 bhnd_nvram_io_read_ptr(struct bhnd_nvram_io *io, size_t offset,
119 bhnd_nvram_io_write(struct bhnd_nvram_io *io, size_t offset, void *buffer,
130 * operation performed on @p io; concrete implementations of bhnd_nvram_io
153 bhnd_nvram_io_write_ptr(struct bhnd_nvram_io *io, size_t offset, void **ptr,
165 bhnd_nvram_io_getsize(struct bhnd_nvram_io *io)
174 * bytes are undefined; concrete implementations of bhnd_nvram_io may
188 bhnd_nvram_io_setsize(struct bhnd_nvram_io *i
[all...]
H A Dbhnd_nvram_iovar.h37 #include "bhnd_nvram_io.h"
40 typedef int (bhnd_nvram_iop_read)(struct bhnd_nvram_io *io, size_t offset,
44 typedef int (bhnd_nvram_iop_read_ptr)(struct bhnd_nvram_io *io, size_t offset,
48 typedef int (bhnd_nvram_iop_write)(struct bhnd_nvram_io *io, size_t offset,
52 typedef int (bhnd_nvram_iop_write_ptr)(struct bhnd_nvram_io *io, size_t offset,
56 typedef size_t (bhnd_nvram_iop_getsize)(struct bhnd_nvram_io *io);
59 typedef int (bhnd_nvram_iop_setsize)(struct bhnd_nvram_io *io, size_t size);
62 typedef void (bhnd_nvram_iop_free)(struct bhnd_nvram_io *io);
80 struct bhnd_nvram_io { struct
H A Dbhnd_nvram_iobuf.c46 #include "bhnd_nvram_io.h"
57 struct bhnd_nvram_io io; /**< common I/O instance state */
86 struct bhnd_nvram_io *
140 * @retval bhnd_nvram_io success.
143 struct bhnd_nvram_io *
146 struct bhnd_nvram_io *io;
169 * @retval bhnd_nvram_io success.
173 struct bhnd_nvram_io *
174 bhnd_nvram_iobuf_copy(struct bhnd_nvram_io *src)
191 * @retval bhnd_nvram_io succes
[all...]
H A Dbhnd_nvram_ioptr.c46 #include "bhnd_nvram_io.h"
57 struct bhnd_nvram_io io; /**< common I/O instance state */
80 * @retval bhnd_nvram_io success.
84 struct bhnd_nvram_io *
109 bhnd_nvram_ioptr_free(struct bhnd_nvram_io *io)
115 bhnd_nvram_ioptr_getsize(struct bhnd_nvram_io *io)
122 bhnd_nvram_ioptr_setsize(struct bhnd_nvram_io *io, size_t size)
163 bhnd_nvram_ioptr_read_ptr(struct bhnd_nvram_io *io, size_t offset,
183 bhnd_nvram_ioptr_write_ptr(struct bhnd_nvram_io *io, size_t offset,
199 bhnd_nvram_ioptr_read(struct bhnd_nvram_io *i
[all...]
H A Dbhnd_nvram_iores.c44 #include "bhnd_nvram_io.h"
51 struct bhnd_nvram_io io; /**< common I/O instance state */
74 * @retval bhnd_nvram_io success.
78 struct bhnd_nvram_io *
144 bhnd_nvram_iores_free(struct bhnd_nvram_io *io)
150 bhnd_nvram_iores_getsize(struct bhnd_nvram_io *io)
157 bhnd_nvram_iores_setsize(struct bhnd_nvram_io *io, size_t size)
164 bhnd_nvram_iores_read_ptr(struct bhnd_nvram_io *io, size_t offset,
172 bhnd_nvram_iores_write_ptr(struct bhnd_nvram_io *io, size_t offset,
214 bhnd_nvram_iores_read(struct bhnd_nvram_io *i
[all...]
H A Dbhnd_nvram_data.h46 #include "bhnd_nvram_io.h"
101 struct bhnd_nvram_io *io);
104 struct bhnd_nvram_io *io,
110 struct bhnd_nvram_io *io, const char *name,
115 struct bhnd_nvram_io *io);
H A Dbhnd_nvram_data_bcmvar.h72 int bhnd_nvram_bcm_getvar_direct_common(struct bhnd_nvram_io *io,
H A Dbhnd_nvram_store.h47 #include "bhnd_nvram_io.h"
70 struct bhnd_nvram_io *io, bhnd_nvram_data_class *cls);
80 const char *path, struct bhnd_nvram_io **data, uint32_t flags);
H A Dbhnd_nvram_datavar.h39 #include "bhnd_nvram_io.h"
56 typedef int (bhnd_nvram_data_op_probe)(struct bhnd_nvram_io *io);
60 struct bhnd_nvram_io *io, const char *name,
72 struct bhnd_nvram_io *io);
H A Dbhnd_nvram_data_btxt.c67 struct bhnd_nvram_io *data; /**< memory-backed board text data */
85 static int bhnd_nvram_btxt_entry_len(struct bhnd_nvram_io *io,
87 static int bhnd_nvram_btxt_seek_next(struct bhnd_nvram_io *io,
89 static int bhnd_nvram_btxt_seek_eol(struct bhnd_nvram_io *io,
93 bhnd_nvram_btxt_probe(struct bhnd_nvram_io *io)
140 bhnd_nvram_btxt_getvar_direct(struct bhnd_nvram_io *io, const char *name,
445 bhnd_nvram_btxt_init(struct bhnd_nvram_btxt *btxt, struct bhnd_nvram_io *src)
537 bhnd_nvram_btxt_new(struct bhnd_nvram_data *nv, struct bhnd_nvram_io *io)
796 bhnd_nvram_btxt_entry_len(struct bhnd_nvram_io *io, size_t offset,
836 bhnd_nvram_btxt_seek_eol(struct bhnd_nvram_io *i
[all...]
H A Dbhnd_nvram_data_sprom.c70 struct bhnd_nvram_io *io,
77 struct bhnd_nvram_io *io);
82 struct bhnd_nvram_io *io,
88 struct bhnd_nvram_io *data,
95 struct bhnd_nvram_io *data,
128 bhnd_nvram_sprom_check_magic(struct bhnd_nvram_io *io,
168 bhnd_nvram_sprom_ident(struct bhnd_nvram_io *io,
292 bhnd_nvram_sprom_probe(struct bhnd_nvram_io *io)
305 bhnd_nvram_sprom_getvar_direct(struct bhnd_nvram_io *io, const char *name,
404 struct bhnd_nvram_io *i
[all...]
H A Dbhnd_nvram_data_tlv.c62 struct bhnd_nvram_io *data; /**< backing buffer */
92 struct bhnd_nvram_io *io,
96 struct bhnd_nvram_io *io,
116 bhnd_nvram_tlv_probe(struct bhnd_nvram_io *io)
168 bhnd_nvram_tlv_getvar_direct(struct bhnd_nvram_io *io, const char *name,
362 bhnd_nvram_tlv_init(struct bhnd_nvram_tlv *tlv, struct bhnd_nvram_io *src)
415 bhnd_nvram_tlv_new(struct bhnd_nvram_data *nv, struct bhnd_nvram_io *io)
644 bhnd_nvram_tlv_next_record(struct bhnd_nvram_io *io, size_t *next, size_t
715 bhnd_nvram_tlv_parse_size(struct bhnd_nvram_io *io, size_t *size)
H A Dbhnd_nvram_data.c50 #include "bhnd_nvram_io.h"
130 bhnd_nvram_data_probe(bhnd_nvram_data_class *cls, struct bhnd_nvram_io *io)
156 struct bhnd_nvram_io *io, bhnd_nvram_data_class *classes[],
257 struct bhnd_nvram_io *io, const char *name, void *buf, size_t *len,
281 struct bhnd_nvram_io *io)
H A Dbhnd_nvram_data_bcmraw.c79 bhnd_nvram_bcmraw_probe(struct bhnd_nvram_io *io)
137 bhnd_nvram_bcmraw_getvar_direct(struct bhnd_nvram_io *io, const char *name,
247 bhnd_nvram_bcmraw_init(struct bhnd_nvram_bcmraw *bcm, struct bhnd_nvram_io *src)
332 bhnd_nvram_bcmraw_new(struct bhnd_nvram_data *nv, struct bhnd_nvram_io *io)
H A Dbhnd_nvram_data_spromvar.h44 #include "bhnd_nvram_io.h"
175 struct bhnd_nvram_io *data; /**< backing SPROM image */
H A Dbhnd_sprom.c59 #include "bhnd_nvram_io.h"
98 struct bhnd_nvram_io *io;
H A Dbhnd_nvram_data_bcm.c123 struct bhnd_nvram_io *data; /**< backing buffer */
136 bhnd_nvram_bcm_probe(struct bhnd_nvram_io *io)
166 bhnd_nvram_bcm_getvar_direct(struct bhnd_nvram_io *io, const char *name,
177 bhnd_nvram_bcm_getvar_direct_common(struct bhnd_nvram_io *io, const char *name,
560 bhnd_nvram_bcm_init(struct bhnd_nvram_bcm *bcm, struct bhnd_nvram_io *src)
765 bhnd_nvram_bcm_new(struct bhnd_nvram_data *nv, struct bhnd_nvram_io *io)
H A Dbhnd_nvram_store.c197 struct bhnd_nvram_io *io, bhnd_nvram_data_class *cls)
1019 struct bhnd_nvram_io **data, uint32_t flags)
1024 struct bhnd_nvram_io *io;
/freebsd-13-stable/sys/mips/broadcom/
H A Dbcm_nvram_cfevar.h48 * CFE-backed bhnd_nvram_io implementation.
51 struct bhnd_nvram_io io; /**< common I/O instance state */
H A Dbcm_nvram_cfe.c366 bhnd_nvram_iocfe_free(struct bhnd_nvram_io *io)
376 bhnd_nvram_iocfe_getsize(struct bhnd_nvram_io *io)
383 bhnd_nvram_iocfe_setsize(struct bhnd_nvram_io *io, size_t size)
390 bhnd_nvram_iocfe_read_ptr(struct bhnd_nvram_io *io, size_t offset,
398 bhnd_nvram_iocfe_write_ptr(struct bhnd_nvram_io *io, size_t offset,
406 bhnd_nvram_iocfe_write(struct bhnd_nvram_io *io, size_t offset, void *buffer,
414 bhnd_nvram_iocfe_read(struct bhnd_nvram_io *io, size_t offset, void *buffer,
H A Dbcm_machdep.h78 struct bhnd_nvram_io *nvram_io; /**< NVRAM I/O context, or NULL if unavailable */
/freebsd-13-stable/sys/modules/bhnd/
H A DMakefile48 bhnd_nvram_io.c \

Completed in 98 milliseconds