Home
last modified time | relevance | path

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

123

/linux/net/smc/
H A 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 …]
H A 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 …]
H A 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 …]
H A Dsmc_tracepoint.h54 __string(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;
111 TP_printk("lnk
[all...]
H A 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 …]
H A 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 …]
H A Dsmc_core.h155 u8 link_uid[SMC_LGR_ID_SIZE]; /* unique lnk id */
212 /* mem region mapped to lnk */
306 struct smc_link lnk[SMC_LINKS_PER_LGR_MAX]; member
482 static inline bool smc_link_usable(struct smc_link *lnk) in smc_link_usable() argument
484 if (lnk->state == SMC_LNK_UNUSED || lnk->state == SMC_LNK_INACTIVE) in smc_link_usable()
498 static inline bool smc_link_sendable(struct smc_link *lnk) in smc_link_sendable() argument
500 return smc_link_usable(lnk) && in smc_link_sendable()
501 lnk->qp_attr.cur_qp_state == IB_QPS_RTS; in smc_link_sendable()
504 static inline bool smc_link_active(struct smc_link *lnk) in smc_link_active() argument
506 return lnk->state == SMC_LNK_ACTIVE; in smc_link_active()
[all …]
H A 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 …]
H A 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,
H A Dsmc_diag.c149 struct smc_link *link = smc->conn.lnk; in __smc_diag_dump()
153 .lnk[0].ibport = link->ibport, in __smc_diag_dump()
154 .lnk[0].link_id = link->link_id, in __smc_diag_dump()
157 memcpy(linfo.lnk[0].ibname, link->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()
H A Dsmc_tx.c50 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()
H A Dsmc_cdc.c116 struct smc_link *link = conn->lnk; in smc_cdc_msg_send()
148 struct smc_link *link = conn->lnk; in smcr_cdc_msg_send_validation()
183 link = conn->lnk; in smcr_cdc_get_slot_and_msg_send()
191 if (link != conn->lnk) { in smcr_cdc_get_slot_and_msg_send()
322 conn->lnk = link; in smc_cdc_msg_validate()
H A Dsmc_stats.h117 bool is_smcd = !__smc->conn.lnk; \
132 bool is_smcd = !__smc->conn.lnk; \
230 bool is_smcd = !(__smc)->conn.lnk; \
/linux/io_uring/
H A 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 …]
/linux/sound/soc/generic/
H A Daudio-graph-card2.c251 static enum graph_type __graph_get_type(struct device_node *lnk) in __graph_get_type() argument
259 * => lnk: port@0 { ... }; in __graph_get_type()
264 np = of_get_parent(lnk); in __graph_get_type()
295 struct device_node *lnk) in graph_get_type() argument
297 enum graph_type type = __graph_get_type(lnk); in graph_get_type()
310 if (graph_util_is_ports0(lnk)) in graph_get_type()
322 dev_dbg(dev, "%pOF (%s)", lnk, str); in graph_get_type()
328 static int graph_lnk_is_multi(struct device_node *lnk) in graph_lnk_is_multi() argument
330 return __graph_get_type(lnk) == GRAPH_MULTI; in graph_lnk_is_multi()
342 * => lnk in graph_get_next_multi_ep()
750 graph_link_init(struct simple_util_priv * priv,struct device_node * lnk,struct device_node * port_cpu,struct device_node * port_codec,struct link_info * li,int is_cpu_node) graph_link_init() argument
849 audio_graph2_link_normal(struct simple_util_priv * priv,struct device_node * lnk,struct link_info * li) audio_graph2_link_normal() argument
883 audio_graph2_link_dpcm(struct simple_util_priv * priv,struct device_node * lnk,struct link_info * li) audio_graph2_link_dpcm() argument
983 audio_graph2_link_c2c(struct simple_util_priv * priv,struct device_node * lnk,struct link_info * li) audio_graph2_link_c2c() argument
1082 graph_link(struct simple_util_priv * priv,struct graph2_custom_hooks * hooks,enum graph_type gtype,struct device_node * lnk,struct link_info * li) graph_link() argument
1126 graph_counter(struct device_node * lnk) graph_counter() argument
1168 graph_count_normal(struct simple_util_priv * priv,struct device_node * lnk,struct link_info * li) graph_count_normal() argument
1197 graph_count_dpcm(struct simple_util_priv * priv,struct device_node * lnk,struct link_info * li) graph_count_dpcm() argument
1237 graph_count_c2c(struct simple_util_priv * priv,struct device_node * lnk,struct link_info * li) graph_count_c2c() argument
1279 graph_count(struct simple_util_priv * priv,struct graph2_custom_hooks * hooks,enum graph_type gtype,struct device_node * lnk,struct link_info * li) graph_count() argument
1325 graph_for_each_link(struct simple_util_priv * priv,struct graph2_custom_hooks * hooks,struct link_info * li,int (* func)(struct simple_util_priv * priv,struct graph2_custom_hooks * hooks,enum graph_type gtype,struct device_node * lnk,struct link_info * li)) graph_for_each_link() argument
1331 struct device_node *lnk; graph_for_each_link() local
[all...]
H A Daudio-graph-card2-custom-sample.c68 struct device_node *lnk, in custom_normal() argument
79 return audio_graph2_link_normal(priv, lnk, li); in custom_normal()
83 struct device_node *lnk, in custom_dpcm() argument
94 return audio_graph2_link_dpcm(priv, lnk, li); in custom_dpcm()
98 struct device_node *lnk, in custom_c2c() argument
109 return audio_graph2_link_c2c(priv, lnk, li); in custom_c2c()
/linux/include/sound/
H A 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);
/linux/fs/qnx4/
H A Dnamei.c92 struct qnx4_link_info *lnk; in qnx4_lookup() local
102 lnk = (struct qnx4_link_info *) de; in qnx4_lookup()
103 ino = (le32_to_cpu(lnk->dl_inode_blk) - 1) * in qnx4_lookup()
105 lnk->dl_inode_ndx; in qnx4_lookup()
/linux/drivers/net/wireless/ti/wlcore/
H A Dtx.c505 struct wl1271_link *lnk, u8 q) in wlcore_lnk_dequeue() argument
510 skb = skb_dequeue(&lnk->tx_queue[q]); in wlcore_lnk_dequeue()
515 if (lnk->wlvif) { in wlcore_lnk_dequeue()
516 WARN_ON_ONCE(lnk->wlvif->tx_queue_count[q] <= 0); in wlcore_lnk_dequeue()
517 lnk->wlvif->tx_queue_count[q]--; in wlcore_lnk_dequeue()
529 struct wl1271_link *lnk = &wl->links[hlid]; in wlcore_lnk_dequeue_high_prio() local
531 if (!wlcore_hw_lnk_high_prio(wl, hlid, lnk)) { in wlcore_lnk_dequeue_high_prio()
533 !skb_queue_empty(&lnk->tx_queue[ac]) && in wlcore_lnk_dequeue_high_prio()
534 wlcore_hw_lnk_low_prio(wl, hlid, lnk)) in wlcore_lnk_dequeue_high_prio()
541 return wlcore_lnk_dequeue(wl, lnk, ac); in wlcore_lnk_dequeue_high_prio()
[all …]
H A Dps.c84 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()
H A Devent.c146 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()
H A Dhw_ops.h255 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/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dgm200.c120 int lnk[2], sor[2], m, s; in gm200_sor_route_get() local
125 lnk[s] = (data & 0x00000010) >> 4; in gm200_sor_route_get()
129 *link |= lnk[s]; in gm200_sor_route_get()
134 if (sor[0] != sor[1] || WARN_ON(lnk[0] || !lnk[1])) in gm200_sor_route_get()
/linux/Documentation/userspace-api/media/mediactl/
H A Dmedia-types.rst391 .. _MEDIA-LNK-FL-ENABLED:
392 .. _MEDIA-LNK-FL-IMMUTABLE:
393 .. _MEDIA-LNK-FL-DYNAMIC:
394 .. _MEDIA-LNK-FL-LINK-TYPE:
417 .. _MEDIA-LNK-FL-DATA-LINK:
422 .. _MEDIA-LNK-FL-INTERFACE-LINK:
427 .. _MEDIA-LNK-FL-ANCILLARY-LINK:
/linux/include/uapi/linux/
H A Dsmc_diag.h95 struct smc_diag_linkinfo lnk[1]; member

123