Lines Matching refs:desc
102 struct mic_device_desc desc[0]; member
174 static inline unsigned mic_desc_size(const struct mic_device_desc *desc) in mic_desc_size() argument
176 return sizeof(*desc) + desc->num_vq * sizeof(struct mic_vqconfig) in mic_desc_size()
177 + desc->feature_len * 2 + desc->config_len; in mic_desc_size()
181 mic_vq_config(const struct mic_device_desc *desc) in mic_vq_config() argument
183 return (struct mic_vqconfig *)(desc + 1); in mic_vq_config()
186 static inline __u8 *mic_vq_features(const struct mic_device_desc *desc) in mic_vq_features() argument
188 return (__u8 *)(mic_vq_config(desc) + desc->num_vq); in mic_vq_features()
191 static inline __u8 *mic_vq_configspace(const struct mic_device_desc *desc) in mic_vq_configspace() argument
193 return mic_vq_features(desc) + desc->feature_len * 2; in mic_vq_configspace()
195 static inline unsigned mic_total_desc_size(struct mic_device_desc *desc) in mic_total_desc_size() argument
197 return mic_aligned_desc_size(desc) + sizeof(struct mic_device_ctrl); in mic_total_desc_size()