Lines Matching refs:conf

63 static int mbox_deinit(const struct icmsg_config_t *conf,  in mbox_deinit()  argument
68 err = mbox_set_enabled_dt(&conf->mbox_rx, 0); in mbox_deinit()
73 err = mbox_register_callback_dt(&conf->mbox_rx, NULL, NULL); in mbox_deinit()
363 static int mbox_init(const struct icmsg_config_t *conf, in mbox_init() argument
372 err = mbox_register_callback_dt(&conf->mbox_rx, mbox_callback, dev_data); in mbox_init()
377 return mbox_set_enabled_dt(&conf->mbox_rx, 1); in mbox_init()
380 int icmsg_open(const struct icmsg_config_t *conf, in icmsg_open() argument
387 __ASSERT(conf->unbound_mode != ICMSG_UNBOUND_MODE_DISABLE || UNBOUND_DISABLED, in icmsg_open()
389 __ASSERT(conf->unbound_mode != ICMSG_UNBOUND_MODE_ENABLE || UNBOUND_ENABLED, in icmsg_open()
391 __ASSERT(conf->unbound_mode != ICMSG_UNBOUND_MODE_DETECT || UNBOUND_DETECT, in icmsg_open()
394 if (conf->unbound_mode == ICMSG_UNBOUND_MODE_DISABLE || in icmsg_open()
404 old_state = atomic_set(&dev_data->state, conf->unbound_mode); in icmsg_open()
409 dev_data->cfg = conf; in icmsg_open()
422 if (conf->unbound_mode != ICMSG_UNBOUND_MODE_DISABLE && in icmsg_open()
445 ret = mbox_init(conf, dev_data); in icmsg_open()
456 ret = mbox_send_dt(&conf->mbox_tx, NULL); in icmsg_open()
470 int icmsg_close(const struct icmsg_config_t *conf, in icmsg_close() argument
476 if (conf->unbound_mode != ICMSG_UNBOUND_MODE_DISABLE && in icmsg_close()
482 (void)mbox_send_dt(&conf->mbox_tx, NULL); in icmsg_close()
487 ret = mbox_deinit(conf, dev_data); in icmsg_close()
493 int icmsg_send(const struct icmsg_config_t *conf, in icmsg_send() argument
532 __ASSERT_NO_MSG(conf->mbox_tx.dev != NULL); in icmsg_send()
534 ret = mbox_send_dt(&conf->mbox_tx, NULL); in icmsg_send()