On the role of irregularities in plasma entry into the magnetosphere