Lines Matching refs:pidx
98 u8 pidx; /* index into adapter port[] */
131 unsigned int pidx; /* producer index */
234 unsigned int pidx; /* producer index */
453 * @pidx: the port index
457 static inline const char *port_name(struct adapter *adapter, int pidx)
459 return adapter->port[pidx]->name;
465 * @pidx: the port index
471 static inline void t4_os_set_hw_addr(struct adapter *adapter, int pidx,
474 memcpy(adapter->port[pidx]->dev_addr, hw_addr, ETH_ALEN);
475 memcpy(adapter->port[pidx]->perm_addr, hw_addr, ETH_ALEN);
492 * @pidx: the port index
496 static inline struct port_info *adap2pinfo(struct adapter *adapter, int pidx)
498 return netdev_priv(adapter->port[pidx]);