Home
last modified time | relevance | path

Searched refs:smcd (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/net/smc/
H A Dsmc_ism.c48 struct smcd_dev *smcd) in smc_ism_cantalk() argument
50 return smcd->ops->query_remote_gid(smcd, peer_gid, vlan_id ? 1 : 0, in smc_ism_cantalk()
62 u16 smc_ism_get_chid(struct smcd_dev *smcd) in smc_ism_get_chid() argument
64 return smcd->ops->get_chid(smcd); in smc_ism_get_chid()
78 spin_lock_irqsave(&conn->lgr->smcd->lock, flags); in smc_ism_set_conn()
79 conn->lgr->smcd->conn[conn->rmb_desc->sba_idx] = conn; in smc_ism_set_conn()
80 spin_unlock_irqrestore(&conn->lgr->smcd->lock, flags); in smc_ism_set_conn()
91 spin_lock_irqsave(&conn->lgr->smcd->lock, flags); in smc_ism_unset_conn()
92 conn->lgr->smcd->conn[conn->rmb_desc->sba_idx] = NULL; in smc_ism_unset_conn()
93 spin_unlock_irqrestore(&conn->lgr->smcd->lock, flags); in smc_ism_unset_conn()
[all …]
H A Dsmc_ism.h44 bool smc_ism_support_dmb_nocopy(struct smcd_dev *smcd);
56 static inline int smc_ism_write(struct smcd_dev *smcd, u64 dmb_tok, in smc_ism_write() argument
62 rc = smcd->ops->move_data(smcd, dmb_tok, idx, sf, offset, data, len); in smc_ism_write()
77 static inline bool smc_ism_is_virtual(struct smcd_dev *smcd) in smc_ism_is_virtual() argument
79 u16 chid = smcd->ops->get_chid(smcd); in smc_ism_is_virtual()
H A Dsmc_core.c63 *lgr_lock = &lgr->smcd->lgr_lock; in smc_lgr_list_head()
64 return &lgr->smcd->lgr_list; in smc_lgr_list_head()
508 struct smcd_dev *smcd = lgr->smcd; in smc_nl_fill_smcd_lgr() local
525 smcd->ops->get_local_gid(smcd, &smcd_gid); in smc_nl_fill_smcd_lgr()
536 if (nla_put_u32(skb, SMC_NLA_LGR_D_CHID, smc_ism_get_chid(lgr->smcd))) in smc_nl_fill_smcd_lgr()
538 memcpy(smc_pnet, lgr->smcd->pnetid, SMC_MAX_PNETID_LEN); in smc_nl_fill_smcd_lgr()
831 struct smcd_dev *smcd; in smc_lgr_create() local
878 smcd = ini->ism_dev[ini->ism_selected]; in smc_lgr_create()
879 get_device(smcd->ops->get_dev(smcd)); in smc_lgr_create()
884 lgr->smcd = ini->ism_dev[ini->ism_selected]; in smc_lgr_create()
[all …]
H A Dsmc_pnet.c106 struct smcd_dev *smcd; in smc_pnet_remove_by_pnetid() local
165 list_for_each_entry(smcd, &smcd_dev_list.list, list) { in smc_pnet_remove_by_pnetid()
166 if (smcd->pnetid_by_user && in smc_pnet_remove_by_pnetid()
168 smc_pnet_match(pnet_name, smcd->pnetid))) { in smc_pnet_remove_by_pnetid()
172 dev_name(smcd->ops->get_dev(smcd)), 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()
175 smcd->pnetid_by_user = false; in smc_pnet_remove_by_pnetid()
415 struct smcd_dev *smcd; in smc_pnet_add_ib() local
430 smcd = smc_pnet_find_smcd(ib_name); in smc_pnet_add_ib()
[all …]
H A Dsmc_diag.c170 struct smcd_dev *smcd = conn->lgr->smcd; in __smc_diag_dump() local
177 smcd->ops->get_local_gid(smcd, &smcd_gid); in __smc_diag_dump()
H A Dsmc_clc.c855 struct smcd_dev *smcd; in smc_clc_send_proposal() local
913 smcd = ini->ism_dev[0]; in smc_clc_send_proposal()
914 smcd->ops->get_local_gid(smcd, &smcd_gid); in smc_clc_send_proposal()
962 smcd = ini->ism_dev[i]; in smc_clc_send_proposal()
963 smcd->ops->get_local_gid(smcd, &smcd_gid); in smc_clc_send_proposal()
967 if (smc_ism_is_virtual(smcd)) { in smc_clc_send_proposal()
1048 struct smcd_dev *smcd = conn->lgr->smcd; in smcd_clc_prep_confirm_accept() local
1056 smcd->ops->get_local_gid(smcd, &smcd_gid); in smcd_clc_prep_confirm_accept()
1066 chid = smc_ism_get_chid(smcd); in smcd_clc_prep_confirm_accept()
H A Dsmc_pnet.h64 int smc_pnetid_by_table_smcd(struct smcd_dev *smcd);
H A Daf_smc.c1037 struct smcd_dev *smcd; in smc_find_ism_v2_device_clnt() local
1045 list_for_each_entry(smcd, &smcd_dev_list.list, list) { in smc_find_ism_v2_device_clnt()
1046 if (smcd->going_away || smcd == ini->ism_dev[0]) in smc_find_ism_v2_device_clnt()
1048 chid = smc_ism_get_chid(smcd); in smc_find_ism_v2_device_clnt()
1052 if (!smc_pnet_is_pnetid_set(smcd->pnetid) || in smc_find_ism_v2_device_clnt()
1053 smc_pnet_is_ndev_pnetid(sock_net(&smc->sk), smcd->pnetid)) { in smc_find_ism_v2_device_clnt()
1061 ini->ism_dev[i] = smcd; in smc_find_ism_v2_device_clnt()
1430 if (smc_ism_support_dmb_nocopy(smc->conn.lgr->smcd)) { in smc_connect_ism()
2091 static bool smc_is_already_selected(struct smcd_dev *smcd, in smc_is_already_selected() argument
2098 if (smcd == ini->ism_dev[i]) in smc_is_already_selected()
[all …]
H A Dsmc_core.h362 struct smcd_dev *smcd; member
H A Dsmc_tx.c308 rc = smc_ism_write(conn->lgr->smcd, conn->peer_token, in smcd_tx_ism_write()
/openbmc/linux/drivers/s390/net/
H A Dism_drv.c775 static int smcd_query_rgid(struct smcd_dev *smcd, struct smcd_gid *rgid, in smcd_query_rgid() argument
778 return ism_query_rgid(smcd->priv, rgid->gid, vid_valid, vid); in smcd_query_rgid()
781 static int smcd_register_dmb(struct smcd_dev *smcd, struct smcd_dmb *dmb, in smcd_register_dmb() argument
784 return ism_register_dmb(smcd->priv, (struct ism_dmb *)dmb, client); in smcd_register_dmb()
787 static int smcd_unregister_dmb(struct smcd_dev *smcd, struct smcd_dmb *dmb) in smcd_unregister_dmb() argument
789 return ism_unregister_dmb(smcd->priv, (struct ism_dmb *)dmb); in smcd_unregister_dmb()
792 static int smcd_add_vlan_id(struct smcd_dev *smcd, u64 vlan_id) in smcd_add_vlan_id() argument
794 return ism_add_vlan_id(smcd->priv, vlan_id); in smcd_add_vlan_id()
797 static int smcd_del_vlan_id(struct smcd_dev *smcd, u64 vlan_id) in smcd_del_vlan_id() argument
799 return ism_del_vlan_id(smcd->priv, vlan_id); in smcd_del_vlan_id()
[all …]