NetBSD/sys/dev/marvell
riastradh d1579b2d70 Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)
2018-09-03 16:29:22 +00:00
..
com_mv.c
ehci_mv.c Stop potential misuse of vendor names and USB vendor IDs in root hub 2018-04-09 16:21:09 +00:00
files.armada
files.discovery
gt.c PR/51540: Henning Petersen: replace , with ; 2016-10-09 14:49:51 +00:00
gtbrgreg.h Switch to generic __BIT/__BITS macro, which doesn't depend on 2016-01-15 12:09:15 +00:00
gtbrgvar.h
gtdevbusvar.h
gtethreg.h
gtidmac.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
gtidmacreg.h Fix macro MVXORE_CHAN2BASE(). The XORE has 2 channels per port. 2017-01-07 14:32:32 +00:00
gtidmacvar.h Remove unused function. 2017-01-07 14:36:51 +00:00
gtintrreg.h
gtintrvar.h
gtmpsc.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
gtmpscreg.h Switch to generic __BIT/__BITS macro, which doesn't depend on 2016-01-15 12:09:15 +00:00
gtmpscvar.h
gtpci.c
gtpcireg.h
gtpcivar.h
gtreg.h
gtsdmareg.h Switch to generic __BIT/__BITS macro, which doesn't depend on 2016-01-15 12:09:15 +00:00
gtsdmavar.h
gttwsi.c
gtvar.h
if_gfe.c Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward 2018-06-26 06:47:57 +00:00
if_gfevar.h
if_mvgbe.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
if_mvxpe.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
if_mvxpereg.h Count up if_{opackets,oerrors,ierrors,collisions}. 2016-02-13 06:33:21 +00:00
if_mvxpevar.h s/static inline/static __inline/g for consistency. 2018-04-19 21:50:06 +00:00
marvellreg.h Add ATTR_AXI_DDR. 2017-01-09 14:06:35 +00:00
marvellvar.h Add tags for AXI_CS[01]. 2017-01-07 14:26:37 +00:00
mvcesa.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
mvcesareg.h
mvgbereg.h
mvpex.c
mvpexreg.h
mvpexvar.h
mvsata_mv.c Support Marvell Dove. 2017-01-07 14:24:27 +00:00
mvsdio.c Add check during mvsdio_attach that CMD line is in idle state. 2017-03-03 16:52:08 +00:00
mvsdioreg.h Add kernel configuration file for PogoPlug Pink, PogoPlug Mobile and 2016-03-12 00:41:30 +00:00
mvspi.c PR/51540: Henning Petersen: replace , with ; 2016-10-09 14:49:51 +00:00
mvspireg.h Change MVSPI_SIZE to 0x80 instead of 0x50. 2017-01-07 14:19:45 +00:00
mvxpbm.c Fix double-free, m_tag_delete_chain is already called by m_free. 2018-05-07 09:41:10 +00:00
mvxpbmvar.h
mvxpsec.c use PR_NOWAIT instead of 0 2017-11-09 22:22:58 +00:00
mvxpsecreg.h
mvxpsecvar.h
obio.c
pchb.c