| /linux/net/smc/ |
| A D | smc_ism.c | 85 return smcd->ops->get_chid(smcd); in smc_ism_get_chid() 157 if (smcd->ops->add_vlan_id(smcd, vlanid)) { in smc_ism_get_vlan() 199 if (smcd->ops->del_vlan_id(smcd, vlanid)) in smc_ism_put_vlan() 222 rc = smcd->ops->unregister_dmb(smcd, &dmb); in smc_ism_unregister_dmb() 242 rc = lgr->smcd->ops->register_dmb(lgr->smcd, &dmb, lgr->smcd->client); in smc_ism_register_dmb() 260 smcd->ops->support_dmb_nocopy(smcd)); in smc_ism_support_dmb_nocopy() 425 wrk->smcd->ops->signal_event(wrk->smcd, in smcd_handle_sw_event() 461 smcd = devm_kzalloc(parent, sizeof(*smcd), GFP_KERNEL); in smcd_alloc_dev() 462 if (!smcd) in smcd_alloc_dev() 494 if (!smcd) in smcd_register_dev() [all …]
|
| A D | smc_loopback.c | 302 smcd = kzalloc(sizeof(*smcd), GFP_KERNEL); in smcd_lo_alloc_dev() 303 if (!smcd) in smcd_lo_alloc_dev() 308 if (!smcd->conn) in smcd_lo_alloc_dev() 311 smcd->ops = ops; in smcd_lo_alloc_dev() 318 return smcd; in smcd_lo_alloc_dev() 321 kfree(smcd); in smcd_lo_alloc_dev() 330 if (!smcd) in smcd_lo_register_dev() 332 ldev->smcd = smcd; in smcd_lo_register_dev() 333 smcd->priv = ldev; in smcd_lo_register_dev() 345 struct smcd_dev *smcd = ldev->smcd; in smcd_lo_unregister_dev() local [all …]
|
| A D | smc_ism.h | 51 bool smc_ism_support_dmb_nocopy(struct smcd_dev *smcd); 64 static inline int smc_ism_write(struct smcd_dev *smcd, u64 dmb_tok, in smc_ism_write() argument 70 rc = smcd->ops->move_data(smcd, dmb_tok, idx, sf, offset, data, len); in smc_ism_write() 85 static inline bool smc_ism_is_emulated(struct smcd_dev *smcd) in smc_ism_is_emulated() argument 87 u16 chid = smcd->ops->get_chid(smcd); in smc_ism_is_emulated() 92 static inline bool smc_ism_is_loopback(struct smcd_dev *smcd) in smc_ism_is_loopback() argument 94 return (smcd->ops->get_chid(smcd) == 0xFFFF); in smc_ism_is_loopback()
|
| A D | smc_core.c | 541 struct smcd_dev *smcd = lgr->smcd; in smc_nl_fill_smcd_lgr() local 558 smcd->ops->get_local_gid(smcd, &smcd_gid); in smc_nl_fill_smcd_lgr() 874 struct smcd_dev *smcd; in smc_lgr_create() local 922 get_device(smcd->ops->get_dev(smcd)); in smc_lgr_create() 1191 struct smcd_dev *smcd = conn->lgr->smcd; in smcd_buf_detach() local 1472 put_device(lgr->smcd->ops->get_dev(lgr->smcd)); in smc_lgr_free() 1637 wait_event(smcd->lgrs_deleted, !atomic_read(&smcd->lgr_cnt)); in smc_smcd_terminate_all() 2556 struct smcd_dev *smcd = conn->lgr->smcd; in smcd_buf_attach() local 2706 struct smcd_dev *smcd; in smc_core_going_away() local 2719 smcd->going_away = 1; in smc_core_going_away() [all …]
|
| A D | smc_pnet.c | 106 struct smcd_dev *smcd; in smc_pnet_remove_by_pnetid() local 166 if (smcd->pnetid_by_user && 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() 431 if (smcd) { in smc_pnet_add_ib() 434 dev = smcd->ops->get_dev(smcd); in smc_pnet_add_ib() [all …]
|
| A D | smc_diag.c | 170 struct smcd_dev *smcd = conn->lgr->smcd; in __smc_diag_dump() local 178 smcd->ops->get_local_gid(smcd, &smcd_gid); in __smc_diag_dump()
|
| A D | smc_clc.c | 842 struct smcd_dev *smcd; in smc_clc_send_proposal() local 902 smcd = ini->ism_dev[0]; in smc_clc_send_proposal() 903 smcd->ops->get_local_gid(smcd, &smcd_gid); in smc_clc_send_proposal() 952 smcd = ini->ism_dev[i]; in smc_clc_send_proposal() 953 smcd->ops->get_local_gid(smcd, &smcd_gid); in smc_clc_send_proposal() 957 if (smc_ism_is_emulated(smcd)) { in smc_clc_send_proposal() 1038 struct smcd_dev *smcd = conn->lgr->smcd; in smcd_clc_prep_confirm_accept() local 1046 smcd->ops->get_local_gid(smcd, &smcd_gid); in smcd_clc_prep_confirm_accept() 1056 chid = smc_ism_get_chid(smcd); in smcd_clc_prep_confirm_accept()
|
| A D | smc_loopback.h | 36 struct smcd_dev *smcd; member
|
| A D | smc_pnet.h | 64 int smc_pnetid_by_table_smcd(struct smcd_dev *smcd);
|
| A D | af_smc.c | 1037 struct smcd_dev *smcd; in smc_find_ism_v2_device_clnt() local 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() 1061 ini->ism_dev[i] = smcd; in smc_find_ism_v2_device_clnt() 2089 if (smcd == ini->ism_dev[i]) in smc_is_already_selected() 2101 struct smcd_dev *smcd; in smc_check_ism_v2_match() local 2104 if (smcd->going_away) in smc_check_ism_v2_match() 2106 if (smc_is_already_selected(smcd, ini, *matches)) in smc_check_ism_v2_match() 2108 if (smc_ism_get_chid(smcd) == proposed_chid && in smc_check_ism_v2_match() [all …]
|
| A D | smc_cdc.c | 260 if (smc_ism_support_dmb_nocopy(conn->lgr->smcd)) in smcd_cdc_msg_send() 357 smc_ism_support_dmb_nocopy(conn->lgr->smcd)) { in smc_cdc_msg_recv_action()
|
| A D | smc_core.h | 364 struct smcd_dev *smcd; member
|
| A D | smc_tx.c | 308 rc = smc_ism_write(conn->lgr->smcd, conn->peer_token, in smcd_tx_ism_write()
|
| /linux/drivers/s390/net/ |
| A D | ism_drv.c | 760 return ism_add_vlan_id(smcd->priv, vlan_id); in smcd_add_vlan_id() 765 return ism_del_vlan_id(smcd->priv, vlan_id); in smcd_del_vlan_id() 768 static int smcd_set_vlan_required(struct smcd_dev *smcd) in smcd_set_vlan_required() argument 770 return ism_cmd_simple(smcd->priv, ISM_SET_VLAN); in smcd_set_vlan_required() 773 static int smcd_reset_vlan_required(struct smcd_dev *smcd) in smcd_reset_vlan_required() argument 775 return ism_cmd_simple(smcd->priv, ISM_RESET_VLAN); in smcd_reset_vlan_required() 798 return ism_signal_ieq(smcd->priv, rgid->gid, in smcd_signal_ieq() 819 static void smcd_get_local_gid(struct smcd_dev *smcd, in smcd_get_local_gid() argument 822 smcd_gid->gid = ism_get_local_gid(smcd->priv); in smcd_get_local_gid() 834 static u16 smcd_get_chid(struct smcd_dev *smcd) in smcd_get_chid() argument [all …]
|