/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_cgx.c | 46 u8 cgx_id, lmac_id; in is_mac_feature_supported() local 52 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in is_mac_feature_supported() 53 cgxd = rvu_cgx_pdata(cgx_id, rvu); in is_mac_feature_supported() 60 static u64 cgxlmac_to_pfmap(struct rvu *rvu, u8 cgx_id, u8 lmac_id) in cgxlmac_to_pfmap() argument 62 return rvu->cgxlmac2pf_map[CGX_OFFSET(cgx_id) + lmac_id]; in cgxlmac_to_pfmap() 65 int cgxlmac_to_pf(struct rvu *rvu, int cgx_id, int lmac_id) in cgxlmac_to_pf() argument 69 pfmap = cgxlmac_to_pfmap(rvu, cgx_id, lmac_id); in cgxlmac_to_pf() 79 static u8 cgxlmac_id_to_bmap(u8 cgx_id, u8 lmac_id) in cgxlmac_id_to_bmap() argument 81 return ((cgx_id & 0xF) << 4) | (lmac_id & 0xF); in cgxlmac_id_to_bmap() 84 void *rvu_cgx_pdata(u8 cgx_id, struct rvu *rvu) in rvu_cgx_pdata() argument [all …]
|
D | cgx.h | 119 u8 cgx_id; member 138 void *cgx_get_pdata(int cgx_id); 146 int cgx_lmac_addr_set(u8 cgx_id, u8 lmac_id, u8 *mac_addr); 147 int cgx_lmac_addr_reset(u8 cgx_id, u8 lmac_id); 148 u64 cgx_lmac_addr_get(u8 cgx_id, u8 lmac_id); 149 int cgx_lmac_addr_add(u8 cgx_id, u8 lmac_id, u8 *mac_addr); 150 int cgx_lmac_addr_del(u8 cgx_id, u8 lmac_id, u8 index); 151 int cgx_lmac_addr_max_entries_get(u8 cgx_id, u8 lmac_id); 152 void cgx_lmac_promisc_config(int cgx_id, int lmac_id, bool enable); 164 u8 cgx_lmac_get_p2x(int cgx_id, int lmac_id); [all …]
|
D | rvu_npc_hash.c | 785 u32 index, u8 cgx_id, u8 lmac_id, u8 *mac_addr, u16 chan, in rvu_npc_exact_add_to_list() argument 840 entry->cgx_id = cgx_id; in rvu_npc_exact_add_to_list() 1061 u8 cgx_id, u8 lmac_id, in rvu_npc_exact_calc_drop_rule_chan_and_mask() argument 1070 chan_val = rvu_nix_chan_cgx(rvu, cgx_id, lmac_id, 0); in rvu_npc_exact_calc_drop_rule_chan_and_mask() 1125 static bool rvu_npc_exact_get_drop_rule_info(struct rvu *rvu, u8 intf_type, u8 cgx_id, in rvu_npc_exact_get_drop_rule_info() argument 1141 rc = rvu_npc_exact_calc_drop_rule_chan_and_mask(rvu, intf_type, cgx_id, in rvu_npc_exact_get_drop_rule_info() 1171 __func__, cgx_id, lmac_id); in rvu_npc_exact_get_drop_rule_info() 1267 rc = rvu_npc_exact_get_drop_rule_info(rvu, NIX_INTF_TYPE_CGX, entry->cgx_id, in rvu_npc_exact_del_table_entry_by_id() 1316 static int rvu_npc_exact_add_table_entry(struct rvu *rvu, u8 cgx_id, u8 lmac_id, u8 *mac, in rvu_npc_exact_add_table_entry() argument 1347 err = rvu_npc_exact_add_to_list(rvu, opc_type, ways, index, cgx_id, lmac_id, in rvu_npc_exact_add_table_entry() [all …]
|
D | cgx.c | 139 if (cgx_dev->cgx_id > idmax) in cgx_get_cgxcnt_max() 140 idmax = cgx_dev->cgx_id; in cgx_get_cgxcnt_max() 158 void *cgx_get_pdata(int cgx_id) in cgx_get_pdata() argument 163 if (cgx_dev->cgx_id == cgx_id) in cgx_get_pdata() 169 void cgx_lmac_write(int cgx_id, int lmac_id, u64 offset, u64 val) in cgx_lmac_write() argument 171 struct cgx *cgx_dev = cgx_get_pdata(cgx_id); in cgx_lmac_write() 179 u64 cgx_lmac_read(int cgx_id, int lmac_id, u64 offset) in cgx_lmac_read() argument 181 struct cgx *cgx_dev = cgx_get_pdata(cgx_id); in cgx_lmac_read() 197 return cgx->cgx_id; in cgx_get_cgxid() 200 u8 cgx_lmac_get_p2x(int cgx_id, int lmac_id) in cgx_lmac_get_p2x() argument [all …]
|
D | rvu.h | 788 static inline void rvu_get_cgx_lmac_id(u8 map, u8 *cgx_id, u8 *lmac_id) in rvu_get_cgx_lmac_id() argument 790 *cgx_id = (map >> 4) & 0xF; in rvu_get_cgx_lmac_id() 807 void *rvu_cgx_pdata(u8 cgx_id, struct rvu *rvu); 908 int cgxlmac_to_pf(struct rvu *rvu, int cgx_id, int lmac_id);
|
D | lmac_common.h | 140 u8 cgx_id; member
|
D | rvu_nix.c | 313 u8 cgx_id, lmac_id; in nix_interface_init() local 325 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in nix_interface_init() 333 pfvf->rx_chan_base = rvu_nix_chan_cgx(rvu, cgx_id, lmac_id, 0); in nix_interface_init() 337 rsp->tx_link = cgx_id * hw->lmac_per_cgx + lmac_id; in nix_interface_init() 339 cgx_set_pkind(rvu_cgx_pdata(cgx_id, rvu), lmac_id, pkind); in nix_interface_init() 514 u8 cgx_id, lmac_id; in rvu_nix_get_bpid() local 544 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in rvu_nix_get_bpid() 546 bpid = (cgx_id * hw->lmac_per_cgx * lmac_chan_cnt) + in rvu_nix_get_bpid() 1878 u8 cgx_id = 0, lmac_id = 0; in nix_get_tx_link() local 1883 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in nix_get_tx_link() [all …]
|
D | rvu_npc_hash.h | 164 u8 cgx_id; member
|
D | rvu_npc.c | 3340 u8 cgx_id, lmac_id; in rvu_npc_set_parse_mode() local 3364 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_npc_set_parse_mode() 3366 rc = cgx_set_pkind(rvu_cgx_pdata(cgx_id, rvu), lmac_id, in rvu_npc_set_parse_mode()
|
D | rvu_debugfs.c | 847 u8 cgx_id, lmac_id; in rvu_dbg_rvu_pf_cgx_map_display() local 875 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, in rvu_dbg_rvu_pf_cgx_map_display() 877 sprintf(cgx, "%s%d", mac_ops->name, cgx_id); in rvu_dbg_rvu_pf_cgx_map_display()
|