Lines Matching full:cb

107  * @cb: temp struct to hold the callback info
109 * Fill the passed in cb struct with what's available in the passed in
115 struct dmaengine_desc_callback *cb) in dmaengine_desc_get_callback() argument
117 cb->callback = tx->callback; in dmaengine_desc_get_callback()
118 cb->callback_result = tx->callback_result; in dmaengine_desc_get_callback()
119 cb->callback_param = tx->callback_param; in dmaengine_desc_get_callback()
123 * dmaengine_desc_callback_invoke - call the callback function in cb struct
124 * @cb: temp struct that is holding the callback info
127 * Call the callback function provided in the cb struct with the parameter
128 * in the cb struct.
132 dmaengine_desc_callback_invoke(struct dmaengine_desc_callback *cb, in dmaengine_desc_callback_invoke() argument
140 if (cb->callback_result) { in dmaengine_desc_callback_invoke()
143 cb->callback_result(cb->callback_param, result); in dmaengine_desc_callback_invoke()
144 } else if (cb->callback) { in dmaengine_desc_callback_invoke()
145 cb->callback(cb->callback_param); in dmaengine_desc_callback_invoke()
163 struct dmaengine_desc_callback cb; in dmaengine_desc_get_callback_invoke() local
165 dmaengine_desc_get_callback(tx, &cb); in dmaengine_desc_get_callback_invoke()
166 dmaengine_desc_callback_invoke(&cb, result); in dmaengine_desc_get_callback_invoke()
170 * dmaengine_desc_callback_valid - verify the callback is valid in cb
171 * @cb: callback info struct
173 * Return a bool that verifies whether callback in cb is valid or not.
177 dmaengine_desc_callback_valid(struct dmaengine_desc_callback *cb) in dmaengine_desc_callback_valid() argument
179 return cb->callback || cb->callback_result; in dmaengine_desc_callback_valid()