| /linux-6.15/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_switch.c | 85 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_switch_install_rules() local 163 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_switch_enable() local 188 if (!rswitch->entry2pcifunc) in rvu_switch_enable() 207 uninstall_req.end = rswitch->start_entry + rswitch->used_entries - 1; in rvu_switch_enable() 209 kfree(rswitch->entry2pcifunc); in rvu_switch_enable() 222 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_switch_disable() local 229 if (!rswitch->used_entries) in rvu_switch_disable() 264 uninstall_req.end = rswitch->start_entry + rswitch->used_entries - 1; in rvu_switch_disable() 268 rswitch->used_entries = 0; in rvu_switch_disable() 274 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_switch_update_rules() local [all …]
|
| H A D | rvu_rep.c | 314 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_rep_install_mcam_rules() local 315 u16 start = rswitch->start_entry; in rvu_rep_install_mcam_rules() 334 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_rep_install_mcam_rules() 340 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_rep_install_mcam_rules() 361 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_rep_install_mcam_rules() 368 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_rep_install_mcam_rules() 388 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_rep_update_rules() local 390 u32 max = rswitch->used_entries; in rvu_rep_update_rules() 394 if (!rswitch->used_entries) in rvu_rep_update_rules() 405 if (rswitch->entry2pcifunc[entry] == pcifunc) in rvu_rep_update_rules()
|
| H A D | rvu_devlink.c | 1501 struct rvu_switch *rswitch; in rvu_devlink_eswitch_mode_get() local 1506 rswitch = &rvu->rswitch; in rvu_devlink_eswitch_mode_get() 1507 *mode = rswitch->mode; in rvu_devlink_eswitch_mode_get() 1517 struct rvu_switch *rswitch; in rvu_devlink_eswitch_mode_set() local 1519 rswitch = &rvu->rswitch; in rvu_devlink_eswitch_mode_set() 1523 if (rswitch->mode == mode) in rvu_devlink_eswitch_mode_set() 1525 rswitch->mode = mode; in rvu_devlink_eswitch_mode_set()
|
| H A D | rvu_npc_fs.c | 1137 struct rvu_switch *rswitch = &rvu->rswitch; in npc_update_rx_entry() local 1141 if (rswitch->mode == DEVLINK_ESWITCH_MODE_SWITCHDEV && pf_set_vfs_mac) in npc_update_rx_entry() 1402 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_mbox_handler_npc_install_flow() local 1523 mutex_lock(&rswitch->switch_lock); in rvu_mbox_handler_npc_install_flow() 1526 mutex_unlock(&rswitch->switch_lock); in rvu_mbox_handler_npc_install_flow()
|
| H A D | rvu.h | 594 struct rvu_switch rswitch; member
|
| H A D | rvu.c | 3430 mutex_init(&rvu->rswitch.switch_lock); in rvu_probe()
|
| /linux-6.15/drivers/rapidio/ |
| H A D | rio-scan.c | 419 rswitch = rdev->rswitch; in rio_setup_device() 420 rswitch->port_ok = 0; in rio_setup_device() 422 rswitch->route_table = in rio_setup_device() 425 if (!rswitch->route_table) in rio_setup_device() 458 if (rswitch) in rio_setup_device() 469 if (rswitch) in rio_setup_device() 658 rdev->rswitch-> in rio_enum_peer() 894 struct rio_switch *rswitch; in rio_update_route_tables() local 904 if (rio_is_switch(rdev) && (rdev->rswitch == rswitch)) in rio_update_route_tables() 934 rdev->rswitch->ops && rdev->rswitch->ops->em_init) { in rio_init_em() [all …]
|
| H A D | rio.c | 186 list_add_tail(&rdev->rswitch->node, in rio_add_device() 212 list_del(&rdev->rswitch->node); in rio_del_device() 213 kfree(rdev->rswitch->route_table); in rio_del_device() 1256 if (rdev->rswitch->ops && rdev->rswitch->ops->em_handle) in rio_inb_pwrite_handler() 1266 rdev->rswitch->port_ok |= (1 << portnum); in rio_inb_pwrite_handler() 1627 spin_lock(&rdev->rswitch->lock); in rio_route_add_entry() 1640 spin_unlock(&rdev->rswitch->lock); in rio_route_add_entry() 1680 spin_lock(&rdev->rswitch->lock); in rio_route_get_entry() 1693 spin_unlock(&rdev->rswitch->lock); in rio_route_get_entry() 1728 spin_lock(&rdev->rswitch->lock); in rio_route_clr_table() [all …]
|
| H A D | rio-sysfs.c | 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()
|
| /linux-6.15/drivers/rapidio/switches/ |
| H A D | idtcps.c | 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()
|
| H A D | idt_gen2.c | 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()
|
| H A D | idt_gen3.c | 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()
|
| /linux-6.15/drivers/net/ethernet/renesas/ |
| H A D | Makefile | 11 obj-$(CONFIG_RENESAS_ETHER_SWITCH) += rswitch.o
|
| /linux-6.15/arch/arm64/boot/dts/renesas/ |
| H A D | r8a779f0-spider-ethernet.dtsi | 49 &rswitch {
|
| H A D | r8a779f4-s4sk.dts | 180 &rswitch {
|
| H A D | r8a779f0.dtsi | 899 rswitch: ethernet@e6880000 { label
|
| /linux-6.15/include/linux/ |
| H A D | rio.h | 204 struct rio_switch rswitch[]; /* RIO switch info */ member 210 #define sw_to_rio_dev(n) container_of(n, struct rio_dev, rswitch[0])
|
| /linux-6.15/drivers/rapidio/devices/ |
| H A D | rio_mport_cdev.c | 1684 struct rio_switch *rswitch = NULL; in rio_mport_add_riodev() local 1720 size += struct_size(rswitch, nextdev, RIO_GET_TOTAL_PORTS(swpinfo)); in rio_mport_add_riodev() 1788 rswitch = rdev->rswitch; in rio_mport_add_riodev() 1789 rswitch->route_table = NULL; in rio_mport_add_riodev()
|
| /linux-6.15/ |
| H A D | MAINTAINERS | 20692 F: drivers/net/ethernet/renesas/rswitch*
|