Home
last modified time | relevance | path

Searched refs:mod_hash_key_t (Results 1 – 25 of 58) sorted by relevance

123

/illumos-gate/usr/src/uts/common/sys/
H A Dmodhash.h45 typedef void *mod_hash_key_t; typedef
63 int mod_hash_strkey_cmp(mod_hash_key_t, mod_hash_key_t);
64 void mod_hash_strkey_dtor(mod_hash_key_t);
66 uint_t mod_hash_bystr(void *, mod_hash_key_t);
74 int mod_hash_ptrkey_cmp(mod_hash_key_t, mod_hash_key_t);
75 uint_t mod_hash_byptr(void *, mod_hash_key_t);
82 int mod_hash_idkey_cmp(mod_hash_key_t, mod_hash_key_t);
83 uint_t mod_hash_byid(void *, mod_hash_key_t);
89 mod_hash_t *mod_hash_create_extended(char *, size_t, void (*)(mod_hash_key_t),
90 void (*)(mod_hash_val_t), uint_t (*)(void *, mod_hash_key_t), void *,
[all …]
H A Dmodhash_impl.h43 mod_hash_key_t mhe_key; /* stored hash key */
63 void (*mh_kdtor)(mod_hash_key_t);
67 int (*mh_keycmp)(mod_hash_key_t, mod_hash_key_t);
70 uint_t (*mh_hashalg)(void *, mod_hash_key_t);
96 uint_t i_mod_hash(mod_hash_t *, mod_hash_key_t);
97 int i_mod_hash_insert_nosync(mod_hash_t *, mod_hash_key_t, mod_hash_val_t,
99 int i_mod_hash_remove_nosync(mod_hash_t *, mod_hash_key_t, mod_hash_val_t *);
100 int i_mod_hash_find_nosync(mod_hash_t *, mod_hash_key_t, mod_hash_val_t *);
101 void i_mod_hash_walk_nosync(mod_hash_t *, uint_t (*)(mod_hash_key_t,
H A Ddls_impl.h71 mod_hash_key_t dh_key; /* SL */
/illumos-gate/usr/src/uts/common/os/
H A Dmodhash.c179 mod_hash_null_keydtor(mod_hash_key_t key) in mod_hash_null_keydtor()
205 mod_hash_bystr(void *hash_data, mod_hash_key_t key) in mod_hash_bystr()
223 mod_hash_strkey_cmp(mod_hash_key_t key1, mod_hash_key_t key2) in mod_hash_strkey_cmp()
229 mod_hash_strkey_dtor(mod_hash_key_t key) in mod_hash_strkey_dtor()
271 mod_hash_byptr(void *hash_data, mod_hash_key_t key) in mod_hash_byptr()
280 mod_hash_ptrkey_cmp(mod_hash_key_t key1, mod_hash_key_t key2) in mod_hash_ptrkey_cmp()
340 mod_hash_byid(void *hash_data, mod_hash_key_t key) in mod_hash_byid()
347 mod_hash_idkey_cmp(mod_hash_key_t key1, mod_hash_key_t key2) in mod_hash_idkey_cmp()
429 void (*kdtor)(mod_hash_key_t), /* key destructor */ in mod_hash_create_extended() argument
431 uint_t (*hash_alg)(void *, mod_hash_key_t), /* hash algorithm */ in mod_hash_create_extended()
[all …]
H A Dspace.c262 (mod_hash_key_t)s, (mod_hash_val_t)ptr); in space_store()
299 rval = mod_hash_find(space_hash, (mod_hash_key_t)key, &val); in space_fetch()
312 (void) mod_hash_destroy(space_hash, (mod_hash_key_t)key); in space_free()
H A Dmodsubr.c869 mod_hash_key_t key; in hwc_hash_insert()
874 if (mod_hash_find(hash, (mod_hash_key_t)name, in hwc_hash_insert()
908 if (mod_hash_find(hash, (mod_hash_key_t)name, in hwc_hash_remove()
919 (void) mod_hash_destroy(hash, (mod_hash_key_t)name); in hwc_hash_remove()
924 (void) mod_hash_replace(hash, (mod_hash_key_t)key, in hwc_hash_remove()
1080 if (mod_hash_find(hwc_par_hash, (mod_hash_key_t)pathname, &val) == 0) { in hwc_get_child_spec()
1096 (mod_hash_key_t)deviname, &val) == 0)) in hwc_get_child_spec()
1110 (mod_hash_key_t)parname, &val) == 0)) { in hwc_get_child_spec()
1123 (mod_hash_find(hwc_par_hash, (mod_hash_key_t)bindname, &val) == 0)) in hwc_get_child_spec()
1134 (mod_hash_find(hwc_par_hash, (mod_hash_key_t)drvname, &val) == 0)) in hwc_get_child_spec()
[all …]
H A Ddacf.c343 if (mod_hash_insert(hash, (mod_hash_key_t)rule->r_devspec_data, in dacf_rule_insert()
651 if (mod_hash_find(dacf_get_op_hash(op, ds), (mod_hash_key_t)match_info, in dacf_match()
707 if (mod_hash_find(dacf_module_hash, (mod_hash_key_t)mod_name, in dacf_module_register()
733 if (mod_hash_insert(dacf_module_hash, (mod_hash_key_t)str, in dacf_module_register()
806 if (mod_hash_find(dacf_module_hash, (mod_hash_key_t)mod_name, in dacf_module_unregister()
937 (mod_hash_key_t)rule->r_module, in dacf_op_invoke()
1260 (void) mod_hash_destroy(dacf_info_hash, (mod_hash_key_t)dmdp); in dacf_store_info()
1266 (void) mod_hash_replace(dacf_info_hash, (mod_hash_key_t)dmdp, in dacf_store_info()
1281 if (mod_hash_find(dacf_info_hash, (mod_hash_key_t)dmdp, in dacf_retrieve_info()
H A Dproject.c133 project_hash_by_id(void *hash_data, mod_hash_key_t key) in project_hash_by_id()
143 return (mod_hash_byid(hash_data, (mod_hash_key_t)(uintptr_t)mykey)); in project_hash_by_id()
147 project_hash_key_cmp(mod_hash_key_t key1, mod_hash_key_t key2) in project_hash_key_cmp()
231 if (mod_hash_find(projects_hash, (mod_hash_key_t)&pz, in project_hold_by_id()
252 if (mod_hash_find(projects_hash, (mod_hash_key_t)&pz, in project_hold_by_id()
274 if (mod_hash_insert_reserve(projects_hash, (mod_hash_key_t)p, in project_hold_by_id()
365 if (mod_hash_destroy(projects_hash, (mod_hash_key_t)p)) in project_rele()
H A Dlabelsys.c212 if (mod_hash_find(hash, (mod_hash_key_t)name, &hv) == 0) { in tnrhtp_find()
578 if (mod_hash_find(tpc_name_hash, (mod_hash_key_t)tpent->name, in tnrhtp_create()
584 (mod_hash_key_t)tpent->name); in tnrhtp_create()
591 (void) mod_hash_insert(tpc_name_hash, (mod_hash_key_t)tpc->tpc_tp.name, in tnrhtp_create()
607 if (mod_hash_find(tpc_name_hash, (mod_hash_key_t)tname, &hv) == 0) { in tnrhtp_delete()
612 (mod_hash_key_t)tpc->tpc_tp.name); in tnrhtp_delete()
622 tpc_delete(mod_hash_key_t key, mod_hash_val_t *val, void *arg) in tpc_delete()
H A Dtask.c346 if (mod_hash_find(task_hash, (mod_hash_key_t)(uintptr_t)id, in task_find()
446 (mod_hash_key_t)(uintptr_t)tk->tk_tkid) != 0) in task_rele()
560 if (mod_hash_insert_reserve(task_hash, (mod_hash_key_t)(uintptr_t)tkid, in task_create()
1014 (mod_hash_key_t)(uintptr_t)task0p->tk_tkid, in task_init()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dmodhash.c57 void (*hte_format)(const mod_hash_key_t, char *, size_t);
60 static void format_strhash(const mod_hash_key_t, char *, size_t);
61 static void format_ptrhash(const mod_hash_key_t, char *, size_t);
62 static void format_idhash(const mod_hash_key_t, char *, size_t);
63 static void format_default(const mod_hash_key_t, char *, size_t);
517 format_strhash(const mod_hash_key_t key, char *keystr, size_t keystrlen) in format_strhash()
527 format_ptrhash(const mod_hash_key_t key, char *keystr, size_t keystrlen) in format_ptrhash()
538 format_idhash(const mod_hash_key_t key, char *keystr, size_t keystrlen) in format_idhash()
544 format_default(const mod_hash_key_t key, char *keystr, size_t keystrlen) in format_default()
/illumos-gate/usr/src/uts/common/io/dls/
H A Ddls_link.c53 ((mod_hash_key_t)(uintptr_t)((_sap) << VLAN_ID_SIZE))
223 i_dls_head_hold(mod_hash_key_t key, mod_hash_val_t val) in i_dls_head_hold()
252 i_dls_head_alloc(mod_hash_key_t key) in i_dls_head_alloc()
282 mod_hash_key_t key; in i_dls_link_rx_func()
350 mod_hash_key_t key; in i_dls_link_rx()
567 mod_hash_key_t key; in dls_rx_promisc()
800 if ((err = mod_hash_find(i_dls_link_hash, (mod_hash_key_t)name, in dls_link_hold_common()
817 err = mod_hash_insert(i_dls_link_hash, (mod_hash_key_t)dlp->dl_name, in dls_link_hold_common()
900 (mod_hash_key_t)dlp->dl_name, &val); in dls_link_rele()
917 if (mod_hash_find(i_dls_link_hash, (mod_hash_key_t)name, in dls_link_rele_by_name()
[all …]
H A Ddls_mgmt.c738 if (mod_hash_find(i_dls_link_hash, (mod_hash_key_t)ddp->dd_mac, in dls_devnet_stat_update()
832 (mod_hash_key_t)(uintptr_t)linkid, in dls_devnet_set()
843 (mod_hash_key_t)macname, (mod_hash_val_t *)&ddp)) == 0) { in dls_devnet_set()
898 (mod_hash_key_t)ddp->dd_mac, (mod_hash_val_t)ddp) == 0); in dls_devnet_set()
906 (mod_hash_key_t)(uintptr_t)linkid, in dls_devnet_set()
985 (mod_hash_key_t)macname, (mod_hash_val_t *)&ddp)) != 0) { in dls_devnet_unset()
1060 (mod_hash_key_t)ddp->dd_mac, &val) == 0); in dls_devnet_unset()
1064 (mod_hash_key_t)(uintptr_t)ddp->dd_linkid, &val) == 0); in dls_devnet_unset()
1139 (mod_hash_key_t)dlp->dl_name, (mod_hash_val_t *)&ddp)) != 0) { in dls_devnet_hold_tmp_by_link()
1169 (mod_hash_key_t)(uintptr_t)linkid, (mod_hash_val_t *)&ddp)) != 0) { in dls_devnet_hold_common()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvsw_switching.c112 static void vsw_fdbe_find_cb(mod_hash_key_t key, mod_hash_val_t val);
827 if (mod_hash_find(vswp->mfdb, (mod_hash_key_t)key, in vsw_forward_grp()
999 (mod_hash_key_t)VLAN_ID_KEY(vswp->pvid), in vsw_vlan_add_ids()
1008 (mod_hash_key_t)VLAN_ID_KEY(vswp->vids[i].vl_vid), in vsw_vlan_add_ids()
1022 (mod_hash_key_t)VLAN_ID_KEY(portp->pvid), in vsw_vlan_add_ids()
1032 (mod_hash_key_t)VLAN_ID_KEY(portp->vids[i].vl_vid), in vsw_vlan_add_ids()
1060 (mod_hash_key_t)VLAN_ID_KEY(vswp->pvid), in vsw_vlan_remove_ids()
1070 (mod_hash_key_t)VLAN_ID_KEY( in vsw_vlan_remove_ids()
1084 (mod_hash_key_t)VLAN_ID_KEY(portp->pvid), in vsw_vlan_remove_ids()
1094 (mod_hash_key_t)VLAN_ID_KEY( in vsw_vlan_remove_ids()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dsad_conf.c73 sad_hash_alg(void *hash_data, mod_hash_key_t key) in sad_hash_alg()
85 sad_hash_keycmp(mod_hash_key_t key1, mod_hash_key_t key2) in sad_hash_keycmp()
137 sad_hash_free_value(mod_hash_key_t key, mod_hash_val_t *val, void *arg) in sad_hash_free_value()
/illumos-gate/usr/src/uts/common/io/comstar/port/fcoet/
H A Dfcoet_eth.c445 (mod_hash_key_t)(intptr_t)xch->xch_rxid, in fcoet_create_unsol_exchange()
451 (mod_hash_key_t)(intptr_t)xch->xch_rxid, (mod_hash_val_t)xch); in fcoet_create_unsol_exchange()
474 (mod_hash_key_t)(intptr_t)xch->xch_rxid, &val) == 0) { in fcoet_clear_unsol_exchange()
499 (mod_hash_key_t)(intptr_t)xch->xch_oxid, &val); in fcoet_clear_sol_exchange()
519 (mod_hash_key_t)(intptr_t)unsol_rxid, in fcoet_process_sol_fcp_data()
675 (mod_hash_key_t)(intptr_t)sol_oxid, in fcoet_process_sol_els_rsp()
724 (mod_hash_key_t)(intptr_t)unsol_rxid, in fcoet_process_unsol_abts_req()
772 (mod_hash_key_t)(intptr_t)sol_oxid, in fcoet_process_sol_abts_acc()
801 (mod_hash_key_t)(intptr_t)sol_oxid, in fcoet_process_sol_abts_rjt()
855 (mod_hash_key_t)(intptr_t)sol_oxid, in fcoet_process_sol_ct_rsp()
H A Dfcoet.c117 fcoet_sol_oxid_hash_empty(mod_hash_key_t key, mod_hash_val_t *val, void *arg);
119 fcoet_unsol_rxid_hash_empty(mod_hash_key_t key, mod_hash_val_t *val, void *arg);
1005 fcoet_sol_oxid_hash_empty(mod_hash_key_t key, mod_hash_val_t *val, void *arg) in fcoet_sol_oxid_hash_empty()
1016 fcoet_unsol_rxid_hash_empty(mod_hash_key_t key, mod_hash_val_t *val, void *arg) in fcoet_unsol_rxid_hash_empty()
1027 fcoet_modhash_find_cb(mod_hash_key_t key, mod_hash_val_t val) in fcoet_modhash_find_cb()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dtnet.c162 static uint_t gcdb_hash_by_secattr(void *, mod_hash_key_t);
163 static int gcdb_hash_cmp(mod_hash_key_t, mod_hash_key_t);
167 static uint_t gcgrp_hash_by_addr(void *, mod_hash_key_t);
168 static int gcgrp_hash_cmp(mod_hash_key_t, mod_hash_key_t);
259 gcdb_hash_by_secattr(void *hash_data, mod_hash_key_t key) in gcdb_hash_by_secattr()
283 gcdb_hash_cmp(mod_hash_key_t key1, mod_hash_key_t key2) in gcdb_hash_cmp()
303 gcgrp_hash_by_addr(void *hash_data, mod_hash_key_t key) in gcgrp_hash_by_addr()
322 gcgrp_hash_cmp(mod_hash_key_t key1, mod_hash_key_t key2) in gcgrp_hash_cmp()
400 if (mod_hash_find(gcdb_hash, (mod_hash_key_t)rp, in gcdb_lookup()
416 (mod_hash_key_t)&gcdb->gcdb_attr, in gcdb_lookup()
[all …]
/illumos-gate/usr/src/uts/common/io/dld/
H A Ddld_drv.c173 drv_ap_exist(mod_hash_key_t key, mod_hash_val_t *val, void *arg) in drv_ap_exist()
859 mod_hash_key_t key; in drv_ioc_rename()
895 key = (mod_hash_key_t)(uintptr_t)dir->dir_linkid1; in drv_ioc_rename()
913 mod_hash_key_t key; in drv_ioc_setap()
927 key = (mod_hash_key_t)(uintptr_t)linkid; in drv_ioc_setap()
964 (mod_hash_key_t)(uintptr_t)linkid, in drv_ioc_getap()
989 mod_hash_key_t key; in drv_ioc_clrap()
991 key = (mod_hash_key_t)(uintptr_t)linkid; in drv_ioc_clrap()
1124 if (mod_hash_find(dld_ap_hashp, (mod_hash_key_t)(uintptr_t)linkid, in dld_autopush()
1190 err = mod_hash_find(drv_secobj_hash, (mod_hash_key_t)sobjp->so_name, in drv_ioc_secobj_set()
[all …]
/illumos-gate/usr/src/uts/intel/io/vmm/
H A Dvmm_sol_glue.c167 vmm_ptp_check(mod_hash_key_t key, mod_hash_val_t *val, void *unused) in vmm_ptp_check()
201 (mod_hash_key_t)PHYS_TO_DMAP(vtophys(p)), (mod_hash_val_t)i) == 0); in vmm_ptp_alloc()
212 (mod_hash_key_t)PHYS_TO_DMAP(vtophys(addr))) == 0); in vmm_ptp_free()
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvsw_fdb.h47 #define VLAN_ID_KEY(key) ((mod_hash_key_t)(uintptr_t)(key))
/illumos-gate/usr/src/uts/common/io/softmac/
H A Dsoftmac_main.c190 softmac_exist(mod_hash_key_t key, mod_hash_val_t *val, void *arg) in softmac_exist()
380 if ((mod_hash_find(softmac_hash, (mod_hash_key_t)devname, in softmac_create()
387 (mod_hash_key_t)softmac->smac_devname, in softmac_create()
979 err = mod_hash_find(softmac_hash, (mod_hash_key_t)devname, in softmac_destroy()
1085 (mod_hash_key_t)devname, in softmac_destroy()
1120 softmac_mac_recreate(mod_hash_key_t key, mod_hash_val_t *val, void *arg) in softmac_mac_recreate()
1573 if (mod_hash_find(softmac_hash, (mod_hash_key_t)devname, in softmac_hold_device()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/fcoei/
H A Dfcoei.h311 (mod_hash_key_t)(intptr_t)xch->xch_ss->ss_next_sol_oxid, \
327 (mod_hash_key_t)(intptr_t)FRM2SS(frm)->ss_next_unsol_rxid, \
/illumos-gate/usr/src/uts/common/vm/
H A Dvm_usage.c604 ret = i_mod_hash_find_nosync(hash, (mod_hash_key_t)key, in vmu_find_insert_object()
608 ret = i_mod_hash_insert_nosync(hash, (mod_hash_key_t)key, in vmu_find_insert_object()
621 ret = i_mod_hash_find_nosync(hash, (mod_hash_key_t)key, in vmu_find_insert_anon()
627 ret = i_mod_hash_insert_nosync(hash, (mod_hash_key_t)key, in vmu_find_insert_anon()
641 ret = i_mod_hash_find_nosync(hash, (mod_hash_key_t)(uintptr_t)id, in vmu_find_insert_entity()
646 (mod_hash_key_t)(uintptr_t)id, (mod_hash_val_t)entity, in vmu_find_insert_entity()
1471 (mod_hash_key_t)(uintptr_t)p->p_zone->zone_id, in vmu_calculate_proc()
1476 (mod_hash_key_t)(uintptr_t)p->p_zone->zone_id, in vmu_calculate_proc()
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_mech_tabs.c153 if (mod_hash_find(kcf_mech_hash, (mod_hash_key_t)mechname, &hv) == 0) { in kcf_mech_hash_find()
266 (mod_hash_key_t)me_tab[i].me_name, in kcf_init_mech_tabs()
349 (mod_hash_key_t)me_tab[i].me_name, in kcf_create_mech_entry()

123