Home
last modified time | relevance | path

Searched full:lnk (Results 1 – 25 of 109) sorted by relevance

12345

/kernel/linux/linux-6.6/net/smc/
Dsmc_wr.c523 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 …]
Dsmc_ib.c47 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 …]
Dsmc_core.c71 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 …]
Dsmc_tracepoint.h54 __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 …]
Dsmc_wr.h75 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 …]
Dsmc_ib.h87 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 …]
Dsmc_core.h155 u8 link_uid[SMC_LGR_ID_SIZE]; /* unique lnk id */
212 /* mem region mapped to lnk */
304 struct smc_link lnk[SMC_LINKS_PER_LGR_MAX]; member
479 static inline bool smc_link_usable(struct smc_link *lnk) in smc_link_usable() argument
481 if (lnk->state == SMC_LNK_UNUSED || lnk->state == SMC_LNK_INACTIVE) in smc_link_usable()
495 static inline bool smc_link_sendable(struct smc_link *lnk) in smc_link_sendable() argument
497 return smc_link_usable(lnk) && in smc_link_sendable()
498 lnk->qp_attr.cur_qp_state == IB_QPS_RTS; in smc_link_sendable()
501 static inline bool smc_link_active(struct smc_link *lnk) in smc_link_active() argument
503 return lnk->state == SMC_LNK_ACTIVE; in smc_link_active()
[all …]
Dsmc_llc.h68 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,
Dsmc_llc.c333 /* lnk is optional and used for early wakeup when link goes down, useful in
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()
[all …]
/kernel/linux/linux-5.10/net/smc/
Dsmc_wr.c455 void smc_wr_remember_qp_attr(struct smc_link *lnk) in smc_wr_remember_qp_attr() argument
457 struct ib_qp_attr *attr = &lnk->qp_attr; in smc_wr_remember_qp_attr()
462 ib_query_qp(lnk->roce_qp, attr, in smc_wr_remember_qp_attr()
482 lnk->wr_tx_cnt = min_t(size_t, SMC_WR_BUF_CNT, in smc_wr_remember_qp_attr()
483 lnk->qp_attr.cap.max_send_wr); in smc_wr_remember_qp_attr()
484 lnk->wr_rx_cnt = min_t(size_t, SMC_WR_BUF_CNT * 3, in smc_wr_remember_qp_attr()
485 lnk->qp_attr.cap.max_recv_wr); in smc_wr_remember_qp_attr()
488 static void smc_wr_init_sge(struct smc_link *lnk) in smc_wr_init_sge() argument
492 for (i = 0; i < lnk->wr_tx_cnt; i++) { in smc_wr_init_sge()
493 lnk->wr_tx_sges[i].addr = in smc_wr_init_sge()
[all …]
Dsmc_ib.c43 static int smc_ib_modify_qp_init(struct smc_link *lnk) in smc_ib_modify_qp_init() argument
50 qp_attr.port_num = lnk->ibport; in smc_ib_modify_qp_init()
53 return ib_modify_qp(lnk->roce_qp, &qp_attr, in smc_ib_modify_qp_init()
58 static int smc_ib_modify_qp_rtr(struct smc_link *lnk) in smc_ib_modify_qp_rtr() argument
67 qp_attr.path_mtu = min(lnk->path_mtu, lnk->peer_mtu); in smc_ib_modify_qp_rtr()
69 rdma_ah_set_port_num(&qp_attr.ah_attr, lnk->ibport); in smc_ib_modify_qp_rtr()
70 rdma_ah_set_grh(&qp_attr.ah_attr, NULL, 0, lnk->sgid_index, 1, 0); in smc_ib_modify_qp_rtr()
71 rdma_ah_set_dgid_raw(&qp_attr.ah_attr, lnk->peer_gid); in smc_ib_modify_qp_rtr()
72 memcpy(&qp_attr.ah_attr.roce.dmac, lnk->peer_mac, in smc_ib_modify_qp_rtr()
73 sizeof(lnk->peer_mac)); in smc_ib_modify_qp_rtr()
[all …]
Dsmc_core.c116 struct smc_link *lnk = &conn->lgr->lnk[i]; in smcr_lgr_conn_assign_link() local
118 if (lnk->state != expected || lnk->link_is_asym) in smcr_lgr_conn_assign_link()
121 conn->lnk = lnk; /* temporary, SMC server assigns link*/ in smcr_lgr_conn_assign_link()
128 lnk2 = &conn->lgr->lnk[j]; in smcr_lgr_conn_assign_link()
131 conn->lnk = lnk2; in smcr_lgr_conn_assign_link()
136 if (!conn->lnk) in smcr_lgr_conn_assign_link()
137 conn->lnk = lnk; in smcr_lgr_conn_assign_link()
140 if (!conn->lnk) in smcr_lgr_conn_assign_link()
227 struct smc_link *lnk = &lgr->lnk[i]; in smcr_lgr_link_deactivate_all() local
229 if (smc_link_sendable(lnk)) in smcr_lgr_link_deactivate_all()
[all …]
Dsmc_ib.h64 int smc_ib_buf_map_sg(struct smc_link *lnk,
67 void smc_ib_buf_unmap_sg(struct smc_link *lnk,
70 void smc_ib_dealloc_protection_domain(struct smc_link *lnk);
71 int smc_ib_create_protection_domain(struct smc_link *lnk);
72 void smc_ib_destroy_queue_pair(struct smc_link *lnk);
73 int smc_ib_create_queue_pair(struct smc_link *lnk);
74 int smc_ib_ready_link(struct smc_link *lnk);
75 int smc_ib_modify_qp_rts(struct smc_link *lnk);
76 int smc_ib_modify_qp_reset(struct smc_link *lnk);
77 int smc_ib_modify_qp_error(struct smc_link *lnk);
[all …]
Dsmc_wr.h76 static inline void smc_wr_wakeup_tx_wait(struct smc_link *lnk) in smc_wr_wakeup_tx_wait() argument
78 wake_up_all(&lnk->wr_tx_wait); in smc_wr_wakeup_tx_wait()
81 static inline void smc_wr_wakeup_reg_wait(struct smc_link *lnk) in smc_wr_wakeup_reg_wait() argument
83 wake_up(&lnk->wr_reg_wait); in smc_wr_wakeup_reg_wait()
101 int smc_wr_create_link(struct smc_link *lnk);
102 int smc_wr_alloc_link_mem(struct smc_link *lnk);
103 void smc_wr_free_link(struct smc_link *lnk);
104 void smc_wr_free_link_mem(struct smc_link *lnk);
105 void smc_wr_remember_qp_attr(struct smc_link *lnk);
120 void smc_wr_tx_dismiss_slots(struct smc_link *lnk, u8 wr_rx_hdr_type,
Dsmc_core.h123 u8 link_uid[SMC_LGR_ID_SIZE]; /* unique lnk id */
164 /* mem region mapped to lnk */
245 struct smc_link lnk[SMC_LINKS_PER_LGR_MAX]; member
355 static inline bool smc_link_usable(struct smc_link *lnk) in smc_link_usable() argument
357 if (lnk->state == SMC_LNK_UNUSED || lnk->state == SMC_LNK_INACTIVE) in smc_link_usable()
362 static inline bool smc_link_sendable(struct smc_link *lnk) in smc_link_sendable() argument
364 return smc_link_usable(lnk) && in smc_link_sendable()
365 lnk->qp_attr.cur_qp_state == IB_QPS_RTS; in smc_link_sendable()
368 static inline bool smc_link_active(struct smc_link *lnk) in smc_link_active() argument
370 return lnk->state == SMC_LNK_ACTIVE; in smc_link_active()
[all …]
Dsmc_diag.c163 .lnk[0].ibport = smc->conn.lgr->lnk[0].ibport, in __smc_diag_dump()
164 .lnk[0].link_id = smc->conn.lgr->lnk[0].link_id, in __smc_diag_dump()
167 memcpy(linfo.lnk[0].ibname, in __smc_diag_dump()
168 smc->conn.lgr->lnk[0].smcibdev->ibdev->name, in __smc_diag_dump()
169 sizeof(smc->conn.lgr->lnk[0].smcibdev->ibdev->name)); in __smc_diag_dump()
170 smc_gid_be16_convert(linfo.lnk[0].gid, in __smc_diag_dump()
171 smc->conn.lgr->lnk[0].gid); in __smc_diag_dump()
172 smc_gid_be16_convert(linfo.lnk[0].peer_gid, in __smc_diag_dump()
173 smc->conn.lgr->lnk[0].peer_gid); in __smc_diag_dump()
Dsmc_llc.c289 /* lnk is optional and used for early wakeup when link goes down, useful in
293 struct smc_link *lnk, in smc_llc_wait() argument
301 (lnk && !smc_link_usable(lnk)) || in smc_llc_wait()
305 (lnk && !smc_link_usable(lnk)) || list_empty(&lgr->list)) { in smc_llc_wait()
434 link = &send_link->lgr->lnk[i]; in smc_llc_send_confirm_rkey()
644 if (lgr->lnk[i].state == SMC_LNK_UNUSED) in smc_llc_alloc_alt_link()
648 if (lgr->lnk[i].state == SMC_LNK_UNUSED) in smc_llc_alloc_alt_link()
896 lnk_new = &lgr->lnk[lnk_idx]; in smc_llc_cli_add_link()
994 if (!smc_link_active(&lgr->lnk[i])) in smc_llc_active_link_count()
1012 if (!smc_link_usable(&lgr->lnk[i]) || in smc_llc_find_asym_link()
[all …]
Dsmc_llc.h58 if (smc_link_usable(&lgr->lnk[i])) in smc_llc_usable_link()
59 return &lgr->lnk[i]; in smc_llc_usable_link()
72 int smc_llc_send_confirm_link(struct smc_link *lnk,
98 struct smc_link *lnk,
/kernel/linux/linux-6.6/io_uring/
Dfs.c243 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 …]
/kernel/linux/linux-6.6/sound/soc/generic/
Daudio-graph-card2.c242 static enum graph_type __graph_get_type(struct device_node *lnk) in __graph_get_type() argument
250 * => lnk: port@0 { ... }; in __graph_get_type()
255 np = of_get_parent(lnk); in __graph_get_type()
289 struct device_node *lnk) in graph_get_type() argument
291 enum graph_type type = __graph_get_type(lnk); in graph_get_type()
304 if (asoc_graph_is_ports0(lnk)) in graph_get_type()
316 dev_dbg(dev, "%pOF (%s)", lnk, str); in graph_get_type()
322 static int graph_lnk_is_multi(struct device_node *lnk) in graph_lnk_is_multi() argument
324 return __graph_get_type(lnk) == GRAPH_MULTI; in graph_lnk_is_multi()
336 * => lnk: port@0 { ... }; in graph_get_next_multi_ep()
[all …]
Daudio-graph-card2-custom-sample.c67 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()
/kernel/linux/linux-6.6/include/sound/
Dgraph_card.h13 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);
/kernel/linux/linux-5.10/arch/mips/pci/
Dpci-xlr.c202 struct pci_dev *lnk; in get_irq_vector() local
208 lnk = xls_get_pcie_link(dev); in get_irq_vector()
209 if (lnk == NULL) in get_irq_vector()
212 link = PCI_SLOT(lnk->devfn); in get_irq_vector()
224 struct pci_dev *lnk; in arch_setup_msi_irq() local
236 lnk = xls_get_pcie_link(dev); in arch_setup_msi_irq()
237 if (lnk == NULL) in arch_setup_msi_irq()
240 pci_read_config_word(lnk, 0x50 + PCI_MSI_FLAGS, &val); in arch_setup_msi_irq()
243 pci_write_config_word(lnk, 0x50 + PCI_MSI_FLAGS, val); in arch_setup_msi_irq()
/kernel/linux/linux-6.6/fs/qnx4/
Dnamei.c99 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()
/kernel/linux/linux-5.10/fs/qnx4/
Dnamei.c99 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()

12345