Lines Matching refs:pnetid

77 bool smc_pnet_is_pnetid_set(u8 *pnetid)  in smc_pnet_is_pnetid_set()  argument
79 if (pnetid[0] == 0 || pnetid[0] == _S) in smc_pnet_is_pnetid_set()
148 ibdev->pnetid[ibport]))) { in smc_pnet_remove_by_pnetid()
154 ibdev->pnetid[ibport]); in smc_pnet_remove_by_pnetid()
155 memset(ibdev->pnetid[ibport], 0, in smc_pnet_remove_by_pnetid()
168 smc_pnet_match(pnet_name, smcd->pnetid))) { in smc_pnet_remove_by_pnetid()
173 smcd->pnetid); in smc_pnet_remove_by_pnetid()
174 memset(smcd->pnetid, 0, SMC_MAX_PNETID_LEN); in smc_pnet_remove_by_pnetid()
254 if (!smc_pnet_is_pnetid_set(ib_dev->pnetid[ib_port - 1])) { in smc_pnet_apply_ib()
255 memcpy(ib_dev->pnetid[ib_port - 1], pnet_name, in smc_pnet_apply_ib()
271 if (!smc_pnet_is_pnetid_set(smcd_dev->pnetid)) { in smc_pnet_apply_smcd()
272 memcpy(smcd_dev->pnetid, pnet_name, SMC_MAX_PNETID_LEN); in smc_pnet_apply_smcd()
285 static bool smc_pnetid_valid(const char *pnet_name, char *pnetid) in smc_pnetid_valid() argument
300 *pnetid++ = islower(*bf) ? toupper(*bf) : *bf; in smc_pnetid_valid()
303 *pnetid = '\0'; in smc_pnetid_valid()
428 ib_dev->pnetid[ib_port - 1]); in smc_pnet_add_ib()
438 smcd->pnetid); in smc_pnet_add_ib()
602 u32 seq, u8 *pnetid, int start_idx) in _smc_pnet_dump() argument
616 if (pnetid && !smc_pnet_match(pnetelem->pnet_name, pnetid)) in _smc_pnet_dump()
726 bool smc_pnet_is_ndev_pnetid(struct net *net, u8 *pnetid) in smc_pnet_is_ndev_pnetid() argument
734 if (smc_pnet_match(pnetid, pe->pnetid)) { in smc_pnet_is_ndev_pnetid()
745 static int smc_pnet_add_pnetid(struct net *net, u8 *pnetid) in smc_pnet_add_pnetid() argument
756 if (smc_pnet_match(pnetid, pe->pnetid)) { in smc_pnet_add_pnetid()
763 memcpy(pe->pnetid, pnetid, SMC_MAX_PNETID_LEN); in smc_pnet_add_pnetid()
771 static void smc_pnet_remove_pnetid(struct net *net, u8 *pnetid) in smc_pnet_remove_pnetid() argument
778 if (smc_pnet_match(pnetid, pe->pnetid)) { in smc_pnet_remove_pnetid()
945 u8 *pnetid) in smc_pnet_find_ndev_pnetid_by_table() argument
961 memcpy(pnetid, pnetelem->pnet_name, SMC_MAX_PNETID_LEN); in smc_pnet_find_ndev_pnetid_by_table()
1007 if (smc_pnet_match(ibdev->pnetid[i - 1], pnet_id) && in _smc_pnet_find_roce_by_pnetid()
1104 if (smc_pnet_match(ismdev->pnetid, ndev_pnetid) && in smc_pnet_find_ism_by_pnetid()