Lines Matching refs:user_data

225 		struct mchp_spdifrx_user_data user_data[SPDIFRX_CHANNELS];  member
265 u8 *user_data = &ctrl->user_data[channel].data[0]; in mchp_spdifrx_channel_user_data_read() local
269 for (i = 0; i < ARRAY_SIZE(ctrl->user_data[channel].data) / 4; i++) { in mchp_spdifrx_channel_user_data_read()
271 *user_data++ = val & 0xFF; in mchp_spdifrx_channel_user_data_read()
272 *user_data++ = (val >> 8) & 0xFF; in mchp_spdifrx_channel_user_data_read()
273 *user_data++ = (val >> 16) & 0xFF; in mchp_spdifrx_channel_user_data_read()
274 *user_data++ = (val >> 24) & 0xFF; in mchp_spdifrx_channel_user_data_read()
321 spin_lock(&ctrl->user_data[ch].lock); in mchp_spdif_interrupt()
323 spin_unlock(&ctrl->user_data[ch].lock); in mchp_spdif_interrupt()
325 complete(&ctrl->user_data[ch].done); in mchp_spdif_interrupt()
567 struct mchp_spdifrx_user_data *user_data = &ctrl->user_data[channel]; in mchp_spdifrx_subcode_ch_get() local
570 reinit_completion(&user_data->done); in mchp_spdifrx_subcode_ch_get()
572 ret = wait_for_completion_interruptible_timeout(&user_data->done, in mchp_spdifrx_subcode_ch_get()
581 spin_lock_irqsave(&user_data->lock, flags); in mchp_spdifrx_subcode_ch_get()
582 memcpy(uvalue->value.iec958.subcode, user_data->data, in mchp_spdifrx_subcode_ch_get()
583 sizeof(user_data->data)); in mchp_spdifrx_subcode_ch_get()
584 spin_unlock_irqrestore(&user_data->lock, flags); in mchp_spdifrx_subcode_ch_get()
811 init_completion(&ctrl->user_data[ch].done); in mchp_spdifrx_dai_probe()
812 spin_lock_init(&ctrl->user_data[ch].lock); in mchp_spdifrx_dai_probe()