Lines Matching full:instance

30 	/** @brief Pointer to the function that will be used to open an instance
32 * @param[in] instance Instance pointer.
34 * @retval -EALREADY when the instance is already opened.
40 int (*open_instance)(const struct device *instance);
42 /** @brief Pointer to the function that will be used to close an instance
44 * @param[in] instance Instance pointer.
46 * @retval -EALREADY when the instance is not already inited.
52 int (*close_instance)(const struct device *instance);
56 * @param[in] instance Instance pointer.
61 * @retval -EINVAL when instance is invalid.
62 * @retval -ENOENT when the endpoint is not registered with the instance.
64 * @retval -EBUSY when the instance is busy or not ready.
71 int (*send)(const struct device *instance, void *token,
76 * @param[in] instance Instance to register the endpoint onto.
80 * @retval -EINVAL when the endpoint configuration or instance is invalid.
81 * @retval -EBUSY when the instance is busy or not ready.
87 int (*register_endpoint)(const struct device *instance,
93 * @param[in] instance Instance from which to deregister the endpoint.
96 * @retval -EINVAL when the endpoint configuration or instance is invalid.
97 * @retval -ENOENT when the endpoint is not registered with the instance.
98 * @retval -EBUSY when the instance is busy or not ready.
104 int (*deregister_endpoint)(const struct device *instance, void *token);
108 * @param[in] instance Instance pointer.
111 * @retval -EINVAL when instance is invalid.
112 * @retval -ENOENT when the endpoint is not registered with the instance.
119 int (*get_tx_buffer_size)(const struct device *instance, void *token);
123 * @param[in] instance Instance pointer.
129 * @retval -EINVAL when instance is invalid.
130 * @retval -ENOENT when the endpoint is not registered with the instance.
141 int (*get_tx_buffer)(const struct device *instance, void *token,
146 * @param[in] instance Instance pointer.
150 * @retval -EINVAL when instance is invalid.
151 * @retval -ENOENT when the endpoint is not registered with the instance.
159 int (*drop_tx_buffer)(const struct device *instance, void *token,
166 * @param[in] instance Instance pointer.
171 * @retval -EINVAL when instance is invalid.
172 * @retval -ENOENT when the endpoint is not registered with the instance.
175 * @retval -EBUSY when the instance is busy or not ready.
181 int (*send_nocopy)(const struct device *instance, void *token,
186 * @param[in] instance Instance pointer.
190 * @retval -EINVAL when instance is invalid.
191 * @retval -ENOENT when the endpoint is not registered with the instance.
199 int (*hold_rx_buffer)(const struct device *instance, void *token,
204 * @param[in] instance Instance pointer.
208 * @retval -EINVAL when instance is invalid.
209 * @retval -ENOENT when the endpoint is not registered with the instance.
217 int (*release_rx_buffer)(const struct device *instance, void *token,