Lines Matching refs:port_index

39 nsim_dev_port_index(enum nsim_dev_port_type type, unsigned int port_index)  in nsim_dev_port_index()  argument
43 port_index = NSIM_DEV_VF_PORT_INDEX_BASE + port_index; in nsim_dev_port_index()
49 return port_index; in nsim_dev_port_index()
52 static inline unsigned int nsim_dev_port_index_to_vf_index(unsigned int port_index) in nsim_dev_port_index_to_vf_index() argument
54 return port_index - NSIM_DEV_VF_PORT_INDEX_BASE; in nsim_dev_port_index_to_vf_index()
398 unsigned int port_index = nsim_dev_port->port_index; in nsim_dev_port_debugfs_init() local
402 sprintf(port_ddir_name, "%u", port_index); in nsim_dev_port_debugfs_init()
410 unsigned int vf_id = nsim_dev_port_index_to_vf_index(port_index); in nsim_dev_port_debugfs_init()
582 unsigned int port_index);
1180 int vf_id = nsim_dev_port_index_to_vf_index(nsim_dev_port->port_index); in nsim_leaf_tx_share_set()
1196 int vf_id = nsim_dev_port_index_to_vf_index(nsim_dev_port->port_index); in nsim_leaf_tx_max_set()
1356 unsigned int port_index) in __nsim_dev_port_add() argument
1369 nsim_dev_port->port_index = nsim_dev_port_index(type, port_index); in __nsim_dev_port_add()
1375 attrs.phys.port_number = port_index + 1; in __nsim_dev_port_add()
1379 attrs.pci_vf.vf = port_index; in __nsim_dev_port_add()
1385 nsim_dev_port->port_index); in __nsim_dev_port_add()
1693 unsigned int port_index) in __nsim_dev_port_lookup() argument
1697 port_index = nsim_dev_port_index(type, port_index); in __nsim_dev_port_lookup()
1699 if (nsim_dev_port->port_index == port_index) in __nsim_dev_port_lookup()
1705 unsigned int port_index) in nsim_drv_port_add() argument
1711 if (__nsim_dev_port_lookup(nsim_dev, type, port_index)) in nsim_drv_port_add()
1714 err = __nsim_dev_port_add(nsim_dev, type, port_index); in nsim_drv_port_add()
1720 unsigned int port_index) in nsim_drv_port_del() argument
1727 nsim_dev_port = __nsim_dev_port_lookup(nsim_dev, type, port_index); in nsim_drv_port_del()