| /linux/fs/notify/ |
| H A D | mark.c | 94 void fsnotify_get_mark(struct fsnotify_mark *mark) in fsnotify_get_mark() argument 96 WARN_ON_ONCE(!refcount_read(&mark->refcnt)); in fsnotify_get_mark() 97 refcount_inc(&mark->refcnt); in fsnotify_get_mark() 244 struct fsnotify_mark *mark; in __fsnotify_recalc_mask() local 250 hlist_for_each_entry(mark, &conn->list, obj_list) { in __fsnotify_recalc_mask() 251 if (!(mark->flags & FSNOTIFY_MARK_FLAG_ATTACHED)) in __fsnotify_recalc_mask() 253 new_mask |= fsnotify_calc_mask(mark); in __fsnotify_recalc_mask() 255 !(mark->flags & FSNOTIFY_MARK_FLAG_NO_IREF)) in __fsnotify_recalc_mask() 366 static void fsnotify_final_mark_destroy(struct fsnotify_mark *mark) in fsnotify_final_mark_destroy() argument 368 struct fsnotify_group *group = mark->group; in fsnotify_final_mark_destroy() [all …]
|
| H A D | fdinfo.c | 28 struct fsnotify_mark *mark)) in show_fdinfo() argument 31 struct fsnotify_mark *mark; in show_fdinfo() local 34 list_for_each_entry(mark, &group->marks_list, g_list) { in show_fdinfo() 35 show(m, mark); in show_fdinfo() 76 static void inotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in inotify_fdinfo() argument 81 if (mark->connector->type != FSNOTIFY_OBJ_TYPE_INODE) in inotify_fdinfo() 84 inode_mark = container_of(mark, struct inotify_inode_mark, fsn_mark); in inotify_fdinfo() 85 inode = igrab(fsnotify_conn_inode(mark->connector)); in inotify_fdinfo() 89 inotify_mark_user_mask(mark)); in inotify_fdinfo() 105 static void fanotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in fanotify_fdinfo() argument [all …]
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_wrr.c | 107 struct ip_vs_wrr_mark *mark; in ip_vs_wrr_init_svc() 110 * Allocate the mark variable for WRR scheduling in ip_vs_wrr_init_svc() 112 mark = kmalloc(sizeof(struct ip_vs_wrr_mark), GFP_KERNEL); in ip_vs_wrr_init_svc() 113 if (mark == NULL) in ip_vs_wrr_init_svc() 116 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list); in ip_vs_wrr_init_svc() 117 mark->di = ip_vs_wrr_gcd_weight(svc); in ip_vs_wrr_init_svc() 118 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_init_svc() 119 mark->cw = mark in ip_vs_wrr_init_svc() 108 struct ip_vs_wrr_mark *mark; ip_vs_wrr_init_svc() local 129 struct ip_vs_wrr_mark *mark = svc->sched_data; ip_vs_wrr_done_svc() local 141 struct ip_vs_wrr_mark *mark = svc->sched_data; ip_vs_wrr_dest_changed() local 164 struct ip_vs_wrr_mark *mark = svc->sched_data; ip_vs_wrr_schedule() local [all...] |
| /linux/kernel/ |
| H A D | audit_fsnotify.c | 30 struct fsnotify_mark mark; /* fsnotify mark on the inode */ member 47 static void audit_fsnotify_free_mark(struct fsnotify_mark *mark) in audit_fsnotify_free_mark() argument 51 audit_mark = container_of(mark, struct audit_fsnotify_mark, mark); in audit_fsnotify_free_mark() 55 char *audit_mark_path(struct audit_fsnotify_mark *mark) in audit_mark_path() argument 57 return mark->path; in audit_mark_path() 60 int audit_mark_compare(struct audit_fsnotify_mark *mark, unsigned long ino, dev_t dev) in audit_mark_compare() argument 62 if (mark->ino == AUDIT_INO_UNSET) in audit_mark_compare() 64 return (mark->ino == ino) && (mark->dev == dev); in audit_mark_compare() 98 fsnotify_init_mark(&audit_mark->mark, audit_fsnotify_group); in audit_alloc_mark() 99 audit_mark->mark.mask = AUDIT_FS_EVENTS; in audit_alloc_mark() [all …]
|
| H A D | audit_tree.c | 28 struct fsnotify_mark *mark; member 41 struct fsnotify_mark mark; member 163 static inline struct audit_tree_mark *audit_mark(struct fsnotify_mark *mark) in audit_mark() argument 165 return container_of(mark, struct audit_tree_mark, mark); in audit_mark() 168 static struct audit_chunk *mark_chunk(struct fsnotify_mark *mark) in mark_chunk() argument 170 return audit_mark(mark)->chunk; in mark_chunk() 173 static void audit_tree_destroy_watch(struct fsnotify_mark *mark) in audit_tree_destroy_watch() argument 175 kmem_cache_free(audit_tree_mark_cachep, audit_mark(mark)); in audit_tree_destroy_watch() 185 fsnotify_init_mark(&amark->mark, audit_tree_group); in alloc_mark() 186 amark->mark.mask = FS_IN_IGNORED; in alloc_mark() [all …]
|
| H A D | audit_watch.c | 48 struct fsnotify_mark mark; /* fsnotify mark on the inode */ member 68 parent = container_of(entry, struct audit_parent, mark); in audit_watch_free_mark() 75 fsnotify_get_mark(&parent->mark); in audit_get_parent() 81 fsnotify_put_mark(&parent->mark); in audit_put_parent() 95 parent = container_of(entry, struct audit_parent, mark); in audit_find_parent() 148 fsnotify_init_mark(&parent->mark, audit_watch_group); in audit_init_parent() 149 parent->mark.mask = AUDIT_FS_WATCH; in audit_init_parent() 150 ret = fsnotify_add_inode_mark(&parent->mark, inode, 0); in audit_init_parent() 344 fsnotify_destroy_mark(&parent->mark, audit_watch_group); in audit_remove_parent_watches() 465 fsnotify_destroy_mark(&parent->mark, audit_watch_group); in audit_remove_watch_rule() [all …]
|
| /linux/net/bridge/netfilter/ |
| H A D | ebt_mark.c | 29 skb->mark = info->mark; in ebt_mark_tg() 31 skb->mark |= info->mark; in ebt_mark_tg() 33 skb->mark &= info->mark; in ebt_mark_tg() 35 skb->mark ^= info->mark; in ebt_mark_tg() 58 compat_ulong_t mark; member 67 kern->mark = user->mark; in mark_tg_compat_from_user() 76 if (put_user(kern->mark, &user->mark) || in mark_tg_compat_to_user()
|
| H A D | ebt_mark_m.c | 22 return !!(skb->mark & info->mask) ^ info->invert; in ebt_mark_mt() 23 return ((skb->mark & info->mask) == info->mark) ^ info->invert; in ebt_mark_mt() 42 compat_ulong_t mark, mask; member 51 kern->mark = user->mark; in mark_mt_compat_from_user() 62 if (put_user(kern->mark, &user->mark) || in mark_mt_compat_to_user()
|
| /linux/include/linux/ |
| H A D | fsnotify_backend.h | 177 int (*handle_inode_event)(struct fsnotify_mark *mark, u32 mask, 181 void (*freeing_mark)(struct fsnotify_mark *mark, struct fsnotify_group *group); 184 void (*free_mark)(struct fsnotify_mark *mark); 531 #define fsnotify_foreach_iter_mark_type(iter, mark, type) \ argument 533 type = fsnotify_iter_step(iter, type, &mark), \ 776 static inline __u32 fsnotify_ignore_mask(struct fsnotify_mark *mark) in fsnotify_ignore_mask() argument 778 __u32 ignore_mask = mark->ignore_mask; in fsnotify_ignore_mask() 781 if (mark->flags & FSNOTIFY_MARK_FLAG_HAS_IGNORE_FLAGS) in fsnotify_ignore_mask() 791 ignore_mask |= mark->mask & FS_EVENT_ON_CHILD; in fsnotify_ignore_mask() 797 static inline __u32 fsnotify_ignored_events(struct fsnotify_mark *mark) in fsnotify_ignored_events() argument [all …]
|
| /linux/net/netfilter/ipset/ |
| H A D | ip_set_hash_ipmark.c | 41 __u32 mark; member 52 ip1->mark == ip2->mark; in hash_ipmark4_data_equal() 60 nla_put_net32(skb, IPSET_ATTR_MARK, htonl(data->mark))) in hash_ipmark4_data_list() 89 e.mark = skb->mark; in hash_ipmark4_kadt() 90 e.mark &= h->markmask; in hash_ipmark4_kadt() 122 e.mark = ntohl(nla_get_be32(tb[IPSET_ATTR_MARK])); in hash_ipmark4_uadt() 123 e.mark &= h->markmask; in hash_ipmark4_uadt() 124 if (e.mark == 0 && e.ip == 0) in hash_ipmark4_uadt() 139 if (e.mark == 0 && ip_to == 0) in hash_ipmark4_uadt() 173 __u32 mark; member [all …]
|
| /linux/lib/ |
| H A D | xarray.c | 68 static inline void xa_mark_set(struct xarray *xa, xa_mark_t mark) in xa_mark_set() argument 70 if (!(xa->xa_flags & XA_FLAGS_MARK(mark))) in xa_mark_set() 71 xa->xa_flags |= XA_FLAGS_MARK(mark); in xa_mark_set() 74 static inline void xa_mark_clear(struct xarray *xa, xa_mark_t mark) in xa_mark_clear() argument 76 if (xa->xa_flags & XA_FLAGS_MARK(mark)) in xa_mark_clear() 77 xa->xa_flags &= ~(XA_FLAGS_MARK(mark)); in xa_mark_clear() 80 static inline unsigned long *node_marks(struct xa_node *node, xa_mark_t mark) in node_marks() argument 82 return node->marks[(__force unsigned)mark]; in node_marks() 86 unsigned int offset, xa_mark_t mark) in node_get_mark() argument 88 return test_bit(offset, node_marks(node, mark)); in node_get_mark() [all …]
|
| /linux/net/netfilter/ |
| H A D | xt_connmark.c | 41 oldmark = READ_ONCE(ct->mark); in connmark_tg_shift() 48 if (READ_ONCE(ct->mark) != newmark) { in connmark_tg_shift() 49 WRITE_ONCE(ct->mark, newmark); in connmark_tg_shift() 54 new_targetmark = (skb->mark & info->nfmask); in connmark_tg_shift() 60 newmark = (READ_ONCE(ct->mark) & ~info->ctmask) ^ in connmark_tg_shift() 62 if (READ_ONCE(ct->mark) != newmark) { in connmark_tg_shift() 63 WRITE_ONCE(ct->mark, newmark); in connmark_tg_shift() 68 new_targetmark = (READ_ONCE(ct->mark) & info->ctmask); in connmark_tg_shift() 74 newmark = (skb->mark & ~info->nfmask) ^ in connmark_tg_shift() 76 skb->mark = newmark; in connmark_tg_shift() [all …]
|
| H A D | nft_chain_route.c | 24 u32 mark; in nf_route_table_hook4() local 31 mark = skb->mark; in nf_route_table_hook4() 43 skb->mark != mark || in nf_route_table_hook4() 71 u32 mark, flowlabel; in nf_route_table_hook6() local 82 mark = skb->mark; in nf_route_table_hook6() 92 skb->mark != mark || in nf_route_table_hook6()
|
| H A D | xt_mark.c | 18 MODULE_DESCRIPTION("Xtables: packet mark operations"); 30 skb->mark = (skb->mark & ~info->mask) ^ info->mark; in mark_tg() 39 return ((skb->mark & info->mask) == info->mark) ^ info->invert; in mark_mt() 74 .name = "mark",
|
| /linux/drivers/tty/vt/ |
| H A D | ucs.c | 105 u16 mark; /* combining mark */ member 113 u16 mark; member 128 if (search_key->mark < entry->mark) in recomposition_cmp() 130 if (search_key->mark > entry->mark) in recomposition_cmp() 144 u32 ucs_recompose(u32 base, u32 mark) in ucs_recompose() argument 148 mark < UCS_RECOMPOSE_MIN_MARK || mark > UCS_RECOMPOSE_MAX_MARK) in ucs_recompose() 151 struct compare_key key = { base, mark }; in ucs_recompose()
|
| /linux/arch/powerpc/kernel/ |
| H A D | smp-tbsync.c | 26 volatile u64 mark; member 39 static void enter_contest(u64 mark, long add) in enter_contest() argument 41 while (get_tb() < mark) in enter_contest() 73 enter_contest(tbsync->mark, -1); in smp_generic_take_timebase() 82 u64 mark; in start_contest() local 90 tbsync->mark = mark = tb + 400; in start_contest() 101 enter_contest(mark, 1); in start_contest()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_ldsx_insn.c | 96 old_mark = skb->mark; in _tc() 98 skb->mark = 0xf6fe; in _tc() 109 [off_mark]"i"(offsetof(struct __sk_buff, mark) in _tc() 111 + sizeof(skb->mark) - 1 in _tc() 116 tmp_mark = (char)skb->mark; in _tc() 120 skb->mark = old_mark; in _tc()
|
| /linux/samples/bpf/ |
| H A D | xdp2skb_meta_kern.c | 28 __u32 mark; member 57 meta->mark = 42; in _xdp_mark() 71 ctx->mark = 41; in _tc_mark() 77 ctx->mark = meta->mark; /* Transfer XDP-mark to SKB-mark */ in _tc_mark()
|
| /linux/drivers/dma/sh/ |
| H A D | shdma-base.c | 64 if (sdesc->mark == DESC_SUBMITTED) { in shdma_chan_xfer_ld_queue() 91 if (chunk != desc && (chunk->mark == DESC_IDLE || in shdma_tx_submit() 96 chunk->mark = DESC_SUBMITTED; in shdma_tx_submit() 140 chunk->mark = DESC_IDLE; in shdma_tx_submit() 175 if (sdesc->mark != DESC_PREPARED) { in shdma_get_desc() 176 BUG_ON(sdesc->mark != DESC_IDLE); in shdma_get_desc() 253 desc->mark = DESC_IDLE; in shdma_alloc_chan_resources() 353 BUG_ON(desc->mark != DESC_SUBMITTED && in __ld_cleanup() 354 desc->mark != DESC_COMPLETED && in __ld_cleanup() 355 desc->mark != DESC_WAITING); in __ld_cleanup() [all …]
|
| /linux/drivers/media/usb/dvb-usb/ |
| H A D | af9005-remote.c | 76 u16 mark, space; in af9005_rc_decode() local 82 mark = (u16) (data[0] << 8) + data[1]; in af9005_rc_decode() 84 if (space * 3 < mark) { in af9005_rc_decode() 100 mark = (u16) (data[i] << 8) + data[i + 1]; in af9005_rc_decode() 101 mark >>= 1; in af9005_rc_decode() 104 if (mark * 2 > space) in af9005_rc_decode()
|
| /linux/net/ipv4/ |
| H A D | ipcomp.c | 42 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp4_err() 77 memcpy(&t->mark, &x->mark, sizeof(t->mark)); in ipcomp_tunnel_create() 103 u32 mark = x->mark.v & x->mark.m; in ipcomp_tunnel_attach() local 105 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr.a4, in ipcomp_tunnel_attach()
|
| /linux/net/ipv6/ |
| H A D | ipcomp6.c | 59 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp6_err() 95 memcpy(&t->mark, &x->mark, sizeof(t->mark)); in ipcomp6_tunnel_create() 119 u32 mark = x->mark.m & x->mark.v; in ipcomp6_tunnel_attach() local 123 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr, in ipcomp6_tunnel_attach()
|
| /linux/include/net/tc_act/ |
| H A D | tc_skbedit.h | 18 u32 mark; member 56 u32 mark; in tcf_skbedit_mark() local 59 mark = rcu_dereference(to_skbedit(a)->params)->mark; in tcf_skbedit_mark() 62 return mark; in tcf_skbedit_mark()
|
| /linux/net/xfrm/ |
| H A D | xfrm_state.c | 1132 u32 mark, in __xfrm_state_lookup_all() argument 1165 if ((mark & x->mark.m) != x->mark.v) in __xfrm_state_lookup_all() 1176 u32 mark, in __xfrm_state_lookup() argument 1191 if ((mark & x->mark.m) != x->mark.v) in __xfrm_state_lookup() 1201 struct xfrm_state *xfrm_input_state_lookup(struct net *net, u32 mark, in xfrm_input_state_lookup() argument 1220 if ((mark & x->mark.m) != x->mark.v) in xfrm_input_state_lookup() 1229 x = __xfrm_state_lookup(&state_ptrs, mark, daddr, spi, proto, family); in xfrm_input_state_lookup() 1249 u32 mark, in __xfrm_state_lookup_byaddr() argument 1264 if ((mark & x->mark.m) != x->mark.v) in __xfrm_state_lookup_byaddr() 1279 u32 mark = x->mark.v & x->mark.m; in __xfrm_state_locate() local [all …]
|
| /linux/net/ipv4/netfilter/ |
| H A D | iptable_mangle.c | 42 u32 mark; in ipt_mangle_out() local 47 mark = skb->mark; in ipt_mangle_out() 61 skb->mark != mark || in ipt_mangle_out()
|