/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_data.c | 397 bhnd_nvram_data_next(struct bhnd_nvram_data *nv, void **cookiep) in bhnd_nvram_data_next() argument 401 void *prev = *cookiep; in bhnd_nvram_data_next() 405 if ((name = nv->cls->op_next(nv, cookiep)) == NULL) in bhnd_nvram_data_next() 412 bhnd_nvram_data_getvar_order(nv, prev, *cookiep) > 0) in bhnd_nvram_data_next() 452 void *cookiep; in bhnd_nvram_data_generic_find() local 454 cookiep = NULL; in bhnd_nvram_data_generic_find() 455 while ((next = bhnd_nvram_data_next(nv, &cookiep))) { in bhnd_nvram_data_generic_find() 457 return (cookiep); in bhnd_nvram_data_generic_find() 516 bhnd_nvram_data_getvar(struct bhnd_nvram_data *nv, void *cookiep, void *buf, in bhnd_nvram_data_getvar() argument 519 return (nv->cls->op_getvar(nv, cookiep, buf, len, type)); in bhnd_nvram_data_getvar() [all …]
|
H A D | bhnd_nvram_store_subr.c | 183 bhnd_nvstore_index *index, void *cookiep) in bhnd_nvstore_index_append() argument 190 index->cookiep[index->count] = cookiep; in bhnd_nvstore_index_append() 258 qsort_r(index->cookiep, index->count, sizeof(index->cookiep[0]), in bhnd_nvstore_index_prepare() 330 void *cookiep; in bhnd_nvstore_path_register_update() local 341 cookiep = bhnd_nvstore_path_data_lookup(sc, path, name); in bhnd_nvstore_path_register_update() 342 if (cookiep != NULL) { in bhnd_nvstore_path_register_update() 347 full_name = bhnd_nvram_data_getvar_name(sc->data, cookiep); in bhnd_nvstore_path_register_update() 470 index_ref = &path->index->cookiep[0]; in bhnd_nvstore_path_data_next() 479 BHND_NV_ASSERT(index_ref > path->index->cookiep, in bhnd_nvstore_path_data_next() 482 idxpos = (index_ref - path->index->cookiep); in bhnd_nvstore_path_data_next() [all …]
|
H A D | bhnd_nvram_data_tlv.c | 100 size_t *next, void **cookiep); 104 void *cookiep); 111 void *cookiep); 460 bhnd_nvram_tlv_next(struct bhnd_nvram_data *nv, void **cookiep) in bhnd_nvram_tlv_next() argument 469 if (*cookiep == NULL) { in bhnd_nvram_tlv_next() 472 env = bhnd_nvram_tlv_next_env(tlv, &io_offset, cookiep); in bhnd_nvram_tlv_next() 475 io_offset = bhnd_nvram_tlv_to_offset(tlv, *cookiep); in bhnd_nvram_tlv_next() 481 env = bhnd_nvram_tlv_next_env(tlv, &io_offset, cookiep); in bhnd_nvram_tlv_next() 512 bhnd_nvram_tlv_getvar(struct bhnd_nvram_data *nv, void *cookiep, void *buf, in bhnd_nvram_tlv_getvar() argument 515 return (bhnd_nvram_data_generic_rp_getvar(nv, cookiep, buf, len, type)); in bhnd_nvram_tlv_getvar() [all …]
|
H A D | bhnd_nvram_data_bcmraw.c | 377 bhnd_nvram_bcmraw_next(struct bhnd_nvram_data *nv, void **cookiep) in bhnd_nvram_bcmraw_next() argument 384 if (*cookiep == NULL) { in bhnd_nvram_bcmraw_next() 389 envp = *cookiep; in bhnd_nvram_bcmraw_next() 398 *cookiep = (void *)(uintptr_t)envp; in bhnd_nvram_bcmraw_next() 422 bhnd_nvram_bcmraw_getvar(struct bhnd_nvram_data *nv, void *cookiep, void *buf, in bhnd_nvram_bcmraw_getvar() argument 425 return (bhnd_nvram_data_generic_rp_getvar(nv, cookiep, buf, len, type)); in bhnd_nvram_bcmraw_getvar() 429 bhnd_nvram_bcmraw_copy_val(struct bhnd_nvram_data *nv, void *cookiep, in bhnd_nvram_bcmraw_copy_val() argument 432 return (bhnd_nvram_data_generic_rp_copy_val(nv, cookiep, value)); in bhnd_nvram_bcmraw_copy_val() 436 bhnd_nvram_bcmraw_getvar_ptr(struct bhnd_nvram_data *nv, void *cookiep, in bhnd_nvram_bcmraw_getvar_ptr() argument 442 envp = cookiep; in bhnd_nvram_bcmraw_getvar_ptr() 451 bhnd_nvram_bcmraw_getvar_name(struct bhnd_nvram_data * nv,void * cookiep) bhnd_nvram_bcmraw_getvar_name() argument [all...] |
H A D | bhnd_nvram_data_bcm.c | 75 void *cookiep); 823 bhnd_nvram_bcm_next(struct bhnd_nvram_data *nv, void **cookiep) in bhnd_nvram_bcm_next() argument 849 hvar = bhnd_nvram_bcm_to_hdrvar(bcm, *cookiep); in bhnd_nvram_bcm_next() 863 *cookiep = hvar_next; in bhnd_nvram_bcm_next() 873 if (*cookiep == NULL) { in bhnd_nvram_bcm_next() 878 envp = *cookiep; in bhnd_nvram_bcm_next() 919 *cookiep = &bcm->hvars[i]; in bhnd_nvram_bcm_next() 927 *cookiep = __DECONST(void *, envp); in bhnd_nvram_bcm_next() 971 bhnd_nvram_bcm_getvar(struct bhnd_nvram_data *nv, void *cookiep, void *buf, in bhnd_nvram_bcm_getvar() argument 974 return (bhnd_nvram_data_generic_rp_getvar(nv, cookiep, buf, len, type)); in bhnd_nvram_bcm_getvar() [all …]
|
H A D | bhnd_nvram_store.c | 260 void *cookiep; in bhnd_nvstore_parse_data() local 271 cookiep = NULL; in bhnd_nvstore_parse_data() 272 while ((name = bhnd_nvram_data_next(sc->data, &cookiep))) { in bhnd_nvstore_parse_data() 338 cookiep = NULL; in bhnd_nvstore_parse_data() 339 while ((name = bhnd_nvram_data_next(sc->data, &cookiep))) { in bhnd_nvstore_parse_data() 358 cookiep); in bhnd_nvstore_parse_data() 397 void *cookiep; in bhnd_nvstore_parse_path_entries() local 410 cookiep = NULL; in bhnd_nvstore_parse_path_entries() 411 while ((name = bhnd_nvram_data_next(sc->data, &cookiep))) { in bhnd_nvstore_parse_path_entries() 421 error = bhnd_nvstore_var_register_path(sc, &info, cookiep); in bhnd_nvstore_parse_path_entries() [all …]
|
H A D | bhnd_nvram_datavar.h | 48 struct bhnd_nvram_data *nv, void *cookiep, 51 struct bhnd_nvram_data *nv, void *cookiep, 89 void **cookiep); 97 struct bhnd_nvram_data *nv, void *cookiep, 108 void *cookiep); 112 void *cookiep, void *buf, size_t *len, 117 struct bhnd_nvram_data *nv, void *cookiep,
|
H A D | bhnd_nvram_data_btxt.c | 81 void *cookiep); 587 bhnd_nvram_btxt_next(struct bhnd_nvram_data *nv, void **cookiep) in bhnd_nvram_btxt_next() argument 598 if (*cookiep == NULL) { in bhnd_nvram_btxt_next() 603 io_offset = bhnd_nvram_btxt_cookiep_to_offset(btxt, *cookiep); in bhnd_nvram_btxt_next() 629 *cookiep = bhnd_nvram_btxt_offset_to_cookiep(btxt, io_offset); in bhnd_nvram_btxt_next() 656 bhnd_nvram_btxt_getvar(struct bhnd_nvram_data *nv, void *cookiep, void *buf, in bhnd_nvram_btxt_getvar() argument 659 return (bhnd_nvram_data_generic_rp_getvar(nv, cookiep, buf, len, type)); in bhnd_nvram_btxt_getvar() 663 bhnd_nvram_btxt_copy_val(struct bhnd_nvram_data *nv, void *cookiep, in bhnd_nvram_btxt_copy_val() argument 666 return (bhnd_nvram_data_generic_rp_copy_val(nv, cookiep, value)); in bhnd_nvram_btxt_copy_val() 670 bhnd_nvram_btxt_getvar_ptr(struct bhnd_nvram_data *nv, void *cookiep, in bhnd_nvram_btxt_getvar_ptr() argument [all …]
|
H A D | bhnd_nvram_data.h | 126 void **cookiep); 135 void *cookiep, void *buf, size_t *len, 139 void *cookiep, size_t *len, bhnd_nvram_type *type); 142 void *cookiep); 145 void *cookiep, bhnd_nvram_val **val);
|
H A D | bhnd_nvram_data_sprom.c | 819 bhnd_nvram_sprom_next(struct bhnd_nvram_data *nv, void **cookiep) in bhnd_nvram_sprom_next() argument 828 entry = *cookiep; in bhnd_nvram_sprom_next() 831 *cookiep = entry; in bhnd_nvram_sprom_next() 832 var = SPROM_COOKIE_TO_NVRAM_VAR(*cookiep); in bhnd_nvram_sprom_next() 833 BHND_NV_ASSERT(var != NULL, ("invalid cookiep %p", cookiep)); in bhnd_nvram_sprom_next() 841 error = bhnd_nvram_sprom_getvar(nv, *cookiep, NULL, in bhnd_nvram_sprom_next() 1277 bhnd_nvram_sprom_getvar_common(struct bhnd_nvram_data *nv, void *cookiep, in bhnd_nvram_sprom_getvar_common() argument 1284 BHND_NV_ASSERT(cookiep != NULL, ("NULL variable cookiep")); in bhnd_nvram_sprom_getvar_common() 1287 entry = cookiep; in bhnd_nvram_sprom_getvar_common() 1290 var = SPROM_COOKIE_TO_NVRAM_VAR(cookiep); in bhnd_nvram_sprom_getvar_common() [all …]
|
H A D | bhnd_nvram_storevar.h | 106 void *cookiep); 146 bhnd_nvstore_name_info *info, void *cookiep); 152 const bhnd_nvstore_name_info *info, void *cookiep); 234 void *cookiep[]; /**< cookiep values */ member 258 void *cookiep; /**< NVRAM variable's cookiep value */ member
|
/freebsd/sys/powerpc/powerpc/ |
H A D | nexus.c | 153 void **cookiep) in nexus_setup_intr() argument 160 if (cookiep != NULL) in nexus_setup_intr() 161 *cookiep = NULL; in nexus_setup_intr() 176 rman_get_start(r), filt, intr, arg, flags, cookiep, domain); in nexus_setup_intr()
|
H A D | intr_machdep.c | 152 **cookiep, int domain, bool ipi); 508 driver_intr_t handler, void *arg, enum intr_type flags, void **cookiep, in powerpc_setup_intr() argument 513 cookiep, domain, false)); in powerpc_setup_intr() 519 driver_intr_t handler, void *arg, enum intr_type flags, void **cookiep, in powerpc_setup_intr_int() argument 542 intr_priority(flags), flags, cookiep); in powerpc_setup_intr_int()
|
/freebsd/sys/x86/include/xen/ |
H A D | arch-intr.h | 67 struct xenisrc *isrc, void **cookiep) in xen_arch_intr_add_handler() argument 71 arg, flags, cookiep, 0)); in xen_arch_intr_add_handler()
|
/freebsd/sys/net/ |
H A D | route.h | 409 #define NH_VALIDATE(ro, cookiep, fibnum) do { \ argument 411 if (*(cookiep) != cookie) { \ 413 *(cookiep) = cookie; \
|
/freebsd/sys/sys/ |
H A D | interrupt.h | 171 u_char pri, enum intr_type flags, void **cookiep); 196 void **cookiep);
|
H A D | nv.h | 101 const char *nvlist_next(const nvlist_t *nvl, int *typep, void **cookiep); 103 const nvlist_t *nvlist_get_parent(const nvlist_t *nvl, void **cookiep); 108 const nvlist_t *nvlist_get_pararr(const nvlist_t *nvl, void **cookiep);
|
/freebsd/sys/dev/bhnd/bhndb/ |
H A D | bhnd_bhndb.c | 141 void **cookiep) in bhnd_bhndb_setup_intr() argument 166 arg, cookiep)); in bhnd_bhndb_setup_intr()
|
/freebsd/sys/contrib/libnv/ |
H A D | nvlist.c | 205 nvlist_get_parent(const nvlist_t *nvl, void **cookiep) in nvlist_get_parent() argument 212 if (cookiep != NULL) in nvlist_get_parent() 213 *cookiep = nvp; in nvlist_get_parent() 323 nvlist_get_pararr(const nvlist_t *nvl, void **cookiep) in nvlist_get_pararr() argument 329 if (cookiep != NULL) in nvlist_get_pararr() 330 *cookiep = NULL; in nvlist_get_pararr() 334 return (nvlist_get_parent(nvl, cookiep)); in nvlist_get_pararr() 1393 nvlist_next(const nvlist_t *nvl, int *typep, void **cookiep) in nvlist_next() argument 1399 if (cookiep == NULL || *cookiep == NULL) in nvlist_next() 1402 nvp = nvlist_next_nvpair(nvl, *cookiep); in nvlist_next() [all …]
|
/freebsd/sys/x86/x86/ |
H A D | nexus.c | 456 void *arg, void **cookiep) in nexus_setup_intr() argument 465 *cookiep = NULL; in nexus_setup_intr() 482 filter, ihand, arg, flags, cookiep, domain); in nexus_setup_intr() 484 rman_set_irq_cookie(irq, *cookiep); in nexus_setup_intr()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zfs_quota.c | 164 uint64_t *cookiep, void *vbuf, uint64_t *bufsizep) in zfs_userspace_many() argument 200 for (zap_cursor_init_serialized(&zc, zfsvfs->z_os, obj, *cookiep); in zfs_userspace_many() 226 *cookiep = zap_cursor_serialize(&zc); in zfs_userspace_many()
|
/freebsd/sys/dev/xen/bus/ |
H A D | intr-internal.h | 88 void **cookiep);
|
/freebsd/sys/kern/ |
H A D | subr_intr.c | 580 intr_irq_filter_t *filter, void *arg, void **cookiep) in iscr_setup_filter() argument 600 *cookiep = isrc; in iscr_setup_filter() 736 enum intr_type flags, void **cookiep) argument 747 arg, intr_priority(flags), flags, cookiep); 1078 driver_intr_t hand, void *arg, int flags, void **cookiep) argument 1117 arg, cookiep); 1124 cookiep); 1139 intr_event_remove_handler(*cookiep);
|
/freebsd/sys/dev/puc/ |
H A D | puc.c | 595 int flags, driver_filter_t *filt, void (*ihand)(void *), void *arg, void **cookiep) in puc_bus_setup_intr() argument 614 if (cookiep == NULL || res != port->p_ires) in puc_bus_setup_intr() 639 sc->sc_ires, flags, filt, ihand, arg, cookiep)); in puc_bus_setup_intr() 646 *cookiep = port; in puc_bus_setup_intr()
|
/freebsd/sys/arm/arm/ |
H A D | nexus.c | 274 driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep) in nexus_setup_intr() argument 280 return (intr_setup_irq(child, res, filt, intr, arg, flags, cookiep)); in nexus_setup_intr()
|