401k hardship withdrawal tax exemptions

When taking a 401k hardship withdrawal for first time home purchase, theres a 10% penalty tax, with an exemption for up to $10k withdrawed. Is that exemption for up to $10k for every every person in the household? Or just up to the $10k? Also, if I withdraw more than the exempted $10k, is the entire amount subject to the 10% penalty? Or is it just the amount over the $10k that is subject to the penalty?