| /freebsd-14.2/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_data.c | 401 void *prev = *cookiep; in bhnd_nvram_data_next() 405 if ((name = nv->cls->op_next(nv, cookiep)) == NULL) 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() 549 name = bhnd_nvram_data_getvar_name(nv, cookiep); in bhnd_nvram_data_getvar_ptr_info() 638 return (nv->cls->op_copy_val(nv, cookiep, value)); in bhnd_nvram_data_copy_val() 654 void *cookiep, bhnd_nvram_val **value) in bhnd_nvram_data_generic_rp_copy_val() argument 697 return (nv->cls->op_getvar_ptr(nv, cookiep, len, type)); in bhnd_nvram_data_getvar_ptr() [all …]
|
| H A D | bhnd_nvram_store_subr.c | 191 index->cookiep[index->count] = cookiep; in bhnd_nvstore_index_append() 259 qsort_r(index->cookiep, index->count, sizeof(index->cookiep[0]), in bhnd_nvstore_index_prepare() 331 void *cookiep; in bhnd_nvstore_path_register_update() local 343 if (cookiep != NULL) { in bhnd_nvstore_path_register_update() 545 void *cookiep; in bhnd_nvstore_index_lookup() local 567 cookiep = index->cookiep[mid]; in bhnd_nvstore_index_lookup() 620 return (cookiep); in bhnd_nvstore_index_lookup() 628 return (cookiep); in bhnd_nvstore_index_lookup() 944 if (alias->cookiep != cookiep || in bhnd_nvstore_register_alias() 955 alias->cookiep != cookiep || in bhnd_nvstore_register_alias() [all …]
|
| H A D | bhnd_nvram_data_tlv.c | 100 size_t *next, void **cookiep); 104 void *cookiep); 111 void *cookiep); 469 if (*cookiep == NULL) { in bhnd_nvram_tlv_next() 538 BHND_NV_PANIC("invalid cookiep: %p", cookiep); in bhnd_nvram_tlv_getvar_ptr() 562 BHND_NV_PANIC("invalid cookiep: %p", cookiep); in bhnd_nvram_tlv_getvar_name() 750 void **cookiep) in bhnd_nvram_tlv_next_env() argument 777 if (cookiep != NULL) in bhnd_nvram_tlv_next_env() 778 *cookiep = c; in bhnd_nvram_tlv_next_env() 830 cookiep); in bhnd_nvram_tlv_get_env() [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() 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) in bhnd_nvram_bcmraw_getvar_name() argument [all …]
|
| H A D | bhnd_nvram_data_bcm.c | 76 void *cookiep); 850 hvar = bhnd_nvram_bcm_to_hdrvar(bcm, *cookiep); in bhnd_nvram_bcm_next() 864 *cookiep = hvar_next; in bhnd_nvram_bcm_next() 874 if (*cookiep == NULL) { in bhnd_nvram_bcm_next() 879 envp = *cookiep; in bhnd_nvram_bcm_next() 920 *cookiep = &bcm->hvars[i]; in bhnd_nvram_bcm_next() 928 *cookiep = __DECONST(void *, envp); in bhnd_nvram_bcm_next() 1008 envp = cookiep; in bhnd_nvram_bcm_getvar_ptr() 1030 return (cookiep); in bhnd_nvram_bcm_getvar_name() 1094 if (cookiep < (void *)&bcm->hvars[0]) in bhnd_nvram_bcm_to_hdrvar() [all …]
|
| H A D | bhnd_nvram_store.c | 261 void *cookiep; in bhnd_nvstore_parse_data() local 272 cookiep = NULL; in bhnd_nvstore_parse_data() 339 cookiep = NULL; in bhnd_nvstore_parse_data() 359 cookiep); in bhnd_nvstore_parse_data() 398 void *cookiep; in bhnd_nvstore_parse_path_entries() local 411 cookiep = NULL; in bhnd_nvstore_parse_path_entries() 451 void *cookiep, *idxp; in bhnd_nvstore_export_merge() local 828 void *cookiep; in bhnd_nvram_store_export() local 949 cookiep = NULL; in bhnd_nvram_store_export() 1106 void *cookiep; in bhnd_nvram_store_getvar() local [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() 666 return (bhnd_nvram_data_generic_rp_copy_val(nv, cookiep, value)); in bhnd_nvram_btxt_copy_val() 683 io_offset = bhnd_nvram_btxt_cookiep_to_offset(btxt, cookiep); in bhnd_nvram_btxt_getvar_ptr() 729 io_offset = bhnd_nvram_btxt_cookiep_to_offset(btxt, cookiep); in bhnd_nvram_btxt_getvar_name() 733 BHND_NV_PANIC("invalid cookiep: %p", cookiep); in bhnd_nvram_btxt_getvar_name() 776 BHND_NV_ASSERT(cookiep != NULL, ("null cookiep")); in bhnd_nvram_btxt_cookiep_to_offset() [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 | 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() 841 error = bhnd_nvram_sprom_getvar(nv, *cookiep, NULL, in bhnd_nvram_sprom_next() 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() 1291 BHND_NV_ASSERT(var != NULL, ("invalid cookiep %p", cookiep)); in bhnd_nvram_sprom_getvar_common() 1373 BHND_NV_ASSERT(cookiep != NULL, ("NULL variable cookiep")); in bhnd_nvram_sprom_getvar_name() 1375 var = SPROM_COOKIE_TO_NVRAM_VAR(cookiep); in bhnd_nvram_sprom_getvar_name() [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-14.2/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-14.2/sys/powerpc/powerpc/ |
| H A D | nexus.c | 157 void **cookiep) in nexus_setup_intr() argument 164 if (cookiep != NULL) in nexus_setup_intr() 165 *cookiep = NULL; in nexus_setup_intr() 180 rman_get_start(r), filt, intr, arg, flags, cookiep, domain); in nexus_setup_intr()
|
| /freebsd-14.2/sys/sys/ |
| H A D | interrupt.h | 170 u_char pri, enum intr_type flags, void **cookiep); 195 void **cookiep);
|
| H A D | nv.h | 107 const char *nvlist_next(const nvlist_t *nvl, int *typep, void **cookiep); 109 const nvlist_t *nvlist_get_parent(const nvlist_t *nvl, void **cookiep); 114 const nvlist_t *nvlist_get_pararr(const nvlist_t *nvl, void **cookiep);
|
| /freebsd-14.2/sys/net/ |
| H A D | route.h | 409 #define NH_VALIDATE(ro, cookiep, fibnum) do { \ argument 411 if (*(cookiep) != cookie) { \ 413 *(cookiep) = cookie; \
|
| /freebsd-14.2/sys/dev/bhnd/bhndb/ |
| H A D | bhnd_bhndb.c | 142 void **cookiep) in bhnd_bhndb_setup_intr() argument 167 arg, cookiep)); in bhnd_bhndb_setup_intr()
|
| /freebsd-14.2/sys/contrib/libnv/ |
| H A D | nvlist.c | 212 nvlist_get_parent(const nvlist_t *nvl, void **cookiep) in nvlist_get_parent() argument 219 if (cookiep != NULL) in nvlist_get_parent() 220 *cookiep = nvp; in nvlist_get_parent() 330 nvlist_get_pararr(const nvlist_t *nvl, void **cookiep) in nvlist_get_pararr() argument 336 if (cookiep != NULL) in nvlist_get_pararr() 337 *cookiep = NULL; in nvlist_get_pararr() 341 return (nvlist_get_parent(nvl, cookiep)); in nvlist_get_pararr() 1406 if (cookiep == NULL || *cookiep == NULL) in nvlist_next() 1409 nvp = nvlist_next_nvpair(nvl, *cookiep); in nvlist_next() 1414 if (cookiep != NULL) in nvlist_next() [all …]
|
| /freebsd-14.2/sys/x86/x86/ |
| H A D | nexus.c | 457 void *arg, void **cookiep) in nexus_setup_intr() argument 465 *cookiep = NULL; in nexus_setup_intr() 479 rman_get_start(irq), filter, ihand, arg, flags, cookiep, domain); in nexus_setup_intr() 481 rman_set_irq_cookie(irq, *cookiep); in nexus_setup_intr()
|
| /freebsd-14.2/sys/dev/xen/bus/ |
| H A D | intr-internal.h | 88 void **cookiep);
|
| /freebsd-14.2/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 199 for (zap_cursor_init_serialized(&zc, zfsvfs->z_os, obj, *cookiep); in zfs_userspace_many() 225 *cookiep = zap_cursor_serialize(&zc); in zfs_userspace_many()
|
| /freebsd-14.2/sys/kern/ |
| H A D | subr_intr.c | 564 intr_irq_filter_t *filter, void *arg, void **cookiep) in iscr_setup_filter() argument 584 *cookiep = isrc; in iscr_setup_filter() 720 enum intr_type flags, void **cookiep) argument 731 arg, intr_priority(flags), flags, cookiep); 1058 driver_intr_t hand, void *arg, int flags, void **cookiep) argument 1097 arg, cookiep); 1104 cookiep); 1119 intr_event_remove_handler(*cookiep);
|
| /freebsd-14.2/sys/dev/puc/ |
| H A D | puc.c | 605 int flags, driver_filter_t *filt, void (*ihand)(void *), void *arg, void **cookiep) in puc_bus_setup_intr() argument 624 if (cookiep == NULL || res != port->p_ires) in puc_bus_setup_intr() 649 sc->sc_ires, flags, filt, ihand, arg, cookiep)); in puc_bus_setup_intr() 656 *cookiep = port; in puc_bus_setup_intr()
|
| /freebsd-14.2/sys/arm/arm/ |
| H A D | nexus.c | 337 driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep) in nexus_setup_intr() argument 343 return (intr_setup_irq(child, res, filt, intr, arg, flags, cookiep)); in nexus_setup_intr()
|
| /freebsd-14.2/sys/riscv/riscv/ |
| H A D | nexus.c | 267 driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep) in nexus_setup_intr() argument 279 error = intr_setup_irq(child, res, filt, intr, arg, flags, cookiep); in nexus_setup_intr()
|