/openbmc/openbmc/poky/bitbake/lib/bb/ |
H A D | remotedata.py | 40 idx = self.nextindex 41 self.datastores[idx] = d 43 self.locked.append(idx) 45 return idx 54 idx = key 57 idx = self.store(d, locked) 58 return idx 60 def release(self, idx): argument 62 if idx in self.locked: 63 raise Exception('Tried to release locked datastore %d' % idx) [all …]
|
/openbmc/linux/drivers/perf/ |
H A D | arm_smmuv3_pmu.c | 259 u32 idx = hwc->idx; in smmu_pmu_event_update() local 276 u32 idx = hwc->idx; in smmu_pmu_set_period() local 360 int idx, err; in smmu_pmu_get_event_idx() local 374 return idx; in smmu_pmu_get_event_idx() 460 int idx = hwc->idx; in smmu_pmu_event_start() local 473 int idx = hwc->idx; in smmu_pmu_event_stop() local 487 int idx; in smmu_pmu_event_add() local 491 if (idx < 0) in smmu_pmu_event_add() 492 return idx; in smmu_pmu_event_add() 494 hwc->idx = idx; in smmu_pmu_event_add() [all …]
|
H A D | arm_dsu_pmu.c | 253 int idx = event->hw.idx; in dsu_pmu_read_counter() local 279 int idx = event->hw.idx; in dsu_pmu_write_counter() local 302 int idx; in dsu_pmu_get_event_idx() local 317 return idx; in dsu_pmu_get_event_idx() 335 int idx = event->hw.idx; in dsu_pmu_set_event() local 383 int idx = event->hw.idx; in dsu_pmu_set_event_period() local 445 int idx; in dsu_pmu_add() local 452 if (idx < 0) in dsu_pmu_add() 453 return idx; in dsu_pmu_add() 455 hwc->idx = idx; in dsu_pmu_add() [all …]
|
/openbmc/linux/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-std.c | 109 unsigned int idx; in find_std_name() local 111 for (idx = 0; idx < arrSize; idx++) { in find_std_name() 112 p = arrPtr + idx; in find_std_name() 269 unsigned int idx; in match_std() local 270 for (idx = 0; idx < ARRAY_SIZE(generic_standards); idx++) { in match_std() 281 int idx; in pvr2_std_fill() local 359 for (idx = 0; idx < std_cnt; idx++) in pvr2_std_create_enum() 360 stddefs[idx].index = idx; in pvr2_std_create_enum() 362 idx = 0; in pvr2_std_create_enum() 368 if (pvr2_std_fill(stddefs+idx,std_mixes[idx2])) idx++; in pvr2_std_create_enum() [all …]
|
/openbmc/linux/drivers/clk/uniphier/ |
H A D | clk-uniphier-peri.c | 9 #define UNIPHIER_PERI_CLK_UART(idx, ch) \ argument 10 UNIPHIER_CLK_GATE("uart" #ch, (idx), "uart", 0x24, 19 + (ch)) 15 #define UNIPHIER_PERI_CLK_I2C(idx, ch) \ argument 16 UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c-common", 0x24, 5 + (ch)) 18 #define UNIPHIER_PERI_CLK_FI2C(idx, ch) \ argument 19 UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c", 0x24, 24 + (ch)) 21 #define UNIPHIER_PERI_CLK_SCSSI(idx, ch) \ argument 22 UNIPHIER_CLK_GATE("scssi" #ch, (idx), "spi", 0x20, 17 + (ch)) 24 #define UNIPHIER_PERI_CLK_MCSSI(idx) \ argument 25 UNIPHIER_CLK_GATE("mcssi", (idx), "spi", 0x24, 14)
|
/openbmc/linux/sound/isa/gus/ |
H A D | gus_mem_proc.c | 46 int idx; in snd_gf1_mem_proc_init() local 51 for (idx = 0; idx < 4; idx++) { in snd_gf1_mem_proc_init() 52 if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { in snd_gf1_mem_proc_init() 57 sprintf(name, "gus-ram-%i", idx); in snd_gf1_mem_proc_init() 63 priv->address = gus->gf1.mem_alloc.banks_8[idx].address; in snd_gf1_mem_proc_init() 64 priv->size = entry->size = gus->gf1.mem_alloc.banks_8[idx].size; in snd_gf1_mem_proc_init() 68 for (idx = 0; idx < 4; idx++) { in snd_gf1_mem_proc_init() 69 if (gus->gf1.rom_present & (1 << idx)) { in snd_gf1_mem_proc_init() 75 sprintf(name, "gus-rom-%i", idx); in snd_gf1_mem_proc_init() 81 priv->address = idx * 4096 * 1024; in snd_gf1_mem_proc_init()
|
/openbmc/linux/drivers/gpu/drm/i915/selftests/ |
H A D | i915_syncmap.c | 33 unsigned int idx) in __sync_print() argument 156 __func__, idx, __sync_seqno(leaf)[idx], seqno); in check_seqno() 372 for (idx = 1; idx < KSYNCMAP; idx++) { in igt_syncmap_join_below() 415 unsigned int idx; in igt_syncmap_neighbours() local 420 for (idx = 0; idx < KSYNCMAP; idx++) { in igt_syncmap_neighbours() 436 BIT(idx + 1) - 1, idx + 1); in igt_syncmap_neighbours() 468 for (idx = 0; idx < KSYNCMAP; idx++) { in igt_syncmap_compact() 469 u64 context = idx * BIT_ULL(order) + idx; in igt_syncmap_compact() 507 for (idx = 0; idx < KSYNCMAP; idx++) { in igt_syncmap_compact() 518 idx); in igt_syncmap_compact() [all …]
|
/openbmc/linux/drivers/thermal/ |
H A D | db8500_thermal.c | 81 unsigned int idx, in db8500_thermal_update_config() argument 87 th->cur_index = idx; in db8500_thermal_update_config() 101 unsigned int idx = th->cur_index; in prcmu_low_irq_handler() local 104 if (idx == 0) in prcmu_low_irq_handler() 108 if (idx == 1) { in prcmu_low_irq_handler() 115 idx -= 1; in prcmu_low_irq_handler() 129 unsigned int idx = th->cur_index; in prcmu_high_irq_handler() local 133 if (idx < num_points - 1) { in prcmu_high_irq_handler() 135 next_low = db8500_thermal_points[idx]; in prcmu_high_irq_handler() 136 idx += 1; in prcmu_high_irq_handler() [all …]
|
/openbmc/linux/drivers/w1/masters/ |
H A D | ds2482.c | 447 int idx; in ds2482_probe() local 492 for (idx = 0; idx < data->w1_count; idx++) { in ds2482_probe() 493 data->w1_ch[idx].pdev = data; in ds2482_probe() 494 data->w1_ch[idx].channel = idx; in ds2482_probe() 497 data->w1_ch[idx].w1_bm.data = &data->w1_ch[idx]; in ds2482_probe() 507 data->w1_ch[idx].pdev = NULL; in ds2482_probe() 515 for (idx = 0; idx < data->w1_count; idx++) { in ds2482_probe() 516 if (data->w1_ch[idx].pdev != NULL) in ds2482_probe() 528 int idx; in ds2482_remove() local 531 for (idx = 0; idx < data->w1_count; idx++) { in ds2482_remove() [all …]
|
/openbmc/linux/arch/sh/kernel/ |
H A D | perf_event.c | 203 int idx = hwc->idx; in sh_pmu_stop() local 206 sh_pmu->disable(hwc, idx); in sh_pmu_stop() 207 cpuc->events[idx] = NULL; in sh_pmu_stop() 221 int idx = hwc->idx; in sh_pmu_start() local 223 if (WARN_ON_ONCE(idx == -1)) in sh_pmu_start() 229 cpuc->events[idx] = event; in sh_pmu_start() 231 sh_pmu->enable(hwc, idx); in sh_pmu_start() 248 int idx = hwc->idx; in sh_pmu_add() local 255 if (idx == sh_pmu->num_events) in sh_pmu_add() 259 hwc->idx = idx; in sh_pmu_add() [all …]
|
/openbmc/linux/drivers/reset/hisilicon/ |
H A D | hi6220_reset.c | 44 unsigned long idx) in hi6220_peripheral_assert() argument 48 u32 bank = idx >> 8; in hi6220_peripheral_assert() 49 u32 offset = idx & 0xff; in hi6220_peripheral_assert() 56 unsigned long idx) in hi6220_peripheral_deassert() argument 60 u32 bank = idx >> 8; in hi6220_peripheral_deassert() 61 u32 offset = idx & 0xff; in hi6220_peripheral_deassert() 73 unsigned long idx) in hi6220_media_assert() argument 78 return regmap_write(regmap, SC_MEDIA_RSTEN, BIT(idx)); in hi6220_media_assert() 82 unsigned long idx) in hi6220_media_deassert() argument 106 unsigned long idx) in hi6220_ao_assert() argument [all …]
|
/openbmc/linux/include/linux/ |
H A D | srcu.h | 74 __srcu_read_unlock(ssp, idx); in __srcu_read_unlock_nmisafe() 285 WARN_ON_ONCE(idx & ~0x1); in srcu_read_unlock() 288 __srcu_read_unlock(ssp, idx); in srcu_read_unlock() 301 WARN_ON_ONCE(idx & ~0x1); in srcu_read_unlock_nmisafe() 304 __srcu_read_unlock_nmisafe(ssp, idx); in srcu_read_unlock_nmisafe() 312 __srcu_read_unlock(ssp, idx); in srcu_read_unlock_notrace() 326 WARN_ON_ONCE(idx & ~0x1); in srcu_up_read() 329 __srcu_read_unlock(ssp, idx); in srcu_up_read() 347 _T->idx = srcu_read_lock(_T->lock), 348 srcu_read_unlock(_T->lock, _T->idx), [all …]
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | msa.h | 19 extern void read_msa_wr_b(unsigned idx, union fpureg *to); 20 extern void read_msa_wr_h(unsigned idx, union fpureg *to); 21 extern void read_msa_wr_w(unsigned idx, union fpureg *to); 38 read_msa_wr_b(idx, to); in read_msa_wr() 42 read_msa_wr_h(idx, to); in read_msa_wr() 46 read_msa_wr_w(idx, to); in read_msa_wr() 50 read_msa_wr_d(idx, to); in read_msa_wr() 77 write_msa_wr_b(idx, from); in write_msa_wr() 81 write_msa_wr_h(idx, from); in write_msa_wr() 85 write_msa_wr_w(idx, from); in write_msa_wr() [all …]
|
/openbmc/linux/drivers/mailbox/ |
H A D | rockchip-mailbox.c | 35 int idx; member 68 chans->idx, msg->cmd); in rockchip_mbox_send_data() 109 int idx; in rockchip_mbox_irq() local 113 for (idx = 0; idx < mb->mbox.num_chans; idx++) { in rockchip_mbox_irq() 114 if ((status & (1 << idx)) && (irq == mb->chans[idx].irq)) { in rockchip_mbox_irq() 116 writel_relaxed(1 << idx, in rockchip_mbox_irq() 127 int idx; in rockchip_mbox_isr() local 131 for (idx = 0; idx < mb->mbox.num_chans; idx++) { in rockchip_mbox_isr() 135 msg = mb->chans[idx].msg; in rockchip_mbox_isr() 146 idx, msg->cmd); in rockchip_mbox_isr() [all …]
|
/openbmc/linux/sound/soc/intel/avs/ |
H A D | utils.c | 49 int idx; in avs_get_module_entry() local 54 if (idx >= 0) in avs_get_module_entry() 58 return (idx < 0) ? idx : 0; in avs_get_module_entry() 63 int idx; in avs_get_module_id_entry() local 68 if (idx >= 0) in avs_get_module_id_entry() 72 return (idx < 0) ? idx : 0; in avs_get_module_id_entry() 87 int idx; in avs_is_module_ida_empty() local 92 if (idx >= 0) in avs_is_module_ida_empty() 196 int ret, idx, max_id; in avs_module_id_alloc() local 201 if (idx == -ENOENT) { in avs_module_id_alloc() [all …]
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | perf_event.c | 133 int idx; member 199 event[0]->hw.idx = idx0; in ev67_check_constraints() 202 event[1]->hw.idx = idx0 ^ 1; in ev67_check_constraints() 237 val |= (1<<idx); in alpha_write_pmc() 278 left = alpha_pmu->pmc_left[idx]; in alpha_perf_event_set_period() 414 int idx = hwc->idx; in maybe_change_configuration() local 418 cpuc->current_idx[j] = idx; in maybe_change_configuration() 664 hwc->idx = PMC_NO_INDEX; in __hw_perf_event_init() 807 int idx, j; in alpha_perf_event_irq_handler() local 828 idx = la_ptr; in alpha_perf_event_irq_handler() [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
H A D | irq.c | 173 unsigned int idx; in irq_get_channel_id() local 180 for (idx = 0; idx < IRQ_N_CHANNEL[ID]; idx++) { in irq_get_channel_id() 181 if (irq_status & (1U << idx)) in irq_get_channel_id() 184 if (idx == IRQ_N_CHANNEL[ID]) in irq_get_channel_id() 188 if (irq_status != (1U << idx)) in irq_get_channel_id() 197 *irq_id = (unsigned int)idx; in irq_get_channel_id() 343 unsigned int idx; in virq_get_channel_id() local 350 for (idx = 0; idx < IRQ_N_CHANNEL[IRQ0_ID]; idx++) { in virq_get_channel_id() 376 for (idx = 0; idx < IRQ_N_CHANNEL[ID]; idx++) { in virq_get_channel_id() 401 idx += IRQ_N_ID_OFFSET[ID]; in virq_get_channel_id() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_cx0_phy_regs.h | 144 #define PHY_C10_VDR_PLL(idx) (0xC00 + (idx)) argument 150 #define PHY_C10_VDR_CMN(idx) (0xC20 + (idx)) argument 155 #define PHY_C10_VDR_TX(idx) (0xC30 + (idx)) argument 159 #define PHY_C10_VDR_CONTROL(idx) (0xC70 + (idx) - 1) argument 197 #define PHY_C20_A_TX_CNTX_CFG(idx) (0xCF2E - (idx)) argument 198 #define PHY_C20_B_TX_CNTX_CFG(idx) (0xCF2A - (idx)) argument 200 #define PHY_C20_A_CMN_CNTX_CFG(idx) (0xCDAA - (idx)) argument 201 #define PHY_C20_B_CMN_CNTX_CFG(idx) (0xCDA5 - (idx)) argument 202 #define PHY_C20_A_MPLLA_CNTX_CFG(idx) (0xCCF0 - (idx)) argument 203 #define PHY_C20_B_MPLLA_CNTX_CFG(idx) (0xCCE5 - (idx)) argument [all …]
|
/openbmc/linux/drivers/net/netdevsim/ |
H A D | bpf.c | 377 idx = 0; in nsim_map_get_next_key() 379 idx++; in nsim_map_get_next_key() 381 for (; idx < ARRAY_SIZE(nmap->entry); idx++) { in nsim_map_get_next_key() 400 int idx; in nsim_map_lookup_elem() local 405 if (idx >= 0) in nsim_map_lookup_elem() 410 return idx < 0 ? idx : 0; in nsim_map_lookup_elem() 424 err = idx; in nsim_map_update_elem() 433 for (idx = 0; idx < ARRAY_SIZE(nmap->entry); idx++) in nsim_map_update_elem() 457 int idx; in nsim_map_delete_elem() local 468 memset(&nmap->entry[idx], 0, sizeof(nmap->entry[idx])); in nsim_map_delete_elem() [all …]
|
/openbmc/linux/drivers/phy/microchip/ |
H A D | lan966x_serdes.c | 30 .idx = _idx, \ 60 u8 idx; member 133 u8 idx; member 182 u32 idx) in lan966x_sd6g40_reg_cfg() argument 238 idx, value); in lan966x_sd6g40_reg_cfg() 253 idx, value); in lan966x_sd6g40_reg_cfg() 271 idx, value); in lan966x_sd6g40_reg_cfg() 281 idx, value); in lan966x_sd6g40_reg_cfg() 480 if (macro->idx != lan966x_serdes_muxes[i].idx || in serdes_set_mode() 533 if (idx != macro->idx) in serdes_simple_xlate() [all …]
|
/openbmc/linux/tools/lib/perf/include/perf/ |
H A D | cpumap.h | 34 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); 49 #define perf_cpu_map__for_each_cpu(cpu, idx, cpus) \ argument 50 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \ 51 (idx) < perf_cpu_map__nr(cpus); \ 52 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx)) 54 #define perf_cpu_map__for_each_idx(idx, cpus) \ argument 55 for ((idx) = 0; (idx) < perf_cpu_map__nr(cpus); (idx)++)
|
/openbmc/linux/security/selinux/ |
H A D | ibpkey.c | 72 unsigned int idx; in sel_ib_pkey_find() local 75 idx = sel_ib_pkey_hashfn(pkey_num); in sel_ib_pkey_find() 95 unsigned int idx; in sel_ib_pkey_insert() local 100 idx = sel_ib_pkey_hashfn(pkey->psec.pkey); in sel_ib_pkey_insert() 101 list_add_rcu(&pkey->list, &sel_ib_pkey_hash[idx].list); in sel_ib_pkey_insert() 107 list_tail_rcu(&sel_ib_pkey_hash[idx].list), in sel_ib_pkey_insert() 113 sel_ib_pkey_hash[idx].size++; in sel_ib_pkey_insert() 206 unsigned int idx; in sel_ib_pkey_flush() local 211 for (idx = 0; idx < SEL_PKEY_HASH_SIZE; idx++) { in sel_ib_pkey_flush() 213 &sel_ib_pkey_hash[idx].list, list) { in sel_ib_pkey_flush() [all …]
|
H A D | netport.c | 85 unsigned int idx; in sel_netport_find() local 88 idx = sel_netport_hashfn(pnum); in sel_netport_find() 106 unsigned int idx; in sel_netport_insert() local 110 idx = sel_netport_hashfn(port->psec.port); in sel_netport_insert() 111 list_add_rcu(&port->list, &sel_netport_hash[idx].list); in sel_netport_insert() 116 list_tail_rcu(&sel_netport_hash[idx].list), in sel_netport_insert() 122 sel_netport_hash[idx].size++; in sel_netport_insert() 208 unsigned int idx; in sel_netport_flush() local 212 for (idx = 0; idx < SEL_NETPORT_HASH_SIZE; idx++) { in sel_netport_flush() 214 &sel_netport_hash[idx].list, list) { in sel_netport_flush() [all …]
|
/openbmc/linux/arch/mips/include/asm/sibyte/ |
H A D | bcm1480_regs.h | 540 #define A_BCM1480_HR_REGISTER(idx, reg) (A_BCM1480_HR_BASE(idx) + (reg)) argument 550 #define R_BCM1480_HR_RULE_OP(idx) (BCM1480_HR_OP_OFFSET + ((idx)*BCM1480_HR_RULE_SPACING)) argument 563 #define R_BCM1480_HR_PATH(idx) (BCM1480_HR_PATH_OFFSET + ((idx)*BCM1480_HR_PATH_SPACING)) argument 589 #define A_BCM1480_PMI_LCL_REGISTER(idx, reg) (A_BCM1480_PMI_LCL_BASE(idx) + (reg)) argument 591 #define A_BCM1480_PMO_LCL_REGISTER(idx, reg) (A_BCM1480_PMO_LCL_BASE(idx) + (reg)) argument 711 #define A_BCM1480_HSP_REGISTER(idx, reg) (A_BCM1480_HSP_BASE(idx) + (reg)) argument 742 #define R_BCM1480_HSP_RX_PKT_RAMALLOC(idx) (R_BCM1480_HSP_RX_PKT_RAMALLOC_0 + 8*(idx)) argument 760 #define R_BCM1480_HSP_RX_SPI_WATERMARK(idx) (R_BCM1480_HSP_RX_SPI_WATERMARK_0 + 8*(idx)) argument 782 #define R_BCM1480_HSP_TX_PKT_RAMALLOC(idx) (R_BCM1480_HSP_TX_PKT_RAMALLOC_0 + 8*(idx)) argument 794 #define R_BCM1480_HSP_TX_PKT_RXPHITCNT(idx) (R_BCM1480_HSP_TX_PKT_RXPHITCNT_0 + 8*(idx)) argument [all …]
|
/openbmc/linux/tools/lib/perf/ |
H A D | evsel.c | 23 int idx) in perf_evsel__init() argument 27 evsel->idx = idx; in perf_evsel__init() 57 int idx, thread; in perf_evsel__alloc_fd() local 59 for (idx = 0; idx < ncpus; idx++) { in perf_evsel__alloc_fd() 196 for (int idx = 0; idx < xyarray__max_x(evsel->fd); idx++) in perf_evsel__close_fd() local 225 int idx, thread; in perf_evsel__munmap() local 230 for (idx = 0; idx < xyarray__max_x(evsel->fd); idx++) { in perf_evsel__munmap() 247 int ret, idx, thread; in perf_evsel__mmap() local 259 for (idx = 0; idx < xyarray__max_x(evsel->fd); idx++) { in perf_evsel__mmap() 328 int idx = 1; in perf_evsel__read_group() local [all …]
|