Lines Matching refs:sndbuf_desc
1033 smc_curs_add(conn->sndbuf_desc->len, in smc_switch_cursor()
1035 smc_curs_add(conn->sndbuf_desc->len, in smc_switch_cursor()
1194 if (!conn->sndbuf_desc) in smcd_buf_detach()
1199 kfree(conn->sndbuf_desc); in smcd_buf_detach()
1200 conn->sndbuf_desc = NULL; in smcd_buf_detach()
1210 if (conn->sndbuf_desc) { in smc_buf_unuse()
1211 bufsize = conn->sndbuf_desc->len; in smc_buf_unuse()
1212 if (!is_smcd && conn->sndbuf_desc->is_vm) { in smc_buf_unuse()
1213 smcr_buf_unuse(conn->sndbuf_desc, false, lgr); in smc_buf_unuse()
1215 memzero_explicit(conn->sndbuf_desc->cpu_addr, bufsize); in smc_buf_unuse()
1216 WRITE_ONCE(conn->sndbuf_desc->used, 0); in smc_buf_unuse()
2487 conn->sndbuf_desc = buf_desc; in __smc_buf_create()
2496 if (!conn->sndbuf_desc->is_dma_need_sync) in smc_sndbuf_sync_sg_for_device()
2501 smc_ib_sync_sg_for_device(conn->lnk, conn->sndbuf_desc, DMA_TO_DEVICE); in smc_sndbuf_sync_sg_for_device()
2542 if (rc && smc->conn.sndbuf_desc) { in smc_buf_create()
2545 smc->conn.sndbuf_desc); in smc_buf_create()
2547 smc_buf_free(smc->conn.lgr, false, smc->conn.sndbuf_desc); in smc_buf_create()
2548 smc->conn.sndbuf_desc = NULL; in smc_buf_create()
2578 conn->sndbuf_desc = buf_desc; in smcd_buf_attach()
2579 conn->sndbuf_desc->used = 1; in smcd_buf_attach()
2580 atomic_set(&conn->sndbuf_space, conn->sndbuf_desc->len); in smcd_buf_attach()