Home
last modified time | relevance | path

Searched refs:amt (Results 1 – 7 of 7) sorted by relevance

/device/htc/flounder/sensor_hub/libsensors/
DSensorBase.cpp74 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/
Dlights.c68 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/
Dlights.c68 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/
Dlights.c97 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/
DAudioHotplugThread.cpp181 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()
Dalsa_utils.cpp33 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/
Dlights.c45 int amt = write(fd, buffer, bytes); in write_int() local
47 return amt == -1 ? -errno : 0; in write_int()