/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/ |
D | ocelot_flower.c | 135 struct ocelot_vcap_filter *filter; in ocelot_find_vcap_filter_that_points_at() local 146 list_for_each_entry(filter, &block->rules, list) in ocelot_find_vcap_filter_that_points_at() 147 if (filter->type == OCELOT_VCAP_FILTER_PAG && in ocelot_find_vcap_filter_that_points_at() 148 filter->goto_target == chain) in ocelot_find_vcap_filter_that_points_at() 149 return filter; in ocelot_find_vcap_filter_that_points_at() 152 list_for_each_entry(filter, &ocelot->dummy_rules, list) in ocelot_find_vcap_filter_that_points_at() 153 if (filter->goto_target == chain) in ocelot_find_vcap_filter_that_points_at() 154 return filter; in ocelot_find_vcap_filter_that_points_at() 161 struct ocelot_vcap_filter *filter) in ocelot_flower_parse_action() argument 176 filter->block_id = ocelot_chain_to_block(chain, ingress); in ocelot_flower_parse_action() [all …]
|
D | ocelot_vcap.c | 331 struct ocelot_vcap_filter *filter) in is2_action_set() argument 334 struct ocelot_vcap_action *a = &filter->action; in is2_action_set() 345 struct ocelot_vcap_filter *filter) in is2_entry_set() argument 348 struct ocelot_vcap_key_vlan *tag = &filter->vlan; in is2_entry_set() 365 if (filter->prio != 0) in is2_entry_set() 370 vcap_key_set(vcap, &data, VCAP_IS2_HK_PAG, filter->pag, 0xff); in is2_entry_set() 372 (filter->lookup == 0) ? OCELOT_VCAP_BIT_1 : in is2_entry_set() 375 ~filter->ingress_port_mask); in is2_entry_set() 378 vcap_key_bit_set(vcap, &data, VCAP_IS2_HK_L2_MC, filter->dmac_mc); in is2_entry_set() 379 vcap_key_bit_set(vcap, &data, VCAP_IS2_HK_L2_BC, filter->dmac_bc); in is2_entry_set() [all …]
|
/kernel/linux/linux-5.10/kernel/ |
D | seccomp.c | 231 static int seccomp_check_filter(struct sock_filter *filter, unsigned int flen) in seccomp_check_filter() argument 235 struct sock_filter *ftest = &filter[pc]; in seccomp_check_filter() 317 READ_ONCE(current->seccomp.filter); in seccomp_run_filters() 410 is_ancestor(thread->seccomp.filter, in seccomp_can_sync_threads() 411 caller->seccomp.filter))) in seccomp_can_sync_threads() 425 static inline void seccomp_filter_free(struct seccomp_filter *filter) in seccomp_filter_free() argument 427 if (filter) { in seccomp_filter_free() 428 bpf_prog_destroy(filter->prog); in seccomp_filter_free() 429 kfree(filter); in seccomp_filter_free() 471 struct seccomp_filter *orig = tsk->seccomp.filter; in seccomp_filter_release() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/ |
D | usnic_fwd.h | 91 usnic_fwd_alloc_flow(struct usnic_fwd_dev *ufdev, struct filter *filter, 97 static inline void usnic_fwd_init_usnic_filter(struct filter *filter, in usnic_fwd_init_usnic_filter() argument 100 filter->type = FILTER_USNIC_ID; in usnic_fwd_init_usnic_filter() 101 filter->u.usnic.ethtype = ETH_P_IBOE; in usnic_fwd_init_usnic_filter() 102 filter->u.usnic.flags = FILTER_FIELD_USNIC_ETHTYPE | in usnic_fwd_init_usnic_filter() 105 filter->u.usnic.proto_version = (USNIC_ROCE_GRH_VER << in usnic_fwd_init_usnic_filter() 108 filter->u.usnic.usnic_id = usnic_id; in usnic_fwd_init_usnic_filter() 111 static inline void usnic_fwd_init_udp_filter(struct filter *filter, in usnic_fwd_init_udp_filter() argument 114 filter->type = FILTER_IPV4_5TUPLE; in usnic_fwd_init_udp_filter() 115 filter->u.ipv4.flags = FILTER_FIELD_5TUP_PROTO; in usnic_fwd_init_udp_filter() [all …]
|
D | usnic_fwd.c | 160 struct filter *filter) in validate_filter_locked() argument 165 if (filter->type == FILTER_IPV4_5TUPLE) { in validate_filter_locked() 166 if (!(filter->u.ipv4.flags & FILTER_FIELD_5TUP_DST_AD)) in validate_filter_locked() 168 if (!(filter->u.ipv4.flags & FILTER_FIELD_5TUP_DST_PT)) in validate_filter_locked() 172 else if (filter->u.ipv4.dst_port == 0) in validate_filter_locked() 174 else if (ntohl(ufdev->inaddr) != filter->u.ipv4.dst_addr) in validate_filter_locked() 183 static void fill_tlv(struct filter_tlv *tlv, struct filter *filter, in fill_tlv() argument 187 tlv->length = sizeof(struct filter); in fill_tlv() 188 *((struct filter *)&tlv->val) = *filter; in fill_tlv() 191 sizeof(struct filter)); in fill_tlv() [all …]
|
/kernel/linux/linux-5.10/block/ |
D | scsi_ioctl.c | 110 static void blk_set_cmd_filter_defaults(struct blk_cmd_filter *filter) in blk_set_cmd_filter_defaults() argument 113 __set_bit(TEST_UNIT_READY, filter->read_ok); in blk_set_cmd_filter_defaults() 114 __set_bit(REQUEST_SENSE, filter->read_ok); in blk_set_cmd_filter_defaults() 115 __set_bit(READ_6, filter->read_ok); in blk_set_cmd_filter_defaults() 116 __set_bit(READ_10, filter->read_ok); in blk_set_cmd_filter_defaults() 117 __set_bit(READ_12, filter->read_ok); in blk_set_cmd_filter_defaults() 118 __set_bit(READ_16, filter->read_ok); in blk_set_cmd_filter_defaults() 119 __set_bit(READ_BUFFER, filter->read_ok); in blk_set_cmd_filter_defaults() 120 __set_bit(READ_DEFECT_DATA, filter->read_ok); in blk_set_cmd_filter_defaults() 121 __set_bit(READ_CAPACITY, filter->read_ok); in blk_set_cmd_filter_defaults() [all …]
|
/kernel/linux/patches/ |
D | .gitattributes | 1 *.tgz filter=lfs diff=lfs merge=lfs -text 2 *.trp filter=lfs diff=lfs merge=lfs -text 3 *.apk filter=lfs diff=lfs merge=lfs -text 4 *.jar filter=lfs diff=lfs merge=lfs -text 5 *.mp4 filter=lfs diff=lfs merge=lfs -text 6 *.zip filter=lfs diff=lfs merge=lfs -text 7 *.asm filter=lfs diff=lfs merge=lfs -text 8 *.8svn filter=lfs diff=lfs merge=lfs -text 9 *.9svn filter=lfs diff=lfs merge=lfs -text 10 *.dylib filter=lfs diff=lfs merge=lfs -text [all …]
|
/kernel/linux/config/ |
D | .gitattributes | 1 *.tgz filter=lfs diff=lfs merge=lfs -text 2 *.trp filter=lfs diff=lfs merge=lfs -text 3 *.apk filter=lfs diff=lfs merge=lfs -text 4 *.jar filter=lfs diff=lfs merge=lfs -text 5 *.mp4 filter=lfs diff=lfs merge=lfs -text 6 *.zip filter=lfs diff=lfs merge=lfs -text 7 *.asm filter=lfs diff=lfs merge=lfs -text 8 *.8svn filter=lfs diff=lfs merge=lfs -text 9 *.9svn filter=lfs diff=lfs merge=lfs -text 10 *.dylib filter=lfs diff=lfs merge=lfs -text [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
D | tc_flower.sh | 41 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 43 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 55 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 56 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 67 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 69 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 81 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 82 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 91 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 93 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ [all …]
|
D | tc_actions.sh | 60 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 69 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 79 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 81 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 90 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \ 99 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 111 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower 112 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 125 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 127 tc filter add dev $swp1 ingress protocol ip pref 3 handle 103 flower \ [all …]
|
D | tc_chains.sh | 38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 47 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 57 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 59 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 61 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 77 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 78 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 133 tc filter add dev $h2 ingress protocol ip pref 1 handle 1101 \ 137 tc filter add dev $h2 ingress protocol ip pref 1 handle 1102 \ [all …]
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | strfilter.c | 30 void strfilter__delete(struct strfilter *filter) in strfilter__delete() argument 32 if (filter) { in strfilter__delete() 33 strfilter_node__delete(filter->root); in strfilter__delete() 34 free(filter); in strfilter__delete() 162 struct strfilter *filter = zalloc(sizeof(*filter)); in strfilter__new() local 165 if (filter) in strfilter__new() 166 filter->root = strfilter_node__new(rules, &ep); in strfilter__new() 168 if (!filter || !filter->root || *ep != '\0') { in strfilter__new() 171 strfilter__delete(filter); in strfilter__new() 172 filter = NULL; in strfilter__new() [all …]
|
/kernel/linux/linux-5.10/kernel/trace/ |
D | trace_events_filter.c | 967 int filter_match_preds(struct event_filter *filter, void *rec) in filter_match_preds() argument 973 if (!filter) in filter_match_preds() 977 prog = rcu_dereference_raw(filter->prog); in filter_match_preds() 991 static void remove_filter_string(struct event_filter *filter) in remove_filter_string() argument 993 if (!filter) in remove_filter_string() 996 kfree(filter->filter_string); in remove_filter_string() 997 filter->filter_string = NULL; in remove_filter_string() 1002 struct event_filter *filter) in append_filter_err() argument 1009 if (WARN_ON(!filter->filter_string)) in append_filter_err() 1017 len = strlen(filter->filter_string); in append_filter_err() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
D | tc_restrictions.sh | 44 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 56 tc filter del block 22 protocol ip pref 1 handle 101 flower 61 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 70 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 74 tc filter del block 22 protocol ip pref 1 handle 101 flower 92 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 105 tc filter del block 22 protocol ip pref 1 handle 101 flower 110 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 120 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 127 tc filter add block 22 protocol ip pref 1 handle 101 flower \ [all …]
|
/kernel/linux/linux-5.10/tools/lib/traceevent/ |
D | parse-filter.c | 106 find_filter_type(struct tep_event_filter *filter, int id) in find_filter_type() argument 113 filter_type = bsearch(&key, filter->event_filters, in find_filter_type() 114 filter->filters, in find_filter_type() 115 sizeof(*filter->event_filters), in find_filter_type() 122 add_filter_type(struct tep_event_filter *filter, int id) in add_filter_type() argument 127 filter_type = find_filter_type(filter, id); in add_filter_type() 131 filter_type = realloc(filter->event_filters, in add_filter_type() 132 sizeof(*filter->event_filters) * in add_filter_type() 133 (filter->filters + 1)); in add_filter_type() 137 filter->event_filters = filter_type; in add_filter_type() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
D | tc_flower.sh | 100 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 109 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 124 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 132 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 146 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 148 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 157 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 165 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \ 174 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 182 tc filter del dev $h2 ingress protocol ip pref 3 handle 103 flower [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_llh_internal.h | 522 #define HW_ATL_RX_FLR_MCST_FLR_ADR(filter) (0x00005250u + (filter) * 0x4) argument 797 #define HW_ATL_RPFL2MC_ENF_ADR(filter) (0x00005250 + (filter) * 0x4) argument 834 #define HW_ATL_RPFL2UC_ACTF_ADR(filter) (0x00005114 + (filter) * 0x8) argument 853 #define HW_ATL_RPFL2UC_ENF_ADR(filter) (0x00005114 + (filter) * 0x8) argument 866 #define HW_ATL_RPFL2UC_DAFLSW_ADR(filter) (0x00005110 + (filter) * 0x8) argument 868 #define HW_ATL_RPFL2UC_DAFMSW_ADR(filter) (0x00005114 + (filter) * 0x8) argument 1120 #define HW_ATL_RPF_VL_EN_F_ADR(filter) (0x00005290 + (filter) * 0x4) argument 1139 #define HW_ATL_RPF_VL_ACT_F_ADR(filter) (0x00005290 + (filter) * 0x4) argument 1158 #define HW_ATL_RPF_VL_ID_F_ADR(filter) (0x00005290 + (filter) * 0x4) argument 1177 #define HW_ATL_RPF_VL_RXQ_EN_F_ADR(filter) (0x00005290 + (filter) * 0x4) argument [all …]
|
/kernel/linux/linux-5.10/tools/lib/traceevent/Documentation/ |
D | libtraceevent-filter.txt | 9 Event filter related APIs. 32 Filters can be attached to traced events. They can be used to filter out various 37 The _tep_filter_alloc()_ function creates a new event filter. The _tep_ argument 40 The _tep_filter_free()_ function frees an event filter and all resources that it 43 The _tep_filter_reset()_ function removes all rules from an event filter and 47 _filter_str_ argument is the filter string, that contains the rule. 57 The _tep_filter_copy()_ function copies a _source_ filter into a _dest_ filter. 71 filter, or NULL in case of an error. 77 The _tep_event_filtered()_ function returns 1 if the filter is found for given 86 _pass:[TEP_ERRNO__FILTER_MATCH]_ - filter found for event, the record matches. [all …]
|
/kernel/linux/linux-5.10/drivers/media/dvb-core/ |
D | dmxdev.c | 388 struct dmx_section_filter *filter, in dvb_dmxdev_section_callback() argument 391 struct dmxdev_filter *dmxdevfilter = filter->priv; in dvb_dmxdev_section_callback() 509 static int dvb_dmxdev_feed_start(struct dmxdev_filter *filter) in dvb_dmxdev_feed_start() argument 514 dvb_dmxdev_filter_state_set(filter, DMXDEV_STATE_GO); in dvb_dmxdev_feed_start() 516 switch (filter->type) { in dvb_dmxdev_feed_start() 518 return filter->feed.sec->start_filtering(filter->feed.sec); in dvb_dmxdev_feed_start() 520 list_for_each_entry(feed, &filter->feed.ts, next) { in dvb_dmxdev_feed_start() 523 dvb_dmxdev_feed_stop(filter); in dvb_dmxdev_feed_start() 537 static int dvb_dmxdev_feed_restart(struct dmxdev_filter *filter) in dvb_dmxdev_feed_restart() argument 540 struct dmxdev *dmxdev = filter->dev; in dvb_dmxdev_feed_restart() [all …]
|
/kernel/linux/linux-5.10/samples/seccomp/ |
D | bpf-helper.c | 20 struct sock_filter *filter, size_t count) in bpf_resolve_jumps() argument 32 struct sock_filter *instr = &filter[offset]; in bpf_resolve_jumps() 90 void seccomp_bpf_print(struct sock_filter *filter, size_t count) in seccomp_bpf_print() argument 92 struct sock_filter *end = filter + count; in seccomp_bpf_print() 93 for ( ; filter < end; ++filter) in seccomp_bpf_print() 95 filter->code, filter->jt, filter->jf, filter->k); in seccomp_bpf_print()
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | xt_bpf.c | 33 program.filter = insns; in __bpf_mt_check_bytecode() 70 &info->filter); in bpf_mt_check() 80 &info->filter); in bpf_mt_check_v1() 82 return __bpf_mt_check_fd(info->fd, &info->filter); in bpf_mt_check_v1() 84 return __bpf_mt_check_path(info->path, &info->filter); in bpf_mt_check_v1() 93 return BPF_PROG_RUN(info->filter, skb); in bpf_mt() 100 return !!bpf_prog_run_save_cb(info->filter, (struct sk_buff *) skb); in bpf_mt_v1() 107 bpf_prog_destroy(info->filter); in bpf_mt_destroy() 114 bpf_prog_destroy(info->filter); in bpf_mt_destroy_v1() 126 .usersize = offsetof(struct xt_bpf_info, filter), [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
D | hw_atl2_llh_internal.h | 52 #define HW_ATL2_RPFL2UC_TAG_ADR(filter) (0x00005114 + (filter) * 0x8) argument 106 #define HW_ATL2_RPF_VL_TAG_ADR(filter) (0x00005290 + (filter) * 0x4) argument 285 #define HW_ATL2_RPF_ACT_RSLVR_REQ_TAG_ADR(filter) \ argument 286 (0x00014000u + (filter) * 0x10) 299 #define HW_ATL2_RPF_ACT_RSLVR_TAG_MASK_ADR(filter) \ argument 300 (0x00014004u + (filter) * 0x10) 313 #define HW_ATL2_RPF_ACT_RSLVR_ACTN_ADR(filter) \ argument 314 (0x00014008u + (filter) * 0x10)
|
/kernel/linux/linux-5.10/arch/x86/kvm/ |
D | pmu.c | 186 struct kvm_pmu_event_filter *filter; in reprogram_gp_counter() local 200 filter = srcu_dereference(kvm->arch.pmu_event_filter, &kvm->srcu); in reprogram_gp_counter() 201 if (filter) { in reprogram_gp_counter() 204 if (bsearch(&key, filter->events, filter->nevents, in reprogram_gp_counter() 206 allow_event = filter->action == KVM_PMU_EVENT_ALLOW; in reprogram_gp_counter() 208 allow_event = filter->action == KVM_PMU_EVENT_DENY; in reprogram_gp_counter() 245 struct kvm_pmu_event_filter *filter; in reprogram_fixed_counter() local 253 filter = srcu_dereference(kvm->arch.pmu_event_filter, &kvm->srcu); in reprogram_fixed_counter() 254 if (filter) { in reprogram_fixed_counter() 255 if (filter->action == KVM_PMU_EVENT_DENY && in reprogram_fixed_counter() [all …]
|
/kernel/liteos_a/kernel/extended/container/ |
D | Makefile | 36 LOCAL_SRCS += $(filter-out los_ipc_container.c, $(LOCAL_SRCS)) 40 LOCAL_SRCS += $(filter-out los_mnt_container.c, $(LOCAL_SRCS)) 44 LOCAL_SRCS += $(filter-out los_net_container.c, $(LOCAL_SRCS)) 48 LOCAL_SRCS += $(filter-out los_pid_container.c, $(LOCAL_SRCS)) 52 LOCAL_SRCS += $(filter-out los_time_container.c, $(LOCAL_SRCS)) 56 LOCAL_SRCS += $(filter-out los_credentials.c los_user_container.c, $(LOCAL_SRCS)) 60 LOCAL_SRCS += $(filter-out los_uts_container.c, $(LOCAL_SRCS))
|
/kernel/linux/linux-5.10/tools/testing/selftests/netfilter/ |
D | nft_nat.sh | 86 ip netns exec $ns nft list counter inet filter $counter 1>&2 94 cnt=$(ip netns exec $ns nft list counter inet filter ns0in | grep -q "packets 1 bytes 84") 99 cnt=$(ip netns exec $ns nft list counter inet filter ns0out | grep -q "packets 1 bytes 84") 106 cnt=$(ip netns exec $ns nft list counter inet filter ns0in6 | grep -q "$expect") 111 cnt=$(ip netns exec $ns nft list counter inet filter ns0out6 | grep -q "$expect") 125 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0in | grep -q "packets 0 bytes 0") 131 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0in6 | grep -q "packets 0 bytes 0") 137 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0out | grep -q "packets 0 bytes 0") 142 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0out6 | grep -q "packets 0 bytes 0") 150 cnt=$(ip netns exec "$ns0" nft list counter inet filter ${ns}${dir} | grep -q "$expect") [all …]
|