Lines Matching defs:fld
38 #define field_nbit(fld) (ffs(fld)-1)
39 #define field_select(fld,x) ((x) & (fld))
40 #define field_clear(fld,x) ((x) & ~(fld))
41 #define field_unshift(fld,x) ((x) >> field_nbit(fld))
42 #define field_shift(fld,x) ((x) << field_nbit(fld))
43 #define field_get(fld,x) (field_unshift(fld,field_select(fld,x)))
44 #define field_set(fld,x,val) (field_clear(fld,x) | field_shift(fld,val))
71 } fld;
105 } fld;
121 } fld;
134 } fld;
150 } fld;
175 } fld;
203 { .fld.event_select = 0xc9, .fld.umask = 0 }
205 { .fld.event_select = 0xcb, .fld.umask = 1 }
207 { .fld.event_select = 0xcb, .fld.umask = 2 }
209 { .fld.event_select = 0xcb, .fld.umask = 4 }
211 { .fld.event_select = 0xcb, .fld.umask = 8 }
213 { .fld.event_select = 0xcb, .fld.umask = 0x10 }