Lines Matching refs:smcd_dev_list
21 struct smcd_dev_list smcd_dev_list = { variable
22 .list = LIST_HEAD_INIT(smcd_dev_list.list),
23 .mutex = __MUTEX_INITIALIZER(smcd_dev_list.mutex)
267 static void smc_nl_prep_smcd_dev(struct smcd_dev_list *dev_list, in smc_nl_prep_smcd_dev()
292 smc_nl_prep_smcd_dev(&smcd_dev_list, skb, cb); in smcd_nl_get_device()
428 mutex_lock(&smcd_dev_list.mutex); in smcd_register_dev()
429 if (list_empty(&smcd_dev_list.list)) { in smcd_register_dev()
441 list_add_tail(&smcd->list, &smcd_dev_list.list); in smcd_register_dev()
443 list_add(&smcd->list, &smcd_dev_list.list); in smcd_register_dev()
444 mutex_unlock(&smcd_dev_list.mutex); in smcd_register_dev()
452 mutex_lock(&smcd_dev_list.mutex); in smcd_register_dev()
454 mutex_unlock(&smcd_dev_list.mutex); in smcd_register_dev()
465 mutex_lock(&smcd_dev_list.mutex); in smcd_unregister_dev()
467 mutex_unlock(&smcd_dev_list.mutex); in smcd_unregister_dev()