Lines Matching refs:pnettable

104 	struct smc_pnettable *pnettable;  in smc_pnet_remove_by_pnetid()  local
113 pnettable = &sn->pnettable; in smc_pnet_remove_by_pnetid()
116 mutex_lock(&pnettable->lock); in smc_pnet_remove_by_pnetid()
117 list_for_each_entry_safe(pnetelem, tmp_pe, &pnettable->pnetlist, in smc_pnet_remove_by_pnetid()
134 mutex_unlock(&pnettable->lock); in smc_pnet_remove_by_pnetid()
186 struct smc_pnettable *pnettable; in smc_pnet_add_by_ndev() local
193 pnettable = &sn->pnettable; in smc_pnet_add_by_ndev()
195 mutex_lock(&pnettable->lock); in smc_pnet_add_by_ndev()
196 list_for_each_entry_safe(pnetelem, tmp_pe, &pnettable->pnetlist, list) { in smc_pnet_add_by_ndev()
209 mutex_unlock(&pnettable->lock); in smc_pnet_add_by_ndev()
218 struct smc_pnettable *pnettable; in smc_pnet_remove_by_ndev() local
225 pnettable = &sn->pnettable; in smc_pnet_remove_by_ndev()
227 mutex_lock(&pnettable->lock); in smc_pnet_remove_by_ndev()
228 list_for_each_entry_safe(pnetelem, tmp_pe, &pnettable->pnetlist, list) { in smc_pnet_remove_by_ndev()
240 mutex_unlock(&pnettable->lock); in smc_pnet_remove_by_ndev()
343 static int smc_pnet_add_eth(struct smc_pnettable *pnettable, struct net *net, in smc_pnet_add_eth() argument
374 mutex_lock(&pnettable->lock); in smc_pnet_add_eth()
375 list_for_each_entry(tmp_pe, &pnettable->pnetlist, list) { in smc_pnet_add_eth()
388 list_add_tail(&new_pe->list, &pnettable->pnetlist); in smc_pnet_add_eth()
389 mutex_unlock(&pnettable->lock); in smc_pnet_add_eth()
391 mutex_unlock(&pnettable->lock); in smc_pnet_add_eth()
406 static int smc_pnet_add_ib(struct smc_pnettable *pnettable, char *ib_name, in smc_pnet_add_ib() argument
452 mutex_lock(&pnettable->lock); in smc_pnet_add_ib()
453 list_for_each_entry(tmp_pe, &pnettable->pnetlist, list) { in smc_pnet_add_ib()
461 list_add_tail(&new_pe->list, &pnettable->pnetlist); in smc_pnet_add_ib()
462 mutex_unlock(&pnettable->lock); in smc_pnet_add_ib()
464 mutex_unlock(&pnettable->lock); in smc_pnet_add_ib()
475 struct smc_pnettable *pnettable; in smc_pnet_enter() local
485 pnettable = &sn->pnettable; in smc_pnet_enter()
496 rc = smc_pnet_add_eth(pnettable, net, string, pnet_name); in smc_pnet_enter()
516 rc = smc_pnet_add_ib(pnettable, string, ibport, pnet_name); in smc_pnet_enter()
599 struct smc_pnettable *pnettable; in _smc_pnet_dump() local
606 pnettable = &sn->pnettable; in _smc_pnet_dump()
609 mutex_lock(&pnettable->lock); in _smc_pnet_dump()
610 list_for_each_entry(pnetelem, &pnettable->pnetlist, list) { in _smc_pnet_dump()
624 mutex_unlock(&pnettable->lock); in _smc_pnet_dump()
864 struct smc_pnettable *pnettable = &sn->pnettable; in smc_pnet_net_init() local
867 INIT_LIST_HEAD(&pnettable->pnetlist); in smc_pnet_net_init()
868 mutex_init(&pnettable->lock); in smc_pnet_net_init()
941 struct smc_pnettable *pnettable; in smc_pnet_find_ndev_pnetid_by_table() local
949 pnettable = &sn->pnettable; in smc_pnet_find_ndev_pnetid_by_table()
951 mutex_lock(&pnettable->lock); in smc_pnet_find_ndev_pnetid_by_table()
952 list_for_each_entry(pnetelem, &pnettable->pnetlist, list) { in smc_pnet_find_ndev_pnetid_by_table()
960 mutex_unlock(&pnettable->lock); in smc_pnet_find_ndev_pnetid_by_table()
1154 struct smc_pnettable *pnettable; in smc_pnetid_by_table_ib() local
1161 pnettable = &sn->pnettable; in smc_pnetid_by_table_ib()
1163 mutex_lock(&pnettable->lock); in smc_pnetid_by_table_ib()
1164 list_for_each_entry(tmp_pe, &pnettable->pnetlist, list) { in smc_pnetid_by_table_ib()
1173 mutex_unlock(&pnettable->lock); in smc_pnetid_by_table_ib()
1183 struct smc_pnettable *pnettable; in smc_pnetid_by_table_smcd() local
1190 pnettable = &sn->pnettable; in smc_pnetid_by_table_smcd()
1192 mutex_lock(&pnettable->lock); in smc_pnetid_by_table_smcd()
1193 list_for_each_entry(tmp_pe, &pnettable->pnetlist, list) { in smc_pnetid_by_table_smcd()
1201 mutex_unlock(&pnettable->lock); in smc_pnetid_by_table_smcd()