/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() 125 struct usnic_uiom_interval_node *interval, *tmp; in usnic_uiom_get_intervals_diff() local 135 list_for_each_entry(interval, &intersection_set, link) { in usnic_uiom_get_intervals_diff() 136 if (pivot < interval->start) { in usnic_uiom_get_intervals_diff() [all …]
|
D | usnic_uiom.c | 198 struct usnic_uiom_interval_node *interval, *tmp; in usnic_uiom_unmap_sorted_intervals() local 201 list_for_each_entry_safe(interval, tmp, intervals, link) { in usnic_uiom_unmap_sorted_intervals() 202 va = interval->start << PAGE_SHIFT; in usnic_uiom_unmap_sorted_intervals() 203 size = ((interval->last - interval->start) + 1) << PAGE_SHIFT; in usnic_uiom_unmap_sorted_intervals() 220 struct usnic_uiom_interval_node *interval, *tmp; in __usnic_uiom_reg_release() local 233 list_for_each_entry_safe(interval, tmp, &rm_intervals, link) { in __usnic_uiom_reg_release() 234 if (interval->flags & IOMMU_WRITE) in __usnic_uiom_reg_release() 236 list_del(&interval->link); in __usnic_uiom_reg_release() 237 kfree(interval); in __usnic_uiom_reg_release()
|
/drivers/net/fddi/skfp/ |
D | hwt.c | 193 u_long interval ; in hwt_quick_read() local 196 interval = inpd(ADDR(B2_TI_INI)) ; in hwt_quick_read() 201 outpd(ADDR(B2_TI_INI),interval) ; in hwt_quick_read() 222 long interval ; in hwt_wait_time() local 233 interval = inpd(ADDR(B2_TI_INI)) ; in hwt_wait_time() 234 if (interval > duration) { in hwt_wait_time() 238 diff += interval ; in hwt_wait_time() 243 diff = interval ; in hwt_wait_time() 248 diff += interval ; in hwt_wait_time()
|
/drivers/input/ |
D | input-poller.c | 105 void input_set_poll_interval(struct input_dev *dev, unsigned int interval) in input_set_poll_interval() argument 108 dev->poller->poll_interval = interval; in input_set_poll_interval() 112 void input_set_min_poll_interval(struct input_dev *dev, unsigned int interval) in input_set_min_poll_interval() argument 115 dev->poller->poll_interval_min = interval; in input_set_min_poll_interval() 119 void input_set_max_poll_interval(struct input_dev *dev, unsigned int interval) in input_set_max_poll_interval() argument 122 dev->poller->poll_interval_max = interval; in input_set_max_poll_interval() 152 unsigned int interval; in input_dev_set_poll_interval() local 155 err = kstrtouint(buf, 0, &interval); in input_dev_set_poll_interval() 159 if (interval < poller->poll_interval_min) in input_dev_set_poll_interval() 162 if (interval > poller->poll_interval_max) in input_dev_set_poll_interval() [all …]
|
/drivers/hwmon/ |
D | lm95245.c | 90 int interval; /* in msecs */ member 117 data->interval = 63; in lm95245_read_conversion_rate() 120 data->interval = 364; in lm95245_read_conversion_rate() 123 data->interval = 1000; in lm95245_read_conversion_rate() 127 data->interval = 2500; in lm95245_read_conversion_rate() 133 static int lm95245_set_conversion_rate(struct lm95245_data *data, long interval) in lm95245_set_conversion_rate() argument 137 if (interval <= 63) { in lm95245_set_conversion_rate() 138 interval = 63; in lm95245_set_conversion_rate() 140 } else if (interval <= 364) { in lm95245_set_conversion_rate() 141 interval = 364; in lm95245_set_conversion_rate() [all …]
|
D | stts751.c | 89 u8 interval; member 121 switch (priv->interval) { in stts751_adjust_resolution() 264 int cache_time = msecs_to_jiffies(stts751_intervals[priv->interval]); in stts751_update_alert() 358 int cache_time = msecs_to_jiffies(stts751_intervals[priv->interval]); in stts751_update() 589 stts751_intervals[priv->interval]); in interval_show() 611 if (priv->interval == idx) in interval_store() 623 if (priv->interval < idx) { in interval_store() 625 priv->interval = idx; in interval_store() 635 if (priv->interval != idx) { in interval_store() 637 priv->interval = idx; in interval_store() [all …]
|
/drivers/thermal/ti-soc-thermal/ |
D | ti-bandgap.c | 338 int *interval) in ti_bandgap_read_counter() argument 348 *interval = time; in ti_bandgap_read_counter() 358 int *interval) in ti_bandgap_read_counter_delay() argument 370 *interval = 0; in ti_bandgap_read_counter_delay() 373 *interval = 1; in ti_bandgap_read_counter_delay() 376 *interval = 10; in ti_bandgap_read_counter_delay() 379 *interval = 100; in ti_bandgap_read_counter_delay() 382 *interval = 250; in ti_bandgap_read_counter_delay() 385 *interval = 500; in ti_bandgap_read_counter_delay() 402 int *interval) in ti_bandgap_read_update_interval() argument [all …]
|
/drivers/usb/common/ |
D | common.c | 234 unsigned int interval = 0; in usb_decode_interval() local 240 interval = epd->bInterval; in usb_decode_interval() 243 interval = 1 << (epd->bInterval - 1); in usb_decode_interval() 248 interval = epd->bInterval; in usb_decode_interval() 252 interval = 1 << (epd->bInterval - 1); in usb_decode_interval() 254 interval = epd->bInterval; in usb_decode_interval() 258 interval *= (speed >= USB_SPEED_HIGH) ? 125 : 1000; in usb_decode_interval() 260 return interval; in usb_decode_interval()
|
/drivers/usb/dwc2/ |
D | hcd_queue.c | 234 int interval, int start, bool only_one_period) in pmap_schedule() argument 245 interval = gcd(interval, periods_in_map); in pmap_schedule() 247 interval_bits = bits_per_period * interval; in pmap_schedule() 248 to_reserve = periods_in_map / interval; in pmap_schedule() 342 int interval, int start) in pmap_unschedule() argument 349 interval = gcd(interval, periods_in_map); in pmap_unschedule() 351 interval_bits = bits_per_period * interval; in pmap_unschedule() 352 to_release = periods_in_map / interval; in pmap_unschedule() 1092 u16 interval; in dwc2_pick_first_frame() local 1132 interval = gcd(qh->host_interval, DWC2_HS_SCHEDULE_UFRAMES); in dwc2_pick_first_frame() [all …]
|
/drivers/platform/x86/ |
D | acerhdf.c | 72 static unsigned int interval = 10; variable 329 if (kernelmode && prev_interval != interval) { in acerhdf_check_param() 330 if (interval > ACERHDF_MAX_INTERVAL) { in acerhdf_check_param() 333 interval = ACERHDF_MAX_INTERVAL; in acerhdf_check_param() 336 pr_notice("interval changed to: %d\n", interval); in acerhdf_check_param() 340 round_jiffies(msecs_to_jiffies(interval * 1000)); in acerhdf_check_param() 342 prev_interval = interval; in acerhdf_check_param() 731 (kernelmode) ? interval*1000 : 0); in acerhdf_register_thermal() 846 module_param_cb(interval, &interval_ops, &interval, 0600); 847 MODULE_PARM_DESC(interval, "Polling interval of temperature check");
|
/drivers/leds/trigger/ |
D | ledtrig-netdev.c | 49 atomic_t interval; member 258 jiffies_to_msecs(atomic_read(&trigger_data->interval))); in interval_show() 277 atomic_set(&trigger_data->interval, msecs_to_jiffies(value)); in interval_store() 284 static DEVICE_ATTR_RW(interval); 356 unsigned long interval; in netdev_trig_work() local 381 interval = jiffies_to_msecs( in netdev_trig_work() 382 atomic_read(&trigger_data->interval)); in netdev_trig_work() 385 &interval, in netdev_trig_work() 386 &interval, in netdev_trig_work() 392 (atomic_read(&trigger_data->interval)*2)); in netdev_trig_work() [all …]
|
/drivers/input/keyboard/ |
D | iqs62x-keys.c | 42 u8 interval; member 169 ret = regmap_read(iqs62x->regmap, iqs62x->dev_desc->interval, in iqs62x_keys_init() 174 iqs62x_keys->interval = val; in iqs62x_keys_init() 207 event_data->interval == iqs62x_keys->interval) in iqs62x_keys_notifier() 223 if (event_data->interval == iqs62x_keys->interval) in iqs62x_keys_notifier() 242 iqs62x_keys->interval = event_data->interval; in iqs62x_keys_notifier()
|
/drivers/usb/core/ |
D | endpoint.c | 87 unsigned int interval; in interval_show() local 90 interval = usb_decode_interval(ep->desc, ep->udev->speed); in interval_show() 91 if (interval % 1000) { in interval_show() 95 interval /= 1000; in interval_show() 98 return sprintf(buf, "%d%cs\n", interval, unit); in interval_show() 100 static DEVICE_ATTR_RO(interval);
|
D | urb.c | 543 if ((urb->interval < 6) in usb_submit_urb() 548 if (urb->interval <= 0) in usb_submit_urb() 557 if (urb->interval > (1 << 15)) in usb_submit_urb() 562 if (urb->interval > 16) in usb_submit_urb() 567 if (urb->interval > (1024 * 8)) in usb_submit_urb() 568 urb->interval = 1024 * 8; in usb_submit_urb() 574 if (urb->interval > 255) in usb_submit_urb() 579 if (urb->interval > 1024) in usb_submit_urb() 580 urb->interval = 1024; in usb_submit_urb() 590 urb->interval = min(max, 1 << ilog2(urb->interval)); in usb_submit_urb()
|
/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600_timestamp.c | 116 int64_t delta, interval; in inv_icm42600_timestamp_interrupt() local 142 interval = (int64_t)ts->period * (int64_t)sensor_nb; in inv_icm42600_timestamp_interrupt() 143 ts->timestamp = it->up - interval; in inv_icm42600_timestamp_interrupt() 170 int64_t interval; in inv_icm42600_timestamp_apply_odr() local 192 interval = (int64_t)(fifo_nb - fifo_no) * (int64_t)fifo_period; in inv_icm42600_timestamp_apply_odr() 193 ts->timestamp = ts->it.up - interval; in inv_icm42600_timestamp_apply_odr()
|
/drivers/media/i2c/ |
D | mt9m032.c | 180 struct v4l2_fract *interval) in mt9m032_update_timing() argument 188 if (!interval) in mt9m032_update_timing() 189 interval = &sensor->frame_interval; in mt9m032_update_timing() 193 vblank = div_u64(1000000000ULL * interval->numerator, in mt9m032_update_timing() 194 (u64)row_time * interval->denominator) in mt9m032_update_timing() 199 interval->denominator = 1000; in mt9m032_update_timing() 200 interval->numerator = in mt9m032_update_timing() 202 (u64)row_time * interval->denominator, in mt9m032_update_timing() 204 vblank = div_u64(1000000000ULL * interval->numerator, in mt9m032_update_timing() 205 (u64)row_time * interval->denominator) in mt9m032_update_timing() [all …]
|
/drivers/media/usb/uvc/ |
D | uvc_status.c | 246 urb->interval = dev->int_ep->desc.bInterval; in uvc_status_complete() 257 int interval; in uvc_status_init() local 279 interval = ep->desc.bInterval; in uvc_status_init() 280 if (interval > 16 && dev->udev->speed == USB_SPEED_HIGH && in uvc_status_init() 282 interval = fls(interval) - 1; in uvc_status_init() 286 dev, interval); in uvc_status_init()
|
D | uvc_v4l2.c | 111 static u32 uvc_try_frame_interval(struct uvc_frame *frame, u32 interval) in uvc_try_frame_interval() argument 119 dist = interval > frame->dwFrameInterval[i] in uvc_try_frame_interval() 120 ? interval - frame->dwFrameInterval[i] in uvc_try_frame_interval() 121 : frame->dwFrameInterval[i] - interval; in uvc_try_frame_interval() 129 interval = frame->dwFrameInterval[i-1]; in uvc_try_frame_interval() 135 interval = min + (interval - min + step/2) / step * step; in uvc_try_frame_interval() 136 if (interval > max) in uvc_try_frame_interval() 137 interval = max; in uvc_try_frame_interval() 140 return interval; in uvc_try_frame_interval() 167 u32 interval; in uvc_v4l2_try_format() local [all …]
|
/drivers/net/dsa/sja1105/ |
D | sja1105_vl.c | 25 e->interval = entry_time; in sja1105_insert_gate_entry() 33 if (p->interval == e->interval) { in sja1105_insert_gate_entry() 40 if (e->interval < p->interval) in sja1105_insert_gate_entry() 74 p->interval = e->interval - p->interval; in sja1105_gating_cfg_time_to_interval() 78 last_e->interval = cycle_time - last_e->interval; in sja1105_gating_cfg_time_to_interval() 157 time += rule->vl.entries[i].interval; in sja1105_compose_gating_subschedule() 628 div_s64_rem(entries[i].interval, in sja1105_vl_gate() 637 if (!entries[i].interval) { in sja1105_vl_gate() 644 if (ns_to_sja1105_delta(entries[i].interval) > in sja1105_vl_gate()
|
/drivers/usb/host/ |
D | ohci-q.c | 109 static int balance (struct ohci_hcd *ohci, int interval, int load) in balance() argument 114 if (interval > NUM_INTS) in balance() 115 interval = NUM_INTS; in balance() 120 for (i = 0; i < interval ; i++) { in balance() 125 for (j = i; j < NUM_INTS; j += interval) { in balance() 149 ed, ed->branch, ed->load, ed->interval); in periodic_link() 151 for (i = ed->branch; i < NUM_INTS; i += ed->interval) { in periodic_link() 161 if (ed->interval > here->interval) in periodic_link() 178 ohci_to_hcd(ohci)->self.bandwidth_allocated += ed->load / ed->interval; in periodic_link() 247 branch = balance (ohci, ed->interval, ed->load); in ed_schedule() [all …]
|
/drivers/usb/cdns3/ |
D | cdnsp-mem.c | 784 unsigned int interval; in cdnsp_parse_exponent_interval() local 786 interval = clamp_val(pep->endpoint.desc->bInterval, 1, 16) - 1; in cdnsp_parse_exponent_interval() 787 if (interval != pep->endpoint.desc->bInterval - 1) in cdnsp_parse_exponent_interval() 789 pep->name, 1 << interval, in cdnsp_parse_exponent_interval() 798 interval += 3; /* 1 frame = 2^3 uframes */ in cdnsp_parse_exponent_interval() 801 if (interval > 12) in cdnsp_parse_exponent_interval() 802 interval = 12; in cdnsp_parse_exponent_interval() 804 return interval; in cdnsp_parse_exponent_interval() 817 unsigned int interval; in cdnsp_microframes_to_exponent() local 819 interval = fls(desc_interval) - 1; in cdnsp_microframes_to_exponent() [all …]
|
/drivers/gpu/drm/msm/adreno/ |
D | a6xx_gmu.h | 130 #define gmu_poll_timeout(gmu, addr, val, cond, interval, timeout) \ argument 132 interval, timeout) 144 #define gmu_poll_timeout_rscc(gmu, addr, val, cond, interval, timeout) \ argument 146 interval, timeout)
|
/drivers/power/supply/ |
D | da9150-fg.c | 80 u32 interval; member 362 schedule_delayed_work(&fg->work, msecs_to_jiffies(fg->interval)); in da9150_fg_work() 485 fg->interval = fg_pdata->update_interval; in da9150_fg_probe() 508 if (fg->interval) { in da9150_fg_probe() 511 msecs_to_jiffies(fg->interval)); in da9150_fg_probe() 532 if (fg->interval) in da9150_fg_probe() 542 if (fg->interval) in da9150_fg_remove() 556 if (fg->interval) in da9150_fg_resume()
|
/drivers/input/joystick/iforce/ |
D | iforce-ff.c | 280 || old->trigger.interval != new->trigger.interval in need_core() 292 u16 interval, u16 direction) in make_core() argument 298 interval = TIME_SCALE(interval); in make_core() 309 data[6] = LO(interval); in make_core() 310 data[7] = HI(interval); in make_core() 389 effect->trigger.interval, in iforce_upload_periodic() 449 effect->trigger.interval, in iforce_upload_constant() 513 effect->trigger.button, effect->trigger.interval, in iforce_upload_condition()
|
/drivers/watchdog/ |
D | wdrtas.c | 72 static int wdrtas_set_interval(int interval) in wdrtas_set_interval() argument 78 interval = (interval + 59) / 60; in wdrtas_set_interval() 81 WDRTAS_SURVEILLANCE_IND, 0, interval); in wdrtas_set_interval() 84 interval, result); in wdrtas_set_interval()
|