Home
last modified time | relevance | path

Searched refs:idx (Results 26 – 50 of 3518) sorted by relevance

12345678910>>...141

/openbmc/linux/tools/lib/
H A Dfind_bit.c29 unsigned long idx, val, sz = (size); \
31 for (idx = 0; idx * BITS_PER_LONG < sz; idx++) { \
34 sz = min(idx * BITS_PER_LONG + __ffs(MUNGE(val)), sz); \
57 idx = __start / BITS_PER_LONG; \
60 if ((idx + 1) * BITS_PER_LONG >= sz) \
62 idx++; \
65 sz = min(idx * BITS_PER_LONG + __ffs(MUNGE(tmp)), sz); \
76 return FIND_FIRST_BIT(addr[idx], /* nop */, size); in _find_first_bit()
88 return FIND_FIRST_BIT(addr1[idx] & addr2[idx], /* nop */, size); in _find_first_and_bit()
98 return FIND_FIRST_BIT(~addr[idx], /* nop */, size); in _find_first_zero_bit()
[all …]
/openbmc/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 …]
/openbmc/linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DCore.py35 for idx in sorted(flag_fields[event_name][field_name]['values']):
36 if not value and not idx:
39 if idx and (value & idx) == idx:
44 value &= ~idx
53 if not value and not idx:
56 if (value == idx):
73 for idx in trace_flags:
74 if not value and not idx:
78 if idx and (value & idx) == idx:
81 string += trace_flags[idx]
[all …]
/openbmc/linux/include/trace/events/
H A Dcpuhp.h14 int idx,
17 TP_ARGS(cpu, target, idx, fun),
22 __field( int, idx )
29 __entry->idx = idx;
41 int idx,
50 __field( int, idx )
57 __entry->idx = idx;
69 int idx,
72 TP_ARGS(cpu, state, idx, ret),
77 __field( int, idx )
[all …]
/openbmc/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 …]
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dhyperv_features.c25 uint32_t idx; member
47 GUEST_ASSERT(msr->idx); in guest_msr()
260 msr->idx = HV_X64_MSR_RESET; in guest_test_msrs_access()
266 msr->idx = HV_X64_MSR_RESET; in guest_test_msrs_access()
271 msr->idx = HV_X64_MSR_RESET; in guest_test_msrs_access()
302 msr->idx = HV_X64_MSR_EOM; in guest_test_msrs_access()
311 msr->idx = HV_X64_MSR_EOM; in guest_test_msrs_access()
317 msr->idx = HV_X64_MSR_EOM; in guest_test_msrs_access()
322 msr->idx = HV_X64_MSR_EOM; in guest_test_msrs_access()
361 msr->idx = HV_X64_MSR_EOI; in guest_test_msrs_access()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt7601u/
H A Dmain.c57 mvif->idx = idx; in mt7601u_add_interface()
193 if (!idx) in mt76_wcid_alloc()
196 idx--; in mt76_wcid_alloc()
201 idx = i * BITS_PER_LONG + idx; in mt76_wcid_alloc()
205 return idx; in mt76_wcid_alloc()
216 int idx = 0; in mt7601u_sta_add() local
226 msta->wcid.idx = idx; in mt7601u_sta_add()
228 mt7601u_mac_wcid_setup(dev, idx, mvif->idx, sta->addr); in mt7601u_sta_add()
245 int idx = msta->wcid.idx; in mt7601u_sta_remove() local
249 mt76_set(dev, MT_WCID_DROP(idx), MT_WCID_DROP_MASK(idx)); in mt7601u_sta_remove()
[all …]
/openbmc/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-encoder.c51 for (idx = 0; idx < chunkCnt; idx++) { in pvr2_encoder_write_words()
110 for (idx = 0; idx < chunkCnt; idx++) { in pvr2_encoder_read_words()
111 data[idx] = PVR2_COMPOSE_LE(hdw->cmd_buffer,idx*4); in pvr2_encoder_read_words()
205 for (idx = 0; idx < arg_cnt_send; idx++) { in pvr2_encoder_cmd()
206 wrData[idx+4] = argp[idx]; in pvr2_encoder_cmd()
208 for (; idx < ARRAY_SIZE(wrData) - 4; idx++) { in pvr2_encoder_cmd()
243 for (idx = 4; idx < arg_cnt_send; idx++) { in pvr2_encoder_cmd()
247 idx-3,wrData[idx]); in pvr2_encoder_cmd()
280 for (idx = 0; idx < arg_cnt_recv; idx++) { in pvr2_encoder_cmd()
281 argp[idx] = rdData[idx+4]; in pvr2_encoder_cmd()
[all …]
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dr600_cs.c927 idx, reg); in r600_packet0_check()
942 unsigned idx; in r600_cs_parse_packet0() local
945 idx = pkt->idx + 1; in r600_cs_parse_packet0()
1313 ib[idx] |= 3; in r600_cs_check_reg()
1632 unsigned idx; in r600_packet3_check() local
1640 idx = pkt->idx + 1; in r600_packet3_check()
1770 ib[idx+1] = (ib[idx+1] & 0x3) | (offset & 0xfffffff0); in r600_packet3_check()
2011 ib[idx+1+(i*8)+2] = (ib[idx+1+(i*8)+2] & 0xffffff00) | in r600_packet3_check()
2345 unsigned idx; in r600_dma_cs_next_reloc() local
2392 idx = p->idx; in r600_dma_cs_parse()
[all …]
/openbmc/qemu/hw/hyperv/
H A Dhv-balloon-our_range_memslots.c60 unsigned int idx; in our_range_memslots_init_slots() local
68 for (idx = 0, memslot_offset = 0; idx < memslots->count; in our_range_memslots_init_slots()
74 if (idx == memslots->count - 1) { in our_range_memslots_init_slots()
122 unsigned int idx; in our_range_memslots_free_memslots() local
126 for (idx = 0, offset = 0; idx < memslots->mapped_count; in our_range_memslots_free_memslots()
127 idx++, offset += memslots->size_each) { in our_range_memslots_free_memslots()
134 for (idx = 0; idx < memslots->count; idx++) { in our_range_memslots_free_memslots()
164 unsigned int idx; in hvb_our_range_memslots_ensure_mapped_additional() local
169 idx = memslots->mapped_count; in hvb_our_range_memslots_ensure_mapped_additional()
171 offset = idx * memslots->size_each; in hvb_our_range_memslots_ensure_mapped_additional()
[all …]
/openbmc/linux/drivers/clk/baikal-t1/
H A Dclk-ccu-pll.c89 int idx; in ccu_pll_find_desc() local
91 for (idx = 0; idx < CCU_PLL_NUM; ++idx) { in ccu_pll_find_desc()
92 if (pll_info[idx].id == clk_id) in ccu_pll_find_desc()
93 return data->plls[idx]; in ccu_pll_find_desc()
150 int idx, ret; in ccu_pll_clk_register() local
152 for (idx = 0; idx < CCU_PLL_NUM; ++idx) { in ccu_pll_clk_register()
158 if (!data->plls[idx]) in ccu_pll_clk_register()
174 if (IS_ERR(data->plls[idx])) { in ccu_pll_clk_register()
185 for (--idx; idx >= 0; --idx) { in ccu_pll_clk_register()
197 int idx; in ccu_pll_clk_unregister() local
[all …]
/openbmc/linux/tools/testing/radix-tree/
H A Dmain.c17 long idx; in __gang_check() local
22 for (idx = -down; idx < up; idx++) in __gang_check()
23 item_insert(&tree, middle + idx); in __gang_check()
26 for (idx = -down; idx < up; idx++) in __gang_check()
133 if (idx[i] < start || idx[i] > end) { in check_copied_tags()
136 end, idx[i], item_tag_get(tree, idx[i], in check_copied_tags()
146 idx[i], item_tag_get(tree, idx[i], fromtag), in check_copied_tags()
159 unsigned long idx[ITEMS]; in copy_tag_check() local
203 idx[i] = rand(); in copy_tag_check()
206 item_insert(&tree, idx[i]); in copy_tag_check()
[all …]
/openbmc/linux/arch/mips/ralink/
H A Dclk.c24 *idx = 0; in clk_cpu()
27 *idx = 0; in clk_cpu()
30 *idx = 0; in clk_cpu()
33 *idx = 0; in clk_cpu()
36 *idx = 1; in clk_cpu()
39 *idx = 1; in clk_cpu()
42 *idx = 1; in clk_cpu()
45 *idx = 2; in clk_cpu()
48 *idx = 2; in clk_cpu()
51 *idx = 1; in clk_cpu()
[all …]
/openbmc/u-boot/tools/
H A Dvybridimage.c66 int idx; in vybridimage_verify_header() local
86 for (idx = 0; idx < sizeof(hdr->fcb_bytes); idx++) { in vybridimage_verify_header()
88 if (sw_ecc != hdr->sw_ecc[idx]) in vybridimage_verify_header()
100 int idx; in vybridimage_set_header() local
127 for (idx = 0; idx < sizeof(hdr->fcb_bytes); idx++) in vybridimage_set_header()
128 hdr->sw_ecc[idx] = vybridimage_sw_ecc(hdr->fcb_bytes[idx]); in vybridimage_set_header()
132 int idx) in vybridimage_print_hdr_field() argument
134 printf("header.fcb[%d] = %08x\n", idx, hdr->fcb[idx]); in vybridimage_print_hdr_field()
141 int idx; in vybridimage_print_header() local
143 for (idx = 0; idx < 56; idx++) in vybridimage_print_header()
[all …]
/openbmc/linux/drivers/input/misc/
H A Dad714x.c389 idx); in ad714x_slider_state_machine()
563 idx); in ad714x_wheel_state_machine()
678 idx, sw->x_flt_pos, sw->y_flt_pos); in touchpad_cal_flt_pos()
813 touchpad_use_com_int(ad714x, idx); in ad714x_touchpad_state_machine()
820 touchpad_cal_sensor_val(ad714x, idx); in ad714x_touchpad_state_machine()
826 idx); in ad714x_touchpad_state_machine()
827 touchpad_cal_abs_pos(ad714x, idx); in ad714x_touchpad_state_machine()
842 touchpad_cal_abs_pos(ad714x, idx); in ad714x_touchpad_state_machine()
843 touchpad_cal_flt_pos(ad714x, idx); in ad714x_touchpad_state_machine()
855 touchpad_use_thr_int(ad714x, idx); in ad714x_touchpad_state_machine()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dgk104.c145 read_clk(struct gk104_clk *clk, int idx) in read_clk() argument
151 if (idx < 7) { in read_clk()
153 if (ssel & (1 << idx)) { in read_clk()
256 sclk = read_vco(clk, 0x137160 + (idx * 4)); in calc_src()
257 if (idx < 7) in calc_src()
258 sclk = calc_div(clk, idx, sclk, freq, ddiv); in calc_src()
290 struct gk104_clk_info *info = &clk->eng[idx]; in calc_clk()
305 if (idx <= 7) in calc_clk()
330 info->ssel = (1 << idx); in calc_clk()
359 struct gk104_clk_info *info = &clk->eng[idx]; in gk104_clk_prog_0()
[all …]
/openbmc/u-boot/lib/
H A Dhashtable.c69 int idx);
209 for (idx = last_idx + 1; idx < htab->size; ++idx) { in hmatch_r()
214 return idx; in hmatch_r()
267 return idx; in _compare_and_overwrite_entry()
300 idx = hval; in hsearch_r()
330 idx = htab->size + idx - hval2; in hsearch_r()
395 _hdelete(item.key, htab, &htab->table[idx].entry, idx); in hsearch_r()
407 _hdelete(item.key, htab, &htab->table[idx].entry, idx); in hsearch_r()
435 int idx) in _hdelete() argument
451 int idx; in hdelete_r() local
[all …]
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_display_power_map.c111 .hsw.idx = HSW_PW_CTL_IDX_GLOBAL,
145 .hsw.idx = HSW_PW_CTL_IDX_GLOBAL,
204 .vlv.idx = PUNIT_PWGT_IDX_DISP2D,
362 .hsw.idx = SKL_PW_CTL_IDX_PW_1,
390 .hsw.idx = SKL_PW_CTL_IDX_PW_2,
470 .hsw.idx = SKL_PW_CTL_IDX_PW_2,
574 .hsw.idx = SKL_PW_CTL_IDX_PW_2,
724 .hsw.idx = ICL_PW_CTL_IDX_PW_1,
743 .hsw.idx = ICL_PW_CTL_IDX_PW_2,
751 .hsw.idx = ICL_PW_CTL_IDX_PW_3,
[all …]
/openbmc/linux/sound/pci/emu10k1/
H A Demuproc.c84 for (idx = 0; idx < NUM_G; idx++) { in snd_emu10k1_proc_read()
115 for (idx = 0; idx < 32; idx++) { in snd_emu10k1_proc_read()
122 for (idx = 0; idx < 32; idx++) in snd_emu10k1_proc_read()
126 for (idx = 0; idx < 16; idx++) in snd_emu10k1_proc_read()
130 for (idx = 0; idx < nefx; idx++) in snd_emu10k1_proc_read()
133 idx, outputs[idx] ? outputs[idx] : "???"); in snd_emu10k1_proc_read()
135 for (idx = 0; idx < 32; idx++) in snd_emu10k1_proc_read()
138 idx + 32, inputs[idx] ? inputs[idx] : "???"); in snd_emu10k1_proc_read()
140 for (idx = 0; idx < 16; idx++) { in snd_emu10k1_proc_read()
152 idx + 16, inputs[idx] ? inputs[idx] : "???"); in snd_emu10k1_proc_read()
[all …]
/openbmc/linux/drivers/cpuidle/governors/
H A Dteo.c407 idx = 0; in teo_select()
412 idx = 0; in teo_select()
431 idx = 0; in teo_select()
435 idx = 1; in teo_select()
459 idx = i; in teo_select()
530 idx = i; in teo_select()
572 idx = i; in teo_select()
579 if (!idx) in teo_select()
601 idx = i; in teo_select()
621 return idx; in teo_select()
[all …]
/openbmc/linux/kernel/bpf/
H A Dmprog.c141 idx += 1; in bpf_mprog_insert()
161 idx = 0; in bpf_mprog_delete()
255 idx = tidx; in bpf_mprog_attach()
262 if (tidx < -1 || (idx >= -1 && tidx != idx)) { in bpf_mprog_attach()
266 idx = tidx; in bpf_mprog_attach()
270 if (tidx < -1 || (idx >= -1 && tidx != idx)) { in bpf_mprog_attach()
274 idx = tidx; in bpf_mprog_attach()
307 idx = 0; in bpf_mprog_fetch()
356 idx = tidx; in bpf_mprog_detach()
360 if (tidx < -1 || (idx >= -1 && tidx != idx)) { in bpf_mprog_detach()
[all …]
/openbmc/linux/drivers/media/dvb-core/
H A Ddvb_ringbuffer.c264 idx = (idx + DVB_RINGBUFFER_PKTHDRSIZE + offset) % rbuf->size; in dvb_ringbuffer_pkt_read_user()
266 split = ((idx + len) > rbuf->size) ? rbuf->size - idx : 0; in dvb_ringbuffer_pkt_read_user()
272 idx = 0; in dvb_ringbuffer_pkt_read_user()
292 idx = (idx + DVB_RINGBUFFER_PKTHDRSIZE + offset) % rbuf->size; in dvb_ringbuffer_pkt_read()
294 split = ((idx + len) > rbuf->size) ? rbuf->size - idx : 0; in dvb_ringbuffer_pkt_read()
299 idx = 0; in dvb_ringbuffer_pkt_read()
330 if (idx == -1) { in dvb_ringbuffer_pkt_next()
331 idx = rbuf->pread; in dvb_ringbuffer_pkt_next()
335 idx = (idx + curpktlen + DVB_RINGBUFFER_PKTHDRSIZE) % rbuf->size; in dvb_ringbuffer_pkt_next()
350 return idx; in dvb_ringbuffer_pkt_next()
[all …]
/openbmc/linux/drivers/hwtracing/coresight/
H A Dcoresight-etm4x-cfg.c49 int err = -EINVAL, idx; in etm4_cfg_map_reg_offset() local
78 idx = (offset & GENMASK(3, 0)) / 4; in etm4_cfg_map_reg_offset()
79 if (idx < ETM_MAX_SEQ_STATES) { in etm4_cfg_map_reg_offset()
80 reg_csdev->driver_regval = &drvcfg->seq_ctrl[idx]; in etm4_cfg_map_reg_offset()
85 idx = (offset & GENMASK(4, 0)) / 4; in etm4_cfg_map_reg_offset()
88 CHECKREGIDX(TRCSSCCRn(0), ss_ctrl, idx, off_mask); in etm4_cfg_map_reg_offset()
94 idx = (offset & GENMASK(5, 0)) / 8; in etm4_cfg_map_reg_offset()
103 idx = (offset & GENMASK(6, 0)) / 4; in etm4_cfg_map_reg_offset()
104 if (idx < ETM_MAX_RES_SEL) { in etm4_cfg_map_reg_offset()
111 idx = (offset & GENMASK(6, 0)) / 8; in etm4_cfg_map_reg_offset()
[all …]
/openbmc/linux/drivers/perf/hisilicon/
H A Dhisi_pcie_pmu.c395 u32 idx = event->hw.idx; in hisi_pcie_pmu_read_counter() local
406 for (idx = 0; idx < HISI_PCIE_MAX_COUNTERS; idx++) { in hisi_pcie_pmu_find_related_event()
428 for (idx = 0; idx < HISI_PCIE_MAX_COUNTERS; idx++) { in hisi_pcie_pmu_get_event_idx()
460 int idx = hwc->idx; in hisi_pcie_pmu_set_period() local
469 u32 idx = hwc->idx; in hisi_pcie_pmu_enable_counter() local
479 u32 idx = hwc->idx; in hisi_pcie_pmu_disable_counter() local
489 u32 idx = hwc->idx; in hisi_pcie_pmu_enable_int() local
496 u32 idx = hwc->idx; in hisi_pcie_pmu_disable_int() local
511 int idx = hwc->idx; in hisi_pcie_pmu_start() local
566 hwc->idx = idx; in hisi_pcie_pmu_add()
[all …]
/openbmc/linux/drivers/media/pci/pt3/
H A Dpt3_dma.c20 i = (idx == 1 || idx == 2) ? 3 - idx : idx; in get_dma_base()
66 (*idx)++; in next_unit()
68 *idx = 0; in next_unit()
75 int idx, ofs; in pt3_proc_dma() local
77 idx = adap->buf_idx; in pt3_proc_dma()
107 int idx, ofs; in pt3_init_dmabuf() local
110 idx = 0; in pt3_init_dmabuf()
119 idx++; in pt3_init_dmabuf()
150 int idx, ofs; in pt3_alloc_dmabuf() local
169 idx = 0; in pt3_alloc_dmabuf()
[all …]

12345678910>>...141