Home
last modified time | relevance | path

Searched refs:interval (Results 1 – 25 of 206) sorted by relevance

123456789

/drivers/uwb/
Dallocator.c31 for (col = ci->csi.start_col; col < UWB_NUM_ZONES; col += ci->csi.interval) { in uwb_rsv_fill_column_alloc()
137 static int uwb_rsv_find_best_column_set(struct uwb_rsv_alloc_info *ai, int interval, in uwb_rsv_find_best_column_set() argument
149 start_col_deep = interval; in uwb_rsv_find_best_column_set()
152 for (deep = 0; ((interval >> deep) & 0x1) == 0; deep++) { in uwb_rsv_find_best_column_set()
160 for (col = start_col; col < UWB_NUM_ZONES; col += interval) { in uwb_rsv_find_best_column_set()
176 col_start_set += (interval >> deep); in uwb_rsv_find_best_column_set()
192 csi->interval = interval; in uwb_rsv_find_best_column_set()
196 ai->safe_allocated_mases = (UWB_NUM_ZONES / interval) * num_safe_mas; in uwb_rsv_find_best_column_set()
197 ai->unsafe_allocated_mases = (UWB_NUM_ZONES / interval) * num_unsafe_mas; in uwb_rsv_find_best_column_set()
199 ai->interval = interval; in uwb_rsv_find_best_column_set()
[all …]
/drivers/hwmon/
Dlm95245.c121 unsigned long interval; /* in msecs */ member
149 + msecs_to_jiffies(data->interval)) || !data->valid) { in lm95245_update_device()
169 unsigned long interval; in lm95245_read_conversion_rate() local
175 interval = 63; in lm95245_read_conversion_rate()
178 interval = 364; in lm95245_read_conversion_rate()
181 interval = 1000; in lm95245_read_conversion_rate()
185 interval = 2500; in lm95245_read_conversion_rate()
189 return interval; in lm95245_read_conversion_rate()
193 unsigned long interval) in lm95245_set_conversion_rate() argument
197 if (interval <= 63) { in lm95245_set_conversion_rate()
[all …]
/drivers/net/fddi/skfp/
Dhwt.c201 u_long interval ; in hwt_quick_read() local
204 interval = inpd(ADDR(B2_TI_INI)) ; in hwt_quick_read()
209 outpd(ADDR(B2_TI_INI),interval) ; in hwt_quick_read()
230 long interval ; in hwt_wait_time() local
241 interval = inpd(ADDR(B2_TI_INI)) ; in hwt_wait_time()
242 if (interval > duration) { in hwt_wait_time()
246 diff += interval ; in hwt_wait_time()
251 diff = interval ; in hwt_wait_time()
256 diff += interval ; in hwt_wait_time()
/drivers/usb/core/
Dendpoint.c92 unsigned interval = 0; in show_ep_interval() local
101 interval = ep->desc->bInterval; in show_ep_interval()
105 interval = 1 << (ep->desc->bInterval - 1); in show_ep_interval()
111 interval = ep->desc->bInterval; in show_ep_interval()
116 interval = 1 << (ep->desc->bInterval - 1); in show_ep_interval()
118 interval = ep->desc->bInterval; in show_ep_interval()
121 interval *= (ep->udev->speed == USB_SPEED_HIGH) ? 125 : 1000; in show_ep_interval()
122 if (interval % 1000) in show_ep_interval()
126 interval /= 1000; in show_ep_interval()
129 return sprintf(buf, "%d%cs\n", interval, unit); in show_ep_interval()
[all …]
Durb.c457 if (urb->interval < 6) in usb_submit_urb()
461 if (urb->interval <= 0) in usb_submit_urb()
469 if (urb->interval > (1 << 15)) in usb_submit_urb()
474 if (urb->interval > 16) in usb_submit_urb()
479 if (urb->interval > (1024 * 8)) in usb_submit_urb()
480 urb->interval = 1024 * 8; in usb_submit_urb()
486 if (urb->interval > 255) in usb_submit_urb()
491 if (urb->interval > 1024) in usb_submit_urb()
492 urb->interval = 1024; in usb_submit_urb()
502 urb->interval = min(max, 1 << ilog2(urb->interval)); in usb_submit_urb()
Ddevices.c185 unsigned interval, bandwidth = 1; in usb_dump_endpoint_descriptor() local
206 interval = desc->bInterval; in usb_dump_endpoint_descriptor()
208 interval = 0; in usb_dump_endpoint_descriptor()
213 interval = 1 << (desc->bInterval - 1); in usb_dump_endpoint_descriptor()
218 interval = desc->bInterval; in usb_dump_endpoint_descriptor()
220 interval = 0; in usb_dump_endpoint_descriptor()
225 interval = 1 << (desc->bInterval - 1); in usb_dump_endpoint_descriptor()
227 interval = desc->bInterval; in usb_dump_endpoint_descriptor()
232 interval *= (speed == USB_SPEED_HIGH || in usb_dump_endpoint_descriptor()
234 if (interval % 1000) in usb_dump_endpoint_descriptor()
[all …]
/drivers/platform/x86/
Dacerhdf.c85 static unsigned int interval = 10; variable
99 module_param(interval, uint, 0600);
100 MODULE_PARM_DESC(interval, "Polling interval of temperature check");
288 if (kernelmode && prev_interval != interval) { in acerhdf_check_param()
289 if (interval > ACERHDF_MAX_INTERVAL) { in acerhdf_check_param()
292 interval = ACERHDF_MAX_INTERVAL; in acerhdf_check_param()
295 pr_notice("interval changed to: %d\n", interval); in acerhdf_check_param()
296 thermal->polling_delay = interval*1000; in acerhdf_check_param()
297 prev_interval = interval; in acerhdf_check_param()
364 thz_dev->polling_delay = interval*1000; in acerhdf_enable_kernelmode()
[all …]
/drivers/media/video/uvc/
Duvc_status.c156 urb->interval = dev->int_ep->desc.bInterval; in uvc_status_complete()
167 int interval; in uvc_status_init() local
189 interval = ep->desc.bInterval; in uvc_status_init()
190 if (interval > 16 && dev->udev->speed == USB_SPEED_HIGH && in uvc_status_init()
192 interval = fls(interval) - 1; in uvc_status_init()
196 dev, interval); in uvc_status_init()
Duvc_v4l2.c112 static __u32 uvc_try_frame_interval(struct uvc_frame *frame, __u32 interval) in uvc_try_frame_interval() argument
120 dist = interval > frame->dwFrameInterval[i] in uvc_try_frame_interval()
121 ? interval - frame->dwFrameInterval[i] in uvc_try_frame_interval()
122 : frame->dwFrameInterval[i] - interval; in uvc_try_frame_interval()
130 interval = frame->dwFrameInterval[i-1]; in uvc_try_frame_interval()
136 interval = min + (interval - min + step/2) / step * step; in uvc_try_frame_interval()
137 if (interval > max) in uvc_try_frame_interval()
138 interval = max; in uvc_try_frame_interval()
141 return interval; in uvc_try_frame_interval()
153 __u32 interval; in uvc_v4l2_try_format() local
[all …]
/drivers/media/video/
Dmt9m032.c175 struct v4l2_fract *interval) in mt9m032_update_timing() argument
183 if (!interval) in mt9m032_update_timing()
184 interval = &sensor->frame_interval; in mt9m032_update_timing()
188 vblank = div_u64(1000000000ULL * interval->numerator, in mt9m032_update_timing()
189 (u64)row_time * interval->denominator) in mt9m032_update_timing()
194 interval->denominator = 1000; in mt9m032_update_timing()
195 interval->numerator = in mt9m032_update_timing()
197 (u64)row_time * interval->denominator, in mt9m032_update_timing()
199 vblank = div_u64(1000000000ULL * interval->numerator, in mt9m032_update_timing()
200 (u64)row_time * interval->denominator) in mt9m032_update_timing()
[all …]
/drivers/usb/host/
Dohci-q.c91 static int balance (struct ohci_hcd *ohci, int interval, int load) in balance() argument
96 if (interval > NUM_INTS) in balance()
97 interval = NUM_INTS; in balance()
102 for (i = 0; i < interval ; i++) { in balance()
107 for (j = i; j < NUM_INTS; j += interval) { in balance()
131 ed, ed->branch, ed->load, ed->interval); in periodic_link()
133 for (i = ed->branch; i < NUM_INTS; i += ed->interval) { in periodic_link()
143 if (ed->interval > here->interval) in periodic_link()
160 ohci_to_hcd(ohci)->self.bandwidth_allocated += ed->load / ed->interval; in periodic_link()
234 branch = balance (ohci, ed->interval, ed->load); in ed_schedule()
[all …]
Dfhci-mem.c92 u16 interval, u16 start_frame, bool ioc) in fhci_td_fill() argument
106 td->interval = interval; in fhci_td_fill()
Dehci-sched.c974 unsigned interval in iso_stream_init() argument
1016 bandwidth /= interval; in iso_stream_init()
1049 bandwidth /= interval << 3; in iso_stream_init()
1059 stream->interval = interval; in iso_stream_init()
1138 urb->interval); in iso_stream_find()
1186 iso_sched->span = urb->number_of_packets * stream->interval; in itd_sched_init()
1250 if (urb->interval < 8) in itd_urb_transaction()
1419 period = urb->interval; in iso_stream_schedule()
1640 urb->interval, in itd_link_urb()
1672 next_uframe += stream->interval; in itd_link_urb()
[all …]
/drivers/input/
Dinput-polldev.c87 unsigned int interval; in input_polldev_set_poll() local
90 err = kstrtouint(buf, 0, &interval); in input_polldev_set_poll()
94 if (interval < polldev->poll_interval_min) in input_polldev_set_poll()
97 if (interval > polldev->poll_interval_max) in input_polldev_set_poll()
102 polldev->poll_interval = interval; in input_polldev_set_poll()
/drivers/staging/comedi/drivers/
Dni_6527.c132 unsigned int interval; in ni6527_di_insn_config() local
141 interval = (data[1] + 100) / 200; in ni6527_di_insn_config()
142 data[1] = interval * 200; in ni6527_di_insn_config()
144 if (interval != devpriv->filter_interval) { in ni6527_di_insn_config()
145 writeb(interval & 0xff, in ni6527_di_insn_config()
147 writeb((interval >> 8) & 0xff, in ni6527_di_insn_config()
149 writeb((interval >> 16) & 0x0f, in ni6527_di_insn_config()
155 devpriv->filter_interval = interval; in ni6527_di_insn_config()
/drivers/input/joystick/iforce/
Diforce-ff.c299 || old->trigger.interval != new->trigger.interval in need_core()
311 u16 interval, u16 direction) in make_core() argument
317 interval = TIME_SCALE(interval); in make_core()
328 data[6] = LO(interval); in make_core()
329 data[7] = HI(interval); in make_core()
408 effect->trigger.interval, in iforce_upload_periodic()
468 effect->trigger.interval, in iforce_upload_constant()
532 effect->trigger.button, effect->trigger.interval, in iforce_upload_condition()
/drivers/watchdog/
Dwdrtas.c87 static int wdrtas_set_interval(int interval) in wdrtas_set_interval() argument
93 interval = (interval + 59) / 60; in wdrtas_set_interval()
96 WDRTAS_SURVEILLANCE_IND, 0, interval); in wdrtas_set_interval()
99 interval, result); in wdrtas_set_interval()
Dgeodewdt.c144 int interval; in geodewdt_ioctl() local
187 if (get_user(interval, p)) in geodewdt_ioctl()
190 if (geodewdt_set_heartbeat(interval)) in geodewdt_ioctl()
/drivers/macintosh/
Dwindfarm_pid.c60 integ *= st->param.interval; in wf_pid_run()
65 deriv /= st->param.interval; in wf_pid_run()
118 integ *= st->param.interval; in wf_cpu_pid_run()
128 deriv /= st->param.interval; in wf_cpu_pid_run()
Dwindfarm_pid.h27 int interval; /* Interval between samples in seconds */ member
61 int interval; /* Interval between samples in seconds */ member
Dwindfarm_pm112.c164 pid.interval = 1; /* seconds */ in create_cpu_loop()
342 .interval = 5,
369 backside_tick = backside_pid.param.interval; in backside_fan_tick()
392 .interval = 5,
419 drive_bay_tick = drive_bay_pid.param.interval; in drive_bay_fan_tick()
443 .interval = 1,
/drivers/usb/host/whci/
Dwusb.c70 int whc_mmcie_add(struct wusbhc *wusbhc, u8 interval, u8 repeat_cnt, in whc_mmcie_add() argument
76 params = (interval << 24) in whc_mmcie_add()
128 int whc_set_num_dnts(struct wusbhc *wusbhc, u8 interval, u8 slots) in whc_set_num_dnts() argument
134 | WUSBDNTSCTRL_INTERVAL(interval) in whc_set_num_dnts()
/drivers/s390/char/
Dvmwatchdog.c194 int interval; in __vmwdt_ioctl() local
195 if (get_user(interval, (int __user *)arg)) in __vmwdt_ioctl()
197 if (interval < MIN_INTERVAL) in __vmwdt_ioctl()
199 vmwdt_interval = interval; in __vmwdt_ioctl()
/drivers/staging/usbip/
Dusbip_common.c287 dev_dbg(dev, " interval :%d\n", urb->interval); in usbip_dump_urb()
311 pdu->u.cmd_submit.interval); in usbip_dump_header()
445 spdu->interval = urb->interval; in usbip_pack_cmd_submit()
453 urb->interval = spdu->interval; in usbip_pack_cmd_submit()
525 cpu_to_be32s(&pdu->interval); in correct_endian_cmd_submit()
532 be32_to_cpus(&pdu->interval); in correct_endian_cmd_submit()
/drivers/net/wireless/zd1211rw/
Dzd_mac.c384 beacon_interval = mac->beacon.interval; in zd_restore_settings()
1318 u16 interval = 0; in zd_op_bss_info_changed() local
1323 interval = bss_conf->beacon_int; in zd_op_bss_info_changed()
1328 mac->beacon.interval = interval; in zd_op_bss_info_changed()
1332 zd_set_beacon_interval(&mac->chip, interval, period, in zd_op_bss_info_changed()
1440 int interval, period; in beacon_watchdog_handler() local
1448 interval = mac->beacon.interval; in beacon_watchdog_handler()
1451 msecs_to_jiffies(interval * 1024 / 1000) * 3; in beacon_watchdog_handler()
1454 if (interval > 0 && time_is_before_jiffies(timeout)) { in beacon_watchdog_handler()
1458 interval, period); in beacon_watchdog_handler()
[all …]

123456789