Lines Matching defs:val
124 adm_enout(adm_info_t *adm, uint32 pins, uint val)
127 sb_gpioout(adm->sbh, pins, val, GPIO_DRV_PRIORITY);
202 #define adm_write8(adm, cs, b) { uint8 val = (uint8) (b); adm_write(adm, cs, &val, sizeof(val)*8); }
203 #define adm_write16(adm, cs, w) { uint16 val = hton16(w); \
204 adm_write(adm, cs, (uint8 *)&val, sizeof(val)*8); }
205 #define adm_write32(adm, cs, i) { uint32 val = hton32(i); \
206 adm_write(adm, cs, (uint8 *)&val, sizeof(val)*8); }
211 adm_wreg(adm_info_t *adm, uint8 addr, uint16 val)
216 (addr << 5) | (uint8)(val >> 11),
217 (uint8)(val >> 3),
218 (uint8)(val << 5)
221 ET_TRACE(("adm_wreg: addr %02x val %04x (%02X%02X%02X%02X)\n",
222 addr, val, bits[0], bits[1], bits[2], bits[3]));