Home
last modified time | relevance | path

Searched refs:fold (Results 1 – 25 of 26) sorted by relevance

12

/linux/net/sched/
H A Dcls_route.c397 struct route4_filter *fold, u32 flags, in route4_set_parms() argument
411 if (!fold && handle & 0x8000) { in route4_set_parms()
434 if (handle && (!fold || nhandle == (handle & ~0x7F00))) in route4_set_parms()
437 if (fold && !tb[TCA_ROUTE4_TO] && !tb[TCA_ROUTE4_FROM] && in route4_set_parms()
438 !tb[TCA_ROUTE4_IIF] && nhandle != fold->handle) { in route4_set_parms()
443 if (handle && !fold && nhandle != handle) { in route4_set_parms()
470 if (fp != fold && fp->handle == nhandle) { in route4_set_parms()
507 struct route4_filter *fold, *f1, *pfp, *f = NULL; in route4_change() local
528 fold = *arg; in route4_change()
529 if (fold in route4_change()
[all...]
H A Dcls_flow.c402 struct flow_filter *fold, *fnew; in flow_change() local
458 fold = *arg; in flow_change()
459 if (fold) { in flow_change()
461 if (fold->handle != handle && handle) in flow_change()
464 /* Copy fold into fnew */ in flow_change()
465 fnew->tp = fold->tp; in flow_change()
466 fnew->handle = fold->handle; in flow_change()
467 fnew->nkeys = fold->nkeys; in flow_change()
468 fnew->keymask = fold->keymask; in flow_change()
469 fnew->mode = fold in flow_change()
[all...]
H A Dcls_basic.c180 struct basic_filter *fold = (struct basic_filter *) *arg; in basic_change() local
191 if (fold != NULL) { in basic_change()
192 if (handle && fold->handle != handle) in basic_change()
208 } else if (!fold) { in basic_change()
218 if (!fold) in basic_change()
226 if (!fold) in basic_change()
233 if (fold) { in basic_change()
235 list_replace_rcu(&fold->link, &fnew->link); in basic_change()
236 tcf_unbind_filter(tp, &fold->res); in basic_change()
237 tcf_exts_get_net(&fold in basic_change()
[all...]
H A Dcls_flower.c2318 struct cls_fl_filter *fold, in fl_check_assign_mask()
2336 if (fold) { in fl_ht_insert_unique()
2351 } else if (fold && fold->mask != fnew->mask) { in fl_ht_insert_unique()
2372 struct cls_fl_filter *fold, in fl_change()
2386 return fold && err == -EEXIST ? 0 : err; in fl_change()
2402 struct cls_fl_filter *fold = *arg; in fl_change()
2432 if (fold && handle && fold->handle != handle) { in fl_change()
2455 if (!fold) { in fl_change()
2283 fl_check_assign_mask(struct cls_fl_head * head,struct cls_fl_filter * fnew,struct cls_fl_filter * fold,struct fl_flow_mask * mask) fl_check_assign_mask() argument
2337 fl_ht_insert_unique(struct cls_fl_filter * fnew,struct cls_fl_filter * fold,bool * in_ht) fl_ht_insert_unique() argument
2367 struct cls_fl_filter *fold = *arg; fl_change() local
[all...]
/linux/include/linux/
H A Detherdevice.h384 u32 fold = ((*(const u32 *)addr1) ^ (*(const u32 *)addr2)) | in ether_addr_equal_64bits()
387 return fold == 0; in ether_addr_equal_64bits()
413 u64 fold = (*(const u64 *)addr1) ^ (*(const u64 *)addr2); in ether_addr_equal_unaligned()
416 return (fold >> 16) == 0;
418 return (fold << 16) == 0;
600 unsigned long fold;
610 fold = *(unsigned long *)a ^ *(unsigned long *)b; in eth_hw_addr_gen()
611 fold |= *(unsigned long *)(a + 6) ^ *(unsigned long *)(b + 6); in eth_hw_addr_gen()
612 return fold; in eth_hw_addr_gen()
356 u32 fold = ((*(const u32 *)addr1) ^ (*(const u32 *)addr2)) | ether_addr_equal() local
385 u64 fold = (*(const u64 *)addr1) ^ (*(const u64 *)addr2); ether_addr_equal_64bits() local
572 unsigned long fold; compare_ether_header() local
H A Drbtree_augmented.h139 #define RB_AUG_FUNC(val, aug, fold) (val(s), aug, fold) argument
140 #define RB_AUG(val, aug, fold) (s->val, aug, fold) argument
143 #define __RB_INST(n, RBNAME, RBSTRUCT, RBFIELD, val, aug, fold) \ argument
157 _val = fold(_val, _c->aug); \
161 _val = fold(_val, _c->aug); \
173 #define __RB_COPY(n, RBNAME, RBSTRUCT, RBFIELD, val, aug, fold) \ argument
180 #define __RB_COMPUTE(n, RBNAME, RBSTRUCT, RBFIELD, val, aug, fold) \ argument
188 #define __RB_MERGE(n, RBNAME, RBSTRUCT, RBFIELD, val, aug, fold) \ argument
189 node->aug = fold(node->aug, new->aug);
/linux/Documentation/trace/
H A Dfunction-graph-fold.vim5 " use the usual vim fold commands, such as "za", to open and close nested
6 " functions. While closed, a fold will show the total time taken for a call,
/linux/tools/testing/selftests/bpf/
H A Dtest_xsk.sh111 VETH0_POSTFIX=$(cat ${URANDOM} | tr -dc '0-9' | fold -w 256 | head -n 1 | head --bytes 4)
113 VETH1_POSTFIX=$(cat ${URANDOM} | tr -dc '0-9' | fold -w 256 | head -n 1 | head --bytes 4)
/linux/arch/alpha/lib/
H A Dcsum_ipv6_magic.S104 extwl $0,2,$1 # e0 : fold 18-bit value
109 extwl $0,2,$1 # e0 : fold 17-bit value
/linux/Documentation/translations/zh_CN/core-api/
H A Dunaligned-memory-access.rst135 u32 fold = ((*(const u32 *)addr1) ^ (*(const u32 *)addr2)) |
138 return fold == 0;
/linux/rust/syn/gen/
H A Dfold.rs1051 args: crate::punctuated::fold(node.args, f, F::fold_generic_argument), in fold_angle_bracketed_generic_arguments()
1205 lifetimes: crate::punctuated::fold(node.lifetimes, f, F::fold_generic_param), in fold_bound_lifetimes()
1253 bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound), in fold_constraint()
1281 variants: crate::punctuated::fold(node.variants, f, F::fold_variant), in fold_data_enum()
1449 elems: crate::punctuated::fold(node.elems, f, F::fold_expr), in fold_expr_array()
1539 args: crate::punctuated::fold(node.args, f, F::fold_expr), in fold_expr_call()
1569 inputs: crate::punctuated::fold(node.inputs, f, F::fold_pat), in fold_expr_closure()
1759 args: crate::punctuated::fold(node.args, f, F::fold_expr), in fold_expr_method_call()
1866 fields: crate::punctuated::fold(node.fields, f, F::fold_field_value), in fold_expr_struct()
1907 elems: crate::punctuated::fold(node.elems, f, F::fold_expr), in fold_expr_tuple()
[all …]
/linux/rust/quote/
H A Dspanned.rs38 iter.fold(None, |_prev, next| Some(next)) in join_spans()
/linux/rust/syn/
H A Dpunctuated.rs1102 pub(crate) fn fold<T, P, V, F>( in fold() function
1104 fold: &mut V, in fold()
1115 .map(|(t, p)| (f(fold, t), p)) in fold()
1118 Some(t) => Some(Box::new(f(fold, *t))), in fold()
H A Dlib.rs640 pub mod fold; module
874 pub use crate::gen::fold;
/linux/Documentation/security/
H A Dsiphash.rst49 will constant fold at compile-time and automatically choose one of the
168 will constant fold at compile-time and automatically choose one of the
/linux/Documentation/leds/
H A Dleds-blinkm.rst16 The interface this driver provides is 3-fold:
/linux/kernel/bpf/
H A Dstates.c1184 struct bpf_func_state *fold, *fcur;
1190 fold = old->frame[fr]; in iter_active_depths_differ()
1193 if (memcmp(&fold->regs[i], &fcur->regs[i], in iter_active_depths_differ()
1116 struct bpf_func_state *fold, *fcur; states_maybe_looping() local
H A Dverifier.c5428 /* Only a constant offset is allowed here; fold it into off. */ in check_max_stack_depth_subprog()
8863 struct bpf_func_state *fold, *fcur; in check_func_arg()
8867 fold = old->frame[fr]; in check_func_arg()
8872 &fold->regs[i], in check_func_arg()
8875 num_slots = min(bpf_stack_nr_slots(fold), bpf_stack_nr_slots(fcur)); in check_func_arg()
8877 struct bpf_stack_state *old_ss = bpf_stack_slot(fold, i); in check_func_arg()
9480 * Therefore we fold these flags depending on the arg_type before comparison. in release_reference()
7908 struct bpf_func_state *fold, *fcur; widen_imprecise_scalars() local
/linux/Documentation/core-api/
H A Dunaligned-memory-access.rst156 u32 fold = ((*(const u32 *)addr1) ^ (*(const u32 *)addr2)) |
159 return fold == 0;
/linux/rust/pin-init/internal/src/
H A Dinit.rs232 if let Some(default_error) = attrs.iter().fold(None, |acc, attr| {
/linux/Documentation/driver-api/
H A Dsteal-governor.rst36 for underlying physical CPU. Use it as a hint in the guest to fold the
/linux/net/wireless/
H A Dscan.c1806 u8 fold = 0; in cfg80211_combine_bsses()
1821 fold |= ie[2 + i]; in cfg80211_combine_bsses()
1823 if (fold) { in cfg80211_combine_bsses()
1805 u8 fold = 0; cfg80211_combine_bsses() local
/linux/tools/perf/Documentation/
H A Dperf-probe.txt245 In addition, you can use "!" for specifying filter-out rule. You also can give several rules combined with "&" or "|", and fold those rules as one rule by using "(" ")".
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc.c50 u64 fold = __swab64(ether_addr_to_u64(addr)) >> 16; in enetc_mac_addr_hash_idx() local
59 res |= (hweight64(fold & (mask << i)) & 0x1) << i; in enetc_mac_addr_hash_idx()
/linux/Documentation/bpf/
H A Dsigning.rst179 module kfunc, is rejected when it would be bound. Together with the fold rule

12