Lines Matching defs:function
103 dev_err(dev, "failed to resume for function status: %d\n", ret);
107 reg = SDW_SDCA_CTL(interrupt->function->desc->adr, interrupt->entity->id,
112 dev_err(dev, "failed to read function status: %d\n", ret);
116 dev_dbg(dev, "function status: %#x\n", val);
135 dev_err(dev, "function fault\n");
141 dev_info(dev, "unexpected function busy\n");
153 dev_err(dev, "failed to clear function status: %d\n", ret);
296 * @handler: A callback thread function to be called for the IRQ.
357 * @function: Pointer to the SDCA Function.
366 struct sdca_function_data *function,
389 interrupt->function = function;
419 * @function: Pointer to the SDCA Function.
429 struct sdca_function_data *function,
436 for (i = 0; i < function->num_entities; i++) {
437 struct sdca_entity *entity = &function->entities[i];
454 function, entity,
485 * @function: Pointer to the SDCA Function.
493 int sdca_irq_populate(struct sdca_function_data *function,
502 for (i = 0; i < function->num_entities; i++) {
503 struct sdca_entity *entity = &function->entities[i];
519 function, entity, control,
568 * @function: Pointer to the SDCA Function.
574 struct sdca_function_data *function,
584 if (interrupt->function != function || !interrupt->irq)
639 static void irq_enable_flags(struct sdca_function_data *function,
647 if (!interrupt->irq || interrupt->function != function)
665 * sdca_irq_enable_early - Re-enable early SDCA IRQs for a given function
666 * @function: Pointer to the SDCA Function.
673 void sdca_irq_enable_early(struct sdca_function_data *function,
676 irq_enable_flags(function, info, true);
681 * sdca_irq_enable - Re-enable SDCA IRQs for a given function
682 * @function: Pointer to the SDCA Function.
685 void sdca_irq_enable(struct sdca_function_data *function,
688 irq_enable_flags(function, info, false);
693 * sdca_irq_disable - Disable SDCA IRQs for a given function
694 * @function: Pointer to the SDCA Function.
697 void sdca_irq_disable(struct sdca_function_data *function,
705 if (!interrupt->irq || interrupt->function != function)