Searched refs:rif (Results 1 - 17 of 17) sorted by relevance

/linux-master/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
H A Drif_counter_scale.sh12 max_cnts=$(devlink_resource_size_get counters rif)
/linux-master/tools/testing/selftests/drivers/net/mlxsw/spectrum/
H A Drif_counter_scale.sh12 max_cnts=$(devlink_resource_size_get counters rif)
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c64 struct mlxsw_sp_rif *rif; member in struct:mlxsw_sp_crif
93 static struct net_device *mlxsw_sp_rif_dev(const struct mlxsw_sp_rif *rif) argument
95 if (!rif->crif)
97 return rif->crif->key.dev;
138 void (*setup)(struct mlxsw_sp_rif *rif,
140 int (*configure)(struct mlxsw_sp_rif *rif,
142 void (*deconfigure)(struct mlxsw_sp_rif *rif);
143 struct mlxsw_sp_fid * (*fid_get)(struct mlxsw_sp_rif *rif,
146 void (*fdb_del)(struct mlxsw_sp_rif *rif, const char *mac);
163 static void mlxsw_sp_rif_destroy(struct mlxsw_sp_rif *rif);
174 mlxsw_sp_rif_p_counter_get(struct mlxsw_sp_rif *rif, enum mlxsw_sp_rif_counter_dir dir) argument
187 mlxsw_sp_rif_counter_valid_get(struct mlxsw_sp_rif *rif, enum mlxsw_sp_rif_counter_dir dir) argument
200 mlxsw_sp_rif_counter_valid_set(struct mlxsw_sp_rif *rif, enum mlxsw_sp_rif_counter_dir dir, bool valid) argument
234 mlxsw_sp_rif_counter_value_get(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_rif *rif, enum mlxsw_sp_rif_counter_dir dir, u64 *cnt) argument
273 mlxsw_sp_rif_counter_fetch_clear(struct mlxsw_sp_rif *rif, enum mlxsw_sp_rif_counter_dir dir, struct mlxsw_sp_rif_counter_set_basic *set) argument
327 mlxsw_sp_rif_counter_alloc(struct mlxsw_sp_rif *rif, enum mlxsw_sp_rif_counter_dir dir) argument
364 mlxsw_sp_rif_counter_free(struct mlxsw_sp_rif *rif, enum mlxsw_sp_rif_counter_dir dir) argument
383 mlxsw_sp_rif_counters_alloc(struct mlxsw_sp_rif *rif) argument
395 mlxsw_sp_rif_counters_free(struct mlxsw_sp_rif *rif) argument
1154 struct mlxsw_sp_rif *rif; local
1648 struct mlxsw_sp_rif *rif = &lb_rif->common; local
2185 u16 rif; member in struct:mlxsw_sp_neigh_entry
2203 mlxsw_sp_rif_neigh_next(struct mlxsw_sp_rif *rif, struct mlxsw_sp_neigh_entry *neigh_entry) argument
2259 mlxsw_sp_neigh_entry_alloc(struct mlxsw_sp *mlxsw_sp, struct neighbour *n, u16 rif) argument
2349 struct mlxsw_sp_rif *rif; local
2420 u16 rif; local
2450 u16 rif; local
2977 mlxsw_sp_neigh_rif_gone_sync(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_rif *rif) argument
2991 struct mlxsw_sp_rif *rif; member in struct:mlxsw_sp_neigh_rif_made_sync
3009 mlxsw_sp_neigh_rif_made_sync(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_rif *rif) argument
3746 struct mlxsw_sp_rif *rif = mlxsw_sp_nexthop_rif(nh); local
4695 mlxsw_sp_nexthop_rif_update(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_rif *rif) argument
4720 mlxsw_sp_nexthop_rif_made_sync(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_rif *rif) argument
4749 mlxsw_sp_nexthop_rif_gone_sync(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_rif *rif) argument
6245 struct mlxsw_sp_rif *rif = mlxsw_sp_nhgi_rif(fib_entry->nh_group->nhgi); local
7690 struct mlxsw_sp_rif *rif; local
8193 struct mlxsw_sp_rif *rif; local
8204 struct mlxsw_sp_rif *rif; local
8225 mlxsw_sp_router_rif_disable(struct mlxsw_sp *mlxsw_sp, u16 rif) argument
8239 mlxsw_sp_router_rif_made_sync(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_rif *rif) argument
8259 mlxsw_sp_router_rif_gone_sync(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_rif *rif) argument
8298 mlxsw_sp_rif_should_config(struct mlxsw_sp_rif *rif, struct net_device *dev, unsigned long event) argument
8377 struct mlxsw_sp_rif *rif; local
8398 mlxsw_sp_rif_free(struct mlxsw_sp_rif *rif) argument
8413 mlxsw_sp_rif_index(const struct mlxsw_sp_rif *rif) argument
8442 mlxsw_sp_router_port_l3_stats_enabled(struct mlxsw_sp_rif *rif) argument
8451 mlxsw_sp_router_port_l3_stats_enable(struct mlxsw_sp_rif *rif) argument
8488 mlxsw_sp_router_port_l3_stats_disable(struct mlxsw_sp_rif *rif) argument
8495 mlxsw_sp_router_port_l3_stats_report_used(struct mlxsw_sp_rif *rif, struct netdev_notifier_offload_xstats_info *info) argument
8504 mlxsw_sp_router_port_l3_stats_fetch(struct mlxsw_sp_rif *rif, struct rtnl_hw_stats64 *p_stats) argument
8545 mlxsw_sp_router_port_l3_stats_report_delta(struct mlxsw_sp_rif *rif, struct netdev_notifier_offload_xstats_info *info) argument
8602 mlxsw_sp_rif_dev_ifindex(const struct mlxsw_sp_rif *rif) argument
8607 mlxsw_sp_rif_has_dev(const struct mlxsw_sp_rif *rif) argument
8612 mlxsw_sp_rif_dev_is(const struct mlxsw_sp_rif *rif, const struct net_device *dev) argument
8618 mlxsw_sp_rif_push_l3_stats(struct mlxsw_sp_rif *rif) argument
8639 struct mlxsw_sp_rif *rif; local
8737 mlxsw_sp_rif_destroy(struct mlxsw_sp_rif *rif) argument
8781 struct mlxsw_sp_rif *rif; local
8911 mlxsw_sp_rif_subport_rif(const struct mlxsw_sp_rif *rif) argument
8916 mlxsw_sp_rif_subport_port(const struct mlxsw_sp_rif *rif, u16 *port, bool *is_lag) argument
8936 struct mlxsw_sp_rif *rif; local
8947 mlxsw_sp_rif_subport_put(struct mlxsw_sp_rif *rif) argument
9106 mlxsw_sp_rif_mac_profile_is_shared(const struct mlxsw_sp_rif *rif) argument
9119 mlxsw_sp_rif_mac_profile_edit(struct mlxsw_sp_rif *rif, const char *new_mac) argument
9135 mlxsw_sp_rif_mac_profile_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_rif *rif, const char *new_mac, struct netlink_ext_ack *extack) argument
9166 struct mlxsw_sp_rif *rif; local
9214 struct mlxsw_sp_rif *rif = mlxsw_sp_fid_rif(fid); local
9333 struct mlxsw_sp_rif *rif; local
9451 struct mlxsw_sp_rif *rif; local
9486 struct mlxsw_sp_rif *rif; local
9554 struct mlxsw_sp_rif *rif; local
9580 struct mlxsw_sp_rif *rif; local
9614 struct mlxsw_sp_rif *rif; local
9665 struct mlxsw_sp_rif *rif; local
9703 mlxsw_sp_router_port_change_event(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_rif *rif, struct netlink_ext_ack *extack) argument
9764 mlxsw_sp_router_port_pre_changeaddr_event(struct mlxsw_sp_rif *rif, struct netdev_notifier_pre_changeaddr_info *info) argument
9903 mlxsw_sp_router_port_offload_xstats_cmd(struct mlxsw_sp_rif *rif, unsigned long event, struct netdev_notifier_offload_xstats_info *info) argument
9937 struct mlxsw_sp_rif *rif; local
9963 struct mlxsw_sp_rif *rif; local
9991 struct mlxsw_sp_rif *rif; local
10008 struct mlxsw_sp_rif *rif; local
10346 mlxsw_sp_macvlan_replay(struct mlxsw_sp_rif *rif, struct netlink_ext_ack *extack) argument
10365 struct mlxsw_sp_rif *rif = (struct mlxsw_sp_rif *)priv->data; local
10374 mlxsw_sp_rif_macvlan_flush(struct mlxsw_sp_rif *rif) argument
10388 mlxsw_sp_rif_subport_setup(struct mlxsw_sp_rif *rif, const struct mlxsw_sp_rif_params *params) argument
10403 mlxsw_sp_rif_subport_op(struct mlxsw_sp_rif *rif, bool enable) argument
10424 mlxsw_sp_rif_subport_configure(struct mlxsw_sp_rif *rif, struct netlink_ext_ack *extack) argument
10468 mlxsw_sp_rif_subport_deconfigure(struct mlxsw_sp_rif *rif) argument
10482 mlxsw_sp_rif_subport_fid_get(struct mlxsw_sp_rif *rif, const struct mlxsw_sp_rif_params *params, struct netlink_ext_ack *extack) argument
10498 mlxsw_sp_rif_fid_op(struct mlxsw_sp_rif *rif, u16 fid, bool enable) argument
10519 mlxsw_sp_rif_fid_configure(struct mlxsw_sp_rif *rif, struct netlink_ext_ack *extack) argument
10581 mlxsw_sp_rif_fid_deconfigure(struct mlxsw_sp_rif *rif) argument
10601 mlxsw_sp_rif_fid_fid_get(struct mlxsw_sp_rif *rif, const struct mlxsw_sp_rif_params *params, struct netlink_ext_ack *extack) argument
10610 mlxsw_sp_rif_fid_fdb_del(struct mlxsw_sp_rif *rif, const char *mac) argument
10635 mlxsw_sp_rif_vlan_fid_get(struct mlxsw_sp_rif *rif, const struct mlxsw_sp_rif_params *params, struct netlink_ext_ack *extack) argument
10654 mlxsw_sp_rif_vlan_fdb_del(struct mlxsw_sp_rif *rif, const char *mac) argument
10673 mlxsw_sp_rif_vlan_op(struct mlxsw_sp_rif *rif, u16 vid, u16 efid, bool enable) argument
10687 mlxsw_sp_rif_vlan_configure(struct mlxsw_sp_rif *rif, u16 efid, struct netlink_ext_ack *extack) argument
10749 mlxsw_sp_rif_vlan_deconfigure(struct mlxsw_sp_rif *rif) argument
10767 mlxsw_sp1_rif_vlan_configure(struct mlxsw_sp_rif *rif, struct netlink_ext_ack *extack) argument
10782 mlxsw_sp2_rif_vlan_configure(struct mlxsw_sp_rif *rif, struct netlink_ext_ack *extack) argument
10800 mlxsw_sp_rif_ipip_lb_rif(struct mlxsw_sp_rif *rif) argument
10806 mlxsw_sp_rif_ipip_lb_setup(struct mlxsw_sp_rif *rif, const struct mlxsw_sp_rif_params *params) argument
10819 mlxsw_sp1_rif_ipip_lb_configure(struct mlxsw_sp_rif *rif, struct netlink_ext_ack *extack) argument
10847 mlxsw_sp1_rif_ipip_lb_deconfigure(struct mlxsw_sp_rif *rif) argument
11022 mlxsw_sp2_rif_ipip_lb_configure(struct mlxsw_sp_rif *rif, struct netlink_ext_ack *extack) argument
11050 mlxsw_sp2_rif_ipip_lb_deconfigure(struct mlxsw_sp_rif *rif) argument
[all...]
H A Dspectrum_router.h92 u16 mlxsw_sp_ipip_lb_rif_index(const struct mlxsw_sp_rif_ipip_lb *rif);
93 u16 mlxsw_sp_ipip_lb_ul_vr_id(const struct mlxsw_sp_rif_ipip_lb *rif);
96 int mlxsw_sp_rif_dev_ifindex(const struct mlxsw_sp_rif *rif);
97 bool mlxsw_sp_rif_has_dev(const struct mlxsw_sp_rif *rif);
98 bool mlxsw_sp_rif_dev_is(const struct mlxsw_sp_rif *rif,
101 struct mlxsw_sp_rif *rif,
104 void mlxsw_sp_rif_counter_free(struct mlxsw_sp_rif *rif,
106 int mlxsw_sp_rif_counter_alloc(struct mlxsw_sp_rif *rif,
109 mlxsw_sp_rif_neigh_next(struct mlxsw_sp_rif *rif,
118 #define mlxsw_sp_rif_neigh_for_each(neigh_entry, rif) \
[all...]
H A Dspectrum_dpipe.c156 struct mlxsw_sp_rif *rif,
166 *rif_value = mlxsw_sp_rif_index(rif);
167 entry->match_values->mapping_value = mlxsw_sp_rif_dev_ifindex(rif);
176 entry->index = mlxsw_sp_rif_index(rif);
181 err = mlxsw_sp_rif_counter_value_get(mlxsw_sp, rif,
222 struct mlxsw_sp_rif *rif = mlxsw_sp_rif_by_index(mlxsw_sp, i); local
224 if (!rif || !mlxsw_sp_rif_has_dev(rif))
226 err = mlxsw_sp_erif_entry_get(mlxsw_sp, &entry, rif,
264 struct mlxsw_sp_rif *rif local
154 mlxsw_sp_erif_entry_get(struct mlxsw_sp *mlxsw_sp, struct devlink_dpipe_entry *entry, struct mlxsw_sp_rif *rif, bool counters_enabled) argument
456 __mlxsw_sp_dpipe_table_host_entry_fill(struct devlink_dpipe_entry *entry, struct mlxsw_sp_rif *rif, unsigned char *ha, void *dip) argument
483 mlxsw_sp_dpipe_table_host4_entry_fill(struct devlink_dpipe_entry *entry, struct mlxsw_sp_neigh_entry *neigh_entry, struct mlxsw_sp_rif *rif) argument
496 mlxsw_sp_dpipe_table_host6_entry_fill(struct devlink_dpipe_entry *entry, struct mlxsw_sp_neigh_entry *neigh_entry, struct mlxsw_sp_rif *rif) argument
510 mlxsw_sp_dpipe_table_host_entry_fill(struct mlxsw_sp *mlxsw_sp, struct devlink_dpipe_entry *entry, struct mlxsw_sp_neigh_entry *neigh_entry, struct mlxsw_sp_rif *rif, int type) argument
560 struct mlxsw_sp_rif *rif = mlxsw_sp_rif_by_index(mlxsw_sp, i); local
668 struct mlxsw_sp_rif *rif = mlxsw_sp_rif_by_index(mlxsw_sp, i); local
707 struct mlxsw_sp_rif *rif = mlxsw_sp_rif_by_index(mlxsw_sp, i); local
1033 __mlxsw_sp_dpipe_table_adj_entry_fill(struct devlink_dpipe_entry *entry, u32 adj_index, u32 adj_size, u32 adj_hash_index, unsigned char *ha, struct mlxsw_sp_rif *rif) argument
1068 struct mlxsw_sp_rif *rif = mlxsw_sp_nexthop_rif(nh); local
[all...]
H A Dspectrum_mr.h80 const struct mlxsw_sp_rif *rif);
83 const struct mlxsw_sp_rif *rif);
85 const struct mlxsw_sp_rif *rif);
87 const struct mlxsw_sp_rif *rif, int mtu);
H A Dspectrum_mr.c29 const struct mlxsw_sp_rif *rif; member in struct:mlxsw_sp_mr_vif
102 return vif->ops->is_regular(vif) && vif->dev && vif->rif;
156 if (mlxsw_sp_mr_vif_exists(rve->mr_vif) && !rve->mr_vif->rif)
223 u16 rifi = mlxsw_sp_rif_index(rve->mr_vif->rif);
230 irif_index = mlxsw_sp_rif_index(mr_route->ivif.mr_vif->rif);
493 /* rve->mr_vif->rif is guaranteed to be valid at this stage */
494 irif_index = mlxsw_sp_rif_index(rve->mr_vif->rif);
540 erif_index = mlxsw_sp_rif_index(rve->mr_vif->rif);
615 rifi = mlxsw_sp_rif_index(rve->mr_vif->rif);
625 const struct mlxsw_sp_rif *rif)
621 mlxsw_sp_mr_vif_resolve(struct mlxsw_sp_mr_table *mr_table, struct net_device *dev, struct mlxsw_sp_mr_vif *mr_vif, unsigned long vif_flags, const struct mlxsw_sp_rif *rif) argument
681 mlxsw_sp_mr_vif_add(struct mlxsw_sp_mr_table *mr_table, struct net_device *dev, vifi_t vif_index, unsigned long vif_flags, const struct mlxsw_sp_rif *rif) argument
706 mlxsw_sp_mr_dev_vif_lookup(struct mlxsw_sp_mr_table *mr_table, const struct mlxsw_sp_rif *rif) argument
717 mlxsw_sp_mr_rif_add(struct mlxsw_sp_mr_table *mr_table, const struct mlxsw_sp_rif *rif) argument
732 mlxsw_sp_mr_rif_del(struct mlxsw_sp_mr_table *mr_table, const struct mlxsw_sp_rif *rif) argument
746 mlxsw_sp_mr_rif_mtu_update(struct mlxsw_sp_mr_table *mr_table, const struct mlxsw_sp_rif *rif, int mtu) argument
[all...]
H A Dspectrum_fid.c34 struct mlxsw_sp_rif *rif; member in struct:mlxsw_sp_fid
98 const struct mlxsw_sp_rif *rif);
479 return fid->rif;
591 const struct mlxsw_sp_rif *rif)
604 if (rif) {
606 mlxsw_reg_sfmr_irif_set(sfmr_pl, mlxsw_sp_rif_index(rif));
613 const struct mlxsw_sp_rif *rif,
621 irif_valid = !!rif;
622 irif_index = rif ? mlxsw_sp_rif_index(rif)
590 mlxsw_sp_fid_edit_op(const struct mlxsw_sp_fid *fid, const struct mlxsw_sp_rif *rif) argument
612 mlxsw_sp_fid_vni_to_fid_map(const struct mlxsw_sp_fid *fid, const struct mlxsw_sp_rif *rif, bool valid) argument
629 mlxsw_sp_fid_to_fid_rif_update(const struct mlxsw_sp_fid *fid, const struct mlxsw_sp_rif *rif) argument
635 mlxsw_sp_fid_vni_to_fid_rif_update(const struct mlxsw_sp_fid *fid, const struct mlxsw_sp_rif *rif) argument
645 mlxsw_sp_fid_vid_to_fid_map(const struct mlxsw_sp_fid *fid, u16 vid, bool valid, const struct mlxsw_sp_rif *rif) argument
662 mlxsw_sp_fid_8021q_vid_to_fid_rif_update(const struct mlxsw_sp_fid *fid, const struct mlxsw_sp_rif *rif) argument
688 mlxsw_sp_fid_vid_to_fid_rif_set(const struct mlxsw_sp_fid *fid, const struct mlxsw_sp_rif *rif) argument
822 mlxsw_sp_fid_rif_set(struct mlxsw_sp_fid *fid, struct mlxsw_sp_rif *rif) argument
1199 mlxsw_sp_fid_8021d_vid_to_fid_rif_update(const struct mlxsw_sp_fid *fid, const struct mlxsw_sp_rif *rif) argument
1369 struct mlxsw_sp_rif *rif; local
1504 mlxsw_sp_fid_rfid_vid_to_fid_rif_update(const struct mlxsw_sp_fid *fid, const struct mlxsw_sp_rif *rif) argument
[all...]
H A Dspectrum.h54 #define MLXSW_SP_RESOURCE_NAME_COUNTERS_RIF "rif"
755 u16 mlxsw_sp_rif_index(const struct mlxsw_sp_rif *rif);
756 int mlxsw_sp_rif_subport_port(const struct mlxsw_sp_rif *rif,
1304 int mlxsw_sp_fid_rif_set(struct mlxsw_sp_fid *fid, struct mlxsw_sp_rif *rif);
H A Dreg.h6845 MLXSW_ITEM32(reg, ritr, rif, 0x00, 0, 16);
7121 static inline void mlxsw_reg_ritr_rif_pack(char *payload, u16 rif) argument
7124 mlxsw_reg_ritr_rif_set(payload, rif);
7138 u16 rif, u16 vr_id, u16 mtu)
7150 mlxsw_reg_ritr_rif_set(payload, rif);
7166 mlxsw_reg_ritr_vlan_if_pack(char *payload, bool enable, u16 rif, u16 vr_id, argument
7172 mlxsw_reg_ritr_pack(payload, enable, type, rif, vr_id, mtu);
8231 MLXSW_ITEM32(reg, rauht, rif, 0x00, 0, 16);
8286 enum mlxsw_reg_rauht_op op, u16 rif,
8291 mlxsw_reg_rauht_rif_set(payload, rif);
7136 mlxsw_reg_ritr_pack(char *payload, bool enable, enum mlxsw_reg_ritr_if_type type, u16 rif, u16 vr_id, u16 mtu) argument
8285 mlxsw_reg_rauht_pack(char *payload, enum mlxsw_reg_rauht_op op, u16 rif, const char *mac) argument
8295 mlxsw_reg_rauht_pack4(char *payload, enum mlxsw_reg_rauht_op op, u16 rif, const char *mac, u32 dip) argument
8303 mlxsw_reg_rauht_pack6(char *payload, enum mlxsw_reg_rauht_op op, u16 rif, const char *mac, const char *dip) argument
[all...]
/linux-master/include/uapi/linux/
H A Datm.h147 unsigned int rif : 4; /* Rate Increment Factor (4-bit) */ member in struct:atm_trafprm
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router_hw.h40 /* Seems like rif is obsolete, because there is iface in info ?
44 * In our case rif - is logical interface (even can be VLAN), which
47 * You even can imagine, that rif+IPaddr is just cookie.
49 /* struct prestera_rif *rif; */
51 void *rif; member in struct:prestera_nh_neigh_key
H A Dprestera_router.c129 nk->rif = (void *)ck->dev;
739 /* We take it from rif, because rif inconsistent.
881 fc->lpm_info.nh_grp_key.neigh[0].rif =
897 fc->lpm_info.nh_grp_key.neigh[nh_cnt].rif =
/linux-master/drivers/media/tuners/
H A Dtda9887.c336 static char *rif[4] = { local
376 rif[(buf[3] & 0x0c) >> 2]);
/linux-master/drivers/atm/
H A Diphase.c367 srv_p->rif = 0xf;
415 if (srv_p->rif > MAX_RIF)
449 air = srv_p->pcr << (15 - srv_p->rif);
1860 if (vcc->qos.txtp.rif)
1861 srv_p.rif = vcc->qos.txtp.rif;
H A Diphase.h833 u8 rif; /* Rate Increment Factor (4-bit) */ member in struct:srv_cls_param
/linux-master/arch/mips/include/asm/octeon/
H A Dcvmx-pko-defs.h1266 uint64_t rif:1; member in struct:cvmx_pko_reg_bist_result::cvmx_pko_reg_bist_result_cn30xx
1286 uint64_t rif:1;

Completed in 227 milliseconds