Searched refs:rswitch (Results 1 - 14 of 14) sorted by relevance

/linux-master/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_switch.c85 struct rvu_switch *rswitch = &rvu->rswitch; local
86 u16 start = rswitch->start_entry;
125 rswitch->entry2pcifunc[entry++] = pcifunc;
149 rswitch->entry2pcifunc[entry++] = pcifunc;
163 struct rvu_switch *rswitch = &rvu->rswitch; local
184 rswitch->entry2pcifunc = kcalloc(alloc_req.count, sizeof(u16),
186 if (!rswitch->entry2pcifunc)
189 rswitch
215 struct rvu_switch *rswitch = &rvu->rswitch; local
263 struct rvu_switch *rswitch = &rvu->rswitch; local
[all...]
H A Drvu_devlink.c1465 struct rvu_switch *rswitch; local
1467 rswitch = &rvu->rswitch;
1468 *mode = rswitch->mode;
1478 struct rvu_switch *rswitch; local
1480 rswitch = &rvu->rswitch;
1484 if (rswitch->mode == mode)
1486 rswitch->mode = mode;
H A Drvu_npc_fs.c1155 struct rvu_switch *rswitch = &rvu->rswitch; local
1159 if (rswitch->mode == DEVLINK_ESWITCH_MODE_SWITCHDEV && pf_set_vfs_mac)
1417 struct rvu_switch *rswitch = &rvu->rswitch; local
1533 mutex_lock(&rswitch->switch_lock);
1536 mutex_unlock(&rswitch->switch_lock);
H A Drvu.h585 struct rvu_switch rswitch; member in struct:rvu
H A Drvu.c3363 mutex_init(&rvu->rswitch.switch_lock);
/linux-master/drivers/net/ethernet/renesas/
H A DMakefile11 obj-$(CONFIG_RENESAS_ETHER_SWITCH) += rswitch.o
/linux-master/drivers/rapidio/switches/
H A Didtcps.c133 spin_lock(&rdev->rswitch->lock);
135 if (rdev->rswitch->ops) {
136 spin_unlock(&rdev->rswitch->lock);
140 rdev->rswitch->ops = &idtcps_switch_ops;
151 spin_unlock(&rdev->rswitch->lock);
158 spin_lock(&rdev->rswitch->lock);
159 if (rdev->rswitch->ops != &idtcps_switch_ops) {
160 spin_unlock(&rdev->rswitch->lock);
163 rdev->rswitch->ops = NULL;
164 spin_unlock(&rdev->rswitch
[all...]
H A Didt_gen2.c420 spin_lock(&rdev->rswitch->lock);
422 if (rdev->rswitch->ops) {
423 spin_unlock(&rdev->rswitch->lock);
427 rdev->rswitch->ops = &idtg2_switch_ops;
435 spin_unlock(&rdev->rswitch->lock);
446 spin_lock(&rdev->rswitch->lock);
447 if (rdev->rswitch->ops != &idtg2_switch_ops) {
448 spin_unlock(&rdev->rswitch->lock);
451 rdev->rswitch->ops = NULL;
452 spin_unlock(&rdev->rswitch
[all...]
H A Didt_gen3.c274 spin_lock(&rdev->rswitch->lock);
276 if (rdev->rswitch->ops) {
277 spin_unlock(&rdev->rswitch->lock);
281 rdev->rswitch->ops = &idtg3_switch_ops;
291 spin_unlock(&rdev->rswitch->lock);
299 spin_lock(&rdev->rswitch->lock);
300 if (rdev->rswitch->ops == &idtg3_switch_ops)
301 rdev->rswitch->ops = NULL;
302 spin_unlock(&rdev->rswitch->lock);
/linux-master/drivers/rapidio/
H A Drio-scan.c328 struct rio_switch *rswitch = NULL; local
342 size += struct_size(rswitch, nextdev, RIO_GET_TOTAL_PORTS(swpinfo));
419 rswitch = rdev->rswitch;
420 rswitch->port_ok = 0;
421 spin_lock_init(&rswitch->lock);
422 rswitch->route_table =
425 if (!rswitch->route_table)
430 rswitch->route_table[rdid] = RIO_INVALID_ROUTE;
458 if (rswitch)
891 struct rio_switch *rswitch; local
1026 struct rio_switch *rswitch; local
[all...]
H A Drio-sysfs.c45 if (rdev->rswitch->route_table[i] == RIO_INVALID_ROUTE)
49 rdev->rswitch->route_table[i]);
75 if (rdev->rswitch->nextdev[i])
77 rio_name(rdev->rswitch->nextdev[i]));
H A Drio.c186 list_add_tail(&rdev->rswitch->node,
212 list_del(&rdev->rswitch->node);
213 kfree(rdev->rswitch->route_table);
972 p_port = prev->rswitch->route_table[rdev->destid];
1081 struct rio_dev *nextdev = rdev->rswitch->nextdev[pnum];
1256 if (rdev->rswitch->ops && rdev->rswitch->ops->em_handle)
1257 rdev->rswitch->ops->em_handle(rdev, portnum);
1265 if (!(rdev->rswitch->port_ok & (1 << portnum))) {
1266 rdev->rswitch
[all...]
/linux-master/include/linux/
H A Drio.h173 * @rswitch: struct rio_switch (if valid for this device)
204 struct rio_switch rswitch[]; /* RIO switch info */ member in struct:rio_dev
210 #define sw_to_rio_dev(n) container_of(n, struct rio_dev, rswitch[0])
/linux-master/drivers/rapidio/devices/
H A Drio_mport_cdev.c1684 struct rio_switch *rswitch = NULL; local
1720 size += struct_size(rswitch, nextdev, RIO_GET_TOTAL_PORTS(swpinfo));
1787 rswitch = rdev->rswitch;
1788 rswitch->route_table = NULL;

Completed in 198 milliseconds