Searched refs:idx (Results 476 - 500 of 4003) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/input/joystick/
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;
H A Dmagellan.c37 int idx; member in struct:magellan
69 if (!magellan->idx) return;
74 if (magellan->idx != 25) return;
83 if (magellan->idx != 4) return;
100 magellan->idx = 0;
102 if (magellan->idx < MAGELLAN_MAX_LENGTH)
103 magellan->data[magellan->idx++] = data;
/linux-master/drivers/irqchip/
H A Dirq-realtek-rtl.c37 #define IRR_OFFSET(idx) (4 * (3 - (idx * 4) / 32))
38 #define IRR_SHIFT(idx) ((idx * 4) % 32)
40 static void write_irr(void __iomem *irr0, int idx, u32 value) argument
42 unsigned int offset = IRR_OFFSET(idx);
43 unsigned int shift = IRR_SHIFT(idx);
/linux-master/tools/perf/util/bpf_skel/
H A Dbperf_cgroup.bpf.c147 register __u32 idx = 0; // to have it in a register to pass BPF verifier local
161 for ( ; idx < MAX_EVENTS; idx++) {
162 if (idx == num_events)
165 // XXX: do not pass idx directly (for verifier)
166 key = idx;
179 key = idx * num_cpus + cpu;
196 key = cgrp * num_events + idx;
/linux-master/drivers/input/misc/
H A Dibm-panel.c19 u8 idx; member in struct:ibm_panel
22 spinlock_t lock; /* protects writes to idx and command */
89 if (panel->idx == sizeof(panel->command))
93 "command incorrect size %u\n", panel->idx);
96 panel->idx = 0;
99 if (panel->idx < sizeof(panel->command))
100 panel->command[panel->idx++] = *val;
107 panel->idx = U8_MAX;
/linux-master/tools/objtool/
H A Dspecial.c69 struct section *sec, int idx,
75 offset = idx * entry->size;
146 int idx, ret; local
163 for (idx = 0; idx < nr_entries; idx++) {
171 ret = get_alt_entry(elf, entry, sec, idx, alt);
68 get_alt_entry(struct elf *elf, const struct special_entry *entry, struct section *sec, int idx, struct special_alt *alt) argument
/linux-master/kernel/sched/
H A Dcpupri.c68 struct cpumask *lowest_mask, int idx)
70 struct cpupri_vec *vec = &cp->pri_to_cpu[idx];
149 int idx, cpu; local
153 for (idx = 0; idx < task_pri; idx++) {
155 if (!__cpupri_find(cp, p, lowest_mask, idx))
67 __cpupri_find(struct cpupri *cp, struct task_struct *p, struct cpumask *lowest_mask, int idx) argument
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_hmc.h175 * @idx: starting index for the object
183 #define I40E_FIND_PD_INDEX_LIMIT(hmc_info, type, idx, cnt, pd_index, pd_limit)\
187 (hmc_info)->hmc_obj[(type)].size * (idx); \
206 u32 idx);
208 u32 idx);
211 u32 idx, bool is_pf);
213 u32 idx);
216 u32 idx, bool is_pf);
/linux-master/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_pipe.c40 if (new_state->hwpipe_to_plane[cur->idx] ||
41 old_state->hwpipe_to_plane[cur->idx])
111 new_state->hwpipe_to_plane[(*hwpipe)->idx] = plane;
116 new_state->hwpipe_to_plane[(*r_hwpipe)->idx] = plane;
138 if (WARN_ON(!new_state->hwpipe_to_plane[hwpipe->idx]))
142 new_state->hwpipe_to_plane[hwpipe->idx]->name);
149 new_state->hwpipe_to_plane[hwpipe->idx] = NULL;
/linux-master/tools/testing/selftests/mm/
H A Dtranshuge-stress.c106 size_t idx = pfn >> (HPAGE_SHIFT - pshift()); local
109 if (idx >= map_len) {
110 map = realloc(map, idx + 1);
113 memset(map + map_len, 0, idx + 1 - map_len);
114 map_len = idx + 1;
116 if (!map[idx])
118 map[idx] = 1;
/linux-master/sound/pci/ctxfi/
H A Dcthw20k1.c134 unsigned int idx; member in struct:srcimap
359 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) argument
367 hw_write_20kx(hw, SRCUPZ+idx*0x100+i*0x4, 0);
370 hw_write_20kx(hw, SRCDN0Z+idx*0x100+i*0x4, 0);
373 hw_write_20kx(hw, SRCDN1Z+idx*0x100+i*0x4, 0);
379 * the idx src is in for simplicity. Unlike src, all conjugate
382 unsigned int pm_idx = src_param_pitch_mixer(idx);
389 hw_write_20kx(hw, SRCSA+idx*0x100, ctl->sa);
393 hw_write_20kx(hw, SRCLA+idx*0x100, ctl->la);
397 hw_write_20kx(hw, SRCCA+idx*
416 src_get_ca(struct hw *hw, unsigned int idx, void *blk) argument
436 src_mgr_enbs_src(void *blk, unsigned int idx) argument
444 src_mgr_enb_src(void *blk, unsigned int idx) argument
451 src_mgr_dsb_src(void *blk, unsigned int idx) argument
663 amixer_commit_write(struct hw *hw, unsigned int idx, void *blk) argument
781 unsigned int idx; member in struct:daoimap
878 dai_commit_write(struct hw *hw, unsigned int idx, void *blk) argument
924 dao_commit_write(struct hw *hw, unsigned int idx, void *blk) argument
966 daio_mgr_enb_dai(void *blk, unsigned int idx) argument
983 daio_mgr_dsb_dai(void *blk, unsigned int idx) argument
1000 daio_mgr_enb_dao(void *blk, unsigned int idx) argument
1017 daio_mgr_dsb_dao(void *blk, unsigned int idx) argument
1034 daio_mgr_dao_init(void *blk, unsigned int idx, unsigned int conf) argument
[all...]
/linux-master/drivers/clk/
H A Dclk-versaclock7.c83 #define VC7_REG_OUT_BANK_CNFG(idx) (0x280 + (0x4 * (idx)))
86 #define VC7_REG_FOD_INT_CNFG(idx) (0x1E0 + (0x10 * (idx)))
94 #define VC7_REG_IOD_INT_CNFG(idx) (0x1C0 + (0x8 * (idx)))
98 #define VC7_REG_ODRV_EN(idx) (0x240 + (0x4 * (idx)))
181 unsigned int idx = clkspec->args[0]; local
183 if (idx >
569 vc7_read_fod(struct vc7_driver_data *vc7, unsigned int idx) argument
592 vc7_write_fod(struct vc7_driver_data *vc7, unsigned int idx) argument
634 vc7_read_iod(struct vc7_driver_data *vc7, unsigned int idx) argument
653 vc7_write_iod(struct vc7_driver_data *vc7, unsigned int idx) argument
688 vc7_read_output(struct vc7_driver_data *vc7, unsigned int idx) argument
707 vc7_write_output(struct vc7_driver_data *vc7, unsigned int idx) argument
[all...]
/linux-master/tools/perf/util/
H A Dstream.c73 int i, idx = 0; local
91 idx = i;
96 es->streams[idx].cnode = cnode;
142 es[i].evsel_idx = pos->core.idx;
221 static void print_callchain_pair(struct stream *base_stream, int idx, argument
232 printf("\nhot chain pair %d:\n", idx);
267 static void print_stream_callchain(struct stream *stream, int idx, argument
275 printf("\nhot chain %d:\n", idx);
306 int i, idx = 0; local
312 print_callchain_pair(base_stream, ++idx,
[all...]
/linux-master/arch/mips/kvm/
H A Dtlb.c52 int idx; local
59 idx = read_c0_index();
61 BUG_ON(idx >= current_cpu_data.tlbsize);
63 if (idx >= 0) {
64 write_c0_entryhi(UNIQUE_ENTRYHI(idx));
73 return idx;
115 int idx; local
126 idx = _kvm_mips_host_tlb_inv((va & VPN2_MASK) |
143 if (idx > 0)
144 kvm_debug("%s: Invalidated root entryhi %#lx @ idx
490 int idx = read_gc0_index(); local
507 int idx = read_gc0_index(); local
[all...]
/linux-master/drivers/isdn/hardware/mISDN/
H A Dnetjet.c32 int idx; member in struct:tiger_dma
44 int idx; member in struct:tiger_ch
175 fill_mem(struct tiger_ch *bc, u32 idx, u32 cnt, u32 fill) argument
180 pr_debug("%s: B%1d fill %02x len %d idx %d/%d\n", card->name,
181 bc->bch.nr, fill, cnt, idx, card->send.idx);
188 val = card->send.start[idx];
191 card->send.start[idx++] = val;
192 if (idx >= card->send.size)
193 idx
363 read_dma(struct tiger_ch *bc, u32 idx, int cnt) argument
445 u32 idx; local
[all...]
/linux-master/drivers/clk/imx/
H A Dclk-imx8qxp-lpcg.c166 unsigned int idx = clkspec->args[0] / 4; local
168 if (idx >= hw_data->num) {
169 pr_err("%s: invalid index %u\n", __func__, idx);
173 return hw_data->hws[idx];
186 int idx; local
246 idx = bit_offset[i] / 4;
247 if (idx >= IMX_LPCG_MAX_CLKS) {
254 clk_hws[idx] = imx_clk_lpcg_scu_dev(&pdev->dev, output_names[i],
257 if (IS_ERR(clk_hws[idx])) {
259 idx);
[all...]
/linux-master/drivers/hwtracing/coresight/
H A Dcoresight-etm3x-sysfs.c313 u8 idx; local
319 idx = config->addr_idx;
320 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE ||
321 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) {
326 val = config->addr_val[idx];
336 u8 idx; local
347 idx = config->addr_idx;
348 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE ||
349 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) {
354 config->addr_val[idx]
365 u8 idx; local
395 u8 idx; local
434 u8 idx; local
457 u8 idx; local
488 u8 idx; local
511 u8 idx; local
[all...]
/linux-master/drivers/gpu/drm/radeon/
H A Dr200.c147 unsigned idx, unsigned reg)
161 idx_value = radeon_get_ib_value(p, idx);
167 idx, reg);
176 r = r100_reloc_pitch_offset(p, pkt, idx, reg);
184 idx, reg);
191 ib[idx] = idx_value + ((u32)reloc->gpu_offset);
197 idx, reg);
204 ib[idx] = idx_value + ((u32)reloc->gpu_offset);
216 idx, reg);
228 ib[idx]
145 r200_packet0_check(struct radeon_cs_parser *p, struct radeon_cs_packet *pkt, unsigned idx, unsigned reg) argument
[all...]
/linux-master/drivers/misc/vmw_vmci/
H A Dvmci_doorbell.c39 u32 idx; member in struct:dbell_entry
118 static struct dbell_entry *dbell_index_table_find(u32 idx) argument
120 u32 bucket = VMCI_DOORBELL_HASH(idx);
125 if (idx == dbell->idx)
186 entry->idx = new_notify_idx;
187 bucket = VMCI_DOORBELL_HASH(entry->idx);
204 if (entry->idx == max_notify_idx - 1) {
217 last_notify_idx_released = entry->idx;
361 if (dbell->idx
382 u32 idx; local
[all...]
/linux-master/arch/arm/mach-versatile/
H A Dspc.c271 int idx, max_opp = info->num_opps[cluster]; local
276 for (idx = 0; idx < max_opp; idx++, opps++) {
294 int idx, max_opp = info->num_opps[cluster]; local
297 for (idx = 0; idx < max_opp; idx++, opps++)
300 return (idx == max_opp) ? -EINVAL : idx;
395 uint32_t data = 0, off, ret, idx; local
422 int idx, ret = 0, max_opp; local
[all...]
/linux-master/drivers/iio/multiplexer/
H A Diio-mux.c40 static int iio_mux_select(struct mux *mux, int idx) argument
42 struct mux_child *child = &mux->child[idx];
43 struct iio_chan_spec const *chan = &mux->chan[idx];
93 int idx = chan - mux->chan; local
96 ret = iio_mux_select(mux, idx);
124 int idx = chan - mux->chan; local
127 ret = iio_mux_select(mux, idx);
151 int idx = chan - mux->chan; local
154 ret = iio_mux_select(mux, idx);
182 int idx local
204 int idx = chan - mux->chan; local
241 mux_configure_channel(struct device *dev, struct mux *mux, u32 state, const char *label, int idx) argument
[all...]
/linux-master/tools/bpf/bpftool/
H A Dcfg.c22 int idx; member in struct:func_node
32 int idx; member in struct:bb_node
81 new_func->idx = cfg->func_num;
209 bb->idx = bb_idx++;
212 last->idx = bb_idx++;
223 bb->idx = ENTRY_BLOCK_INDEX;
228 bb->idx = EXIT_BLOCK_INDEX;
389 if (bb->idx == ENTRY_BLOCK_INDEX || bb->idx == EXIT_BLOCK_INDEX)
395 func->idx, b
[all...]
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Dsoc15_common.h50 #define WREG32_FIELD15(ip, idx, reg, field, val) \
51 __WREG32_SOC15_RLC__(adev->reg_offset[ip##_HWIP][idx][mm##reg##_BASE_IDX] + mm##reg, \
53 adev->reg_offset[ip##_HWIP][idx][mm##reg##_BASE_IDX] + mm##reg, \
54 0, ip##_HWIP, idx) & \
56 0, ip##_HWIP, idx)
58 #define WREG32_FIELD15_PREREG(ip, idx, reg_name, field, val) \
59 __WREG32_SOC15_RLC__(adev->reg_offset[ip##_HWIP][idx][reg##reg_name##_BASE_IDX] + reg##reg_name, \
61 adev->reg_offset[ip##_HWIP][idx][reg##reg_name##_BASE_IDX] + reg##reg_name, \
62 0, ip##_HWIP, idx) & \
64 0, ip##_HWIP, idx)
[all...]
/linux-master/drivers/perf/
H A Dapple_m1_cpu_pmu.c365 m1_pmu_disable_counter_interrupt(event->hw.idx);
366 m1_pmu_disable_counter(event->hw.idx);
369 m1_pmu_configure_counter(event->hw.idx, evt, user, kernel);
370 m1_pmu_enable_counter(event->hw.idx);
371 m1_pmu_enable_counter_interrupt(event->hw.idx);
377 m1_pmu_disable_counter_interrupt(event->hw.idx);
378 m1_pmu_disable_counter(event->hw.idx);
387 int idx; local
403 for (idx = 0; idx < cpu_pm
440 int idx; local
[all...]
/linux-master/sound/pci/
H A Dak4531_codec.c33 int idx;
35 for (idx = 0; idx < 0x19; idx++)
37 idx, ak4531->regs[idx]);
371 unsigned int idx; local
396 for (idx = 0; idx <= 0x19; idx
438 int idx; local
[all...]

Completed in 441 milliseconds

<<11121314151617181920>>