Home
last modified time | relevance | path

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

123

/drivers/net/ethernet/mellanox/mlx4/
Dicm.h93 struct mlx4_icm_iter *iter) in mlx4_icm_first() argument
95 iter->icm = icm; in mlx4_icm_first()
96 iter->chunk = list_empty(&icm->chunk_list) ? in mlx4_icm_first()
99 iter->page_idx = 0; in mlx4_icm_first()
102 static inline int mlx4_icm_last(struct mlx4_icm_iter *iter) in mlx4_icm_last() argument
104 return !iter->chunk; in mlx4_icm_last()
107 static inline void mlx4_icm_next(struct mlx4_icm_iter *iter) in mlx4_icm_next() argument
109 if (++iter->page_idx >= iter->chunk->nsg) { in mlx4_icm_next()
110 if (iter->chunk->list.next == &iter->icm->chunk_list) { in mlx4_icm_next()
111 iter->chunk = NULL; in mlx4_icm_next()
[all …]
/drivers/s390/cio/
Dblacklist.c265 struct ccwdev_iter *iter = s->private; in cio_ignore_proc_seq_start() local
269 memset(iter, 0, sizeof(*iter)); in cio_ignore_proc_seq_start()
270 iter->ssid = *offset / (__MAX_SUBCHANNEL + 1); in cio_ignore_proc_seq_start()
271 iter->devno = *offset % (__MAX_SUBCHANNEL + 1); in cio_ignore_proc_seq_start()
272 return iter; in cio_ignore_proc_seq_start()
283 struct ccwdev_iter *iter; in cio_ignore_proc_seq_next() local
287 iter = it; in cio_ignore_proc_seq_next()
288 if (iter->devno == __MAX_SUBCHANNEL) { in cio_ignore_proc_seq_next()
289 iter->devno = 0; in cio_ignore_proc_seq_next()
290 iter->ssid++; in cio_ignore_proc_seq_next()
[all …]
/drivers/dma/ppc4xx/
Dadma.c188 struct ppc440spe_adma_desc_slot *iter) in print_cb_list() argument
190 for (; iter; iter = iter->hw_next) in print_cb_list()
191 print_cb(chan, iter->hw_desc); in print_cb_list()
336 struct ppc440spe_adma_desc_slot *iter; in ppc440spe_desc_init_dma01pq() local
350 list_for_each_entry(iter, &desc->group_list, chain_node) { in ppc440spe_desc_init_dma01pq()
351 hw_desc = iter->hw_desc; in ppc440spe_desc_init_dma01pq()
352 memset(iter->hw_desc, 0, sizeof(struct dma_cdb)); in ppc440spe_desc_init_dma01pq()
354 if (likely(!list_is_last(&iter->chain_node, in ppc440spe_desc_init_dma01pq()
357 iter->hw_next = list_entry(iter->chain_node.next, in ppc440spe_desc_init_dma01pq()
359 clear_bit(PPC440SPE_DESC_INT, &iter->flags); in ppc440spe_desc_init_dma01pq()
[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 …]
Dipoib_multicast.c900 struct ipoib_mcast_iter *iter; in ipoib_mcast_iter_init() local
902 iter = kmalloc(sizeof *iter, GFP_KERNEL); in ipoib_mcast_iter_init()
903 if (!iter) in ipoib_mcast_iter_init()
906 iter->dev = dev; in ipoib_mcast_iter_init()
907 memset(iter->mgid.raw, 0, 16); in ipoib_mcast_iter_init()
909 if (ipoib_mcast_iter_next(iter)) { in ipoib_mcast_iter_init()
910 kfree(iter); in ipoib_mcast_iter_init()
914 return iter; in ipoib_mcast_iter_init()
917 int ipoib_mcast_iter_next(struct ipoib_mcast_iter *iter) in ipoib_mcast_iter_next() argument
919 struct ipoib_dev_priv *priv = netdev_priv(iter->dev); in ipoib_mcast_iter_next()
[all …]
Dipoib_main.c302 struct ipoib_path_iter *iter; in ipoib_path_iter_init() local
304 iter = kmalloc(sizeof *iter, GFP_KERNEL); in ipoib_path_iter_init()
305 if (!iter) in ipoib_path_iter_init()
308 iter->dev = dev; in ipoib_path_iter_init()
309 memset(iter->path.pathrec.dgid.raw, 0, 16); in ipoib_path_iter_init()
311 if (ipoib_path_iter_next(iter)) { in ipoib_path_iter_init()
312 kfree(iter); in ipoib_path_iter_init()
316 return iter; in ipoib_path_iter_init()
319 int ipoib_path_iter_next(struct ipoib_path_iter *iter) in ipoib_path_iter_next() argument
321 struct ipoib_dev_priv *priv = netdev_priv(iter->dev); in ipoib_path_iter_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/base/
Dclass.c304 void class_dev_iter_init(struct class_dev_iter *iter, struct class *class, in class_dev_iter_init() argument
311 klist_iter_init_node(&class->p->klist_devices, &iter->ki, start_knode); in class_dev_iter_init()
312 iter->type = type; in class_dev_iter_init()
328 struct device *class_dev_iter_next(struct class_dev_iter *iter) in class_dev_iter_next() argument
334 knode = klist_next(&iter->ki); in class_dev_iter_next()
338 if (!iter->type || iter->type == dev->type) in class_dev_iter_next()
351 void class_dev_iter_exit(struct class_dev_iter *iter) in class_dev_iter_exit() argument
353 klist_iter_exit(&iter->ki); in class_dev_iter_exit()
378 struct class_dev_iter iter; in class_for_each_device() local
390 class_dev_iter_init(&iter, class, start, NULL); in class_for_each_device()
[all …]
Dattribute_container.c183 #define klist_for_each_entry(pos, head, member, iter) \ argument
184 for (klist_iter_init(head, iter); (pos = ({ \
185 struct klist_node *n = klist_next(iter); \
187 ({ klist_iter_exit(iter) ; NULL; }); \
217 struct klist_iter iter; in attribute_container_remove_device() local
225 klist_for_each_entry(ic, &cont->containers, node, &iter) { in attribute_container_remove_device()
261 struct klist_iter iter; in attribute_container_device_trigger() local
271 klist_for_each_entry(ic, &cont->containers, node, &iter) { in attribute_container_device_trigger()
428 struct klist_iter iter; in attribute_container_find_class_device() local
430 klist_for_each_entry(ic, &cont->containers, node, &iter) { in attribute_container_find_class_device()
[all …]
Dbus.c1115 void subsys_dev_iter_init(struct subsys_dev_iter *iter, struct bus_type *subsys, in subsys_dev_iter_init() argument
1122 klist_iter_init_node(&subsys->p->klist_devices, &iter->ki, start_knode); in subsys_dev_iter_init()
1123 iter->type = type; in subsys_dev_iter_init()
1139 struct device *subsys_dev_iter_next(struct subsys_dev_iter *iter) in subsys_dev_iter_next() argument
1145 knode = klist_next(&iter->ki); in subsys_dev_iter_next()
1149 if (!iter->type || iter->type == dev->type) in subsys_dev_iter_next()
1162 void subsys_dev_iter_exit(struct subsys_dev_iter *iter) in subsys_dev_iter_exit() argument
1164 klist_iter_exit(&iter->ki); in subsys_dev_iter_exit()
1171 struct subsys_dev_iter iter; in subsys_interface_register() local
1184 subsys_dev_iter_init(&iter, subsys, NULL, NULL); in subsys_interface_register()
[all …]
/drivers/dma/
Dmv_xor.c353 struct mv_xor_desc_slot *iter, *_iter; in mv_xor_clean_completed_slots() local
356 list_for_each_entry_safe(iter, _iter, &mv_chan->completed_slots, in mv_xor_clean_completed_slots()
359 if (async_tx_test_ack(&iter->async_tx)) { in mv_xor_clean_completed_slots()
360 list_del(&iter->completed_node); in mv_xor_clean_completed_slots()
361 mv_xor_free_slots(mv_chan, iter); in mv_xor_clean_completed_slots()
389 struct mv_xor_desc_slot *iter, *_iter; in __mv_xor_slot_cleanup() local
403 list_for_each_entry_safe(iter, _iter, &mv_chan->chain, in __mv_xor_slot_cleanup()
418 if (iter->async_tx.phys == current_desc) { in __mv_xor_slot_cleanup()
424 cookie = mv_xor_run_tx_complete_actions(iter, mv_chan, cookie); in __mv_xor_slot_cleanup()
426 if (mv_xor_clean_slot(iter, mv_chan)) in __mv_xor_slot_cleanup()
[all …]
Diop-adma.c200 struct iop_adma_desc_slot *iter, *_iter, *grp_start = NULL; in __iop_adma_slot_cleanup() local
210 list_for_each_entry_safe(iter, _iter, &iop_chan->chain, in __iop_adma_slot_cleanup()
214 iter->async_tx.cookie, iter->idx, busy, in __iop_adma_slot_cleanup()
215 iter->async_tx.phys, iop_desc_get_next_desc(iter), in __iop_adma_slot_cleanup()
216 async_tx_test_ack(&iter->async_tx)); in __iop_adma_slot_cleanup()
231 if (iter->async_tx.phys == current_desc) { in __iop_adma_slot_cleanup()
233 if (busy || iop_desc_get_next_desc(iter)) in __iop_adma_slot_cleanup()
239 slot_cnt = iter->slot_cnt; in __iop_adma_slot_cleanup()
240 slots_per_op = iter->slots_per_op; in __iop_adma_slot_cleanup()
250 grp_start = iter; in __iop_adma_slot_cleanup()
[all …]
/drivers/net/wireless/ath/carl9170/
Ddebug.c306 struct carl9170_sta_tid *iter; in carl9170_debugfs_ampdu_state_read() local
312 list_for_each_entry_rcu(iter, &ar->tx_ampdu_list, list) { in carl9170_debugfs_ampdu_state_read()
314 spin_lock_bh(&iter->lock); in carl9170_debugfs_ampdu_state_read()
317 cnt, iter->tid, iter->bsn, iter->snx, iter->hsn, in carl9170_debugfs_ampdu_state_read()
318 iter->max, iter->state, iter->counter); in carl9170_debugfs_ampdu_state_read()
323 iter->bitmap, CARL9170_BAW_BITS); in carl9170_debugfs_ampdu_state_read()
334 offset = BM_STR_OFF(SEQ_DIFF(iter->snx, iter->bsn)); in carl9170_debugfs_ampdu_state_read()
337 offset = BM_STR_OFF(((int)iter->hsn - (int)iter->bsn) % in carl9170_debugfs_ampdu_state_read()
342 " currently queued:%d\n", skb_queue_len(&iter->queue)); in carl9170_debugfs_ampdu_state_read()
345 skb_queue_walk(&iter->queue, skb) { in carl9170_debugfs_ampdu_state_read()
[all …]
Dfw.c41 const struct carl9170fw_desc_head *iter; in carl9170_fw_find_desc() local
43 carl9170fw_for_each_hdr(iter, ar->fw.desc) { in carl9170_fw_find_desc()
44 if (carl9170fw_desc_cmp(iter, descid, len, in carl9170_fw_find_desc()
46 return (void *)iter; in carl9170_fw_find_desc()
50 if (carl9170fw_desc_cmp(iter, descid, len, in carl9170_fw_find_desc()
52 return (void *)iter; in carl9170_fw_find_desc()
/drivers/net/wireless/bcmdhd/
Ddhd_pno.c474 dhd_pno_bestnet_entry_t *iter, *next; in _dhd_pno_convert_format() local
509 list_for_each_entry_safe(iter, next, in _dhd_pno_convert_format()
511 t_delta = jiffies_to_msecs(jiffies - iter->recorded_time); in _dhd_pno_convert_format()
518 bcm_ether_ntoa((const struct ether_addr *)&iter->BSSID, eabuf)); in _dhd_pno_convert_format()
521 bp += nreadsize = sprintf(bp, "ssid=%s\n", iter->SSID); in _dhd_pno_convert_format()
525 wf_channel2mhz(iter->channel, in _dhd_pno_convert_format()
526 iter->channel <= CH_MAX_2G_CHANNEL? in _dhd_pno_convert_format()
530 bp += nreadsize = sprintf(bp, "level=%d\n", iter->RSSI); in _dhd_pno_convert_format()
533 iter->timestamp += t_delta; in _dhd_pno_convert_format()
534 bp += nreadsize = sprintf(bp, "age=%d\n", iter->timestamp); in _dhd_pno_convert_format()
[all …]
/drivers/scsi/qla2xxx/
Dqla_attr.c158 uint32_t *iter; in qla2x00_sysfs_write_nvram() local
161 iter = (uint32_t *)buf; in qla2x00_sysfs_write_nvram()
164 chksum += le32_to_cpu(*iter++); in qla2x00_sysfs_write_nvram()
166 *iter = cpu_to_le32(chksum); in qla2x00_sysfs_write_nvram()
168 uint8_t *iter; in qla2x00_sysfs_write_nvram() local
171 iter = (uint8_t *)buf; in qla2x00_sysfs_write_nvram()
174 chksum += *iter++; in qla2x00_sysfs_write_nvram()
176 *iter = chksum; in qla2x00_sysfs_write_nvram()
503 uint16_t iter, addr, offset; in qla2x00_sysfs_read_sfp() local
523 for (iter = 0, offset = 0; iter < (SFP_DEV_SIZE * 2) / SFP_BLOCK_SIZE; in qla2x00_sysfs_read_sfp()
[all …]
Dqla_inline.h52 uint32_t iter = bsize >> 2; in host_to_fcp_swap() local
54 for (; iter ; iter--) in host_to_fcp_swap()
/drivers/infiniband/hw/ehca/
Dehca_cq.c75 struct hlist_node *iter; in ehca_cq_unassign_qp() local
80 hlist_for_each(iter, &cq->qp_hashtab[key]) { in ehca_cq_unassign_qp()
81 qp = hlist_entry(iter, struct ehca_qp, list_entries); in ehca_cq_unassign_qp()
83 hlist_del(iter); in ehca_cq_unassign_qp()
104 struct hlist_node *iter; in ehca_cq_get_qp() local
106 hlist_for_each(iter, &cq->qp_hashtab[key]) { in ehca_cq_get_qp()
107 qp = hlist_entry(iter, struct ehca_qp, list_entries); in ehca_cq_get_qp()
/drivers/net/ethernet/qlogic/qlge/
Dqlge_ethtool.c105 u64 *iter = &qdev->nic_stats.tx_pkts; in ql_update_stats() local
123 *iter = data; in ql_update_stats()
124 iter++; in ql_update_stats()
137 *iter = data; in ql_update_stats()
138 iter++; in ql_update_stats()
151 *iter = data; in ql_update_stats()
152 iter++; in ql_update_stats()
165 *iter = data; in ql_update_stats()
166 iter++; in ql_update_stats()
177 *iter = data; in ql_update_stats()
/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_common.h196 #define for_each_port(adapter, iter) \ argument
197 for (iter = 0; iter < (adapter)->params.nports; iter++)
Dadapter.h331 #define for_each_ethrxq(sge, iter) \ argument
332 for (iter = 0; iter < (sge)->ethqsets; iter++)
/drivers/net/ethernet/chelsio/cxgb/
Dcommon.h316 #define for_each_port(adapter, iter) \ argument
317 for (iter = 0; iter < (adapter)->params.nports; ++iter)
/drivers/block/
Dps3disk.c96 struct req_iterator iter; in ps3disk_scatter_gather() local
102 rq_for_each_segment(bvec, req, iter) { in ps3disk_scatter_gather()
106 __func__, __LINE__, i, bio_segments(iter.bio), in ps3disk_scatter_gather()
107 bio_sectors(iter.bio), iter.bio->bi_sector); in ps3disk_scatter_gather()
134 struct req_iterator iter; in ps3disk_submit_request_sg() local
136 rq_for_each_segment(bv, req, iter) in ps3disk_submit_request_sg()
/drivers/staging/ramster/cluster/
Dheartbeat.c373 struct list_head *iter; in r2hb_register_callback() local
388 list_for_each(iter, &hbcall->list) { in r2hb_register_callback()
389 tmp = list_entry(iter, struct r2hb_callback_func, hc_item); in r2hb_register_callback()
391 list_add_tail(&hc->hc_item, iter); in r2hb_register_callback()
/drivers/net/wireless/libertas/
Dmain.c1201 const struct lbs_fw_table *iter; in lbs_get_firmware() local
1233 iter = fw_table; in lbs_get_firmware()
1234 while (iter && iter->helper) { in lbs_get_firmware()
1235 if (iter->model != card_model) in lbs_get_firmware()
1239 ret = request_firmware(helper, iter->helper, dev); in lbs_get_firmware()
1247 if (iter->fwname == NULL) in lbs_get_firmware()
1252 ret = request_firmware(mainfw, iter->fwname, dev); in lbs_get_firmware()
1267 iter++; in lbs_get_firmware()

123