Lines Matching refs:value
28 const char *value, bool reverse) in __eeprom_field_update_bin() argument
30 int len = strlen(value); in __eeprom_field_update_bin()
51 tmp[k] = value[i]; in __eeprom_field_update_bin()
55 tmp[k] = value[reverse ? i - 1 + k : i + k]; in __eeprom_field_update_bin()
70 char *value, char *delimiter) in __eeprom_field_update_bin_delim() argument
74 const char *tmp = value; in __eeprom_field_update_bin_delim()
88 tok = strtok(value, delimiter); in __eeprom_field_update_bin_delim()
123 int eeprom_field_update_bin(struct eeprom_field *field, char *value) in eeprom_field_update_bin() argument
125 return __eeprom_field_update_bin(field, value, false); in eeprom_field_update_bin()
135 int eeprom_field_update_reserved(struct eeprom_field *field, char *value) in eeprom_field_update_reserved() argument
137 return __eeprom_field_update_bin_delim(field, value, " "); in eeprom_field_update_reserved()
170 int eeprom_field_update_bin_rev(struct eeprom_field *field, char *value) in eeprom_field_update_bin_rev() argument
172 return __eeprom_field_update_bin(field, value, true); in eeprom_field_update_bin_rev()
197 int eeprom_field_update_mac(struct eeprom_field *field, char *value) in eeprom_field_update_mac() argument
199 return __eeprom_field_update_bin_delim(field, value, ":"); in eeprom_field_update_mac()
222 int eeprom_field_update_ascii(struct eeprom_field *field, char *value) in eeprom_field_update_ascii() argument
224 if (strlen(value) >= field->size) { in eeprom_field_update_ascii()
229 strncpy((char *)field->buf, value, field->size - 1); in eeprom_field_update_ascii()