Lines Matching refs:pnet_name
61 char pnet_name[SMC_MAX_PNETID_LEN + 1]; member
101 static int smc_pnet_remove_by_pnetid(struct net *net, char *pnet_name) in smc_pnet_remove_by_pnetid() argument
119 if (!pnet_name || in smc_pnet_remove_by_pnetid()
120 smc_pnet_match(pnetelem->pnet_name, pnet_name)) { in smc_pnet_remove_by_pnetid()
128 pnetelem->pnet_name); in smc_pnet_remove_by_pnetid()
145 (!pnet_name || in smc_pnet_remove_by_pnetid()
146 smc_pnet_match(pnet_name, in smc_pnet_remove_by_pnetid()
166 (!pnet_name || in smc_pnet_remove_by_pnetid()
167 smc_pnet_match(pnet_name, smcd_dev->pnetid))) { in smc_pnet_remove_by_pnetid()
205 pnetelem->pnet_name); in smc_pnet_add_by_ndev()
236 pnetelem->pnet_name); in smc_pnet_remove_by_ndev()
247 char *pnet_name) in smc_pnet_apply_ib() argument
253 memcpy(ib_dev->pnetid[ib_port - 1], pnet_name, in smc_pnet_apply_ib()
264 static bool smc_pnet_apply_smcd(struct smcd_dev *smcd_dev, char *pnet_name) in smc_pnet_apply_smcd() argument
270 memcpy(smcd_dev->pnetid, pnet_name, SMC_MAX_PNETID_LEN); in smc_pnet_apply_smcd()
283 static bool smc_pnetid_valid(const char *pnet_name, char *pnetid) in smc_pnetid_valid() argument
285 char *bf = skip_spaces(pnet_name); in smc_pnetid_valid()
344 char *eth_name, char *pnet_name) in smc_pnet_add_eth() argument
370 memcpy(new_pe->pnet_name, pnet_name, SMC_MAX_PNETID_LEN); in smc_pnet_add_eth()
398 new_pe->eth_name, new_pe->pnet_name); in smc_pnet_add_eth()
407 u8 ib_port, char *pnet_name) in smc_pnet_add_ib() argument
419 ibdev_applied = smc_pnet_apply_ib(ib_dev, ib_port, pnet_name); in smc_pnet_add_ib()
429 smcddev_applied = smc_pnet_apply_smcd(smcd_dev, pnet_name); in smc_pnet_add_ib()
447 memcpy(new_pe->pnet_name, pnet_name, SMC_MAX_PNETID_LEN); in smc_pnet_add_ib()
474 char pnet_name[SMC_MAX_PNETID_LEN + 1]; in smc_pnet_enter() local
491 if (!smc_pnetid_valid(string, pnet_name)) 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()
532 if (nla_put_string(msg, SMC_PNETID_NAME, pnetelem->pnet_name)) in smc_pnet_set_nla()
611 if (pnetid && !smc_pnet_match(pnetelem->pnet_name, pnetid)) in _smc_pnet_dump()
955 memcpy(pnetid, pnetelem->pnet_name, SMC_MAX_PNETID_LEN); in smc_pnet_find_ndev_pnetid_by_table()
1168 smc_pnet_apply_ib(smcibdev, ib_port, tmp_pe->pnet_name); in smc_pnetid_by_table_ib()
1196 smc_pnet_apply_smcd(smcddev, tmp_pe->pnet_name); in smc_pnetid_by_table_smcd()