| /freebsd-12.1/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_data.c | 405 void *prev = *cookiep; in bhnd_nvram_data_next() 409 if ((name = nv->cls->op_next(nv, cookiep)) == NULL) in bhnd_nvram_data_next() 456 void *cookiep; in bhnd_nvram_data_generic_find() local 458 cookiep = NULL; in bhnd_nvram_data_generic_find() 459 while ((next = bhnd_nvram_data_next(nv, &cookiep))) { in bhnd_nvram_data_generic_find() 461 return (cookiep); in bhnd_nvram_data_generic_find() 554 name = bhnd_nvram_data_getvar_name(nv, cookiep); in bhnd_nvram_data_getvar_ptr_info() 643 return (nv->cls->op_copy_val(nv, cookiep, value)); in bhnd_nvram_data_copy_val() 659 void *cookiep, bhnd_nvram_val **value) in bhnd_nvram_data_generic_rp_copy_val() argument 702 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 | 103 size_t *next, void **cookiep); 107 void *cookiep); 114 void *cookiep); 473 if (*cookiep == NULL) { in bhnd_nvram_tlv_next() 542 BHND_NV_PANIC("invalid cookiep: %p", cookiep); in bhnd_nvram_tlv_getvar_ptr() 566 BHND_NV_PANIC("invalid cookiep: %p", cookiep); in bhnd_nvram_tlv_getvar_name() 754 void **cookiep) in bhnd_nvram_tlv_next_env() argument 781 if (cookiep != NULL) in bhnd_nvram_tlv_next_env() 782 *cookiep = c; in bhnd_nvram_tlv_next_env() 834 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 | 264 void *cookiep; in bhnd_nvstore_parse_data() local 275 cookiep = NULL; in bhnd_nvstore_parse_data() 342 cookiep = NULL; in bhnd_nvstore_parse_data() 362 cookiep); in bhnd_nvstore_parse_data() 402 void *cookiep; in bhnd_nvstore_parse_path_entries() local 415 cookiep = NULL; in bhnd_nvstore_parse_path_entries() 456 void *cookiep, *idxp; in bhnd_nvstore_export_merge() local 834 void *cookiep; in bhnd_nvram_store_export() local 955 cookiep = NULL; in bhnd_nvram_store_export() 1112 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); 591 bhnd_nvram_btxt_next(struct bhnd_nvram_data *nv, void **cookiep) in bhnd_nvram_btxt_next() argument 602 if (*cookiep == NULL) { in bhnd_nvram_btxt_next() 607 io_offset = bhnd_nvram_btxt_cookiep_to_offset(btxt, *cookiep); in bhnd_nvram_btxt_next() 633 *cookiep = bhnd_nvram_btxt_offset_to_cookiep(btxt, io_offset); in bhnd_nvram_btxt_next() 670 return (bhnd_nvram_data_generic_rp_copy_val(nv, cookiep, value)); in bhnd_nvram_btxt_copy_val() 687 io_offset = bhnd_nvram_btxt_cookiep_to_offset(btxt, cookiep); in bhnd_nvram_btxt_getvar_ptr() 733 io_offset = bhnd_nvram_btxt_cookiep_to_offset(btxt, cookiep); in bhnd_nvram_btxt_getvar_name() 737 BHND_NV_PANIC("invalid cookiep: %p", cookiep); in bhnd_nvram_btxt_getvar_name() 780 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() 1287 BHND_NV_ASSERT(cookiep != NULL, ("NULL variable cookiep")); in bhnd_nvram_sprom_getvar_common() 1290 entry = cookiep; in bhnd_nvram_sprom_getvar_common() 1293 var = SPROM_COOKIE_TO_NVRAM_VAR(cookiep); in bhnd_nvram_sprom_getvar_common() 1294 BHND_NV_ASSERT(var != NULL, ("invalid cookiep %p", cookiep)); in bhnd_nvram_sprom_getvar_common() 1376 BHND_NV_ASSERT(cookiep != NULL, ("NULL variable cookiep")); in bhnd_nvram_sprom_getvar_name() 1378 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-12.1/sys/i386/ibcs2/ |
| H A D | ibcs2_misc.c | 387 cookiep = cookies; in ibcs2_getdents() 400 cookiep++; in ibcs2_getdents() 416 if (cookiep) { in ibcs2_getdents() 417 off = *cookiep++; in ibcs2_getdents() 441 if (cookiep) { in ibcs2_getdents() 442 off = *cookiep++; in ibcs2_getdents() 548 cookiep = cookies; in ibcs2_read() 561 cookiep++; in ibcs2_read() 577 if (cookiep) { in ibcs2_read() 604 if (cookiep) { in ibcs2_read() [all …]
|
| /freebsd-12.1/sys/mips/mips/ |
| H A D | intr_machdep.c | 155 void (*handler)(void*), void *arg, int irq, int flags, void **cookiep) in cpu_establish_hardintr() argument 184 intr_priority(flags), flags, cookiep); in cpu_establish_hardintr() 193 void **cookiep) in cpu_establish_softintr() argument 217 intr_priority(flags), flags, cookiep); in cpu_establish_softintr()
|
| H A D | mips_pic.c | 82 int flags, void **cookiep); 630 int flags, void **cookiep) in cpu_establish_intr() argument 683 cookiep); in cpu_establish_intr() 690 void (*handler)(void*), void *arg, int irq, int flags, void **cookiep) in cpu_establish_hardintr() argument 698 flags, cookiep); in cpu_establish_hardintr() 704 void **cookiep) in cpu_establish_softintr() argument 712 cookiep); in cpu_establish_softintr()
|
| /freebsd-12.1/sys/mips/nlm/ |
| H A D | intr_machdep.c | 119 void **cookiep) in cpu_establish_softintr() argument 171 void **cookiep) in cpu_establish_hardintr() argument 216 intr_priority(flags), flags, cookiep); in cpu_establish_hardintr()
|
| /freebsd-12.1/sys/mips/malta/ |
| H A D | gt.c | 91 driver_intr_t *intr, void *arg, void **cookiep) in gt_setup_intr() argument 94 filt, intr, arg, cookiep); in gt_setup_intr()
|
| /freebsd-12.1/sys/arm/arm/ |
| H A D | nexus.c | 110 int flags, driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep); 321 driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep) in nexus_setup_intr() argument 331 return(intr_setup_irq(child, res, filt, intr, arg, flags, cookiep)); in nexus_setup_intr() 335 filt, intr, arg, irq, flags, cookiep); in nexus_setup_intr()
|
| H A D | intr.c | 140 void (*hand)(void*), void *arg, int irq, int flags, void **cookiep) in arm_setup_irqhandler() argument 159 intr_priority(flags), flags, cookiep); in arm_setup_irqhandler()
|
| /freebsd-12.1/sys/sys/ |
| H A D | interrupt.h | 175 u_char pri, enum intr_type flags, void **cookiep); 197 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-12.1/sys/dev/bhnd/bhndb/ |
| H A D | bhnd_bhndb.c | 146 void **cookiep) in bhnd_bhndb_setup_intr() argument 171 arg, cookiep)); in bhnd_bhndb_setup_intr()
|
| /freebsd-12.1/sys/contrib/libnv/ |
| H A D | nvlist.c | 210 nvlist_get_parent(const nvlist_t *nvl, void **cookiep) in nvlist_get_parent() argument 217 if (cookiep != NULL) in nvlist_get_parent() 218 *cookiep = nvp; in nvlist_get_parent() 274 nvlist_get_pararr(const nvlist_t *nvl, void **cookiep) in nvlist_get_pararr() argument 280 if (cookiep != NULL) in nvlist_get_pararr() 281 *cookiep = NULL; in nvlist_get_pararr() 285 return (nvlist_get_parent(nvl, cookiep)); in nvlist_get_pararr() 1405 if (cookiep == NULL || *cookiep == NULL) in nvlist_next() 1408 nvp = nvlist_next_nvpair(nvl, *cookiep); in nvlist_next() 1413 if (cookiep != NULL) in nvlist_next() [all …]
|
| /freebsd-12.1/sys/powerpc/powerpc/ |
| H A D | nexus.c | 128 void **cookiep) in nexus_setup_intr() argument 144 rman_get_start(r), filt, intr, arg, flags, cookiep); in nexus_setup_intr()
|
| /freebsd-12.1/sys/riscv/riscv/ |
| H A D | nexus.c | 95 int flags, driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep); 270 driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep) in nexus_setup_intr() argument 282 error = intr_setup_irq(child, res, filt, intr, arg, flags, cookiep); in nexus_setup_intr()
|
| /freebsd-12.1/sys/net/ |
| H A D | route.h | 431 #define RT_VALIDATE(ro, cookiep, fibnum) do { \ argument 433 if (*(cookiep) != cookie) { \ 435 *(cookiep) = cookie; \
|