Home
last modified time | relevance | path

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

/drivers/ntb/test/
Dntb_tool.c206 int widx; member
576 static int tool_setup_mw(struct tool_ctx *tc, int pidx, int widx, in tool_setup_mw() argument
580 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; in tool_setup_mw()
587 ret = ntb_mw_get_align(tc->ntb, pidx, widx, &addr_align, in tool_setup_mw()
605 ret = ntb_mw_set_trans(tc->ntb, pidx, widx, inmw->dma_base, inmw->size); in tool_setup_mw()
609 snprintf(buf, sizeof(buf), "mw%d", widx); in tool_setup_mw()
626 static void tool_free_mw(struct tool_ctx *tc, int pidx, int widx) in tool_free_mw() argument
628 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; in tool_free_mw()
633 ntb_mw_clear_trans(tc->ntb, pidx, widx); in tool_free_mw()
661 ret = ntb_mw_get_align(inmw->tc->ntb, inmw->pidx, inmw->widx, in tool_mw_trans_read()
[all …]
/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()
/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 …]
/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 …]
/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()
/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()
/drivers/net/ethernet/intel/e1000/
De1000_hw.c4082 u16 widx = 0; in e1000_write_eeprom_spi() local
4084 while (widx < words) { in e1000_write_eeprom_spi()
4108 e1000_shift_out_ee_bits(hw, (u16)((offset + widx) * 2), in e1000_write_eeprom_spi()
4116 while (widx < words) { in e1000_write_eeprom_spi()
4117 u16 word_out = data[widx]; in e1000_write_eeprom_spi()
4121 widx++; in e1000_write_eeprom_spi()
4128 if ((((offset + widx) * 2) % eeprom->page_size) == 0) { in e1000_write_eeprom_spi()
/drivers/irqchip/
Dirq-gic-v3-its.c997 int widx; in its_queue_full() local
1000 widx = its->cmd_write - its->cmd_base; in its_queue_full()
1004 if (((widx + 1) % ITS_CMD_QUEUE_NR_ENTRIES) == ridx) in its_queue_full()