Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/smc/
Dsmc_rx.c61 smc_curs_add(conn->rmb_desc->len, &cons, len); in smc_rx_update_consumer()
65 diff = smc_curs_comp(conn->rmb_desc->len, &cons, in smc_rx_update_consumer()
77 smc_curs_add(conn->rmb_desc->len, &cons, 1); in smc_rx_update_consumer()
156 partial.offset = src - (char *)smc->conn.rmb_desc->cpu_addr; in smc_rx_splice()
162 spd.pages = &smc->conn.rmb_desc->pages; in smc_rx_splice()
170 get_page(smc->conn.rmb_desc->pages); in smc_rx_splice()
239 if (smc_curs_diff(conn->rmb_desc->len, &cons, in smc_rx_recv_urg()
307 rcvbuf_base = conn->rx_off + conn->rmb_desc->cpu_addr; in smc_rx_recvmsg()
379 smc_curs_add(conn->rmb_desc->len, &cons, splbytes); in smc_rx_recvmsg()
388 chunk_len = min_t(size_t, copylen, conn->rmb_desc->len - in smc_rx_recvmsg()
Dsmc_core.c607 static void smcr_buf_unuse(struct smc_buf_desc *rmb_desc, in smcr_buf_unuse() argument
612 if (rmb_desc->is_conf_rkey && !list_empty(&lgr->list)) { in smcr_buf_unuse()
618 smc_llc_do_delete_rkey(lgr, rmb_desc); in smcr_buf_unuse()
619 rmb_desc->is_conf_rkey = false; in smcr_buf_unuse()
625 if (rmb_desc->is_reg_err) { in smcr_buf_unuse()
628 list_del(&rmb_desc->list); in smcr_buf_unuse()
631 smc_buf_free(lgr, true, rmb_desc); in smcr_buf_unuse()
633 rmb_desc->used = 0; in smcr_buf_unuse()
642 if (conn->rmb_desc && lgr->is_smcd) in smc_buf_unuse()
643 conn->rmb_desc->used = 0; in smc_buf_unuse()
[all …]
Dsmc_llc.h87 struct smc_buf_desc *rmb_desc);
89 struct smc_buf_desc *rmb_desc);
Dsmc_tx.c607 int sender_free = conn->rmb_desc->len; in smc_tx_consumer_update()
612 to_confirm = smc_curs_diff(conn->rmb_desc->len, &cfed, &cons); in smc_tx_consumer_update()
615 sender_free = conn->rmb_desc->len - in smc_tx_consumer_update()
616 smc_curs_diff_large(conn->rmb_desc->len, in smc_tx_consumer_update()
623 ((sender_free <= (conn->rmb_desc->len / 2)) || in smc_tx_consumer_update()
Dsmc_cdc.c278 base = (char *)conn->rmb_desc->cpu_addr + conn->rx_off; in smc_cdc_handle_urg_data_arrival()
282 conn->urg_rx_byte = *(base + conn->rmb_desc->len - 1); in smc_cdc_handle_urg_data_arrival()
331 diff_prod = smc_curs_diff(conn->rmb_desc->len, &prod_old, in smc_cdc_msg_recv_action()
403 data_cdc = (struct smcd_cdc_msg *)conn->rmb_desc->cpu_addr; in smcd_cdc_rx_tsklet()
Dsmc_diag.c125 .rmbe_size = conn->rmb_desc ? conn->rmb_desc->len : 0, in __smc_diag_dump()
189 dinfo.token = conn->rmb_desc->token; in __smc_diag_dump()
Dsmc_ism.c60 conn->lgr->smcd->conn[conn->rmb_desc->sba_idx] = conn; in smc_ism_set_conn()
69 if (!conn->rmb_desc) in smc_ism_unset_conn()
73 conn->lgr->smcd->conn[conn->rmb_desc->sba_idx] = NULL; in smc_ism_unset_conn()
Dsmc_llc.c414 struct smc_buf_desc *rmb_desc) in smc_llc_send_confirm_rkey() argument
438 htonl(rmb_desc->mr_rx[link->link_idx]->rkey); in smc_llc_send_confirm_rkey()
441 rmb_desc->sgt[link->link_idx].sgl)); in smc_llc_send_confirm_rkey()
448 htonl(rmb_desc->mr_rx[send_link->link_idx]->rkey); in smc_llc_send_confirm_rkey()
450 (u64)sg_dma_address(rmb_desc->sgt[send_link->link_idx].sgl)); in smc_llc_send_confirm_rkey()
460 struct smc_buf_desc *rmb_desc) in smc_llc_send_delete_rkey() argument
477 rkeyllc->rkey[0] = htonl(rmb_desc->mr_rx[link->link_idx]->rkey); in smc_llc_send_delete_rkey()
1847 struct smc_buf_desc *rmb_desc) in smc_llc_do_confirm_rkey() argument
1853 rc = smc_llc_send_confirm_rkey(send_link, rmb_desc); in smc_llc_do_confirm_rkey()
1869 struct smc_buf_desc *rmb_desc) in smc_llc_do_delete_rkey() argument
[all …]
Daf_smc.c354 struct smc_buf_desc *rmb_desc) in smcr_lgr_reg_rmbs() argument
369 rc = smcr_link_reg_rmb(&lgr->lnk[i], rmb_desc); in smcr_lgr_reg_rmbs()
375 rc = smc_llc_do_confirm_rkey(link, rmb_desc); in smcr_lgr_reg_rmbs()
380 rmb_desc->is_conf_rkey = true; in smcr_lgr_reg_rmbs()
415 if (smcr_link_reg_rmb(link, smc->conn.rmb_desc)) in smcr_clnt_conf_first_link()
419 smc->conn.rmb_desc->is_conf_rkey = true; in smcr_clnt_conf_first_link()
806 if (smcr_lgr_reg_rmbs(link, smc->conn.rmb_desc)) { in smc_connect_rdma()
1261 if (smcr_link_reg_rmb(link, smc->conn.rmb_desc)) in smcr_serv_conf_first_link()
1286 smc->conn.rmb_desc->is_conf_rkey = true; in smcr_serv_conf_first_link()
1591 if (smcr_lgr_reg_rmbs(conn->lnk, conn->rmb_desc)) in smc_listen_rdma_reg()
[all …]
Dsmc.h145 struct smc_buf_desc *rmb_desc; /* RMBE descriptor */ member
Dsmc_clc.c660 clc->d0.token = conn->rmb_desc->token; in smc_clc_send_confirm_accept()
696 htonl(conn->rmb_desc->mr_rx[link->link_idx]->rkey); in smc_clc_send_confirm_accept()
709 (conn->rmb_desc->sgt[link->link_idx].sgl)); in smc_clc_send_confirm_accept()
Dsmc_core.h415 int smcr_link_reg_rmb(struct smc_link *link, struct smc_buf_desc *rmb_desc);