Home
last modified time | relevance | path

Searched refs:nfilter (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp_ethtool.c227 struct bcmasp_net_filter *nfilter; in bcmasp_flow_insert() local
254 nfilter = bcmasp_netfilt_get_init(intf, loc, wake, true); in bcmasp_flow_insert()
255 if (IS_ERR(nfilter)) in bcmasp_flow_insert()
256 return PTR_ERR(nfilter); in bcmasp_flow_insert()
259 cmd->fs.location = nfilter->hw_index; in bcmasp_flow_insert()
260 memcpy(&nfilter->fs, &cmd->fs, sizeof(struct ethtool_rx_flow_spec)); in bcmasp_flow_insert()
271 struct bcmasp_net_filter *nfilter; in bcmasp_flow_delete() local
273 nfilter = bcmasp_netfilt_get_init(intf, cmd->fs.location, false, false); in bcmasp_flow_delete()
274 if (IS_ERR(nfilter)) in bcmasp_flow_delete()
275 return PTR_ERR(nfilter); in bcmasp_flow_delete()
[all …]
H A Dbcmasp.c651 struct bcmasp_net_filter *nfilter = NULL; in bcmasp_netfilt_get_init() local
697 nfilter = &priv->net_filters[open_index]; in bcmasp_netfilt_get_init()
698 nfilter->claimed = true; in bcmasp_netfilt_get_init()
699 nfilter->port = intf->port; in bcmasp_netfilt_get_init()
700 nfilter->hw_index = open_index; in bcmasp_netfilt_get_init()
707 nfilter->wake_filter = true; in bcmasp_netfilt_get_init()
710 return nfilter ? nfilter : ERR_PTR(-EINVAL); in bcmasp_netfilt_get_init()
/openbmc/linux/net/can/j1939/
H A Dsocket.c266 int nfilter; in j1939_sk_match_filter() local
271 nfilter = jsk->nfilters; in j1939_sk_match_filter()
273 if (!nfilter) in j1939_sk_match_filter()
277 for (; nfilter; ++f, --nfilter) { in j1939_sk_match_filter()
/openbmc/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c3610 int i, nfilter; in bcmgenet_set_rx_mode() local
3616 nfilter = netdev_uc_count(dev) + netdev_mc_count(dev) + 2; in bcmgenet_set_rx_mode()
3628 (nfilter > MAX_MDF_FILTER)) { in bcmgenet_set_rx_mode()
3656 reg = GENMASK(MAX_MDF_FILTER - 1, MAX_MDF_FILTER - nfilter); in bcmgenet_set_rx_mode()