/external/libiio/src/ |
D | iiod-client.c | 216 iio_snprintf(buf, sizeof(buf), "GETTRIG %s\r\n", in iiod_client_get_trigger() 269 iio_snprintf(buf, sizeof(buf), "SETTRIG %s %s\r\n", in iiod_client_set_trigger() 273 iio_snprintf(buf, sizeof(buf), "SETTRIG %s\r\n", in iiod_client_set_trigger() 289 iio_snprintf(buf, sizeof(buf), "SET %s BUFFERS_COUNT %u\r\n", in iiod_client_set_kernel_buffers_count() 304 iio_snprintf(buf, sizeof(buf), "TIMEOUT %u\r\n", timeout); in iiod_client_set_timeout() 367 iio_snprintf(buf, sizeof(buf), "READ %s %s %s %s\r\n", id, in iiod_client_read_attr() 373 iio_snprintf(buf, sizeof(buf), "READ %s %s\r\n", in iiod_client_read_attr() 377 iio_snprintf(buf, sizeof(buf), "READ %s DEBUG %s\r\n", in iiod_client_read_attr() 381 iio_snprintf(buf, sizeof(buf), "READ %s BUFFER %s\r\n", in iiod_client_read_attr() 451 iio_snprintf(buf, sizeof(buf), "WRITE %s %s %s %s %lu\r\n", id, in iiod_client_write_attr() [all …]
|
D | utilities.c | 70 iio_snprintf(buf, len, "%f", val); in write_double_locale() 138 iio_snprintf(buf, len, "%f", val); in write_double_locale() 168 iio_snprintf(buf, len, "%f", val); in write_double() 197 iio_snprintf(buf, len, "Unknown error %i", err); in iio_strerror()
|
D | local.c | 698 iio_snprintf(buf, sizeof(buf), "/sys/bus/iio/devices/%s/%s", in local_read_dev_attr() 702 iio_snprintf(buf, sizeof(buf), "/sys/kernel/debug/iio/%s/%s", in local_read_dev_attr() 706 iio_snprintf(buf, sizeof(buf), "/sys/bus/iio/devices/%s/buffer/%s", in local_read_dev_attr() 739 iio_snprintf(buf, sizeof(buf), "/sys/bus/iio/devices/%s/%s", in local_write_dev_attr() 743 iio_snprintf(buf, sizeof(buf), "/sys/kernel/debug/iio/%s/%s", in local_write_dev_attr() 747 iio_snprintf(buf, sizeof(buf), "/sys/bus/iio/devices/%s/buffer/%s", in local_write_dev_attr() 926 iio_snprintf(buf, sizeof(buf), "%lu", (unsigned long) samples_count); in local_open() 936 iio_snprintf(buf, sizeof(buf), "/dev/%s", dev->id); in local_open() 986 iio_snprintf(buf, sizeof(buf), "%lu", size); in local_open() 1615 iio_snprintf(buf, sizeof(buf), "scan_elements/%s", name); in add_attr_or_channel_helper() [all …]
|
D | channel.c | 181 iio_snprintf(str, len, "<attribute name=\"%s\" filename=\"%s\" />", in get_attr_xml() 184 iio_snprintf(str, len, "<attribute name=\"%s\" />", attr->name); in get_attr_xml() 194 iio_snprintf(repeat, sizeof(repeat), "X%u", chn->format.repeat); in get_scan_element() 196 iio_snprintf(buf, sizeof(buf), "<scan-element index=\"%li\" " in get_scan_element() 205 iio_snprintf(ptr - 2, buf + sizeof(buf) - ptr + 2, in get_scan_element() 253 iio_snprintf(str, len, "<channel id=\"%s\"", chn->id); in iio_channel_get_xml() 700 iio_snprintf(buf, sizeof(buf), "%lld", val); in iio_channel_attr_write_longlong()
|
D | device.c | 52 iio_snprintf(str, len, "<attribute name=\"%s\" />", attr); in get_attr_xml() 55 iio_snprintf(str, len, "<debug-attribute name=\"%s\" />", attr); in get_attr_xml() 58 iio_snprintf(str, len, "<buffer-attribute name=\"%s\" />", attr); in get_attr_xml() 147 iio_snprintf(str, len, "<device id=\"%s\"", dev->id); in iio_device_get_xml() 621 iio_snprintf(buf, sizeof(buf), "%lld", val); in iio_device_attr_write_longlong() 697 iio_snprintf(buf, sizeof(buf), "%lld", val); in iio_device_buffer_attr_write_longlong() 813 iio_snprintf(buf, sizeof(buf), "%lld", val); in iio_device_debug_attr_write_longlong() 889 iio_snprintf(buf, sizeof(buf), "0x%" PRIx32 " 0x%" PRIx32, in iio_device_reg_write()
|
D | usb.c | 712 iio_snprintf(buffer, sizeof(buffer), "%04hx", dev_desc.idVendor); in usb_populate_context_attrs() 717 iio_snprintf(buffer, sizeof(buffer), "%04hx", dev_desc.idProduct); in usb_populate_context_attrs() 722 iio_snprintf(buffer, sizeof(buffer), "%1hhx.%1hhx", in usb_populate_context_attrs() 751 iio_snprintf(buffer, sizeof(buffer), "%i.%i.%i.%i%s", in usb_populate_context_attrs() 1071 iio_snprintf(uri, sizeof(uri), "usb:%d.%d.%u", in usb_fill_context_info() 1106 iio_snprintf(description, sizeof(description), in usb_fill_context_info()
|
D | iio-private.h | 31 #define iio_snprintf sprintf_s macro 33 #define iio_snprintf snprintf macro
|
D | context.c | 98 iio_snprintf(str, len, "%s<context name=\"%s\" " in iio_context_create_xml() 102 iio_snprintf(str, len, "%s<context name=\"%s\" >", in iio_context_create_xml()
|
D | network.c | 1069 iio_snprintf(buf, sizeof(buf), "WRITEBUF %s %lu\r\n", in network_get_buffer() 1102 iio_snprintf(buf, sizeof(buf), "READBUF %s %lu\r\n", in network_get_buffer() 1457 iio_snprintf(port_str, sizeof(port_str), "%hu", port); in network_create_context() 1597 iio_snprintf(ptr, new_size - desc_len, " %s", ctx->description); in network_create_context()
|
D | serial.c | 359 iio_snprintf(description, desc_len, "%s: %s", name, desc); in serial_create_context()
|