/drivers/infiniband/hw/usnic/ |
D | usnic_uiom_interval_tree.c | 73 struct usnic_uiom_interval_node *interval = kzalloc(sizeof(*interval), in usnic_uiom_interval_node_alloc() local 75 if (!interval) in usnic_uiom_interval_node_alloc() 78 interval->start = start; in usnic_uiom_interval_node_alloc() 79 interval->last = last; in usnic_uiom_interval_node_alloc() 80 interval->flags = flags; in usnic_uiom_interval_node_alloc() 81 interval->ref_cnt = ref_cnt; in usnic_uiom_interval_node_alloc() 83 return interval; in usnic_uiom_interval_node_alloc() 124 struct usnic_uiom_interval_node *interval, *tmp; in usnic_uiom_get_intervals_diff() local 134 list_for_each_entry(interval, &intersection_set, link) { in usnic_uiom_get_intervals_diff() 135 if (pivot < interval->start) { in usnic_uiom_get_intervals_diff() [all …]
|
D | usnic_uiom.c | 210 struct usnic_uiom_interval_node *interval, *tmp; in usnic_uiom_unmap_sorted_intervals() local 213 list_for_each_entry_safe(interval, tmp, intervals, link) { in usnic_uiom_unmap_sorted_intervals() 214 va = interval->start << PAGE_SHIFT; in usnic_uiom_unmap_sorted_intervals() 215 size = ((interval->last - interval->start) + 1) << PAGE_SHIFT; in usnic_uiom_unmap_sorted_intervals() 232 struct usnic_uiom_interval_node *interval, *tmp; in __usnic_uiom_reg_release() local 245 list_for_each_entry_safe(interval, tmp, &rm_intervals, link) { in __usnic_uiom_reg_release() 246 if (interval->flags & IOMMU_WRITE) in __usnic_uiom_reg_release() 248 list_del(&interval->link); in __usnic_uiom_reg_release() 249 kfree(interval); in __usnic_uiom_reg_release()
|
/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/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 interval_show() local 97 interval = ep->desc->bInterval; in interval_show() 101 interval = 1 << (ep->desc->bInterval - 1); in interval_show() 107 interval = ep->desc->bInterval; in interval_show() 112 interval = 1 << (ep->desc->bInterval - 1); in interval_show() 114 interval = ep->desc->bInterval; in interval_show() 117 interval *= (ep->udev->speed == USB_SPEED_HIGH) ? 125 : 1000; in interval_show() 118 if (interval % 1000) in interval_show() 122 interval /= 1000; in interval_show() 125 return sprintf(buf, "%d%cs\n", interval, unit); in interval_show() [all …]
|
D | devices.c | 178 unsigned interval, bandwidth = 1; in usb_dump_endpoint_descriptor() local 193 interval = desc->bInterval; in usb_dump_endpoint_descriptor() 195 interval = 0; in usb_dump_endpoint_descriptor() 200 interval = 1 << (desc->bInterval - 1); in usb_dump_endpoint_descriptor() 205 interval = desc->bInterval; in usb_dump_endpoint_descriptor() 207 interval = 0; in usb_dump_endpoint_descriptor() 212 interval = 1 << (desc->bInterval - 1); in usb_dump_endpoint_descriptor() 214 interval = desc->bInterval; in usb_dump_endpoint_descriptor() 219 interval *= (speed == USB_SPEED_HIGH || in usb_dump_endpoint_descriptor() 221 if (interval % 1000) in usb_dump_endpoint_descriptor() [all …]
|
D | urb.c | 515 if ((urb->interval < 6) in usb_submit_urb() 519 if (urb->interval <= 0) in usb_submit_urb() 528 if (urb->interval > (1 << 15)) in usb_submit_urb() 533 if (urb->interval > 16) in usb_submit_urb() 538 if (urb->interval > (1024 * 8)) in usb_submit_urb() 539 urb->interval = 1024 * 8; in usb_submit_urb() 545 if (urb->interval > 255) in usb_submit_urb() 550 if (urb->interval > 1024) in usb_submit_urb() 551 urb->interval = 1024; in usb_submit_urb() 561 urb->interval = min(max, 1 << ilog2(urb->interval)); in usb_submit_urb()
|
/drivers/hwmon/ |
D | lm95245.c | 112 int interval; /* in msecs */ member 139 data->interval = 63; in lm95245_read_conversion_rate() 142 data->interval = 364; in lm95245_read_conversion_rate() 145 data->interval = 1000; in lm95245_read_conversion_rate() 149 data->interval = 2500; in lm95245_read_conversion_rate() 155 static int lm95245_set_conversion_rate(struct lm95245_data *data, long interval) in lm95245_set_conversion_rate() argument 159 if (interval <= 63) { in lm95245_set_conversion_rate() 160 interval = 63; in lm95245_set_conversion_rate() 162 } else if (interval <= 364) { in lm95245_set_conversion_rate() 163 interval = 364; in lm95245_set_conversion_rate() [all …]
|
D | stts751.c | 98 u8 interval; member 130 switch (priv->interval) { in stts751_adjust_resolution() 273 int cache_time = msecs_to_jiffies(stts751_intervals[priv->interval]); in stts751_update_alert() 367 int cache_time = msecs_to_jiffies(stts751_intervals[priv->interval]); in stts751_update() 598 stts751_intervals[priv->interval]); in show_interval() 619 if (priv->interval == idx) in set_interval() 631 if (priv->interval < idx) { in set_interval() 633 priv->interval = idx; in set_interval() 643 if (priv->interval != idx) { in set_interval() 645 priv->interval = idx; in set_interval() [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"); 331 if (kernelmode && prev_interval != interval) { in acerhdf_check_param() 332 if (interval > ACERHDF_MAX_INTERVAL) { in acerhdf_check_param() 335 interval = ACERHDF_MAX_INTERVAL; in acerhdf_check_param() 338 pr_notice("interval changed to: %d\n", interval); in acerhdf_check_param() 339 thermal->polling_delay = interval*1000; in acerhdf_check_param() 340 prev_interval = interval; in acerhdf_check_param() 408 thz_dev->polling_delay = interval*1000; in acerhdf_enable_kernelmode() [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 | 108 static __u32 uvc_try_frame_interval(struct uvc_frame *frame, __u32 interval) in uvc_try_frame_interval() argument 116 dist = interval > frame->dwFrameInterval[i] in uvc_try_frame_interval() 117 ? interval - frame->dwFrameInterval[i] in uvc_try_frame_interval() 118 : frame->dwFrameInterval[i] - interval; in uvc_try_frame_interval() 126 interval = frame->dwFrameInterval[i-1]; in uvc_try_frame_interval() 132 interval = min + (interval - min + step/2) / step * step; in uvc_try_frame_interval() 133 if (interval > max) in uvc_try_frame_interval() 134 interval = max; in uvc_try_frame_interval() 137 return interval; in uvc_try_frame_interval() 164 __u32 interval; in uvc_v4l2_try_format() local [all …]
|
/drivers/thermal/ti-soc-thermal/ |
D | ti-bandgap.c | 712 int *interval) in ti_bandgap_read_counter() argument 722 *interval = time; in ti_bandgap_read_counter() 732 int *interval) in ti_bandgap_read_counter_delay() argument 744 *interval = 0; in ti_bandgap_read_counter_delay() 747 *interval = 1; in ti_bandgap_read_counter_delay() 750 *interval = 10; in ti_bandgap_read_counter_delay() 753 *interval = 100; in ti_bandgap_read_counter_delay() 756 *interval = 250; in ti_bandgap_read_counter_delay() 759 *interval = 500; in ti_bandgap_read_counter_delay() 776 int *interval) in ti_bandgap_read_update_interval() argument [all …]
|
/drivers/usb/dwc2/ |
D | hcd_queue.c | 230 int interval, int start, bool only_one_period) in pmap_schedule() argument 241 interval = gcd(interval, periods_in_map); in pmap_schedule() 243 interval_bits = bits_per_period * interval; in pmap_schedule() 244 to_reserve = periods_in_map / interval; in pmap_schedule() 338 int interval, int start) in pmap_unschedule() argument 345 interval = gcd(interval, periods_in_map); in pmap_unschedule() 347 interval_bits = bits_per_period * interval; in pmap_unschedule() 348 to_release = periods_in_map / interval; in pmap_unschedule() 1087 u16 interval; in dwc2_pick_first_frame() local 1127 interval = gcd(qh->host_interval, DWC2_HS_SCHEDULE_UFRAMES); in dwc2_pick_first_frame() [all …]
|
/drivers/media/i2c/ |
D | mt9m032.c | 188 struct v4l2_fract *interval) in mt9m032_update_timing() argument 196 if (!interval) in mt9m032_update_timing() 197 interval = &sensor->frame_interval; in mt9m032_update_timing() 201 vblank = div_u64(1000000000ULL * interval->numerator, in mt9m032_update_timing() 202 (u64)row_time * interval->denominator) in mt9m032_update_timing() 207 interval->denominator = 1000; in mt9m032_update_timing() 208 interval->numerator = in mt9m032_update_timing() 210 (u64)row_time * interval->denominator, in mt9m032_update_timing() 212 vblank = div_u64(1000000000ULL * interval->numerator, in mt9m032_update_timing() 213 (u64)row_time * interval->denominator) in mt9m032_update_timing() [all …]
|
/drivers/usb/host/ |
D | ohci-q.c | 108 static int balance (struct ohci_hcd *ohci, int interval, int load) in balance() argument 113 if (interval > NUM_INTS) in balance() 114 interval = NUM_INTS; in balance() 119 for (i = 0; i < interval ; i++) { in balance() 124 for (j = i; j < NUM_INTS; j += interval) { in balance() 148 ed, ed->branch, ed->load, ed->interval); in periodic_link() 150 for (i = ed->branch; i < NUM_INTS; i += ed->interval) { in periodic_link() 160 if (ed->interval > here->interval) in periodic_link() 177 ohci_to_hcd(ohci)->self.bandwidth_allocated += ed->load / ed->interval; in periodic_link() 246 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()
|
/drivers/staging/lustre/lustre/include/ |
D | lustre_lib.h | 168 #define LWI_TIMEOUT_INTERVAL(time, interval, cb, data) \ argument 173 .lwi_interval = interval, \ 258 long interval = info->lwi_interval ? \ 262 long remaining = schedule_timeout(interval);\ 264 cfs_time_sub(interval, remaining));\
|
/drivers/power/supply/ |
D | da9150-fg.c | 84 u32 interval; member 366 schedule_delayed_work(&fg->work, msecs_to_jiffies(fg->interval)); in da9150_fg_work() 489 fg->interval = fg_pdata->update_interval; in da9150_fg_probe() 512 if (fg->interval) { in da9150_fg_probe() 515 msecs_to_jiffies(fg->interval)); in da9150_fg_probe() 536 if (fg->interval) in da9150_fg_probe() 546 if (fg->interval) in da9150_fg_remove() 560 if (fg->interval) in da9150_fg_resume()
|
/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/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/watchdog/ |
D | wdrtas.c | 85 static int wdrtas_set_interval(int interval) in wdrtas_set_interval() argument 91 interval = (interval + 59) / 60; in wdrtas_set_interval() 94 WDRTAS_SURVEILLANCE_IND, 0, interval); in wdrtas_set_interval() 97 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/usb/host/whci/ |
D | wusb.c | 69 int whc_mmcie_add(struct wusbhc *wusbhc, u8 interval, u8 repeat_cnt, in whc_mmcie_add() argument 75 params = (interval << 24) in whc_mmcie_add() 127 int whc_set_num_dnts(struct wusbhc *wusbhc, u8 interval, u8 slots) in whc_set_num_dnts() argument 133 | WUSBDNTSCTRL_INTERVAL(interval) in whc_set_num_dnts()
|
/drivers/usb/mtu3/ |
D | mtu3_gadget.c | 78 u32 interval = 0; in mtu3_ep_enable() local 94 interval = desc->bInterval; in mtu3_ep_enable() 95 interval = clamp_val(interval, 1, 16) - 1; in mtu3_ep_enable() 106 interval = desc->bInterval; in mtu3_ep_enable() 107 interval = clamp_val(interval, 1, 16) - 1; in mtu3_ep_enable() 116 __func__, mep->maxp, interval, burst, mult); in mtu3_ep_enable() 125 ret = mtu3_config_ep(mtu, mep, interval, burst, mult); in mtu3_ep_enable()
|