Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 8 of 8) sorted by relevance

/tools/usb/usbip/libsrc/
Dusbip_common.c77 char buff[100]; in dump_usb_interface() local
79 usbip_names_get_class(buff, sizeof(buff), in dump_usb_interface()
83 dbg("%-20s = %s", "Interface(C/SC/P)", buff); in dump_usb_interface()
88 char buff[100]; in dump_usb_device() local
93 usbip_names_get_class(buff, sizeof(buff), in dump_usb_device()
97 dbg("%-20s = %s", "Device(C/SC/P)", buff); in dump_usb_device()
101 usbip_names_get_product(buff, sizeof(buff), in dump_usb_device()
104 dbg("%-20s = %s", "Vendor/Product", buff); in dump_usb_device()
245 void usbip_names_get_product(char *buff, size_t size, uint16_t vendor, in usbip_names_get_product() argument
259 snprintf(buff, size, "%s : %s (%04x:%04x)", vend, prod, vendor, product); in usbip_names_get_product()
[all …]
Dvhci_driver.c303 char buff[200]; /* what size should be ? */ in usbip_vhci_attach_device2() local
309 snprintf(buff, sizeof(buff), "%u %d %u %u", in usbip_vhci_attach_device2()
311 dbg("writing: %s", buff); in usbip_vhci_attach_device2()
318 ret = write_sysfs_attribute(attach_attr_path, buff, strlen(buff)); in usbip_vhci_attach_device2()
347 char buff[200]; /* what size should be ? */ in usbip_vhci_detach_device() local
351 snprintf(buff, sizeof(buff), "%u", port); in usbip_vhci_detach_device()
352 dbg("writing: %s", buff); in usbip_vhci_detach_device()
359 ret = write_sysfs_attribute(detach_attr_path, buff, strlen(buff)); in usbip_vhci_detach_device()
Dusbip_common.h132 void usbip_names_get_product(char *buff, size_t size, uint16_t vendor,
134 void usbip_names_get_class(char *buff, size_t size, uint8_t class,
/tools/usb/usbip/src/
Dusbip_network.c107 static ssize_t usbip_net_xmit(int sockfd, void *buff, size_t bufflen, in usbip_net_xmit() argument
118 nbytes = send(sockfd, buff, bufflen, 0); in usbip_net_xmit()
120 nbytes = recv(sockfd, buff, bufflen, MSG_WAITALL); in usbip_net_xmit()
125 buff = (void *)((intptr_t) buff + nbytes); in usbip_net_xmit()
134 ssize_t usbip_net_recv(int sockfd, void *buff, size_t bufflen) in usbip_net_recv() argument
136 return usbip_net_xmit(sockfd, buff, bufflen, 0); in usbip_net_recv()
139 ssize_t usbip_net_send(int sockfd, void *buff, size_t bufflen) in usbip_net_send() argument
141 return usbip_net_xmit(sockfd, buff, bufflen, 1); in usbip_net_send()
Dusbip_attach.c51 char buff[MAX_BUFF+1]; in record_connection() local
75 snprintf(buff, MAX_BUFF, "%s %s %s\n", in record_connection()
78 ret = write(fd, buff, strlen(buff)); in record_connection()
79 if (ret != (ssize_t) strlen(buff)) { in record_connection()
Dusbip_network.h175 ssize_t usbip_net_recv(int sockfd, void *buff, size_t bufflen);
176 ssize_t usbip_net_send(int sockfd, void *buff, size_t bufflen);
/tools/net/
Dbpf_jit_disasm.c93 char *buff = malloc(len); in get_klog_buff() local
95 assert(buff && klen); in get_klog_buff()
96 ret = klogctl(3, buff, len); in get_klog_buff()
100 return buff; in get_klog_buff()
103 static void put_klog_buff(char *buff) in put_klog_buff() argument
105 free(buff); in put_klog_buff()
/tools/testing/selftests/mqueue/
Dmq_perf_tests.c319 char buff[MSG_SIZE]; in cont_thread() local
328 while (mq_send(queue, buff, sizeof(buff), 0) == 0) in cont_thread()
330 mq_receive(queue, buff, sizeof(buff), &priority); in cont_thread()
335 while (mq_receive(queue, buff, MSG_SIZE, &prio_in) == MSG_SIZE)
339 if (mq_send(queue, buff, MSG_SIZE, prio_out)) \
346 if (mq_send(queue, buff, MSG_SIZE, prio_out)) \
349 if (mq_receive(queue, buff, MSG_SIZE, &prio_in) != MSG_SIZE) \
421 char buff[MSG_SIZE]; in perf_test_thread() local