Lines Matching refs:chdr
128 struct cam_hdr *chdr = (void *)obuf; in send_cmd() local
131 if (cmd_len & 1 || cmd_len > (0x400 - sizeof(*chdr))) { in send_cmd()
136 chdr->magic[0] = 0x47; in send_cmd()
137 chdr->magic[1] = 0x4d; in send_cmd()
138 chdr->cmd = cpu_to_le16(cmd); in send_cmd()
139 chdr->tag = cpu_to_le16(sd->cam_tag); in send_cmd()
140 chdr->len = cpu_to_le16(cmd_len / 2); in send_cmd()
142 memcpy(obuf+sizeof(*chdr), cmdbuf, cmd_len); in send_cmd()
144 res = kinect_write(udev, obuf, cmd_len + sizeof(*chdr)); 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()