• Home
  • Raw
  • Download

Lines Matching full:output

25  * struct gth_output - GTH view on an output port
27 * @output: link to output device's output descriptor
28 * @index: output port number
30 * @master: bitmap of masters configured for this output
34 struct intel_th_output *output; member
44 * @output_group: attributes describing output ports
46 * @output: output ports
47 * @master: master/output port assignments
56 struct gth_output output[TH_POSSIBLE_OUTPUTS]; member
181 /* disconnect from the previous output port, if any */ in master_attr_store()
185 clear_bit(ma->master, gth->output[old_port].master); in master_attr_store()
191 if (gth->output[old_port].output->active) in master_attr_store()
195 /* connect to the new output port, if any */ in master_attr_store()
198 if (!gth->output[port].output) { in master_attr_store()
203 set_bit(ma->master, gth->output[port].master); in master_attr_store()
206 if (gth->output[port].output->active) in master_attr_store()
242 OUTPUT_PARM(port, 0x7, 1, 0, output),
243 OUTPUT_PARM(null, BIT(3), 1, 1, output),
244 OUTPUT_PARM(drop, BIT(4), 1, 1, output),
245 OUTPUT_PARM(reset, BIT(5), 1, 0, output),
246 OUTPUT_PARM(flush, BIT(7), 0, 1, output),
291 /* output ports */ in intel_th_gth_reset()
460 * intel_th_gth_disable() - disable tracing to an output device
462 * @output: output device's descriptor
464 * This will deconfigure all masters set to output to this device,
466 * "pipeline empty" bit for corresponding output port.
469 struct intel_th_output *output) in intel_th_gth_disable() argument
477 output->active = false; in intel_th_gth_disable()
479 for_each_set_bit(master, gth->output[output->port].master, in intel_th_gth_disable()
490 count && !(reg & BIT(output->port)); count--) { in intel_th_gth_disable()
500 output->port); in intel_th_gth_disable()
503 reg &= ~output->scratchpad; in intel_th_gth_disable()
517 * intel_th_gth_enable() - enable tracing to an output device
519 * @output: output device's descriptor
521 * This will configure all masters set to output to this device and
525 struct intel_th_output *output) in intel_th_gth_enable() argument
533 for_each_set_bit(master, gth->output[output->port].master, in intel_th_gth_enable()
535 gth_master_set(gth, master, output->port); in intel_th_gth_enable()
538 if (output->multiblock) in intel_th_gth_enable()
541 output->active = true; in intel_th_gth_enable()
548 scrpd |= output->scratchpad; in intel_th_gth_enable()
556 * intel_th_gth_assign() - assign output device to a GTH output port
558 * @othdev: output device
560 * This will match a given output device parameters against present
561 * output ports on the GTH and fill out relevant bits in output device's
579 if (gth->output[i].port_type != othdev->output.type) in intel_th_gth_assign()
592 othdev->output.port = i; in intel_th_gth_assign()
593 othdev->output.active = false; in intel_th_gth_assign()
594 gth->output[i].output = &othdev->output; in intel_th_gth_assign()
601 * intel_th_gth_unassign() - deassociate an output device from its output port
603 * @othdev: output device
609 int port = othdev->output.port; in intel_th_gth_unassign()
616 othdev->output.port = -1; in intel_th_gth_unassign()
617 othdev->output.active = false; in intel_th_gth_unassign()
618 gth->output[port].output = NULL; in intel_th_gth_unassign()
629 int port = 0; /* FIXME: make default output configurable */ in intel_th_gth_set_output()
640 set_bit(master, gth->output[port].master); in intel_th_gth_set_output()
678 * capture configuration attributes. Also, refuse to assign output in intel_th_gth_probe()
698 gth->output[i].gth = gth; in intel_th_gth_probe()
699 gth->output[i].index = i; in intel_th_gth_probe()
700 gth->output[i].port_type = in intel_th_gth_probe()
702 if (gth->output[i].port_type == GTH_NONE) in intel_th_gth_probe()
705 ret = intel_th_output_enable(th, gth->output[i].port_type); in intel_th_gth_probe()