On 5400R it is recommended to use the "ip ospf cost"command.
On 8320, the command is under rotuer ospf:
"reference-bandwidth", the default being 100000Mbps. (cost = ref_bw / interf_bw).
Please note that reference BW is something you may use when routed links are Routed-ports, not VLANs. For a VLAN, the associated OSPF link speed is defined as 1Gbps. If you use transit/interco VLANs, it is best to use ip ospf cost, to better control your routing cost.
If you only use Routed-ports, then keeping the default refence-bw is fine for 1G and 10G ports.