Lines Matching refs:head
395 void hmdfs_client_recv_readpage(struct hmdfs_head_cmd *head, int err,
399 int ret = le32_to_cpu(head->ret_code);
409 hmdfs_client_resp_statis(async_work->head.peer->sbi, F_READPAGE,
412 trace_hmdfs_client_recv_readpage(async_work->head.peer,
1053 struct hmdfs_msg_idr_head *head = NULL;
1056 head = idr_get_next(&peer->msg_idr, id);
1057 if (head && head->type < MSG_IDR_MAX && head->type >= 0)
1058 kref_get(&head->ref);
1062 return head;
1070 struct hmdfs_msg_idr_head *head = NULL;
1072 for (id = 0; (head = hmdfs_get_msg_next(conn, &id)) != NULL; ++id) {
1073 switch (head->type) {
1075 head_put(head);
1076 head_put(head);
1080 hmdfs_response_wakeup((struct sendmsg_wait_queue *)head,
1082 hmdfs_debug("wakeup id=%d", head->msg_id);
1083 msg_put((struct sendmsg_wait_queue *)head);
1087 (struct hmdfs_msg_parasite *)head);
1088 hmdfs_debug("wakeup parasite id=%d", head->msg_id);
1089 mp_put((struct hmdfs_msg_parasite *)head);
1094 (struct hmdfs_async_work *)head);
1095 hmdfs_debug("wakeup async work id=%d", head->msg_id);
1096 asw_put((struct hmdfs_async_work *)head);
1099 hmdfs_err("Bad type=%d id=%d", head->type,
1100 head->msg_id);