PORT_LOCK
#define PORT_LOCK(port) mtx_lock(&(port)->lock);
#define PORT_LOCK(pi) mtx_lock(&(pi)->pi_lock)