Lines Matching refs:len
139 ipmi_entity_name(uint8_t id, char *buf, size_t len)
145 (void) strlcpy(buf, ntp->int_name, len);
150 (void) snprintf(buf, len, "0x%02x", id);
154 ipmi_sensor_type_name(uint8_t type, char *buf, size_t len)
160 (void) strlcpy(buf, ntp->int_name, len);
165 (void) snprintf(buf, len, "0x%02x", type);
169 ipmi_sensor_units_name(uint8_t type, char *buf, size_t len)
175 (void) strlcpy(buf, ntp->int_name, len);
180 (void) snprintf(buf, len, "0x%02x", type);
185 char *buf, size_t len)
200 (void) strlcpy(buf, ntp->int_name, len);
206 (void) snprintf(buf, len, "%02x/%02x", reading_type,
209 (void) snprintf(buf, len, "%02x", reading_type);
235 ipmi_decode_string(uint8_t type, uint8_t len, char *data, char *buf)
240 if (len == 0) {
248 (void) strncpy(buf, data, len);
249 *(buf+len) = '\0';
267 chunks = len / 3;
268 leftovers = len % 3;