Lines Matching +full:recv +full:- +full:empty
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Shared Memory Communications over RDMA (SMC-R) and RoCE
29 * also is the default value for SMC-R v1 and v2.0
32 * SMC-R v2.1 and later negotiation, vendors or
34 * 16-255 as needed.
95 struct smc_ib_device *smcibdev; /* ib-device */
96 u8 ibport; /* port - values 1 | 2 */
125 struct smc_wr_buf *wr_rx_bufs; /* WR recv payload buffers */
126 struct ib_recv_wr *wr_rx_ibs; /* WR recv meta data */
127 struct ib_sge *wr_rx_sges; /* WR recv scatter meta data */
131 u64 wr_rx_id; /* seq # of last recv WR */
133 u32 wr_rx_cnt; /* number of WR recv buffers */
135 wait_queue_head_t wr_rx_empty_wait; /* wait for RQ empty */
180 * default value for smc-r v1.0 and v2.0
183 * SMC-R v2.1 and later negotiation, vendors or
185 * 1-2 as needed.
196 struct { /* SMC-R */
219 struct { /* SMC-D */
252 enum smcr_buf_type { /* types of SMC-R sndbufs and RMBs */
294 bool is_smcd; /* SMC-R or SMC-D */
301 struct { /* SMC-R */
307 /* WR v2 recv payload buffer */
359 struct { /* SMC-D */
398 /* max # of proposed non-native ISM devices,
399 * which can't exceed the max # of CHID-GID
400 * entries in CLC proposal SMC-Dv2 extension.
415 /* SMC-R */
426 /* SMC-D */
448 node = lgr->conns_all.rb_node; in smc_lgr_find_conn()
453 if (cur->alert_token_local > token) { in smc_lgr_find_conn()
454 node = node->rb_left; in smc_lgr_find_conn()
456 if (cur->alert_token_local < token) { in smc_lgr_find_conn()
457 node = node->rb_right; in smc_lgr_find_conn()
470 return conn->lgr && conn->alert_token_local; in smc_conn_lgr_valid()
482 if (lnk->state == SMC_LNK_UNUSED || lnk->state == SMC_LNK_INACTIVE) in smc_link_usable()
499 lnk->qp_attr.cur_qp_state == IB_QPS_RTS; in smc_link_sendable()
504 return lnk->state == SMC_LNK_ACTIVE; in smc_link_active()
531 smc_dev->pci_vendor = pci_dev->vendor; in smc_set_pci_values()
532 smc_dev->pci_device = pci_dev->device; in smc_set_pci_values()
533 snprintf(smc_dev->pci_id, sizeof(smc_dev->pci_id), "%s", in smc_set_pci_values()
540 smc_dev->pci_fid = zdev->fid; in smc_set_pci_values()
541 smc_dev->pci_pchid = zdev->pchid; in smc_set_pci_values()
602 return link->lgr; in smc_get_lgr()