/linux-6.6.21/net/smc/ |
D | smc_wr.c | 523 void smc_wr_remember_qp_attr(struct smc_link *lnk) in smc_wr_remember_qp_attr() argument 525 struct ib_qp_attr *attr = &lnk->qp_attr; in smc_wr_remember_qp_attr() 530 ib_query_qp(lnk->roce_qp, attr, in smc_wr_remember_qp_attr() 550 lnk->wr_tx_cnt = min_t(size_t, SMC_WR_BUF_CNT, in smc_wr_remember_qp_attr() 551 lnk->qp_attr.cap.max_send_wr); in smc_wr_remember_qp_attr() 552 lnk->wr_rx_cnt = min_t(size_t, SMC_WR_BUF_CNT * 3, in smc_wr_remember_qp_attr() 553 lnk->qp_attr.cap.max_recv_wr); in smc_wr_remember_qp_attr() 556 static void smc_wr_init_sge(struct smc_link *lnk) in smc_wr_init_sge() argument 558 int sges_per_buf = (lnk->lgr->smc_version == SMC_V2) ? 2 : 1; in smc_wr_init_sge() 559 bool send_inline = (lnk->qp_attr.cap.max_inline_data > SMC_WR_TX_SIZE); in smc_wr_init_sge() [all …]
|
D | smc_core.c | 71 static void smc_ibdev_cnt_inc(struct smc_link *lnk) in smc_ibdev_cnt_inc() argument 73 atomic_inc(&lnk->smcibdev->lnk_cnt_by_port[lnk->ibport - 1]); in smc_ibdev_cnt_inc() 76 static void smc_ibdev_cnt_dec(struct smc_link *lnk) in smc_ibdev_cnt_dec() argument 78 atomic_dec(&lnk->smcibdev->lnk_cnt_by_port[lnk->ibport - 1]); in smc_ibdev_cnt_dec() 130 conn->lnk = NULL; /* reset conn->lnk first */ in smcr_lgr_conn_assign_link() 132 struct smc_link *lnk = &conn->lgr->lnk[i]; in smcr_lgr_conn_assign_link() local 134 if (lnk->state != expected || lnk->link_is_asym) in smcr_lgr_conn_assign_link() 137 conn->lnk = lnk; /* temporary, SMC server assigns link*/ in smcr_lgr_conn_assign_link() 144 lnk2 = &conn->lgr->lnk[j]; in smcr_lgr_conn_assign_link() 147 conn->lnk = lnk2; in smcr_lgr_conn_assign_link() [all …]
|
D | smc_ib.c | 47 static int smc_ib_modify_qp_init(struct smc_link *lnk) in smc_ib_modify_qp_init() argument 54 qp_attr.port_num = lnk->ibport; in smc_ib_modify_qp_init() 57 return ib_modify_qp(lnk->roce_qp, &qp_attr, in smc_ib_modify_qp_init() 62 static int smc_ib_modify_qp_rtr(struct smc_link *lnk) in smc_ib_modify_qp_rtr() argument 72 qp_attr.path_mtu = min(lnk->path_mtu, lnk->peer_mtu); in smc_ib_modify_qp_rtr() 74 rdma_ah_set_port_num(&qp_attr.ah_attr, lnk->ibport); in smc_ib_modify_qp_rtr() 75 if (lnk->lgr->smc_version == SMC_V2 && lnk->lgr->uses_gateway) in smc_ib_modify_qp_rtr() 77 rdma_ah_set_grh(&qp_attr.ah_attr, NULL, 0, lnk->sgid_index, hop_lim, 0); in smc_ib_modify_qp_rtr() 78 rdma_ah_set_dgid_raw(&qp_attr.ah_attr, lnk->peer_gid); in smc_ib_modify_qp_rtr() 79 if (lnk->lgr->smc_version == SMC_V2 && lnk->lgr->uses_gateway) in smc_ib_modify_qp_rtr() [all …]
|
D | smc_wr.h | 75 static inline void smc_wr_drain_cq(struct smc_link *lnk) in smc_wr_drain_cq() argument 77 wait_event(lnk->wr_rx_empty_wait, lnk->wr_rx_id_compl == lnk->wr_rx_id); in smc_wr_drain_cq() 80 static inline void smc_wr_wakeup_tx_wait(struct smc_link *lnk) in smc_wr_wakeup_tx_wait() argument 82 wake_up_all(&lnk->wr_tx_wait); in smc_wr_wakeup_tx_wait() 85 static inline void smc_wr_wakeup_reg_wait(struct smc_link *lnk) in smc_wr_wakeup_reg_wait() argument 87 wake_up(&lnk->wr_reg_wait); in smc_wr_wakeup_reg_wait() 105 int smc_wr_create_link(struct smc_link *lnk); 106 int smc_wr_alloc_link_mem(struct smc_link *lnk); 108 void smc_wr_free_link(struct smc_link *lnk); 109 void smc_wr_free_link_mem(struct smc_link *lnk); [all …]
|
D | smc_tracepoint.h | 54 __string(name, smc->conn.lnk->ibname) 63 __assign_str(name, smc->conn.lnk->ibname); 87 TP_PROTO(const struct smc_link *lnk, void *location), 89 TP_ARGS(lnk, location), 92 __field(const void *, lnk) 96 __string(name, lnk->ibname) 101 const struct smc_link_group *lgr = lnk->lgr; 103 __entry->lnk = lnk; 106 __entry->state = lnk->state; 107 __assign_str(name, lnk->ibname); [all …]
|
D | smc_ib.h | 87 int smc_ib_buf_map_sg(struct smc_link *lnk, 90 void smc_ib_buf_unmap_sg(struct smc_link *lnk, 93 void smc_ib_dealloc_protection_domain(struct smc_link *lnk); 94 int smc_ib_create_protection_domain(struct smc_link *lnk); 95 void smc_ib_destroy_queue_pair(struct smc_link *lnk); 96 int smc_ib_create_queue_pair(struct smc_link *lnk); 97 int smc_ib_ready_link(struct smc_link *lnk); 98 int smc_ib_modify_qp_rts(struct smc_link *lnk); 99 int smc_ib_modify_qp_error(struct smc_link *lnk); 104 bool smc_ib_is_sg_need_sync(struct smc_link *lnk, [all …]
|
D | smc_core.h | 302 struct smc_link lnk[SMC_LINKS_PER_LGR_MAX]; member 472 static inline bool smc_link_usable(struct smc_link *lnk) in smc_link_usable() argument 474 if (lnk->state == SMC_LNK_UNUSED || lnk->state == SMC_LNK_INACTIVE) in smc_link_usable() 488 static inline bool smc_link_sendable(struct smc_link *lnk) in smc_link_sendable() argument 490 return smc_link_usable(lnk) && in smc_link_sendable() 491 lnk->qp_attr.cur_qp_state == IB_QPS_RTS; in smc_link_sendable() 494 static inline bool smc_link_active(struct smc_link *lnk) in smc_link_active() argument 496 return lnk->state == SMC_LNK_ACTIVE; in smc_link_active() 555 int smc_rtoken_add(struct smc_link *lnk, __be64 nw_vaddr, __be32 nw_rkey); 556 int smc_rtoken_delete(struct smc_link *lnk, __be32 nw_rkey); [all …]
|
D | smc_llc.h | 68 if (smc_link_usable(&lgr->lnk[i])) in smc_llc_usable_link() 69 return &lgr->lnk[i]; in smc_llc_usable_link() 82 int smc_llc_send_confirm_link(struct smc_link *lnk, 108 struct smc_link *lnk,
|
D | smc_llc.c | 337 struct smc_link *lnk, in smc_llc_wait() argument 345 (lnk && !smc_link_usable(lnk)) || in smc_llc_wait() 349 (lnk && !smc_link_usable(lnk)) || list_empty(&lgr->list)) { in smc_llc_wait() 508 link = &send_link->lgr->lnk[i]; in smc_llc_send_confirm_rkey() 821 if (lgr->lnk[i].state == SMC_LNK_UNUSED) in smc_llc_alloc_alt_link() 825 if (lgr->lnk[i].state == SMC_LNK_UNUSED) in smc_llc_alloc_alt_link() 1079 lnk_new = &lgr->lnk[lnk_idx]; in smc_llc_cli_add_link() 1233 if (!smc_link_active(&lgr->lnk[i])) in smc_llc_active_link_count() 1251 if (!smc_link_usable(&lgr->lnk[i]) || in smc_llc_find_asym_link() 1252 !smc_link_usable(&lgr->lnk[j])) in smc_llc_find_asym_link() [all …]
|
D | smc_diag.c | 148 struct smc_link *link = smc->conn.lnk; in __smc_diag_dump() 152 .lnk[0].ibport = link->ibport, in __smc_diag_dump() 153 .lnk[0].link_id = link->link_id, in __smc_diag_dump() 156 memcpy(linfo.lnk[0].ibname, link->smcibdev->ibdev->name, in __smc_diag_dump() 158 smc_gid_be16_convert(linfo.lnk[0].gid, link->gid); in __smc_diag_dump() 159 smc_gid_be16_convert(linfo.lnk[0].peer_gid, link->peer_gid); in __smc_diag_dump()
|
D | smc_tx.c | 50 SMC_STAT_RMB_TX_FULL(smc, !smc->conn.lnk); in smc_tx_write_space() 205 SMC_STAT_RMB_TX_SIZE_SMALL(smc, !conn->lnk); in smc_tx_sendmsg() 208 SMC_STAT_RMB_TX_PEER_SIZE_SMALL(smc, !conn->lnk); in smc_tx_sendmsg() 321 struct smc_link *link = conn->lnk; in smc_tx_rdma_write() 361 struct smc_link *link = conn->lnk; in smcr_tx_rdma_writes() 486 SMC_STAT_RMB_TX_PEER_FULL(smc, !conn->lnk); in smc_tx_rdma_writes() 550 struct smc_link *link = conn->lnk; in smcr_tx_sndbuf_nonempty() 577 if (link != conn->lnk) { in smcr_tx_sndbuf_nonempty() 635 SMC_STAT_RMB_TX_PEER_FULL(smc, !conn->lnk); in __smc_tx_sndbuf_nonempty()
|
D | smc_cdc.c | 115 struct smc_link *link = conn->lnk; in smc_cdc_msg_send() 147 struct smc_link *link = conn->lnk; in smcr_cdc_msg_send_validation() 182 link = conn->lnk; in smcr_cdc_get_slot_and_msg_send() 190 if (link != conn->lnk) { in smcr_cdc_get_slot_and_msg_send() 313 conn->lnk = link; in smc_cdc_msg_validate()
|
D | smc_stats.h | 115 bool is_smcd = !__smc->conn.lnk; \ 130 bool is_smcd = !__smc->conn.lnk; \ 220 bool is_smcd = !(__smc)->conn.lnk; \
|
/linux-6.6.21/sound/soc/generic/ |
D | audio-graph-card2.c | 242 static enum graph_type __graph_get_type(struct device_node *lnk) in __graph_get_type() argument 255 np = of_get_parent(lnk); in __graph_get_type() 286 struct device_node *lnk) in graph_get_type() argument 288 enum graph_type type = __graph_get_type(lnk); in graph_get_type() 301 if (asoc_graph_is_ports0(lnk)) in graph_get_type() 313 dev_dbg(dev, "%pOF (%s)", lnk, str); in graph_get_type() 319 static int graph_lnk_is_multi(struct device_node *lnk) in graph_lnk_is_multi() argument 321 return __graph_get_type(lnk) == GRAPH_MULTI; in graph_lnk_is_multi() 648 struct device_node *lnk, in audio_graph2_link_normal() argument 651 struct device_node *cpu_port = lnk; in audio_graph2_link_normal() [all …]
|
D | audio-graph-card2-custom-sample.c | 67 struct device_node *lnk, in custom_normal() argument 78 return audio_graph2_link_normal(priv, lnk, li); in custom_normal() 82 struct device_node *lnk, in custom_dpcm() argument 93 return audio_graph2_link_dpcm(priv, lnk, li); in custom_dpcm() 97 struct device_node *lnk, in custom_c2c() argument 108 return audio_graph2_link_c2c(priv, lnk, li); in custom_c2c()
|
/linux-6.6.21/io_uring/ |
D | fs.c | 243 struct io_link *lnk = io_kiocb_to_cmd(req, struct io_link); in io_linkat_prep() local 251 lnk->old_dfd = READ_ONCE(sqe->fd); in io_linkat_prep() 252 lnk->new_dfd = READ_ONCE(sqe->len); in io_linkat_prep() 255 lnk->flags = READ_ONCE(sqe->hardlink_flags); in io_linkat_prep() 257 lnk->oldpath = getname_uflags(oldf, lnk->flags); in io_linkat_prep() 258 if (IS_ERR(lnk->oldpath)) in io_linkat_prep() 259 return PTR_ERR(lnk->oldpath); in io_linkat_prep() 261 lnk->newpath = getname(newf); in io_linkat_prep() 262 if (IS_ERR(lnk->newpath)) { in io_linkat_prep() 263 putname(lnk->oldpath); in io_linkat_prep() [all …]
|
/linux-6.6.21/include/sound/ |
D | graph_card.h | 13 struct device_node *lnk, 29 struct device_node *lnk, struct link_info *li); 31 struct device_node *lnk, struct link_info *li); 33 struct device_node *lnk, struct link_info *li);
|
/linux-6.6.21/fs/qnx4/ |
D | namei.c | 99 struct qnx4_link_info *lnk; in qnx4_lookup() local 109 lnk = (struct qnx4_link_info *) de; in qnx4_lookup() 110 ino = (le32_to_cpu(lnk->dl_inode_blk) - 1) * in qnx4_lookup() 112 lnk->dl_inode_ndx; in qnx4_lookup()
|
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | gm200.c | 112 int lnk[2], sor[2], m, s; in gm200_sor_route_get() local 117 lnk[s] = (data & 0x00000010) >> 4; in gm200_sor_route_get() 121 *link |= lnk[s]; in gm200_sor_route_get() 126 if (sor[0] != sor[1] || WARN_ON(lnk[0] || !lnk[1])) in gm200_sor_route_get()
|
/linux-6.6.21/drivers/net/wireless/ti/wlcore/ |
D | tx.c | 508 struct wl1271_link *lnk, u8 q) in wlcore_lnk_dequeue() argument 513 skb = skb_dequeue(&lnk->tx_queue[q]); in wlcore_lnk_dequeue() 518 if (lnk->wlvif) { in wlcore_lnk_dequeue() 519 WARN_ON_ONCE(lnk->wlvif->tx_queue_count[q] <= 0); in wlcore_lnk_dequeue() 520 lnk->wlvif->tx_queue_count[q]--; in wlcore_lnk_dequeue() 532 struct wl1271_link *lnk = &wl->links[hlid]; in wlcore_lnk_dequeue_high_prio() local 534 if (!wlcore_hw_lnk_high_prio(wl, hlid, lnk)) { in wlcore_lnk_dequeue_high_prio() 536 !skb_queue_empty(&lnk->tx_queue[ac]) && in wlcore_lnk_dequeue_high_prio() 537 wlcore_hw_lnk_low_prio(wl, hlid, lnk)) in wlcore_lnk_dequeue_high_prio() 544 return wlcore_lnk_dequeue(wl, lnk, ac); in wlcore_lnk_dequeue_high_prio() [all …]
|
D | ps.c | 84 struct wl1271_link *lnk = &wl->links[hlid]; in wl1271_ps_filter_frames() local 89 while ((skb = skb_dequeue(&lnk->tx_queue[i]))) { in wl1271_ps_filter_frames() 105 if (lnk->wlvif) in wl1271_ps_filter_frames() 106 lnk->wlvif->tx_queue_count[i] -= filtered[i]; in wl1271_ps_filter_frames()
|
D | event.c | 146 struct wl1271_link *lnk; in wl1271_stop_ba_event() local 149 lnk = &wl->links[hlid]; in wl1271_stop_ba_event() 150 if (!lnk->ba_bitmap) in wl1271_stop_ba_event() 154 lnk->ba_bitmap, in wl1271_stop_ba_event() 155 lnk->addr); in wl1271_stop_ba_event()
|
D | hw_ops.h | 255 struct wl1271_link *lnk) in wlcore_hw_lnk_high_prio() argument 260 return wl->ops->lnk_high_prio(wl, hlid, lnk); in wlcore_hw_lnk_high_prio() 265 struct wl1271_link *lnk) in wlcore_hw_lnk_low_prio() argument 270 return wl->ops->lnk_low_prio(wl, hlid, lnk); in wlcore_hw_lnk_low_prio()
|
/linux-6.6.21/fs/erofs/ |
D | inode.c | 209 char *lnk; in erofs_fill_symlink() local 218 lnk = kmalloc(inode->i_size + 1, GFP_KERNEL); in erofs_fill_symlink() 219 if (!lnk) in erofs_fill_symlink() 225 kfree(lnk); in erofs_fill_symlink() 232 memcpy(lnk, kaddr + m_pofs, inode->i_size); in erofs_fill_symlink() 233 lnk[inode->i_size] = '\0'; in erofs_fill_symlink() 235 inode->i_link = lnk; in erofs_fill_symlink()
|
/linux-6.6.21/include/uapi/linux/ |
D | smc_diag.h | 95 struct smc_diag_linkinfo lnk[1]; member
|