Searched refs:idx (Results 1 - 25 of 3979) sorted by relevance

1234567891011>>

/linux-master/include/uapi/linux/netfilter/
H A Dxt_TCPOPTSTRIP.h7 #define tcpoptstrip_set_bit(bmap, idx) \
8 (bmap[(idx) >> 5] |= 1U << (idx & 31))
9 #define tcpoptstrip_test_bit(bmap, idx) \
10 (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
/linux-master/sound/aoa/codecs/
H A Dtas-basstreble.h92 static inline u8 tas3004_treble(int idx) argument
94 return tas3004_treble_table[idx];
128 static inline u8 tas3004_bass(int idx) argument
130 u8 result = tas3004_treble_table[idx];
132 if (idx >= 50)
133 result += tas3004_bass_diff_to_treble[idx-50];
/linux-master/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_csr.h21 #define HINIC_CSR_DMA_ATTR_ADDR(idx) \
22 (HINIC_DMA_ATTR_BASE + (idx) * HINIC_DMA_ATTR_STRIDE)
26 #define HINIC_CSR_PPF_ELECTION_ADDR(idx) \
27 (HINIC_ELECTION_BASE + (idx) * HINIC_PPF_ELECTION_STRIDE)
34 #define HINIC_CSR_API_CMD_CHAIN_HEAD_HI_ADDR(idx) \
35 (HINIC_CSR_API_CMD_BASE + 0x0 + (idx) * HINIC_CSR_API_CMD_STRIDE)
37 #define HINIC_CSR_API_CMD_CHAIN_HEAD_LO_ADDR(idx) \
38 (HINIC_CSR_API_CMD_BASE + 0x4 + (idx) * HINIC_CSR_API_CMD_STRIDE)
40 #define HINIC_CSR_API_CMD_STATUS_HI_ADDR(idx) \
41 (HINIC_CSR_API_CMD_BASE + 0x8 + (idx) * HINIC_CSR_API_CMD_STRID
[all...]
/linux-master/include/asm-generic/
H A Dfixmap.h26 * 'index to address' translation. If anyone tries to use the idx
30 static __always_inline unsigned long fix_to_virt(const unsigned int idx) argument
32 BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
33 return __fix_to_virt(idx);
64 #define set_fixmap(idx, phys) \
65 __set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL)
69 #define clear_fixmap(idx) \
70 __set_fixmap(idx, 0, FIXMAP_PAGE_CLEAR)
74 #define __set_fixmap_offset(idx, phys, flags) \
77 __set_fixmap(idx, phy
[all...]
/linux-master/arch/mips/include/asm/
H A Dtlb.h8 #define _UNIQUE_ENTRYHI(base, idx) \
9 (((base) + ((idx) << (PAGE_SHIFT + 1))) | \
11 #define UNIQUE_ENTRYHI(idx) _UNIQUE_ENTRYHI(CKSEG0, idx)
12 #define UNIQUE_GUEST_ENTRYHI(idx) _UNIQUE_ENTRYHI(CKSEG1, idx)
/linux-master/sound/
H A Dlast.c13 int idx, ok = 0; local
16 for (idx = 0; idx < SNDRV_CARDS; idx++) {
17 card = snd_card_ref(idx);
19 printk(KERN_INFO " #%i: %s\n", idx, card->longname);
/linux-master/tools/perf/arch/mips/include/
H A Ddwarf-regs-table.h22 #define REG_DWARFNUM_NAME(reg, idx) [idx] = "$" #reg
/linux-master/drivers/clk/uniphier/
H A Dclk-uniphier-peri.c9 #define UNIPHIER_PERI_CLK_UART(idx, ch) \
10 UNIPHIER_CLK_GATE("uart" #ch, (idx), "uart", 0x24, 19 + (ch))
15 #define UNIPHIER_PERI_CLK_I2C(idx, ch) \
16 UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c-common", 0x24, 5 + (ch))
18 #define UNIPHIER_PERI_CLK_FI2C(idx, ch) \
19 UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c", 0x24, 24 + (ch))
21 #define UNIPHIER_PERI_CLK_SCSSI(idx, ch) \
22 UNIPHIER_CLK_GATE("scssi" #ch, (idx), "spi", 0x20, 17 + (ch))
24 #define UNIPHIER_PERI_CLK_MCSSI(idx) \
25 UNIPHIER_CLK_GATE("mcssi", (idx), "sp
[all...]
/linux-master/kernel/events/
H A Dhw_breakpoint_test.c31 static struct perf_event *register_test_bp(int cpu, struct task_struct *tsk, int idx) argument
35 if (WARN_ON(idx < 0 || idx >= MAX_TEST_BREAKPOINTS))
39 attr.bp_addr = (unsigned long)&break_vars[idx];
124 int idx = 0; local
126 fill_bp_slots(test, &idx, get_test_cpu(0), NULL, 0);
127 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx));
128 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), NULL, idx));
133 int idx = 0; local
138 bool do_continue = fill_bp_slots(test, &idx, cp
148 int idx = 0; local
161 int idx = 0; local
170 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), get_other_task(test), idx)); local
179 int idx = 0; local
195 int idx = 0; local
215 int idx = 0; local
223 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), get_other_task(test), idx)); local
231 int idx = 0; local
239 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), get_other_task(test), idx)); local
248 int idx = 0; local
[all...]
/linux-master/include/trace/events/
H A Dcpuhp.h14 int idx,
17 TP_ARGS(cpu, target, idx, fun),
22 __field( int, idx )
29 __entry->idx = idx;
34 __entry->cpu, __entry->target, __entry->idx, __entry->fun)
41 int idx,
45 TP_ARGS(cpu, target, idx, fun, node),
50 __field( int, idx )
57 __entry->idx
[all...]
/linux-master/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); \
51 unsigned long mask, idx, tmp, sz = (size), __start = (start); \
57 idx = __start / BITS_PER_LONG; \
60 if ((idx + 1) * BITS_PER_LONG >= sz) \
62 idx++; \
65 sz = min(idx * BITS_PER_LON
[all...]
/linux-master/tools/lib/perf/include/perf/
H A Dcpumap.h51 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);
73 #define perf_cpu_map__for_each_cpu(cpu, idx, cpus) \
74 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \
75 (idx) < perf_cpu_map__nr(cpus); \
76 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx))
78 #define perf_cpu_map__for_each_cpu_skip_any(_cpu, idx, cpus) \
79 for ((idx) = 0, (_cpu) = perf_cpu_map__cpu(cpus, idx); \
[all...]
/linux-master/arch/mips/ralink/
H A Dclk.c20 static const char *clk_cpu(int *idx) argument
24 *idx = 0;
27 *idx = 0;
30 *idx = 0;
33 *idx = 0;
36 *idx = 1;
39 *idx = 1;
42 *idx = 1;
45 *idx = 2;
48 *idx
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Duprobe_multi.c10 #define NAME(name, idx) PASTE(name, idx)
12 #define DEF(name, idx) int NAME(name, idx)(void) { return 0; }
13 #define CALL(name, idx) NAME(name, idx)();
15 #define F(body, name, idx) body(name, idx)
17 #define F10(body, name, idx) \
18 F(body, PASTE(name, idx),
[all...]
/linux-master/tools/perf/arch/powerpc/include/
H A Ddwarf-regs-table.h10 #define REG_DWARFNUM_NAME(reg, idx) [idx] = "%" #reg
/linux-master/drivers/media/test-drivers/vivid/
H A Dvivid-cec.h10 unsigned int idx,
/linux-master/include/xen/interface/io/
H A Dconsole.h15 #define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1))
/linux-master/drivers/clk/meson/
H A Dmeson-clkc-utils.c14 unsigned int idx = clkspec->args[0]; local
16 if (idx >= data->num) {
17 pr_err("%s: invalid index %u\n", __func__, idx);
21 return data->hws[idx];
/linux-master/arch/arm64/kernel/
H A Dperf_regs.c12 static u64 perf_ext_regs_value(int idx) argument
14 switch (idx) {
30 u64 perf_reg_value(struct pt_regs *regs, int idx) argument
32 if (WARN_ON_ONCE((u32)idx >= PERF_REG_ARM64_EXTENDED_MAX))
58 if ((u32)idx == PERF_REG_ARM64_SP)
60 if ((u32)idx == PERF_REG_ARM64_LR)
62 if (idx == 15)
66 if ((u32)idx == PERF_REG_ARM64_SP)
69 if ((u32)idx == PERF_REG_ARM64_PC)
72 if ((u32)idx >
[all...]
/linux-master/kernel/sched/
H A Dcpudeadline.c25 static void cpudl_heapify_down(struct cpudl *cp, int idx) argument
29 int orig_cpu = cp->elements[idx].cpu;
30 u64 orig_dl = cp->elements[idx].dl;
32 if (left_child(idx) >= cp->size)
39 l = left_child(idx);
40 r = right_child(idx);
41 largest = idx;
53 if (largest == idx)
56 /* pull largest child onto idx */
57 cp->elements[idx]
68 cpudl_heapify_up(struct cpudl *cp, int idx) argument
94 cpudl_heapify(struct cpudl *cp, int idx) argument
[all...]
/linux-master/drivers/net/can/sja1000/
H A Dsja1000_isa.c122 int idx = pdev->id; local
125 dev_dbg(&pdev->dev, "probing idx=%d: port=%#lx, mem=%#lx, irq=%d\n",
126 idx, port[idx], mem[idx], irq[idx]);
128 if (mem[idx]) {
129 if (!request_mem_region(mem[idx], iosize, DRV_NAME)) {
133 base = ioremap(mem[idx], iosize);
139 if (indirect[idx] >
230 int idx = pdev->id; local
256 int idx, err; local
302 int idx; local
[all...]
/linux-master/drivers/net/can/cc770/
H A Dcc770_isa.c167 int idx = pdev->id; local
171 dev_dbg(&pdev->dev, "probing idx=%d: port=%#lx, mem=%#lx, irq=%d\n",
172 idx, port[idx], mem[idx], irq[idx]);
173 if (mem[idx]) {
174 if (!request_mem_region(mem[idx], iosize, KBUILD_MODNAME)) {
178 base = ioremap(mem[idx], iosize);
184 if (indirect[idx] >
292 int idx = pdev->id; local
318 int idx, err; local
363 int idx; local
[all...]
/linux-master/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_debugfs_kunit.c41 int idx; local
46 for (idx = 0; idx < kslist->cnt; idx++) {
47 if (kslist->keysets[idx] == VCAP_KFS_ETAG)
48 return kslist->keysets[idx];
49 if (kslist->keysets[idx] ==
51 return kslist->keysets[idx];
52 if (kslist->keysets[idx] ==
54 return kslist->keysets[idx];
116 int idx; local
158 int idx; local
263 int idx, cnt; local
315 int ret, idx, addr; local
416 int idx; local
527 int ret, idx; local
[all...]
/linux-master/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:
37 string += flag_fields[event_name][field_name]['values'][idx]
39 if idx and (value & idx) == idx:
42 string += flag_fields[event_name][field_name]['values'][idx]
44 value &= ~idx
52 for idx in sorted(symbolic_fields[event_name][field_name]['values']):
53 if not value and not idx
[all...]
/linux-master/arch/sh/kernel/cpu/sh3/
H A Dclock-sh7709.c25 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); local
27 clk->rate *= pfc_divisors[idx];
37 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); local
39 return clk->parent->rate / pfc_divisors[idx];
49 int idx = (frqcr & 0x0080) ? local
52 return clk->parent->rate * stc_multipliers[idx];
62 int idx = ((frqcr & 0x4000) >> 12) | ((frqcr & 0x000c) >> 2); local
64 return clk->parent->rate / ifc_divisors[idx];
78 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) argument
80 if (idx < ARRAY_SIZ
[all...]

Completed in 353 milliseconds

1234567891011>>