Lines Matching refs:wrapper
291 struct wrapper_msg *wrapper = container_of(ref, struct wrapper_msg, ref_count); in free_wrapper() local
293 list_del(&wrapper->list); in free_wrapper()
294 kfree(wrapper); in free_wrapper()
359 struct wrapper_msg *wrapper; in encode_passthrough() local
363 wrapper = list_first_entry(&wrappers->list, struct wrapper_msg, list); in encode_passthrough()
364 msg = &wrapper->msg; in encode_passthrough()
565 struct wrapper_msg *wrapper; in encode_dma() local
573 wrapper = list_first_entry(&wrappers->list, struct wrapper_msg, list); in encode_dma()
574 msg = &wrapper->msg; in encode_dma()
635 struct wrapper_msg *wrapper; in encode_activate() local
644 wrapper = list_first_entry(&wrappers->list, struct wrapper_msg, list); in encode_activate()
645 msg = &wrapper->msg; in encode_activate()
724 struct wrapper_msg *wrapper; in encode_status() local
728 wrapper = list_first_entry(&wrappers->list, struct wrapper_msg, list); in encode_status()
729 msg = &wrapper->msg; in encode_status()
756 struct wrapper_msg *wrapper; in encode_message() local
768 wrapper = list_first_entry(&wrappers->list, struct wrapper_msg, list); in encode_message()
769 msg = &wrapper->msg; in encode_message()
1130 struct wrapper_msg *wrapper; in abort_dma_cont() local
1134 wrapper = list_first_entry(&wrappers->list, struct wrapper_msg, list); in abort_dma_cont()
1135 msg = &wrapper->msg; in abort_dma_cont()
1138 list_for_each_entry_safe(wrapper, w, &wrappers->list, list) in abort_dma_cont()
1139 if (!list_is_first(&wrapper->list, &wrappers->list)) in abort_dma_cont()
1140 kref_put(&wrapper->ref_count, free_wrapper); in abort_dma_cont()
1142 wrapper = add_wrapper(wrappers, sizeof(*wrapper)); in abort_dma_cont()
1144 if (!wrapper) in abort_dma_cont()
1147 out_trans = (struct wire_trans_dma_xfer *)&wrapper->trans; in abort_dma_cont()
1156 wrapper->len = size; in abort_dma_cont()
1179 struct wrapper_msg *wrapper; in qaic_manage_msg_xfer() local
1189 wrapper = add_wrapper(wrappers, sizeof(*wrapper)); in qaic_manage_msg_xfer()
1190 if (!wrapper) { in qaic_manage_msg_xfer()
1195 msg = &wrapper->msg; in qaic_manage_msg_xfer()
1196 wrapper->len = sizeof(*msg); in qaic_manage_msg_xfer()
1231 list_for_each_entry_safe(wrapper, w, &wrappers->list, list) in qaic_manage_msg_xfer()
1232 kref_put(&wrapper->ref_count, free_wrapper); in qaic_manage_msg_xfer()
1425 static void free_wrapper_from_list(struct wrapper_list *wrappers, struct wrapper_msg *wrapper) in free_wrapper_from_list() argument
1430 kref_put(&wrapper->ref_count, free_wrapper); in free_wrapper_from_list()
1441 struct wrapper_msg *wrapper = container_of(msg, struct wrapper_msg, msg); in qaic_mhi_ul_xfer_cb() local
1443 free_wrapper_from_list(wrapper->head, wrapper); in qaic_mhi_ul_xfer_cb()
1502 struct wrapper_msg *wrapper; in qaic_release_usr() local
1510 wrapper = add_wrapper(wrappers, sizeof(*wrapper) + sizeof(*msg) + sizeof(*trans)); in qaic_release_usr()
1511 if (!wrapper) in qaic_release_usr()
1514 msg = &wrapper->msg; in qaic_release_usr()
1523 wrapper->len = sizeof(msg->hdr) + sizeof(*trans); in qaic_release_usr()
1526 msg->hdr.len = cpu_to_le32(wrapper->len); in qaic_release_usr()
1543 free_wrapper_from_list(wrappers, wrapper); in qaic_release_usr()