Lines Matching refs:service_data
99 static unsigned long service_data[2]; in service1_entry() local
103 service_data[0] = REGISTER_SERVICE1; in service1_entry()
104 service_data[1] = (unsigned long)&service1_msgq; in service1_entry()
108 ret = k_msgq_put(&manager_q, service_data, K_NO_WAIT); in service1_entry()
113 k_msgq_get(&service1_msgq, service_data, K_FOREVER); in service1_entry()
114 if (service_data[0] == GET_SERVICE) { in service1_entry()
115 client = (struct k_msgq *)service_data[1]; in service1_entry()
116 service_data[0] = SERVICE1_RUNNING; in service1_entry()
117 k_msgq_put(client, service_data, K_NO_WAIT); in service1_entry()
123 service_data[0] = SERVICE_QUIT; in service1_entry()
124 service_data[1] = (unsigned long)&service1_msgq; in service1_entry()
125 k_msgq_put(&manager_q, service_data, K_NO_WAIT); in service1_entry()
130 static unsigned long service_data[2]; in service2_entry() local
134 service_data[0] = REGISTER_SERVICE2; in service2_entry()
135 service_data[1] = (unsigned long)&service2_msgq; in service2_entry()
139 ret = k_msgq_put(&manager_q, service_data, K_NO_WAIT); in service2_entry()
144 k_msgq_get(&service2_msgq, service_data, K_FOREVER); in service2_entry()
145 if (service_data[0] == GET_SERVICE) { in service2_entry()
146 client = (struct k_msgq *)service_data[1]; in service2_entry()
147 service_data[0] = SERVICE2_RUNNING; in service2_entry()
148 k_msgq_put(client, service_data, K_NO_WAIT); in service2_entry()
154 service_data[0] = SERVICE_QUIT; in service2_entry()
155 service_data[1] = (unsigned long)&service2_msgq; in service2_entry()
156 k_msgq_put(&manager_q, service_data, K_NO_WAIT); in service2_entry()
178 static unsigned long service_data[2]; in client_entry() local
196 ret = k_msgq_get(&client_msgq, service_data, K_FOREVER); in client_entry()
199 service1q = (struct k_msgq *)service_data[0]; in client_entry()
200 service2q = (struct k_msgq *)service_data[1]; in client_entry()
213 k_msgq_get(&client_msgq, service_data, K_FOREVER); in client_entry()
214 service1q = (struct k_msgq *)service_data[0]; in client_entry()
215 service2q = (struct k_msgq *)service_data[1]; in client_entry()
228 ret = k_msgq_get(&client_msgq, service_data, TIMEOUT); in client_entry()
230 zassert_equal(service_data[0], in client_entry()
240 ret = k_msgq_get(&client_msgq, service_data, TIMEOUT); in client_entry()
242 zassert_equal(service_data[0], in client_entry()