MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xor_chan_write

Function xor_chan_write

freebsd/arm/mv/mv_common.c:2098–2107  ·  view source on GitHub ↗

* Set channel protection 'val' for window 'w' on channel 'c' */

Source from the content-addressed store, hash-verified

2096 * Set channel protection 'val' for window 'w' on channel 'c'
2097 */
2098static void
2099xor_chan_write(u_long base, int c, int e, int w, int val)
2100{
2101 uint32_t v;
2102
2103 v = win_xor_ctrl_read(base, c, e);
2104 v &= ~(0x3 << (w * 2 + 16));
2105 v |= (val << (w * 2 + 16));
2106 win_xor_ctrl_write(base, c, e, v);
2107}
2108
2109/*
2110 * Set protection 'val' on all channels for window 'w' on engine 'e'

Callers 1

xor_set_protFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected