Searched refs:smcd_dev_list (Results 1 – 6 of 6) sorted by relevance
/linux/net/smc/ |
H A D | smc_ism.c | 22 struct smcd_dev_list smcd_dev_list = { variable 23 .list = LIST_HEAD_INIT(smcd_dev_list.list), 24 .mutex = __MUTEX_INITIALIZER(smcd_dev_list.mutex) 357 static void smc_nl_prep_smcd_dev(struct smcd_dev_list *dev_list, in smc_nl_prep_smcd_dev() 384 smc_nl_prep_smcd_dev(&smcd_dev_list, skb, cb); in smcd_nl_get_device() 504 mutex_lock(&smcd_dev_list.mutex); in smcd_register_dev() 510 fentry = list_first_entry_or_null(&smcd_dev_list.list, in smcd_register_dev() 515 list_add(&smcd->list, &smcd_dev_list.list); in smcd_register_dev() 517 list_add_tail(&smcd->list, &smcd_dev_list.list); in smcd_register_dev() 519 mutex_unlock(&smcd_dev_list.mutex); in smcd_register_dev() [all …]
|
H A D | smc_ism.h | 21 struct smcd_dev_list { /* List of SMCD devices */ struct 26 extern struct smcd_dev_list smcd_dev_list; /* list of smcd devices */ argument
|
H A D | smc_loopback.c | 335 mutex_lock(&smcd_dev_list.mutex); in smcd_lo_register_dev() 336 list_add(&smcd->list, &smcd_dev_list.list); in smcd_lo_register_dev() 337 mutex_unlock(&smcd_dev_list.mutex); in smcd_lo_register_dev() 351 mutex_lock(&smcd_dev_list.mutex); in smcd_lo_unregister_dev() 353 mutex_unlock(&smcd_dev_list.mutex); in smcd_lo_unregister_dev()
|
H A D | smc_pnet.c | 164 mutex_lock(&smcd_dev_list.mutex); in smc_pnet_remove_by_pnetid() 165 list_for_each_entry(smcd, &smcd_dev_list.list, list) { in smc_pnet_remove_by_pnetid() 179 mutex_unlock(&smcd_dev_list.mutex); in smc_pnet_remove_by_pnetid() 270 mutex_lock(&smcd_dev_list.mutex); in smc_pnet_apply_smcd() 276 mutex_unlock(&smcd_dev_list.mutex); in smc_pnet_apply_smcd() 333 mutex_lock(&smcd_dev_list.mutex); in smc_pnet_find_smcd() 334 list_for_each_entry(smcd_dev, &smcd_dev_list.list, list) { in smc_pnet_find_smcd() 341 mutex_unlock(&smcd_dev_list.mutex); in smc_pnet_find_smcd() 1107 mutex_lock(&smcd_dev_list.mutex); in smc_pnet_find_ism_by_pnetid() 1108 list_for_each_entry(ismdev, &smcd_dev_list.list, list) { in smc_pnet_find_ism_by_pnetid() [all …]
|
H A D | smc_core.c | 633 static int smc_nl_fill_smcd_dev(struct smcd_dev_list *dev_list, in smc_nl_fill_smcd_dev() 678 smc_nl_fill_smcd_dev(&smcd_dev_list, skb, cb); in smcd_nl_get_lgr() 2717 mutex_lock(&smcd_dev_list.mutex); in smc_core_going_away() 2718 list_for_each_entry(smcd, &smcd_dev_list.list, list) { in smc_core_going_away() 2721 mutex_unlock(&smcd_dev_list.mutex); in smc_core_going_away() 2733 mutex_lock(&smcd_dev_list.mutex); in smc_lgrs_shutdown() 2734 list_for_each_entry(smcd, &smcd_dev_list.list, list) in smc_lgrs_shutdown() 2736 mutex_unlock(&smcd_dev_list.mutex); in smc_lgrs_shutdown()
|
H A D | af_smc.c | 1044 mutex_lock(&smcd_dev_list.mutex); in smc_find_ism_v2_device_clnt() 1045 list_for_each_entry(smcd, &smcd_dev_list.list, list) { in smc_find_ism_v2_device_clnt() 1071 mutex_unlock(&smcd_dev_list.mutex); in smc_find_ism_v2_device_clnt() 2103 list_for_each_entry(smcd, &smcd_dev_list.list, list) { in smc_check_ism_v2_match() 2149 mutex_lock(&smcd_dev_list.mutex); in smc_find_ism_v2_device_serv() 2180 mutex_unlock(&smcd_dev_list.mutex); in smc_find_ism_v2_device_serv()
|