Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 3036) sorted by relevance

12345678910>>...122

/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_csr.h21 #define HINIC_CSR_DMA_ATTR_ADDR(idx) \ argument
22 (HINIC_DMA_ATTR_BASE + (idx) * HINIC_DMA_ATTR_STRIDE)
26 #define HINIC_CSR_PPF_ELECTION_ADDR(idx) \ argument
27 (HINIC_ELECTION_BASE + (idx) * HINIC_PPF_ELECTION_STRIDE)
34 #define HINIC_CSR_API_CMD_CHAIN_HEAD_HI_ADDR(idx) \ argument
37 #define HINIC_CSR_API_CMD_CHAIN_HEAD_LO_ADDR(idx) \ argument
40 #define HINIC_CSR_API_CMD_STATUS_HI_ADDR(idx) \ argument
43 #define HINIC_CSR_API_CMD_STATUS_LO_ADDR(idx) \ argument
46 #define HINIC_CSR_API_CMD_CHAIN_NUM_CELLS_ADDR(idx) \ argument
49 #define HINIC_CSR_API_CMD_CHAIN_CTRL_ADDR(idx) \ argument
[all …]
/linux/kernel/events/
H A Dhw_breakpoint_test.c35 if (WARN_ON(idx < 0 || idx >= MAX_TEST_BREAKPOINTS)) in register_test_bp()
124 int idx = 0; in test_one_cpu() local
133 int idx = 0; in test_many_cpus() local
148 int idx = 0; in test_one_task_on_all_cpus() local
161 int idx = 0; in test_two_tasks_on_all_cpus() local
179 int idx = 0; in test_one_task_on_one_cpu() local
195 int idx = 0; in test_one_task_mixed() local
215 int idx = 0; in test_two_tasks_on_one_cpu() local
231 int idx = 0; in test_two_tasks_on_one_all_cpus() local
248 int idx = 0; in test_task_on_all_and_one_cpu() local
[all …]
/linux/tools/testing/selftests/bpf/
H A Duprobe_multi.c10 #define NAME(name, idx) PASTE(name, idx) argument
13 #define CALL(name, idx) NAME(name, idx)(); argument
15 #define F(body, name, idx) body(name, idx) argument
18 F(body, PASTE(name, idx), 0) F(body, PASTE(name, idx), 1) F(body, PASTE(name, idx), 2) \
19 F(body, PASTE(name, idx), 3) F(body, PASTE(name, idx), 4) F(body, PASTE(name, idx), 5) \
20 F(body, PASTE(name, idx), 6) F(body, PASTE(name, idx), 7) F(body, PASTE(name, idx), 8) \
24 F10(body, PASTE(name, idx), 0) F10(body, PASTE(name, idx), 1) F10(body, PASTE(name, idx), 2) \
25 F10(body, PASTE(name, idx), 3) F10(body, PASTE(name, idx), 4) F10(body, PASTE(name, idx), 5) \
26 F10(body, PASTE(name, idx), 6) F10(body, PASTE(name, idx), 7) F10(body, PASTE(name, idx), 8) \
30 F100(body, PASTE(name, idx), 0) F100(body, PASTE(name, idx), 1) F100(body, PASTE(name, idx), 2) \
[all …]
/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_debugfs_kunit.c46 for (idx = 0; idx < kslist->cnt; idx++) { in test_val_keyset()
61 for (idx = 0; idx < kslist->cnt; idx++) { in test_val_keyset()
123 for (idx = 0; idx < count; ++idx) { in test_cache_read()
127 for (idx = 0; idx < count; ++idx) { in test_cache_read()
136 for (idx = 0; idx < count; ++idx) { in test_cache_read()
164 for (idx = 0; idx < count; ++idx) { in test_cache_write()
168 for (idx = 0; idx < count; ++idx) { in test_cache_write()
177 for (idx = 0; idx < count; ++idx) { in test_cache_write()
275 for (idx = 0; idx < cnt; ++idx) { in test_prf()
421 for (idx = 0; idx < test_pr_bufferidx; ++idx) { in vcap_api_show_admin_test()
[all …]
/linux/drivers/net/netdevsim/
H A Dmacsec.c33 int idx; in nsim_macsec_add_secy() local
38 for (idx = 0; idx < NSIM_MACSEC_MAX_SECY_COUNT; idx++) { in nsim_macsec_add_secy()
62 int idx; in nsim_macsec_upd_secy() local
80 int idx; in nsim_macsec_del_secy() local
103 int idx; in nsim_macsec_add_rxsc() local
116 for (idx = 0; idx < NSIM_MACSEC_MAX_RXSC_COUNT; idx++) { in nsim_macsec_add_rxsc()
138 int idx; in nsim_macsec_upd_rxsc() local
165 int idx; in nsim_macsec_del_rxsc() local
196 int idx; in nsim_macsec_add_rxsa() local
223 int idx; in nsim_macsec_upd_rxsa() local
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ethtool.c300 uint idx = i * lan966x->num_stats; in lan966x_stats_update() local
362 u32 idx; in lan966x_get_eth_mac_stats() local
371 lan966x->stats[idx + SYS_COUNT_TX_UC] + in lan966x_get_eth_mac_stats()
372 lan966x->stats[idx + SYS_COUNT_TX_MC] + in lan966x_get_eth_mac_stats()
373 lan966x->stats[idx + SYS_COUNT_TX_BC] + in lan966x_get_eth_mac_stats()
378 lan966x->stats[idx + SYS_COUNT_TX_COL]; in lan966x_get_eth_mac_stats()
383 lan966x->stats[idx + SYS_COUNT_RX_BC]; in lan966x_get_eth_mac_stats()
408 lan966x->stats[idx + SYS_COUNT_RX_MC]; in lan966x_get_eth_mac_stats()
410 lan966x->stats[idx + SYS_COUNT_RX_BC]; in lan966x_get_eth_mac_stats()
447 u32 idx; in lan966x_get_eth_rmon_stats() local
[all …]
/linux/drivers/crypto/ccree/
H A Dcc_aead.c317 idx++; in hmac_setkey()
325 idx++; in hmac_setkey()
333 idx++; in hmac_setkey()
343 idx++; in hmac_setkey()
354 idx++; in hmac_setkey()
942 idx++; in cc_set_cipher_desc()
960 idx++; in cc_set_cipher_desc()
1007 idx++; in cc_set_hmac_desc()
1016 idx++; in cc_set_hmac_desc()
1037 idx++; in cc_set_xcbc_desc()
[all …]
H A Dcc_hash.c359 idx++; in cc_fin_result()
380 idx++; in cc_fin_hmac()
389 idx++; in cc_fin_hmac()
400 idx++; in cc_fin_hmac()
406 idx++; in cc_fin_hmac()
413 idx++; in cc_fin_hmac()
480 idx++; in cc_hash_digest()
514 idx = cc_fin_hmac(desc, req, idx); in cc_hash_digest()
517 idx = cc_fin_result(desc, req, idx); in cc_hash_digest()
687 idx = cc_fin_hmac(desc, req, idx); in cc_do_finup()
[all …]
/linux/drivers/net/can/sja1000/
H A Dsja1000_isa.c126 idx, port[idx], mem[idx], irq[idx]); in sja1000_isa_probe()
176 if (clk[idx]) in sja1000_isa_probe()
215 if (mem[idx]) in sja1000_isa_probe()
218 if (mem[idx]) in sja1000_isa_probe()
256 int idx, err; in sja1000_isa_init() local
258 for (idx = 0; idx < MAXDEV; idx++) { in sja1000_isa_init()
259 if ((port[idx] || mem[idx]) && irq[idx]) { in sja1000_isa_init()
273 DRV_NAME, idx, port[idx], mem[idx], irq[idx]); in sja1000_isa_init()
274 } else if (idx == 0 || port[idx] || mem[idx]) { in sja1000_isa_init()
302 int idx; in sja1000_isa_exit() local
[all …]
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_calendar.c216 for (idx = 0; idx < ARRAY_SIZE(cal); idx++) in sparx5_config_auto_calendar()
228 for (idx = 2; idx < 5; idx++) in sparx5_config_auto_calendar()
295 for (idx = 0; idx < SPX5_DSM_CAL_LEN; idx++) { in sparx5_dsm_calendar_calc()
338 for (idx = 0; idx < 4; idx++) { in sparx5_dsm_calendar_calc()
389 for (idx = 0; idx < empty_slots; idx++) in sparx5_dsm_calendar_calc()
392 for (idx = 1; idx < num_of_slots; idx++) { in sparx5_dsm_calendar_calc()
488 for (idx = 0; idx < SPX5_DSM_CAL_LEN; idx++) { in sparx5_dsm_calendar_check()
493 for (idx = 0; idx < cal_length; idx++) { in sparx5_dsm_calendar_check()
502 for (idx = 0; idx < num_of_slots; idx++) { in sparx5_dsm_calendar_check()
507 for (idx = 0; idx < num_of_slots; idx++) { in sparx5_dsm_calendar_check()
[all …]
/linux/lib/
H A Dfind_bit.c32 for (idx = 0; idx * BITS_PER_LONG < sz; idx++) { \
63 idx++; \
75 for (idx = 0; (idx + 1) * BITS_PER_LONG <= sz; idx++) { \
114 return FIND_FIRST_BIT(addr1[idx] & addr2[idx], /* nop */, size); in _find_first_and_bit()
127 return FIND_FIRST_BIT(addr1[idx] & addr2[idx] & addr3[idx], /* nop */, size); in _find_first_and_and_bit()
159 return FIND_NTH_BIT(addr1[idx] & addr2[idx], size, n); in __find_nth_and_bit()
166 return FIND_NTH_BIT(addr1[idx] & ~addr2[idx], size, n); in __find_nth_andnot_bit()
175 return FIND_NTH_BIT(addr1[idx] & addr2[idx] & ~addr3[idx], size, n); in __find_nth_and_andnot_bit()
183 return FIND_NEXT_BIT(addr1[idx] & addr2[idx], /* nop */, nbits, start); in _find_next_and_bit()
223 val &= addr[idx]; in _find_last_bit()
[all …]
/linux/drivers/net/can/cc770/
H A Dcc770_isa.c172 idx, port[idx], mem[idx], irq[idx]); in cc770_isa_probe()
220 if (clk[idx]) in cc770_isa_probe()
277 if (mem[idx]) in cc770_isa_probe()
280 if (mem[idx]) in cc770_isa_probe()
318 int idx, err; in cc770_isa_init() local
320 for (idx = 0; idx < ARRAY_SIZE(cc770_isa_devs); idx++) { in cc770_isa_init()
321 if ((port[idx] || mem[idx]) && irq[idx]) { in cc770_isa_init()
335 idx, port[idx], mem[idx], irq[idx]); in cc770_isa_init()
336 } else if (idx == 0 || port[idx] || mem[idx]) { in cc770_isa_init()
363 int idx; in cc770_isa_exit() local
[all …]
/linux/tools/testing/selftests/kvm/lib/
H A Dsparsebit.c287 root->idx = subtree->idx; in node_copy_subtree()
317 if (idx >= nodep->idx && in node_find()
358 if (idx < parentp->idx) { in node_add()
518 if (nodep1->idx == idx) in node_split()
785 if (idx >= nodep->idx && in sparsebit_is_set()
797 assert(idx >= nodep->idx && idx - nodep->idx < MASK_BITS); in sparsebit_is_set()
820 assert(idx >= nodep->idx && idx <= nodep->idx + MASK_BITS - 1); in bit_set()
855 assert(idx >= nodep->idx && idx <= nodep->idx + MASK_BITS - 1); in bit_clear()
1267 for (idx = lowest_possible - nodep1->idx; idx < MASK_BITS; idx++) in sparsebit_next_clear()
1311 idx != 0 && idx + num - 1 >= idx; in sparsebit_next_set_num()
[all …]
/linux/kernel/sched/
H A Dcpudeadline.c39 l = left_child(idx); in cpudl_heapify_down()
41 largest = idx; in cpudl_heapify_down()
59 cp->elements[cp->elements[idx].cpu].idx = idx; in cpudl_heapify_down()
60 idx = largest; in cpudl_heapify_down()
65 cp->elements[cp->elements[idx].cpu].idx = idx; in cpudl_heapify_down()
75 if (idx == 0) in cpudl_heapify_up()
79 p = parent(idx); in cpudl_heapify_up()
85 cp->elements[cp->elements[idx].cpu].idx = idx; in cpudl_heapify_up()
86 idx = p; in cpudl_heapify_up()
91 cp->elements[cp->elements[idx].cpu].idx = idx; in cpudl_heapify_up()
[all …]
/linux/arch/x86/um/
H A Dtls_32.c50 int idx; in get_free_idx() local
52 for (idx = 0; idx < GDT_ENTRY_TLS_ENTRIES; idx++) in get_free_idx()
76 int idx; in load_TLS() local
78 for (idx = GDT_ENTRY_TLS_MIN; idx < GDT_ENTRY_TLS_MAX; idx++) { in load_TLS()
189 if (idx < GDT_ENTRY_TLS_MIN || idx > GDT_ENTRY_TLS_MAX) in set_tls_entry()
219 int idx) in get_tls_entry() argument
223 if (idx < GDT_ENTRY_TLS_MIN || idx > GDT_ENTRY_TLS_MAX) in get_tls_entry()
257 int idx, ret; in SYSCALL_DEFINE1() local
269 if (idx < 0) in SYSCALL_DEFINE1()
270 return idx; in SYSCALL_DEFINE1()
[all …]
/linux/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/
H A DCore.pm40 if (!$value && !$idx) {
45 if ($idx && ($value & $idx) == $idx) {
49 $string .= "$trace_flags{$idx}";
51 $value &= ~$idx;
70 if (!$value && !$idx) {
74 if ($idx && ($value & $idx) == $idx) {
80 $value &= ~$idx;
110 print " value $idx: $flag_fields{$event}{$field}{'values'}{$idx}\n";
122 if (!$value && !$idx) {
126 if ($value == $idx) {
[all …]
/linux/drivers/clk/uniphier/
H A Dclk-uniphier-sys.c27 #define UNIPHIER_LD4_SYS_CLK_NAND(idx) \ argument
31 #define UNIPHIER_PRO5_SYS_CLK_NAND(idx) \ argument
35 #define UNIPHIER_LD11_SYS_CLK_NAND(idx) \ argument
39 #define UNIPHIER_SYS_CLK_NAND_4X(idx) \ argument
42 #define UNIPHIER_LD11_SYS_CLK_EMMC(idx) \ argument
45 #define UNIPHIER_LD4_SYS_CLK_STDMAC(idx) \ argument
51 #define UNIPHIER_LD11_SYS_CLK_HSC(idx) \ argument
54 #define UNIPHIER_PRO4_SYS_CLK_GIO(idx) \ argument
60 #define UNIPHIER_PRO4_SYS_CLK_AIO(idx) \ argument
64 #define UNIPHIER_PRO5_SYS_CLK_AIO(idx) \ argument
[all …]
/linux/include/asm-generic/
H A Dfixmap.h33 return __fix_to_virt(idx); in fix_to_virt()
64 #define set_fixmap(idx, phys) \ argument
65 __set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL)
69 #define clear_fixmap(idx) \ argument
70 __set_fixmap(idx, 0, FIXMAP_PAGE_CLEAR)
77 __set_fixmap(idx, phys, flags); \
82 #define set_fixmap_offset(idx, phys) \ argument
88 #define set_fixmap_nocache(idx, phys) \ argument
97 #define set_fixmap_io(idx, phys) \ argument
98 __set_fixmap(idx, phys, FIXMAP_PAGE_IO)
[all …]
/linux/mm/
H A Dhugetlb_cgroup.c37 return &h_cg->rsvd_hugepage[idx]; in __hugetlb_cgroup_counter_from_cgroup()
38 return &h_cg->hugepage[idx]; in __hugetlb_cgroup_counter_from_cgroup()
91 int idx; in hugetlb_cgroup_init() local
93 for (idx = 0; idx < HUGE_MAX_HSTATE; idx++) { in hugetlb_cgroup_init()
101 parent_h_cgroup, idx); in hugetlb_cgroup_init()
103 parent_h_cgroup, idx); in hugetlb_cgroup_init()
106 idx), in hugetlb_cgroup_init()
500 ->usage[idx]); in hugetlb_cgroup_read_numa_stat()
545 int idx; in hugetlb_cgroup_read_u64_max() local
589 int ret, idx; in hugetlb_cgroup_write() local
[all …]
/linux/arch/x86/events/intel/
H A Duncore_nhmex.c706 if (idx[0] != 0xff && idx[0] != __BITS_VALUE(reg1->idx, 0, 8)) in nhmex_mbox_get_constraint()
724 idx[0] = (idx[0] + 1) % 4; in nhmex_mbox_get_constraint()
843 idx = __BITS_VALUE(reg1->idx, 0, 8); in nhmex_mbox_msr_enable_event()
993 idx = reg1->idx % 6; in nhmex_rbox_get_constraint()
1010 } else if (idx == 2 || idx == 3) { in nhmex_rbox_get_constraint()
1045 if (idx != reg1->idx % 6) { in nhmex_rbox_get_constraint()
1054 if (idx != reg1->idx % 6) in nhmex_rbox_get_constraint()
1072 idx = reg1->idx % 6; in nhmex_rbox_put_constraint()
1079 if (idx == 2 || idx == 3) in nhmex_rbox_put_constraint()
1099 reg1->idx = idx; in nhmex_rbox_hw_config()
[all …]
/linux/drivers/gpu/drm/radeon/
H A Devergreen_cs.c1073 unsigned idx; in evergreen_cs_parse_packet0() local
1076 idx = pkt->idx + 1; in evergreen_cs_parse_packet0()
1785 idx = pkt->idx + 1; in evergreen_packet3_check()
2104 ib[idx+1] = (ib[idx+1] & 0x3) | (offset & 0xfffffffc); in evergreen_packet3_check()
2802 u32 idx; in evergreen_dma_cs_parse() local
2812 idx = p->idx; in evergreen_dma_cs_parse()
3350 u32 idx = pkt->idx + 1; in evergreen_vm_packet3_check() local
3527 pkt.idx = idx; in evergreen_ib_parse()
3537 idx += 1; in evergreen_ib_parse()
3644 idx += 4; in evergreen_dma_ib_parse()
[all …]
/linux/drivers/net/ethernet/ti/
H A Dcpsw_ale.c120 idx = 2 - idx; /* flip */ in cpsw_ale_get_field()
139 idx = 2 - idx; /* flip */ in cpsw_ale_set_field()
350 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_match_addr()
371 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_match_vlan()
387 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_match_free()
401 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_find_ageable()
440 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_flush_multicast()
485 int idx; in cpsw_ale_add_ucast() local
511 int idx; in cpsw_ale_del_ucast() local
790 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_set_unreg_mcast()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dfpga_defs.h215 #define MAC_REG_ADDR(idx, reg) (MAC_REG_BASE + (idx) * 128 + (reg)) argument
217 #define MAC_REG_IDLO(idx) MAC_REG_ADDR(idx, A_GMAC_MACID_LO) argument
218 #define MAC_REG_IDHI(idx) MAC_REG_ADDR(idx, A_GMAC_MACID_HI) argument
219 #define MAC_REG_CSR(idx) MAC_REG_ADDR(idx, A_GMAC_CSR) argument
220 #define MAC_REG_IFS(idx) MAC_REG_ADDR(idx, A_GMAC_IFS) argument
222 #define MAC_REG_LINKDLY(idx) MAC_REG_ADDR(idx, A_GMAC_LNK_DLY) argument
223 #define MAC_REG_PAUSETIME(idx) MAC_REG_ADDR(idx, A_GMAC_PAUSETIME) argument
224 #define MAC_REG_CASTLO(idx) MAC_REG_ADDR(idx, A_GMAC_MCAST_LO) argument
225 #define MAC_REG_MCASTHI(idx) MAC_REG_ADDR(idx, A_GMAC_MCAST_HI) argument
228 #define MAC_REG_RMCNT(idx) MAC_REG_ADDR(idx, A_GMAC_RMT_CNT) argument
[all …]
/linux/tools/testing/selftests/kvm/x86_64/
H A Dhyperv_features.c25 uint32_t idx; member
47 GUEST_ASSERT(msr->idx); in guest_msr()
257 msr->idx = HV_X64_MSR_RESET; in guest_test_msrs_access()
263 msr->idx = HV_X64_MSR_RESET; in guest_test_msrs_access()
268 msr->idx = HV_X64_MSR_RESET; in guest_test_msrs_access()
299 msr->idx = HV_X64_MSR_EOM; in guest_test_msrs_access()
308 msr->idx = HV_X64_MSR_EOM; in guest_test_msrs_access()
314 msr->idx = HV_X64_MSR_EOM; in guest_test_msrs_access()
319 msr->idx = HV_X64_MSR_EOM; in guest_test_msrs_access()
358 msr->idx = HV_X64_MSR_EOI; in guest_test_msrs_access()
[all …]
/linux/arch/x86/kernel/
H A Dtls.c25 int idx; in get_free_idx() local
27 for (idx = 0; idx < GDT_ENTRY_TLS_ENTRIES; idx++) in get_free_idx()
128 if (idx == -1) in do_set_thread_area()
129 idx = info.entry_number; in do_set_thread_area()
136 idx = get_free_idx(); in do_set_thread_area()
137 if (idx < 0) in do_set_thread_area()
138 return idx; in do_set_thread_area()
143 if (idx < GDT_ENTRY_TLS_MIN || idx > GDT_ENTRY_TLS_MAX) in do_set_thread_area()
201 info->entry_number = idx; in fill_user_desc()
221 if (idx == -1 && get_user(idx, &u_info->entry_number)) in do_get_thread_area()
[all …]

12345678910>>...122