/drivers/uwb/ |
D | allocator.c | 31 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/ |
D | lm95245.c | 121 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/ |
D | hwt.c | 201 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/ |
D | endpoint.c | 88 unsigned interval = 0; in show_ep_interval() local 97 interval = ep->desc->bInterval; in show_ep_interval() 101 interval = 1 << (ep->desc->bInterval - 1); in show_ep_interval() 107 interval = ep->desc->bInterval; in show_ep_interval() 112 interval = 1 << (ep->desc->bInterval - 1); in show_ep_interval() 114 interval = ep->desc->bInterval; in show_ep_interval() 117 interval *= (ep->udev->speed == USB_SPEED_HIGH) ? 125 : 1000; in show_ep_interval() 118 if (interval % 1000) in show_ep_interval() 122 interval /= 1000; in show_ep_interval() 125 return sprintf(buf, "%d%cs\n", interval, unit); in show_ep_interval() [all …]
|
D | urb.c | 478 if (urb->interval < 6) in usb_submit_urb() 482 if (urb->interval <= 0) in usb_submit_urb() 490 if (urb->interval > (1 << 15)) in usb_submit_urb() 495 if (urb->interval > 16) in usb_submit_urb() 500 if (urb->interval > (1024 * 8)) in usb_submit_urb() 501 urb->interval = 1024 * 8; in usb_submit_urb() 507 if (urb->interval > 255) in usb_submit_urb() 512 if (urb->interval > 1024) in usb_submit_urb() 513 urb->interval = 1024; in usb_submit_urb() 523 urb->interval = min(max, 1 << ilog2(urb->interval)); in usb_submit_urb()
|
D | devices.c | 185 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/ |
D | acerhdf.c | 85 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() 365 thz_dev->polling_delay = interval*1000; in acerhdf_enable_kernelmode() [all …]
|
/drivers/staging/ti-soc-thermal/ |
D | ti-bandgap.c | 658 int *interval) in ti_bandgap_read_counter() argument 668 *interval = time; in ti_bandgap_read_counter() 678 int *interval) in ti_bandgap_read_counter_delay() argument 690 *interval = 0; in ti_bandgap_read_counter_delay() 693 *interval = 1; in ti_bandgap_read_counter_delay() 696 *interval = 10; in ti_bandgap_read_counter_delay() 699 *interval = 100; in ti_bandgap_read_counter_delay() 702 *interval = 250; in ti_bandgap_read_counter_delay() 705 *interval = 500; in ti_bandgap_read_counter_delay() 722 int *interval) in ti_bandgap_read_update_interval() argument [all …]
|
/drivers/media/usb/uvc/ |
D | uvc_status.c | 156 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()
|
D | uvc_v4l2.c | 114 static __u32 uvc_try_frame_interval(struct uvc_frame *frame, __u32 interval) in uvc_try_frame_interval() argument 122 dist = interval > frame->dwFrameInterval[i] in uvc_try_frame_interval() 123 ? interval - frame->dwFrameInterval[i] in uvc_try_frame_interval() 124 : frame->dwFrameInterval[i] - interval; in uvc_try_frame_interval() 132 interval = frame->dwFrameInterval[i-1]; in uvc_try_frame_interval() 138 interval = min + (interval - min + step/2) / step * step; in uvc_try_frame_interval() 139 if (interval > max) in uvc_try_frame_interval() 140 interval = max; in uvc_try_frame_interval() 143 return interval; in uvc_try_frame_interval() 155 __u32 interval; in uvc_v4l2_try_format() local [all …]
|
/drivers/usb/host/ |
D | ohci-q.c | 92 static int balance (struct ohci_hcd *ohci, int interval, int load) in balance() argument 97 if (interval > NUM_INTS) in balance() 98 interval = NUM_INTS; in balance() 103 for (i = 0; i < interval ; i++) { in balance() 108 for (j = i; j < NUM_INTS; j += interval) { in balance() 132 ed, ed->branch, ed->load, ed->interval); in periodic_link() 134 for (i = ed->branch; i < NUM_INTS; i += ed->interval) { in periodic_link() 144 if (ed->interval > here->interval) in periodic_link() 161 ohci_to_hcd(ohci)->self.bandwidth_allocated += ed->load / ed->interval; in periodic_link() 235 branch = balance (ohci, ed->interval, ed->load); in ed_schedule() [all …]
|
D | fhci-mem.c | 92 u16 interval, u16 start_frame, bool ioc) in fhci_td_fill() argument 106 td->interval = interval; in fhci_td_fill()
|
D | ehci-sched.c | 958 unsigned interval in iso_stream_init() argument 1000 bandwidth /= interval; in iso_stream_init() 1033 bandwidth /= interval << 3; in iso_stream_init() 1043 stream->interval = interval; in iso_stream_init() 1070 urb->interval); in iso_stream_find() 1115 iso_sched->span = urb->number_of_packets * stream->interval; in itd_sched_init() 1179 if (urb->interval < 8) in itd_urb_transaction() 1353 period = urb->interval; in iso_stream_schedule() 1584 urb->interval, in itd_link_urb() 1616 next_uframe += stream->interval; in itd_link_urb() [all …]
|
/drivers/media/i2c/ |
D | mt9m032.c | 193 struct v4l2_fract *interval) in mt9m032_update_timing() argument 201 if (!interval) in mt9m032_update_timing() 202 interval = &sensor->frame_interval; in mt9m032_update_timing() 206 vblank = div_u64(1000000000ULL * interval->numerator, in mt9m032_update_timing() 207 (u64)row_time * interval->denominator) in mt9m032_update_timing() 212 interval->denominator = 1000; in mt9m032_update_timing() 213 interval->numerator = in mt9m032_update_timing() 215 (u64)row_time * interval->denominator, in mt9m032_update_timing() 217 vblank = div_u64(1000000000ULL * interval->numerator, in mt9m032_update_timing() 218 (u64)row_time * interval->denominator) in mt9m032_update_timing() [all …]
|
/drivers/input/ |
D | input-polldev.c | 87 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/ |
D | ni_6527.c | 114 unsigned int interval; in ni6527_di_insn_config() local 123 interval = (data[1] + 100) / 200; in ni6527_di_insn_config() 124 data[1] = interval * 200; in ni6527_di_insn_config() 126 if (interval != devpriv->filter_interval) { in ni6527_di_insn_config() 127 writeb(interval & 0xff, in ni6527_di_insn_config() 129 writeb((interval >> 8) & 0xff, in ni6527_di_insn_config() 131 writeb((interval >> 16) & 0x0f, in ni6527_di_insn_config() 137 devpriv->filter_interval = interval; in ni6527_di_insn_config()
|
/drivers/staging/dwc2/ |
D | hcd_queue.c | 112 qh->interval = urb->interval; in dwc2_qh_init() 116 qh->interval = 8; in dwc2_qh_init() 123 qh->interval *= 8; in dwc2_qh_init() 127 dev_dbg(hsotg->dev, "interval=%d\n", qh->interval); in dwc2_qh_init() 180 qh->interval); in dwc2_qh_init() 529 qh->interval); in dwc2_sched_periodic_split() 569 qh->interval); in dwc2_hcd_qh_deactivate()
|
D | hcd_ddma.c | 84 (qh->interval + 8 - 1) / 8 : qh->interval; in dwc2_frame_incr_val() 256 if (chan->speed == USB_SPEED_HIGH && qh->interval) { in dwc2_update_frame_list() 259 inc = (8 + qh->interval - 1) / qh->interval; in dwc2_update_frame_list() 262 j = j << qh->interval; in dwc2_update_frame_list() 540 inc = qh->interval; in dwc2_init_isoc_dma_desc() 543 if (qh->interval) { in dwc2_init_isoc_dma_desc() 544 ntd_max = (dwc2_max_desc_num(qh) + qh->interval - 1) / in dwc2_init_isoc_dma_desc() 545 qh->interval; in dwc2_init_isoc_dma_desc() 547 ntd_max -= skip_frames / qh->interval; in dwc2_init_isoc_dma_desc() 908 idx = dwc2_desclist_idx_inc(idx, qh->interval, in dwc2_complete_isoc_xfer_ddma()
|
/drivers/input/joystick/iforce/ |
D | iforce-ff.c | 299 || 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/ |
D | wdrtas.c | 87 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()
|
/drivers/macintosh/ |
D | windfarm_pid.c | 60 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()
|
/drivers/staging/media/solo6x10/ |
D | solo6x10-v4l2-enc.c | 113 u32 jpeg_size:20, interval:10, nop1:2; member 186 solo_enc->bw_weight = max(solo_dev->fps / solo_enc->interval, 1); in solo_update_mode() 236 u16 interval = solo_enc->interval * 1000; in solo_update_mode() local 243 | ((interval >> 13) & 0x3); in solo_update_mode() 244 vop[24] = (interval >> 5) & 0xff; in solo_update_mode() 245 vop[25] = ((interval << 3) & 0xf8) | 0x04; in solo_update_mode() 265 u8 interval; in solo_enc_on() local 286 interval = solo_enc->interval - 1; in solo_enc_on() 288 interval = solo_enc->interval; in solo_enc_on() 293 solo_reg_write(solo_dev, SOLO_CAP_CH_INTV(ch), interval); in solo_enc_on() [all …]
|
/drivers/usb/host/whci/ |
D | wusb.c | 70 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/ |
D | vmwatchdog.c | 194 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/net/wireless/iwlwifi/dvm/ |
D | devices.c | 104 u32 interval = beacon_interval * TIME_UNIT; in iwl_usecs_to_beacons() local 106 if (!interval || !usec) in iwl_usecs_to_beacons() 109 quot = (usec / interval) & in iwl_usecs_to_beacons() 112 rem = (usec % interval) & iwl_beacon_time_mask_low(priv, in iwl_usecs_to_beacons() 128 u32 interval = beacon_interval * TIME_UNIT; in iwl_add_beacon_time() local 137 res += interval + base_low - addon_low; in iwl_add_beacon_time()
|