Searched refs:usb_node (Results 1 - 25 of 30) sorted by relevance

12

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/libdisk/
H A Dusb_info.h74 extern char *get_device_type_by_node(const char *usb_node, char *buf, const int buf_size);
81 extern char *get_path_by_node(const char *usb_node, char *buf, const int buf_size);
83 extern unsigned int get_usb_vid(const char *usb_node);
84 extern unsigned int get_usb_pid(const char *usb_node);
85 extern char *get_usb_manufacturer(const char *usb_node, char *buf, const int buf_size);
86 extern char *get_usb_product(const char *usb_node, char *buf, const int buf_size);
87 extern char *get_usb_serial(const char *usb_node, char *buf, const int buf_size);
88 extern char *get_usb_speed(const char *usb_node, char *buf, const int buf_size);
89 extern int get_usb_interface_number(const char *usb_node);
122 extern int hadPrinterInterface(const char *usb_node);
[all...]
H A Dusb_info.c123 char *get_device_type_by_node(const char *usb_node, char *buf, const int buf_size) argument
136 interface_num = get_usb_interface_number(usb_node);
142 sprintf(interface_name, "%s:1.%d", usb_node, interface_count);
580 char *get_path_by_node(const char *usb_node, char *buf, const int buf_size){ argument
584 if(usb_node == NULL || buf == NULL || buf_size <= 0)
588 if(get_usb_port_by_string(usb_node, usb_port, sizeof(usb_port)) == NULL)
595 if(strlen(usb_node) > (len = strlen(usb_port))){
596 hub_path = (char *)usb_node+len;
605 static FILE *open_usb_target(const char *usb_node, const char *target, const int wait) argument
611 if(usb_node
623 get_usb_vid(const char *usb_node) argument
638 get_usb_pid(const char *usb_node) argument
653 get_usb_manufacturer(const char *usb_node, char *buf, const int buf_size) argument
670 get_usb_product(const char *usb_node, char *buf, const int buf_size) argument
687 get_usb_serial(const char *usb_node, char *buf, const int buf_size) argument
704 get_usb_speed(const char *usb_node, char *buf, const int buf_size) argument
721 get_usb_interface_number(const char *usb_node) argument
1149 char usb_node[32], port_path[8]; local
1203 hadPrinterInterface(const char *usb_node) argument
[all...]
H A Dtest_disk2.c410 char *get_path_by_node(const char *usb_node, char *buf, const int buf_size){ argument
414 if(usb_node == NULL || buf == NULL || buf_size <= 0)
418 if(get_usb_port_by_string(usb_node, usb_port, sizeof(usb_port)) == NULL)
425 if(strlen(usb_node) > (len = strlen(usb_port))){
426 hub_path = (char *)usb_node+len;
619 char usb_node[32], port_path[8]; local
669 if(get_usb_node_by_device(device_name, usb_node, 32) == NULL){
675 if(get_path_by_node(usb_node, port_path, 8) == NULL){
676 usb_dbg("(%s): Fail to get usb path.\n", usb_node);
682 if(get_usb_port_by_string(usb_node, bu
[all...]
H A Ddisk_initial.c135 char usb_node[32], port_path[8]; local
185 if(get_usb_node_by_device(device_name, usb_node, 32) == NULL){
191 if(get_path_by_node(usb_node, port_path, 8) == NULL){
192 usb_dbg("(%s): Fail to get usb path.\n", usb_node);
198 if(get_usb_port_by_string(usb_node, buf, 64) == NULL){
199 usb_dbg("Fail to get usb port: %s.\n", usb_node);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/libdisk/
H A Dusb_info.h74 extern char *get_device_type_by_node(const char *usb_node, char *buf, const int buf_size);
81 extern char *get_path_by_node(const char *usb_node, char *buf, const int buf_size);
83 extern unsigned int get_usb_vid(const char *usb_node);
84 extern unsigned int get_usb_pid(const char *usb_node);
85 extern char *get_usb_manufacturer(const char *usb_node, char *buf, const int buf_size);
86 extern char *get_usb_product(const char *usb_node, char *buf, const int buf_size);
87 extern char *get_usb_serial(const char *usb_node, char *buf, const int buf_size);
88 extern char *get_usb_speed(const char *usb_node, char *buf, const int buf_size);
89 extern int get_usb_interface_number(const char *usb_node);
122 extern int hadPrinterInterface(const char *usb_node);
[all...]
H A Dusb_info.c123 char *get_device_type_by_node(const char *usb_node, char *buf, const int buf_size) argument
136 interface_num = get_usb_interface_number(usb_node);
142 sprintf(interface_name, "%s:1.%d", usb_node, interface_count);
580 char *get_path_by_node(const char *usb_node, char *buf, const int buf_size){ argument
584 if(usb_node == NULL || buf == NULL || buf_size <= 0)
588 if(get_usb_port_by_string(usb_node, usb_port, sizeof(usb_port)) == NULL)
595 if(strlen(usb_node) > (len = strlen(usb_port))){
596 hub_path = (char *)usb_node+len;
605 static FILE *open_usb_target(const char *usb_node, const char *target, const int wait) argument
611 if(usb_node
623 get_usb_vid(const char *usb_node) argument
638 get_usb_pid(const char *usb_node) argument
653 get_usb_manufacturer(const char *usb_node, char *buf, const int buf_size) argument
670 get_usb_product(const char *usb_node, char *buf, const int buf_size) argument
687 get_usb_serial(const char *usb_node, char *buf, const int buf_size) argument
704 get_usb_speed(const char *usb_node, char *buf, const int buf_size) argument
721 get_usb_interface_number(const char *usb_node) argument
1149 char usb_node[32], port_path[8]; local
1203 hadPrinterInterface(const char *usb_node) argument
[all...]
H A Dtest_disk2.c410 char *get_path_by_node(const char *usb_node, char *buf, const int buf_size){ argument
414 if(usb_node == NULL || buf == NULL || buf_size <= 0)
418 if(get_usb_port_by_string(usb_node, usb_port, sizeof(usb_port)) == NULL)
425 if(strlen(usb_node) > (len = strlen(usb_port))){
426 hub_path = (char *)usb_node+len;
619 char usb_node[32], port_path[8]; local
669 if(get_usb_node_by_device(device_name, usb_node, 32) == NULL){
675 if(get_path_by_node(usb_node, port_path, 8) == NULL){
676 usb_dbg("(%s): Fail to get usb path.\n", usb_node);
682 if(get_usb_port_by_string(usb_node, bu
[all...]
H A Ddisk_initial.c135 char usb_node[32], port_path[8]; local
185 if(get_usb_node_by_device(device_name, usb_node, 32) == NULL){
191 if(get_path_by_node(usb_node, port_path, 8) == NULL){
192 usb_dbg("(%s): Fail to get usb path.\n", usb_node);
198 if(get_usb_port_by_string(usb_node, buf, 64) == NULL){
199 usb_dbg("Fail to get usb port: %s.\n", usb_node);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/libdisk/
H A Dusb_info.h74 extern char *get_device_type_by_node(const char *usb_node, char *buf, const int buf_size);
81 extern char *get_path_by_node(const char *usb_node, char *buf, const int buf_size);
83 extern unsigned int get_usb_vid(const char *usb_node);
84 extern unsigned int get_usb_pid(const char *usb_node);
85 extern char *get_usb_manufacturer(const char *usb_node, char *buf, const int buf_size);
86 extern char *get_usb_product(const char *usb_node, char *buf, const int buf_size);
87 extern char *get_usb_serial(const char *usb_node, char *buf, const int buf_size);
88 extern char *get_usb_speed(const char *usb_node, char *buf, const int buf_size);
89 extern int get_usb_interface_number(const char *usb_node);
122 extern int hadPrinterInterface(const char *usb_node);
[all...]
H A Dusb_info.c123 char *get_device_type_by_node(const char *usb_node, char *buf, const int buf_size) argument
136 interface_num = get_usb_interface_number(usb_node);
142 sprintf(interface_name, "%s:1.%d", usb_node, interface_count);
580 char *get_path_by_node(const char *usb_node, char *buf, const int buf_size){ argument
584 if(usb_node == NULL || buf == NULL || buf_size <= 0)
588 if(get_usb_port_by_string(usb_node, usb_port, sizeof(usb_port)) == NULL)
595 if(strlen(usb_node) > (len = strlen(usb_port))){
596 hub_path = (char *)usb_node+len;
605 static FILE *open_usb_target(const char *usb_node, const char *target, const int wait) argument
611 if(usb_node
623 get_usb_vid(const char *usb_node) argument
638 get_usb_pid(const char *usb_node) argument
653 get_usb_manufacturer(const char *usb_node, char *buf, const int buf_size) argument
670 get_usb_product(const char *usb_node, char *buf, const int buf_size) argument
687 get_usb_serial(const char *usb_node, char *buf, const int buf_size) argument
704 get_usb_speed(const char *usb_node, char *buf, const int buf_size) argument
721 get_usb_interface_number(const char *usb_node) argument
1149 char usb_node[32], port_path[8]; local
1203 hadPrinterInterface(const char *usb_node) argument
[all...]
H A Dtest_disk2.c410 char *get_path_by_node(const char *usb_node, char *buf, const int buf_size){ argument
414 if(usb_node == NULL || buf == NULL || buf_size <= 0)
418 if(get_usb_port_by_string(usb_node, usb_port, sizeof(usb_port)) == NULL)
425 if(strlen(usb_node) > (len = strlen(usb_port))){
426 hub_path = (char *)usb_node+len;
619 char usb_node[32], port_path[8]; local
669 if(get_usb_node_by_device(device_name, usb_node, 32) == NULL){
675 if(get_path_by_node(usb_node, port_path, 8) == NULL){
676 usb_dbg("(%s): Fail to get usb path.\n", usb_node);
682 if(get_usb_port_by_string(usb_node, bu
[all...]
H A Ddisk_initial.c135 char usb_node[32], port_path[8]; local
185 if(get_usb_node_by_device(device_name, usb_node, 32) == NULL){
191 if(get_path_by_node(usb_node, port_path, 8) == NULL){
192 usb_dbg("(%s): Fail to get usb path.\n", usb_node);
198 if(get_usb_port_by_string(usb_node, buf, 64) == NULL){
199 usb_dbg("Fail to get usb port: %s.\n", usb_node);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/rc/
H A Dusb_devices.c2312 char usb_node[32]; local
2359 if(get_usb_node_by_device(modem_node, usb_node, 32) == NULL){
2366 if((vid = get_usb_vid(usb_node)) == 0){
2373 if((pid = get_usb_pid(usb_node)) == 0){
2810 int set_usb_common_nvram(const char *action, const char *device_name, const char *usb_node, const char *known_type){ argument
2818 if(get_path_by_node(usb_node, port_path, 8) == NULL){
2819 usb_dbg("(%s): Fail to get usb path.\n", usb_node);
2928 else if(get_device_type_by_node(usb_node, type, 16) != NULL)
2934 if ((val = get_usb_vid(usb_node)) != 0) {
2940 if ((val = get_usb_pid(usb_node)) !
3099 char usb_node[32], usb_port[32]; local
3434 char usb_node[32]; local
3527 char usb_node[32]; local
3655 char usb_node[32]; local
3773 char usb_node[32]; local
4114 char usb_node[32]; local
4215 char usb_node[32], usb_port[32]; local
[all...]
H A Dlan.c2354 char device_path[128], usb_path[PATH_MAX], usb_node[32], port_path[8]; local
2492 if(get_usb_node_by_string(usb_path, usb_node, 32) == NULL){
2497 if(get_path_by_node(usb_node, port_path, 8) == NULL){
2498 _dprintf("hotplug net(%s): skip 3. usb_node %s.\n", interface, usb_node);
2510 if(strcmp(buf, "") && strcmp(buf, usb_node)){
2516 nvram_set("usb_modem_act_path", usb_node); // needed by find_modem_type.sh.
2531 vid = get_usb_vid(usb_node);
2532 pid = get_usb_pid(usb_node);
2604 snprintf(usb_node, 3
[all...]
H A Dwan.c1318 char usb_node[32], port_path[8]; local
1489 snprintf(usb_node, 32, "%s", nvram_safe_get("usb_modem_act_path"));
1490 if(strlen(usb_node) <= 0)
1493 if(get_path_by_node(usb_node, port_path, 8) != NULL){
1584 snprintf(usb_node, 32, "%s", nvram_safe_get("usb_modem_act_path"));
1585 if(strlen(usb_node) <= 0)
1588 if(get_path_by_node(usb_node, port_path, 8) == NULL)
H A Dusb.c1301 char usb_node[32], port_path[8]; local
1307 if(get_usb_node_by_device(ptr, usb_node, 32) != NULL){
1308 if(get_path_by_node(usb_node, port_path, 8) != NULL){
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/rc/
H A Dusb_devices.c2312 char usb_node[32]; local
2359 if(get_usb_node_by_device(modem_node, usb_node, 32) == NULL){
2366 if((vid = get_usb_vid(usb_node)) == 0){
2373 if((pid = get_usb_pid(usb_node)) == 0){
2810 int set_usb_common_nvram(const char *action, const char *device_name, const char *usb_node, const char *known_type){ argument
2818 if(get_path_by_node(usb_node, port_path, 8) == NULL){
2819 usb_dbg("(%s): Fail to get usb path.\n", usb_node);
2928 else if(get_device_type_by_node(usb_node, type, 16) != NULL)
2934 if ((val = get_usb_vid(usb_node)) != 0) {
2940 if ((val = get_usb_pid(usb_node)) !
3099 char usb_node[32], usb_port[32]; local
3434 char usb_node[32]; local
3527 char usb_node[32]; local
3655 char usb_node[32]; local
3773 char usb_node[32]; local
4114 char usb_node[32]; local
4215 char usb_node[32], usb_port[32]; local
[all...]
H A Dlan.c2354 char device_path[128], usb_path[PATH_MAX], usb_node[32], port_path[8]; local
2492 if(get_usb_node_by_string(usb_path, usb_node, 32) == NULL){
2497 if(get_path_by_node(usb_node, port_path, 8) == NULL){
2498 _dprintf("hotplug net(%s): skip 3. usb_node %s.\n", interface, usb_node);
2510 if(strcmp(buf, "") && strcmp(buf, usb_node)){
2516 nvram_set("usb_modem_act_path", usb_node); // needed by find_modem_type.sh.
2531 vid = get_usb_vid(usb_node);
2532 pid = get_usb_pid(usb_node);
2604 snprintf(usb_node, 3
[all...]
H A Dwan.c1318 char usb_node[32], port_path[8]; local
1489 snprintf(usb_node, 32, "%s", nvram_safe_get("usb_modem_act_path"));
1490 if(strlen(usb_node) <= 0)
1493 if(get_path_by_node(usb_node, port_path, 8) != NULL){
1584 snprintf(usb_node, 32, "%s", nvram_safe_get("usb_modem_act_path"));
1585 if(strlen(usb_node) <= 0)
1588 if(get_path_by_node(usb_node, port_path, 8) == NULL)
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/rc/
H A Dusb_devices.c2312 char usb_node[32]; local
2359 if(get_usb_node_by_device(modem_node, usb_node, 32) == NULL){
2366 if((vid = get_usb_vid(usb_node)) == 0){
2373 if((pid = get_usb_pid(usb_node)) == 0){
2810 int set_usb_common_nvram(const char *action, const char *device_name, const char *usb_node, const char *known_type){ argument
2818 if(get_path_by_node(usb_node, port_path, 8) == NULL){
2819 usb_dbg("(%s): Fail to get usb path.\n", usb_node);
2928 else if(get_device_type_by_node(usb_node, type, 16) != NULL)
2934 if ((val = get_usb_vid(usb_node)) != 0) {
2940 if ((val = get_usb_pid(usb_node)) !
3099 char usb_node[32], usb_port[32]; local
3434 char usb_node[32]; local
3527 char usb_node[32]; local
3655 char usb_node[32]; local
3773 char usb_node[32]; local
4114 char usb_node[32]; local
4215 char usb_node[32], usb_port[32]; local
[all...]
H A Dlan.c2354 char device_path[128], usb_path[PATH_MAX], usb_node[32], port_path[8]; local
2492 if(get_usb_node_by_string(usb_path, usb_node, 32) == NULL){
2497 if(get_path_by_node(usb_node, port_path, 8) == NULL){
2498 _dprintf("hotplug net(%s): skip 3. usb_node %s.\n", interface, usb_node);
2510 if(strcmp(buf, "") && strcmp(buf, usb_node)){
2516 nvram_set("usb_modem_act_path", usb_node); // needed by find_modem_type.sh.
2531 vid = get_usb_vid(usb_node);
2532 pid = get_usb_pid(usb_node);
2604 snprintf(usb_node, 3
[all...]
H A Dwan.c1318 char usb_node[32], port_path[8]; local
1489 snprintf(usb_node, 32, "%s", nvram_safe_get("usb_modem_act_path"));
1490 if(strlen(usb_node) <= 0)
1493 if(get_path_by_node(usb_node, port_path, 8) != NULL){
1584 snprintf(usb_node, 32, "%s", nvram_safe_get("usb_modem_act_path"));
1585 if(strlen(usb_node) <= 0)
1588 if(get_path_by_node(usb_node, port_path, 8) == NULL)
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/shared/
H A Dshared.h1103 static inline int is_usb3_port(char *usb_node) argument
1105 if (!usb_node)
1108 if (strstr(usb_node, get_usb_xhci_port(0)) || strstr(usb_node, get_usb_xhci_port(1)))
1117 if (strstr(usb_node, get_usb_ehci_port(0)))
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/shared/
H A Dshared.h1103 static inline int is_usb3_port(char *usb_node) argument
1105 if (!usb_node)
1108 if (strstr(usb_node, get_usb_xhci_port(0)) || strstr(usb_node, get_usb_xhci_port(1)))
1117 if (strstr(usb_node, get_usb_ehci_port(0)))
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/shared/
H A Dshared.h1103 static inline int is_usb3_port(char *usb_node) argument
1105 if (!usb_node)
1108 if (strstr(usb_node, get_usb_xhci_port(0)) || strstr(usb_node, get_usb_xhci_port(1)))
1117 if (strstr(usb_node, get_usb_ehci_port(0)))

Completed in 162 milliseconds

12