/titanic_44/usr/src/uts/common/sys/ |
H A D | modhash.h | 45 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 D | modhash_impl.h | 45 mod_hash_key_t mhe_key; /* stored hash key */ 65 void (*mh_kdtor)(mod_hash_key_t); 69 int (*mh_keycmp)(mod_hash_key_t, mod_hash_key_t); 72 uint_t (*mh_hashalg)(void *, mod_hash_key_t); 98 uint_t i_mod_hash(mod_hash_t *, mod_hash_key_t); 99 int i_mod_hash_insert_nosync(mod_hash_t *, mod_hash_key_t, mod_hash_val_t, 101 int i_mod_hash_remove_nosync(mod_hash_t *, mod_hash_key_t, mod_hash_val_t *); 102 int i_mod_hash_find_nosync(mod_hash_t *, mod_hash_key_t, mod_hash_val_t *); 103 void i_mod_hash_walk_nosync(mod_hash_t *, uint_t (*)(mod_hash_key_t,
|
H A D | dls_impl.h | 70 mod_hash_key_t dh_key; /* SL */
|
/titanic_44/usr/src/uts/common/os/ |
H A D | modhash.c | 179 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 D | modsubr.c | 869 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 D | dacf.c | 345 if (mod_hash_insert(hash, (mod_hash_key_t)rule->r_devspec_data, in dacf_rule_insert() 653 if (mod_hash_find(dacf_get_op_hash(op, ds), (mod_hash_key_t)match_info, in dacf_match() 709 if (mod_hash_find(dacf_module_hash, (mod_hash_key_t)mod_name, in dacf_module_register() 735 if (mod_hash_insert(dacf_module_hash, (mod_hash_key_t)str, in dacf_module_register() 808 if (mod_hash_find(dacf_module_hash, (mod_hash_key_t)mod_name, in dacf_module_unregister() 939 (mod_hash_key_t)rule->r_module, in dacf_op_invoke() 1262 (void) mod_hash_destroy(dacf_info_hash, (mod_hash_key_t)dmdp); in dacf_store_info() 1268 (void) mod_hash_replace(dacf_info_hash, (mod_hash_key_t)dmdp, in dacf_store_info() 1283 if (mod_hash_find(dacf_info_hash, (mod_hash_key_t)dmdp, in dacf_retrieve_info()
|
H A D | project.c | 132 project_hash_by_id(void *hash_data, mod_hash_key_t key) in project_hash_by_id() 142 return (mod_hash_byid(hash_data, (mod_hash_key_t)(uintptr_t)mykey)); in project_hash_by_id() 146 project_hash_key_cmp(mod_hash_key_t key1, mod_hash_key_t key2) in project_hash_key_cmp() 230 if (mod_hash_find(projects_hash, (mod_hash_key_t)&pz, in project_hold_by_id() 251 if (mod_hash_find(projects_hash, (mod_hash_key_t)&pz, in project_hold_by_id() 273 if (mod_hash_insert_reserve(projects_hash, (mod_hash_key_t)p, in project_hold_by_id() 364 if (mod_hash_destroy(projects_hash, (mod_hash_key_t)p)) in project_rele()
|
H A D | space.c | 309 (mod_hash_key_t)s, (mod_hash_val_t)ptr); in space_store() 346 rval = mod_hash_find(space_hash, (mod_hash_key_t)key, &val); in space_fetch() 359 (void) mod_hash_destroy(space_hash, (mod_hash_key_t)key); in space_free()
|
H A D | labelsys.c | 214 if (mod_hash_find(hash, (mod_hash_key_t)name, &hv) == 0) { in tnrhtp_find() 580 if (mod_hash_find(tpc_name_hash, (mod_hash_key_t)tpent->name, in tnrhtp_create() 586 (mod_hash_key_t)tpent->name); in tnrhtp_create() 593 (void) mod_hash_insert(tpc_name_hash, (mod_hash_key_t)tpc->tpc_tp.name, in tnrhtp_create() 609 if (mod_hash_find(tpc_name_hash, (mod_hash_key_t)tname, &hv) == 0) { in tnrhtp_delete() 614 (mod_hash_key_t)tpc->tpc_tp.name); in tnrhtp_delete() 624 tpc_delete(mod_hash_key_t key, mod_hash_val_t *val, void *arg) in tpc_delete()
|
H A D | task.c | 345 if (mod_hash_find(task_hash, (mod_hash_key_t)(uintptr_t)id, in task_find() 445 (mod_hash_key_t)(uintptr_t)tk->tk_tkid) != 0) in task_rele() 559 if (mod_hash_insert_reserve(task_hash, (mod_hash_key_t)(uintptr_t)tkid, in task_create() 1013 (mod_hash_key_t)(uintptr_t)task0p->tk_tkid, in task_init()
|
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | modhash.c | 58 void (*hte_format)(const mod_hash_key_t, char *, size_t); 61 static void format_strhash(const mod_hash_key_t, char *, size_t); 62 static void format_ptrhash(const mod_hash_key_t, char *, size_t); 63 static void format_idhash(const mod_hash_key_t, char *, size_t); 64 static void format_default(const mod_hash_key_t, char *, size_t); 518 format_strhash(const mod_hash_key_t key, char *keystr, size_t keystrlen) in format_strhash() 528 format_ptrhash(const mod_hash_key_t key, char *keystr, size_t keystrlen) in format_ptrhash() 539 format_idhash(const mod_hash_key_t key, char *keystr, size_t keystrlen) in format_idhash() 545 format_default(const mod_hash_key_t key, char *keystr, size_t keystrlen) in format_default()
|
/titanic_44/usr/src/uts/common/io/dls/ |
H A D | dls_link.c | 49 ((mod_hash_key_t)(uintptr_t)((_sap) << VLAN_ID_SIZE)) 219 i_dls_head_hold(mod_hash_key_t key, mod_hash_val_t val) in i_dls_head_hold() 248 i_dls_head_alloc(mod_hash_key_t key) in i_dls_head_alloc() 276 mod_hash_key_t key; in i_dls_link_rx_func() 345 mod_hash_key_t key; in i_dls_link_rx() 554 mod_hash_key_t key; in dls_rx_promisc() 714 if ((err = mod_hash_find(i_dls_link_hash, (mod_hash_key_t)name, in dls_link_hold_common() 731 err = mod_hash_insert(i_dls_link_hash, (mod_hash_key_t)dlp->dl_name, in dls_link_hold_common() 814 (mod_hash_key_t)dlp->dl_name, &val); in dls_link_rele() 831 if (mod_hash_find(i_dls_link_hash, (mod_hash_key_t)name, in dls_link_rele_by_name() [all …]
|
H A D | dls_mgmt.c | 727 if (mod_hash_find(i_dls_link_hash, (mod_hash_key_t)ddp->dd_mac, in dls_devnet_stat_update() 816 (mod_hash_key_t)(uintptr_t)linkid, in dls_devnet_set() 827 (mod_hash_key_t)macname, (mod_hash_val_t *)&ddp)) == 0) { in dls_devnet_set() 850 (mod_hash_key_t)ddp->dd_mac, (mod_hash_val_t)ddp) == 0); in dls_devnet_set() 858 (mod_hash_key_t)(uintptr_t)linkid, in dls_devnet_set() 910 (mod_hash_key_t)macname, (mod_hash_val_t *)&ddp)) != 0) { in dls_devnet_unset() 943 (mod_hash_key_t)ddp->dd_mac, &val) == 0); in dls_devnet_unset() 947 (mod_hash_key_t)(uintptr_t)ddp->dd_linkid, &val) == 0); in dls_devnet_unset() 993 (mod_hash_key_t)(uintptr_t)linkid, (mod_hash_val_t *)&ddp)) != 0) { in dls_devnet_hold_common() 1074 (mod_hash_key_t)name, (mod_hash_val_t *)&ddp)) != 0) { in dls_devnet_hold_by_dev() [all …]
|
/titanic_44/usr/src/uts/sun4v/io/ |
H A D | vsw_switching.c | 112 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 …]
|
/titanic_44/usr/src/uts/common/io/ |
H A D | sad_conf.c | 75 sad_hash_alg(void *hash_data, mod_hash_key_t key) in sad_hash_alg() 87 sad_hash_keycmp(mod_hash_key_t key1, mod_hash_key_t key2) in sad_hash_keycmp() 139 sad_hash_free_value(mod_hash_key_t key, mod_hash_val_t *val, void *arg) in sad_hash_free_value()
|
H A D | tl.c | 881 static void tl_find_callback(mod_hash_key_t, mod_hash_val_t); 891 static int tl_hash_cmp_addr(mod_hash_key_t, mod_hash_key_t); 892 static uint_t tl_hash_by_addr(void *, mod_hash_key_t); 1330 tl_find_callback(mod_hash_key_t key, mod_hash_val_t val) in tl_find_callback() 1340 tl_hash_by_addr(void *hash_data, mod_hash_key_t key) in tl_hash_by_addr() 1363 tl_hash_cmp_addr(mod_hash_key_t key1, mod_hash_key_t key2) in tl_hash_cmp_addr() 1519 (mod_hash_key_t)(uintptr_t)tep->te_acceptor_id, in tl_open() 1540 (mod_hash_key_t)(uintptr_t)tep->te_acceptor_id, in tl_close() 2516 (mod_hash_key_t)ux_addr.soua_vp, in tl_bind() 2563 (mod_hash_key_t)&tep->te_ap, (mod_hash_val_t)tep, in tl_bind() [all …]
|
/titanic_44/usr/src/uts/common/io/comstar/port/fcoet/ |
H A D | fcoet_eth.c | 445 (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 D | fcoet.c | 117 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()
|
/titanic_44/usr/src/uts/common/io/dld/ |
H A D | dld_drv.c | 172 drv_ap_exist(mod_hash_key_t key, mod_hash_val_t *val, void *arg) in drv_ap_exist() 849 mod_hash_key_t key; in drv_ioc_rename() 885 key = (mod_hash_key_t)(uintptr_t)dir->dir_linkid1; in drv_ioc_rename() 903 mod_hash_key_t key; in drv_ioc_setap() 917 key = (mod_hash_key_t)(uintptr_t)linkid; in drv_ioc_setap() 954 (mod_hash_key_t)(uintptr_t)linkid, in drv_ioc_getap() 979 mod_hash_key_t key; in drv_ioc_clrap() 981 key = (mod_hash_key_t)(uintptr_t)linkid; in drv_ioc_clrap() 1114 if (mod_hash_find(dld_ap_hashp, (mod_hash_key_t)(uintptr_t)linkid, in dld_autopush() 1180 err = mod_hash_find(drv_secobj_hash, (mod_hash_key_t)sobjp->so_name, in drv_ioc_secobj_set() [all …]
|
/titanic_44/usr/src/uts/common/inet/ip/ |
H A D | tnet.c | 162 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 …]
|
/titanic_44/usr/src/uts/sun4v/sys/ |
H A D | vsw_fdb.h | 47 #define VLAN_ID_KEY(key) ((mod_hash_key_t)(uintptr_t)(key))
|
/titanic_44/usr/src/uts/common/io/softmac/ |
H A D | softmac_main.c | 190 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()
|
/titanic_44/usr/src/uts/common/io/fibre-channel/fca/fcoei/ |
H A D | fcoei.h | 311 (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, \
|
/titanic_44/usr/src/uts/common/vm/ |
H A D | vm_usage.c | 604 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() 1469 (mod_hash_key_t)(uintptr_t)p->p_zone->zone_id, in vmu_calculate_proc() 1474 (mod_hash_key_t)(uintptr_t)p->p_zone->zone_id, in vmu_calculate_proc()
|
/titanic_44/usr/src/uts/common/crypto/core/ |
H A D | kcf_mech_tabs.c | 153 if (mod_hash_find(kcf_mech_hash, (mod_hash_key_t)mechname, &hv) == 0) { in kcf_mech_hash_find() 262 (mod_hash_key_t)me_tab[i].me_name, in kcf_init_mech_tabs() 345 (mod_hash_key_t)me_tab[i].me_name, in kcf_create_mech_entry()
|