I am currently trying to understand a set of lecture notes, where the notation is very poorly defined, unfortunately. In a "proof" that canonical quantisation works, the following Hamiltonian (operator) is defined: \begin{equation} H = e\Phi + \frac{(\mathbf{p}-e\mathbf{A})\cdot (\mathbf{p}-e\mathbf{A})}{2m} \end{equation} where $\mathbf{A}$ is a vector potential and $\mathbf{p} = -i\hbar\nabla$. Then, Hamilton's equations are being applied: \begin{aligned} \dot{\mathbf{x}} &= \frac{\partial H}{\partial \mathbf{p}} \stackrel{(*)}{=} \frac{1}{m}(\mathbf{p}-e\mathbf{A}) \\ \dot{\mathbf{p}} &= -\frac{\partial H}{\partial \mathbf{x}} \stackrel{(*)}{=} -e\frac{\partial \Phi}{\partial \mathbf{x}} + \frac{e}{m}(\mathbf{p}-e\mathbf{A}) \cdot \frac{\partial}{\partial \mathbf{x}} \mathbf{A} \end{aligned}
where the dot product in the final term is between the outer two vectors, in a sad indictment of the notation.
I do not really understand the steps marked with (*).
For the first equation, I get how to do this if you treat the $\mathbf{p}$ as a scalar and the derivative as a "scalar" derivative. However, the result would be different if I treat it as a vector, and the derivative as the corresponding divergence. But even then, it is clearly an operator, so how do I think about this correctly? For the second equation, I don't really have an idea about what's going on.
I hope this question is suitable for Physics SE.