Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/ntb/test/
Dntb_tool.c206 int widx; member
574 static int tool_setup_mw(struct tool_ctx *tc, int pidx, int widx, in tool_setup_mw() argument
578 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; in tool_setup_mw()
585 ret = ntb_mw_get_align(tc->ntb, pidx, widx, &addr_align, in tool_setup_mw()
603 ret = ntb_mw_set_trans(tc->ntb, pidx, widx, inmw->dma_base, inmw->size); in tool_setup_mw()
607 snprintf(buf, sizeof(buf), "mw%d", widx); in tool_setup_mw()
624 static void tool_free_mw(struct tool_ctx *tc, int pidx, int widx) in tool_free_mw() argument
626 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; in tool_free_mw()
631 ntb_mw_clear_trans(tc->ntb, pidx, widx); in tool_free_mw()
659 ret = ntb_mw_get_align(inmw->tc->ntb, inmw->pidx, inmw->widx, in tool_mw_trans_read()
[all …]
/Linux-v5.10/include/linux/
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-v5.10/drivers/net/ethernet/intel/e1000e/
Dnvm.c339 u16 widx = 0; in e1000e_write_nvm_spi() local
350 while (widx < words) { in e1000e_write_nvm_spi()
379 e1000_shift_out_eec_bits(hw, (u16)((offset + widx) * 2), in e1000e_write_nvm_spi()
383 while (widx < words) { in e1000e_write_nvm_spi()
384 u16 word_out = data[widx]; in e1000e_write_nvm_spi()
388 widx++; in e1000e_write_nvm_spi()
390 if ((((offset + widx) * 2) % nvm->page_size) == 0) { in e1000e_write_nvm_spi()
/Linux-v5.10/drivers/ntb/hw/idt/
Dntb_hw_idt.c1047 unsigned char widx, bidx, en_cnt; in idt_scan_mws() local
1080 for (widx = 0; widx < en_cnt; widx++, (*mw_cnt)++) { in idt_scan_mws()
1091 mws[*mw_cnt].idx = widx; in idt_scan_mws()
1194 static int idt_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int widx, in idt_ntb_mw_get_align() argument
1207 if (widx < 0 || peer->mw_cnt <= widx) in idt_ntb_mw_get_align()
1211 *addr_align = peer->mws[widx].addr_align; in idt_ntb_mw_get_align()
1214 *size_align = peer->mws[widx].size_align; in idt_ntb_mw_get_align()
1217 *size_max = peer->mws[widx].size_max; in idt_ntb_mw_get_align()
1252 static int idt_ntb_peer_mw_get_addr(struct ntb_dev *ntb, int widx, in idt_ntb_peer_mw_get_addr() argument
1257 if (widx < 0 || ndev->mw_cnt <= widx) in idt_ntb_peer_mw_get_addr()
[all …]
/Linux-v5.10/drivers/net/ethernet/intel/igb/
De1000_nvm.c414 u16 widx = 0; in igb_write_nvm_spi() local
425 while (widx < words) { in igb_write_nvm_spi()
454 igb_shift_out_eec_bits(hw, (u16)((offset + widx) * 2), in igb_write_nvm_spi()
458 while (widx < words) { in igb_write_nvm_spi()
459 u16 word_out = data[widx]; in igb_write_nvm_spi()
463 widx++; in igb_write_nvm_spi()
465 if ((((offset + widx) * 2) % nvm->page_size) == 0) { in igb_write_nvm_spi()
/Linux-v5.10/drivers/ntb/hw/mscc/
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-v5.10/drivers/power/supply/
Dqcom_smbb.c169 unsigned int widx; in smbb_hw_lookup() local
172 for (widx = sel = 0; (*fn)(widx) <= val; ++widx) in smbb_hw_lookup()
173 sel = widx; in smbb_hw_lookup()
/Linux-v5.10/drivers/net/ethernet/intel/e1000/
De1000_hw.c4081 u16 widx = 0; in e1000_write_eeprom_spi() local
4083 while (widx < words) { in e1000_write_eeprom_spi()
4107 e1000_shift_out_ee_bits(hw, (u16)((offset + widx) * 2), in e1000_write_eeprom_spi()
4115 while (widx < words) { in e1000_write_eeprom_spi()
4116 u16 word_out = data[widx]; in e1000_write_eeprom_spi()
4120 widx++; in e1000_write_eeprom_spi()
4127 if ((((offset + widx) * 2) % eeprom->page_size) == 0) { in e1000_write_eeprom_spi()
/Linux-v5.10/arch/mips/include/asm/octeon/
Dcvmx-pko-defs.h293 uint64_t widx:17; member
299 uint64_t widx:17;
/Linux-v5.10/Documentation/driver-api/
Dntb.rst117 2) ntb_peer_mw_get_addr(widx) - retrieve MMIO address to map the memory
/Linux-v5.10/drivers/irqchip/
Dirq-gic-v3-its.c974 int widx; in its_queue_full() local
977 widx = its->cmd_write - its->cmd_base; in its_queue_full()
981 if (((widx + 1) % ITS_CMD_QUEUE_NR_ENTRIES) == ridx) in its_queue_full()