Home
last modified time | relevance | path

Searched refs:rswitch (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_switch.c85 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_switch_install_rules() local
86 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() local
186 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 …]
H A Drvu_rep.c316 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_rep_install_mcam_rules() local
317 u16 start = rswitch->start_entry; in rvu_rep_install_mcam_rules()
336 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_rep_install_mcam_rules()
342 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_rep_install_mcam_rules()
362 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_rep_install_mcam_rules()
369 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_rep_install_mcam_rules()
389 struct rvu_switch *rswitch = &rvu->rswitch; in rvu_rep_update_rules() local
391 u32 max = rswitch->used_entries; in rvu_rep_update_rules()
395 if (!rswitch->used_entries) in rvu_rep_update_rules()
406 if (rswitch->entry2pcifunc[entry] == pcifunc) in rvu_rep_update_rules()
H A Drvu_devlink.c1522 struct rvu_switch *rswitch; in rvu_devlink_eswitch_mode_get() local
1527 rswitch = &rvu->rswitch; in rvu_devlink_eswitch_mode_get()
1528 *mode = rswitch->mode; in rvu_devlink_eswitch_mode_get()
1538 struct rvu_switch *rswitch; in rvu_devlink_eswitch_mode_set() local
1540 rswitch = &rvu->rswitch; in rvu_devlink_eswitch_mode_set()
1544 if (rswitch->mode == mode) in rvu_devlink_eswitch_mode_set()
1546 rswitch->mode = mode; in rvu_devlink_eswitch_mode_set()
H A Drvu_npc_fs.c1137 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 Drvu.c3569 mutex_init(&rvu->rswitch.switch_lock); in rvu_probe()
/linux/drivers/rapidio/switches/
H A Didtcps.c133 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 Didt_gen2.c420 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 Didt_gen3.c274 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/drivers/rapidio/
H A Drio.c186 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()
972 p_port = prev->rswitch->route_table[rdev->destid]; in rio_chk_dev_route()
1081 struct rio_dev *nextdev = rdev->rswitch->nextdev[pnum]; in rio_clr_err_stopped()
1256 if (rdev->rswitch->ops && rdev->rswitch->ops->em_handle) in rio_inb_pwrite_handler()
1257 rdev->rswitch->ops->em_handle(rdev, portnum); in rio_inb_pwrite_handler()
1265 if (!(rdev->rswitch->port_ok & (1 << portnum))) { in rio_inb_pwrite_handler()
1266 rdev->rswitch->port_ok |= (1 << portnum); in rio_inb_pwrite_handler()
1284 if (rdev->rswitch->port_ok & (1 << portnum)) { in rio_inb_pwrite_handler()
[all …]
H A Drio-sysfs.c45 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/include/linux/
H A Drio.h204 struct rio_switch rswitch[]; /* RIO switch info */ member
210 #define sw_to_rio_dev(n) container_of(n, struct rio_dev, rswitch[0])
/linux/arch/arm64/boot/dts/renesas/
H A Dr8a779f0-spider-ethernet.dtsi49 &rswitch {
H A Dr8a779f4-s4sk.dts180 &rswitch {
/linux/drivers/rapidio/devices/
H A Drio_mport_cdev.c1663 struct rio_switch *rswitch = NULL; in rio_mport_add_riodev() local
1699 size += struct_size(rswitch, nextdev, RIO_GET_TOTAL_PORTS(swpinfo)); in rio_mport_add_riodev()
1767 rswitch = rdev->rswitch; in rio_mport_add_riodev()
1768 rswitch->route_table = NULL; in rio_mport_add_riodev()
/linux/
H A DMAINTAINERS22355 F: drivers/net/ethernet/renesas/rswitch*