Lines Matching refs:cmd_mux
155 xSemaphoreHandle cmd_mux; /*!< semaphore to lock command process */ member
304 p_i2c->cmd_mux = xSemaphoreCreateMutex(); in i2c_driver_install()
326 if (p_i2c->cmd_mux == NULL || p_i2c->cmd_evt_queue == NULL) { in i2c_driver_install()
373 if (p_i2c_obj[i2c_num]->cmd_mux) { in i2c_driver_install()
374 vSemaphoreDelete(p_i2c_obj[i2c_num]->cmd_mux); in i2c_driver_install()
410 if (p_i2c->cmd_mux) { in i2c_driver_delete()
412 xSemaphoreTake(p_i2c->cmd_mux, portMAX_DELAY); in i2c_driver_delete()
413 xSemaphoreGive(p_i2c->cmd_mux); in i2c_driver_delete()
414 vSemaphoreDelete(p_i2c->cmd_mux); in i2c_driver_delete()
1416 portBASE_TYPE res = xSemaphoreTake(p_i2c->cmd_mux, ticks_to_wait); in i2c_master_cmd_begin()
1501 xSemaphoreGive(p_i2c->cmd_mux); in i2c_master_cmd_begin()