/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 | 194 struct usnic_uiom_interval_node *interval, *tmp; in usnic_uiom_unmap_sorted_intervals() local 197 list_for_each_entry_safe(interval, tmp, intervals, link) { in usnic_uiom_unmap_sorted_intervals() 198 va = interval->start << PAGE_SHIFT; in usnic_uiom_unmap_sorted_intervals() 199 size = ((interval->last - interval->start) + 1) << PAGE_SHIFT; in usnic_uiom_unmap_sorted_intervals() 216 struct usnic_uiom_interval_node *interval, *tmp; in __usnic_uiom_reg_release() local 229 list_for_each_entry_safe(interval, tmp, &rm_intervals, link) { in __usnic_uiom_reg_release() 230 if (interval->flags & IOMMU_WRITE) in __usnic_uiom_reg_release() 232 list_del(&interval->link); in __usnic_uiom_reg_release() 233 kfree(interval); in __usnic_uiom_reg_release()
|
/drivers/net/ethernet/engleder/ |
D | tsnep_selftests.c | 202 *next += gcl->operation[i].interval; in get_operation() 368 qopt->entries[0].interval = 200000; in tsnep_test_taprio() 370 qopt->entries[1].interval = 800000; in tsnep_test_taprio() 372 qopt->entries[2].interval = 240000; in tsnep_test_taprio() 374 qopt->entries[3].interval = 80000; in tsnep_test_taprio() 376 qopt->entries[4].interval = 70000; in tsnep_test_taprio() 378 qopt->entries[5].interval = 60000; in tsnep_test_taprio() 380 qopt->entries[6].interval = 50000; in tsnep_test_taprio() 390 qopt->entries[0].interval = 23842; in tsnep_test_taprio() 392 qopt->entries[1].interval = 13482; in tsnep_test_taprio() [all …]
|
D | tsnep_tc.c | 26 if (qopt->entries[i].interval < TSNEP_GCL_MIN_INTERVAL) in tsnep_validate_gcl() 28 cycle_time += qopt->entries[i].interval; in tsnep_validate_gcl() 39 u32 properties, u32 interval, bool flush) in tsnep_write_gcl_operation() argument 45 gcl->operation[index].interval = interval; in tsnep_write_gcl_operation() 48 iowrite32(interval, addr + sizeof(u32)); in tsnep_write_gcl_operation() 75 duration += gcl->operation[index].interval; in tsnep_change_duration() 105 qopt->entries[i].interval, true); in tsnep_write_gcl() 169 change -= gcl->operation[index].interval; in tsnep_set_gcl_change() 204 u64 change, u32 interval) in tsnep_insert_gcl_operation() argument 214 interval, false); in tsnep_insert_gcl_operation() [all …]
|
/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/dwc2/ |
D | hcd_queue.c | 204 int interval, int start, bool only_one_period) in pmap_schedule() argument 215 interval = gcd(interval, periods_in_map); in pmap_schedule() 217 interval_bits = bits_per_period * interval; in pmap_schedule() 218 to_reserve = periods_in_map / interval; in pmap_schedule() 312 int interval, int start) in pmap_unschedule() argument 319 interval = gcd(interval, periods_in_map); in pmap_unschedule() 321 interval_bits = bits_per_period * interval; in pmap_unschedule() 322 to_release = periods_in_map / interval; in pmap_unschedule() 1062 u16 interval; in dwc2_pick_first_frame() local 1102 interval = gcd(qh->host_interval, DWC2_HS_SCHEDULE_UFRAMES); in dwc2_pick_first_frame() [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/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() 716 (kernelmode) ? interval*1000 : 0); in acerhdf_register_thermal() 831 module_param_cb(interval, &interval_ops, &interval, 0600); 832 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 172 ret = regmap_read(iqs62x->regmap, iqs62x->dev_desc->interval, in iqs62x_keys_init() 177 iqs62x_keys->interval = val; in iqs62x_keys_init() 210 event_data->interval == iqs62x_keys->interval) in iqs62x_keys_notifier() 226 if (event_data->interval == iqs62x_keys->interval) in iqs62x_keys_notifier() 245 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 | 545 if ((urb->interval < 6) in usb_submit_urb() 550 if (urb->interval <= 0) in usb_submit_urb() 559 if (urb->interval > (1 << 15)) in usb_submit_urb() 564 if (urb->interval > 16) in usb_submit_urb() 569 if (urb->interval > (1024 * 8)) in usb_submit_urb() 570 urb->interval = 1024 * 8; in usb_submit_urb() 576 if (urb->interval > 255) in usb_submit_urb() 581 if (urb->interval > 1024) in usb_submit_urb() 582 urb->interval = 1024; in usb_submit_urb() 592 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/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() 647 div_s64_rem(entries[i].interval, in sja1105_vl_gate() 656 if (!entries[i].interval) { in sja1105_vl_gate() 663 if (ns_to_sja1105_delta(entries[i].interval) > in sja1105_vl_gate()
|
/drivers/media/usb/uvc/ |
D | uvc_status.c | 245 urb->interval = dev->int_ep->desc.bInterval; in uvc_status_complete() 256 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 | 113 static u32 uvc_try_frame_interval(struct uvc_frame *frame, u32 interval) in uvc_try_frame_interval() argument 121 dist = interval > frame->dwFrameInterval[i] in uvc_try_frame_interval() 122 ? interval - frame->dwFrameInterval[i] in uvc_try_frame_interval() 123 : frame->dwFrameInterval[i] - interval; in uvc_try_frame_interval() 131 interval = frame->dwFrameInterval[i-1]; in uvc_try_frame_interval() 137 interval = min + (interval - min + step/2) / step * step; in uvc_try_frame_interval() 138 if (interval > max) in uvc_try_frame_interval() 139 interval = max; in uvc_try_frame_interval() 142 return interval; in uvc_try_frame_interval() 169 u32 interval; in uvc_v4l2_try_format() local [all …]
|
/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/net/wireless/purelifi/plfxlc/ |
D | chip.c | 28 int plfxlc_set_beacon_interval(struct plfxlc_chip *chip, u16 interval, in plfxlc_set_beacon_interval() argument 31 if (!interval || in plfxlc_set_beacon_interval() 32 (chip->beacon_set && chip->beacon_interval == interval)) in plfxlc_set_beacon_interval() 35 chip->beacon_interval = interval; in plfxlc_set_beacon_interval()
|
/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)
|