Home
last modified time | relevance | path

Searched refs:amt (Results 1 – 9 of 9) 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/google/contexthub/lib/libm/
Dfdlibm.h368 #define SAFE_LEFT_SHIFT(op,amt) \ argument
369 (((amt) < 8 * sizeof(op)) ? ((op) << (amt)) : 0)
371 #define SAFE_RIGHT_SHIFT(op,amt) \ argument
372 (((amt) < 8 * sizeof(op)) ? ((op) >> (amt)) : 0)
/device/google/dragon/lights/
Dlights.c74 int fd, bytes, amt, ret = 0; in write_brightness() local
99 amt = write(fd, buffer, bytes); in write_brightness()
100 if (amt != bytes) { in write_brightness()
102 "failed to write brightness value %d/%d\n", amt, in write_brightness()
104 ret = amt == -1 ? -errno : -EINVAL; in write_brightness()
/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/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/huawei/angler/liblight/
Dlights.c105 ssize_t amt = write(fd, buffer, (size_t)bytes); in write_int() local
107 return amt == -1 ? -errno : 0; in write_int()
127 int amt = write(fd, buffer, bytes); in write_on_off() local
129 return amt == -1 ? -errno : 0; in write_on_off()
/device/google/marlin/liblight/
Dlights.c130 ssize_t amt = write(fd, buffer, bytes); in write_int() local
132 return amt == -1 ? -errno : 0; in write_int()
153 ssize_t amt = write(fd, buffer, bytes); in write_double_int() local
155 return amt == -1 ? -errno : 0; in write_double_int()
/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()