Lines Matching refs:techpoint
188 int tp2855_initialize(struct techpoint *techpoint) in tp2855_initialize() argument
191 struct i2c_client *client = techpoint->client; in tp2855_initialize()
194 techpoint->video_modes_num = ARRAY_SIZE(supported_modes); in tp2855_initialize()
196 sizeof(struct techpoint_video_modes) * techpoint->video_modes_num; in tp2855_initialize()
197 techpoint->video_modes = devm_kzalloc(dev, array_size, GFP_KERNEL); in tp2855_initialize()
198 memcpy(techpoint->video_modes, supported_modes, array_size); in tp2855_initialize()
200 techpoint->cur_video_mode = &techpoint->video_modes[0]; in tp2855_initialize()
205 int tp2855_get_channel_input_status(struct techpoint *techpoint, u8 ch) in tp2855_get_channel_input_status() argument
207 struct i2c_client *client = techpoint->client; in tp2855_get_channel_input_status()
210 mutex_lock(&techpoint->mutex); in tp2855_get_channel_input_status()
213 mutex_unlock(&techpoint->mutex); in tp2855_get_channel_input_status()
219 int tp2855_get_all_input_status(struct techpoint *techpoint, u8 *detect_status) in tp2855_get_all_input_status() argument
221 struct i2c_client *client = techpoint->client; in tp2855_get_all_input_status()
227 detect_status[i] = tp2855_get_channel_input_status(techpoint, i); in tp2855_get_all_input_status()
583 int tp2855_set_quick_stream(struct techpoint *techpoint, u32 stream) in tp2855_set_quick_stream() argument
585 struct i2c_client *client = techpoint->client; in tp2855_set_quick_stream()
587 mutex_lock(&techpoint->mutex); in tp2855_set_quick_stream()
596 mutex_unlock(&techpoint->mutex); in tp2855_set_quick_stream()