Home
last modified time | relevance | path

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

/net/smc/
A Dsmc_ism.c85 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 Dsmc_loopback.c296 smcd = kzalloc(sizeof(*smcd), GFP_KERNEL); in smcd_lo_alloc_dev()
297 if (!smcd) in smcd_lo_alloc_dev()
302 if (!smcd->conn) in smcd_lo_alloc_dev()
305 smcd->ops = ops; in smcd_lo_alloc_dev()
312 return smcd; in smcd_lo_alloc_dev()
315 kfree(smcd); in smcd_lo_alloc_dev()
324 if (!smcd) in smcd_lo_register_dev()
326 ldev->smcd = smcd; in smcd_lo_register_dev()
327 smcd->priv = ldev; in smcd_lo_register_dev()
339 struct smcd_dev *smcd = ldev->smcd; in smcd_lo_unregister_dev() local
[all …]
A Dsmc_ism.h51 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 Dsmc_core.c541 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()
879 struct smcd_dev *smcd; in smc_lgr_create() local
927 get_device(smcd->ops->get_dev(smcd)); in smc_lgr_create()
1196 struct smcd_dev *smcd = conn->lgr->smcd; in smcd_buf_detach() local
1477 put_device(lgr->smcd->ops->get_dev(lgr->smcd)); in smc_lgr_free()
1642 wait_event(smcd->lgrs_deleted, !atomic_read(&smcd->lgr_cnt)); in smc_smcd_terminate_all()
2565 struct smcd_dev *smcd = conn->lgr->smcd; in smcd_buf_attach() local
2715 struct smcd_dev *smcd; in smc_core_going_away() local
2728 smcd->going_away = 1; in smc_core_going_away()
[all …]
A Dsmc_pnet.c106 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 Dsmc_clc.c857 struct smcd_dev *smcd; in smc_clc_send_proposal() local
917 smcd = ini->ism_dev[0]; in smc_clc_send_proposal()
918 smcd->ops->get_local_gid(smcd, &smcd_gid); in smc_clc_send_proposal()
967 smcd = ini->ism_dev[i]; in smc_clc_send_proposal()
968 smcd->ops->get_local_gid(smcd, &smcd_gid); in smc_clc_send_proposal()
972 if (smc_ism_is_emulated(smcd)) { in smc_clc_send_proposal()
1053 struct smcd_dev *smcd = conn->lgr->smcd; in smcd_clc_prep_confirm_accept() local
1061 smcd->ops->get_local_gid(smcd, &smcd_gid); in smcd_clc_prep_confirm_accept()
1071 chid = smc_ism_get_chid(smcd); in smcd_clc_prep_confirm_accept()
A Dsmc_diag.c170 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 Daf_smc.c1057 struct smcd_dev *smcd; in smc_find_ism_v2_device_clnt() local
1066 if (smcd->going_away || smcd == ini->ism_dev[0]) in smc_find_ism_v2_device_clnt()
1068 chid = smc_ism_get_chid(smcd); in smc_find_ism_v2_device_clnt()
1072 if (!smc_pnet_is_pnetid_set(smcd->pnetid) || in smc_find_ism_v2_device_clnt()
1081 ini->ism_dev[i] = smcd; in smc_find_ism_v2_device_clnt()
2113 if (smcd == ini->ism_dev[i]) in smc_is_already_selected()
2125 struct smcd_dev *smcd; in smc_check_ism_v2_match() local
2128 if (smcd->going_away) in smc_check_ism_v2_match()
2130 if (smc_is_already_selected(smcd, ini, *matches)) in smc_check_ism_v2_match()
2132 if (smc_ism_get_chid(smcd) == proposed_chid && in smc_check_ism_v2_match()
[all …]
A Dsmc_loopback.h36 struct smcd_dev *smcd; member
A Dsmc_pnet.h64 int smc_pnetid_by_table_smcd(struct smcd_dev *smcd);
A Dsmc_cdc.c260 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 Dsmc_core.h368 struct smcd_dev *smcd; member
A Dsmc_tx.c308 rc = smc_ism_write(conn->lgr->smcd, conn->peer_token, in smcd_tx_ism_write()

Completed in 40 milliseconds