Lines Matching defs:val
76 u32 val;
82 val = value_read(desc[i].struct_offset_bytes,
86 val = 0;
90 *addr = (*addr & ~mask) | (cpu_to_be32(val) & mask);
93 u64 val;
99 val = value_read(desc[i].struct_offset_bytes,
103 val = 0;
107 *addr = (*addr & ~mask) | (cpu_to_be64(val) & mask);
130 static void value_write(int offset, int size, u64 val, void *structure)
133 case 8: *( u8 *) ((char *)structure + offset) = val; break;
134 case 16: *(__be16 *) ((char *)structure + offset) = cpu_to_be16(val); break;
135 case 32: *(__be32 *) ((char *)structure + offset) = cpu_to_be32(val); break;
136 case 64: *(__be64 *) ((char *)structure + offset) = cpu_to_be64(val); break;
165 u32 val;
172 val = (be32_to_cpup(addr) & mask) >> shift;
175 val,
179 u64 val;
186 val = (be64_to_cpup(addr) & mask) >> shift;
189 val,