/Linux-v6.6/drivers/ntb/test/ |
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-v6.6/include/linux/ |
D | ntb.h | 273 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-v6.6/arch/x86/crypto/ |
D | sm3-avx-asm_64.S | 181 #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-v6.6/drivers/net/ethernet/intel/e1000e/ |
D | nvm.c | 339 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-v6.6/arch/arm64/crypto/ |
D | sm3-neon-core.S | 121 #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-v6.6/drivers/ntb/hw/idt/ |
D | ntb_hw_idt.c | 1047 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-v6.6/drivers/net/ethernet/intel/igb/ |
D | e1000_nvm.c | 414 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-v6.6/drivers/ntb/hw/mscc/ |
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-v6.6/drivers/power/supply/ |
D | qcom_smbb.c | 169 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-v6.6/drivers/net/ethernet/intel/e1000/ |
D | e1000_hw.c | 4082 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()
|
/Linux-v6.6/arch/mips/include/asm/octeon/ |
D | cvmx-pko-defs.h | 293 uint64_t widx:17; member 299 uint64_t widx:17;
|
/Linux-v6.6/Documentation/driver-api/ |
D | ntb.rst | 117 2) ntb_peer_mw_get_addr(widx) - retrieve MMIO address to map the memory
|
/Linux-v6.6/drivers/irqchip/ |
D | irq-gic-v3-its.c | 999 int widx; in its_queue_full() local 1002 widx = its->cmd_write - its->cmd_base; in its_queue_full() 1006 if (((widx + 1) % ITS_CMD_QUEUE_NR_ENTRIES) == ridx) in its_queue_full()
|