There are some similarities between the laws of a house that obligates produce in ma'aser, and a house that is obligated to have a mezuza. Produce becomes obligated in ma'aser once it enters a house. This is derived from a verse that mentions ma'aser in connection with the word for "house." A second opinion says that entering a courtyard also makes it obligated from the Torah because of a connection to the word "gate" (Bava Metsi'a 87b-88a). The obligation of mezuza is also for houses and gates (Deuteronomy 6:9).
Ma'asrot 3:7 discusses the types of structures that make ma'aser obligated. From Yoma 10a-b, I understand 1) that all of these cases are obligated from the Torah (אלא מעשר מי איכא למימר מדרבנן), and 2) that whether a structure qualifies for this list depends on if it's a "house" (this is implied in the Gemara's explanation for the opinion that it has to serve as a house for both summer and winter).
It seems that in all of the cases in this Mishna of houses obligating ma'aser, there is also an obligation to put up a mezuza according to the respective opinions (Rabbi Yehuda in Yoma 10a, unnamed tanna/Rabbi Me'ir in Sukka 8b and Rabbi Yosi in Mezuza 1:8).
Given that the definitions for a house seem to be the same between ma'aser and mezuza, does this still hold for courtyards? Ma'asrot 3:5 defines what counts as a courtyard with regard to ma'aser, and gates of courtyards are also obligated in mezuza (Yoma 11a), but I haven't found the same definitions as those of a courtyard for ma'asrot brought in connection with the laws of mezuza. (If the definitions are different, it would be more understandable according to the opinion that a courtyard doesn't make food obligated in ma'aser from the Torah, but there should still be some logic to having two different definitions.)
So is a courtyard that obligates ma'aser the same kind of courtyard that is obligated in mezuza?