Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/include/linux/
Dscx200_gpio.h2 u32 scx200_gpio_configure(unsigned index, u32 set, u32 clear);
11 #define __SCx200_GPIO_BANK unsigned bank = index>>5
14 #define __SCx200_GPIO_INDEX index &= 31
20 static inline int scx200_gpio_get(unsigned index) { in scx200_gpio_get() argument
25 return (inl(ioaddr) & (1<<index)) ? 1 : 0; in scx200_gpio_get()
32 static inline int scx200_gpio_current(unsigned index) { in scx200_gpio_current() argument
36 return (scx200_gpio_shadow[bank] & (1<<index)) ? 1 : 0; in scx200_gpio_current()
41 static inline void scx200_gpio_set_high(unsigned index) { in scx200_gpio_set_high() argument
46 set_bit(index, shadow); /* __set_bit()? */ in scx200_gpio_set_high()
52 static inline void scx200_gpio_set_low(unsigned index) { in scx200_gpio_set_low() argument
[all …]
Dnospec.h28 static inline unsigned long array_index_mask_nospec(unsigned long index, in array_index_mask_nospec() argument
36 OPTIMIZER_HIDE_VAR(index); in array_index_mask_nospec()
37 return ~(long)(index | (size - 1UL - index)) >> (BITS_PER_LONG - 1); in array_index_mask_nospec()
55 #define array_index_nospec(index, size) \ argument
57 typeof(index) _i = (index); \
Dxarray.h355 void *xa_load(struct xarray *, unsigned long index);
356 void *xa_store(struct xarray *, unsigned long index, void *entry, gfp_t);
357 void *xa_erase(struct xarray *, unsigned long index);
360 bool xa_get_mark(struct xarray *, unsigned long index, xa_mark_t);
361 void xa_set_mark(struct xarray *, unsigned long index, xa_mark_t);
362 void xa_clear_mark(struct xarray *, unsigned long index, xa_mark_t);
363 void *xa_find(struct xarray *xa, unsigned long *index,
365 void *xa_find_after(struct xarray *xa, unsigned long *index,
451 #define xa_for_each_range(xa, index, entry, start, last) \ argument
452 for (index = start, \
[all …]
Dmsi_api.h47 int index; member
58 unsigned int msi_domain_get_virq(struct device *dev, unsigned int domid, unsigned int index);
67 static inline unsigned int msi_get_virq(struct device *dev, unsigned int index) in msi_get_virq() argument
69 return msi_domain_get_virq(dev, MSI_DEFAULT_DOMAIN, index); in msi_get_virq()
Dof_address.h62 extern int of_address_to_resource(struct device_node *dev, int index,
64 extern void __iomem *of_iomap(struct device_node *device, int index);
66 int index, const char *name);
72 extern const __be32 *__of_get_address(struct device_node *dev, int index, int bar_no,
89 extern int of_range_to_resource(struct device_node *np, int index,
94 int index, const char *name) in of_io_request_and_map() argument
105 static inline const __be32 *__of_get_address(struct device_node *dev, int index, int bar_no, in __of_get_address() argument
148 static inline int of_range_to_resource(struct device_node *np, int index, in of_range_to_resource() argument
161 extern int of_address_to_resource(struct device_node *dev, int index,
163 void __iomem *of_iomap(struct device_node *node, int index);
[all …]
Dradix-tree.h107 unsigned long index; member
219 int radix_tree_insert(struct radix_tree_root *, unsigned long index,
221 void *__radix_tree_lookup(const struct radix_tree_root *, unsigned long index,
225 unsigned long index);
243 unsigned long index, unsigned int tag);
245 unsigned long index, unsigned int tag);
247 unsigned long index, unsigned int tag);
291 iter->index = 0; in radix_tree_iter_init()
324 struct radix_tree_iter *iter, unsigned long index) in radix_tree_iter_lookup() argument
326 radix_tree_iter_init(iter, index); in radix_tree_iter_lookup()
[all …]
Dof_irq.h23 int of_irq_parse_oldworld(const struct device_node *device, int index,
28 static inline int of_irq_parse_oldworld(const struct device_node *device, int index, in of_irq_parse_oldworld() argument
37 extern int of_irq_to_resource(struct device_node *dev, int index,
42 extern int of_irq_parse_one(struct device_node *device, int index,
45 extern int of_irq_get(struct device_node *dev, int index);
62 static inline int of_irq_parse_one(struct device_node *device, int index, in of_irq_parse_one() argument
71 static inline int of_irq_get(struct device_node *dev, int index) in of_irq_get() argument
116 extern unsigned int irq_of_parse_and_map(struct device_node *node, int index);
120 int index) in irq_of_parse_and_map() argument
Ddma-fence-array.h78 #define dma_fence_array_for_each(fence, index, head) \ argument
79 for (index = 0, fence = dma_fence_array_first(head); fence; \
80 ++(index), fence = dma_fence_array_next(head, index))
97 unsigned int index);
Dpagemap.h488 pgoff_t index) in mapping_align_index() argument
490 return round_down(index, mapping_min_folio_nrpages(mapping)); in mapping_align_index()
696 pgoff_t index, unsigned long max_scan);
698 pgoff_t index, unsigned long max_scan);
760 void *filemap_get_entry(struct address_space *mapping, pgoff_t index);
761 struct folio *__filemap_get_folio(struct address_space *mapping, pgoff_t index,
763 struct page *pagecache_get_page(struct address_space *mapping, pgoff_t index,
778 pgoff_t index) in filemap_get_folio() argument
780 return __filemap_get_folio(mapping, index, 0, 0); in filemap_get_folio()
796 pgoff_t index) in filemap_lock_folio() argument
[all …]
Dsbitmap.h174 static inline unsigned int __map_depth(const struct sbitmap *sb, int index) in __map_depth() argument
176 if (index == sb->map_nr - 1) in __map_depth()
177 return sb->depth - (index << sb->shift); in __map_depth()
256 unsigned int index; in __sbitmap_for_each_set() local
262 index = SB_NR_TO_INDEX(sb, start); in __sbitmap_for_each_set()
268 __map_depth(sb, index) - nr, in __sbitmap_for_each_set()
272 word = sb->map[index].word & ~sb->map[index].cleared; in __sbitmap_for_each_set()
286 if (!fn(sb, (index << sb->shift) + nr, data)) in __sbitmap_for_each_set()
293 if (++index >= sb->map_nr) in __sbitmap_for_each_set()
294 index = 0; in __sbitmap_for_each_set()
[all …]
Dcpu_rmap.h28 u16 index; member
38 extern int cpu_rmap_update(struct cpu_rmap *rmap, u16 index,
43 return rmap->near[cpu].index; in cpu_rmap_lookup_index()
48 return rmap->obj[rmap->near[cpu].index]; in cpu_rmap_lookup_obj()
Dreset.h45 const char *id, int index, bool shared,
48 int index, bool shared,
58 const char *id, int index, bool shared,
119 const char *id, int index, bool shared, in __of_reset_control_get() argument
127 int index, bool shared, bool optional, in __reset_control_get() argument
177 int index, bool shared, bool optional, in __devm_reset_control_get() argument
514 struct device_node *node, int index) in of_reset_control_get_exclusive_by_index() argument
516 return __of_reset_control_get(node, NULL, index, false, false, true); in of_reset_control_get_exclusive_by_index()
542 struct device_node *node, int index) in of_reset_control_get_shared_by_index() argument
544 return __of_reset_control_get(node, NULL, index, true, false, false); in of_reset_control_get_shared_by_index()
[all …]
Dvia_i2c.h21 int viafb_i2c_readbyte(u8 adap, u8 slave_addr, u8 index, u8 *pdata);
22 int viafb_i2c_writebyte(u8 adap, u8 slave_addr, u8 index, u8 data);
23 int viafb_i2c_readbytes(u8 adap, u8 slave_addr, u8 index, u8 *buff, int buff_len);
Dshmem_fs.h112 pgoff_t index, gfp_t gfp_mask);
118 struct vm_area_struct *vma, pgoff_t index,
122 struct vm_area_struct *vma, pgoff_t index, in shmem_allowable_huge_orders() argument
149 int shmem_get_folio(struct inode *inode, pgoff_t index, loff_t write_end,
152 pgoff_t index, gfp_t gfp);
155 pgoff_t index) in shmem_read_folio() argument
157 return shmem_read_folio_gfp(mapping, index, mapping_gfp_mask(mapping)); in shmem_read_folio()
161 struct address_space *mapping, pgoff_t index) in shmem_read_mapping_page() argument
163 return shmem_read_mapping_page_gfp(mapping, index, in shmem_read_mapping_page()
/include/trace/events/
Dhwmon.h12 TP_PROTO(int index, const char *attr_name, long val),
14 TP_ARGS(index, attr_name, val),
17 __field(int, index)
23 __entry->index = index;
29 __entry->index, __get_str(attr_name), __entry->val)
34 TP_PROTO(int index, const char *attr_name, long val),
36 TP_ARGS(index, attr_name, val)
41 TP_PROTO(int index, const char *attr_name, long val),
43 TP_ARGS(index, attr_name, val)
48 TP_PROTO(int index, const char *attr_name, const char *s),
[all …]
Dfilemap.h25 __field(unsigned long, index)
33 __entry->index = folio->index;
45 __entry->index << PAGE_SHIFT,
63 pgoff_t index,
67 TP_ARGS(mapping, index, last_index),
72 __field(unsigned long, index)
83 __entry->index = index;
91 ((loff_t)__entry->index) << PAGE_SHIFT,
99 pgoff_t index,
102 TP_ARGS(mapping, index, last_index)
[all …]
Dmaple_tree.h23 __field(unsigned long, index)
32 __entry->index = mas->index;
42 (unsigned long) __entry->index,
56 __field(unsigned long, index)
65 __entry->index = mas->index;
75 (unsigned long) __entry->index,
91 __field(unsigned long, index)
102 __entry->index = mas->index;
114 (unsigned long) __entry->index,
/include/drm/
Ddrm_exec.h63 drm_exec_obj(struct drm_exec *exec, unsigned long index) in drm_exec_obj() argument
65 return index < exec->num_objects ? exec->objects[index] : NULL; in drm_exec_obj()
76 #define drm_exec_for_each_locked_object(exec, index, obj) \ argument
77 for ((index) = 0; ((obj) = drm_exec_obj(exec, index)); ++(index))
90 #define drm_exec_for_each_locked_object_reverse(exec, index, obj) \ argument
91 for ((index) = (exec)->num_objects - 1; \
92 ((obj) = drm_exec_obj(exec, index)); --(index))
/include/linux/fsl/bestcomm/
Dbestcomm.h55 unsigned short index; member
108 return ((tsk->index + 1) == tsk->num_bd) ? 0 : tsk->index + 1; in _bcom_next_index()
129 return tsk->index == tsk->outdex; in bcom_queue_empty()
148 *bcom_get_bd(struct bcom_task *tsk, unsigned int index) in bcom_get_bd() argument
152 return ((void *)tsk->bd) + (index * tsk->bd_size); in bcom_get_bd()
181 bd = bcom_get_bd(tsk, tsk->index); in bcom_prepare_next_buffer()
189 struct bcom_bd *bd = bcom_get_bd(tsk, tsk->index); in bcom_submit_next_buffer()
191 tsk->cookie[tsk->index] = cookie; in bcom_submit_next_buffer()
194 tsk->index = _bcom_next_index(tsk); in bcom_submit_next_buffer()
/include/net/tc_act/
Dtc_pedit.h53 static inline u32 tcf_pedit_htype(const struct tc_action *a, int index) in tcf_pedit_htype() argument
61 htype = parms->tcfp_keys_ex[index].htype; in tcf_pedit_htype()
67 static inline u32 tcf_pedit_cmd(const struct tc_action *a, int index) in tcf_pedit_cmd() argument
75 cmd = parms->tcfp_keys_ex[index].cmd; in tcf_pedit_cmd()
81 static inline u32 tcf_pedit_mask(const struct tc_action *a, int index) in tcf_pedit_mask() argument
88 mask = parms->tcfp_keys[index].mask; in tcf_pedit_mask()
94 static inline u32 tcf_pedit_val(const struct tc_action *a, int index) in tcf_pedit_val() argument
101 val = parms->tcfp_keys[index].val; in tcf_pedit_val()
107 static inline u32 tcf_pedit_offset(const struct tc_action *a, int index) in tcf_pedit_offset() argument
114 off = parms->tcfp_keys[index].off; in tcf_pedit_offset()
/include/linux/mfd/
Docelot.h18 unsigned int index, in ocelot_regmap_from_resource_optional() argument
29 res = platform_get_resource(pdev, IORESOURCE_MEM, index); in ocelot_regmap_from_resource_optional()
42 res = platform_get_resource(pdev, IORESOURCE_REG, index); in ocelot_regmap_from_resource_optional()
53 ocelot_regmap_from_resource(struct platform_device *pdev, unsigned int index, in ocelot_regmap_from_resource() argument
58 map = ocelot_regmap_from_resource_optional(pdev, index, config); in ocelot_regmap_from_resource()
Dkempld.h119 extern u8 kempld_read8(struct kempld_device_data *pld, u8 index);
120 extern void kempld_write8(struct kempld_device_data *pld, u8 index, u8 data);
121 extern u16 kempld_read16(struct kempld_device_data *pld, u8 index);
122 extern void kempld_write16(struct kempld_device_data *pld, u8 index, u16 data);
123 extern u32 kempld_read32(struct kempld_device_data *pld, u8 index);
124 extern void kempld_write32(struct kempld_device_data *pld, u8 index, u32 data);
/include/sound/
Dsoc-topology.h63 unsigned int index; /* objects can belong in different groups */ member
111 int (*control_load)(struct snd_soc_component *, int index,
117 int (*dapm_route_load)(struct snd_soc_component *, int index,
123 int (*widget_load)(struct snd_soc_component *, int index,
126 int (*widget_ready)(struct snd_soc_component *, int index,
133 int (*dai_load)(struct snd_soc_component *, int index,
141 int (*link_load)(struct snd_soc_component *, int index,
148 int (*vendor_load)(struct snd_soc_component *, int index,
157 int (*manifest)(struct snd_soc_component *, int index,
/include/uapi/xen/
Dgntalloc.h31 __u64 index; member
51 __u64 index; member
75 __u64 index; member
/include/rdma/
Dib_cache.h13 int rdma_query_gid(struct ib_device *device, u32 port_num, int index,
47 int index,
64 u16 *index);
80 u16 *index);
110 u32 port_num, int index);

12345678910>>...13