Home
last modified time | relevance | path

Searched refs:filters (Results 1 – 25 of 31) sorted by relevance

12

/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_vfpf.c740 req->filters[0].flags = VFPF_Q_FILTER_DEST_MAC_VALID; in bnx2x_vfpf_config_mac()
742 req->filters[0].flags |= VFPF_Q_FILTER_SET; in bnx2x_vfpf_config_mac()
748 memcpy(req->filters[0].mac, addr, ETH_ALEN); in bnx2x_vfpf_config_mac()
775 memcpy(req->filters[0].mac, bp->dev->dev_addr, in bnx2x_vfpf_config_mac()
949 req->filters[0].flags = VFPF_Q_FILTER_VLAN_TAG_VALID; in bnx2x_vfpf_update_vlan()
952 req->filters[0].flags |= VFPF_Q_FILTER_SET; in bnx2x_vfpf_update_vlan()
963 req->filters[0].vlan_tag = vid; in bnx2x_vfpf_update_vlan()
1655 fl = kzalloc(struct_size(fl, filters, tlv->n_mac_vlan_filters), in bnx2x_vf_mbx_macvlan_list()
1661 struct vfpf_q_mac_vlan_filter *msg_filter = &tlv->filters[i]; in bnx2x_vf_mbx_macvlan_list()
1665 memset(&fl->filters[j], 0, sizeof(fl->filters[j])); in bnx2x_vf_mbx_macvlan_list()
[all …]
Dbnx2x_sriov.c435 struct bnx2x_vf_mac_vlan_filters *filters, in bnx2x_vf_mac_vlan_config_list() argument
446 for (i = 0; i < filters->count; i++) { in bnx2x_vf_mac_vlan_config_list()
448 &filters->filters[i], drv_only); in bnx2x_vf_mac_vlan_config_list()
454 if (i != filters->count) { in bnx2x_vf_mac_vlan_config_list()
456 i, filters->count); in bnx2x_vf_mac_vlan_config_list()
458 if (!filters->filters[i].applied) in bnx2x_vf_mac_vlan_config_list()
460 filters->filters[i].add = !filters->filters[i].add; in bnx2x_vf_mac_vlan_config_list()
462 &filters->filters[i], in bnx2x_vf_mac_vlan_config_list()
468 kfree(filters); in bnx2x_vf_mac_vlan_config_list()
Dbnx2x_sriov.h124 struct bnx2x_vf_mac_vlan_filter filters[]; member
452 struct bnx2x_vf_mac_vlan_filters *filters,
Dbnx2x_vfpf.h325 struct vfpf_q_mac_vlan_filter filters[PFVF_MAX_FILTERS]; member
/drivers/hwtracing/coresight/
Dcoresight-etm-perf.c149 struct etm_filters *filters; in etm_addr_filters_alloc() local
152 filters = kzalloc_node(sizeof(struct etm_filters), GFP_KERNEL, node); in etm_addr_filters_alloc()
153 if (!filters) in etm_addr_filters_alloc()
157 memcpy(filters, event->parent->hw.addr_filters, in etm_addr_filters_alloc()
158 sizeof(*filters)); in etm_addr_filters_alloc()
160 event->hw.addr_filters = filters; in etm_addr_filters_alloc()
619 static int etm_addr_filters_validate(struct list_head *filters) in etm_addr_filters_validate() argument
625 list_for_each_entry(filter, filters, entry) { in etm_addr_filters_validate()
663 struct etm_filters *filters = event->hw.addr_filters; in etm_addr_filters_sync() local
671 etm_filter = &filters->etm_filter[i]; in etm_addr_filters_sync()
[all …]
Dcoresight-etm4x-core.c848 struct etm_filters *filters = event->hw.addr_filters; in etm4_disable_perf() local
871 filters->ssstatus = (control & BIT(9)); in etm4_disable_perf()
1445 struct etm_filters *filters = event->hw.addr_filters; in etm4_set_event_filters() local
1447 if (!filters) in etm4_set_event_filters()
1457 if (!filters->nr_filters) in etm4_set_event_filters()
1460 for (i = 0; i < filters->nr_filters; i++) { in etm4_set_event_filters()
1461 struct etm_filter *filter = &filters->etm_filter[i]; in etm4_set_event_filters()
1508 if (filters->ssstatus) in etm4_set_event_filters()
/drivers/net/wireless/st/cw1200/
Dpm.c22 struct wsm_udp_port_filter filters[WSM_MAX_FILTER_ELEMENTS]; member
28 struct wsm_ether_type_filter filters[WSM_MAX_FILTER_ELEMENTS]; member
33 .filters = {
57 .filters = {
/drivers/media/dvb-frontends/
Drtl2830.c616 set_bit(index, &dev->filters); in rtl2830_pid_filter()
618 clear_bit(index, &dev->filters); in rtl2830_pid_filter()
621 buf[0] = (dev->filters >> 0) & 0xff; in rtl2830_pid_filter()
622 buf[1] = (dev->filters >> 8) & 0xff; in rtl2830_pid_filter()
623 buf[2] = (dev->filters >> 16) & 0xff; in rtl2830_pid_filter()
624 buf[3] = (dev->filters >> 24) & 0xff; in rtl2830_pid_filter()
Drtl2830_priv.h26 unsigned long filters; member
Drtl2832.c990 set_bit(index, &dev->filters); in rtl2832_pid_filter()
992 clear_bit(index, &dev->filters); in rtl2832_pid_filter()
995 buf[0] = (dev->filters >> 0) & 0xff; in rtl2832_pid_filter()
996 buf[1] = (dev->filters >> 8) & 0xff; in rtl2832_pid_filter()
997 buf[2] = (dev->filters >> 16) & 0xff; in rtl2832_pid_filter()
998 buf[3] = (dev->filters >> 24) & 0xff; in rtl2832_pid_filter()
Drtl2832_priv.h33 unsigned long filters; /* PID filter */ member
/drivers/media/usb/dvb-usb/
Dm920x.h65 u16 filters[M9206_MAX_ADAPTERS][M9206_MAX_FILTERS]; member
Dm920x.c354 if (m->filters[adap->id][i] == 8192) in m920x_update_filters()
368 if (m->filters[adap->id][i] == 0) in m920x_update_filters()
371 if ((ret = m920x_set_filter(adap->dev, ep, filter + 2, m->filters[adap->id][i])) != 0) in m920x_update_filters()
394 m->filters[adap->id][index] = onoff ? pid : 0; in m920x_pid_filter()
/drivers/net/ethernet/intel/i40e/
Di40e_prototype.h249 struct i40e_aqc_cloud_filters_element_bb *filters,
252 struct i40e_aqc_cloud_filters_element_data *filters,
255 struct i40e_aqc_cloud_filters_element_data *filters,
258 struct i40e_aqc_cloud_filters_element_bb *filters,
Di40e_common.c5729 struct i40e_aqc_cloud_filters_element_data *filters, in i40e_aq_add_cloud_filters() argument
5741 buff_len = filter_count * sizeof(*filters); in i40e_aq_add_cloud_filters()
5747 status = i40e_asq_send_command(hw, &desc, filters, buff_len, NULL); in i40e_aq_add_cloud_filters()
5766 struct i40e_aqc_cloud_filters_element_bb *filters, in i40e_aq_add_cloud_filters_bb() argument
5779 buff_len = filter_count * sizeof(*filters); in i40e_aq_add_cloud_filters_bb()
5790 tnl_type = (le16_to_cpu(filters[i].element.flags) & in i40e_aq_add_cloud_filters_bb()
5799 ti = le32_to_cpu(filters[i].element.tenant_id); in i40e_aq_add_cloud_filters_bb()
5800 filters[i].element.tenant_id = cpu_to_le32(ti << 8); in i40e_aq_add_cloud_filters_bb()
5804 status = i40e_asq_send_command(hw, &desc, filters, buff_len, NULL); in i40e_aq_add_cloud_filters_bb()
5823 struct i40e_aqc_cloud_filters_element_data *filters, in i40e_aq_rem_cloud_filters() argument
[all …]
/drivers/net/wireless/intel/iwlwifi/fw/api/
Dfilter.h123 struct iwl_fw_bcast_filter filters[MAX_BCAST_FILTERS]; member
/drivers/media/rc/img-ir/
Dimg-ir-hw.c381 ft = img_ir_free_timing_dynamic(regs->ft, &hw->filters[type]); in img_ir_write_timings()
423 hw->filters[RC_FILTER_NORMAL] = *filter; in _img_ir_set_filter()
448 hw->filters[RC_FILTER_WAKEUP] = *filter; in _img_ir_set_wake_filter()
738 img_ir_write_filter(priv, &hw->filters[RC_FILTER_WAKEUP]); in img_ir_enable_wake()
768 &hw->filters[RC_FILTER_NORMAL]); in img_ir_disable_wake()
Dimg-ir-hw.h243 struct img_ir_filter filters[RC_FILTER_MAX]; member
/drivers/net/vmxnet3/
Dvmxnet3_drv.c3876 pmConf->filters[i].patternSize = ETH_ALEN; in vmxnet3_suspend()
3877 pmConf->filters[i].maskSize = 1; in vmxnet3_suspend()
3878 memcpy(pmConf->filters[i].pattern, netdev->dev_addr, ETH_ALEN); in vmxnet3_suspend()
3879 pmConf->filters[i].mask[0] = 0x3F; /* LSB ETH_ALEN bits */ in vmxnet3_suspend()
3900 pmConf->filters[i].patternSize = ETH_HLEN + /* Ethernet header*/ in vmxnet3_suspend()
3904 pmConf->filters[i].maskSize = in vmxnet3_suspend()
3905 (pmConf->filters[i].patternSize - 1) / 8 + 1; in vmxnet3_suspend()
3908 ehdr = (struct ethhdr *)pmConf->filters[i].pattern; in vmxnet3_suspend()
3912 ahdr = (struct arphdr *)&pmConf->filters[i].pattern[ETH_HLEN]; in vmxnet3_suspend()
3923 pmConf->filters[i].mask[0] = 0x00; in vmxnet3_suspend()
[all …]
Dvmxnet3_defs.h638 struct Vmxnet3_PM_PktFilter filters[VMXNET3_PM_MAX_FILTERS]; member
/drivers/gpu/drm/nouveau/dispnv04/
Dtvmodesnv17.c320 uint32_t (*filters[])[4][7] = {&tv_enc->state.hfilter, in tv_setup_filter() local
347 (*filters[k])[j][i] = (c + id5/2) >> 39 in tv_setup_filter()
/drivers/net/ethernet/broadcom/
Dbcmsysport.c1089 for_each_set_bit(index, priv->filters, RXCHK_BRCM_TAG_MAX) { in bcm_sysport_resume_from_wol()
2144 for_each_set_bit(index, priv->filters, RXCHK_BRCM_TAG_MAX) { in bcm_sysport_rule_find()
2187 if (bitmap_weight(priv->filters, RXCHK_BRCM_TAG_MAX) == in bcm_sysport_rule_set()
2191 index = find_first_zero_bit(priv->filters, RXCHK_BRCM_TAG_MAX); in bcm_sysport_rule_set()
2205 set_bit(index, priv->filters); in bcm_sysport_rule_set()
2223 clear_bit(index, priv->filters); in bcm_sysport_rule_del()
2697 for_each_set_bit(index, priv->filters, RXCHK_BRCM_TAG_MAX) { in bcm_sysport_suspend_to_wol()
Dbcmsysport.h751 DECLARE_BITMAP(filters, RXCHK_BRCM_TAG_MAX);
/drivers/net/wireless/intel/iwlwifi/mvm/
Ddebugfs.c1398 for (i = 0; cmd.filters[i].attrs[0].mask; i++) { in iwl_dbgfs_bcast_filters_read()
1399 filter = &cmd.filters[i]; in iwl_dbgfs_bcast_filters_read()
1441 if (filter_id >= ARRAY_SIZE(mvm->dbgfs_bcast_filtering.cmd.filters) || in iwl_dbgfs_bcast_filters_write()
1467 memcpy(&mvm->dbgfs_bcast_filtering.cmd.filters[filter_id], in iwl_dbgfs_bcast_filters_write()
1534 attached_filters >= BIT(ARRAY_SIZE(cmd.filters))) in iwl_dbgfs_bcast_filters_macs_write()
/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c313 list_add_tail(&filter->next, &priv->filters); in mlx4_en_filter_alloc()
429 list_for_each_entry_safe(filter, tmp, &priv->filters, next) { in mlx4_en_cleanup_filters()
448 list_for_each_entry_safe(filter, tmp, &priv->filters, next) { in mlx4_en_filter_rfs_expire()
465 if (last_filter && (&last_filter->next != priv->filters.next)) in mlx4_en_filter_rfs_expire()
466 list_move(&priv->filters, &last_filter->next); in mlx4_en_filter_rfs_expire()
3194 INIT_LIST_HEAD(&priv->filters); in mlx4_en_init_netdev()

12