/kernel/linux/linux-5.10/include/linux/ |
H A D | rculist_nulls.h | 157 * @tpos: the type * to use as a loop cursor. 167 #define hlist_nulls_for_each_entry_rcu(tpos, pos, head, member) \ 171 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1; }); \ 177 * @tpos: the type * to use as a loop cursor. 182 #define hlist_nulls_for_each_entry_safe(tpos, pos, head, member) \ 186 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); \
|
H A D | list_nulls.h | 121 * @tpos: the type * to use as a loop cursor. 127 #define hlist_nulls_for_each_entry(tpos, pos, head, member) \ 130 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1;}); \ 135 * @tpos: the type * to use as a loop cursor. 140 #define hlist_nulls_for_each_entry_from(tpos, pos, member) \ 142 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1;}); \
|
H A D | list_bl.h | 163 * @tpos: the type * to use as a loop cursor. 169 #define hlist_bl_for_each_entry(tpos, pos, head, member) \ 172 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1;}); \ 177 * @tpos: the type * to use as a loop cursor. 183 #define hlist_bl_for_each_entry_safe(tpos, pos, n, head, member) \ 186 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1;}); \
|
H A D | rculist_bl.h | 89 * @tpos: the type * to use as a loop cursor. 95 #define hlist_bl_for_each_entry_rcu(tpos, pos, head, member) \ 98 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1; }); \
|
H A D | rhashtable.h | 283 #define rht_entry(tpos, pos, member) \ 284 ({ tpos = container_of(pos, typeof(*tpos), member); 1; }) 431 * @tpos: the type * to use as a loop cursor. 438 #define rht_for_each_entry_from(tpos, pos, head, tbl, hash, member) \ 440 (!rht_is_a_nulls(pos)) && rht_entry(tpos, pos, member); \ 445 * @tpos: the type * to use as a loop cursor. 451 #define rht_for_each_entry(tpos, pos, tbl, hash, member) \ 452 rht_for_each_entry_from(tpos, pos, \ 458 * @tpos [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | list_nulls.h | 121 * @tpos: the type * to use as a loop cursor. 127 #define hlist_nulls_for_each_entry(tpos, pos, head, member) \ 130 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1;}); \ 135 * @tpos: the type * to use as a loop cursor. 140 #define hlist_nulls_for_each_entry_from(tpos, pos, member) \ 142 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1;}); \
|
H A D | rculist_nulls.h | 157 * @tpos: the type * to use as a loop cursor. 167 #define hlist_nulls_for_each_entry_rcu(tpos, pos, head, member) \ 171 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1; }); \ 177 * @tpos: the type * to use as a loop cursor. 182 #define hlist_nulls_for_each_entry_safe(tpos, pos, head, member) \ 186 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); \
|
H A D | list_bl.h | 163 * @tpos: the type * to use as a loop cursor. 169 #define hlist_bl_for_each_entry(tpos, pos, head, member) \ 172 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1;}); \ 177 * @tpos: the type * to use as a loop cursor. 183 #define hlist_bl_for_each_entry_safe(tpos, pos, n, head, member) \ 186 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1;}); \
|
H A D | rculist_bl.h | 89 * @tpos: the type * to use as a loop cursor. 95 #define hlist_bl_for_each_entry_rcu(tpos, pos, head, member) \ 98 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1; }); \
|
H A D | rhashtable.h | 283 #define rht_entry(tpos, pos, member) \ 284 ({ tpos = container_of(pos, typeof(*tpos), member); 1; }) 439 * @tpos: the type * to use as a loop cursor. 446 #define rht_for_each_entry_from(tpos, pos, head, tbl, hash, member) \ 448 (!rht_is_a_nulls(pos)) && rht_entry(tpos, pos, member); \ 453 * @tpos: the type * to use as a loop cursor. 459 #define rht_for_each_entry(tpos, pos, tbl, hash, member) \ 460 rht_for_each_entry_from(tpos, pos, \ 466 * @tpos [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/ |
H A D | enic_clsf.c | 159 struct enic_rfs_fltr_node *tpos; in htbl_key_search() local 161 hlist_for_each_entry(tpos, h, node) in htbl_key_search() 162 if (tpos->keys.addrs.v4addrs.src == k->addrs.v4addrs.src && in htbl_key_search() 163 tpos->keys.addrs.v4addrs.dst == k->addrs.v4addrs.dst && in htbl_key_search() 164 tpos->keys.ports.ports == k->ports.ports && in htbl_key_search() 165 tpos->keys.basic.ip_proto == k->basic.ip_proto && in htbl_key_search() 166 tpos->keys.basic.n_proto == k->basic.n_proto) in htbl_key_search() 167 return tpos; in htbl_key_search()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/cisco/enic/ |
H A D | enic_clsf.c | 159 struct enic_rfs_fltr_node *tpos; in htbl_key_search() local 161 hlist_for_each_entry(tpos, h, node) in htbl_key_search() 162 if (tpos->keys.addrs.v4addrs.src == k->addrs.v4addrs.src && in htbl_key_search() 163 tpos->keys.addrs.v4addrs.dst == k->addrs.v4addrs.dst && in htbl_key_search() 164 tpos->keys.ports.ports == k->ports.ports && in htbl_key_search() 165 tpos->keys.basic.ip_proto == k->basic.ip_proto && in htbl_key_search() 166 tpos->keys.basic.n_proto == k->basic.n_proto) in htbl_key_search() 167 return tpos; in htbl_key_search()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | opal-core.c | 167 loff_t tpos = pos; in read_opalcore() local 181 if (tpos < oc_conf->opalcorebuf_sz) { in read_opalcore() 182 tsz = min_t(size_t, oc_conf->opalcorebuf_sz - tpos, count); in read_opalcore() 183 memcpy(to, oc_conf->opalcorebuf + tpos, tsz); in read_opalcore() 185 tpos += tsz; in read_opalcore() 194 if (tpos < m->offset + m->size) { in read_opalcore() 197 tsz = min_t(size_t, m->offset + m->size - tpos, count); in read_opalcore() 198 addr = (void *)(m->paddr + tpos - m->offset); in read_opalcore() 201 tpos += tsz; in read_opalcore() 206 return (tpos in read_opalcore() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | opal-core.c | 167 loff_t tpos = pos; in read_opalcore() local 181 if (tpos < oc_conf->opalcorebuf_sz) { in read_opalcore() 182 tsz = min_t(size_t, oc_conf->opalcorebuf_sz - tpos, count); in read_opalcore() 183 memcpy(to, oc_conf->opalcorebuf + tpos, tsz); in read_opalcore() 185 tpos += tsz; in read_opalcore() 194 if (tpos < m->offset + m->size) { in read_opalcore() 197 tsz = min_t(size_t, m->offset + m->size - tpos, count); in read_opalcore() 198 addr = (void *)(m->paddr + tpos - m->offset); in read_opalcore() 201 tpos += tsz; in read_opalcore() 206 return (tpos in read_opalcore() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_filter.c | 366 static bool qede_compare_ip_addr(struct qede_arfs_fltr_node *tpos, in qede_compare_ip_addr() argument 370 if (tpos->tuple.src_ipv4 == ip_hdr(skb)->saddr && in qede_compare_ip_addr() 371 tpos->tuple.dst_ipv4 == ip_hdr(skb)->daddr) in qede_compare_ip_addr() 376 struct in6_addr *src = &tpos->tuple.src_ipv6; in qede_compare_ip_addr() 380 !memcmp(&tpos->tuple.dst_ipv6, &ipv6_hdr(skb)->daddr, size)) in qede_compare_ip_addr() 391 struct qede_arfs_fltr_node *tpos; in qede_arfs_htbl_key_search() local 393 hlist_for_each_entry(tpos, h, node) in qede_arfs_htbl_key_search() 394 if (tpos->tuple.ip_proto == ip_proto && in qede_arfs_htbl_key_search() 395 tpos->tuple.eth_proto == skb->protocol && in qede_arfs_htbl_key_search() 396 qede_compare_ip_addr(tpos, sk in qede_arfs_htbl_key_search() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_filter.c | 366 static bool qede_compare_ip_addr(struct qede_arfs_fltr_node *tpos, in qede_compare_ip_addr() argument 370 if (tpos->tuple.src_ipv4 == ip_hdr(skb)->saddr && in qede_compare_ip_addr() 371 tpos->tuple.dst_ipv4 == ip_hdr(skb)->daddr) in qede_compare_ip_addr() 376 struct in6_addr *src = &tpos->tuple.src_ipv6; in qede_compare_ip_addr() 380 !memcmp(&tpos->tuple.dst_ipv6, &ipv6_hdr(skb)->daddr, size)) in qede_compare_ip_addr() 391 struct qede_arfs_fltr_node *tpos; in qede_arfs_htbl_key_search() local 393 hlist_for_each_entry(tpos, h, node) in qede_arfs_htbl_key_search() 394 if (tpos->tuple.ip_proto == ip_proto && in qede_arfs_htbl_key_search() 395 tpos->tuple.eth_proto == skb->protocol && in qede_arfs_htbl_key_search() 396 qede_compare_ip_addr(tpos, sk in qede_arfs_htbl_key_search() [all...] |
/kernel/linux/linux-5.10/drivers/sbus/char/ |
H A D | bbc_envctrl.c | 540 struct bbc_cpu_temperature *tp, *tpos; in destroy_all_temps() local 542 list_for_each_entry_safe(tp, tpos, &bp->temps, bp_list) { in destroy_all_temps()
|
/kernel/linux/linux-6.6/drivers/sbus/char/ |
H A D | bbc_envctrl.c | 540 struct bbc_cpu_temperature *tp, *tpos; in destroy_all_temps() local 542 list_for_each_entry_safe(tp, tpos, &bp->temps, bp_list) { in destroy_all_temps()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | sock.h | 848 * @tpos: the type * to use as a loop cursor. 854 #define sk_for_each_entry_offset_rcu(tpos, pos, head, offset) \ 857 ({ tpos = (typeof(*tpos) *)((void *)pos - offset); 1;}); \
|
/kernel/linux/linux-6.6/include/net/ |
H A D | sock.h | 908 * @tpos: the type * to use as a loop cursor. 914 #define sk_for_each_entry_offset_rcu(tpos, pos, head, offset) \ 917 ({ tpos = (typeof(*tpos) *)((void *)pos - offset); 1;}); \
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | refcounttree.c | 4519 u32 p_cluster, num_clusters, slast, spos, tpos, remapped_clus = 0; in ocfs2_reflink_remap_extent() local 4529 tpos = ocfs2_bytes_to_clusters(t_inode->i_sb, pos_out); in ocfs2_reflink_remap_extent() 4549 pstart = ocfs2_clusters_to_bytes(t_inode->i_sb, tpos); in ocfs2_reflink_remap_extent() 4587 tpos, p_cluster, in ocfs2_reflink_remap_extent() 4600 tpos += num_clusters; in ocfs2_reflink_remap_extent()
|
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | refcounttree.c | 4490 u32 p_cluster, num_clusters, slast, spos, tpos, remapped_clus = 0; in ocfs2_reflink_remap_extent() local 4500 tpos = ocfs2_bytes_to_clusters(t_inode->i_sb, pos_out); in ocfs2_reflink_remap_extent() 4520 pstart = ocfs2_clusters_to_bytes(t_inode->i_sb, tpos); in ocfs2_reflink_remap_extent() 4558 tpos, p_cluster, in ocfs2_reflink_remap_extent() 4571 tpos += num_clusters; in ocfs2_reflink_remap_extent()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/ |
H A D | i40iw_cm.c | 1580 struct list_head *pos, *tpos; in i40iw_del_multiple_qhash() local 1584 list_for_each_safe(pos, tpos, &cm_parent_listen_node->child_listen_list) { in i40iw_del_multiple_qhash() 4256 struct list_head *pos, *tpos; in i40iw_qhash_ctrl() local 4262 list_for_each_safe(pos, tpos, child_listen_list) { in i40iw_qhash_ctrl()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/irdma/ |
H A D | cm.c | 1512 struct list_head *pos, *tpos; in irdma_del_multiple_qhash() local 1517 list_for_each_safe (pos, tpos, in irdma_del_multiple_qhash() 4338 struct list_head *pos, *tpos; in irdma_qhash_ctrl() local 4345 list_for_each_safe (pos, tpos, child_listen_list) { in irdma_qhash_ctrl()
|