| /freebsd-13.1/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_data.c | 403 void *prev = *cookiep; in bhnd_nvram_data_next() 407 if ((name = nv->cls->op_next(nv, cookiep)) == NULL) in bhnd_nvram_data_next() 454 void *cookiep; in bhnd_nvram_data_generic_find() local 456 cookiep = NULL; in bhnd_nvram_data_generic_find() 457 while ((next = bhnd_nvram_data_next(nv, &cookiep))) { in bhnd_nvram_data_generic_find() 459 return (cookiep); in bhnd_nvram_data_generic_find() 551 name = bhnd_nvram_data_getvar_name(nv, cookiep); in bhnd_nvram_data_getvar_ptr_info() 640 return (nv->cls->op_copy_val(nv, cookiep, value)); in bhnd_nvram_data_copy_val() 656 void *cookiep, bhnd_nvram_val **value) in bhnd_nvram_data_generic_rp_copy_val() argument 699 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 | 194 index->cookiep[index->count] = cookiep; in bhnd_nvstore_index_append() 262 qsort_r(index->cookiep, index->count, sizeof(index->cookiep[0]), sc, in bhnd_nvstore_index_prepare() 334 void *cookiep; in bhnd_nvstore_path_register_update() local 346 if (cookiep != NULL) { in bhnd_nvstore_path_register_update() 548 void *cookiep; in bhnd_nvstore_index_lookup() local 570 cookiep = index->cookiep[mid]; in bhnd_nvstore_index_lookup() 623 return (cookiep); in bhnd_nvstore_index_lookup() 631 return (cookiep); in bhnd_nvstore_index_lookup() 947 if (alias->cookiep != cookiep || in bhnd_nvstore_register_alias() 958 alias->cookiep != cookiep || in bhnd_nvstore_register_alias() [all …]
|
| H A D | bhnd_nvram_data_tlv.c | 102 size_t *next, void **cookiep); 106 void *cookiep); 113 void *cookiep); 471 if (*cookiep == NULL) { in bhnd_nvram_tlv_next() 540 BHND_NV_PANIC("invalid cookiep: %p", cookiep); in bhnd_nvram_tlv_getvar_ptr() 564 BHND_NV_PANIC("invalid cookiep: %p", cookiep); in bhnd_nvram_tlv_getvar_name() 752 void **cookiep) in bhnd_nvram_tlv_next_env() argument 779 if (cookiep != NULL) in bhnd_nvram_tlv_next_env() 780 *cookiep = c; in bhnd_nvram_tlv_next_env() 832 cookiep); in bhnd_nvram_tlv_get_env() [all …]
|
| H A D | bhnd_nvram_data_bcmraw.c | 379 bhnd_nvram_bcmraw_next(struct bhnd_nvram_data *nv, void **cookiep) in bhnd_nvram_bcmraw_next() argument 386 if (*cookiep == NULL) { in bhnd_nvram_bcmraw_next() 391 envp = *cookiep; in bhnd_nvram_bcmraw_next() 400 *cookiep = (void *)(uintptr_t)envp; in bhnd_nvram_bcmraw_next() 427 return (bhnd_nvram_data_generic_rp_getvar(nv, cookiep, buf, len, type)); in bhnd_nvram_bcmraw_getvar() 431 bhnd_nvram_bcmraw_copy_val(struct bhnd_nvram_data *nv, void *cookiep, in bhnd_nvram_bcmraw_copy_val() argument 434 return (bhnd_nvram_data_generic_rp_copy_val(nv, cookiep, value)); in bhnd_nvram_bcmraw_copy_val() 438 bhnd_nvram_bcmraw_getvar_ptr(struct bhnd_nvram_data *nv, void *cookiep, in bhnd_nvram_bcmraw_getvar_ptr() argument 444 envp = cookiep; in bhnd_nvram_bcmraw_getvar_ptr() 453 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 | 78 void *cookiep); 852 hvar = bhnd_nvram_bcm_to_hdrvar(bcm, *cookiep); in bhnd_nvram_bcm_next() 866 *cookiep = hvar_next; in bhnd_nvram_bcm_next() 876 if (*cookiep == NULL) { in bhnd_nvram_bcm_next() 881 envp = *cookiep; in bhnd_nvram_bcm_next() 922 *cookiep = &bcm->hvars[i]; in bhnd_nvram_bcm_next() 930 *cookiep = __DECONST(void *, envp); in bhnd_nvram_bcm_next() 1010 envp = cookiep; in bhnd_nvram_bcm_getvar_ptr() 1032 return (cookiep); in bhnd_nvram_bcm_getvar_name() 1096 if (cookiep < (void *)&bcm->hvars[0]) in bhnd_nvram_bcm_to_hdrvar() [all …]
|
| H A D | bhnd_nvram_store.c | 263 void *cookiep; in bhnd_nvstore_parse_data() local 274 cookiep = NULL; in bhnd_nvstore_parse_data() 341 cookiep = NULL; in bhnd_nvstore_parse_data() 361 cookiep); in bhnd_nvstore_parse_data() 400 void *cookiep; in bhnd_nvstore_parse_path_entries() local 413 cookiep = NULL; in bhnd_nvstore_parse_path_entries() 453 void *cookiep, *idxp; in bhnd_nvstore_export_merge() local 831 void *cookiep; in bhnd_nvram_store_export() local 952 cookiep = NULL; in bhnd_nvram_store_export() 1109 void *cookiep; in bhnd_nvram_store_getvar() local [all …]
|
| H A D | bhnd_nvram_datavar.h | 49 struct bhnd_nvram_data *nv, void *cookiep, 52 struct bhnd_nvram_data *nv, void *cookiep, 90 void **cookiep); 98 struct bhnd_nvram_data *nv, void *cookiep, 109 void *cookiep); 113 void *cookiep, void *buf, size_t *len, 118 struct bhnd_nvram_data *nv, void *cookiep,
|
| H A D | bhnd_nvram_data_btxt.c | 83 void *cookiep); 589 bhnd_nvram_btxt_next(struct bhnd_nvram_data *nv, void **cookiep) in bhnd_nvram_btxt_next() argument 600 if (*cookiep == NULL) { in bhnd_nvram_btxt_next() 605 io_offset = bhnd_nvram_btxt_cookiep_to_offset(btxt, *cookiep); in bhnd_nvram_btxt_next() 631 *cookiep = bhnd_nvram_btxt_offset_to_cookiep(btxt, io_offset); in bhnd_nvram_btxt_next() 668 return (bhnd_nvram_data_generic_rp_copy_val(nv, cookiep, value)); in bhnd_nvram_btxt_copy_val() 685 io_offset = bhnd_nvram_btxt_cookiep_to_offset(btxt, cookiep); in bhnd_nvram_btxt_getvar_ptr() 731 io_offset = bhnd_nvram_btxt_cookiep_to_offset(btxt, cookiep); in bhnd_nvram_btxt_getvar_name() 735 BHND_NV_PANIC("invalid cookiep: %p", cookiep); in bhnd_nvram_btxt_getvar_name() 778 BHND_NV_ASSERT(cookiep != NULL, ("null cookiep")); in bhnd_nvram_btxt_cookiep_to_offset() [all …]
|
| H A D | bhnd_nvram_data.h | 127 void **cookiep); 136 void *cookiep, void *buf, size_t *len, 140 void *cookiep, size_t *len, bhnd_nvram_type *type); 143 void *cookiep); 146 void *cookiep, bhnd_nvram_val **val);
|
| H A D | bhnd_nvram_data_sprom.c | 830 entry = *cookiep; in bhnd_nvram_sprom_next() 833 *cookiep = entry; in bhnd_nvram_sprom_next() 834 var = SPROM_COOKIE_TO_NVRAM_VAR(*cookiep); in bhnd_nvram_sprom_next() 843 error = bhnd_nvram_sprom_getvar(nv, *cookiep, NULL, in bhnd_nvram_sprom_next() 1286 BHND_NV_ASSERT(cookiep != NULL, ("NULL variable cookiep")); in bhnd_nvram_sprom_getvar_common() 1289 entry = cookiep; in bhnd_nvram_sprom_getvar_common() 1292 var = SPROM_COOKIE_TO_NVRAM_VAR(cookiep); in bhnd_nvram_sprom_getvar_common() 1293 BHND_NV_ASSERT(var != NULL, ("invalid cookiep %p", cookiep)); in bhnd_nvram_sprom_getvar_common() 1375 BHND_NV_ASSERT(cookiep != NULL, ("NULL variable cookiep")); in bhnd_nvram_sprom_getvar_name() 1377 var = SPROM_COOKIE_TO_NVRAM_VAR(cookiep); in bhnd_nvram_sprom_getvar_name() [all …]
|
| H A D | bhnd_nvram_storevar.h | 107 void *cookiep); 147 bhnd_nvstore_name_info *info, void *cookiep); 153 const bhnd_nvstore_name_info *info, void *cookiep); 235 void *cookiep[]; /**< cookiep values */ member 259 void *cookiep; /**< NVRAM variable's cookiep value */ member
|
| /freebsd-13.1/sys/mips/mips/ |
| H A D | intr_machdep.c | 177 void (*handler)(void*), void *arg, int irq, int flags, void **cookiep) in cpu_establish_hardintr() argument 206 intr_priority(flags), flags, cookiep); in cpu_establish_hardintr() 215 void **cookiep) in cpu_establish_softintr() argument 239 intr_priority(flags), flags, cookiep); in cpu_establish_softintr()
|
| H A D | mips_pic.c | 82 int flags, void **cookiep); 629 int flags, void **cookiep) in cpu_establish_intr() argument 682 cookiep); in cpu_establish_intr() 689 void (*handler)(void*), void *arg, int irq, int flags, void **cookiep) in cpu_establish_hardintr() argument 697 flags, cookiep); in cpu_establish_hardintr() 703 void **cookiep) in cpu_establish_softintr() argument 711 cookiep); in cpu_establish_softintr()
|
| H A D | nexus.c | 120 driver_intr_t *intr, void *arg, void **cookiep); 480 driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep) in nexus_setup_intr() argument 483 return (intr_setup_irq(child, res, filt, intr, arg, flags, cookiep)); in nexus_setup_intr() 496 irq, flags, cookiep); in nexus_setup_intr()
|
| /freebsd-13.1/sys/powerpc/powerpc/ |
| H A D | nexus.c | 143 void **cookiep) in nexus_setup_intr() argument 150 if (cookiep != NULL) in nexus_setup_intr() 151 *cookiep = NULL; in nexus_setup_intr() 166 rman_get_start(r), filt, intr, arg, flags, cookiep, domain); in nexus_setup_intr()
|
| /freebsd-13.1/sys/mips/malta/ |
| H A D | gt.c | 90 driver_intr_t *intr, void *arg, void **cookiep) in gt_setup_intr() argument 93 filt, intr, arg, cookiep); in gt_setup_intr()
|
| /freebsd-13.1/sys/mips/nlm/ |
| H A D | intr_machdep.c | 130 void **cookiep) in cpu_establish_softintr() argument 182 void **cookiep) in cpu_establish_hardintr() argument 227 intr_priority(flags), flags, cookiep); in cpu_establish_hardintr()
|
| /freebsd-13.1/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 | 108 const char *nvlist_next(const nvlist_t *nvl, int *typep, void **cookiep); 110 const nvlist_t *nvlist_get_parent(const nvlist_t *nvl, void **cookiep); 115 const nvlist_t *nvlist_get_pararr(const nvlist_t *nvl, void **cookiep);
|
| /freebsd-13.1/sys/dev/bhnd/bhndb/ |
| H A D | bhnd_bhndb.c | 144 void **cookiep) in bhnd_bhndb_setup_intr() argument 169 arg, cookiep)); in bhnd_bhndb_setup_intr()
|
| /freebsd-13.1/sys/net/ |
| H A D | route.h | 406 #define NH_VALIDATE(ro, cookiep, fibnum) do { \ argument 408 if (*(cookiep) != cookie) { \ 410 *(cookiep) = cookie; \
|
| /freebsd-13.1/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() 1391 if (cookiep == NULL || *cookiep == NULL) in nvlist_next() 1394 nvp = nvlist_next_nvpair(nvl, *cookiep); in nvlist_next() 1399 if (cookiep != NULL) in nvlist_next() [all …]
|
| /freebsd-13.1/sys/arm/arm/ |
| H A D | nexus.c | 104 int flags, driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep); 307 driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep) in nexus_setup_intr() argument 313 return(intr_setup_irq(child, res, filt, intr, arg, flags, cookiep)); in nexus_setup_intr()
|
| /freebsd-13.1/sys/riscv/riscv/ |
| H A D | intr_machdep.c | 119 void (*handler)(void*), void *arg, int irq, int flags, void **cookiep) in riscv_setup_intr() argument 137 filt, handler, arg, intr_priority(flags), flags, cookiep); in riscv_setup_intr()
|
| H A D | nexus.c | 101 int flags, driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep); 292 driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep) in nexus_setup_intr() argument 304 error = intr_setup_irq(child, res, filt, intr, arg, flags, cookiep); in nexus_setup_intr()
|