Home
last modified time | relevance | path

Searched refs:current_values (Results 1 – 3 of 3) sorted by relevance

/netbsd-src/usr.sbin/memswitch/
H A Dmemswitch.c59 u_int8_t *current_values = 0; variable
279 if (current_values == 0) in alloc_modified_values()
284 memcpy(modified_values, current_values, 256); in alloc_modified_values()
295 current_values = malloc(256); in alloc_current_values()
296 if (current_values == 0) in alloc_current_values()
308 memcpy(&current_values[i], buffer.sram, SRAM_IO_SIZE); in alloc_current_values()
317 current_values = malloc(256); in alloc_current_values()
318 if (current_values == 0) in alloc_current_values()
350 if (read(fd, current_values, 256) != 256) in alloc_current_values()
383 if (memcmp(&current_values[i], &modified_values[i], in flush()
[all …]
H A Dmethods.c100 if (current_values == 0) in fill_uchar()
103 prop->current_value.byte[0] = current_values[prop->offset]; in fill_uchar()
115 if (current_values == 0) in fill_ushort()
118 prop->current_value.byte[0] = current_values[prop->offset]; in fill_ushort()
119 prop->current_value.byte[1] = current_values[prop->offset+1]; in fill_ushort()
130 if (current_values == 0) in fill_ulong()
133 prop->current_value.byte[0] = current_values[prop->offset]; in fill_ulong()
134 prop->current_value.byte[1] = current_values[prop->offset+1]; in fill_ulong()
135 prop->current_value.byte[2] = current_values[prop->offset+2]; in fill_ulong()
136 prop->current_value.byte[3] = current_values[prop->offset+3]; in fill_ulong()
H A Dmemswitch.h79 extern u_int8_t *current_values;