/drivers/leds/ |
D | leds-ti-lmu-common.c | 57 static unsigned int ti_lmu_common_convert_ramp_to_index(unsigned int usec) in ti_lmu_common_convert_ramp_to_index() argument 62 if (usec <= ramp_table[0]) in ti_lmu_common_convert_ramp_to_index() 65 if (usec > ramp_table[size - 1]) in ti_lmu_common_convert_ramp_to_index() 69 if (usec == ramp_table[i]) in ti_lmu_common_convert_ramp_to_index() 73 if (usec > ramp_table[i - 1] && usec < ramp_table[i]) { in ti_lmu_common_convert_ramp_to_index() 74 if (usec - ramp_table[i - 1] < ramp_table[i] - usec) in ti_lmu_common_convert_ramp_to_index()
|
/drivers/idle/ |
D | intel_idle.c | 1217 unsigned int usec; in bxt_idle_state_table_update() local 1220 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1221 if (usec) { in bxt_idle_state_table_update() 1222 bxt_cstates[2].exit_latency = usec; in bxt_idle_state_table_update() 1223 bxt_cstates[2].target_residency = usec; in bxt_idle_state_table_update() 1227 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1228 if (usec) { in bxt_idle_state_table_update() 1229 bxt_cstates[3].exit_latency = usec; in bxt_idle_state_table_update() 1230 bxt_cstates[3].target_residency = usec; in bxt_idle_state_table_update() 1234 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() [all …]
|
/drivers/hv/ |
D | connection.c | 399 u32 usec = 1; in vmbus_post_msg() local 444 if (can_sleep && usec > 1000) in vmbus_post_msg() 445 msleep(usec / 1000); in vmbus_post_msg() 446 else if (usec < MAX_UDELAY_MS * 1000) in vmbus_post_msg() 447 udelay(usec); in vmbus_post_msg() 449 mdelay(usec / 1000); in vmbus_post_msg() 452 usec *= 2; in vmbus_post_msg()
|
/drivers/iio/light/ |
D | bh1750.c | 70 static int bh1750_change_int_time(struct bh1750_data *data, int usec) in bh1750_change_int_time() argument 77 if ((usec % chip_info->mtreg_to_usec) != 0) in bh1750_change_int_time() 80 val = usec / chip_info->mtreg_to_usec; in bh1750_change_int_time() 234 int ret, usec; in bh1750_probe() local 251 usec = data->chip_info->mtreg_to_usec * data->chip_info->mtreg_default; in bh1750_probe() 252 ret = bh1750_change_int_time(data, usec); in bh1750_probe()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
D | hwsq.c | 169 u8 shift = 0, usec = nsec / 1000; in nvkm_hwsq_nsec() local 170 while (usec & ~3) { in nvkm_hwsq_nsec() 171 usec >>= 2; in nvkm_hwsq_nsec() 176 hwsq_cmd(hwsq, 1, (u8[]){ 0x00 | (shift << 2) | usec }); in nvkm_hwsq_nsec()
|
/drivers/net/wireless/intel/iwlwifi/fw/ |
D | dbg.h | 184 u32 usec = le16_to_cpu(trig->trig_dis_ms) * USEC_PER_MSEC; in iwl_fw_dbg_trigger_check_stop() local 189 if (iwl_fw_dbg_no_trig_window(fwrt, le32_to_cpu(trig->id), usec)) { in iwl_fw_dbg_trigger_check_stop() 230 u32 usec; in iwl_fw_ini_trigger_on() local 238 usec = le32_to_cpu(trig->ignore_consec); in iwl_fw_ini_trigger_on() 240 if (iwl_fw_dbg_no_trig_window(fwrt, id, usec)) { in iwl_fw_ini_trigger_on()
|
/drivers/parport/ |
D | ieee1284.c | 116 int usec) in parport_poll_peripheral() argument 119 int count = usec / 5 + 2; in parport_poll_peripheral() 167 int usec; in parport_wait_peripheral() local 171 usec = port->physport->spintime; /* usecs of fast polling */ in parport_wait_peripheral() 175 usec = 35000; in parport_wait_peripheral() 183 ret = parport_poll_peripheral (port, mask, result, usec); in parport_wait_peripheral()
|
/drivers/staging/greybus/tools/ |
D | README.loopback | 182 ap-latency usec: min=1826 max=2560 average=2146.000000 jitter=734 183 apbridge-latency usec: min=1620 max=1982 average=1882.099976 jitter=362 184 gpbridge-latency usec: min=56 max=57 average=57.099998 jitter=1 196 ap-latency usec: min=1856 max=2514 average=2185.699951 jitter=658 197 apbridge-latency usec: min=1460 max=2296 average=1828.599976 jitter=836 198 gpbridge-latency usec: min=56 max=57 average=57.099998 jitter=1
|
/drivers/usb/phy/ |
D | phy-ulpi-viewport.c | 23 unsigned long usec = 2000; in ulpi_viewport_wait() local 25 while (usec--) { in ulpi_viewport_wait()
|
/drivers/usb/chipidea/ |
D | ulpi.c | 21 unsigned long usec = 10000; in ci_ulpi_wait() local 23 while (usec--) { in ci_ulpi_wait()
|
/drivers/input/ |
D | input-compat.c | 25 event->input_event_usec = compat_event.usec; in input_event_from_user() 45 compat_event.usec = event->input_event_usec; in input_event_to_user()
|
D | input-compat.h | 19 compat_ulong_t usec; member
|
/drivers/infiniband/core/ |
D | cq.c | 39 u16 usec = rdma_dim_prof[dim->profile_ix].usec; in ib_cq_rdma_dim_work() local 44 cq->device->ops.modify_cq(cq, comps, usec); in ib_cq_rdma_dim_work()
|
/drivers/phy/samsung/ |
D | phy-exynos5-usbdrd.c | 559 u32 usec = 100; in crport_handshake() local 570 } while (usec-- > 0); in crport_handshake() 572 if (!usec) { in crport_handshake() 578 usec = 100; in crport_handshake() 588 } while (usec-- > 0); in crport_handshake() 590 if (!usec) { in crport_handshake()
|
/drivers/net/wireless/ath/ath5k/ |
D | reset.c | 101 ath5k_hw_htoclock(struct ath5k_hw *ah, unsigned int usec) in ath5k_hw_htoclock() argument 104 return usec * common->clockrate; in ath5k_hw_htoclock() 136 u32 usec_reg, txlat, rxlat, usec, clock, sclock, txf2txs; in ath5k_hw_init_core_clock() local 176 usec = clock - 1; in ath5k_hw_init_core_clock() 177 usec = AR5K_REG_SM(usec, AR5K_USEC_1); in ath5k_hw_init_core_clock() 256 usec_reg = (usec | sclock | txlat | rxlat); in ath5k_hw_init_core_clock()
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | devices.c | 85 static u32 iwl_usecs_to_beacons(struct iwl_priv *priv, u32 usec, in iwl_usecs_to_beacons() argument 92 if (!interval || !usec) in iwl_usecs_to_beacons() 95 quot = (usec / interval) & in iwl_usecs_to_beacons() 98 rem = (usec % interval) & iwl_beacon_time_mask_low(priv, in iwl_usecs_to_beacons()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_dim.c | 26 cpr->rx_ring_coal.coal_ticks = cur_moder.usec; in bnxt_dim_work()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_dim.c | 40 mlx5_core_modify_cq_moderation(mdev, mcq, moder.usec, moder.pkts); in mlx5e_complete_dim_work()
|
/drivers/hid/intel-ish-hid/ipc/ |
D | ipc.c | 552 uint64_t usec; in _ish_sync_fw_clock() local 558 usec = ktime_to_us(ktime_get_boottime()); in _ish_sync_fw_clock() 559 ipc_send_mng_msg(dev, MNG_SYNC_FW_CLOCK, &usec, sizeof(uint64_t)); in _ish_sync_fw_clock()
|
/drivers/media/pci/solo6x10/ |
D | solo6x10-core.c | 52 u32 sec, usec; in solo_timer_sync() local 65 usec = solo_reg_read(solo_dev, SOLO_TIMER_USEC); in solo_timer_sync() 71 + ((s32)(ts.tv_nsec / NSEC_PER_USEC) - (s32)usec); in solo_timer_sync()
|
/drivers/usb/gadget/udc/bdc/ |
D | bdc_core.c | 32 static int poll_oip(struct bdc *bdc, int usec) in poll_oip() argument 36 while (usec) { in poll_oip() 45 usec -= 10; in poll_oip()
|
/drivers/mtd/chips/ |
D | cfi_cmdset_0002.c | 1062 unsigned long adr, int usec) in xip_udelay() argument 1086 usec -= xip_elapsed_since(start); in xip_udelay() 1140 } else if (usec >= 1000000/HZ) { in xip_udelay() 1150 && xip_elapsed_since(start) < usec); in xip_udelay() 1153 #define UDELAY(map, chip, adr, usec) xip_udelay(map, chip, adr, usec) argument 1165 #define INVALIDATE_CACHE_UDELAY(map, chip, adr, len, usec) \ argument 1166 UDELAY(map, chip, adr, usec) 1191 #define UDELAY(map, chip, adr, usec) \ argument 1194 cfi_udelay(usec); \ 1198 #define INVALIDATE_CACHE_UDELAY(map, chip, adr, len, usec) \ argument [all …]
|
D | cfi_cmdset_0001.c | 1144 unsigned long usec, suspended, start, done; in xip_wait_for_operation() local 1148 usec = chip_op_time_max; in xip_wait_for_operation() 1149 if (usec == 0) in xip_wait_for_operation() 1150 usec = 500000; in xip_wait_for_operation() 1169 usec -= done; in xip_wait_for_operation() 1232 } else if (usec >= 1000000/HZ) { in xip_wait_for_operation() 1243 && done < usec); in xip_wait_for_operation() 1245 return (done >= usec) ? -ETIME : 0; in xip_wait_for_operation() 1258 #define INVAL_CACHE_AND_WAIT(map, chip, cmd_adr, inval_adr, inval_len, usec, usec_max) \ argument
|
/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_ethtool.c | 266 static u32 sxgbe_usec2riwt(u32 usec, struct sxgbe_priv_data *priv) in sxgbe_usec2riwt() argument 273 return (usec * (clk / 1000000)) / 256; in sxgbe_usec2riwt()
|
/drivers/hwmon/ |
D | aspeed-pwm-tacho.c | 527 u32 raw_data, tach_div, clk_source, msec, usec, val; in aspeed_get_fan_tach_ch_rpm() local 538 usec = msec * 1000; in aspeed_get_fan_tach_ch_rpm() 546 usec); in aspeed_get_fan_tach_ch_rpm()
|