Home
last modified time | relevance | path

Searched refs:widx (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/ntb/test/
H A Dntb_tool.c206 int widx; member
569 static int tool_setup_mw(struct tool_ctx *tc, int pidx, int widx, in tool_setup_mw() argument
573 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; in tool_setup_mw()
580 ret = ntb_mw_get_align(tc->ntb, pidx, widx, &addr_align, in tool_setup_mw()
598 ret = ntb_mw_set_trans(tc->ntb, pidx, widx, inmw->dma_base, inmw->size); in tool_setup_mw()
602 snprintf(buf, sizeof(buf), "mw%d", widx); in tool_setup_mw()
619 static void tool_free_mw(struct tool_ctx *tc, int pidx, int widx) in tool_free_mw() argument
621 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; in tool_free_mw()
626 ntb_mw_clear_trans(tc->ntb, pidx, widx); in tool_free_mw()
654 ret = ntb_mw_get_align(inmw->tc->ntb, inmw->pidx, inmw->widx, in tool_mw_trans_read()
[all …]
/linux/include/linux/
H A Dntb.h273 int (*mw_get_align)(struct ntb_dev *ntb, int pidx, int widx,
277 int (*mw_set_trans)(struct ntb_dev *ntb, int pidx, int widx,
279 int (*mw_clear_trans)(struct ntb_dev *ntb, int pidx, int widx);
281 int (*peer_mw_get_addr)(struct ntb_dev *ntb, int widx,
283 int (*peer_mw_set_trans)(struct ntb_dev *ntb, int pidx, int widx,
285 int (*peer_mw_clear_trans)(struct ntb_dev *ntb, int pidx, int widx);
823 static inline int ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int widx, in ntb_mw_get_align() argument
831 return ntb->ops->mw_get_align(ntb, pidx, widx, addr_align, size_align, in ntb_mw_get_align()
854 static inline int ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, in ntb_mw_set_trans() argument
860 return ntb->ops->mw_set_trans(ntb, pidx, widx, addr, size); in ntb_mw_set_trans()
[all …]
/linux/arch/x86/crypto/
H A Dsm3-avx-asm_64.S181 #define R(i, a, b, c, d, e, f, g, h, round, widx, wtype) \ argument
188 addl wtype##_W1_ADDR(round, widx), h; \
194 addl wtype##_W1W2_ADDR(round, widx), d; \
215 #define R1(a, b, c, d, e, f, g, h, round, widx, wtype) \ argument
216 R(1, a, b, c, d, e, f, g, h, round, widx, wtype)
218 #define R2(a, b, c, d, e, f, g, h, round, widx, wtype) \ argument
219 R(2, a, b, c, d, e, f, g, h, round, widx, wtype)
224 #define IW_W_ADDR(round, widx, offs) \ argument
225 (STACK_W + ((round) / 4) * 64 + (offs) + ((widx) * 4))(%rsp)
228 #define XW_W_ADDR(round, widx, offs) \ argument
[all …]
/linux/arch/arm64/crypto/
H A Dsm3-neon-core.S121 #define R(i, a, b, c, d, e, f, g, h, k, K_LOAD, round, widx, wtype, IOP, iop_param) \ argument
123 ldr t5, [sp, #(wtype##_W1_ADDR(round, widx))]; \
127 ldr t6, [sp, #(wtype##_W1W2_ADDR(round, widx))]; \
155 #define R1(a, b, c, d, e, f, g, h, k, K_LOAD, round, widx, wtype, IOP, iop_param) \ argument
156 R(1, ##a, ##b, ##c, ##d, ##e, ##f, ##g, ##h, ##k, K_LOAD, round, widx, wtype, IOP, iop_param)
158 #define R2(a, b, c, d, e, f, g, h, k, K_LOAD, round, widx, wtype, IOP, iop_param) \ argument
159 R(2, ##a, ##b, ##c, ##d, ##e, ##f, ##g, ##h, ##k, K_LOAD, round, widx, wtype, IOP, iop_param)
167 #define IW_W_ADDR(round, widx, offs) \ argument
168 (STACK_W + ((round) / 4) * 64 + (offs) + ((widx) * 4))
171 #define XW_W_ADDR(round, widx, offs) \ argument
[all …]
/linux/drivers/ntb/hw/idt/
H A Dntb_hw_idt.c1047 unsigned char widx, bidx, en_cnt; in idt_scan_mws() local
1085 for (widx = 0; widx < en_cnt; widx++, (*mw_cnt)++) { in idt_scan_mws()
1096 mws[*mw_cnt].idx = widx; in idt_scan_mws()
1190 static int idt_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int widx, in idt_ntb_mw_get_align() argument
1203 if (widx < 0 || peer->mw_cnt <= widx) in idt_ntb_mw_get_align()
1207 *addr_align = peer->mws[widx].addr_align; in idt_ntb_mw_get_align()
1210 *size_align = peer->mws[widx].size_align; in idt_ntb_mw_get_align()
1213 *size_max = peer->mws[widx].size_max; in idt_ntb_mw_get_align()
1248 static int idt_ntb_peer_mw_get_addr(struct ntb_dev *ntb, int widx, in idt_ntb_peer_mw_get_addr() argument
1253 if (widx < 0 || ndev->mw_cnt <= widx) in idt_ntb_peer_mw_get_addr()
[all …]
/linux/drivers/ntb/hw/mscc/
H A Dntb_hw_switchtec.c192 int widx, resource_size_t *addr_align, in switchtec_ntb_mw_get_align() argument
203 lut = widx >= sndev->peer_nr_direct_mw; in switchtec_ntb_mw_get_align()
204 size = ioread64(&sndev->peer_shared->mw_sizes[widx]); in switchtec_ntb_mw_get_align()
270 static int switchtec_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, in switchtec_ntb_mw_set_trans() argument
283 widx, pidx, &addr, &size); in switchtec_ntb_mw_set_trans()
285 if (widx >= switchtec_ntb_mw_count(ntb, pidx)) in switchtec_ntb_mw_set_trans()
310 if (widx < nr_direct_mw) in switchtec_ntb_mw_set_trans()
311 switchtec_ntb_mw_clr_direct(sndev, widx); in switchtec_ntb_mw_set_trans()
313 switchtec_ntb_mw_clr_lut(sndev, widx); in switchtec_ntb_mw_set_trans()
315 if (widx < nr_direct_mw) in switchtec_ntb_mw_set_trans()
[all …]
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-pko-defs.h293 uint64_t widx:17; member
299 uint64_t widx:17;
/linux/Documentation/driver-api/
H A Dntb.rst117 2) ntb_peer_mw_get_addr(widx) - retrieve MMIO address to map the memory
/linux/drivers/irqchip/
H A Dirq-gic-v3-its.c1102 int widx; in its_queue_full() local
1105 widx = its->cmd_write - its->cmd_base; in its_queue_full()
1109 if (((widx + 1) % ITS_CMD_QUEUE_NR_ENTRIES) == ridx) in its_queue_full()