Lines Matching defs:hackrf_dev
93 struct hackrf_dev { struct
108 unsigned long flags;
110 struct usb_interface *intf;
111 struct device *dev;
112 struct usb_device *udev;
113 struct video_device rx_vdev;
114 struct video_device tx_vdev;
115 struct v4l2_device v4l2_dev;
118 struct vb2_queue rx_vb2_queue;
119 struct vb2_queue tx_vb2_queue;
120 struct list_head rx_buffer_list;
121 struct list_head tx_buffer_list;
122 spinlock_t buffer_list_lock; /* Protects buffer_list */
123 unsigned int sequence; /* Buffer sequence counter */
124 unsigned int vb_full; /* vb is full and packets dropped */
125 unsigned int vb_empty; /* vb is empty and packets dropped */
128 struct mutex v4l2_lock; /* Protects everything else */
129 struct mutex vb_queue_lock; /* Protects vb_queue */
131 struct urb *urb_list[MAX_BULK_BUFS];
132 int buf_num;
133 unsigned long buf_size;
134 u8 *buf_list[MAX_BULK_BUFS];
135 dma_addr_t dma_addr[MAX_BULK_BUFS];
136 int urbs_initialized;
137 int urbs_submitted;
141 u8 buf[BUF_SIZE];
144 unsigned int f_adc;
145 unsigned int f_dac;
146 unsigned int f_rx;
147 unsigned int f_tx;
148 u32 pixelformat;
149 u32 buffersize;
152 struct v4l2_ctrl_handler rx_ctrl_handler;
153 struct v4l2_ctrl *rx_bandwidth_auto;
154 struct v4l2_ctrl *rx_bandwidth;
155 struct v4l2_ctrl *rx_rf_gain;
156 struct v4l2_ctrl *rx_lna_gain;
157 struct v4l2_ctrl *rx_if_gain;
158 struct v4l2_ctrl_handler tx_ctrl_handler;
182 static int hackrf_ctrl_msg(struct hackrf_dev *dev, u8 request, u16 value, in hackrf_ctrl_msg() argument