Searched refs:widx (Results 1 - 12 of 12) sorted by relevance

/linux-master/drivers/ntb/test/
H A Dntb_tool.c206 int widx; member in struct:tool_mw
569 static int tool_setup_mw(struct tool_ctx *tc, int pidx, int widx, argument
573 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx];
580 ret = ntb_mw_get_align(tc->ntb, pidx, widx, &addr_align,
598 ret = ntb_mw_set_trans(tc->ntb, pidx, widx, inmw->dma_base, inmw->size);
602 snprintf(buf, sizeof(buf), "mw%d", widx);
619 static void tool_free_mw(struct tool_ctx *tc, int pidx, int widx) argument
621 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx];
626 ntb_mw_clear_trans(tc->ntb, pidx, widx);
654 ret = ntb_mw_get_align(inmw->tc->ntb, inmw->pidx, inmw->widx,
804 tool_setup_peer_mw(struct tool_ctx *tc, int pidx, int widx, u64 req_addr, size_t req_size) argument
847 tool_free_peer_mw(struct tool_ctx *tc, int widx) argument
960 int widx, pidx; local
1008 int widx, pidx; local
1480 int pidx, widx, sidx, midx; local
[all...]
/linux-master/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);
811 * @widx: Memory window index.
823 static inline int ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int widx, argument
831 return ntb->ops->mw_get_align(ntb, pidx, widx, addr_align, size_align,
839 * @widx
854 ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, dma_addr_t addr, resource_size_t size) argument
875 ntb_mw_clear_trans(struct ntb_dev *ntb, int pidx, int widx) argument
912 ntb_peer_mw_get_addr(struct ntb_dev *ntb, int widx, phys_addr_t *base, resource_size_t *size) argument
936 ntb_peer_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, u64 addr, resource_size_t size) argument
960 ntb_peer_mw_clear_trans(struct ntb_dev *ntb, int pidx, int widx) argument
[all...]
/linux-master/arch/x86/crypto/
H A Dsm3-avx-asm_64.S181 #define R(i, a, b, c, d, e, f, g, h, round, widx, wtype) \
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) \
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) \
219 R(2, a, b, c, d, e, f, g, h, round, widx, wtype)
224 #define IW_W_ADDR(round, widx, offs) \
225 (STACK_W + ((round) / 4) * 64 + (offs) + ((widx) * 4))(%rsp)
228 #define XW_W_ADDR(round, widx, off
[all...]
/linux-master/drivers/net/ethernet/intel/e1000e/
H A Dnvm.c339 u16 widx = 0; local
350 while (widx < words) {
379 e1000_shift_out_eec_bits(hw, (u16)((offset + widx) * 2),
383 while (widx < words) {
384 u16 word_out = data[widx];
388 widx++;
390 if ((((offset + widx) * 2) % nvm->page_size) == 0) {
/linux-master/drivers/ntb/hw/idt/
H A Dntb_hw_idt.c1047 unsigned char widx, bidx, en_cnt; local
1080 for (widx = 0; widx < en_cnt; widx++, (*mw_cnt)++) {
1091 mws[*mw_cnt].idx = widx;
1184 * @widx: Memory window index.
1194 static int idt_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int widx, argument
1207 if (widx < 0 || peer->mw_cnt <= widx)
1211 *addr_align = peer->mws[widx]
1252 idt_ntb_peer_mw_get_addr(struct ntb_dev *ntb, int widx, phys_addr_t *base, resource_size_t *size) argument
1287 idt_ntb_peer_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, u64 addr, resource_size_t size) argument
1356 idt_ntb_peer_mw_clear_trans(struct ntb_dev *ntb, int pidx, int widx) argument
[all...]
/linux-master/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) \
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) \
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) \
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) \
168 (STACK_W + ((round) / 4) * 64 + (offs) + ((widx) * 4))
171 #define XW_W_ADDR(round, widx, off
[all...]
/linux-master/drivers/net/ethernet/intel/igb/
H A De1000_nvm.c414 u16 widx = 0; local
425 while (widx < words) {
454 igb_shift_out_eec_bits(hw, (u16)((offset + widx) * 2),
458 while (widx < words) {
459 u16 word_out = data[widx];
463 widx++;
465 if ((((offset + widx) * 2) % nvm->page_size) == 0) {
/linux-master/drivers/ntb/hw/mscc/
H A Dntb_hw_switchtec.c192 int widx, resource_size_t *addr_align,
203 lut = widx >= sndev->peer_nr_direct_mw;
204 size = ioread64(&sndev->peer_shared->mw_sizes[widx]);
270 static int switchtec_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, argument
283 widx, pidx, &addr, &size);
285 if (widx >= switchtec_ntb_mw_count(ntb, pidx))
310 if (widx < nr_direct_mw)
311 switchtec_ntb_mw_clr_direct(sndev, widx);
313 switchtec_ntb_mw_clr_lut(sndev, widx);
315 if (widx < nr_direct_m
191 switchtec_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int widx, resource_size_t *addr_align, resource_size_t *size_align, resource_size_t *size_max) argument
[all...]
/linux-master/drivers/power/supply/
H A Dqcom_smbb.c169 unsigned int widx; local
172 for (widx = sel = 0; (*fn)(widx) <= val; ++widx)
173 sel = widx;
/linux-master/drivers/net/ethernet/intel/e1000/
H A De1000_hw.c4078 u16 widx = 0; local
4080 while (widx < words) {
4104 e1000_shift_out_ee_bits(hw, (u16)((offset + widx) * 2),
4112 while (widx < words) {
4113 u16 word_out = data[widx];
4117 widx++;
4124 if ((((offset + widx) * 2) % eeprom->page_size) == 0) {
/linux-master/arch/mips/include/asm/octeon/
H A Dcvmx-pko-defs.h293 uint64_t widx:17; member in struct:cvmx_pko_mem_debug13::cvmx_pko_mem_debug13_cn30xx
299 uint64_t widx:17;
/linux-master/drivers/irqchip/
H A Dirq-gic-v3-its.c1010 int widx; local
1013 widx = its->cmd_write - its->cmd_base;
1017 if (((widx + 1) % ITS_CMD_QUEUE_NR_ENTRIES) == ridx)

Completed in 276 milliseconds