Searched refs:rswitch (Results 1 – 13 of 13) sorted by relevance
85 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_switch_install_rules() local86 u16 start = rswitch->start_entry; in rvu_switch_install_rules()125 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_switch_install_rules()149 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_switch_install_rules()163 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_switch_enable() local186 rswitch->entry2pcifunc = kcalloc(alloc_req.count, sizeof(u16), in rvu_switch_enable()188 if (!rswitch->entry2pcifunc) in rvu_switch_enable()191 rswitch->used_entries = alloc_rsp.count; in rvu_switch_enable()192 rswitch->start_entry = alloc_rsp.entry; in rvu_switch_enable()206 uninstall_req.start = rswitch->start_entry; in rvu_switch_enable()[all …]
324 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_rep_install_mcam_rules() local325 u16 start = rswitch->start_entry; in rvu_rep_install_mcam_rules()344 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_rep_install_mcam_rules()350 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_rep_install_mcam_rules()370 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_rep_install_mcam_rules()377 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_rep_install_mcam_rules()397 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_rep_update_rules() local399 u32 max = rswitch->used_entries; in rvu_rep_update_rules()403 if (!rswitch->used_entries) in rvu_rep_update_rules()414 if (rswitch->entry2pcifunc[entry] == pcifunc) in rvu_rep_update_rules()
1597 struct rvu_switch *rswitch; in rvu_devlink_eswitch_mode_get() local1602 rswitch = &rvu->rswitch; in rvu_devlink_eswitch_mode_get()1603 *mode = rswitch->mode; in rvu_devlink_eswitch_mode_get()1613 struct rvu_switch *rswitch; in rvu_devlink_eswitch_mode_set() local1615 rswitch = &rvu->rswitch; in rvu_devlink_eswitch_mode_set()1619 if (rswitch->mode == mode) in rvu_devlink_eswitch_mode_set()1621 rswitch->mode = mode; in rvu_devlink_eswitch_mode_set()
1333 struct rvu_switch *rswitch = &rvu->rswitch; in npc_update_rx_entry() local1337 if (rswitch->mode == DEVLINK_ESWITCH_MODE_SWITCHDEV && pf_set_vfs_mac) in npc_update_rx_entry()1743 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_mbox_handler_npc_install_flow() local1899 mutex_lock(&rswitch->switch_lock); in rvu_mbox_handler_npc_install_flow()1908 mutex_unlock(&rswitch->switch_lock); in rvu_mbox_handler_npc_install_flow()
657 struct rvu_switch rswitch; member
133 spin_lock(&rdev->rswitch->lock); in idtcps_probe()135 if (rdev->rswitch->ops) { in idtcps_probe()136 spin_unlock(&rdev->rswitch->lock); in idtcps_probe()140 rdev->rswitch->ops = &idtcps_switch_ops; in idtcps_probe()151 spin_unlock(&rdev->rswitch->lock); in idtcps_probe()158 spin_lock(&rdev->rswitch->lock); in idtcps_remove()159 if (rdev->rswitch->ops != &idtcps_switch_ops) { in idtcps_remove()160 spin_unlock(&rdev->rswitch->lock); in idtcps_remove()163 rdev->rswitch->ops = NULL; in idtcps_remove()164 spin_unlock(&rdev->rswitch->lock); in idtcps_remove()
420 spin_lock(&rdev->rswitch->lock); in idtg2_probe()422 if (rdev->rswitch->ops) { in idtg2_probe()423 spin_unlock(&rdev->rswitch->lock); in idtg2_probe()427 rdev->rswitch->ops = &idtg2_switch_ops; in idtg2_probe()435 spin_unlock(&rdev->rswitch->lock); in idtg2_probe()446 spin_lock(&rdev->rswitch->lock); in idtg2_remove()447 if (rdev->rswitch->ops != &idtg2_switch_ops) { in idtg2_remove()448 spin_unlock(&rdev->rswitch->lock); in idtg2_remove()451 rdev->rswitch->ops = NULL; in idtg2_remove()452 spin_unlock(&rdev->rswitch->lock); in idtg2_remove()
274 spin_lock(&rdev->rswitch->lock); in idtg3_probe()276 if (rdev->rswitch->ops) { in idtg3_probe()277 spin_unlock(&rdev->rswitch->lock); in idtg3_probe()281 rdev->rswitch->ops = &idtg3_switch_ops; in idtg3_probe()291 spin_unlock(&rdev->rswitch->lock); in idtg3_probe()299 spin_lock(&rdev->rswitch->lock); in idtg3_remove()300 if (rdev->rswitch->ops == &idtg3_switch_ops) in idtg3_remove()301 rdev->rswitch->ops = NULL; in idtg3_remove()302 spin_unlock(&rdev->rswitch->lock); in idtg3_remove()
45 if (rdev->rswitch->route_table[i] == RIO_INVALID_ROUTE) in routes_show()49 rdev->rswitch->route_table[i]); in routes_show()75 if (rdev->rswitch->nextdev[i]) in lnext_show()77 rio_name(rdev->rswitch->nextdev[i])); in lnext_show()
49 &rswitch {
180 &rswitch {
204 struct rio_switch rswitch[]; /* RIO switch info */ member210 #define sw_to_rio_dev(n) container_of(n, struct rio_dev, rswitch[0])
23049 F: drivers/net/ethernet/renesas/rswitch*