/kernel/linux/linux-5.10/net/smc/ |
H A D | smc_pnet.h | 43 u8 pnetid[SMC_MAX_PNETID_LEN]; member 48 unsigned short port, u8 *pnetid) in smc_pnetid_by_dev_port() 51 return pnet_id_by_dev_port(dev, port, pnetid); in smc_pnetid_by_dev_port() 68 bool smc_pnet_is_ndev_pnetid(struct net *net, u8 *pnetid); 69 bool smc_pnet_is_pnetid_set(u8 *pnetid); 47 smc_pnetid_by_dev_port(struct device *dev, unsigned short port, u8 *pnetid) smc_pnetid_by_dev_port() argument
|
H A D | smc_pnet.c | 75 /* Check if the pnetid is set */ 76 bool smc_pnet_is_pnetid_set(u8 *pnetid) in smc_pnet_is_pnetid_set() argument 78 if (pnetid[0] == 0 || pnetid[0] == _S) in smc_pnet_is_pnetid_set() 98 /* Remove a pnetid from the pnet table. 125 "pnetid %.16s\n", in smc_pnet_remove_by_pnetid() 146 ibdev->pnetid[ibport]))) { in smc_pnet_remove_by_pnetid() 149 "pnetid %.16s\n", in smc_pnet_remove_by_pnetid() 152 ibdev->pnetid[ibport]); in smc_pnet_remove_by_pnetid() 153 memset(ibdev->pnetid[ibpor in smc_pnet_remove_by_pnetid() 282 smc_pnetid_valid(const char *pnet_name, char *pnetid) smc_pnetid_valid() argument 593 _smc_pnet_dump(struct net *net, struct sk_buff *skb, u32 portid, u32 seq, u8 *pnetid, int start_idx) _smc_pnet_dump() argument 717 smc_pnet_is_ndev_pnetid(struct net *net, u8 *pnetid) smc_pnet_is_ndev_pnetid() argument 736 smc_pnet_add_pnetid(struct net *net, u8 *pnetid) smc_pnet_add_pnetid() argument 762 smc_pnet_remove_pnetid(struct net *net, u8 *pnetid) smc_pnet_remove_pnetid() argument 930 smc_pnet_find_ndev_pnetid_by_table(struct net_device *ndev, u8 *pnetid) smc_pnet_find_ndev_pnetid_by_table() argument [all...] |
H A D | smc_ib.h | 45 u8 pnetid[SMC_MAX_PORTS][SMC_MAX_PNETID_LEN]; member 46 /* pnetid per port */ 48 /* pnetid defined by user? */
|
H A D | smc_ism.c | 320 if (smc_pnetid_by_dev_port(parent, 0, smcd->pnetid)) in smcd_alloc_dev() 344 /* sort list: devices without pnetid before devices with pnetid */ in smcd_register_dev() 345 if (smcd->pnetid[0]) in smcd_register_dev() 351 pr_warn_ratelimited("smc: adding smcd device %s with pnetid %.16s%s\n", in smcd_register_dev() 352 dev_name(&smcd->dev), smcd->pnetid, in smcd_register_dev()
|
H A D | smc_ib.c | 597 smcibdev->pnetid[i])) in smc_ib_add_dev() 599 pr_warn_ratelimited("smc: ib device %s port %d has pnetid " in smc_ib_add_dev() 602 smcibdev->pnetid[i], in smc_ib_add_dev()
|
H A D | smc_core.c | 429 memcpy(lgr->pnet_id, ini->ib_dev->pnetid[ini->ib_port - 1], in smc_lgr_create() 1074 "%s, pnetid %.16s\n", SMC_LGR_ID_SIZE, &lgr->id, in smcr_lgr_set_type() 1108 if (strncmp(smcibdev->pnetid[ibport - 1], lgr->pnet_id, in smcr_port_add() 1185 if (strncmp(smcibdev->pnetid[ibport - 1], lgr->pnet_id, in smcr_port_err()
|
H A D | af_smc.c | 653 if (!smc_pnet_is_pnetid_set(smcd->pnetid) || in smc_find_ism_v2_device_clnt() 654 smc_pnet_is_ndev_pnetid(sock_net(&smc->sk), smcd->pnetid)) { in smc_find_ism_v2_device_clnt()
|
/kernel/linux/linux-6.6/net/smc/ |
H A D | smc_pnet.h | 43 u8 pnetid[SMC_MAX_PNETID_LEN]; member 48 unsigned short port, u8 *pnetid) in smc_pnetid_by_dev_port() 51 return pnet_id_by_dev_port(dev, port, pnetid); in smc_pnetid_by_dev_port() 68 bool smc_pnet_is_ndev_pnetid(struct net *net, u8 *pnetid); 69 bool smc_pnet_is_pnetid_set(u8 *pnetid); 47 smc_pnetid_by_dev_port(struct device *dev, unsigned short port, u8 *pnetid) smc_pnetid_by_dev_port() argument
|
H A D | smc_pnet.c | 76 /* Check if the pnetid is set */ 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() 99 /* Remove a pnetid from the pnet table. 127 "pnetid %.16s\n", in smc_pnet_remove_by_pnetid() 148 ibdev->pnetid[ibport]))) { in smc_pnet_remove_by_pnetid() 151 "pnetid %.16s\n", in smc_pnet_remove_by_pnetid() 154 ibdev->pnetid[ibport]); in smc_pnet_remove_by_pnetid() 155 memset(ibdev->pnetid[ibpor in smc_pnet_remove_by_pnetid() 285 smc_pnetid_valid(const char *pnet_name, char *pnetid) smc_pnetid_valid() argument 601 _smc_pnet_dump(struct net *net, struct sk_buff *skb, u32 portid, u32 seq, u8 *pnetid, int start_idx) _smc_pnet_dump() argument 726 smc_pnet_is_ndev_pnetid(struct net *net, u8 *pnetid) smc_pnet_is_ndev_pnetid() argument 745 smc_pnet_add_pnetid(struct net *net, u8 *pnetid) smc_pnet_add_pnetid() argument 771 smc_pnet_remove_pnetid(struct net *net, u8 *pnetid) smc_pnet_remove_pnetid() argument 944 smc_pnet_find_ndev_pnetid_by_table(struct net_device *ndev, u8 *pnetid) smc_pnet_find_ndev_pnetid_by_table() argument [all...] |
H A D | smc_ism.c | 270 memcpy(smc_pnet, smcd->pnetid, SMC_MAX_PNETID_LEN); in smc_nl_handle_smcd_dev() 424 if (smc_pnetid_by_dev_port(&ism->pdev->dev, 0, smcd->pnetid)) in smcd_register_dev() 438 /* sort list: devices without pnetid before devices with pnetid */ in smcd_register_dev() 439 if (smcd->pnetid[0]) in smcd_register_dev() 445 pr_warn_ratelimited("smc: adding smcd device %s with pnetid %.16s%s\n", in smcd_register_dev() 446 dev_name(&ism->dev), smcd->pnetid, in smcd_register_dev()
|
H A D | smc_ib.h | 46 u8 pnetid[SMC_MAX_PORTS][SMC_MAX_PNETID_LEN]; member 47 /* pnetid per port */ 49 /* pnetid defined by user? */
|
H A D | smc_ib.c | 335 if (strncmp(smcibdev->pnetid[ibport - 1], lgr->pnet_id, in smc_ib_gid_check() 508 memcpy(smc_pnet, &smcibdev->pnetid[port], SMC_MAX_PNETID_LEN); in smc_nl_handle_dev_port() 971 smcibdev->pnetid[i])) in smc_ib_add_dev() 974 pr_warn_ratelimited("smc: ib device %s port %d has pnetid " in smc_ib_add_dev() 977 smcibdev->pnetid[i], in smc_ib_add_dev()
|
H A D | smc_core.c | 537 memcpy(smc_pnet, lgr->smcd->pnetid, SMC_MAX_PNETID_LEN); in smc_nl_fill_smcd_lgr() 910 memcpy(lgr->pnet_id, ibdev->pnetid[ibport - 1], in smc_lgr_create() 1635 "%s, pnetid %.16s\n", SMC_LGR_ID_SIZE, &lgr->id, in smcr_lgr_set_type() 1669 if (strncmp(smcibdev->pnetid[ibport - 1], lgr->pnet_id, in smcr_port_add() 1754 if (strncmp(smcibdev->pnetid[ibport - 1], lgr->pnet_id, in smcr_port_err()
|
H A D | af_smc.c | 1063 if (!smc_pnet_is_pnetid_set(smcd->pnetid) || in smc_find_ism_v2_device_clnt() 1064 smc_pnet_is_ndev_pnetid(sock_net(&smc->sk), smcd->pnetid)) { in smc_find_ism_v2_device_clnt()
|
/kernel/linux/linux-5.10/arch/s390/net/ |
H A D | pnet.c | 67 * Extract the pnetid for a device port. 69 * Return 0 if a pnetid is found and -ENOENT otherwise. 71 int pnet_id_by_dev_port(struct device *dev, unsigned short port, u8 *pnetid) in pnet_id_by_dev_port() argument 82 memcpy(pnetid, pnetids[port], MAX_PNETID_LEN); in pnet_id_by_dev_port() 90 MODULE_DESCRIPTION("pnetid determination from utility strings");
|
/kernel/linux/linux-6.6/arch/s390/net/ |
H A D | pnet.c | 67 * Extract the pnetid for a device port. 69 * Return 0 if a pnetid is found and -ENOENT otherwise. 71 int pnet_id_by_dev_port(struct device *dev, unsigned short port, u8 *pnetid) in pnet_id_by_dev_port() argument 82 memcpy(pnetid, pnetids[port], MAX_PNETID_LEN); in pnet_id_by_dev_port() 90 MODULE_DESCRIPTION("pnetid determination from utility strings");
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
H A D | pnet.h | 14 int pnet_id_by_dev_port(struct device *dev, unsigned short port, u8 *pnetid);
|
/kernel/linux/linux-6.6/arch/s390/include/asm/ |
H A D | pnet.h | 14 int pnet_id_by_dev_port(struct device *dev, unsigned short port, u8 *pnetid);
|
/kernel/linux/linux-6.6/include/net/ |
H A D | smc.h | 85 u8 pnetid[SMC_MAX_PNETID_LEN]; member
|
/kernel/linux/linux-5.10/include/net/ |
H A D | smc.h | 82 u8 pnetid[SMC_MAX_PNETID_LEN]; member
|