Lines Matching refs:techpoint
398 int tp9930_initialize(struct techpoint *techpoint) in tp9930_initialize() argument
401 struct i2c_client *client = techpoint->client; in tp9930_initialize()
404 techpoint->video_modes_num = ARRAY_SIZE(supported_modes); in tp9930_initialize()
406 sizeof(struct techpoint_video_modes) * techpoint->video_modes_num; in tp9930_initialize()
407 techpoint->video_modes = devm_kzalloc(dev, array_size, GFP_KERNEL); in tp9930_initialize()
408 memcpy(techpoint->video_modes, supported_modes, array_size); in tp9930_initialize()
410 techpoint->cur_video_mode = &techpoint->video_modes[0]; in tp9930_initialize()
485 int tp9930_get_channel_input_status(struct techpoint *techpoint, u8 ch) in tp9930_get_channel_input_status() argument
487 struct i2c_client *client = techpoint->client; in tp9930_get_channel_input_status()
490 mutex_lock(&techpoint->mutex); in tp9930_get_channel_input_status()
493 mutex_unlock(&techpoint->mutex); in tp9930_get_channel_input_status()
500 int tp9930_get_all_input_status(struct techpoint *techpoint, u8 *detect_status) in tp9930_get_all_input_status() argument
502 struct i2c_client *client = techpoint->client; in tp9930_get_all_input_status()
508 detect_status[i] = tp9930_get_channel_input_status(techpoint, i); in tp9930_get_all_input_status()