Lines Matching refs:pVar
67 diva_man_var_header_t *pVar);
69 diva_man_var_header_t *pVar);
75 diva_man_var_header_t *pVar);
78 diva_man_var_header_t *pVar);
81 diva_man_var_header_t *pVar);
83 diva_man_var_header_t *pVar);
84 static diva_man_var_header_t *get_next_var(diva_man_var_header_t *pVar);
85 static diva_man_var_header_t *find_var(diva_man_var_header_t *pVar,
87 static int diva_strace_read_int(diva_man_var_header_t *pVar, int *var);
88 static int diva_strace_read_uint(diva_man_var_header_t *pVar, dword *var);
89 static int diva_strace_read_asz(diva_man_var_header_t *pVar, char *var);
90 static int diva_strace_read_asc(diva_man_var_header_t *pVar, char *var);
91 static int diva_strace_read_ie(diva_man_var_header_t *pVar,
99 static int diva_trace_read_variable(diva_man_var_header_t *pVar,
856 diva_man_var_header_t *pVar) { in process_idi_event() argument
857 const char *path = (char *)&pVar->path_length + 1; in process_idi_event()
861 if (!strncmp("State\\B Event", path, pVar->path_length)) { in process_idi_event()
863 if (!diva_trace_read_variable(pVar, &ch_id)) { in process_idi_event()
877 if (!strncmp("State\\FAX Event", path, pVar->path_length)) { in process_idi_event()
879 if (!diva_trace_read_variable(pVar, &ch_id)) { in process_idi_event()
893 if (!strncmp("State\\Modem Event", path, pVar->path_length)) { in process_idi_event()
895 if (!diva_trace_read_variable(pVar, &ch_id)) { in process_idi_event()
914 if (find_var(pVar, name)) { in process_idi_event()
924 if (find_var(pVar, name)) { in process_idi_event()
934 if (find_var(pVar, name)) { in process_idi_event()
942 if (!strncmp("Events Down", path, pVar->path_length)) { in process_idi_event()
951 if (!strncmp("State\\Layer1", path, pVar->path_length)) { in process_idi_event()
952 diva_strace_read_asz(pVar, &pLib->lines[0].pInterface->Layer1[0]); in process_idi_event()
960 if (!strncmp("State\\Layer2 No1", path, pVar->path_length)) { in process_idi_event()
963 if (diva_strace_read_uint(pVar, &l2_state)) in process_idi_event()
1020 if (!strncmp("Statistics\\Incoming Calls\\Calls", path, pVar->path_length) || in process_idi_event()
1021 !strncmp("Statistics\\Incoming Calls\\Connected", path, pVar->path_length)) { in process_idi_event()
1025 if (!strncmp("Statistics\\Outgoing Calls\\Calls", path, pVar->path_length) || in process_idi_event()
1026 !strncmp("Statistics\\Outgoing Calls\\Connected", path, pVar->path_length)) { in process_idi_event()
1054 diva_man_var_header_t *pVar) { in process_idi_info() argument
1055 const char *path = (char *)&pVar->path_length + 1; in process_idi_info()
1065 return (diva_modem_info(pLib, i, pVar)); in process_idi_info()
1075 return (diva_fax_info(pLib, i, pVar)); in process_idi_info()
1085 return (diva_line_info(pLib, i, pVar)); in process_idi_info()
1089 if (!diva_ifc_statistics(pLib, pVar)) { in process_idi_info()
1105 diva_man_var_header_t *pVar) { in diva_modem_info() argument
1111 if ((cur = find_var(pVar, pLib->parse_table[i].path))) { in diva_modem_info()
1138 diva_man_var_header_t *pVar) { in diva_fax_info() argument
1144 if ((cur = find_var(pVar, pLib->parse_table[i].path))) { in diva_fax_info()
1176 diva_man_var_header_t *pVar) { in diva_line_info() argument
1182 if ((cur = find_var(pVar, pLib->parse_table[i].path))) { in diva_line_info()
1216 static diva_man_var_header_t *get_next_var(diva_man_var_header_t *pVar) { in get_next_var() argument
1217 byte *msg = (byte *)pVar; in get_next_var()
1235 static diva_man_var_header_t *find_var(diva_man_var_header_t *pVar, in find_var() argument
1240 path = (char *)&pVar->path_length + 1; in find_var()
1242 if (!strncmp(name, path, pVar->path_length)) { in find_var()
1245 } while ((pVar = get_next_var(pVar))); in find_var()
1247 return (pVar); in find_var()
1881 static int diva_trace_read_variable(diva_man_var_header_t *pVar, in diva_trace_read_variable() argument
1883 switch (pVar->type) { in diva_trace_read_variable()
1885 return (diva_strace_read_asz(pVar, (char *)variable)); in diva_trace_read_variable()
1887 return (diva_strace_read_asc(pVar, (char *)variable)); in diva_trace_read_variable()
1889 return (diva_strace_read_ie(pVar, (diva_trace_ie_t *)variable)); in diva_trace_read_variable()
1891 return (diva_strace_read_int(pVar, (int *)variable)); in diva_trace_read_variable()
1893 return (diva_strace_read_uint(pVar, (dword *)variable)); in diva_trace_read_variable()
1895 return (diva_strace_read_uint(pVar, (dword *)variable)); in diva_trace_read_variable()
1897 return (diva_strace_read_uint(pVar, (dword *)variable)); in diva_trace_read_variable()
1911 static int diva_strace_read_int(diva_man_var_header_t *pVar, int *var) { in diva_strace_read_int() argument
1912 byte *ptr = (char *)&pVar->path_length; in diva_strace_read_int()
1915 ptr += (pVar->path_length + 1); in diva_strace_read_int()
1917 switch (pVar->value_length) { in diva_strace_read_int()
1939 static int diva_strace_read_uint(diva_man_var_header_t *pVar, dword *var) { in diva_strace_read_uint() argument
1940 byte *ptr = (char *)&pVar->path_length; in diva_strace_read_uint()
1943 ptr += (pVar->path_length + 1); in diva_strace_read_uint()
1945 switch (pVar->value_length) { in diva_strace_read_uint()
1975 static int diva_strace_read_asz(diva_man_var_header_t *pVar, char *var) { in diva_strace_read_asz() argument
1976 char *ptr = (char *)&pVar->path_length; in diva_strace_read_asz()
1979 ptr += (pVar->path_length + 1); in diva_strace_read_asz()
1981 if (!(length = pVar->value_length)) { in diva_strace_read_asz()
1993 static int diva_strace_read_asc(diva_man_var_header_t *pVar, char *var) { in diva_strace_read_asc() argument
1994 char *ptr = (char *)&pVar->path_length; in diva_strace_read_asc()
1996 ptr += (pVar->path_length + 1); in diva_strace_read_asc()
2007 static int diva_strace_read_ie(diva_man_var_header_t *pVar, in diva_strace_read_ie() argument
2009 char *ptr = (char *)&pVar->path_length; in diva_strace_read_ie()
2011 ptr += (pVar->path_length + 1); in diva_strace_read_ie()
2104 diva_man_var_header_t *pVar) { in diva_ifc_statistics() argument
2109 if ((cur = find_var(pVar, pLib->parse_table[i].path))) { in diva_ifc_statistics()