Home
last modified time | relevance | path

Searched refs:chdr (Results 1 – 2 of 2) sorted by relevance

/drivers/media/usb/gspca/
Dkinect.c141 struct cam_hdr *chdr = (void *)obuf; in send_cmd() local
144 if (cmd_len & 1 || cmd_len > (0x400 - sizeof(*chdr))) { in send_cmd()
149 chdr->magic[0] = 0x47; in send_cmd()
150 chdr->magic[1] = 0x4d; in send_cmd()
151 chdr->cmd = cpu_to_le16(cmd); in send_cmd()
152 chdr->tag = cpu_to_le16(sd->cam_tag); in send_cmd()
153 chdr->len = cpu_to_le16(cmd_len / 2); in send_cmd()
155 memcpy(obuf+sizeof(*chdr), cmdbuf, cmd_len); in send_cmd()
157 res = kinect_write(udev, obuf, cmd_len + sizeof(*chdr)); in send_cmd()
181 if (rhdr->cmd != chdr->cmd) { in send_cmd()
[all …]
/drivers/net/wireless/ath/ath6kl/
Dwmi.h341 static inline u8 wmi_cmd_hdr_get_if_idx(struct wmi_cmd_hdr *chdr) in wmi_cmd_hdr_get_if_idx() argument
343 return le16_to_cpu(chdr->info1) & WMI_CMD_HDR_IF_ID_MASK; in wmi_cmd_hdr_get_if_idx()