/openbmc/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() 160 struct fsnotify_mark *mark; in __fsnotify_recalc_mask() local 166 hlist_for_each_entry(mark, &conn->list, obj_list) { in __fsnotify_recalc_mask() 167 if (!(mark->flags & FSNOTIFY_MARK_FLAG_ATTACHED)) in __fsnotify_recalc_mask() 169 new_mask |= fsnotify_calc_mask(mark); in __fsnotify_recalc_mask() 171 !(mark->flags & FSNOTIFY_MARK_FLAG_NO_IREF)) in __fsnotify_recalc_mask() 298 static void fsnotify_final_mark_destroy(struct fsnotify_mark *mark) in fsnotify_final_mark_destroy() argument 300 struct fsnotify_group *group = mark->group; in fsnotify_final_mark_destroy() [all …]
|
H A D | fdinfo.c | 27 struct fsnotify_mark *mark)) in show_fdinfo() argument 30 struct fsnotify_mark *mark; in show_fdinfo() local 33 list_for_each_entry(mark, &group->marks_list, g_list) { in show_fdinfo() 34 show(m, mark); in show_fdinfo() 74 static void inotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in inotify_fdinfo() argument 79 if (mark->connector->type != FSNOTIFY_OBJ_TYPE_INODE) in inotify_fdinfo() 82 inode_mark = container_of(mark, struct inotify_inode_mark, fsn_mark); in inotify_fdinfo() 83 inode = igrab(fsnotify_conn_inode(mark->connector)); in inotify_fdinfo() 87 inotify_mark_user_mask(mark)); in inotify_fdinfo() 103 static void fanotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in fanotify_fdinfo() argument [all …]
|
H A D | fsnotify.c | 343 struct fsnotify_mark *mark; in send_to_group() local 351 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { in send_to_group() 352 if (!(mark->flags & in send_to_group() 354 mark->ignore_mask = 0; in send_to_group() 359 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { in send_to_group() 360 group = mark->group; in send_to_group() 361 marks_mask |= mark->mask; in send_to_group() 363 fsnotify_effective_ignore_mask(mark, is_dir, type); in send_to_group() 394 static struct fsnotify_mark *fsnotify_next_mark(struct fsnotify_mark *mark) in fsnotify_next_mark() argument 398 if (mark) in fsnotify_next_mark() [all …]
|
/openbmc/linux/net/netfilter/ipvs/ |
H A D | ip_vs_wrr.c | 108 struct ip_vs_wrr_mark *mark; in ip_vs_wrr_init_svc() local 113 mark = kmalloc(sizeof(struct ip_vs_wrr_mark), GFP_KERNEL); in ip_vs_wrr_init_svc() 114 if (mark == NULL) in ip_vs_wrr_init_svc() 117 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list); in ip_vs_wrr_init_svc() 118 mark->di = ip_vs_wrr_gcd_weight(svc); in ip_vs_wrr_init_svc() 119 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_init_svc() 120 mark->cw = mark->mw; in ip_vs_wrr_init_svc() 121 svc->sched_data = mark; in ip_vs_wrr_init_svc() 129 struct ip_vs_wrr_mark *mark = svc->sched_data; in ip_vs_wrr_done_svc() local 134 kfree_rcu(mark, rcu_head); in ip_vs_wrr_done_svc() [all …]
|
/openbmc/u-boot/test/py/tests/ |
H A D | test_fpga.py | 98 @pytest.mark.xfail 99 @pytest.mark.buildconfigspec('cmd_fpga') 107 @pytest.mark.buildconfigspec('cmd_fpga') 116 @pytest.mark.buildconfigspec('cmd_fpga') 120 @pytest.mark.buildconfigspec('cmd_fpga') 127 @pytest.mark.buildconfigspec('cmd_fpga') 138 @pytest.mark.buildconfigspec('cmd_fpga') 149 @pytest.mark.buildconfigspec('cmd_fpga') 156 @pytest.mark.buildconfigspec('cmd_fpga') 172 @pytest.mark.buildconfigspec('cmd_fpga') [all …]
|
H A D | test_gpt.py | 71 @pytest.mark.boardspec('sandbox') 72 @pytest.mark.buildconfigspec('cmd_gpt') 73 @pytest.mark.buildconfigspec('cmd_part') 74 @pytest.mark.requiredtool('sgdisk') 88 @pytest.mark.boardspec('sandbox') 89 @pytest.mark.buildconfigspec('cmd_gpt') 90 @pytest.mark.requiredtool('sgdisk') 98 @pytest.mark.boardspec('sandbox') 99 @pytest.mark.buildconfigspec('cmd_gpt') 100 @pytest.mark.requiredtool('sgdisk') [all …]
|
H A D | test_pinmux.py | 6 @pytest.mark.buildconfigspec('cmd_pinmux') 13 @pytest.mark.buildconfigspec('cmd_pinmux') 20 @pytest.mark.buildconfigspec('cmd_pinmux') 21 @pytest.mark.boardspec('sandbox') 31 @pytest.mark.buildconfigspec('cmd_pinmux') 32 @pytest.mark.boardspec('sandbox') 38 @pytest.mark.buildconfigspec('cmd_pinmux') 47 @pytest.mark.buildconfigspec('cmd_pinmux') 48 @pytest.mark.boardspec('sandbox') 56 @pytest.mark.buildconfigspec('cmd_pinmux') [all …]
|
H A D | test_sf.py | 167 @pytest.mark.buildconfigspec('cmd_sf') 168 @pytest.mark.buildconfigspec('cmd_crc32') 169 @pytest.mark.buildconfigspec('cmd_memory') 174 @pytest.mark.buildconfigspec('cmd_sf') 175 @pytest.mark.buildconfigspec('cmd_crc32') 176 @pytest.mark.buildconfigspec('cmd_memory') 186 @pytest.mark.buildconfigspec('cmd_sf') 187 @pytest.mark.buildconfigspec('cmd_crc32') 188 @pytest.mark.buildconfigspec('cmd_memory') 209 @pytest.mark.buildconfigspec('cmd_sf') [all …]
|
H A D | test_tpm2.py | 43 @pytest.mark.buildconfigspec('cmd_tpm_v2') 51 @pytest.mark.buildconfigspec('cmd_tpm_v2') 62 @pytest.mark.buildconfigspec('cmd_tpm_v2') 73 @pytest.mark.buildconfigspec('cmd_tpm_v2') 85 @pytest.mark.buildconfigspec('cmd_tpm_v2') 106 @pytest.mark.buildconfigspec('cmd_tpm_v2') 127 @pytest.mark.buildconfigspec('cmd_tpm_v2') 148 @pytest.mark.buildconfigspec('cmd_tpm_v2') 178 @pytest.mark.buildconfigspec('cmd_tpm_v2') 201 @pytest.mark.buildconfigspec('cmd_tpm_v2') [all …]
|
/openbmc/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() 97 fsnotify_init_mark(&audit_mark->mark, audit_fsnotify_group); in audit_alloc_mark() 98 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 161 static inline struct audit_tree_mark *audit_mark(struct fsnotify_mark *mark) in audit_mark() argument 163 return container_of(mark, struct audit_tree_mark, mark); in audit_mark() 166 static struct audit_chunk *mark_chunk(struct fsnotify_mark *mark) in mark_chunk() argument 168 return audit_mark(mark)->chunk; in mark_chunk() 171 static void audit_tree_destroy_watch(struct fsnotify_mark *mark) in audit_tree_destroy_watch() argument 173 kmem_cache_free(audit_tree_mark_cachep, audit_mark(mark)); in audit_tree_destroy_watch() 183 fsnotify_init_mark(&amark->mark, audit_tree_group); in alloc_mark() 184 amark->mark.mask = FS_IN_IGNORED; in alloc_mark() [all …]
|
/openbmc/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()
|
/openbmc/linux/include/linux/ |
H A D | fsnotify_backend.h | 160 int (*handle_inode_event)(struct fsnotify_mark *mark, u32 mask, 164 void (*freeing_mark)(struct fsnotify_mark *mark, struct fsnotify_group *group); 167 void (*free_mark)(struct fsnotify_mark *mark); 453 #define fsnotify_foreach_iter_mark_type(iter, mark, type) \ argument 455 type = fsnotify_iter_step(iter, type, &mark), \ 669 static inline __u32 fsnotify_ignore_mask(struct fsnotify_mark *mark) in fsnotify_ignore_mask() argument 671 __u32 ignore_mask = mark->ignore_mask; in fsnotify_ignore_mask() 674 if (mark->flags & FSNOTIFY_MARK_FLAG_HAS_IGNORE_FLAGS) in fsnotify_ignore_mask() 684 ignore_mask |= mark->mask & FS_EVENT_ON_CHILD; in fsnotify_ignore_mask() 690 static inline __u32 fsnotify_ignored_events(struct fsnotify_mark *mark) in fsnotify_ignored_events() argument [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | test_cgrp2_sock.c | 30 static int prog_load(__u32 idx, __u32 mark, __u32 prio) in prog_load() argument 58 BPF_MOV64_IMM(BPF_REG_3, mark), in prog_load() 62 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, mark)), in prog_load() 63 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, mark)), in prog_load() 87 if (mark) in prog_load() 107 if (mark) { in prog_load() 145 unsigned int mark = 0; in get_somark() local 146 socklen_t optlen = sizeof(mark); in get_somark() 149 rc = getsockopt(sd, SOL_SOCKET, SO_MARK, &mark, &optlen); in get_somark() 153 return mark; in get_somark() [all …]
|
H A D | xdp2skb_meta_kern.c | 28 __u32 mark; member 57 meta->mark = 42; in _xdp_mark() 72 ctx->mark = 41; in _tc_mark() 78 ctx->mark = meta->mark; /* Transfer XDP-mark to SKB-mark */ in _tc_mark()
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/openbmc/meta-google/recipes-google/networking/gbmc-bridge/ |
H A D | 50-gbmc-br-cn-redirect.rules | 4 iifname == "cn0" mark set 1 return 5 iifname == "cn1" mark set 2 return 15 tcp dport 10167-10168 mark set 0xff 16 mark 1 tcp dport 10166 tcp dport set 10167 notrack 17 mark 2 tcp dport 10166 tcp dport set 10168 notrack
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_ldsx_insn.c | 94 old_mark = skb->mark; in _tc() 96 skb->mark = 0xf6fe; in _tc() 107 [off_mark]"i"(offsetof(struct __sk_buff, mark)) in _tc() 110 tmp_mark = (char)skb->mark; in _tc() 114 skb->mark = old_mark; in _tc()
|
/openbmc/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()
|
/openbmc/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() 93 memcpy(&t->mark, &x->mark, sizeof(t->mark)); in ipcomp6_tunnel_create() 117 u32 mark = x->mark.m & x->mark.v; in ipcomp6_tunnel_attach() local 121 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr, in ipcomp6_tunnel_attach()
|