Lines Matching refs:rhdr
129 struct cam_hdr *rhdr = (void *)ibuf; in send_cmd() local
157 if (actual_len < (int)sizeof(*rhdr)) { in send_cmd()
162 actual_len -= sizeof(*rhdr); in send_cmd()
164 if (rhdr->magic[0] != 0x52 || rhdr->magic[1] != 0x42) { in send_cmd()
166 rhdr->magic[0], rhdr->magic[1]); in send_cmd()
169 if (rhdr->cmd != chdr->cmd) { in send_cmd()
171 rhdr->cmd, chdr->cmd); in send_cmd()
174 if (rhdr->tag != chdr->tag) { in send_cmd()
176 rhdr->tag, chdr->tag); in send_cmd()
179 if (le16_to_cpu(rhdr->len) != (actual_len/2)) { in send_cmd()
181 le16_to_cpu(rhdr->len), (int)(actual_len/2)); in send_cmd()
188 memcpy(replybuf, ibuf+sizeof(*rhdr), reply_len); in send_cmd()
190 memcpy(replybuf, ibuf+sizeof(*rhdr), actual_len); in send_cmd()