Lines Matching refs:sv
943 static QemudClient* qemud_service_connect_client( QemudService *sv,
989 QemudService *sv = qemud_service_find(current_services, service_name); in qemud_serial_client_load() local
990 if (sv == NULL) { in qemud_serial_client_load()
1005 QemudClient* c = qemud_service_connect_client(sv, channel, param); in qemud_serial_client_load()
1152 qemud_service_connect_client(QemudService *sv, in qemud_service_connect_client() argument
1157 sv->serv_connect( sv->serv_opaque, sv, channel_id, client_param ); in qemud_service_connect_client()
1160 __FUNCTION__, sv->name); in qemud_service_connect_client()
1164 __FUNCTION__, channel_id, sv->name); in qemud_service_connect_client()
1173 QemudService* sv = NULL; in qemud_service_find() local
1174 for (sv = service_list; sv != NULL; sv = sv->next) { in qemud_service_find()
1175 if (!strcmp(sv->name, service_name)) { in qemud_service_find()
1179 return sv; in qemud_service_find()
1247 QemudService *sv = qemud_service_find(current_services, service_name); in qemud_service_load() local
1248 if (sv == NULL) { in qemud_service_load()
1255 sv->max_clients = qemu_get_be32(f); in qemud_service_load()
1256 sv->num_clients = qemu_get_be32(f); in qemud_service_load()
1260 if (sv->serv_load) in qemud_service_load()
1261 if ((ret = sv->serv_load(f, sv, sv->serv_opaque))) in qemud_service_load()
1332 QemudService* sv = qemud_service_find(m->services, service_name); in qemud_multiplexer_connect() local
1333 if (sv == NULL) { in qemud_multiplexer_connect()
1339 if (sv->max_clients > 0 && sv->num_clients >= sv->max_clients) { in qemud_multiplexer_connect()
1341 __FUNCTION__, service_name, sv->num_clients); in qemud_multiplexer_connect()
1346 if (qemud_service_connect_client(sv, channel_id, NULL) == NULL) in qemud_multiplexer_connect()
1901 QemudService* sv = m->services; in _qemudPipe_init() local
1933 while (sv != NULL && strcmp(sv->name, service_name)) { in _qemudPipe_init()
1934 sv = sv->next; in _qemudPipe_init()
1936 if (sv == NULL) { in _qemudPipe_init()
1943 client = qemud_service_connect_client(sv, -1, client_args); in _qemudPipe_init()
1948 pipe->service = sv; in _qemudPipe_init()
2137 QemudService *sv = qemud_service_find(_multiplexer->services, service_name); in _qemudPipe_load() local
2138 if (sv == NULL) { in _qemudPipe_load()
2148 QemudClient* c = qemud_service_connect_client(sv, -1, param); in _qemudPipe_load()
2201 qemud_pipe->service = sv; in _qemudPipe_load()
2306 QemudService* sv; in qemud_service_register() local
2311 sv = qemud_service_new(service_name, in qemud_service_register()
2319 return sv; in qemud_service_register()
2325 qemud_service_broadcast( QemudService* sv, in qemud_service_broadcast() argument
2331 for (c = sv->clients; c; c = c->next_serv) in qemud_service_broadcast()
2414 QemudService* sv = opaque; in _qemud_char_service_read() local
2415 qemud_service_broadcast( sv, from, len ); in _qemud_char_service_read()
2424 QemudService* sv, in _qemud_char_service_connect() argument
2429 QemudClient* c = qemud_client_new( sv, channel, client_param, in _qemud_char_service_connect()
2440 sv ); in _qemud_char_service_connect()