Lines Matching defs:hackrf_dev
102 struct hackrf_dev { struct
117 unsigned long flags;
119 struct usb_interface *intf;
120 struct device *dev;
121 struct usb_device *udev;
122 struct video_device rx_vdev;
123 struct video_device tx_vdev;
124 struct v4l2_device v4l2_dev;
127 struct vb2_queue rx_vb2_queue;
128 struct vb2_queue tx_vb2_queue;
129 struct list_head rx_buffer_list;
130 struct list_head tx_buffer_list;
131 spinlock_t buffer_list_lock; /* Protects buffer_list */
132 unsigned int sequence; /* Buffer sequence counter */
133 unsigned int vb_full; /* vb is full and packets dropped */
134 unsigned int vb_empty; /* vb is empty and packets dropped */
137 struct mutex v4l2_lock; /* Protects everything else */
138 struct mutex vb_queue_lock; /* Protects vb_queue */
140 struct urb *urb_list[MAX_BULK_BUFS];
141 int buf_num;
142 unsigned long buf_size;
143 u8 *buf_list[MAX_BULK_BUFS];
144 dma_addr_t dma_addr[MAX_BULK_BUFS];
145 int urbs_initialized;
146 int urbs_submitted;
150 u8 buf[BUF_SIZE];
153 unsigned int f_adc;
154 unsigned int f_dac;
155 unsigned int f_rx;
156 unsigned int f_tx;
157 u32 pixelformat;
158 u32 buffersize;
161 struct v4l2_ctrl_handler rx_ctrl_handler;
162 struct v4l2_ctrl *rx_bandwidth_auto;
163 struct v4l2_ctrl *rx_bandwidth;
164 struct v4l2_ctrl *rx_rf_gain;
165 struct v4l2_ctrl *rx_lna_gain;
166 struct v4l2_ctrl *rx_if_gain;
167 struct v4l2_ctrl_handler tx_ctrl_handler;
191 static int hackrf_ctrl_msg(struct hackrf_dev *dev, u8 request, u16 value, in hackrf_ctrl_msg() argument