Searched refs:idx (Results 451 - 475 of 4003) sorted by relevance

<<11121314151617181920>>

/linux-master/arch/loongarch/kernel/
H A Dptrace.c407 unsigned long idx)
413 if (idx >= LOONGARCH_MAX_BRP)
415 idx = array_index_nospec(idx, LOONGARCH_MAX_BRP);
416 bp = tsk->thread.hbp_break[idx];
419 if (idx >= LOONGARCH_MAX_WRP)
421 idx = array_index_nospec(idx, LOONGARCH_MAX_WRP);
422 bp = tsk->thread.hbp_watch[idx];
431 unsigned long idx,
405 ptrace_hbp_get_event(unsigned int note_type, struct task_struct *tsk, unsigned long idx) argument
429 ptrace_hbp_set_event(unsigned int note_type, struct task_struct *tsk, unsigned long idx, struct perf_event *bp) argument
452 ptrace_hbp_create(unsigned int note_type, struct task_struct *tsk, unsigned long idx) argument
544 ptrace_hbp_get_initialised_bp(unsigned int note_type, struct task_struct *tsk, unsigned long idx) argument
556 ptrace_hbp_get_ctrl(unsigned int note_type, struct task_struct *tsk, unsigned long idx, u32 *ctrl) argument
570 ptrace_hbp_get_mask(unsigned int note_type, struct task_struct *tsk, unsigned long idx, u64 *mask) argument
584 ptrace_hbp_get_addr(unsigned int note_type, struct task_struct *tsk, unsigned long idx, u64 *addr) argument
598 ptrace_hbp_set_ctrl(unsigned int note_type, struct task_struct *tsk, unsigned long idx, u32 uctrl) argument
620 ptrace_hbp_set_mask(unsigned int note_type, struct task_struct *tsk, unsigned long idx, u64 mask) argument
639 ptrace_hbp_set_addr(unsigned int note_type, struct task_struct *tsk, unsigned long idx, u64 addr) argument
668 int ret, idx = 0; local
709 int ret, idx = 0, offset, limit; local
[all...]
/linux-master/include/linux/
H A Dvirtio_pci_modern.h107 u16 idx, u16 vector);
114 u16 idx, bool enable);
116 u16 idx);
118 u16 idx, u16 size);
120 u16 idx);
/linux-master/tools/testing/selftests/resctrl/
H A Dfill_buf.c68 unsigned int i, idx = 0; local
81 sum += buf[idx * (CL_SIZE / 2)];
83 idx += FILL_IDX_MULT;
84 while (idx >= size)
85 idx -= size;
/linux-master/drivers/perf/hisilicon/
H A Dhisi_uncore_ddrc_pmu.c85 hisi_ddrc_pmu_v1_get_counter_offset(hwc->idx));
92 ddrc_pmu->base + hisi_ddrc_pmu_v1_get_counter_offset(hwc->idx));
99 hisi_ddrc_pmu_v2_get_counter_offset(hwc->idx));
106 ddrc_pmu->base + hisi_ddrc_pmu_v2_get_counter_offset(hwc->idx));
114 static void hisi_ddrc_pmu_write_evtype(struct hisi_pmu *hha_pmu, int idx, argument
120 offset = DDRC_V2_EVENT_TYPE + 4 * idx;
173 int idx = GET_DDRC_EVENTID(hwc); local
175 if (test_bit(idx, used_mask))
178 set_bit(idx, used_mask);
180 return idx;
273 hisi_ddrc_pmu_v1_clear_int_status(struct hisi_pmu *ddrc_pmu, int idx) argument
284 hisi_ddrc_pmu_v2_clear_int_status(struct hisi_pmu *ddrc_pmu, int idx) argument
[all...]
/linux-master/sound/pci/ctxfi/
H A Dctamixer.c29 rsc->idx = container_of(rsc, struct amixer, rsc)->idx[0];
39 return container_of(rsc, struct amixer, rsc)->idx[rsc->conj];
201 err = rsc_init(&amixer->rsc, amixer->idx[0],
232 unsigned int idx; local
248 err = mgr_get_resource(&mgr->mgr, 1, &idx);
252 amixer->idx[i] = idx;
272 mgr_put_resource(&mgr->mgr, 1, amixer->idx[i]);
286 mgr_put_resource(&mgr->mgr, 1, amixer->idx[
388 unsigned int idx; local
[all...]
/linux-master/drivers/gpu/drm/imagination/
H A Dpvr_fw_trace.c142 int idx; local
153 if (!drm_dev_enter(from_pvr_device(pvr_dev), &idx)) {
163 drm_dev_exit(idx);
178 /** @idx: Current index into trace data. */
179 u32 idx; member in struct:pvr_fw_trace_seq_data
199 u32 idx; local
201 idx = trace_seq_data->idx + offset;
202 if (idx >= ROGUE_FW_TRACE_BUF_DEFAULT_SIZE_IN_DWORDS)
205 idx
[all...]
/linux-master/drivers/gpu/drm/msm/adreno/
H A Da2xx_gpummu.c35 unsigned idx = (iova - GPUMMU_VA_START) / GPUMMU_PAGE_SIZE; local
49 gpummu->table[idx++] = (addr + i) | prot_bits;
62 unsigned idx = (iova - GPUMMU_VA_START) / GPUMMU_PAGE_SIZE; local
65 for (i = 0; i < len / GPUMMU_PAGE_SIZE; i++, idx++)
66 gpummu->table[idx] = 0;
/linux-master/sound/soc/intel/boards/
H A Dsof_board_helpers.c421 int idx = 0; local
456 be_id = idx;
465 ret = set_ssp_codec_link(dev, &links[idx], be_id,
473 ctx->codec_link = &links[idx];
474 idx++;
482 ret = set_dmic_link(dev, &links[idx], be_id, SOF_DMIC_01);
489 idx++;
497 ret = set_dmic_link(dev, &links[idx], be_id,
505 idx++;
510 ret = set_idisp_hdmi_link(dev, &links[idx],
[all...]
/linux-master/arch/mips/mm/
H A Dtlb-r4k.c133 int idx; local
143 idx = read_c0_index();
146 if (idx < 0)
149 write_c0_entryhi(UNIQUE_ENTRYHI(idx));
184 int idx; local
191 idx = read_c0_index();
194 if (idx < 0)
197 write_c0_entryhi(UNIQUE_ENTRYHI(idx));
218 int idx; local
234 idx
262 int oldpid, idx; local
301 int idx, pid; local
[all...]
/linux-master/drivers/net/wireless/intel/iwlegacy/
H A D4965-rs.c100 int idx = 0; local
104 idx = (rate_n_flags & 0xff);
106 if (idx >= RATE_MIMO2_6M_PLCP)
107 idx = idx - RATE_MIMO2_6M_PLCP;
109 idx += IL_FIRST_OFDM_RATE;
111 if (idx >= RATE_9M_IDX)
112 idx += 1;
113 if (idx >= IL_FIRST_OFDM_RATE && idx <
140 il4965_rs_dbgfs_set_mcs(struct il_lq_sta *lq_sta, u32 * rate_n_flags, int idx) argument
260 s32 idx; local
313 s32 idx; local
482 il4965_rate_n_flags_from_tbl(struct il_priv *il, struct il_scale_tbl_info *tbl, int idx, u8 use_green) argument
657 il4965_rs_get_adjacent_rate(struct il_priv *il, u8 idx, u16 rate_mask, int rate_type) argument
1064 il4965_rs_get_best_rate(struct il_priv *il, struct il_lq_sta *lq_sta, struct il_scale_tbl_info *tbl, u16 rate_mask, s8 idx) argument
1158 il4965_rs_switch_to_mimo2(struct il_priv *il, struct il_lq_sta *lq_sta, struct ieee80211_conf *conf, struct ieee80211_sta *sta, struct il_scale_tbl_info *tbl, int idx) argument
1212 il4965_rs_switch_to_siso(struct il_priv *il, struct il_lq_sta *lq_sta, struct ieee80211_conf *conf, struct ieee80211_sta *sta, struct il_scale_tbl_info *tbl, int idx) argument
1259 il4965_rs_move_legacy_other(struct il_priv *il, struct il_lq_sta *lq_sta, struct ieee80211_conf *conf, struct ieee80211_sta *sta, int idx) argument
1378 il4965_rs_move_siso_to_other(struct il_priv *il, struct il_lq_sta *lq_sta, struct ieee80211_conf *conf, struct ieee80211_sta *sta, int idx) argument
1501 il4965_rs_move_mimo2_to_other(struct il_priv *il, struct il_lq_sta *lq_sta, struct ieee80211_conf *conf, struct ieee80211_sta *sta, int idx) argument
1710 il4965_rs_update_rate_tbl(struct il_priv *il, struct il_lq_sta *lq_sta, struct il_scale_tbl_info *tbl, int idx, u8 is_green) argument
1735 int idx; local
2360 int idx = 0; local
2501 il4965_rs_dbgfs_set_mcs(struct il_lq_sta *lq_sta, u32 * rate_n_flags, int idx) argument
2573 int idx = 0; local
[all...]
/linux-master/kernel/rcu/
H A Dsrcutree.c421 * for the rank of per-CPU counters specified by idx.
423 static unsigned long srcu_readers_lock_idx(struct srcu_struct *ssp, int idx) argument
431 sum += atomic_long_read(&cpuc->srcu_lock_count[idx]);
438 * for the rank of per-CPU counters specified by idx.
440 static unsigned long srcu_readers_unlock_idx(struct srcu_struct *ssp, int idx) argument
449 sum += atomic_long_read(&cpuc->srcu_unlock_count[idx]);
462 static bool srcu_readers_active_idx_check(struct srcu_struct *ssp, int idx) argument
466 unlocks = srcu_readers_unlock_idx(ssp, idx);
486 * ->srcu_lock_count[idx] counter. In fact, it is possible
488 * ->srcu_idx and incrementing ->srcu_lock_count[idx]
714 int idx; local
728 __srcu_read_unlock(struct srcu_struct *ssp, int idx) argument
744 int idx; local
759 __srcu_read_unlock_nmisafe(struct srcu_struct *ssp, int idx) argument
850 int idx; local
993 int idx = rcu_seq_ctr(s) % ARRAY_SIZE(sdp->mynode->srcu_have_cbs); local
1071 try_check_zero(struct srcu_struct *ssp, int idx, int trycount) argument
1213 int idx; local
1595 int idx; local
1649 int idx; local
1853 int idx; local
[all...]
/linux-master/drivers/perf/
H A Driscv_pmu_sbi.c296 static int pmu_sbi_ctr_get_width(int idx) argument
298 return pmu_ctr_list[idx].width;
345 return pmu_ctr_list[event->hw.idx].csr - CSR_CYCLE;
375 int idx; local
411 idx = ret.value;
412 if (!test_bit(idx, &rvpmu->cmask) || !pmu_ctr_list[idx].value)
416 if (pmu_sbi_ctr_is_fw(idx)) {
417 if (!test_and_set_bit(idx, cpuc->used_fw_ctrs))
418 return idx;
433 int idx = hwc->idx; local
600 int idx = hwc->idx; local
773 int i, idx; local
815 int idx = 0, i; local
854 int i, idx = 0; local
1104 int idx; local
[all...]
/linux-master/samples/bpf/
H A Dtest_cgrp2_sock.c30 static int prog_load(__u32 idx, __u32 mark, __u32 prio) argument
43 BPF_MOV64_IMM(BPF_REG_3, idx),
84 if (idx)
102 if (idx) {
210 __u32 idx = 0, mark = 0, prio = 0; local
223 idx = if_nametoindex(optarg);
224 if (!idx) {
225 idx = strtoumax(optarg, NULL, 0);
226 if (!idx) {
255 if (do_attach && !idx
[all...]
/linux-master/drivers/net/ethernet/mscc/
H A Docelot_fdma.c36 static dma_addr_t ocelot_fdma_idx_dma(dma_addr_t base, u16 idx) argument
38 return base + idx * sizeof(struct ocelot_fdma_dcb);
46 static u16 ocelot_fdma_idx_next(u16 idx, u16 ring_sz) argument
48 return unlikely(idx == ring_sz - 1) ? 0 : idx + 1;
51 static u16 ocelot_fdma_idx_prev(u16 idx, u16 ring_sz) argument
53 return unlikely(idx == 0) ? ring_sz - 1 : idx - 1;
154 u16 idx; local
157 idx
226 unsigned int idx; local
240 unsigned int idx; local
399 u16 idx; local
704 u16 idx; local
728 u16 idx; local
[all...]
/linux-master/drivers/infiniband/core/
H A Dnetlink.c293 int idx; local
295 for (idx = 0; idx < RDMA_NL_NUM_CLIENTS; idx++)
296 init_rwsem(&rdma_nl_types[idx].sem);
301 int idx; local
303 for (idx = 0; idx < RDMA_NL_NUM_CLIENTS; idx++)
304 WARN(rdma_nl_types[idx]
[all...]
/linux-master/drivers/nvmem/
H A Dbrcm_nvram.c123 int idx; local
142 for (var = data + sizeof(struct brcm_nvram_header), idx = 0;
144 var = value + strlen(value) + 1, idx++) {
159 priv->cells[idx].name = name;
160 priv->cells[idx].offset = value - (char *)data;
161 priv->cells[idx].bytes = strlen(value);
162 priv->cells[idx].np = of_get_child_by_name(dev->of_node, priv->cells[idx].name);
166 priv->cells[idx].raw_len = strlen(value);
167 priv->cells[idx]
[all...]
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A DM0203.c72 nvbios_M0203Ee(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr) argument
76 if (data && idx < cnt) {
77 data = data + *hdr + idx * len;
85 nvbios_M0203Ep(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, argument
88 u32 data = nvbios_M0203Ee(bios, idx, ver, hdr);
108 u8 cnt, len, idx = 0xff; local
116 while ((data = nvbios_M0203Ep(bios, ++idx, ver, hdr, info))) {
H A Dgpio.c61 dcb_gpio_entry(struct nvkm_bios *bios, int idx, int ent, u8 *ver, u8 *len) argument
66 if (!idx--)
69 gpio = dcb_xpio_table(bios, idx, &xver, &hdr, &cnt, len);
78 dcb_gpio_parse(struct nvkm_bios *bios, int idx, int ent, u8 *ver, u8 *len, argument
81 u16 data = dcb_gpio_entry(bios, idx, ent, ver, len);
119 dcb_gpio_match(struct nvkm_bios *bios, int idx, u8 func, u8 line, argument
125 while ((data = dcb_gpio_parse(bios, idx, i++, ver, len, gpio))) {
H A Dpmu.c50 nvbios_pmuEe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr) argument
54 if (data && idx < cnt) {
55 data = data + *hdr + (idx * len);
63 nvbios_pmuEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, argument
66 u32 data = nvbios_pmuEe(bios, idx, ver, hdr);
78 u8 ver, hdr, idx = 0; local
81 while ((data = nvbios_pmuEp(bios, idx++, &ver, &hdr, &pmuE))) {
/linux-master/drivers/net/wireless/ti/wl18xx/
H A Dtx.c25 rate->idx = 0;
31 rate->idx = fw_rate;
33 rate->idx -= CONF_HW_RATE_INDEX_6MBPS;
37 rate->idx = fw_rate - CONF_HW_RATE_INDEX_MCS0;
41 (rate->idx)--;
43 (rate->idx)--;
55 rate->idx -= 8;
154 wl1271_debug(DEBUG_TX, "last released desc = %d, current idx = %d",
/linux-master/drivers/misc/vmw_vmci/
H A Dvmci_resource.c42 unsigned int idx = vmci_resource_hash(handle); local
46 &vmci_resource_table.entries[idx], node) {
104 unsigned int idx; local
127 idx = vmci_resource_hash(resource->handle);
128 hlist_add_head_rcu(&resource->node, &vmci_resource_table.entries[idx]);
140 unsigned int idx = vmci_resource_hash(handle); local
146 hlist_for_each_entry(r, &vmci_resource_table.entries[idx], node) {
/linux-master/drivers/net/wireless/realtek/rtw88/
H A Dsar.c78 u32 idx, i, j, k; local
89 idx = sar->sub_specs[i].freq_range_index;
90 if (idx >= RTW_SAR_BAND_NR)
95 rtw_common_sar_freq_ranges[idx].start_freq,
96 rtw_common_sar_freq_ranges[idx].end_freq,
102 .sar_band = idx,
108 new.cfg[j][k].common[idx] = val;
/linux-master/tools/perf/util/
H A Dbpf_ftrace.c125 u32 idx; local
135 for (idx = 0; idx < NUM_BUCKET; idx++) {
136 err = bpf_map_lookup_elem(fd, &idx, hist);
138 buckets[idx] = 0;
143 buckets[idx] += hist[i];
/linux-master/drivers/input/joystick/
H A Dtwidjoy.c77 int idx; member in struct:twidjoy
131 twidjoy->idx = 0; /* this byte starts a new packet */
132 else if (twidjoy->idx == 0)
135 if (twidjoy->idx < TWIDJOY_MAX_LENGTH)
136 twidjoy->data[twidjoy->idx++] = data;
138 if (twidjoy->idx == TWIDJOY_MAX_LENGTH) {
140 twidjoy->idx = 0;
H A Dzhenhua.c55 int idx; member in struct:zhenhua
93 zhenhua->idx = 0; /* this byte starts a new packet */
94 else if (zhenhua->idx == 0)
97 if (zhenhua->idx < ZHENHUA_MAX_LENGTH)
98 zhenhua->data[zhenhua->idx++] = bitrev8(data);
100 if (zhenhua->idx == ZHENHUA_MAX_LENGTH) {
102 zhenhua->idx = 0;

Completed in 581 milliseconds

<<11121314151617181920>>