Home
last modified time | relevance | path

Searched refs:fps (Results 1 – 25 of 71) sorted by relevance

123

/drivers/gpu/drm/sti/
Dsti_plane.c47 struct sti_fps_info *fps; in sti_plane_update_fps() local
53 fps = &plane->fps_info; in sti_plane_update_fps()
56 fps->curr_field_counter++; in sti_plane_update_fps()
62 fps->curr_frame_counter++; in sti_plane_update_fps()
63 ms_since_last = ktime_to_ms(ktime_sub(now, fps->last_timestamp)); in sti_plane_update_fps()
64 num_frames = fps->curr_frame_counter - fps->last_frame_counter; in sti_plane_update_fps()
69 fps->last_timestamp = now; in sti_plane_update_fps()
70 fps->last_frame_counter = fps->curr_frame_counter; in sti_plane_update_fps()
84 if (fps->curr_field_counter) { in sti_plane_update_fps()
86 num_fields = fps->curr_field_counter - fps->last_field_counter; in sti_plane_update_fps()
[all …]
/drivers/acpi/
Dfan.c70 struct acpi_fan_fps *fps; member
130 if (fan->fif.fine_grain_ctrl && control < fan->fps[i].control) { in fan_get_state_acpi4()
133 } else if (control == fan->fps[i].control) { in fan_get_state_acpi4()
195 fan->fps[state].control); in fan_set_state_acpi4()
275 struct acpi_fan_fps *fps = container_of(attr, struct acpi_fan_fps, dev_attr); in show_state() local
278 if (fps->control == 0xFFFFFFFF || fps->control > 100) in show_state()
281 count = scnprintf(buf, PAGE_SIZE, "%lld:", fps->control); in show_state()
283 if (fps->trip_point == 0xFFFFFFFF || fps->trip_point > 9) in show_state()
286 count += scnprintf(&buf[count], PAGE_SIZE - count, "%lld:", fps->trip_point); in show_state()
288 if (fps->speed == 0xFFFFFFFF) in show_state()
[all …]
/drivers/staging/media/atomisp/i2c/ov5693/
Dov5693.h197 int fps; member
1109 .fps = 30,
1123 .fps = 30,
1137 .fps = 30,
1151 .fps = 30,
1175 .fps = 30,
1189 .fps = 30,
1203 .fps = 30,
1217 .fps = 30,
1231 .fps = 30,
[all …]
/drivers/staging/media/atomisp/pci/
Datomisp_v4l2.c134 .fps = ISP_FREQ_RULE_ANY,
141 .fps = ISP_FREQ_RULE_ANY,
148 .fps = ISP_FREQ_RULE_ANY,
155 .fps = ISP_FREQ_RULE_ANY,
162 .fps = ISP_FREQ_RULE_ANY,
181 .fps = ISP_FREQ_RULE_ANY,
188 .fps = ISP_FREQ_RULE_ANY,
195 .fps = ISP_FREQ_RULE_ANY,
202 .fps = ISP_FREQ_RULE_ANY,
209 .fps = ISP_FREQ_RULE_ANY,
[all …]
Datomisp_dfs_tables.h26 unsigned short fps; member
/drivers/mfd/
Dmax77620.c602 int fps; in max77620_i2c_suspend() local
605 for (fps = 0; fps < MAX77620_FPS_COUNT; fps++) { in max77620_i2c_suspend()
606 if (chip->suspend_fps_period[fps] < 0) in max77620_i2c_suspend()
609 ret = max77620_set_fps_period(chip, fps, in max77620_i2c_suspend()
610 chip->suspend_fps_period[fps]); in max77620_i2c_suspend()
653 int fps; in max77620_i2c_resume() local
655 for (fps = 0; fps < MAX77620_FPS_COUNT; fps++) { in max77620_i2c_resume()
656 if (chip->shutdown_fps_period[fps] < 0) in max77620_i2c_resume()
659 ret = max77620_set_fps_period(chip, fps, in max77620_i2c_resume()
660 chip->shutdown_fps_period[fps]); in max77620_i2c_resume()
/drivers/staging/media/atomisp/i2c/
Dgc2235.h135 int fps; member
540 .fps = 30,
556 .fps = 30,
571 .fps = 30,
597 .fps = 30,
612 .fps = 30,
627 .fps = 30,
648 .fps = 30,
663 .fps = 30,
Dov2722.h178 int fps; member
1112 .fps = 30,
1128 .fps = 30,
1145 .fps = 30,
1170 .fps = 30,
1186 .fps = 30,
1203 .fps = 30,
1223 .fps = 30,
1239 .fps = 30,
1255 .fps = 30,
Dov2680.h149 int fps; member
792 .fps = 30,
806 .fps = 30,
Dgc0310.h124 int fps; member
386 .fps = 30,
/drivers/media/usb/pwc/
Dpwc-ctrl.c144 int fps, ret = 0; in set_video_mode_Nala() local
175 fps = frames2table[frames]; in set_video_mode_Nala()
176 pEntry = &Nala_table[size][fps]; in set_video_mode_Nala()
220 int fps, ret = 0; in set_video_mode_Timon() local
230 fps = (frames / 5) - 1; in set_video_mode_Timon()
234 pChoose = &Timon_table[size][fps][*compression]; in set_video_mode_Timon()
254 pdev->vframes = (fps + 1) * 5; in set_video_mode_Timon()
271 int fps, ret = 0; in set_video_mode_Kiara() local
281 fps = (frames / 5) - 1; in set_video_mode_Kiara()
285 pChoose = &Kiara_table[size][fps][*compression]; in set_video_mode_Kiara()
[all …]
/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2-enc.c146 solo_enc->bw_weight = max(solo_dev->fps / solo_enc->interval, 1); in solo_update_mode()
195 u16 fps = solo_dev->fps * 1000; in solo_update_mode() local
201 vop[22] = fps >> 4; in solo_update_mode()
202 vop[23] = ((fps << 4) & 0xf0) | 0x0c in solo_update_mode()
1005 fintv->stepwise.min.denominator = solo_dev->fps; in solo_enum_frameintervals()
1008 fintv->stepwise.max.denominator = solo_dev->fps; in solo_enum_frameintervals()
1011 fintv->stepwise.step.denominator = solo_dev->fps; in solo_enum_frameintervals()
1024 cp->timeperframe.denominator = solo_enc->solo_dev->fps; in solo_g_parm()
1032 static inline int calc_interval(u8 fps, u32 n, u32 d) in calc_interval() argument
1036 if (d == fps) in calc_interval()
[all …]
/drivers/media/i2c/
Dmt9v111.c136 unsigned int fps; member
451 unsigned int fps = tpf->numerator ? in mt9v111_calc_frame_rate() local
469 diff = abs(fps - mt9v111_frame_intervals[i]); in mt9v111_calc_frame_rate()
475 fps = mt9v111_frame_intervals[idx]; in mt9v111_calc_frame_rate()
506 diff = abs(fps - t_fps); in mt9v111_calc_frame_rate()
729 unsigned int fps = tpf->numerator ? in mt9v111_s_frame_interval() local
744 if (mt9v111->fps == fps) { in mt9v111_s_frame_interval()
761 if (fps > max_fps) { in mt9v111_s_frame_interval()
768 mt9v111->fps = fps; in mt9v111_s_frame_interval()
785 tpf->denominator = mt9v111->fps; in mt9v111_g_frame_interval()
[all …]
Dov772x.c429 unsigned int fps; member
604 unsigned int fps = tpf->numerator ? in ov772x_select_fps() local
615 diff = abs(fps - ov772x_frame_intervals[i]); in ov772x_select_fps()
626 unsigned int fps, in ov772x_set_frame_rate() argument
652 pclk = fps * fsize; in ov772x_set_frame_rate()
713 tpf->denominator = priv->fps; in ov772x_g_frame_interval()
723 unsigned int fps; in ov772x_s_frame_interval() local
733 fps = ov772x_select_fps(priv, tpf); in ov772x_s_frame_interval()
741 ret = ov772x_set_frame_rate(priv, fps, priv->cfmt, priv->win); in ov772x_s_frame_interval()
747 tpf->denominator = fps; in ov772x_s_frame_interval()
[all …]
Dmt9m111.c730 unsigned int fps = mt9m111_mode_data[i].max_fps; in mt9m111_find_mode() local
732 if (fps == 30 && skip_30fps) in mt9m111_find_mode()
735 gap = abs(fps - req_fps); in mt9m111_find_mode()
1071 int fps; in mt9m111_s_frame_interval() local
1084 fps = DIV_ROUND_CLOSEST(fract->denominator, fract->numerator); in mt9m111_s_frame_interval()
1087 mode = mt9m111_find_mode(mt9m111, fps, mt9m111->width, mt9m111->height); in mt9m111_s_frame_interval()
1091 if (mode->max_fps != fps) { in mt9m111_s_frame_interval()
/drivers/staging/fbtft/
Dfbtft-core.c235 long fps, throughput; in fbtft_update_display() local
287 fps = ktime_us_delta(ts_start, par->update_time); in fbtft_update_display()
289 fps = fps ? 1000000 / fps : 0; in fbtft_update_display()
297 throughput, fps); in fbtft_update_display()
551 unsigned int fps = display->fps; in fbtft_framebuffer_alloc() local
566 if (!fps) in fbtft_framebuffer_alloc()
567 fps = 20; in fbtft_framebuffer_alloc()
577 if (pdata->fps) in fbtft_framebuffer_alloc()
578 fps = pdata->fps; in fbtft_framebuffer_alloc()
656 fbdefio->delay = HZ / fps; in fbtft_framebuffer_alloc()
[all …]
/drivers/scsi/fcoe/
Dfcoe_transport.c470 struct fcoe_percpu_s *fps) in fcoe_get_paged_crc_eof() argument
474 page = fps->crc_eof_page; in fcoe_get_paged_crc_eof()
480 fps->crc_eof_page = page; in fcoe_get_paged_crc_eof()
481 fps->crc_eof_offset = 0; in fcoe_get_paged_crc_eof()
486 fps->crc_eof_offset, tlen); in fcoe_get_paged_crc_eof()
490 fps->crc_eof_offset += sizeof(struct fcoe_crc_eof); in fcoe_get_paged_crc_eof()
492 if (fps->crc_eof_offset >= PAGE_SIZE) { in fcoe_get_paged_crc_eof()
493 fps->crc_eof_page = NULL; in fcoe_get_paged_crc_eof()
494 fps->crc_eof_offset = 0; in fcoe_get_paged_crc_eof()
/drivers/media/usb/go7007/
Dgo7007-fw.c778 int fps = go->sensor_framerate / go->fps_scale; in mpeg4_sequence_header() local
797 CODE_ADD(c, fps, 16); in mpeg4_sequence_header()
929 int fps = go->sensor_framerate / go->fps_scale; in brctrl_to_package() local
932 u32 sgop_expt_addr = go->bitrate / 32 * (go->ipb ? 3 : 1) * 1001 / fps; in brctrl_to_package()
933 u32 sgop_peak_addr = peak_rate / 32 * 1001 / fps; in brctrl_to_package()
934 u32 total_expt_addr = go->bitrate / 32 * 1000 / fps * (fps / 1000); in brctrl_to_package()
1078 int fps = go->sensor_framerate / go->fps_scale / 1000; in config_package() local
1080 int brc_window_size = fps; in config_package()
1177 0xbfe7, fps << 8, in config_package()
1203 int fps = go->sensor_framerate / go->fps_scale * in seqhead_to_package() local
[all …]
/drivers/media/pci/tw686x/
Dtw686x-video.c375 static unsigned int tw686x_fps_idx(unsigned int fps, unsigned int max_fps) in tw686x_fps_idx() argument
381 idx = (12 + 15 * fps) / max_fps; in tw686x_fps_idx()
389 delta = real_fps - fps; in tw686x_fps_idx()
403 unsigned int fps) in tw686x_set_framerate() argument
407 i = tw686x_fps_idx(fps, TW686X_MAX_FPS(vc->video_standard)); in tw686x_set_framerate()
409 vc->fps = tw686x_real_fps(i, TW686X_MAX_FPS(vc->video_standard)); in tw686x_set_framerate()
832 tw686x_set_framerate(vc, vc->fps); in tw686x_s_std()
950 cp->timeperframe.denominator = vc->fps; in tw686x_g_parm()
961 unsigned int fps; in tw686x_s_parm() local
966 fps = (!numerator || !denominator) ? 0 : denominator / numerator; in tw686x_s_parm()
[all …]
/drivers/media/v4l2-core/
Dv4l2-dv-timings.c302 u32 fps; in v4l2_print_dv_timings() local
312 fps = (htot * vtot) > 0 ? div_u64((100 * (u64)bt->pixelclock), in v4l2_print_dv_timings()
320 fps / 100, fps % 100, htot, vtot); in v4l2_print_dv_timings()
412 u32 htot, vtot, fps; in v4l2_calc_timeperframe() local
426 fps = (htot * vtot) > 0 ? div_u64((100 * pclk), (htot * vtot)) : 0; in v4l2_calc_timeperframe()
427 if (!fps) in v4l2_calc_timeperframe()
430 rational_best_approximation(fps, 100, fps, 100, &n, &d); in v4l2_calc_timeperframe()
/drivers/infiniband/hw/i40iw/
Di40iw_puda.c1052 static void i40iw_ieq_check_first_buf(struct i40iw_puda_buf *buf, u32 fps) in i40iw_ieq_check_first_buf() argument
1056 if (buf->seqnum < fps) { in i40iw_ieq_check_first_buf()
1057 offset = fps - buf->seqnum; in i40iw_ieq_check_first_buf()
1062 buf->seqnum = fps; in i40iw_ieq_check_first_buf()
1380 u32 fps = *(u32 *)(qp->q2_buf + Q2_FPSN_OFFSET); in i40iw_ieq_handle_exception() local
1390 if (pfpdu->mode && (fps != pfpdu->fps)) { in i40iw_ieq_handle_exception()
1401 pfpdu->rcv_nxt = fps; in i40iw_ieq_handle_exception()
1402 pfpdu->fps = fps; in i40iw_ieq_handle_exception()
1408 i40iw_ieq_check_first_buf(buf, fps); in i40iw_ieq_handle_exception()
/drivers/media/usb/hdpvr/
Dhdpvr-video.c294 vidinf.height, vidinf.fps); in hdpvr_start_streaming()
694 interlaced = vid_info.fps <= 30; in vidioc_query_dv_timings()
699 unsigned fps; in vidioc_query_dv_timings() local
703 fps = (unsigned)bt->pixelclock / (hsize * vsize); in vidioc_query_dv_timings()
707 (fps != vid_info.fps && fps + 1 != vid_info.fps)) in vidioc_query_dv_timings()
Dhdpvr-control.c70 vidinf->fps = dev->usbc_buf[4]; in get_video_info()
71 vidinf->valid = vidinf->width && vidinf->height && vidinf->fps; in get_video_info()
/drivers/media/platform/qcom/venus/
Dvenc.c384 u64 us_per_frame, fps; in venc_s_parm() local
405 fps = (u64)USEC_PER_SEC; in venc_s_parm()
406 do_div(fps, us_per_frame); in venc_s_parm()
409 inst->fps = fps; in venc_s_parm()
551 frate.framerate = inst->fps * (1 << 16); in venc_set_properties()
1039 inst->fps = 15; in venc_inst_init()
Dpm_helpers.c142 return mbs * inst->fps; in load_per_instance()
935 u32 fps = (u32)inst->fps; in calculate_inst_freq() local
938 mbs_per_sec = load_per_instance(inst) / fps; in calculate_inst_freq()
949 vsp_freq += ((fps * filled_len * 8) * 10) / 7; in calculate_inst_freq()

123