Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 25 of 299) sorted by relevance

12345678910>>...12

/drivers/gpu/drm/etnaviv/
Detnaviv_dump.c67 static void etnaviv_core_dump_header(struct core_dump_iterator *iter, in etnaviv_core_dump_header() argument
70 struct etnaviv_dump_object_header *hdr = iter->hdr; in etnaviv_core_dump_header()
74 hdr->file_offset = cpu_to_le32(iter->data - iter->start); in etnaviv_core_dump_header()
75 hdr->file_size = cpu_to_le32(data_end - iter->data); in etnaviv_core_dump_header()
77 iter->hdr++; in etnaviv_core_dump_header()
78 iter->data += le32_to_cpu(hdr->file_size); in etnaviv_core_dump_header()
81 static void etnaviv_core_dump_registers(struct core_dump_iterator *iter, in etnaviv_core_dump_registers() argument
84 struct etnaviv_dump_registers *reg = iter->data; in etnaviv_core_dump_registers()
92 etnaviv_core_dump_header(iter, ETDUMP_BUF_REG, reg); in etnaviv_core_dump_registers()
95 static void etnaviv_core_dump_mmu(struct core_dump_iterator *iter, in etnaviv_core_dump_mmu() argument
[all …]
/drivers/gpu/drm/
Ddrm_displayid.c77 struct displayid_iter *iter) in displayid_iter_edid_begin() argument
79 memset(iter, 0, sizeof(*iter)); in displayid_iter_edid_begin()
81 iter->edid = edid; in displayid_iter_edid_begin()
85 displayid_iter_block(const struct displayid_iter *iter) in displayid_iter_block() argument
89 if (!iter->section) in displayid_iter_block()
92 block = (const struct displayid_block *)&iter->section[iter->idx]; in displayid_iter_block()
94 if (iter->idx + sizeof(*block) <= iter->length && in displayid_iter_block()
95 iter->idx + sizeof(*block) + block->num_bytes <= iter->length) in displayid_iter_block()
102 __displayid_iter_next(struct displayid_iter *iter) in __displayid_iter_next() argument
106 if (!iter->edid) in __displayid_iter_next()
[all …]
Ddrm_vma_manager.c145 struct rb_node *iter; in drm_vma_offset_lookup_locked() local
148 iter = mgr->vm_addr_space_mm.interval_tree.rb_root.rb_node; in drm_vma_offset_lookup_locked()
151 while (likely(iter)) { in drm_vma_offset_lookup_locked()
152 node = rb_entry(iter, struct drm_mm_node, rb); in drm_vma_offset_lookup_locked()
155 iter = iter->rb_right; in drm_vma_offset_lookup_locked()
160 iter = iter->rb_left; in drm_vma_offset_lookup_locked()
265 struct rb_node **iter; in drm_vma_node_allow() local
278 iter = &node->vm_files.rb_node; in drm_vma_node_allow()
280 while (likely(*iter)) { in drm_vma_node_allow()
281 parent = *iter; in drm_vma_node_allow()
[all …]
Ddrm_damage_helper.c222 drm_atomic_helper_damage_iter_init(struct drm_atomic_helper_damage_iter *iter, in drm_atomic_helper_damage_iter_init() argument
226 memset(iter, 0, sizeof(*iter)); in drm_atomic_helper_damage_iter_init()
231 iter->clips = (struct drm_rect *)drm_plane_get_damage_clips(state); in drm_atomic_helper_damage_iter_init()
232 iter->num_clips = drm_plane_get_damage_clips_count(state); in drm_atomic_helper_damage_iter_init()
235 iter->plane_src.x1 = state->src.x1 >> 16; in drm_atomic_helper_damage_iter_init()
236 iter->plane_src.y1 = state->src.y1 >> 16; in drm_atomic_helper_damage_iter_init()
237 iter->plane_src.x2 = (state->src.x2 >> 16) + !!(state->src.x2 & 0xFFFF); in drm_atomic_helper_damage_iter_init()
238 iter->plane_src.y2 = (state->src.y2 >> 16) + !!(state->src.y2 & 0xFFFF); in drm_atomic_helper_damage_iter_init()
240 if (!iter->clips || !drm_rect_equals(&state->src, &old_state->src)) { in drm_atomic_helper_damage_iter_init()
241 iter->clips = NULL; in drm_atomic_helper_damage_iter_init()
[all …]
Ddrm_bridge.c440 struct drm_bridge *iter; in drm_bridge_chain_disable() local
446 list_for_each_entry_reverse(iter, &encoder->bridge_chain, chain_node) { in drm_bridge_chain_disable()
447 if (iter->funcs->disable) in drm_bridge_chain_disable()
448 iter->funcs->disable(iter); in drm_bridge_chain_disable()
450 if (iter == bridge) in drm_bridge_chain_disable()
525 struct drm_bridge *iter; in drm_bridge_chain_pre_enable() local
531 list_for_each_entry_reverse(iter, &encoder->bridge_chain, chain_node) { in drm_bridge_chain_pre_enable()
532 if (iter->funcs->pre_enable) in drm_bridge_chain_pre_enable()
533 iter->funcs->pre_enable(iter); in drm_bridge_chain_pre_enable()
535 if (iter == bridge) in drm_bridge_chain_pre_enable()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dicm.h97 struct mlx4_icm_iter *iter) in mlx4_icm_first() argument
99 iter->icm = icm; in mlx4_icm_first()
100 iter->chunk = list_empty(&icm->chunk_list) ? in mlx4_icm_first()
103 iter->page_idx = 0; in mlx4_icm_first()
106 static inline int mlx4_icm_last(struct mlx4_icm_iter *iter) in mlx4_icm_last() argument
108 return !iter->chunk; in mlx4_icm_last()
111 static inline void mlx4_icm_next(struct mlx4_icm_iter *iter) in mlx4_icm_next() argument
113 if (++iter->page_idx >= iter->chunk->nsg) { in mlx4_icm_next()
114 if (iter->chunk->list.next == &iter->icm->chunk_list) { in mlx4_icm_next()
115 iter->chunk = NULL; in mlx4_icm_next()
[all …]
/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-dump.c44 static void mcp251xfd_dump_header(struct mcp251xfd_dump_iter *iter, in mcp251xfd_dump_header() argument
48 struct mcp251xfd_dump_object_header *hdr = iter->hdr; in mcp251xfd_dump_header()
51 len = data_end - iter->data; in mcp251xfd_dump_header()
57 hdr->offset = cpu_to_le32(iter->data - iter->start); in mcp251xfd_dump_header()
60 iter->hdr++; in mcp251xfd_dump_header()
61 iter->data += len; in mcp251xfd_dump_header()
65 struct mcp251xfd_dump_iter *iter) in mcp251xfd_dump_registers() argument
68 struct mcp251xfd_dump_object_reg *reg = iter->data; in mcp251xfd_dump_registers()
98 mcp251xfd_dump_header(iter, MCP251XFD_DUMP_OBJECT_TYPE_REG, reg); in mcp251xfd_dump_registers()
101 static void mcp251xfd_dump_ring(struct mcp251xfd_dump_iter *iter, in mcp251xfd_dump_ring() argument
[all …]
/drivers/gpu/drm/selftests/
Dtest-drm_damage_helper.c120 struct drm_atomic_helper_damage_iter iter; in igt_damage_iter_no_damage() local
129 drm_atomic_helper_damage_iter_init(&iter, &old_state, &state); in igt_damage_iter_no_damage()
130 drm_atomic_for_each_plane_damage(&iter, &clip) in igt_damage_iter_no_damage()
141 struct drm_atomic_helper_damage_iter iter; in igt_damage_iter_no_damage_fractional_src() local
152 drm_atomic_helper_damage_iter_init(&iter, &old_state, &state); in igt_damage_iter_no_damage_fractional_src()
153 drm_atomic_for_each_plane_damage(&iter, &clip) in igt_damage_iter_no_damage_fractional_src()
164 struct drm_atomic_helper_damage_iter iter; in igt_damage_iter_no_damage_src_moved() local
174 drm_atomic_helper_damage_iter_init(&iter, &old_state, &state); in igt_damage_iter_no_damage_src_moved()
175 drm_atomic_for_each_plane_damage(&iter, &clip) in igt_damage_iter_no_damage_src_moved()
186 struct drm_atomic_helper_damage_iter iter; in igt_damage_iter_no_damage_fractional_src_moved() local
[all …]
/drivers/infiniband/ulp/ipoib/
Dipoib_fs.c60 struct ipoib_mcast_iter *iter; in ipoib_mcg_seq_start() local
63 iter = ipoib_mcast_iter_init(file->private); in ipoib_mcg_seq_start()
64 if (!iter) in ipoib_mcg_seq_start()
68 if (ipoib_mcast_iter_next(iter)) { in ipoib_mcg_seq_start()
69 kfree(iter); in ipoib_mcg_seq_start()
74 return iter; in ipoib_mcg_seq_start()
80 struct ipoib_mcast_iter *iter = iter_ptr; in ipoib_mcg_seq_next() local
84 if (ipoib_mcast_iter_next(iter)) { in ipoib_mcg_seq_next()
85 kfree(iter); in ipoib_mcg_seq_next()
89 return iter; in ipoib_mcg_seq_next()
[all …]
/drivers/dma/ppc4xx/
Dadma.c174 struct ppc440spe_adma_desc_slot *iter) in print_cb_list() argument
176 for (; iter; iter = iter->hw_next) in print_cb_list()
177 print_cb(chan, iter->hw_desc); in print_cb_list()
322 struct ppc440spe_adma_desc_slot *iter; in ppc440spe_desc_init_dma01pq() local
336 list_for_each_entry(iter, &desc->group_list, chain_node) { in ppc440spe_desc_init_dma01pq()
337 hw_desc = iter->hw_desc; in ppc440spe_desc_init_dma01pq()
338 memset(iter->hw_desc, 0, sizeof(struct dma_cdb)); in ppc440spe_desc_init_dma01pq()
340 if (likely(!list_is_last(&iter->chain_node, in ppc440spe_desc_init_dma01pq()
343 iter->hw_next = list_entry(iter->chain_node.next, in ppc440spe_desc_init_dma01pq()
345 clear_bit(PPC440SPE_DESC_INT, &iter->flags); in ppc440spe_desc_init_dma01pq()
[all …]
/drivers/s390/cio/
Dblacklist.c292 struct ccwdev_iter *iter = s->private; in cio_ignore_proc_seq_start() local
296 memset(iter, 0, sizeof(*iter)); in cio_ignore_proc_seq_start()
297 iter->ssid = *offset / (__MAX_SUBCHANNEL + 1); in cio_ignore_proc_seq_start()
298 iter->devno = *offset % (__MAX_SUBCHANNEL + 1); in cio_ignore_proc_seq_start()
299 return iter; in cio_ignore_proc_seq_start()
310 struct ccwdev_iter *iter; in cio_ignore_proc_seq_next() local
316 iter = it; in cio_ignore_proc_seq_next()
317 if (iter->devno == __MAX_SUBCHANNEL) { in cio_ignore_proc_seq_next()
318 iter->devno = 0; in cio_ignore_proc_seq_next()
319 iter->ssid++; in cio_ignore_proc_seq_next()
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_memfree.h100 struct mthca_icm_iter *iter) in mthca_icm_first() argument
102 iter->icm = icm; in mthca_icm_first()
103 iter->chunk = list_empty(&icm->chunk_list) ? in mthca_icm_first()
106 iter->page_idx = 0; in mthca_icm_first()
109 static inline int mthca_icm_last(struct mthca_icm_iter *iter) in mthca_icm_last() argument
111 return !iter->chunk; in mthca_icm_last()
114 static inline void mthca_icm_next(struct mthca_icm_iter *iter) in mthca_icm_next() argument
116 if (++iter->page_idx >= iter->chunk->nsg) { in mthca_icm_next()
117 if (iter->chunk->list.next == &iter->icm->chunk_list) { in mthca_icm_next()
118 iter->chunk = NULL; in mthca_icm_next()
[all …]
/drivers/infiniband/hw/hns/
Dhns_roce_hem.h138 struct hns_roce_hem_iter *iter) in hns_roce_hem_first() argument
140 iter->hem = hem; in hns_roce_hem_first()
141 iter->chunk = list_empty(&hem->chunk_list) ? NULL : in hns_roce_hem_first()
144 iter->page_idx = 0; in hns_roce_hem_first()
147 static inline int hns_roce_hem_last(struct hns_roce_hem_iter *iter) in hns_roce_hem_last() argument
149 return !iter->chunk; in hns_roce_hem_last()
152 static inline void hns_roce_hem_next(struct hns_roce_hem_iter *iter) in hns_roce_hem_next() argument
154 if (++iter->page_idx >= iter->chunk->nsg) { in hns_roce_hem_next()
155 if (iter->chunk->list.next == &iter->hem->chunk_list) { in hns_roce_hem_next()
156 iter->chunk = NULL; in hns_roce_hem_next()
[all …]
/drivers/infiniband/core/
Duverbs_uapi.c356 struct radix_tree_iter iter; in uapi_finalize_ioctl_method() local
363 radix_tree_for_each_slot (slot, &uapi->radix, &iter, in uapi_finalize_ioctl_method()
367 u32 attr_key = iter.index & UVERBS_API_ATTR_KEY_MASK; in uapi_finalize_ioctl_method()
371 if (uapi_key_attr_to_ioctl_method(iter.index) != in uapi_finalize_ioctl_method()
420 struct radix_tree_iter iter; in uapi_finalize() local
425 radix_tree_for_each_slot (slot, &uapi->radix, &iter, 0) { in uapi_finalize()
429 if (uapi_key_is_ioctl_method(iter.index)) { in uapi_finalize()
431 iter.index); in uapi_finalize()
436 if (uapi_key_is_write_method(iter.index)) in uapi_finalize()
438 iter.index & UVERBS_API_ATTR_KEY_MASK); in uapi_finalize()
[all …]
/drivers/hwtracing/intel_th/
Dmsu.c435 static struct msc_block_desc *msc_iter_bdesc(struct msc_iter *iter) in msc_iter_bdesc() argument
437 return sg_virt(iter->block); in msc_iter_bdesc()
442 struct msc_iter *iter; in msc_iter_install() local
444 iter = kzalloc(sizeof(*iter), GFP_KERNEL); in msc_iter_install()
445 if (!iter) in msc_iter_install()
457 kfree(iter); in msc_iter_install()
458 iter = ERR_PTR(-EBUSY); in msc_iter_install()
462 iter->msc = msc; in msc_iter_install()
464 list_add_tail(&iter->entry, &msc->iter_list); in msc_iter_install()
468 return iter; in msc_iter_install()
[all …]
/drivers/net/wireless/marvell/libertas/
Dfirmware.c86 const struct lbs_fw_table *iter; in load_next_firmware_from_table() local
89 iter = priv->fw_table; in load_next_firmware_from_table()
91 iter = ++priv->fw_iter; in load_next_firmware_from_table()
99 if (!iter->helper) { in load_next_firmware_from_table()
105 if (iter->model != priv->fw_model) { in load_next_firmware_from_table()
106 iter++; in load_next_firmware_from_table()
110 priv->fw_iter = iter; in load_next_firmware_from_table()
111 do_load_firmware(priv, iter->helper, helper_firmware_cb); in load_next_firmware_from_table()
177 const struct lbs_fw_table *iter; in lbs_get_firmware() local
184 iter = fw_table; in lbs_get_firmware()
[all …]
/drivers/md/bcache/
Dbset.c57 struct btree_iter iter; in __bch_count_data() local
61 for_each_key(b, k, &iter) in __bch_count_data()
70 struct btree_iter iter; in __bch_check_keys() local
73 for_each_key(b, k, &iter) { in __bch_check_keys()
111 static void bch_btree_iter_next_check(struct btree_iter *iter) in bch_btree_iter_next_check() argument
113 struct bkey *k = iter->data->k, *next = bkey_next(k); in bch_btree_iter_next_check()
115 if (next < iter->data->end && in bch_btree_iter_next_check()
116 bkey_cmp(k, iter->b->ops->is_extents ? in bch_btree_iter_next_check()
118 bch_dump_bucket(iter->b); in bch_btree_iter_next_check()
125 static inline void bch_btree_iter_next_check(struct btree_iter *iter) {} in bch_btree_iter_next_check() argument
[all …]
/drivers/base/
Dclass.c286 void class_dev_iter_init(struct class_dev_iter *iter, struct class *class, in class_dev_iter_init() argument
293 klist_iter_init_node(&class->p->klist_devices, &iter->ki, start_knode); in class_dev_iter_init()
294 iter->type = type; in class_dev_iter_init()
310 struct device *class_dev_iter_next(struct class_dev_iter *iter) in class_dev_iter_next() argument
316 knode = klist_next(&iter->ki); in class_dev_iter_next()
320 if (!iter->type || iter->type == dev->type) in class_dev_iter_next()
333 void class_dev_iter_exit(struct class_dev_iter *iter) in class_dev_iter_exit() argument
335 klist_iter_exit(&iter->ki); in class_dev_iter_exit()
360 struct class_dev_iter iter; in class_for_each_device() local
372 class_dev_iter_init(&iter, class, start, NULL); in class_for_each_device()
[all …]
Dattribute_container.c182 #define klist_for_each_entry(pos, head, member, iter) \ argument
183 for (klist_iter_init(head, iter); (pos = ({ \
184 struct klist_node *n = klist_next(iter); \
186 ({ klist_iter_exit(iter) ; NULL; }); \
216 struct klist_iter iter; in attribute_container_remove_device() local
224 klist_for_each_entry(ic, &cont->containers, node, &iter) { in attribute_container_remove_device()
249 struct klist_iter iter; in do_attribute_container_device_trigger_safe() local
254 klist_for_each_entry(ic, &cont->containers, node, &iter) { in do_attribute_container_device_trigger_safe()
259 klist_iter_exit(&iter); in do_attribute_container_device_trigger_safe()
271 klist_for_each_entry(ic, &cont->containers, node, &iter) { in do_attribute_container_device_trigger_safe()
[all …]
/drivers/net/ethernet/netronome/nfp/abm/
Dcls.c110 struct nfp_abm_u32_match *iter; in nfp_abm_find_band_for_prio() local
112 list_for_each_entry(iter, &alink->dscp_map, list) in nfp_abm_find_band_for_prio()
113 if ((prio & iter->mask) == iter->val) in nfp_abm_find_band_for_prio()
114 return iter->band; in nfp_abm_find_band_for_prio()
158 struct nfp_abm_u32_match *iter; in nfp_abm_u32_knode_delete() local
160 list_for_each_entry(iter, &alink->dscp_map, list) in nfp_abm_u32_knode_delete()
161 if (iter->handle == knode->handle) { in nfp_abm_u32_knode_delete()
162 list_del(&iter->list); in nfp_abm_u32_knode_delete()
163 kfree(iter); in nfp_abm_u32_knode_delete()
174 struct nfp_abm_u32_match *match = NULL, *iter; in nfp_abm_u32_knode_replace() local
[all …]
/drivers/gpu/drm/i915/gt/
Dgen6_ppgtt.h57 #define gen6_for_each_pde(pt, pd, start, length, iter) \ argument
58 for (iter = gen6_pde_index(start); \
59 length > 0 && iter < I915_PDES && \
60 (pt = i915_pt_entry(pd, iter), true); \
63 start += temp; length -= temp; }), ++iter)
65 #define gen6_for_all_pdes(pt, pd, iter) \ argument
66 for (iter = 0; \
67 iter < I915_PDES && \
68 (pt = i915_pt_entry(pd, iter), true); \
69 ++iter)
Dgen8_ppgtt.c415 struct sgt_dma *iter, in gen8_ppgtt_insert_pte() argument
427 GEM_BUG_ON(sg_dma_len(iter->sg) < I915_GTT_PAGE_SIZE); in gen8_ppgtt_insert_pte()
428 vaddr[gen8_pd_index(idx, 0)] = pte_encode | iter->dma; in gen8_ppgtt_insert_pte()
430 iter->dma += I915_GTT_PAGE_SIZE; in gen8_ppgtt_insert_pte()
431 if (iter->dma >= iter->max) { in gen8_ppgtt_insert_pte()
432 iter->sg = __sg_next(iter->sg); in gen8_ppgtt_insert_pte()
433 if (!iter->sg || sg_dma_len(iter->sg) == 0) { in gen8_ppgtt_insert_pte()
438 iter->dma = sg_dma_address(iter->sg); in gen8_ppgtt_insert_pte()
439 iter->max = iter->dma + sg_dma_len(iter->sg); in gen8_ppgtt_insert_pte()
461 struct sgt_dma *iter, in gen8_ppgtt_insert_huge() argument
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_encoders.c40 struct drm_connector_list_iter iter; in amdgpu_link_encoder_connector() local
45 drm_connector_list_iter_begin(dev, &iter); in amdgpu_link_encoder_connector()
47 drm_for_each_connector_iter(connector, &iter) { in amdgpu_link_encoder_connector()
60 drm_connector_list_iter_end(&iter); in amdgpu_link_encoder_connector()
68 struct drm_connector_list_iter iter; in amdgpu_encoder_set_active_device() local
70 drm_connector_list_iter_begin(dev, &iter); in amdgpu_encoder_set_active_device()
71 drm_for_each_connector_iter(connector, &iter) { in amdgpu_encoder_set_active_device()
80 drm_connector_list_iter_end(&iter); in amdgpu_encoder_set_active_device()
89 struct drm_connector_list_iter iter; in amdgpu_get_connector_for_encoder() local
92 drm_connector_list_iter_begin(dev, &iter); in amdgpu_get_connector_for_encoder()
[all …]
/drivers/infiniband/hw/qib/
Dqib_debugfs.c184 struct rvt_qp_iter *iter; in DEBUGFS_FILE() local
187 iter = rvt_qp_iter_init(s->private, 0, NULL); in DEBUGFS_FILE()
192 if (!iter) in DEBUGFS_FILE()
196 if (rvt_qp_iter_next(iter)) { in DEBUGFS_FILE()
197 kfree(iter); in DEBUGFS_FILE()
202 return iter; in DEBUGFS_FILE()
209 struct rvt_qp_iter *iter = iter_ptr; in _qp_stats_seq_next() local
213 if (rvt_qp_iter_next(iter)) { in _qp_stats_seq_next()
214 kfree(iter); in _qp_stats_seq_next()
218 return iter; in _qp_stats_seq_next()
[all …]
/drivers/iio/
Dindustrialio-sw-trigger.c32 struct iio_sw_trigger_type *t = NULL, *iter; in __iio_find_sw_trigger_type() local
34 list_for_each_entry(iter, &iio_trigger_types_list, list) in __iio_find_sw_trigger_type()
35 if (!strcmp(iter->name, name)) { in __iio_find_sw_trigger_type()
36 t = iter; in __iio_find_sw_trigger_type()
45 struct iio_sw_trigger_type *iter; in iio_register_sw_trigger_type() local
49 iter = __iio_find_sw_trigger_type(t->name, strlen(t->name)); in iio_register_sw_trigger_type()
50 if (iter) in iio_register_sw_trigger_type()
74 struct iio_sw_trigger_type *iter; in iio_unregister_sw_trigger_type() local
77 iter = __iio_find_sw_trigger_type(t->name, strlen(t->name)); in iio_unregister_sw_trigger_type()
78 if (iter) in iio_unregister_sw_trigger_type()

12345678910>>...12