/linux-master/net/smc/ |
H A D | smc_wr.c | 523 void smc_wr_remember_qp_attr(struct smc_link *lnk) argument 525 struct ib_qp_attr *attr = &lnk->qp_attr; 530 ib_query_qp(lnk->roce_qp, attr, 550 lnk->wr_tx_cnt = min_t(size_t, SMC_WR_BUF_CNT, 551 lnk->qp_attr.cap.max_send_wr); 552 lnk->wr_rx_cnt = min_t(size_t, SMC_WR_BUF_CNT * 3, 553 lnk->qp_attr.cap.max_recv_wr); 556 static void smc_wr_init_sge(struct smc_link *lnk) argument 558 int sges_per_buf = (lnk->lgr->smc_version == SMC_V2) ? 2 : 1; 559 bool send_inline = (lnk 636 smc_wr_free_link(struct smc_link *lnk) argument 691 smc_wr_free_link_mem(struct smc_link *lnk) argument 853 struct smc_link *lnk = container_of(ref, struct smc_link, wr_tx_refs); local 860 struct smc_link *lnk = container_of(ref, struct smc_link, wr_reg_refs); local 865 smc_wr_create_link(struct smc_link *lnk) argument [all...] |
H A D | smc_wr.h | 75 static inline void smc_wr_drain_cq(struct smc_link *lnk) argument 77 wait_event(lnk->wr_rx_empty_wait, lnk->wr_rx_id_compl == lnk->wr_rx_id); 80 static inline void smc_wr_wakeup_tx_wait(struct smc_link *lnk) argument 82 wake_up_all(&lnk->wr_tx_wait); 85 static inline void smc_wr_wakeup_reg_wait(struct smc_link *lnk) argument 87 wake_up(&lnk->wr_reg_wait); 105 int smc_wr_create_link(struct smc_link *lnk); 106 int smc_wr_alloc_link_mem(struct smc_link *lnk); [all...] |
H A 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 [all...] |
H A 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...] |
H A D | smc_ib.c | 47 static int smc_ib_modify_qp_init(struct smc_link *lnk) argument 54 qp_attr.port_num = lnk->ibport; 57 return ib_modify_qp(lnk->roce_qp, &qp_attr, 62 static int smc_ib_modify_qp_rtr(struct smc_link *lnk) argument 72 qp_attr.path_mtu = min(lnk->path_mtu, lnk->peer_mtu); 74 rdma_ah_set_port_num(&qp_attr.ah_attr, lnk->ibport); 75 if (lnk->lgr->smc_version == SMC_V2 && lnk->lgr->uses_gateway) 77 rdma_ah_set_grh(&qp_attr.ah_attr, NULL, 0, lnk 95 smc_ib_modify_qp_rts(struct smc_link *lnk) argument 114 smc_ib_modify_qp_error(struct smc_link *lnk) argument 123 smc_ib_ready_link(struct smc_link *lnk) argument 446 smc_ib_dealloc_protection_domain(struct smc_link *lnk) argument 453 smc_ib_create_protection_domain(struct smc_link *lnk) argument 631 struct smc_link *lnk = (struct smc_link *)priv; local 650 smc_ib_destroy_queue_pair(struct smc_link *lnk) argument 658 smc_ib_create_queue_pair(struct smc_link *lnk) argument 734 smc_ib_is_sg_need_sync(struct smc_link *lnk, struct smc_buf_desc *buf_slot) argument 758 smc_ib_sync_sg_for_cpu(struct smc_link *lnk, struct smc_buf_desc *buf_slot, enum dma_data_direction data_direction) argument 781 smc_ib_sync_sg_for_device(struct smc_link *lnk, struct smc_buf_desc *buf_slot, enum dma_data_direction data_direction) argument 804 smc_ib_buf_map_sg(struct smc_link *lnk, struct smc_buf_desc *buf_slot, enum dma_data_direction data_direction) argument 820 smc_ib_buf_unmap_sg(struct smc_link *lnk, struct smc_buf_desc *buf_slot, enum dma_data_direction data_direction) argument [all...] |
H A D | smc_core.c | 71 static void smc_ibdev_cnt_inc(struct smc_link *lnk) argument 73 atomic_inc(&lnk->smcibdev->lnk_cnt_by_port[lnk->ibport - 1]); 76 static void smc_ibdev_cnt_dec(struct smc_link *lnk) argument 78 atomic_dec(&lnk->smcibdev->lnk_cnt_by_port[lnk->ibport - 1]); 130 conn->lnk = NULL; /* reset conn->lnk first */ 132 struct smc_link *lnk = &conn->lgr->lnk[ local 666 struct smc_link *lnk = &lgr->lnk[i]; local 751 smcr_link_init(struct smc_link_group *lgr, struct smc_link *lnk, u8 link_idx, struct smc_init_info *ini) argument 838 struct smc_link *lnk; local 1215 smcr_buf_unmap_link(struct smc_buf_desc *buf_desc, bool is_rmb, struct smc_link *lnk) argument 1238 smcr_buf_unmap_lgr(struct smc_link *lnk) argument 1258 smcr_rtoken_clear_link(struct smc_link *lnk) argument 1269 __smcr_link_clear(struct smc_link *lnk) argument 1286 smcr_link_clear(struct smc_link *lnk, bool log) argument 1303 smcr_link_hold(struct smc_link *lnk) argument 1308 smcr_link_put(struct smc_link *lnk) argument 1704 smcr_link_down(struct smc_link *lnk) argument 1745 smcr_link_down_cond(struct smc_link *lnk) argument 1754 smcr_link_down_cond_sched(struct smc_link *lnk) argument 1774 struct smc_link *lnk = &lgr->lnk[i]; local 1852 struct smc_link *lnk; local 2056 smcr_buf_map_link(struct smc_buf_desc *buf_desc, bool is_rmb, struct smc_link *lnk) argument 2151 _smcr_buf_map_lgr(struct smc_link *lnk, struct rw_semaphore *lock, struct list_head *lst, bool is_rmb) argument 2171 smcr_buf_map_lgr(struct smc_link *lnk) argument 2192 smcr_buf_reg_lgr(struct smc_link *lnk) argument 2289 struct smc_link *lnk = &lgr->lnk[i]; local 2541 smc_rtoken_add(struct smc_link *lnk, __be64 nw_vaddr, __be32 nw_rkey) argument 2565 smc_rtoken_delete(struct smc_link *lnk, __be32 nw_rkey) argument 2586 smc_rmb_rtoken_handling(struct smc_connection *conn, struct smc_link *lnk, struct smc_clc_msg_accept_confirm *clc) argument [all...] |
H A D | smc_core.h | 155 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 in struct:smc_link_group::__anon3999::__anon4000 480 static inline bool smc_link_usable(struct smc_link *lnk) argument 482 if (lnk->state == SMC_LNK_UNUSED || lnk->state == SMC_LNK_INACTIVE) 496 static inline bool smc_link_sendable(struct smc_link *lnk) argument 498 return smc_link_usable(lnk) && 499 lnk->qp_attr.cur_qp_state == IB_QPS_RTS; 502 static inline bool smc_link_active(struct smc_link *lnk) argument [all...] |
H A D | smc_llc.h | 68 if (smc_link_usable(&lgr->lnk[i])) 69 return &lgr->lnk[i]; 82 int smc_llc_send_confirm_link(struct smc_link *lnk, 108 struct smc_link *lnk,
|
H A D | smc_llc.c | 333 /* lnk is optional and used for early wakeup when link goes down, useful in 337 struct smc_link *lnk, 345 (lnk && !smc_link_usable(lnk)) || 349 (lnk && !smc_link_usable(lnk)) || list_empty(&lgr->list)) { 508 link = &send_link->lgr->lnk[i]; 821 if (lgr->lnk[i].state == SMC_LNK_UNUSED) 825 if (lgr->lnk[i].state == SMC_LNK_UNUSED) 1079 lnk_new = &lgr->lnk[lnk_id 336 smc_llc_wait(struct smc_link_group *lgr, struct smc_link *lnk, int time_out, u8 exp_msg) argument 1591 struct smc_link *lnk_del = NULL, *lnk_asym, *lnk; local 1670 struct smc_link *lnk, *lnk_del; local [all...] |
H A D | smc_tx.c | 50 SMC_STAT_RMB_TX_FULL(smc, !smc->conn.lnk); 205 SMC_STAT_RMB_TX_SIZE_SMALL(smc, !conn->lnk); 208 SMC_STAT_RMB_TX_PEER_SIZE_SMALL(smc, !conn->lnk); 321 struct smc_link *link = conn->lnk; 361 struct smc_link *link = conn->lnk; 486 SMC_STAT_RMB_TX_PEER_FULL(smc, !conn->lnk); 550 struct smc_link *link = conn->lnk; 577 if (link != conn->lnk) { 635 SMC_STAT_RMB_TX_PEER_FULL(smc, !conn->lnk);
|
H A D | smc_diag.c | 149 struct smc_link *link = smc->conn.lnk; 153 .lnk[0].ibport = link->ibport, 154 .lnk[0].link_id = link->link_id, 157 memcpy(linfo.lnk[0].ibname, link->smcibdev->ibdev->name, 159 smc_gid_be16_convert(linfo.lnk[0].gid, link->gid); 160 smc_gid_be16_convert(linfo.lnk[0].peer_gid, link->peer_gid);
|
H A 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; \
|
H A D | smc_cdc.c | 115 struct smc_link *link = conn->lnk; 147 struct smc_link *link = conn->lnk; 182 link = conn->lnk; 190 if (link != conn->lnk) { 313 conn->lnk = link;
|
/linux-master/include/sound/ |
H A 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-master/io_uring/ |
H A D | fs.c | 243 struct io_link *lnk = io_kiocb_to_cmd(req, struct io_link); local 251 lnk->old_dfd = READ_ONCE(sqe->fd); 252 lnk->new_dfd = READ_ONCE(sqe->len); 255 lnk->flags = READ_ONCE(sqe->hardlink_flags); 257 lnk->oldpath = getname_uflags(oldf, lnk->flags); 258 if (IS_ERR(lnk->oldpath)) 259 return PTR_ERR(lnk->oldpath); 261 lnk->newpath = getname(newf); 262 if (IS_ERR(lnk 274 struct io_link *lnk = io_kiocb_to_cmd(req, struct io_link); local [all...] |
/linux-master/sound/soc/generic/ |
H A D | audio-graph-card2-custom-sample.c | 67 struct device_node *lnk, 78 return audio_graph2_link_normal(priv, lnk, li); 82 struct device_node *lnk, 93 return audio_graph2_link_dpcm(priv, lnk, li); 97 struct device_node *lnk, 108 return audio_graph2_link_c2c(priv, lnk, li); 66 custom_normal(struct simple_util_priv *priv, struct device_node *lnk, struct link_info *li) argument 81 custom_dpcm(struct simple_util_priv *priv, struct device_node *lnk, struct link_info *li) argument 96 custom_c2c(struct simple_util_priv *priv, struct device_node *lnk, struct link_info *li) argument
|
H A D | audio-graph-card2.c | 239 static enum graph_type __graph_get_type(struct device_node *lnk) argument 247 * => lnk: port@0 { ... }; 252 np = of_get_parent(lnk); 283 struct device_node *lnk) 285 enum graph_type type = __graph_get_type(lnk); 298 if (graph_util_is_ports0(lnk)) 310 dev_dbg(dev, "%pOF (%s)", lnk, str); 316 static int graph_lnk_is_multi(struct device_node *lnk) argument 318 return __graph_get_type(lnk) == GRAPH_MULTI; 330 * => lnk 282 graph_get_type(struct simple_util_priv *priv, struct device_node *lnk) argument 813 audio_graph2_link_normal(struct simple_util_priv *priv, struct device_node *lnk, struct link_info *li) argument 847 audio_graph2_link_dpcm(struct simple_util_priv *priv, struct device_node *lnk, struct link_info *li) argument 940 audio_graph2_link_c2c(struct simple_util_priv *priv, struct device_node *lnk, struct link_info *li) argument 1037 graph_link(struct simple_util_priv *priv, struct graph2_custom_hooks *hooks, enum graph_type gtype, struct device_node *lnk, struct link_info *li) argument 1084 graph_counter(struct device_node *lnk) argument 1125 graph_count_normal(struct simple_util_priv *priv, struct device_node *lnk, struct link_info *li) argument 1154 graph_count_dpcm(struct simple_util_priv *priv, struct device_node *lnk, struct link_info *li) argument 1194 graph_count_c2c(struct simple_util_priv *priv, struct device_node *lnk, struct link_info *li) argument 1236 graph_count(struct simple_util_priv *priv, struct graph2_custom_hooks *hooks, enum graph_type gtype, struct device_node *lnk, struct link_info *li) argument 1279 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)) argument 1291 struct device_node *lnk; local [all...] |
/linux-master/fs/qnx4/ |
H A D | namei.c | 92 struct qnx4_link_info *lnk; local 102 lnk = (struct qnx4_link_info *) de; 103 ino = (le32_to_cpu(lnk->dl_inode_blk) - 1) * 105 lnk->dl_inode_ndx;
|
/linux-master/drivers/net/wireless/ti/wlcore/ |
H A D | ps.c | 84 struct wl1271_link *lnk = &wl->links[hlid]; local 89 while ((skb = skb_dequeue(&lnk->tx_queue[i]))) { 105 if (lnk->wlvif) 106 lnk->wlvif->tx_queue_count[i] -= filtered[i];
|
H A D | hw_ops.h | 255 struct wl1271_link *lnk) 260 return wl->ops->lnk_high_prio(wl, hlid, lnk); 265 struct wl1271_link *lnk) 270 return wl->ops->lnk_low_prio(wl, hlid, lnk); 254 wlcore_hw_lnk_high_prio(struct wl1271 *wl, u8 hlid, struct wl1271_link *lnk) argument 264 wlcore_hw_lnk_low_prio(struct wl1271 *wl, u8 hlid, struct wl1271_link *lnk) argument
|
H A D | event.c | 146 struct wl1271_link *lnk; local 149 lnk = &wl->links[hlid]; 150 if (!lnk->ba_bitmap) 154 lnk->ba_bitmap, 155 lnk->addr);
|
H A D | tx.c | 508 struct wl1271_link *lnk, u8 q) 513 skb = skb_dequeue(&lnk->tx_queue[q]); 518 if (lnk->wlvif) { 519 WARN_ON_ONCE(lnk->wlvif->tx_queue_count[q] <= 0); 520 lnk->wlvif->tx_queue_count[q]--; 532 struct wl1271_link *lnk = &wl->links[hlid]; local 534 if (!wlcore_hw_lnk_high_prio(wl, hlid, lnk)) { 536 !skb_queue_empty(&lnk->tx_queue[ac]) && 537 wlcore_hw_lnk_low_prio(wl, hlid, lnk)) 544 return wlcore_lnk_dequeue(wl, lnk, a 507 wlcore_lnk_dequeue(struct wl1271 *wl, struct wl1271_link *lnk, u8 q) argument 642 struct wl1271_link *lnk = &wl->links[low_prio_hlid]; local 1024 struct wl1271_link *lnk = &wl->links[hlid]; local [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | gm200.c | 120 int lnk[2], sor[2], m, s; local 125 lnk[s] = (data & 0x00000010) >> 4; 129 *link |= lnk[s]; 134 if (sor[0] != sor[1] || WARN_ON(lnk[0] || !lnk[1]))
|
/linux-master/include/uapi/linux/ |
H A D | smc_diag.h | 95 struct smc_diag_linkinfo lnk[1]; member in struct:smc_diag_lgrinfo
|
/linux-master/fs/erofs/ |
H A D | inode.c | 182 char *lnk; local 191 lnk = kmalloc(inode->i_size + 1, GFP_KERNEL); 192 if (!lnk) 198 kfree(lnk); 205 memcpy(lnk, kaddr + m_pofs, inode->i_size); 206 lnk[inode->i_size] = '\0'; 208 inode->i_link = lnk;
|