Lines Matching refs:p
637 union cx23888_ir_fifo_rec *p; in cx23888_ir_rx_read() local
652 for (p = (union cx23888_ir_fifo_rec *) buf, i = 0; i < n; p++, i++) { in cx23888_ir_rx_read()
654 if ((p->hw_fifo_data & FIFO_RXTX_RTO) == FIFO_RXTX_RTO) { in cx23888_ir_rx_read()
659 u = (p->hw_fifo_data & FIFO_RXTX_LVL) ? 1 : 0; in cx23888_ir_rx_read()
666 (u16)(p->hw_fifo_data & FIFO_RXTX), divider) / 1000; in cx23888_ir_rx_read()
670 p->ir_core_data = (struct ir_raw_event) in cx23888_ir_rx_read()
682 struct v4l2_subdev_ir_parameters *p) in cx23888_ir_rx_g_parameters() argument
686 memcpy(p, &state->rx_params, sizeof(struct v4l2_subdev_ir_parameters)); in cx23888_ir_rx_g_parameters()
713 struct v4l2_subdev_ir_parameters *p) in cx23888_ir_rx_s_parameters() argument
720 if (p->shutdown) in cx23888_ir_rx_s_parameters()
723 if (p->mode != V4L2_SUBDEV_IR_MODE_PULSE_WIDTH) in cx23888_ir_rx_s_parameters()
728 o->shutdown = p->shutdown; in cx23888_ir_rx_s_parameters()
730 o->mode = p->mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH; in cx23888_ir_rx_s_parameters()
732 o->bytes_per_data_element = p->bytes_per_data_element in cx23888_ir_rx_s_parameters()
739 control_rx_demodulation_enable(dev, p->modulation); in cx23888_ir_rx_s_parameters()
740 o->modulation = p->modulation; in cx23888_ir_rx_s_parameters()
742 if (p->modulation) { in cx23888_ir_rx_s_parameters()
743 p->carrier_freq = rxclk_rx_s_carrier(dev, p->carrier_freq, in cx23888_ir_rx_s_parameters()
746 o->carrier_freq = p->carrier_freq; in cx23888_ir_rx_s_parameters()
748 o->duty_cycle = p->duty_cycle = 50; in cx23888_ir_rx_s_parameters()
750 control_rx_s_carrier_window(dev, p->carrier_freq, in cx23888_ir_rx_s_parameters()
751 &p->carrier_range_lower, in cx23888_ir_rx_s_parameters()
752 &p->carrier_range_upper); in cx23888_ir_rx_s_parameters()
753 o->carrier_range_lower = p->carrier_range_lower; in cx23888_ir_rx_s_parameters()
754 o->carrier_range_upper = p->carrier_range_upper; in cx23888_ir_rx_s_parameters()
756 p->max_pulse_width = in cx23888_ir_rx_s_parameters()
759 p->max_pulse_width = in cx23888_ir_rx_s_parameters()
760 rxclk_rx_s_max_pulse_width(dev, p->max_pulse_width, in cx23888_ir_rx_s_parameters()
763 o->max_pulse_width = p->max_pulse_width; in cx23888_ir_rx_s_parameters()
766 p->noise_filter_min_width = in cx23888_ir_rx_s_parameters()
767 filter_rx_s_min_width(dev, p->noise_filter_min_width); in cx23888_ir_rx_s_parameters()
768 o->noise_filter_min_width = p->noise_filter_min_width; in cx23888_ir_rx_s_parameters()
770 p->resolution = clock_divider_to_resolution(rxclk_divider); in cx23888_ir_rx_s_parameters()
771 o->resolution = p->resolution; in cx23888_ir_rx_s_parameters()
778 o->invert_level = p->invert_level; in cx23888_ir_rx_s_parameters()
779 atomic_set(&state->rx_invert, p->invert_level); in cx23888_ir_rx_s_parameters()
781 o->interrupt_enable = p->interrupt_enable; in cx23888_ir_rx_s_parameters()
782 o->enable = p->enable; in cx23888_ir_rx_s_parameters()
783 if (p->enable) { in cx23888_ir_rx_s_parameters()
790 if (p->interrupt_enable) in cx23888_ir_rx_s_parameters()
792 control_rx_enable(dev, p->enable); in cx23888_ir_rx_s_parameters()
812 struct v4l2_subdev_ir_parameters *p) in cx23888_ir_tx_g_parameters() argument
816 memcpy(p, &state->tx_params, sizeof(struct v4l2_subdev_ir_parameters)); in cx23888_ir_tx_g_parameters()
841 struct v4l2_subdev_ir_parameters *p) in cx23888_ir_tx_s_parameters() argument
848 if (p->shutdown) in cx23888_ir_tx_s_parameters()
851 if (p->mode != V4L2_SUBDEV_IR_MODE_PULSE_WIDTH) in cx23888_ir_tx_s_parameters()
856 o->shutdown = p->shutdown; in cx23888_ir_tx_s_parameters()
858 o->mode = p->mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH; in cx23888_ir_tx_s_parameters()
860 o->bytes_per_data_element = p->bytes_per_data_element in cx23888_ir_tx_s_parameters()
867 control_tx_modulation_enable(dev, p->modulation); in cx23888_ir_tx_s_parameters()
868 o->modulation = p->modulation; in cx23888_ir_tx_s_parameters()
870 if (p->modulation) { in cx23888_ir_tx_s_parameters()
871 p->carrier_freq = txclk_tx_s_carrier(dev, p->carrier_freq, in cx23888_ir_tx_s_parameters()
873 o->carrier_freq = p->carrier_freq; in cx23888_ir_tx_s_parameters()
875 p->duty_cycle = cduty_tx_s_duty_cycle(dev, p->duty_cycle); in cx23888_ir_tx_s_parameters()
876 o->duty_cycle = p->duty_cycle; in cx23888_ir_tx_s_parameters()
878 p->max_pulse_width = in cx23888_ir_tx_s_parameters()
881 p->max_pulse_width = in cx23888_ir_tx_s_parameters()
882 txclk_tx_s_max_pulse_width(dev, p->max_pulse_width, in cx23888_ir_tx_s_parameters()
885 o->max_pulse_width = p->max_pulse_width; in cx23888_ir_tx_s_parameters()
888 p->resolution = clock_divider_to_resolution(txclk_divider); in cx23888_ir_tx_s_parameters()
889 o->resolution = p->resolution; in cx23888_ir_tx_s_parameters()
894 control_tx_polarity_invert(dev, p->invert_carrier_sense); in cx23888_ir_tx_s_parameters()
895 o->invert_carrier_sense = p->invert_carrier_sense; in cx23888_ir_tx_s_parameters()
897 control_tx_level_invert(dev, p->invert_level); in cx23888_ir_tx_s_parameters()
898 o->invert_level = p->invert_level; in cx23888_ir_tx_s_parameters()
900 o->interrupt_enable = p->interrupt_enable; in cx23888_ir_tx_s_parameters()
901 o->enable = p->enable; in cx23888_ir_tx_s_parameters()
902 if (p->enable) { in cx23888_ir_tx_s_parameters()
903 if (p->interrupt_enable) in cx23888_ir_tx_s_parameters()
905 control_tx_enable(dev, p->enable); in cx23888_ir_tx_s_parameters()