Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 504) sorted by relevance

12345678910>>...21

/linux-4.19.296/drivers/clk/uniphier/
Dclk-uniphier-sys.c32 #define UNIPHIER_LD4_SYS_CLK_NAND(idx) \ argument
34 UNIPHIER_CLK_GATE("nand", (idx), "nand-50m", 0x2104, 2)
36 #define UNIPHIER_PRO5_SYS_CLK_NAND(idx) \ argument
38 UNIPHIER_CLK_GATE("nand", (idx), "nand-50m", 0x2104, 2)
40 #define UNIPHIER_LD11_SYS_CLK_NAND(idx) \ argument
42 UNIPHIER_CLK_GATE("nand", (idx), "nand-50m", 0x210c, 0)
44 #define UNIPHIER_SYS_CLK_NAND_4X(idx) \ argument
45 UNIPHIER_CLK_FACTOR("nand-4x", (idx), "nand", 4, 1)
47 #define UNIPHIER_LD11_SYS_CLK_EMMC(idx) \ argument
48 UNIPHIER_CLK_GATE("emmc", (idx), NULL, 0x210c, 2)
[all …]
Dclk-uniphier-peri.c18 #define UNIPHIER_PERI_CLK_UART(idx, ch) \ argument
19 UNIPHIER_CLK_GATE("uart" #ch, (idx), "uart", 0x24, 19 + (ch))
24 #define UNIPHIER_PERI_CLK_I2C(idx, ch) \ argument
25 UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c-common", 0x24, 5 + (ch))
27 #define UNIPHIER_PERI_CLK_FI2C(idx, ch) \ argument
28 UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c", 0x24, 24 + (ch))
30 #define UNIPHIER_PERI_CLK_SCSSI(idx, ch) \ argument
31 UNIPHIER_CLK_GATE("scssi" #ch, (idx), "spi", 0x20, 17 + (ch))
33 #define UNIPHIER_PERI_CLK_MCSSI(idx) \ argument
34 UNIPHIER_CLK_GATE("mcssi", (idx), "spi", 0x24, 14)
/linux-4.19.296/include/asm-generic/
Dfixmap.h29 static __always_inline unsigned long fix_to_virt(const unsigned int idx) in fix_to_virt() argument
31 BUILD_BUG_ON(idx >= __end_of_fixed_addresses); in fix_to_virt()
32 return __fix_to_virt(idx); in fix_to_virt()
63 #define set_fixmap(idx, phys) \ argument
64 __set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL)
68 #define clear_fixmap(idx) \ argument
69 __set_fixmap(idx, 0, FIXMAP_PAGE_CLEAR)
73 #define __set_fixmap_offset(idx, phys, flags) \ argument
76 __set_fixmap(idx, phys, flags); \
77 ________addr = fix_to_virt(idx) + ((phys) & (PAGE_SIZE - 1)); \
[all …]
/linux-4.19.296/include/trace/events/
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 = idx;
62 __entry->cpu, __entry->target, __entry->idx, __entry->fun)
[all …]
/linux-4.19.296/include/linux/
Dmemcontrol.h567 int idx) in memcg_page_state() argument
569 long x = atomic_long_read(&memcg->stat[idx]); in memcg_page_state()
579 int idx, int val) in __mod_memcg_state() argument
586 x = val + __this_cpu_read(memcg->stat_cpu->count[idx]); in __mod_memcg_state()
588 atomic_long_add(x, &memcg->stat[idx]); in __mod_memcg_state()
591 __this_cpu_write(memcg->stat_cpu->count[idx], x); in __mod_memcg_state()
596 int idx, int val) in mod_memcg_state() argument
601 __mod_memcg_state(memcg, idx, val); in mod_memcg_state()
623 int idx, int val) in __mod_memcg_page_state() argument
626 __mod_memcg_state(page->mem_cgroup, idx, val); in __mod_memcg_page_state()
[all …]
Dsrcutiny.h73 int idx; in __srcu_read_lock() local
75 idx = READ_ONCE(sp->srcu_idx); in __srcu_read_lock()
76 WRITE_ONCE(sp->srcu_lock_nesting[idx], sp->srcu_lock_nesting[idx] + 1); in __srcu_read_lock()
77 return idx; in __srcu_read_lock()
94 int idx; in srcu_torture_stats_print() local
96 idx = READ_ONCE(sp->srcu_idx) & 0x1; in srcu_torture_stats_print()
98 tt, tf, idx, in srcu_torture_stats_print()
99 READ_ONCE(sp->srcu_lock_nesting[!idx]), in srcu_torture_stats_print()
100 READ_ONCE(sp->srcu_lock_nesting[idx])); in srcu_torture_stats_print()
Drbtree_latch.h70 __lt_from_rb(struct rb_node *node, int idx) in __lt_from_rb() argument
72 return container_of(node, struct latch_tree_node, node[idx]); in __lt_from_rb()
76 __lt_insert(struct latch_tree_node *ltn, struct latch_tree_root *ltr, int idx, in __lt_insert() argument
79 struct rb_root *root = &ltr->tree[idx]; in __lt_insert()
81 struct rb_node *node = &ltn->node[idx]; in __lt_insert()
87 ltp = __lt_from_rb(parent, idx); in __lt_insert()
100 __lt_erase(struct latch_tree_node *ltn, struct latch_tree_root *ltr, int idx) in __lt_erase() argument
102 rb_erase(&ltn->node[idx], &ltr->tree[idx]); in __lt_erase()
106 __lt_find(void *key, struct latch_tree_root *ltr, int idx, in __lt_find() argument
109 struct rb_node *node = rcu_dereference_raw(ltr->tree[idx].rb_node); in __lt_find()
[all …]
Dcpufreq.h620 #define cpufreq_for_each_entry_idx(pos, table, idx) \ argument
621 for (pos = table, idx = 0; pos->frequency != CPUFREQ_TABLE_END; \
622 pos++, idx++)
645 #define cpufreq_for_each_valid_entry_idx(pos, table, idx) \ argument
646 cpufreq_for_each_entry_idx(pos, table, idx) \
680 int idx, best = -1; in cpufreq_table_find_index_al() local
682 cpufreq_for_each_valid_entry_idx(pos, table, idx) { in cpufreq_table_find_index_al()
686 return idx; in cpufreq_table_find_index_al()
688 best = idx; in cpufreq_table_find_index_al()
701 int idx, best = -1; in cpufreq_table_find_index_dl() local
[all …]
Dhugetlb_cgroup.h54 extern int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages,
56 extern void hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages,
59 extern void hugetlb_cgroup_uncharge_page(int idx, unsigned long nr_pages,
61 extern void hugetlb_cgroup_uncharge_cgroup(int idx, unsigned long nr_pages,
85 hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, in hugetlb_cgroup_charge_cgroup() argument
92 hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, in hugetlb_cgroup_commit_charge() argument
99 hugetlb_cgroup_uncharge_page(int idx, unsigned long nr_pages, struct page *page) in hugetlb_cgroup_uncharge_page() argument
104 hugetlb_cgroup_uncharge_cgroup(int idx, unsigned long nr_pages, in hugetlb_cgroup_uncharge_cgroup() argument
/linux-4.19.296/drivers/media/dvb-core/
Ddvb_ringbuffer.c252 ssize_t dvb_ringbuffer_pkt_read_user(struct dvb_ringbuffer *rbuf, size_t idx, in dvb_ringbuffer_pkt_read_user() argument
259 pktlen = rbuf->data[idx] << 8; in dvb_ringbuffer_pkt_read_user()
260 pktlen |= rbuf->data[(idx + 1) % rbuf->size]; in dvb_ringbuffer_pkt_read_user()
264 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()
268 if (copy_to_user(buf, rbuf->data+idx, split)) in dvb_ringbuffer_pkt_read_user()
272 idx = 0; in dvb_ringbuffer_pkt_read_user()
274 if (copy_to_user(buf, rbuf->data+idx, todo)) in dvb_ringbuffer_pkt_read_user()
280 ssize_t dvb_ringbuffer_pkt_read(struct dvb_ringbuffer *rbuf, size_t idx, in dvb_ringbuffer_pkt_read() argument
287 pktlen = rbuf->data[idx] << 8; in dvb_ringbuffer_pkt_read()
[all …]
/linux-4.19.296/lib/
Dfind_bit.c104 unsigned long idx; in find_first_bit() local
106 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_bit()
107 if (addr[idx]) in find_first_bit()
108 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit()
122 unsigned long idx; in find_first_zero_bit() local
124 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_zero_bit()
125 if (addr[idx] != ~0UL) in find_first_zero_bit()
126 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit()
139 unsigned long idx = (size-1) / BITS_PER_LONG; in find_last_bit() local
142 val &= addr[idx]; in find_last_bit()
[all …]
Diov_iter.c323 int idx = i->idx; in sanity() local
329 if (unlikely(idx != ((next - 1) & (pipe->buffers - 1)))) in sanity()
332 p = &pipe->bufs[idx]; in sanity()
336 if (idx != (next & (pipe->buffers - 1))) in sanity()
341 printk(KERN_ERR "idx = %d, offset = %zd\n", i->idx, i->iov_offset); in sanity()
344 for (idx = 0; idx < pipe->buffers; idx++) in sanity()
346 pipe->bufs[idx].ops, in sanity()
347 pipe->bufs[idx].page, in sanity()
348 pipe->bufs[idx].offset, in sanity()
349 pipe->bufs[idx].len); in sanity()
[all …]
/linux-4.19.296/drivers/irqchip/
Dirq-bcm7120-l2.c63 unsigned int idx; in bcm7120_l2_intc_irq_handle() local
67 for (idx = 0; idx < b->n_words; idx++) { in bcm7120_l2_intc_irq_handle()
68 int base = idx * IRQS_PER_WORD; in bcm7120_l2_intc_irq_handle()
75 pending = irq_reg_readl(gc, b->stat_offset[idx]) & in bcm7120_l2_intc_irq_handle()
77 data->irq_map_mask[idx]; in bcm7120_l2_intc_irq_handle()
117 unsigned int idx; in bcm7120_l2_intc_init_one() local
134 for (idx = 0; idx < data->n_words; idx++) { in bcm7120_l2_intc_init_one()
136 l1_data->irq_map_mask[idx] |= in bcm7120_l2_intc_init_one()
138 irq * data->n_words + idx); in bcm7120_l2_intc_init_one()
140 l1_data->irq_map_mask[idx] = 0xffffffff; in bcm7120_l2_intc_init_one()
[all …]
Dirq-bcm6345-l1.c125 unsigned int idx; in bcm6345_l1_irq_handle() local
129 for (idx = 0; idx < intc->n_words; idx++) { in bcm6345_l1_irq_handle()
130 int base = idx * IRQS_PER_WORD; in bcm6345_l1_irq_handle()
135 pending = __raw_readl(cpu->map_base + reg_status(intc, idx)); in bcm6345_l1_irq_handle()
136 pending &= __raw_readl(cpu->map_base + reg_enable(intc, idx)); in bcm6345_l1_irq_handle()
235 unsigned int idx, in bcm6345_l1_init_one() argument
243 if (of_address_to_resource(dn, idx, &res)) in bcm6345_l1_init_one()
253 cpu = intc->cpus[idx] = kzalloc(sizeof(*cpu) + n_words * sizeof(u32), in bcm6345_l1_init_one()
268 cpu->parent_irq = irq_of_parse_and_map(dn, idx); in bcm6345_l1_init_one()
305 unsigned int idx; in bcm6345_l1_of_init() local
[all …]
/linux-4.19.296/drivers/char/ipmi/
Dipmi_si_port_io.c54 int idx; in port_cleanup() local
57 for (idx = 0; idx < io->io_size; idx++) in port_cleanup()
58 release_region(addr + idx * io->regspacing, in port_cleanup()
66 int idx; in ipmi_si_port_setup() local
100 for (idx = 0; idx < io->io_size; idx++) { in ipmi_si_port_setup()
101 if (request_region(addr + idx * io->regspacing, in ipmi_si_port_setup()
104 while (idx--) in ipmi_si_port_setup()
105 release_region(addr + idx * io->regspacing, in ipmi_si_port_setup()
Dipmi_si_mem_io.c61 int idx; in mem_region_cleanup() local
63 for (idx = 0; idx < num; idx++) in mem_region_cleanup()
64 release_mem_region(addr + idx * io->regspacing, in mem_region_cleanup()
79 int mapsize, idx; in ipmi_si_mem_setup() local
119 for (idx = 0; idx < io->io_size; idx++) { in ipmi_si_mem_setup()
120 if (request_mem_region(addr + idx * io->regspacing, in ipmi_si_mem_setup()
123 mem_region_cleanup(io, idx); in ipmi_si_mem_setup()
/linux-4.19.296/drivers/clk/
Dclk-scpi.c76 int idx; in __scpi_dvfs_round_rate() local
80 for (idx = 0; idx < clk->info->count; idx++, opp++) { in __scpi_dvfs_round_rate()
97 int idx = clk->scpi_ops->dvfs_get_idx(clk->id); in scpi_dvfs_recalc_rate() local
100 if (idx < 0) in scpi_dvfs_recalc_rate()
103 opp = clk->info->opps + idx; in scpi_dvfs_recalc_rate()
117 int idx, max_opp = clk->info->count; in __scpi_find_dvfs_index() local
120 for (idx = 0; idx < max_opp; idx++, opp++) in __scpi_find_dvfs_index()
122 return idx; in __scpi_find_dvfs_index()
191 unsigned int idx = clkspec->args[0], count; in scpi_of_clk_src_get() local
195 if (idx == sclk->id) in scpi_of_clk_src_get()
[all …]
/linux-4.19.296/drivers/clk/samsung/
Dclk.c104 unsigned int idx, ret; in samsung_clk_register_alias() local
106 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_alias()
109 idx); in samsung_clk_register_alias()
134 unsigned int idx, ret; in samsung_clk_register_fixed_rate() local
136 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_fixed_rate()
163 unsigned int idx; in samsung_clk_register_fixed_factor() local
165 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_fixed_factor()
184 unsigned int idx; in samsung_clk_register_mux() local
186 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_mux()
207 unsigned int idx; in samsung_clk_register_div() local
[all …]
/linux-4.19.296/include/rdma/
Duverbs_ioctl.h448 unsigned int idx) in uverbs_attr_is_valid() argument
450 return test_bit(uapi_bkey_attr(uapi_key_attr(idx)), in uverbs_attr_is_valid()
457 u16 idx) in uverbs_attr_get() argument
459 if (!uverbs_attr_is_valid(attrs_bundle, idx)) in uverbs_attr_get()
462 return &attrs_bundle->attrs[uapi_bkey_attr(uapi_key_attr(idx))]; in uverbs_attr_get()
466 u16 idx) in uverbs_attr_get_enum_id() argument
468 const struct uverbs_attr *attr = uverbs_attr_get(attrs_bundle, idx); in uverbs_attr_get_enum_id()
477 u16 idx) in uverbs_attr_get_obj() argument
481 attr = uverbs_attr_get(attrs_bundle, idx); in uverbs_attr_get_obj()
489 u16 idx) in uverbs_attr_get_uobject() argument
[all …]
/linux-4.19.296/include/sound/
Dhda_regmap.h47 #define snd_hdac_regmap_encode_amp(nid, ch, dir, idx) \ argument
51 (idx))
61 #define snd_hdac_regmap_encode_amp_stereo(nid, dir, idx) \ argument
65 (idx))
134 int ch, int dir, int idx) in snd_hdac_regmap_get_amp() argument
136 unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); in snd_hdac_regmap_get_amp()
158 int ch, int dir, int idx, int mask, int val) in snd_hdac_regmap_update_amp() argument
160 unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); in snd_hdac_regmap_update_amp()
179 int dir, int idx) in snd_hdac_regmap_get_amp_stereo() argument
181 unsigned int cmd = snd_hdac_regmap_encode_amp_stereo(nid, dir, idx); in snd_hdac_regmap_get_amp_stereo()
[all …]
/linux-4.19.296/include/uapi/linux/netfilter/
Dxt_TCPOPTSTRIP.h7 #define tcpoptstrip_set_bit(bmap, idx) \ argument
8 (bmap[(idx) >> 5] |= 1U << (idx & 31))
9 #define tcpoptstrip_test_bit(bmap, idx) \ argument
10 (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
/linux-4.19.296/drivers/reset/hisilicon/
Dreset-hi3660.c27 unsigned long idx, bool assert) in hi3660_reset_program_hw() argument
30 unsigned int offset = idx >> 8; in hi3660_reset_program_hw()
31 unsigned int mask = BIT(idx & 0x1f); in hi3660_reset_program_hw()
40 unsigned long idx) in hi3660_reset_assert() argument
42 return hi3660_reset_program_hw(rcdev, idx, true); in hi3660_reset_assert()
46 unsigned long idx) in hi3660_reset_deassert() argument
48 return hi3660_reset_program_hw(rcdev, idx, false); in hi3660_reset_deassert()
52 unsigned long idx) in hi3660_reset_dev() argument
56 err = hi3660_reset_assert(rcdev, idx); in hi3660_reset_dev()
60 return hi3660_reset_deassert(rcdev, idx); in hi3660_reset_dev()
/linux-4.19.296/fs/ubifs/
Dcommit.c513 struct ubifs_idx_node idx __aligned(8);
528 struct ubifs_idx_node *idx; in dbg_old_index_check_init() local
537 idx = kmalloc(c->max_idx_node_sz, GFP_NOFS); in dbg_old_index_check_init()
538 if (!idx) in dbg_old_index_check_init()
541 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in dbg_old_index_check_init()
545 d->old_zroot_level = le16_to_cpu(idx->level); in dbg_old_index_check_init()
546 d->old_zroot_sqnum = le64_to_cpu(idx->ch.sqnum); in dbg_old_index_check_init()
548 kfree(idx); in dbg_old_index_check_init()
572 struct ubifs_idx_node *idx; in dbg_check_old_index() local
608 idx = &i->idx; in dbg_check_old_index()
[all …]
/linux-4.19.296/drivers/reset/sti/
Dreset-syscfg.c53 unsigned long idx, int assert) in syscfg_reset_program_hw() argument
60 if (idx >= rcdev->nr_resets) in syscfg_reset_program_hw()
63 ch = &rst->channels[idx]; in syscfg_reset_program_hw()
92 unsigned long idx) in syscfg_reset_assert() argument
94 return syscfg_reset_program_hw(rcdev, idx, true); in syscfg_reset_assert()
98 unsigned long idx) in syscfg_reset_deassert() argument
100 return syscfg_reset_program_hw(rcdev, idx, false); in syscfg_reset_deassert()
104 unsigned long idx) in syscfg_reset_dev() argument
108 err = syscfg_reset_assert(rcdev, idx); in syscfg_reset_dev()
112 return syscfg_reset_deassert(rcdev, idx); in syscfg_reset_dev()
[all …]
/linux-4.19.296/drivers/xen/
Dmanage.c224 int idx; in shutdown_handler() local
241 for (idx = 0; idx < ARRAY_SIZE(shutdown_handlers); idx++) { in shutdown_handler()
242 if (strcmp(str, shutdown_handlers[idx].command) == 0) in shutdown_handler()
247 if (idx < ARRAY_SIZE(shutdown_handlers)) in shutdown_handler()
256 if (idx < ARRAY_SIZE(shutdown_handlers)) { in shutdown_handler()
257 shutdown_handlers[idx].cb(); in shutdown_handler()
330 int idx; in setup_shutdown_watcher() local
349 for (idx = 0; idx < ARRAY_SIZE(shutdown_handlers); idx++) { in setup_shutdown_watcher()
350 if (!shutdown_handlers[idx].flag) in setup_shutdown_watcher()
353 shutdown_handlers[idx].command); in setup_shutdown_watcher()

12345678910>>...21