Lines Matching refs:_unit
205 strcpy(_value._unit, "ns");
212 strncpy(_value._unit, &str[idx], len - idx);
213 /*Write an extra null termination. This is safe because _value._unit
218 _value._unit[len-idx] = '\0';
221 if (strcmp(_value._unit, "ns") == 0) {
223 } else if (strcmp(_value._unit, "us") == 0) {
225 } else if (strcmp(_value._unit, "ms") == 0) {
227 } else if (strcmp(_value._unit, "s") == 0) {
229 } else if (strcmp(_value._unit, "m") == 0) {
231 } else if (strcmp(_value._unit, "h") == 0) {
233 } else if (strcmp(_value._unit, "d") == 0) {
250 strcmp(_value._unit, "ns");