/freebsd-12-stable/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_io.h | 47 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 D | bhnd_nvram_io.c | 41 #include "bhnd_nvram_io.h" 63 bhnd_nvram_io_read(struct bhnd_nvram_io *io, size_t offset, void *buffer, 75 * operation performed on @p io; concrete implementations of bhnd_nvram_io 96 bhnd_nvram_io_read_ptr(struct bhnd_nvram_io *io, size_t offset, 120 bhnd_nvram_io_write(struct bhnd_nvram_io *io, size_t offset, void *buffer, 131 * operation performed on @p io; concrete implementations of bhnd_nvram_io 154 bhnd_nvram_io_write_ptr(struct bhnd_nvram_io *io, size_t offset, void **ptr, 166 bhnd_nvram_io_getsize(struct bhnd_nvram_io *io) 175 * bytes are undefined; concrete implementations of bhnd_nvram_io may 189 bhnd_nvram_io_setsize(struct bhnd_nvram_io *i [all...] |
H A D | bhnd_nvram_iovar.h | 37 #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 D | bhnd_nvram_iobuf.c | 46 #include "bhnd_nvram_io.h" 57 struct bhnd_nvram_io io; /**< common I/O instance state */ 86 struct bhnd_nvram_io * 141 * @retval bhnd_nvram_io success. 144 struct bhnd_nvram_io * 147 struct bhnd_nvram_io *io; 170 * @retval bhnd_nvram_io success. 174 struct bhnd_nvram_io * 175 bhnd_nvram_iobuf_copy(struct bhnd_nvram_io *src) 192 * @retval bhnd_nvram_io succes [all...] |
H A D | bhnd_nvram_ioptr.c | 46 #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 D | bhnd_nvram_iores.c | 44 #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, 215 bhnd_nvram_iores_read(struct bhnd_nvram_io *i [all...] |
H A D | bhnd_nvram_data.h | 46 #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 D | bhnd_nvram_data_bcmvar.h | 72 int bhnd_nvram_bcm_getvar_direct_common(struct bhnd_nvram_io *io,
|
H A D | bhnd_nvram_store.h | 47 #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 D | bhnd_nvram_datavar.h | 39 #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 D | bhnd_nvram_data_btxt.c | 67 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) 141 bhnd_nvram_btxt_getvar_direct(struct bhnd_nvram_io *io, const char *name, 447 bhnd_nvram_btxt_init(struct bhnd_nvram_btxt *btxt, struct bhnd_nvram_io *src) 539 bhnd_nvram_btxt_new(struct bhnd_nvram_data *nv, struct bhnd_nvram_io *io) 798 bhnd_nvram_btxt_entry_len(struct bhnd_nvram_io *io, size_t offset, 838 bhnd_nvram_btxt_seek_eol(struct bhnd_nvram_io *i [all...] |
H A D | bhnd_nvram_data_sprom.c | 70 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 D | bhnd_nvram_data_tlv.c | 62 struct bhnd_nvram_io *data; /**< backing buffer */ 93 struct bhnd_nvram_io *io, 97 struct bhnd_nvram_io *io, 117 bhnd_nvram_tlv_probe(struct bhnd_nvram_io *io) 169 bhnd_nvram_tlv_getvar_direct(struct bhnd_nvram_io *io, const char *name, 363 bhnd_nvram_tlv_init(struct bhnd_nvram_tlv *tlv, struct bhnd_nvram_io *src) 416 bhnd_nvram_tlv_new(struct bhnd_nvram_data *nv, struct bhnd_nvram_io *io) 646 bhnd_nvram_tlv_next_record(struct bhnd_nvram_io *io, size_t *next, size_t 717 bhnd_nvram_tlv_parse_size(struct bhnd_nvram_io *io, size_t *size)
|
H A D | bhnd_nvram_data.c | 51 #include "bhnd_nvram_io.h" 131 bhnd_nvram_data_probe(bhnd_nvram_data_class *cls, struct bhnd_nvram_io *io) 157 struct bhnd_nvram_io *io, bhnd_nvram_data_class *classes[], 259 struct bhnd_nvram_io *io, const char *name, void *buf, size_t *len, 283 struct bhnd_nvram_io *io)
|
H A D | bhnd_nvram_data_bcmraw.c | 79 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 D | bhnd_nvram_data_spromvar.h | 44 #include "bhnd_nvram_io.h" 175 struct bhnd_nvram_io *data; /**< backing SPROM image */
|
H A D | bhnd_sprom.c | 59 #include "bhnd_nvram_io.h" 98 struct bhnd_nvram_io *io;
|
H A D | bhnd_nvram_data_bcm.c | 123 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 D | bhnd_nvram_store.c | 197 struct bhnd_nvram_io *io, bhnd_nvram_data_class *cls) 1022 struct bhnd_nvram_io **data, uint32_t flags) 1027 struct bhnd_nvram_io *io;
|
/freebsd-12-stable/sys/mips/broadcom/ |
H A D | bcm_nvram_cfevar.h | 48 * CFE-backed bhnd_nvram_io implementation. 51 struct bhnd_nvram_io io; /**< common I/O instance state */
|
H A D | bcm_nvram_cfe.c | 369 bhnd_nvram_iocfe_free(struct bhnd_nvram_io *io) 379 bhnd_nvram_iocfe_getsize(struct bhnd_nvram_io *io) 386 bhnd_nvram_iocfe_setsize(struct bhnd_nvram_io *io, size_t size) 393 bhnd_nvram_iocfe_read_ptr(struct bhnd_nvram_io *io, size_t offset, 401 bhnd_nvram_iocfe_write_ptr(struct bhnd_nvram_io *io, size_t offset, 409 bhnd_nvram_iocfe_write(struct bhnd_nvram_io *io, size_t offset, void *buffer, 417 bhnd_nvram_iocfe_read(struct bhnd_nvram_io *io, size_t offset, void *buffer,
|
H A D | bcm_machdep.h | 78 struct bhnd_nvram_io *nvram_io; /**< NVRAM I/O context, or NULL if unavailable */
|
/freebsd-12-stable/sys/modules/bhnd/ |
H A D | Makefile | 48 bhnd_nvram_io.c \
|