/openbmc/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_csr.h | 21 #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 …]
|
/openbmc/linux/kernel/events/ |
H A D | hw_breakpoint_test.c | 35 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 …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | uprobe_multi.c | 10 #define NAME(name, idx) PASTE(name, idx) argument 12 #define DEF(name, idx) int NAME(name, idx)(void) { return 0; } 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) \ [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api_debugfs_kunit.c | 46 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 …]
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_ethtool.c | 300 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 …]
|
/openbmc/linux/drivers/net/can/sja1000/ |
H A D | sja1000_isa.c | 126 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 …]
|
/openbmc/linux/drivers/crypto/ccree/ |
H A D | cc_aead.c | 317 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 D | cc_hash.c | 359 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 …]
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_calendar.c | 216 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 …]
|
/openbmc/linux/drivers/net/can/cc770/ |
H A D | cc770_isa.c | 172 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 …]
|
/openbmc/linux/drivers/net/netdevsim/ |
H A D | macsec.c | 38 int idx; in nsim_macsec_add_secy() local 43 for (idx = 0; idx < NSIM_MACSEC_MAX_SECY_COUNT; idx++) { in nsim_macsec_add_secy() 67 int idx; in nsim_macsec_upd_secy() local 85 int idx; in nsim_macsec_del_secy() local 108 int idx; in nsim_macsec_add_rxsc() local 121 for (idx = 0; idx < NSIM_MACSEC_MAX_RXSC_COUNT; idx++) { in nsim_macsec_add_rxsc() 143 int idx; in nsim_macsec_upd_rxsc() local 170 int idx; in nsim_macsec_del_rxsc() local 201 int idx; in nsim_macsec_add_rxsa() local 228 int idx; in nsim_macsec_upd_rxsa() local [all …]
|
/openbmc/linux/lib/ |
H A D | find_bit.c | 32 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() 147 return FIND_NTH_BIT(addr1[idx] & addr2[idx], size, n); in __find_nth_and_bit() 154 return FIND_NTH_BIT(addr1[idx] & ~addr2[idx], size, n); in __find_nth_andnot_bit() 163 return FIND_NTH_BIT(addr1[idx] & addr2[idx] & ~addr3[idx], size, n); in __find_nth_and_andnot_bit() 171 return FIND_NEXT_BIT(addr1[idx] & addr2[idx], /* nop */, nbits, start); in _find_next_and_bit() 189 return FIND_NEXT_BIT(addr1[idx] | addr2[idx], /* nop */, nbits, start); in _find_next_or_bit() 211 val &= addr[idx]; in _find_last_bit() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | sparsebit.c | 287 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 …]
|
/openbmc/linux/kernel/sched/ |
H A D | cpudeadline.c | 39 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 …]
|
/openbmc/linux/arch/x86/um/ |
H A D | tls_32.c | 66 int idx; in get_free_idx() local 68 for (idx = 0; idx < GDT_ENTRY_TLS_ENTRIES; idx++) in get_free_idx() 92 int idx; in load_TLS() local 94 for (idx = GDT_ENTRY_TLS_MIN; idx < GDT_ENTRY_TLS_MAX; idx++) { in load_TLS() 205 if (idx < GDT_ENTRY_TLS_MIN || idx > GDT_ENTRY_TLS_MAX) in set_tls_entry() 236 int idx) in get_tls_entry() argument 240 if (idx < GDT_ENTRY_TLS_MIN || idx > GDT_ENTRY_TLS_MAX) in get_tls_entry() 274 int idx, ret; in SYSCALL_DEFINE1() local 286 if (idx < 0) in SYSCALL_DEFINE1() 287 return idx; in SYSCALL_DEFINE1() [all …]
|
/openbmc/linux/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | Core.pm | 40 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 …]
|
/openbmc/u-boot/include/ |
H A D | fm_eth.h | 61 .fm = idx, \ 69 .index = idx, \ 72 .port = FM##idx##_DTSEC##n, \ 83 .index = idx, \ 86 .port = FM##idx##_10GEC##n, \ 97 .index = idx, \ 100 .port = FM##idx##_10GEC##n, \ 110 .index = idx, \ 126 .index = idx, \ 141 .index = idx, \ [all …]
|
/openbmc/linux/include/asm-generic/ |
H A D | fixmap.h | 33 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 …]
|
/openbmc/linux/drivers/clk/uniphier/ |
H A D | clk-uniphier-sys.c | 27 #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 …]
|
/openbmc/u-boot/drivers/pinctrl/exynos/ |
H A D | pinctrl-exynos.c | 25 unsigned int idx, val; in exynos_pinctrl_setup_peri() local 27 for (idx = 0; idx < num_conf; idx++) { in exynos_pinctrl_setup_peri() 29 val &= ~(conf[idx].mask); in exynos_pinctrl_setup_peri() 30 val |= conf[idx].value; in exynos_pinctrl_setup_peri() 49 while (pin_name[idx] != '-') { in pin_to_bank_base() 50 bank[idx] = pin_name[idx]; in pin_to_bank_base() 51 idx++; in pin_to_bank_base() 53 bank[idx] = '\0'; in pin_to_bank_base() 54 *pin = pin_name[++idx] - '0'; in pin_to_bank_base() 57 for (idx = 0; idx < nr_banks; idx++) in pin_to_bank_base() [all …]
|
/openbmc/linux/mm/ |
H A D | hugetlb_cgroup.c | 37 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() 509 ->usage[idx]); in hugetlb_cgroup_read_numa_stat() 554 int idx; in hugetlb_cgroup_read_u64_max() local 598 int ret, idx; in hugetlb_cgroup_write() local [all …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | stm32f7_gpio.c | 30 int idx = 0; in stm32_offset_to_index() local 37 idx++; in stm32_offset_to_index() 50 int idx; in stm32_gpio_direction_input() local 53 if (idx < 0) in stm32_gpio_direction_input() 54 return idx; in stm32_gpio_direction_input() 71 int idx; in stm32_gpio_direction_output() local 74 if (idx < 0) in stm32_gpio_direction_output() 75 return idx; in stm32_gpio_direction_output() 91 int idx; in stm32_gpio_get_value() local 104 int idx; in stm32_gpio_set_value() local [all …]
|
/openbmc/linux/arch/x86/events/intel/ |
H A D | uncore_nhmex.c | 705 if (idx[0] != 0xff && idx[0] != __BITS_VALUE(reg1->idx, 0, 8)) in nhmex_mbox_get_constraint() 723 idx[0] = (idx[0] + 1) % 4; in nhmex_mbox_get_constraint() 842 idx = __BITS_VALUE(reg1->idx, 0, 8); in nhmex_mbox_msr_enable_event() 992 idx = reg1->idx % 6; in nhmex_rbox_get_constraint() 1009 } else if (idx == 2 || idx == 3) { in nhmex_rbox_get_constraint() 1044 if (idx != reg1->idx % 6) { in nhmex_rbox_get_constraint() 1053 if (idx != reg1->idx % 6) in nhmex_rbox_get_constraint() 1071 idx = reg1->idx % 6; in nhmex_rbox_put_constraint() 1078 if (idx == 2 || idx == 3) in nhmex_rbox_put_constraint() 1098 reg1->idx = idx; in nhmex_rbox_hw_config() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | evergreen_cs.c | 1073 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 …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | fpga_defs.h | 215 #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 …]
|