/openbmc/u-boot/arch/arm/mach-mvebu/serdes/a38x/ |
H A D | ctrl_pex.c | 25 u32 idx; in hws_pex_config() local 29 for (idx = 0; idx < count; idx++) { in hws_pex_config() 30 serdes_type = serdes_map[idx].serdes_type; in hws_pex_config() 38 (serdes_map[idx].serdes_mode == PEX_END_POINT_X4))) { in hws_pex_config() 53 for (idx = 0; idx < count; idx++) { in hws_pex_config() 54 serdes_type = serdes_map[idx].serdes_type; in hws_pex_config() 90 for (idx = 0; idx < count; idx++) { in hws_pex_config() 91 serdes_type = serdes_map[idx].serdes_type; in hws_pex_config() 96 DEBUG_INIT_FULL_D(idx, 8); in hws_pex_config() 200 for (idx = 0; idx < count; idx++) { in hws_pex_config() [all …]
|
/openbmc/linux/arch/s390/kernel/ |
H A D | perf_regs.c | 11 u64 perf_reg_value(struct pt_regs *regs, int idx) in perf_reg_value() argument 15 if (idx >= PERF_REG_S390_R0 && idx <= PERF_REG_S390_R15) in perf_reg_value() 16 return regs->gprs[idx]; in perf_reg_value() 18 if (idx >= PERF_REG_S390_FP0 && idx <= PERF_REG_S390_FP15) { in perf_reg_value() 22 idx -= PERF_REG_S390_FP0; in perf_reg_value() 23 fp = MACHINE_HAS_VX ? *(freg_t *)(current->thread.fpu.vxrs + idx) in perf_reg_value() 24 : current->thread.fpu.fprs[idx]; in perf_reg_value() 28 if (idx == PERF_REG_S390_MASK) in perf_reg_value() 30 if (idx == PERF_REG_S390_PC) in perf_reg_value() 33 WARN_ON_ONCE((u32)idx >= PERF_REG_S390_MAX); in perf_reg_value()
|
/openbmc/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | chan.c | 134 hal->sub[idx].chandef = *chandef; in __rtw89_config_entity_chandef() 137 set_bit(idx, hal->entity_map); in __rtw89_config_entity_chandef() 141 enum rtw89_sub_entity_idx idx, in rtw89_config_entity_chandef() argument 167 if (cur == idx) in rtw89_config_roc_chandef() 204 u8 idx; in rtw89_entity_recalc() local 229 for (idx = 0; idx <= last; idx++) { in rtw89_entity_recalc() 337 u8 idx; in rtw89_chanctx_ops_add() local 345 cfg->idx = idx; in rtw89_chanctx_ops_add() 346 hal->sub[idx].cfg = cfg; in rtw89_chanctx_ops_add() 359 drop = cfg->idx; in rtw89_chanctx_ops_remove() [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_main.c | 233 for (idx = 0; idx < IO_RANGES; idx++) { in sparx5_create_targets() 248 begin[idx] = iomem[idx] - sparx5_main_iomap[range_id[idx]].offset; in sparx5_create_targets() 361 for (idx = 0; idx < ARRAY_SIZE(spx5_ram_cfg); idx++) { in sparx5_init_ram() 528 for (idx = 0; idx < 3; idx++) in sparx5_init_coreclock() 588 for (idx = 0; idx < SPX5_PORTS; idx++) in sparx5_board_init() 604 for (idx = 0; idx < 3; idx++) { in sparx5_start() 605 spx5_wr(idx, sparx5, ANA_AC_OWN_UPSID(idx)); in sparx5_start() 608 spx5_wr(idx, sparx5, REW_OWN_UPSID(idx)); in sparx5_start() 612 for (idx = SPX5_PORTS; idx < SPX5_PORTS_ALL; idx++) in sparx5_start() 628 for (idx = SPX5_PORT_CPU_0; idx <= SPX5_PORT_CPU_1; idx++) in sparx5_start() [all …]
|
H A D | sparx5_vcap_impl.c | 752 for (idx = 0; idx < size; ++idx) in sparx5_vcap_is_known_etype() 933 for (idx = 0; idx < count; ++idx) { in sparx5_vcap_is0_cache_write() 942 for (idx = 0; idx < count; ++idx) in sparx5_vcap_is0_cache_write() 974 for (idx = 0; idx < count; ++idx) { in sparx5_vcap_is2_cache_write() 983 for (idx = 0; idx < count; ++idx) in sparx5_vcap_is2_cache_write() 1043 for (idx = 0; idx < count; ++idx) in sparx5_vcap_es0_cache_write() 1084 for (idx = 0; idx < count; ++idx) in sparx5_vcap_es2_cache_write() 1154 for (idx = 0; idx < count; ++idx) in sparx5_vcap_is0_cache_read() 1189 for (idx = 0; idx < count; ++idx) in sparx5_vcap_is2_cache_read() 1244 for (idx = 0; idx < count; ++idx) in sparx5_vcap_es0_cache_read() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gf100.c | 133 read_clk(struct gf100_clk *clk, int idx) in read_clk() argument 140 if (ssel & (1 << idx)) { in read_clk() 141 if (idx < 7) in read_clk() 243 sclk = read_vco(clk, 0x137160 + (idx * 4)); in calc_src() 244 if (idx < 7) in calc_src() 245 sclk = calc_div(clk, idx, sclk, freq, ddiv); in calc_src() 291 if (idx <= 7) in calc_clk() 317 info->ssel = (1 << idx); in calc_clk() 348 if (idx < 7 && !info->ssel) { in gf100_clk_prog_0() 370 const u32 addr = 0x137000 + (idx * 0x20); in gf100_clk_prog_2() [all …]
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | perf_regs.c | 12 static u64 perf_ext_regs_value(int idx) in perf_ext_regs_value() argument 14 switch (idx) { in perf_ext_regs_value() 30 u64 perf_reg_value(struct pt_regs *regs, int idx) in perf_reg_value() argument 58 if ((u32)idx == PERF_REG_ARM64_SP) in perf_reg_value() 60 if ((u32)idx == PERF_REG_ARM64_LR) in perf_reg_value() 62 if (idx == 15) in perf_reg_value() 66 if ((u32)idx == PERF_REG_ARM64_SP) in perf_reg_value() 69 if ((u32)idx == PERF_REG_ARM64_PC) in perf_reg_value() 72 if ((u32)idx >= PERF_REG_ARM64_MAX) in perf_reg_value() 73 return perf_ext_regs_value(idx); in perf_reg_value() [all …]
|
/openbmc/qemu/trace/ |
H A D | simple.c | 86 if (idx >= TRACE_BUF_LEN) { in clear_buffer_range() 87 idx = idx % TRACE_BUF_LEN; in clear_buffer_range() 89 trace_buf[idx++] = 0; in clear_buffer_range() 164 unsigned int idx = 0; in writeout_thread() local 231 idx = old_idx % TRACE_BUF_LEN; in trace_record_start() 233 rec_off = idx; in trace_record_start() 239 rec->tbuf_idx = idx; in trace_record_start() 249 if (idx >= TRACE_BUF_LEN) { in read_from_buffer() 250 idx = idx % TRACE_BUF_LEN; in read_from_buffer() 261 if (idx >= TRACE_BUF_LEN) { in write_to_buffer() [all …]
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-bcm7120-l2.c | 60 unsigned int idx; in bcm7120_l2_intc_irq_handle() local 64 for (idx = 0; idx < b->n_words; idx++) { in bcm7120_l2_intc_irq_handle() 65 int base = idx * IRQS_PER_WORD; in bcm7120_l2_intc_irq_handle() 112 unsigned int idx; in bcm7120_l2_intc_init_one() local 129 for (idx = 0; idx < data->n_words; idx++) { in bcm7120_l2_intc_init_one() 137 valid_mask[idx] |= l1_data->irq_map_mask[idx]; in bcm7120_l2_intc_init_one() 227 unsigned int idx, irq, flags; in bcm7120_l2_intc_probe() local 289 for (idx = 0; idx < data->n_words; idx++) { in bcm7120_l2_intc_probe() 290 irq = idx * IRQS_PER_WORD; in bcm7120_l2_intc_probe() 337 for (idx = 0; idx < MAX_MAPPINGS; idx++) { in bcm7120_l2_intc_probe() [all …]
|
/openbmc/u-boot/arch/powerpc/cpu/mpc8xxx/ |
H A D | law.c | 38 in_be32(LAWBARL_ADDR(idx)); in get_law_base_addr() 63 in_be32(LAWAR_ADDR(idx)); in set_law() 66 void disable_law(u8 idx) in disable_law() argument 71 set_law_base_addr(idx, 0); in disable_law() 74 in_be32(LAWAR_ADDR(idx)); in disable_law() 102 if (idx >= FSL_HW_NUM_LAWS) in set_next_law() 105 set_law(idx, addr, sz, id); in set_next_law() 107 return idx; in set_next_law() 114 u32 idx; in set_last_law() local 123 if (idx >= FSL_HW_NUM_LAWS) in set_last_law() [all …]
|
/openbmc/qemu/target/i386/whpx/ |
H A D | whpx-all.c | 388 int idx; in whpx_set_registers() local 411 idx = 0; in whpx_set_registers() 415 for (idx = 0; idx < CPU_NB_REGS; idx += 1) { in whpx_set_registers() 442 idx += 1; in whpx_set_registers() 447 idx += 1; in whpx_set_registers() 499 idx += 1; in whpx_set_registers() 506 idx += 1; in whpx_set_registers() 606 int idx; in whpx_get_registers() local 638 idx = 0; in whpx_get_registers() 642 for (idx = 0; idx < CPU_NB_REGS; idx += 1) { in whpx_get_registers() [all …]
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | perf_event.c | 165 switch (idx) { in loongarch_pmu_read_counter() 188 switch (idx) { in loongarch_pmu_write_counter() 271 WARN_ON(idx < 0 || idx >= loongarch_pmu.num_counters); in loongarch_pmu_enable_event() 290 WARN_ON(idx < 0 || idx >= loongarch_pmu.num_counters); in loongarch_pmu_disable_event() 293 cpuc->saved_ctrl[idx] = loongarch_pmu_read_control(idx) & in loongarch_pmu_disable_event() 295 loongarch_pmu_write_control(idx, cpuc->saved_ctrl[idx]); in loongarch_pmu_disable_event() 337 int idx) in loongarch_pmu_event_update() argument 396 err = idx; in loongarch_pmu_add() 404 event->hw.idx = idx; in loongarch_pmu_add() 424 int idx = hwc->idx; in loongarch_pmu_del() local [all …]
|
/openbmc/linux/drivers/infiniband/hw/irdma/ |
H A D | uda.c | 90 u8 idx = 0; /* index in the array */ in irdma_create_mg_ctx() local 95 for (idx = 0; idx < IRDMA_MAX_MGS_PER_CTX; idx++) { in irdma_create_mg_ctx() 196 u32 idx; in irdma_sc_add_mcast_grp() local 201 for (idx = 0; idx < IRDMA_MAX_MGS_PER_CTX; idx++) { in irdma_sc_add_mcast_grp() 204 ctx->mg_ctx_info[idx].use_cnt++; in irdma_sc_add_mcast_grp() 211 free_entry_idx = idx; in irdma_sc_add_mcast_grp() 237 u32 idx; in irdma_sc_del_mcast_grp() local 240 for (idx = 0; idx < IRDMA_MAX_MGS_PER_CTX; idx++) { in irdma_sc_del_mcast_grp() 245 ctx->mg_ctx_info[idx].use_cnt--; in irdma_sc_del_mcast_grp() 251 if (idx != ctx->no_of_mgs && in irdma_sc_del_mcast_grp() [all …]
|
/openbmc/linux/drivers/perf/ |
H A D | qcom_l2_pmu.c | 301 u32 idx = hwc->idx; in l2_cache_event_update() local 322 u32 idx = hwc->idx; in l2_cache_cluster_set_period() local 343 int idx; in l2_cache_get_event_idx() local 371 return idx; in l2_cache_get_event_idx() 378 int idx = hwc->idx; in l2_cache_clear_event_idx() local 390 int idx; in l2_cache_handle_irq() local 545 int idx = hwc->idx; in l2_cache_event_start() local 575 int idx = hwc->idx; in l2_cache_event_stop() local 591 int idx; in l2_cache_event_add() local 601 hwc->idx = idx; in l2_cache_event_add() [all …]
|
H A D | qcom_l3_pmu.c | 196 int idx = event->hw.idx; in qcom_l3_cache__64bit_counter_start() local 228 int idx = event->hw.idx; in qcom_l3_cache__64bit_counter_stop() local 242 int idx = event->hw.idx; in qcom_l3_cache__64bit_counter_update() local 277 int idx = event->hw.idx; in qcom_l3_cache__32bit_counter_start() local 303 int idx = event->hw.idx; in qcom_l3_cache__32bit_counter_stop() local 319 int idx = event->hw.idx; in qcom_l3_cache__32bit_counter_update() local 393 int idx; in qcom_l3_cache__handle_irq() local 506 hwc->idx = -1; in qcom_l3_cache__event_init() 552 int idx; in qcom_l3_cache__event_add() local 558 if (idx < 0) in qcom_l3_cache__event_add() [all …]
|
/openbmc/linux/arch/sh/kernel/cpu/sh4a/ |
H A D | ubc.c | 15 #define UBC_CBR(idx) (0xff200000 + (0x20 * idx)) argument 16 #define UBC_CRR(idx) (0xff200004 + (0x20 * idx)) argument 17 #define UBC_CAR(idx) (0xff200008 + (0x20 * idx)) argument 18 #define UBC_CAMR(idx) (0xff20000c + (0x20 * idx)) argument 32 static void sh4a_ubc_enable(struct arch_hw_breakpoint *info, int idx) in sh4a_ubc_enable() argument 34 __raw_writel(UBC_CBR_CE | info->len | info->type, UBC_CBR(idx)); in sh4a_ubc_enable() 35 __raw_writel(info->address, UBC_CAR(idx)); in sh4a_ubc_enable() 38 static void sh4a_ubc_disable(struct arch_hw_breakpoint *info, int idx) in sh4a_ubc_disable() argument 40 __raw_writel(0, UBC_CBR(idx)); in sh4a_ubc_disable() 41 __raw_writel(0, UBC_CAR(idx)); in sh4a_ubc_disable()
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | cm2xxx_3xxx.h | 50 static inline u32 omap2_cm_read_mod_reg(s16 module, u16 idx) in omap2_cm_read_mod_reg() argument 52 return readl_relaxed(cm_base.va + module + idx); in omap2_cm_read_mod_reg() 55 static inline void omap2_cm_write_mod_reg(u32 val, s16 module, u16 idx) in omap2_cm_write_mod_reg() argument 57 writel_relaxed(val, cm_base.va + module + idx); in omap2_cm_write_mod_reg() 62 s16 idx) in omap2_cm_rmw_mod_reg_bits() argument 66 v = omap2_cm_read_mod_reg(module, idx); in omap2_cm_rmw_mod_reg_bits() 69 omap2_cm_write_mod_reg(v, module, idx); in omap2_cm_rmw_mod_reg_bits() 79 v = omap2_cm_read_mod_reg(domain, idx); in omap2_cm_read_mod_bits_shift() 86 static inline u32 omap2_cm_set_mod_reg_bits(u32 bits, s16 module, s16 idx) in omap2_cm_set_mod_reg_bits() argument 88 return omap2_cm_rmw_mod_reg_bits(bits, bits, module, idx); in omap2_cm_set_mod_reg_bits() [all …]
|
/openbmc/qemu/hw/pci-host/ |
H A D | ppce500.c | 134 int idx; in pci_reg_read4() local 143 idx = (addr >> 5) & 0x7; in pci_reg_read4() 165 idx = ((addr >> 5) & 0x3) - 1; in pci_reg_read4() 267 int idx; in pci_reg_write4() local 279 idx = (addr >> 5) & 0x7; in pci_reg_write4() 283 e500_update_pow(pci, idx); in pci_reg_write4() 287 e500_update_pow(pci, idx); in pci_reg_write4() 291 e500_update_pow(pci, idx); in pci_reg_write4() 295 e500_update_pow(pci, idx); in pci_reg_write4() 305 idx = ((addr >> 5) & 0x3) - 1; in pci_reg_write4() [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/mmu/ |
H A D | isp_mmu.c | 64 return *(pt_virt + idx); in atomisp_get_pte() 71 *(pt_virt + idx) = pte; in atomisp_set_pte() 204 unsigned int idx; in mmu_l2_map() local 215 idx = ISP_PTR_TO_L2_IDX(ptr); in mmu_l2_map() 250 unsigned int idx; in mmu_l1_map() local 262 idx = ISP_PTR_TO_L1_IDX(ptr); in mmu_l1_map() 368 unsigned int idx; in mmu_l2_unmap() local 378 idx = ISP_PTR_TO_L2_IDX(ptr); in mmu_l2_unmap() 406 unsigned int idx; in mmu_l1_unmap() local 541 unsigned int idx; in isp_mmu_exit() local [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
H A D | fw.c | 44 u8 idx; in _rtl8723e_fill_h2c_command() local 149 for (idx = 0; idx < 4; idx++) { in _rtl8723e_fill_h2c_command() 151 boxcontent[idx]); in _rtl8723e_fill_h2c_command() 159 for (idx = 0; idx < 4; idx++) { in _rtl8723e_fill_h2c_command() 161 boxcontent[idx]); in _rtl8723e_fill_h2c_command() 169 for (idx = 0; idx < 4; idx++) { in _rtl8723e_fill_h2c_command() 171 boxcontent[idx]); in _rtl8723e_fill_h2c_command() 181 for (idx = 0; idx < 2; idx++) { in _rtl8723e_fill_h2c_command() 186 for (idx = 0; idx < 4; idx++) { in _rtl8723e_fill_h2c_command() 198 for (idx = 0; idx < 2; idx++) { in _rtl8723e_fill_h2c_command() [all …]
|
/openbmc/linux/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-ioread.c | 41 unsigned int idx; in pvr2_ioread_init() local 46 for (idx = 0; idx < BUFFER_COUNT; idx++) { in pvr2_ioread_init() 51 if (idx < BUFFER_COUNT) { in pvr2_ioread_init() 53 for (idx = 0; idx < BUFFER_COUNT; idx++) { in pvr2_ioread_init() 64 unsigned int idx; in pvr2_ioread_done() local 67 for (idx = 0; idx < BUFFER_COUNT; idx++) { in pvr2_ioread_done() 189 unsigned int idx; in pvr2_ioread_setup() local 215 for (idx = 0; idx < BUFFER_COUNT; idx++) { in pvr2_ioread_setup() 295 unsigned int idx; in pvr2_ioread_filter() local 310 for (idx = cp->c_data_offs; idx < cp->c_data_len; idx++) { in pvr2_ioread_filter() [all …]
|
/openbmc/qemu/target/openrisc/ |
H A D | sys_helper.c | 48 int idx; in HELPER() local 96 idx = (spr - 1024); in HELPER() 97 env->shadow_gpr[idx / 32][idx % 32] = rb; in HELPER() 101 idx = spr - TO_SPR(1, 512); in HELPER() 102 mr = env->tlb.dtlb[idx].mr; in HELPER() 109 env->tlb.dtlb[idx].mr = rb; in HELPER() 112 idx = spr - TO_SPR(1, 640); in HELPER() 113 env->tlb.dtlb[idx].tr = rb; in HELPER() 223 int idx; in HELPER() local 295 idx = (spr - 1024); in HELPER() [all …]
|
/openbmc/linux/arch/sh/kernel/cpu/sh3/ |
H A D | clock-sh7709.c | 25 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); in master_clk_init() local 27 clk->rate *= pfc_divisors[idx]; in master_clk_init() 37 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); in module_clk_recalc() local 39 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc() 49 int idx = (frqcr & 0x0080) ? in bus_clk_recalc() local 52 return clk->parent->rate * stc_multipliers[idx]; in bus_clk_recalc() 62 int idx = ((frqcr & 0x4000) >> 12) | ((frqcr & 0x000c) >> 2); in cpu_clk_recalc() local 64 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc() 78 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 80 if (idx < ARRAY_SIZE(sh7709_clk_ops)) in arch_init_clk_ops() [all …]
|
H A D | clock-sh3.c | 29 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); in master_clk_init() local 31 clk->rate *= pfc_divisors[idx]; in master_clk_init() 41 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); in module_clk_recalc() local 43 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc() 53 int idx = ((frqcr & 0x8000) >> 13) | ((frqcr & 0x0030) >> 4); in bus_clk_recalc() local 55 return clk->parent->rate / stc_multipliers[idx]; in bus_clk_recalc() 65 int idx = ((frqcr & 0x4000) >> 12) | ((frqcr & 0x000c) >> 2); in cpu_clk_recalc() local 67 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc() 81 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 83 if (idx < ARRAY_SIZE(sh3_clk_ops)) in arch_init_clk_ops() [all …]
|
H A D | clock-sh7706.c | 25 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); in master_clk_init() local 27 clk->rate *= pfc_divisors[idx]; in master_clk_init() 37 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); in module_clk_recalc() local 39 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc() 49 int idx = ((frqcr & 0x8000) >> 13) | ((frqcr & 0x0030) >> 4); in bus_clk_recalc() local 51 return clk->parent->rate / stc_multipliers[idx]; in bus_clk_recalc() 61 int idx = ((frqcr & 0x4000) >> 12) | ((frqcr & 0x000c) >> 2); in cpu_clk_recalc() local 63 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc() 77 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 79 if (idx < ARRAY_SIZE(sh7706_clk_ops)) in arch_init_clk_ops() [all …]
|