Lines Matching refs:snprintf
41 snprintf(bu, MAX_SIZE, "/sys/class/pwm/pwmchip%d/pwm%d/duty_cycle", dev->chipid, dev->pin); in mraa_pwm_setup_duty_fp()
61 snprintf(bu, MAX_SIZE, "/sys/class/pwm/pwmchip%d/pwm%d/period", dev->chipid, dev->pin); in mraa_pwm_write_period()
69 int length = snprintf(out, MAX_SIZE, "%d", period); in mraa_pwm_write_period()
100 snprintf(bu, MAX_SIZE, "/sys/class/pwm/pwmchip%d/pwm%d/period", dev->chipid, dev->pin); in mraa_pwm_read_period()
254 snprintf(directory, MAX_SIZE, SYSFS_PWM "/pwmchip%d/pwm%d", dev->chipid, dev->pin); in mraa_pwm_init_raw()
261 snprintf(buffer, MAX_SIZE, "/sys/class/pwm/pwmchip%d/export", dev->chipid); in mraa_pwm_init_raw()
270 int size = snprintf(out, MAX_SIZE, "%d", dev->pin); in mraa_pwm_init_raw()
360 snprintf(bu, MAX_SIZE, "/sys/class/pwm/pwmchip%d/pwm%d/enable", dev->chipid, dev->pin); in mraa_pwm_enable()
369 int size = snprintf(out, sizeof(out), "%d", enable); in mraa_pwm_enable()
383 snprintf(filepath, MAX_SIZE, "/sys/class/pwm/pwmchip%d/unexport", dev->chipid); in mraa_pwm_unexport_force()
392 int size = snprintf(out, MAX_SIZE, "%d", dev->pin); in mraa_pwm_unexport_force()