Lines Matching refs:rhdr
132 struct cam_hdr *rhdr = (void *)ibuf; in send_cmd() local
159 if (actual_len < sizeof(*rhdr)) { in send_cmd()
163 actual_len -= sizeof(*rhdr); in send_cmd()
165 if (rhdr->magic[0] != 0x52 || rhdr->magic[1] != 0x42) { in send_cmd()
167 rhdr->magic[0], rhdr->magic[1]); in send_cmd()
170 if (rhdr->cmd != chdr->cmd) { in send_cmd()
172 rhdr->cmd, chdr->cmd); in send_cmd()
175 if (rhdr->tag != chdr->tag) { in send_cmd()
177 rhdr->tag, chdr->tag); in send_cmd()
180 if (cpu_to_le16(rhdr->len) != (actual_len/2)) { in send_cmd()
182 cpu_to_le16(rhdr->len), (int)(actual_len/2)); in send_cmd()
189 memcpy(replybuf, ibuf+sizeof(*rhdr), reply_len); in send_cmd()
191 memcpy(replybuf, ibuf+sizeof(*rhdr), actual_len); in send_cmd()