Searched refs:nv (Results 1 - 25 of 239) sorted by relevance

12345678910

/freebsd-current/sbin/hastd/
H A Dnv.h44 struct nv;
46 struct nv *nv_alloc(void);
47 void nv_free(struct nv *nv);
48 int nv_error(const struct nv *nv);
49 int nv_set_error(struct nv *nv, int error);
50 int nv_validate(struct nv *nv, size_
[all...]
H A Dhast_compression.h35 #include <nv.h>
39 int compression_send(const struct hast_resource *res, struct nv *nv,
41 int compression_recv(const struct hast_resource *res, struct nv *nv,
H A Dhast_checksum.h35 #include <nv.h>
39 int checksum_send(const struct hast_resource *res, struct nv *nv,
41 int checksum_recv(const struct hast_resource *res, struct nv *nv,
H A Dhast_proto.h37 #include <nv.h>
41 struct nv *nv, const void *data, size_t size);
42 int hast_proto_recv_hdr(const struct proto_conn *conn, struct nv **nvp);
44 struct proto_conn *conn, struct nv *nv, void *data, size_t size);
H A Dhastd.h38 #include <nv.h>
50 void hastd_secondary(struct hast_resource *res, struct nv *nvin);
52 void primary_config_reload(struct hast_resource *res, struct nv *nv);
H A Dmetadata.c40 #include <nv.h>
51 struct nv *nv; local
110 nv = nv_ntoh(eb);
111 if (nv == NULL) {
119 str = nv_get_string(nv, "resource");
123 nv_free(nv);
127 res->hr_datasize = nv_get_uint64(nv, "datasize");
128 res->hr_extentsize = (int)nv_get_uint32(nv, "extentsize");
129 res->hr_keepdirty = (int)nv_get_uint32(nv, "keepdirt
172 struct nv *nv; local
[all...]
H A Dhast_proto.c41 #include <nv.h>
52 /* Size of nv headers. */
56 typedef int hps_send_t(const struct hast_resource *, struct nv *nv, void **,
58 typedef int hps_recv_t(const struct hast_resource *, struct nv *nv, void **,
73 * Send the given nv structure via conn.
74 * We keep headers in nv structure and pass data in separate argument.
79 struct nv *nv, cons
78 hast_proto_send(const struct hast_resource *res, struct proto_conn *conn, struct nv *nv, const void *data, size_t size) argument
133 struct nv *nv; local
172 hast_proto_recv_data(const struct hast_resource *res, struct proto_conn *conn, struct nv *nv, void *data, size_t size) argument
[all...]
H A Dnv.c47 #include "nv.h"
87 struct nv { struct
108 #define NV_CHECK(nv) do { \
109 PJDLOG_ASSERT((nv) != NULL); \
110 PJDLOG_ASSERT((nv)->nv_magic == NV_MAGIC); \
113 static void nv_add(struct nv *nv, const unsigned char *value, size_t vsize,
115 static void nv_addv(struct nv *nv, const unsigned char *value, size_t vsize,
117 static struct nvhdr *nv_find(struct nv *n
128 struct nv *nv; local
147 nv_free(struct nv *nv) argument
164 nv_error(const struct nv *nv) argument
179 nv_set_error(struct nv *nv, int error) argument
198 nv_validate(struct nv *nv, size_t *extrap) argument
342 nv_hton(struct nv *nv) argument
374 struct nv *nv; local
465 nv_add_stringf(struct nv *nv, const char *name, const char *valuefmt, ...) argument
475 nv_add_stringv(struct nv *nv, const char *name, const char *valuefmt, va_list valueap) argument
575 nv_vexists(struct nv *nv, const char *namefmt, va_list nameap) argument
595 nv_exists(struct nv *nv, const char *namefmt, ...) argument
608 nv_assert(struct nv *nv, const char *namefmt, ...) argument
621 nv_dump(struct nv *nv) argument
758 nv_add(struct nv *nv, const unsigned char *value, size_t vsize, int type, const char *name) argument
815 nv_addv(struct nv *nv, const unsigned char *value, size_t vsize, int type, const char *namefmt, va_list nameap) argument
828 nv_find(struct nv *nv, int type, const char *namefmt, va_list nameap) argument
[all...]
H A Dhast_checksum.c35 #include <nv.h>
86 checksum_send(const struct hast_resource *res, struct nv *nv, void **datap, argument
104 nv_add_string(nv, checksum_name(res->hr_checksum), "checksum");
105 nv_add_uint8_array(nv, hash, hsize, "hash");
106 if (nv_error(nv) != 0) {
107 errno = nv_error(nv);
114 checksum_recv(const struct hast_resource *res __unused, struct nv *nv, argument
122 algo = nv_get_string(nv, "checksu
[all...]
/freebsd-current/sys/contrib/openzfs/lib/libzfsbootenv/
H A Dlzbe_util.c26 nvlist_t *nv; local
32 rv = lzbe_nvlist_get(pool, nvlist, (void **)&nv);
34 nvlist_print(of, nv);
35 nvlist_free(nv);
H A Dlzbe_pair.c31 nvlist_t *nv; local
47 rv = zpool_get_bootenv(zphdl, &nv);
52 rv = nvlist_lookup_nvlist(nv, key, &nvl);
55 nvlist_free(nv);
57 nv = dup;
59 nv = NULL;
61 nvlist_free(nv);
62 rv = nvlist_alloc(&nv, NV_UNIQUE_NAME, 0);
65 *ptr = nv;
78 nvlist_t *nv; local
185 nvlist_t *nv = ptr; local
[all...]
H A Dlzbe_device.c32 nvlist_t *nv; local
51 rv = zpool_get_bootenv(zphdl, &nv);
58 rv = nvlist_lookup_uint64(nv, BOOTENV_VERSION,
64 fnvlist_free(nv);
68 nv = fnvlist_alloc();
75 fnvlist_add_uint64(nv, BOOTENV_VERSION, VB_NVLIST);
82 if (nvlist_exists(nv, OS_BOOTONCE))
83 fnvlist_remove(nv, OS_BOOTONCE);
90 fnvlist_add_string(nv, OS_BOOTONCE, device);
93 fnvlist_add_string(nv, OS_BOOTONC
118 nvlist_t *nv; local
[all...]
/freebsd-current/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data.h113 struct bhnd_nvram_data **nv,
116 struct bhnd_nvram_data *bhnd_nvram_data_retain(struct bhnd_nvram_data *nv);
117 void bhnd_nvram_data_release(struct bhnd_nvram_data *nv);
119 bhnd_nvram_data_class *bhnd_nvram_data_get_class(struct bhnd_nvram_data *nv);
121 size_t bhnd_nvram_data_count(struct bhnd_nvram_data *nv);
122 bhnd_nvram_plist *bhnd_nvram_data_options(struct bhnd_nvram_data *nv);
123 uint32_t bhnd_nvram_data_caps(struct bhnd_nvram_data *nv);
125 const char *bhnd_nvram_data_next(struct bhnd_nvram_data *nv,
127 void *bhnd_nvram_data_find(struct bhnd_nvram_data *nv,
131 struct bhnd_nvram_data *nv, voi
[all...]
H A Dbhnd_nvram_data.c270 * @param[out] nv On success, a pointer to the newly allocated NVRAM data instance.
278 bhnd_nvram_data_new(bhnd_nvram_data_class *cls, struct bhnd_nvram_data **nv, argument
286 return (bhnd_nvram_data_probe_classes(nv, io, NULL, 0));
303 *nv = data;
310 * @param nv The reference to be retained.
313 bhnd_nvram_data_retain(struct bhnd_nvram_data *nv) argument
315 refcount_acquire(&nv->refs);
316 return (nv);
325 * @param nv The reference to be released.
328 bhnd_nvram_data_release(struct bhnd_nvram_data *nv) argument
346 bhnd_nvram_data_get_class(struct bhnd_nvram_data *nv) argument
357 bhnd_nvram_data_count(struct bhnd_nvram_data *nv) argument
369 bhnd_nvram_data_options(struct bhnd_nvram_data *nv) argument
380 bhnd_nvram_data_caps(struct bhnd_nvram_data *nv) argument
397 bhnd_nvram_data_next(struct bhnd_nvram_data *nv, void **cookiep) argument
437 bhnd_nvram_data_find(struct bhnd_nvram_data *nv, const char *name) argument
449 bhnd_nvram_data_generic_find(struct bhnd_nvram_data *nv, const char *name) argument
489 bhnd_nvram_data_getvar_order(struct bhnd_nvram_data *nv, void *cookiep1, void *cookiep2) argument
516 bhnd_nvram_data_getvar(struct bhnd_nvram_data *nv, void *cookiep, void *buf, size_t *len, bhnd_nvram_type type) argument
531 bhnd_nvram_data_getvar_ptr_info(struct bhnd_nvram_data *nv, void *cookiep, size_t *len, bhnd_nvram_type *type, const bhnd_nvram_val_fmt **fmt) argument
586 bhnd_nvram_data_generic_rp_getvar(struct bhnd_nvram_data *nv, void *cookiep, void *outp, size_t *olen, bhnd_nvram_type otype) argument
635 bhnd_nvram_data_copy_val(struct bhnd_nvram_data *nv, void *cookiep, bhnd_nvram_val **value) argument
653 bhnd_nvram_data_generic_rp_copy_val(struct bhnd_nvram_data *nv, void *cookiep, bhnd_nvram_val **value) argument
694 bhnd_nvram_data_getvar_ptr(struct bhnd_nvram_data *nv, void *cookiep, size_t *len, bhnd_nvram_type *type) argument
710 bhnd_nvram_data_getvar_name(struct bhnd_nvram_data *nv, void *cookiep) argument
734 bhnd_nvram_data_filter_setvar(struct bhnd_nvram_data *nv, const char *name, bhnd_nvram_val *value, bhnd_nvram_val **result) argument
751 bhnd_nvram_data_filter_unsetvar(struct bhnd_nvram_data *nv, const char *name) argument
[all...]
H A Dbhnd_nvram_datavar.h46 struct bhnd_nvram_data *nv, const char *name);
48 struct bhnd_nvram_data *nv, void *cookiep,
51 struct bhnd_nvram_data *nv, void *cookiep,
70 typedef int (bhnd_nvram_data_op_new)(struct bhnd_nvram_data *nv,
73 /** Free all resources associated with @p nv. Called by
75 typedef void (bhnd_nvram_data_op_free)(struct bhnd_nvram_data *nv);
78 typedef size_t (bhnd_nvram_data_op_count)(struct bhnd_nvram_data *nv);
82 struct bhnd_nvram_data *nv);
85 typedef uint32_t (bhnd_nvram_data_op_caps)(struct bhnd_nvram_data *nv);
88 typedef const char *(bhnd_nvram_data_op_next)(struct bhnd_nvram_data *nv,
[all...]
H A Dbhnd_nvram_data_bcmraw.c67 struct bhnd_nvram_data nv; /**< common instance state */ member in struct:bhnd_nvram_bcmraw
330 bhnd_nvram_bcmraw_new(struct bhnd_nvram_data *nv, struct bhnd_nvram_io *io) argument
335 bcm = (struct bhnd_nvram_bcmraw *)nv;
340 bhnd_nvram_bcmraw_free(nv);
348 bhnd_nvram_bcmraw_free(struct bhnd_nvram_data *nv) argument
350 struct bhnd_nvram_bcmraw *bcm = (struct bhnd_nvram_bcmraw *)nv;
357 bhnd_nvram_bcmraw_options(struct bhnd_nvram_data *nv) argument
363 bhnd_nvram_bcmraw_count(struct bhnd_nvram_data *nv) argument
365 struct bhnd_nvram_bcmraw *bcm = (struct bhnd_nvram_bcmraw *)nv;
371 bhnd_nvram_bcmraw_caps(struct bhnd_nvram_data *nv) argument
377 bhnd_nvram_bcmraw_next(struct bhnd_nvram_data *nv, void **cookiep) argument
403 bhnd_nvram_bcmraw_find(struct bhnd_nvram_data *nv, const char *name) argument
409 bhnd_nvram_bcmraw_getvar_order(struct bhnd_nvram_data *nv, void *cookiep1, void *cookiep2) argument
422 bhnd_nvram_bcmraw_getvar(struct bhnd_nvram_data *nv, void *cookiep, void *buf, size_t *len, bhnd_nvram_type type) argument
429 bhnd_nvram_bcmraw_copy_val(struct bhnd_nvram_data *nv, void *cookiep, bhnd_nvram_val **value) argument
436 bhnd_nvram_bcmraw_getvar_ptr(struct bhnd_nvram_data *nv, void *cookiep, size_t *len, bhnd_nvram_type *type) argument
451 bhnd_nvram_bcmraw_getvar_name(struct bhnd_nvram_data *nv, void *cookiep) argument
458 bhnd_nvram_bcmraw_filter_setvar(struct bhnd_nvram_data *nv, const char *name, bhnd_nvram_val *value, bhnd_nvram_val **result) argument
480 bhnd_nvram_bcmraw_filter_unsetvar(struct bhnd_nvram_data *nv, const char *name) argument
[all...]
/freebsd-current/sbin/hastctl/
H A Dhastctl.c45 #include "nv.h"
260 control_set_role(struct nv *nv, const char *newrole) argument
269 res = nv_get_string(nv, "resource%u", ii);
273 error = nv_get_int16(nv, "error%u", ii);
280 oldrole = nv_get_string(nv, "role%u", ii);
293 control_list(struct nv *nv) argument
303 str = nv_get_string(nv, "resource%u", ii);
307 error = nv_get_int16(nv, "erro
369 control_status(struct nv *nv) argument
408 struct nv *nv; local
[all...]
/freebsd-current/sys/dev/nvdimm/
H A Dnvdimm.c67 read_label_area_size(struct nvdimm_dev *nv) argument
76 handle = nvdimm_root_get_acpi_handle(nv->nv_dev);
91 nv->label_area_size = out[1];
92 nv->max_label_xfer = out[2];
102 read_label_area(struct nvdimm_dev *nv, uint8_t *dest, off_t offset, argument
114 handle = nvdimm_root_get_acpi_handle(nv->nv_dev);
116 offset + length > nv->label_area_size ||
126 to_read = MIN(length, nv->max_label_xfer);
201 read_label(struct nvdimm_dev *nv, int num) argument
208 offset = nv
243 read_labels(struct nvdimm_dev *nv) argument
311 struct nvdimm_dev *nv; local
404 struct nvdimm_dev *nv; local
[all...]
/freebsd-current/lib/libcasper/services/cap_dns/tests/
H A DMakefile11 LIBADD+= nv
/freebsd-current/lib/libcasper/services/cap_pwd/tests/
H A DMakefile11 LIBADD+= nv
/freebsd-current/lib/libcasper/services/cap_netdb/tests/
H A DMakefile11 LIBADD+= nv
/freebsd-current/lib/libcasper/services/cap_grp/tests/
H A DMakefile11 LIBADD+= nv
/freebsd-current/lib/libcasper/services/cap_net/tests/
H A DMakefile11 LIBADD+= nv
/freebsd-current/sbin/zfsbootcfg/
H A Dzfsbootcfg.c47 void *data, *nv; local
52 rv = lzbe_nvlist_get(name, nvlist, &nv);
61 rv = lzbe_add_pair(nv, key, type, data, size);
69 rv = lzbe_add_pair(nv, key, type, &v, size);
77 rv = lzbe_add_pair(nv, key, type, &v, size);
85 rv = lzbe_add_pair(nv, key, type, &v, size);
93 rv = lzbe_add_pair(nv, key, type, &v, size);
101 rv = lzbe_add_pair(nv, key, type, &v, size);
109 rv = lzbe_add_pair(nv, key, type, &v, size);
117 rv = lzbe_add_pair(nv, ke
164 void *nv; local
[all...]
/freebsd-current/contrib/netbsd-tests/net/icmp/
H A Dt_forward.c74 int nv; local
82 nv = 1;
83 if (rump_sys___sysctl(mib, 4, NULL, NULL, &nv, sizeof(nv)) == -1)
108 int nv; local
111 nv = 200;
112 if (rump_sys___sysctl(mib, 4, NULL, NULL, &nv, sizeof(nv)) == -1)

Completed in 137 milliseconds

12345678910