/Linux-v6.1/net/smc/ |
D | smc_wr.c | 524 void smc_wr_remember_qp_attr(struct smc_link *lnk) in smc_wr_remember_qp_attr() argument 526 struct ib_qp_attr *attr = &lnk->qp_attr; in smc_wr_remember_qp_attr() 531 ib_query_qp(lnk->roce_qp, attr, in smc_wr_remember_qp_attr() 551 lnk->wr_tx_cnt = min_t(size_t, SMC_WR_BUF_CNT, in smc_wr_remember_qp_attr() 552 lnk->qp_attr.cap.max_send_wr); in smc_wr_remember_qp_attr() 553 lnk->wr_rx_cnt = min_t(size_t, SMC_WR_BUF_CNT * 3, in smc_wr_remember_qp_attr() 554 lnk->qp_attr.cap.max_recv_wr); in smc_wr_remember_qp_attr() 557 static void smc_wr_init_sge(struct smc_link *lnk) in smc_wr_init_sge() argument 559 int sges_per_buf = (lnk->lgr->smc_version == SMC_V2) ? 2 : 1; in smc_wr_init_sge() 560 bool send_inline = (lnk->qp_attr.cap.max_inline_data > SMC_WR_TX_SIZE); in smc_wr_init_sge() [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_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() 131 struct smc_link *lnk = &conn->lgr->lnk[i]; in smcr_lgr_conn_assign_link() local 133 if (lnk->state != expected || lnk->link_is_asym) in smcr_lgr_conn_assign_link() 136 conn->lnk = lnk; /* temporary, SMC server assigns link*/ in smcr_lgr_conn_assign_link() 143 lnk2 = &conn->lgr->lnk[j]; in smcr_lgr_conn_assign_link() 146 conn->lnk = lnk2; in smcr_lgr_conn_assign_link() 151 if (!conn->lnk) in smcr_lgr_conn_assign_link() [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_wr.h | 76 static inline void smc_wr_drain_cq(struct smc_link *lnk) in smc_wr_drain_cq() argument 78 wait_event(lnk->wr_rx_empty_wait, lnk->wr_rx_id_compl == lnk->wr_rx_id); in smc_wr_drain_cq() 81 static inline void smc_wr_wakeup_tx_wait(struct smc_link *lnk) in smc_wr_wakeup_tx_wait() argument 83 wake_up_all(&lnk->wr_tx_wait); in smc_wr_wakeup_tx_wait() 86 static inline void smc_wr_wakeup_reg_wait(struct smc_link *lnk) in smc_wr_wakeup_reg_wait() argument 88 wake_up(&lnk->wr_reg_wait); in smc_wr_wakeup_reg_wait() 106 int smc_wr_create_link(struct smc_link *lnk); 107 int smc_wr_alloc_link_mem(struct smc_link *lnk); 109 void smc_wr_free_link(struct smc_link *lnk); 110 void smc_wr_free_link_mem(struct smc_link *lnk); [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_reset(struct smc_link *lnk); 100 int smc_ib_modify_qp_error(struct smc_link *lnk); [all …]
|
D | smc_core.h | 138 u8 link_uid[SMC_LGR_ID_SIZE]; /* unique lnk id */ 186 /* mem region mapped to lnk */ 278 struct smc_link lnk[SMC_LINKS_PER_LGR_MAX]; member 441 static inline bool smc_link_usable(struct smc_link *lnk) in smc_link_usable() argument 443 if (lnk->state == SMC_LNK_UNUSED || lnk->state == SMC_LNK_INACTIVE) in smc_link_usable() 457 static inline bool smc_link_sendable(struct smc_link *lnk) in smc_link_sendable() argument 459 return smc_link_usable(lnk) && in smc_link_sendable() 460 lnk->qp_attr.cur_qp_state == IB_QPS_RTS; in smc_link_sendable() 463 static inline bool smc_link_active(struct smc_link *lnk) in smc_link_active() argument 465 return lnk->state == SMC_LNK_ACTIVE; in smc_link_active() [all …]
|
D | smc_llc.c | 334 /* lnk is optional and used for early wakeup when link goes down, useful in 338 struct smc_link *lnk, in smc_llc_wait() argument 346 (lnk && !smc_link_usable(lnk)) || in smc_llc_wait() 350 (lnk && !smc_link_usable(lnk)) || list_empty(&lgr->list)) { in smc_llc_wait() 504 link = &send_link->lgr->lnk[i]; in smc_llc_send_confirm_rkey() 814 if (lgr->lnk[i].state == SMC_LNK_UNUSED) in smc_llc_alloc_alt_link() 818 if (lgr->lnk[i].state == SMC_LNK_UNUSED) in smc_llc_alloc_alt_link() 1067 lnk_new = &lgr->lnk[lnk_idx]; in smc_llc_cli_add_link() 1218 if (!smc_link_active(&lgr->lnk[i])) in smc_llc_active_link_count() 1236 if (!smc_link_usable(&lgr->lnk[i]) || 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, in __smc_diag_dump() 157 smc->conn.lgr->lnk[0].smcibdev->ibdev->name, in __smc_diag_dump() 159 smc_gid_be16_convert(linfo.lnk[0].gid, link->gid); in __smc_diag_dump() 160 smc_gid_be16_convert(linfo.lnk[0].peer_gid, link->peer_gid); in __smc_diag_dump()
|
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_tx.c | 50 SMC_STAT_RMB_TX_FULL(smc, !smc->conn.lnk); in smc_tx_write_space() 206 SMC_STAT_RMB_TX_SIZE_SMALL(smc, !conn->lnk); in smc_tx_sendmsg() 209 SMC_STAT_RMB_TX_PEER_SIZE_SMALL(smc, !conn->lnk); in smc_tx_sendmsg() 338 struct smc_link *link = conn->lnk; in smc_tx_rdma_write() 378 struct smc_link *link = conn->lnk; in smcr_tx_rdma_writes() 503 SMC_STAT_RMB_TX_PEER_FULL(smc, !conn->lnk); in smc_tx_rdma_writes() 567 struct smc_link *link = conn->lnk; in smcr_tx_sndbuf_nonempty() 594 if (link != conn->lnk) { in smcr_tx_sndbuf_nonempty() 652 SMC_STAT_RMB_TX_PEER_FULL(smc, !conn->lnk); in __smc_tx_sndbuf_nonempty()
|
D | smc_cdc.c | 113 struct smc_link *link = conn->lnk; in smc_cdc_msg_send() 145 struct smc_link *link = conn->lnk; in smcr_cdc_msg_send_validation() 180 link = conn->lnk; in smcr_cdc_get_slot_and_msg_send() 188 if (link != conn->lnk) { in smcr_cdc_get_slot_and_msg_send() 311 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; \ 217 bool is_smcd = !(__smc)->conn.lnk; \
|
/Linux-v6.1/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(oldf); 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-v6.1/sound/soc/generic/ |
D | audio-graph-card2.c | 230 static enum graph_type __graph_get_type(struct device_node *lnk) in __graph_get_type() argument 238 * => lnk: port@0 { ... }; in __graph_get_type() 243 np = of_get_parent(lnk); in __graph_get_type() 274 struct device_node *lnk) in graph_get_type() argument 276 enum graph_type type = __graph_get_type(lnk); in graph_get_type() 289 if (asoc_graph_is_ports0(lnk)) in graph_get_type() 301 dev_dbg(dev, "%pOF (%s)", lnk, str); in graph_get_type() 307 static int graph_lnk_is_multi(struct device_node *lnk) in graph_lnk_is_multi() argument 309 return __graph_get_type(lnk) == GRAPH_MULTI; in graph_lnk_is_multi() 321 * => lnk: port@0 { ... }; in graph_get_next_multi_ep() [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-v6.1/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-v6.1/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-v6.1/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-v6.1/fs/erofs/ |
D | inode.c | 213 char *lnk; in erofs_fill_symlink() local 222 lnk = kmalloc(inode->i_size + 1, GFP_KERNEL); in erofs_fill_symlink() 223 if (!lnk) in erofs_fill_symlink() 229 kfree(lnk); in erofs_fill_symlink() 236 memcpy(lnk, kaddr + m_pofs, inode->i_size); in erofs_fill_symlink() 237 lnk[inode->i_size] = '\0'; in erofs_fill_symlink() 239 inode->i_link = lnk; in erofs_fill_symlink()
|
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | gm200.c | 104 int lnk[2], sor[2], m, s; in gm200_sor_route_get() local 109 lnk[s] = (data & 0x00000010) >> 4; in gm200_sor_route_get() 113 *link |= lnk[s]; in gm200_sor_route_get() 118 if (sor[0] != sor[1] || WARN_ON(lnk[0] || !lnk[1])) in gm200_sor_route_get()
|
/Linux-v6.1/Documentation/userspace-api/media/mediactl/ |
D | media-types.rst | 392 .. _MEDIA-LNK-FL-ENABLED: 393 .. _MEDIA-LNK-FL-IMMUTABLE: 394 .. _MEDIA-LNK-FL-DYNAMIC: 395 .. _MEDIA-LNK-FL-LINK-TYPE: 418 .. _MEDIA-LNK-FL-DATA-LINK: 423 .. _MEDIA-LNK-FL-INTERFACE-LINK: 428 .. _MEDIA-LNK-FL-ANCILLARY-LINK:
|