Searched refs:widx (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/ntb/test/ |
| H A D | ntb_tool.c | 206 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/drivers/ntb/hw/idt/ |
| H A D | ntb_hw_idt.c | 1047 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 D | ntb_hw_switchtec.c | 192 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/mm/ |
| H A D | tlb-r4k.c | 645 int widx, gidx, idx, sidx, lidx, i; in r4k_tlb_uniquify_write() local 656 widx = 0; in r4k_tlb_uniquify_write() 674 if (widx < sidx && vpn >= tlb_vpns[widx].vpn) { in r4k_tlb_uniquify_write() 676 (tlb_vpns[widx].vpn + in r4k_tlb_uniquify_write() 677 (1ULL << tlb_vpns[widx].pagesz))); in r4k_tlb_uniquify_write() 679 widx++; in r4k_tlb_uniquify_write()
|
| /linux/arch/mips/include/asm/octeon/ |
| H A D | cvmx-pko-defs.h | 293 uint64_t widx:17; member 299 uint64_t widx:17;
|
| /linux/Documentation/driver-api/ |
| H A D | ntb.rst | 117 2) ntb_peer_mw_get_addr(widx) - retrieve MMIO address to map the memory
|
| /linux/drivers/irqchip/ |
| H A D | irq-gic-v3-its.c | 1102 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()
|