Searched refs:amt (Results 1 – 7 of 7) sorted by relevance
/device/htc/flounder/sensor_hub/libsensors/ |
D | SensorBase.cpp | 74 int fd, amt; in write_sys_attribute() local 83 amt = write(fd, value, bytes); in write_sys_attribute() 84 amt = ((amt == -1) ? -errno : 0); in write_sys_attribute() 85 ALOGE_IF(amt < 0, "SensorBase: write_int failed to write %s (%s)", in write_sys_attribute() 88 return amt; in write_sys_attribute()
|
/device/lge/hammerhead/liblight/ |
D | lights.c | 68 int amt = write(fd, buffer, bytes); in write_int() local 70 return amt == -1 ? -errno : 0; in write_int() 89 int amt = write(fd, buffer, bytes); in write_on_off() local 91 return amt == -1 ? -errno : 0; in write_on_off()
|
/device/lge/bullhead/liblight/ |
D | lights.c | 68 int amt = write(fd, buffer, bytes); in write_int() local 70 return amt == -1 ? -errno : 0; in write_int() 89 int amt = write(fd, buffer, bytes); in write_on_off() local 91 return amt == -1 ? -errno : 0; in write_on_off()
|
/device/huawei/angler/liblight/ |
D | lights.c | 97 ssize_t amt = write(fd, buffer, (size_t)bytes); in write_int() local 99 return amt == -1 ? -errno : 0; in write_int() 119 int amt = write(fd, buffer, bytes); in write_on_off() local 121 return amt == -1 ? -errno : 0; in write_on_off()
|
/device/asus/fugu/libaudio/ |
D | AudioHotplugThread.cpp | 181 int amt = -1; in s_get_alsa_card_name() local 185 amt = read(fd, name, len - 1); in s_get_alsa_card_name() 186 if (amt > 0) { in s_get_alsa_card_name() 188 name[amt - 1] = 0; in s_get_alsa_card_name() 192 return amt; in s_get_alsa_card_name()
|
D | alsa_utils.cpp | 33 int amt; in find_alsa_card_by_name() local 42 amt = read(fd, tmp, sizeof(tmp) - 1); in find_alsa_card_by_name() 43 if (amt > 0) { in find_alsa_card_by_name() 45 tmp[amt - 1] = 0; in find_alsa_card_by_name()
|
/device/htc/flounder/lights/ |
D | lights.c | 45 int amt = write(fd, buffer, bytes); in write_int() local 47 return amt == -1 ? -errno : 0; in write_int()
|