Home
last modified time | relevance | path

Searched refs:rmb_desc (Results 1 – 12 of 12) sorted by relevance

/Linux-v6.1/net/smc/
Dsmc_rx.c63 smc_curs_add(conn->rmb_desc->len, &cons, len); in smc_rx_update_consumer()
67 diff = smc_curs_comp(conn->rmb_desc->len, &cons, in smc_rx_update_consumer()
79 smc_curs_add(conn->rmb_desc->len, &cons, 1); in smc_rx_update_consumer()
157 nr_pages = !lgr->is_smcd && smc->conn.rmb_desc->is_vm ? in smc_rx_splice()
176 (!lgr->is_smcd && !smc->conn.rmb_desc->is_vm)) { in smc_rx_splice()
180 partial[0].offset = src - (char *)smc->conn.rmb_desc->cpu_addr; in smc_rx_splice()
183 pages[0] = smc->conn.rmb_desc->pages; in smc_rx_splice()
211 if (!lgr->is_smcd && smc->conn.rmb_desc->is_vm) { in smc_rx_splice()
215 get_page(smc->conn.rmb_desc->pages); in smc_rx_splice()
300 if (smc_curs_diff(conn->rmb_desc->len, &cons, in smc_rx_recv_urg()
[all …]
Dsmc_llc.h97 struct smc_buf_desc *rmb_desc);
99 struct smc_buf_desc *rmb_desc);
Dsmc_cdc.c289 base = (char *)conn->rmb_desc->cpu_addr + conn->rx_off; in smc_cdc_handle_urg_data_arrival()
293 conn->urg_rx_byte = *(base + conn->rmb_desc->len - 1); in smc_cdc_handle_urg_data_arrival()
342 diff_prod = smc_curs_diff(conn->rmb_desc->len, &prod_old, in smc_cdc_msg_recv_action()
418 data_cdc = (struct smcd_cdc_msg *)conn->rmb_desc->cpu_addr; in smcd_cdc_rx_tsklet()
Dsmc_diag.c112 .rmbe_size = conn->rmb_desc ? conn->rmb_desc->len : 0, in __smc_diag_dump()
176 dinfo.token = conn->rmb_desc->token; in __smc_diag_dump()
Dsmc_llc.c484 struct smc_buf_desc *rmb_desc) in smc_llc_send_confirm_rkey() argument
508 htonl(rmb_desc->mr[link->link_idx]->rkey); in smc_llc_send_confirm_rkey()
509 rkeyllc->rtoken[rtok_ix].rmb_vaddr = rmb_desc->is_vm ? in smc_llc_send_confirm_rkey()
510 cpu_to_be64((uintptr_t)rmb_desc->cpu_addr) : in smc_llc_send_confirm_rkey()
512 (rmb_desc->sgt[link->link_idx].sgl)); in smc_llc_send_confirm_rkey()
519 htonl(rmb_desc->mr[send_link->link_idx]->rkey); in smc_llc_send_confirm_rkey()
520 rkeyllc->rtoken[0].rmb_vaddr = rmb_desc->is_vm ? in smc_llc_send_confirm_rkey()
521 cpu_to_be64((uintptr_t)rmb_desc->cpu_addr) : in smc_llc_send_confirm_rkey()
523 (rmb_desc->sgt[send_link->link_idx].sgl)); in smc_llc_send_confirm_rkey()
533 struct smc_buf_desc *rmb_desc) in smc_llc_send_delete_rkey() argument
[all …]
Dsmc_tx.c740 int sender_free = conn->rmb_desc->len; in smc_tx_consumer_update()
745 to_confirm = smc_curs_diff(conn->rmb_desc->len, &cfed, &cons); in smc_tx_consumer_update()
748 sender_free = conn->rmb_desc->len - in smc_tx_consumer_update()
749 smc_curs_diff_large(conn->rmb_desc->len, in smc_tx_consumer_update()
756 ((sender_free <= (conn->rmb_desc->len / 2)) || in smc_tx_consumer_update()
Dsmc_ism.c61 conn->lgr->smcd->conn[conn->rmb_desc->sba_idx] = conn; in smc_ism_set_conn()
70 if (!conn->rmb_desc) in smc_ism_unset_conn()
74 conn->lgr->smcd->conn[conn->rmb_desc->sba_idx] = NULL; in smc_ism_unset_conn()
Dsmc_clc.c1004 clc->d0.token = conn->rmb_desc->token; in smc_clc_send_confirm_accept()
1037 htonl(conn->rmb_desc->mr[link->link_idx]->rkey); in smc_clc_send_confirm_accept()
1049 clc->r0.rmb_dma_addr = conn->rmb_desc->is_vm ? in smc_clc_send_confirm_accept()
1050 cpu_to_be64((uintptr_t)conn->rmb_desc->cpu_addr) : in smc_clc_send_confirm_accept()
1052 (conn->rmb_desc->sgt[link->link_idx].sgl)); in smc_clc_send_confirm_accept()
Daf_smc.c518 struct smc_buf_desc *rmb_desc) in smcr_lgr_reg_rmbs() argument
533 rc = smcr_link_reg_buf(&lgr->lnk[i], rmb_desc); in smcr_lgr_reg_rmbs()
539 rc = smc_llc_do_confirm_rkey(link, rmb_desc); in smcr_lgr_reg_rmbs()
544 rmb_desc->is_conf_rkey = true; in smcr_lgr_reg_rmbs()
586 if (smcr_link_reg_buf(link, smc->conn.rmb_desc)) in smcr_clnt_conf_first_link()
590 smc->conn.rmb_desc->is_conf_rkey = true; in smcr_clnt_conf_first_link()
1264 if (smcr_lgr_reg_rmbs(link, smc->conn.rmb_desc)) { in smc_connect_rdma()
1799 if (smcr_link_reg_buf(link, smc->conn.rmb_desc)) in smcr_serv_conf_first_link()
1824 smc->conn.rmb_desc->is_conf_rkey = true; in smcr_serv_conf_first_link()
2164 if (smcr_lgr_reg_rmbs(conn->lnk, conn->rmb_desc)) in smc_listen_rdma_reg()
[all …]
Dsmc_core.c1140 if (conn->rmb_desc) { in smc_buf_unuse()
1142 smcr_buf_unuse(conn->rmb_desc, true, lgr); in smc_buf_unuse()
1144 conn->rmb_desc->used = 0; in smc_buf_unuse()
1145 memset(conn->rmb_desc->cpu_addr, 0, in smc_buf_unuse()
1146 conn->rmb_desc->len + in smc_buf_unuse()
2374 conn->rmb_desc = buf_desc; in __smc_buf_create()
2404 if (!conn->rmb_desc->is_dma_need_sync) in smc_rmb_sync_sg_for_cpu()
2411 smc_ib_sync_sg_for_cpu(&conn->lgr->lnk[i], conn->rmb_desc, in smc_rmb_sync_sg_for_cpu()
Dsmc.h163 struct smc_buf_desc *rmb_desc; /* RMBE descriptor */ member
Dsmc_core.h552 int smcr_link_reg_buf(struct smc_link *link, struct smc_buf_desc *rmb_desc);