Answer: 2(m−2)(n−2).
For convenience, assume that the switch for any cross is located at the central cell of that cross. Then switches are located in all cells not on the edge of the grid. There are (m−2)(n−2) such cells.
The final state of each lamp is determined by whether there have been an even or odd number of switches affecting it, meaning we can cancel out all double presses of the same switch. So any possible arrangement can be achieved by using each switch at most once. There are 2(m−2)(n−2) possibilities for the choice of switches to use.
Consider any two combinations differing by at least one switch used. Let L be the leftmost square, whose switch is used in one combination, but not in the other (if there are several options, choose at random). Then the left neighbour K of L will have a different end state for these arrangements. So different combinations yield different lamp arrangements. Therefore there are exactly 2(m−2)(n−2) possible arrangements.