/openbmc/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_flower.c | 147 struct ocelot_vcap_filter *filter; in ocelot_find_vcap_filter_that_points_at() local 158 list_for_each_entry(filter, &block->rules, list) in ocelot_find_vcap_filter_that_points_at() 159 if (filter->type == OCELOT_VCAP_FILTER_PAG && in ocelot_find_vcap_filter_that_points_at() 160 filter->goto_target == chain) in ocelot_find_vcap_filter_that_points_at() 161 return filter; in ocelot_find_vcap_filter_that_points_at() 164 list_for_each_entry(filter, &ocelot->dummy_rules, list) in ocelot_find_vcap_filter_that_points_at() 165 if (filter->goto_target == chain) in ocelot_find_vcap_filter_that_points_at() 166 return filter; in ocelot_find_vcap_filter_that_points_at() 173 struct ocelot_vcap_filter *filter, in ocelot_flower_parse_ingress_vlan_modify() argument 179 if (filter->goto_target != -1) { in ocelot_flower_parse_ingress_vlan_modify() [all …]
|
H A D | ocelot_mrp.c | 39 struct ocelot_vcap_filter *filter; in ocelot_mrp_del_vcap() local 42 filter = ocelot_vcap_block_find_filter_by_id(block_vcap_is2, id, in ocelot_mrp_del_vcap() 44 if (!filter) in ocelot_mrp_del_vcap() 47 return ocelot_vcap_filter_del(ocelot, filter); in ocelot_mrp_del_vcap() 54 struct ocelot_vcap_filter *filter; in ocelot_mrp_redirect_add_vcap() local 57 filter = kzalloc(sizeof(*filter), GFP_KERNEL); in ocelot_mrp_redirect_add_vcap() 58 if (!filter) in ocelot_mrp_redirect_add_vcap() 61 filter->key_type = OCELOT_VCAP_KEY_ETYPE; in ocelot_mrp_redirect_add_vcap() 62 filter->prio = 1; in ocelot_mrp_redirect_add_vcap() 63 filter->id.cookie = OCELOT_VCAP_IS2_MRP_REDIRECT(ocelot, src_port); in ocelot_mrp_redirect_add_vcap() [all …]
|
H A 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() 346 struct ocelot_vcap_filter *filter) in is2_entry_set() argument 349 struct ocelot_vcap_key_vlan *tag = &filter->vlan; in is2_entry_set() 366 if (filter->prio != 0) in is2_entry_set() 371 vcap_key_set(vcap, &data, VCAP_IS2_HK_PAG, filter->pag, 0xff); in is2_entry_set() 373 (filter->lookup == 0) ? OCELOT_VCAP_BIT_1 : in is2_entry_set() 376 ~filter->ingress_port_mask); in is2_entry_set() 379 vcap_key_bit_set(vcap, &data, VCAP_IS2_HK_L2_MC, filter->dmac_mc); in is2_entry_set() 380 vcap_key_bit_set(vcap, &data, VCAP_IS2_HK_L2_BC, filter->dmac_bc); in is2_entry_set() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/syslog-ng/files/ |
H A D | syslog-ng.conf.sysvinit | 91 # Here's come the filter options. With this rules, we can set which 94 filter f_dbg { level(debug); }; 95 filter f_info { level(info); }; 96 filter f_notice { level(notice); }; 97 filter f_warn { level(warn); }; 98 filter f_err { level(err); }; 99 filter f_crit { level(crit .. emerg); }; 101 filter f_debug { level(debug) and not facility(auth, authpriv, news, mail); }; 102 filter f_error { level(err .. emerg) ; }; 103 filter f_messages { level(info,notice,warn) and [all …]
|
H A D | syslog-ng.conf.systemd | 91 # Here's come the filter options. With this rules, we can set which 94 filter f_dbg { level(debug); }; 95 filter f_info { level(info); }; 96 filter f_notice { level(notice); }; 97 filter f_warn { level(warn); }; 98 filter f_err { level(err); }; 99 filter f_crit { level(crit .. emerg); }; 101 filter f_debug { level(debug) and not facility(auth, authpriv, news, mail); }; 102 filter f_error { level(err .. emerg) ; }; 103 filter f_messages { level(info,notice,warn) and [all …]
|
/openbmc/openbmc/poky/bitbake/lib/toaster/toastergui/templatetags/ |
H A D | projecttags.py | 24 @register.filter(name = 'sectohms') 34 @register.filter(name = 'get_tasks') 40 @register.filter(name = "json") 55 return qs.filter(**kwargs) 58 @register.filter("whitespace_slice") 76 @register.filter 82 @register.filter 91 @register.filter(name = 'sortcols') 95 @register.filter 110 @register.filter [all …]
|
/openbmc/linux/drivers/infiniband/hw/usnic/ |
H A 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 …]
|
/openbmc/linux/kernel/ |
H A D | seccomp.c | 280 static int seccomp_check_filter(struct sock_filter *filter, unsigned int flen) in seccomp_check_filter() argument 284 struct sock_filter *ftest = &filter[pc]; in seccomp_check_filter() 412 READ_ONCE(current->seccomp.filter); in seccomp_run_filters() 508 is_ancestor(thread->seccomp.filter, in seccomp_can_sync_threads() 509 caller->seccomp.filter))) in seccomp_can_sync_threads() 523 static inline void seccomp_filter_free(struct seccomp_filter *filter) in seccomp_filter_free() argument 525 if (filter) { in seccomp_filter_free() 526 bpf_prog_destroy(filter->prog); in seccomp_filter_free() 527 kfree(filter); in seccomp_filter_free() 571 struct seccomp_filter *orig = tsk->seccomp.filter; in seccomp_filter_release() [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | tc_flower.sh | 44 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 46 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 58 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 59 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 70 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 72 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 85 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 94 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 96 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ [all …]
|
H A D | tc_actions.sh | 65 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 74 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 84 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 86 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 95 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \ 104 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 116 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower 117 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 130 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 132 tc filter add dev $swp1 ingress protocol ip pref 3 handle 103 flower \ [all …]
|
/openbmc/linux/tools/perf/util/ |
H A 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 …]
|
/openbmc/qemu/hw/net/can/ |
H A D | can_sja1000.c | 83 void can_sja_single_filter(struct qemu_can_filter *filter, in can_sja_single_filter() argument 87 filter->can_id = (uint32_t)acr[0] << 21; in can_sja_single_filter() 88 filter->can_id |= (uint32_t)acr[1] << 13; in can_sja_single_filter() 89 filter->can_id |= (uint32_t)acr[2] << 5; in can_sja_single_filter() 90 filter->can_id |= (uint32_t)acr[3] >> 3; in can_sja_single_filter() 92 filter->can_id |= QEMU_CAN_RTR_FLAG; in can_sja_single_filter() 95 filter->can_mask = (uint32_t)amr[0] << 21; in can_sja_single_filter() 96 filter->can_mask |= (uint32_t)amr[1] << 13; in can_sja_single_filter() 97 filter->can_mask |= (uint32_t)amr[2] << 5; in can_sja_single_filter() 98 filter->can_mask |= (uint32_t)amr[3] >> 3; in can_sja_single_filter() [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | tc_restrictions.sh | 47 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 59 tc filter del block 22 protocol ip pref 1 handle 101 flower 64 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 73 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 77 tc filter del block 22 protocol ip pref 1 handle 101 flower 95 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 108 tc filter del block 22 protocol ip pref 1 handle 101 flower 113 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 123 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 130 tc filter add block 22 protocol ip pref 1 handle 101 flower \ [all …]
|
/openbmc/linux/drivers/hwtracing/ptt/ |
H A D | hisi_ptt.c | 229 val |= FIELD_PREP(HISI_PTT_TRACE_CTRL_TARGET_SEL, hisi_ptt->trace_ctrl.filter); in hisi_ptt_trace_start() 358 struct hisi_ptt_filter_desc *filter) in hisi_ptt_del_free_filter() argument 360 if (filter->is_port) in hisi_ptt_del_free_filter() 361 hisi_ptt->port_mask &= ~hisi_ptt_get_filter_val(filter->devid, true); in hisi_ptt_del_free_filter() 363 list_del(&filter->list); in hisi_ptt_del_free_filter() 364 kfree(filter->name); in hisi_ptt_del_free_filter() 365 kfree(filter); in hisi_ptt_del_free_filter() 371 struct hisi_ptt_filter_desc *filter; in hisi_ptt_alloc_add_filter() local 384 filter = kzalloc(sizeof(*filter), GFP_KERNEL); in hisi_ptt_alloc_add_filter() 385 if (!filter) { in hisi_ptt_alloc_add_filter() [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
H A D | tc_flower.sh | 101 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 110 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 125 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 133 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 147 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 149 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 158 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 166 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \ 175 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 183 tc filter del dev $h2 ingress protocol ip pref 3 handle 103 flower [all …]
|
/openbmc/linux/arch/x86/kvm/ |
H A D | pmu.c | 362 static bool is_fixed_event_allowed(struct kvm_x86_pmu_event_filter *filter, in is_fixed_event_allowed() argument 367 if (filter->action == KVM_PMU_EVENT_DENY && in is_fixed_event_allowed() 368 test_bit(fixed_idx, (ulong *)&filter->fixed_counter_bitmap)) in is_fixed_event_allowed() 370 if (filter->action == KVM_PMU_EVENT_ALLOW && in is_fixed_event_allowed() 371 !test_bit(fixed_idx, (ulong *)&filter->fixed_counter_bitmap)) in is_fixed_event_allowed() 379 struct kvm_x86_pmu_event_filter *filter; in check_pmu_event_filter() local 382 filter = srcu_dereference(kvm->arch.pmu_event_filter, &kvm->srcu); in check_pmu_event_filter() 383 if (!filter) in check_pmu_event_filter() 387 return is_gp_event_allowed(filter, pmc->eventsel); in check_pmu_event_filter() 389 return is_fixed_event_allowed(filter, pmc->idx); in check_pmu_event_filter() [all …]
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
H A 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 …]
|
/openbmc/linux/kernel/trace/ |
H A D | trace_events_filter.c | 1171 int filter_match_preds(struct event_filter *filter, void *rec) in filter_match_preds() argument 1177 if (!filter) in filter_match_preds() 1181 prog = rcu_dereference_raw(filter->prog); in filter_match_preds() 1195 static void remove_filter_string(struct event_filter *filter) in remove_filter_string() argument 1197 if (!filter) in remove_filter_string() 1200 kfree(filter->filter_string); in remove_filter_string() 1201 filter->filter_string = NULL; in remove_filter_string() 1206 struct event_filter *filter) in append_filter_err() argument 1213 if (WARN_ON(!filter->filter_string)) in append_filter_err() 1221 len = strlen(filter->filter_string); in append_filter_err() [all …]
|
/openbmc/linux/drivers/media/dvb-core/ |
H A D | dmxdev.c | 378 struct dmx_section_filter *filter, in dvb_dmxdev_section_callback() argument 381 struct dmxdev_filter *dmxdevfilter = filter->priv; in dvb_dmxdev_section_callback() 499 static int dvb_dmxdev_feed_start(struct dmxdev_filter *filter) in dvb_dmxdev_feed_start() argument 504 dvb_dmxdev_filter_state_set(filter, DMXDEV_STATE_GO); in dvb_dmxdev_feed_start() 506 switch (filter->type) { in dvb_dmxdev_feed_start() 508 return filter->feed.sec->start_filtering(filter->feed.sec); in dvb_dmxdev_feed_start() 510 list_for_each_entry(feed, &filter->feed.ts, next) { in dvb_dmxdev_feed_start() 513 dvb_dmxdev_feed_stop(filter); in dvb_dmxdev_feed_start() 527 static int dvb_dmxdev_feed_restart(struct dmxdev_filter *filter) in dvb_dmxdev_feed_restart() argument 530 struct dmxdev *dmxdev = filter->dev; in dvb_dmxdev_feed_restart() [all …]
|
/openbmc/phosphor-host-ipmid/include/ipmid/ |
H A D | filter.hpp | 66 IpmiFilter(Filter&& filter) : filter_(std::move(filter)) {} in IpmiFilter() argument 83 static inline auto makeFilter(Filter&& filter) in makeFilter() argument 85 FilterBase::ptr ptr(new IpmiFilter<Filter>(std::forward<Filter>(filter))); in makeFilter() 89 static inline auto makeFilter(const Filter& filter) in makeFilter() argument 91 Filter lFilter = filter; in makeFilter() 99 void registerFilter(int prio, ::ipmi::FilterBase::ptr filter); 123 void registerFilter(int prio, Filter&& filter) in registerFilter() argument 125 auto f = ipmi::makeFilter(std::forward<Filter>(filter)); in registerFilter() 130 void registerFilter(int prio, const Filter& filter) in registerFilter() argument 132 auto f = ipmi::makeFilter(filter); in registerFilter()
|
/openbmc/linux/lib/kunit/ |
H A D | attributes.c | 40 int (*filter)(void *attr, const char *input, int *err); member 204 .filter = attr_speed_filter, 212 .filter = attr_string_filter, 220 const char *kunit_attr_filter_name(struct kunit_attr_filter filter) in kunit_attr_filter_name() argument 222 return filter.attr->name; in kunit_attr_filter_name() 278 struct kunit_attr_filter filter = {}; in kunit_next_attr_filter() local 299 return filter; in kunit_next_attr_filter() 320 filter.attr = &kunit_attr_list[attr_index]; in kunit_next_attr_filter() 325 filter.input = input + op_index; in kunit_next_attr_filter() 328 filter.input = input + op_index; in kunit_next_attr_filter() [all …]
|
/openbmc/linux/drivers/hid/ |
H A D | hid-uclogic-core-test.c | 67 struct uclogic_raw_event_hook *filter; in hid_test_uclogic_exec_event_hook_test() local 77 filter = kunit_kzalloc(test, sizeof(*filter), GFP_KERNEL); in hid_test_uclogic_exec_event_hook_test() 78 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, filter); in hid_test_uclogic_exec_event_hook_test() 80 filter->size = hook_events[n].size; in hid_test_uclogic_exec_event_hook_test() 81 filter->event = kunit_kzalloc(test, filter->size, GFP_KERNEL); in hid_test_uclogic_exec_event_hook_test() 82 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, filter->event); in hid_test_uclogic_exec_event_hook_test() 83 memcpy(filter->event, &hook_events[n].event[0], filter->size); in hid_test_uclogic_exec_event_hook_test() 85 INIT_WORK(&filter->work, fake_work); in hid_test_uclogic_exec_event_hook_test() 87 list_add_tail(&filter->list, &p.event_hooks->list); in hid_test_uclogic_exec_event_hook_test()
|
/openbmc/openbmc/poky/bitbake/lib/toaster/tests/builds/ |
H A D | test_core_image_min.py | 52 tasks = Task.objects.filter( 73 tasks = Task.objects.filter(outcome=2).values('id', 'sstate_result') 86 tasks = Task.objects.filter( 106 tasks = Task.objects.filter( 121 tasks = Task.objects.filter( 135 tasks = Task.objects.filter(task_executed=1).values('id', 'outcome') 148 tasks = Task.objects.filter( 164 builds = Build.objects.filter(outcome=0).values('id') 167 tasks = Task.objects.filter( 185 target = Target.objects.filter(id=row['target_id']).values('id') [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/dsa/ |
H A D | tc_actions.sh | 65 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 74 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 84 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 86 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 95 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \ 104 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 116 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower 117 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 130 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 132 tc filter add dev $swp1 ingress protocol ip pref 3 handle 103 flower \ [all …]
|
/openbmc/linux/tools/tracing/rtla/src/ |
H A D | trace.c | 212 if (free_event->filter) in trace_events_free() 213 free(free_event->filter); in trace_events_free() 250 int trace_event_add_filter(struct trace_events *event, char *filter) in trace_event_add_filter() argument 252 if (event->filter) in trace_event_add_filter() 253 free(event->filter); in trace_event_add_filter() 255 event->filter = strdup(filter); in trace_event_add_filter() 256 if (!event->filter) in trace_event_add_filter() 283 char filter[1024]; in trace_event_disable_filter() local 286 if (!tevent->filter) in trace_event_disable_filter() 293 tevent->event ? : "*", tevent->filter); in trace_event_disable_filter() [all …]
|