Lines Matching refs:desc
104 struct mic_device_desc desc[0]; member
176 static inline unsigned mic_desc_size(const struct mic_device_desc *desc) in mic_desc_size() argument
178 return sizeof(*desc) + desc->num_vq * sizeof(struct mic_vqconfig) in mic_desc_size()
179 + desc->feature_len * 2 + desc->config_len; in mic_desc_size()
183 mic_vq_config(const struct mic_device_desc *desc) in mic_vq_config() argument
185 return (struct mic_vqconfig *)(desc + 1); in mic_vq_config()
188 static inline __u8 *mic_vq_features(const struct mic_device_desc *desc) in mic_vq_features() argument
190 return (__u8 *)(mic_vq_config(desc) + desc->num_vq); in mic_vq_features()
193 static inline __u8 *mic_vq_configspace(const struct mic_device_desc *desc) in mic_vq_configspace() argument
195 return mic_vq_features(desc) + desc->feature_len * 2; in mic_vq_configspace()
197 static inline unsigned mic_total_desc_size(struct mic_device_desc *desc) in mic_total_desc_size() argument
199 return mic_aligned_desc_size(desc) + sizeof(struct mic_device_ctrl); in mic_total_desc_size()