| /linux/net/smc/ |
| 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 602 _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 952 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_pnet.h | 43 u8 pnetid[SMC_MAX_PNETID_LEN]; member 48 unsigned short port, u8 *pnetid) in smc_pnetid_by_dev_port() argument 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);
|
| H A D | smc_ism.c | 345 memcpy(smc_pnet, smcd->pnetid, SMC_MAX_PNETID_LEN); in smc_nl_handle_smcd_dev() 505 if (smc_pnetid_by_dev_port(dibs->dev.parent, 0, smcd->pnetid)) in smcd_register_dev() 516 * - devices without pnetid before devices with pnetid; in smcd_register_dev() 519 if (!smcd->pnetid[0]) { in smcd_register_dev() 531 if (smc_pnet_is_pnetid_set(smcd->pnetid)) in smcd_register_dev() 532 pr_warn_ratelimited("smc: adding smcd device %s with pnetid %.16s%s\n", in smcd_register_dev() 533 dev_name(&dibs->dev), smcd->pnetid, in smcd_register_dev() 538 pr_warn_ratelimited("smc: adding smcd device %s without pnetid\n", in smcd_register_dev()
|
| H A D | smc_ib.c | 340 if (strncmp(smcibdev->pnetid[ibport - 1], lgr->pnet_id, in smc_ib_gid_check() 513 memcpy(smc_pnet, &smcibdev->pnetid[port], SMC_MAX_PNETID_LEN); in smc_nl_handle_dev_port() 974 smcibdev->pnetid[i])) in smc_ib_add_dev() 977 if (smc_pnet_is_pnetid_set(smcibdev->pnetid[i])) in smc_ib_add_dev() 980 smcibdev->pnetid[i], in smc_ib_add_dev()
|
| H A D | smc_ib.h | 46 u8 pnetid[SMC_MAX_PORTS][SMC_MAX_PNETID_LEN]; member
|
| H A D | smc_core.c | 581 memcpy(smc_pnet, lgr->smcd->pnetid, SMC_MAX_PNETID_LEN); in smc_nl_fill_smcd_lgr() 976 memcpy(lgr->pnet_id, ibdev->pnetid[ibport - 1], in smc_lgr_create() 1732 "%s, pnetid %.16s\n", SMC_LGR_ID_SIZE, &lgr->id, in smcr_lgr_set_type() 1766 if (strncmp(smcibdev->pnetid[ibport - 1], lgr->pnet_id, in smcr_port_add() 1853 if (strncmp(smcibdev->pnetid[ibport - 1], lgr->pnet_id, in smcr_port_err()
|
| H A D | af_smc.c | 1085 if (!smc_pnet_is_pnetid_set(smcd->pnetid) || in smc_find_ism_v2_device_clnt() 1086 smc_pnet_is_ndev_pnetid(sock_net(&smc->sk), smcd->pnetid)) { in smc_find_ism_v2_device_clnt()
|
| /linux/arch/s390/net/ |
| H A D | pnet.c | 72 int pnet_id_by_dev_port(struct device *dev, unsigned short port, u8 *pnetid) in pnet_id_by_dev_port() argument 83 memcpy(pnetid, pnetids[port], MAX_PNETID_LEN); in pnet_id_by_dev_port()
|
| /linux/arch/s390/include/asm/ |
| H A D | pnet.h | 14 int pnet_id_by_dev_port(struct device *dev, unsigned short port, u8 *pnetid);
|