• Home
  • Raw
  • Download

Lines Matching full:instance

47   sys_mutex_lock(&call_data->threadsync_node->instance->sem_usage_mutex);  in call_synced_function()
48 call_data->threadsync_node->instance->sync_fn(fn, call_data); in call_synced_function()
49 sys_sem_wait(&call_data->threadsync_node->instance->sem); in call_synced_function()
50 sys_mutex_unlock(&call_data->threadsync_node->instance->sem_usage_mutex); in call_synced_function()
64 sys_sem_signal(&call_data->threadsync_node->instance->sem); in threadsync_get_value_synced()
68 threadsync_get_value(struct snmp_node_instance *instance, void *value) in threadsync_get_value() argument
70 struct threadsync_data *call_data = (struct threadsync_data *)instance->reference.ptr; in threadsync_get_value()
89 sys_sem_signal(&call_data->threadsync_node->instance->sem); in threadsync_set_test_synced()
93 threadsync_set_test(struct snmp_node_instance *instance, u16_t len, void *value) in threadsync_set_test() argument
95 struct threadsync_data *call_data = (struct threadsync_data *)instance->reference.ptr; in threadsync_set_test()
115 sys_sem_signal(&call_data->threadsync_node->instance->sem); in threadsync_set_value_synced()
119 threadsync_set_value(struct snmp_node_instance *instance, u16_t len, void *value) in threadsync_set_value() argument
121 struct threadsync_data *call_data = (struct threadsync_data *)instance->reference.ptr; in threadsync_set_value()
137 sys_sem_signal(&call_data->threadsync_node->instance->sem); in threadsync_release_instance_synced()
141 threadsync_release_instance(struct snmp_node_instance *instance) in threadsync_release_instance() argument
143 struct threadsync_data *call_data = (struct threadsync_data *)instance->reference.ptr; in threadsync_release_instance()
158 sys_sem_signal(&call_data->threadsync_node->instance->sem); in get_instance_synced()
169 sys_sem_signal(&call_data->threadsync_node->instance->sem); in get_next_instance_synced()
173 do_sync(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance *instance, snmp_threads… in do_sync() argument
175 …readsync_node *threadsync_node = (const struct snmp_threadsync_node *)(const void *)instance->node; in do_sync()
176 struct threadsync_data *call_data = &threadsync_node->instance->data; in do_sync()
185 instance->reference.ptr = call_data; in do_sync()
186 …snmp_oid_assign(&call_data->proxy_instance.instance_oid, instance->instance_oid.id, instance->inst… in do_sync()
196 instance->access = call_data->proxy_instance.access; in do_sync()
197 instance->asn1_type = call_data->proxy_instance.asn1_type; in do_sync()
198 instance->release_instance = threadsync_release_instance; in do_sync()
199instance->get_value = (call_data->proxy_instance.get_value != NULL) ? threadsync_get_value … in do_sync()
200instance->set_value = (call_data->proxy_instance.set_value != NULL) ? threadsync_set_value … in do_sync()
201instance->set_test = (call_data->proxy_instance.set_test != NULL) ? threadsync_set_test … in do_sync()
202 …snmp_oid_assign(&instance->instance_oid, call_data->proxy_instance.instance_oid.id, call_data->pro… in do_sync()
209 …eadsync_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance *instance) in snmp_threadsync_get_instance() argument
211 return do_sync(root_oid, root_oid_len, instance, get_instance_synced); in snmp_threadsync_get_instance()
215 …nc_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance *instance) in snmp_threadsync_get_next_instance() argument
217 return do_sync(root_oid, root_oid_len, instance, get_next_instance_synced); in snmp_threadsync_get_next_instance()
220 /** Initializes thread synchronization instance */
221 void snmp_threadsync_init(struct snmp_threadsync_instance *instance, snmp_threadsync_synchronizer_f… in snmp_threadsync_init() argument
223 err_t err = sys_mutex_new(&instance->sem_usage_mutex); in snmp_threadsync_init()
225 err = sys_sem_new(&instance->sem, 0); in snmp_threadsync_init()
228 instance->sync_fn = sync_fn; in snmp_threadsync_init()