| /drivers/leds/ |
| A 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/clocksource/ |
| A D | timer-tegra186.c | 93 struct clocksource usec; member 402 usec); in tegra186_timer_usec_read() 409 tegra->usec.name = "usec"; in tegra186_timer_usec_init() 410 tegra->usec.rating = 300; in tegra186_timer_usec_init() 411 tegra->usec.read = tegra186_timer_usec_read; in tegra186_timer_usec_init() 412 tegra->usec.mask = CLOCKSOURCE_MASK(32); in tegra186_timer_usec_init() 413 tegra->usec.flags = CLOCK_SOURCE_IS_CONTINUOUS; in tegra186_timer_usec_init() 415 return clocksource_register_hz(&tegra->usec, USEC_PER_SEC); in tegra186_timer_usec_init() 479 clocksource_unregister(&tegra->usec); in tegra186_timer_remove()
|
| /drivers/hv/ |
| A D | connection.c | 442 u32 usec = 1; in vmbus_post_msg() local 487 if (can_sleep && usec > 1000) in vmbus_post_msg() 488 msleep(usec / 1000); in vmbus_post_msg() 489 else if (usec < MAX_UDELAY_MS * 1000) in vmbus_post_msg() 490 udelay(usec); in vmbus_post_msg() 492 mdelay(usec / 1000); in vmbus_post_msg() 495 usec *= 2; in vmbus_post_msg()
|
| /drivers/iio/light/ |
| A D | bh1750.c | 75 static int bh1750_change_int_time(struct bh1750_data *data, int usec) in bh1750_change_int_time() argument 82 if ((usec % chip_info->mtreg_to_usec) != 0) in bh1750_change_int_time() 85 val = usec / chip_info->mtreg_to_usec; in bh1750_change_int_time() 239 int ret, usec; in bh1750_probe() local 275 usec = data->chip_info->mtreg_to_usec * data->chip_info->mtreg_default; in bh1750_probe() 276 ret = bh1750_change_int_time(data, usec); in bh1750_probe()
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
| A 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/idle/ |
| A D | intel_idle.c | 1943 unsigned int usec; in bxt_idle_state_table_update() local 1946 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1947 if (usec) { in bxt_idle_state_table_update() 1953 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1954 if (usec) { in bxt_idle_state_table_update() 1960 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1961 if (usec) { in bxt_idle_state_table_update() 1967 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1968 if (usec) { in bxt_idle_state_table_update() 1974 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() [all …]
|
| /drivers/net/ethernet/fungible/funeth/ |
| A D | funeth_txrx.h | 45 #define FUN_IRQ_CQ_DB(usec, pkts) \ argument 46 (FUN_DB_IRQ_ARM_F | ((usec) << FUN_DB_INTCOAL_USEC_S) | \ 50 #define FUN_IRQ_SQ_DB(usec, pkts) \ argument 52 ((usec) << FUN_DB_INTCOAL_USEC_S) | \
|
| /drivers/parport/ |
| A D | ieee1284.c | 110 int usec) in parport_poll_peripheral() argument 113 int count = usec / 5 + 2; in parport_poll_peripheral() 161 int usec; in parport_wait_peripheral() local 165 usec = port->physport->spintime; /* usecs of fast polling */ in parport_wait_peripheral() 169 usec = 35000; in parport_wait_peripheral() 177 ret = parport_poll_peripheral (port, mask, result, usec); in parport_wait_peripheral()
|
| /drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| A D | dp.c | 233 int tries = 0, usec = 0, i; in nvkm_dp_train_eq() local 238 usec = (data & DPCD_RC0E_AUX_RD_INTERVAL) * 4000; in nvkm_dp_train_eq() 252 usec = (lt->outp->dp.dpcd[DPCD_RC0E] & DPCD_RC0E_AUX_RD_INTERVAL) * 4000; in nvkm_dp_train_eq() 258 nvkm_dp_train_sense(lt, lt->pc2, usec ? usec : 400)) in nvkm_dp_train_eq() 280 int tries = 0, usec = 0, i; in nvkm_dp_train_cr() local 285 usec = (lt->outp->dp.dpcd[DPCD_RC0E] & DPCD_RC0E_AUX_RD_INTERVAL) * 4000; in nvkm_dp_train_cr() 289 nvkm_dp_train_sense(lt, false, usec ? usec : 100)) in nvkm_dp_train_cr()
|
| /drivers/staging/gpib/ni_usb/ |
| A D | ni_usb_gpib.c | 35 if (usec == 0) in ni_usb_timeout_msecs() 43 if (usec == 0) in ni_usb_timeout_code() 45 else if (usec <= 10) in ni_usb_timeout_code() 47 else if (usec <= 30) in ni_usb_timeout_code() 49 else if (usec <= 100) in ni_usb_timeout_code() 51 else if (usec <= 300) in ni_usb_timeout_code() 53 else if (usec <= 1000) in ni_usb_timeout_code() 55 else if (usec <= 3000) in ni_usb_timeout_code() 57 else if (usec <= 10000) in ni_usb_timeout_code() 59 else if (usec <= 30000) in ni_usb_timeout_code() [all …]
|
| /drivers/input/ |
| A 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()
|
| A D | input-compat.h | 19 compat_ulong_t usec; member
|
| /drivers/staging/gpib/include/ |
| A D | gpib_proto.h | 14 static inline unsigned long usec_to_jiffies(unsigned int usec) in usec_to_jiffies() argument 18 return 1 + (usec + usec_per_jiffy - 1) / usec_per_jiffy; in usec_to_jiffies()
|
| /drivers/usb/chipidea/ |
| A D | ulpi.c | 21 unsigned long usec = 10000; in ci_ulpi_wait() local 23 while (usec--) { in ci_ulpi_wait()
|
| /drivers/net/wireless/ath/ath5k/ |
| A 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/infiniband/core/ |
| A D | cq.c | 44 u16 usec = rdma_dim_prof[dim->profile_ix].usec; in ib_cq_rdma_dim_work() local 49 trace_cq_modify(cq, comps, usec); in ib_cq_rdma_dim_work() 50 cq->device->ops.modify_cq(cq, comps, usec); in ib_cq_rdma_dim_work()
|
| /drivers/net/ethernet/intel/igc/ |
| A D | igc_defines.h | 622 #define IGC_PTM_CTRL_SHRT_CYC(usec) (((usec) & 0x3f) << 2) argument 623 #define IGC_PTM_CTRL_PTM_TO(usec) (((usec) & 0xff) << 8) argument
|
| /drivers/hid/ |
| A D | hid-ft260.c | 373 int ret, usec, try = 100; in ft260_hid_output_report_check_status() local 387 usec = len * 9000 / dev->clock; in ft260_hid_output_report_check_status() 388 if (usec > 2000) { in ft260_hid_output_report_check_status() 389 usec -= 1500; in ft260_hid_output_report_check_status() 390 usleep_range(usec, usec + 100); in ft260_hid_output_report_check_status() 391 ft260_dbg("wait %d usec, len %d\n", usec, len); in ft260_hid_output_report_check_status()
|
| /drivers/net/wireless/intel/iwlwifi/dvm/ |
| A D | devices.c | 84 static u32 iwl_usecs_to_beacons(struct iwl_priv *priv, u32 usec, in iwl_usecs_to_beacons() argument 91 if (!interval || !usec) in iwl_usecs_to_beacons() 94 quot = (usec / interval) & in iwl_usecs_to_beacons() 97 rem = (usec % interval) & iwl_beacon_time_mask_low(priv, in iwl_usecs_to_beacons()
|
| /drivers/net/ethernet/broadcom/bnxt/ |
| A D | bnxt_dim.c | 26 cpr->rx_ring_coal.coal_ticks = cur_moder.usec; in bnxt_dim_work()
|
| /drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_ethtool.c | 603 coal->rx_coalesce_usecs = rx_moder->usec; in mlx5e_ethtool_get_coalesce() 609 coal->tx_coalesce_usecs = tx_moder->usec; in mlx5e_ethtool_get_coalesce() 652 coal->rx_coalesce_usecs = cur_moder.usec; in mlx5e_ethtool_get_per_queue_coalesce() 655 coal->rx_coalesce_usecs = c->rx_cq_moder.usec; in mlx5e_ethtool_get_per_queue_coalesce() 668 coal->tx_coalesce_usecs = cur_moder.usec; in mlx5e_ethtool_get_per_queue_coalesce() 672 coal->tx_coalesce_usecs = c->tx_cq_moder.usec; in mlx5e_ethtool_get_per_queue_coalesce() 708 moder->usec, moder->pkts, in mlx5e_set_priv_channels_tx_coalesce() 812 rx_moder->usec = coal->rx_coalesce_usecs; in mlx5e_ethtool_set_coalesce() 825 tx_moder->usec = coal->tx_coalesce_usecs; in mlx5e_ethtool_set_coalesce() 906 c->rx_cq_moder.usec = coal->rx_coalesce_usecs; in mlx5e_ethtool_set_per_queue_coalesce() [all …]
|
| /drivers/net/wireless/intel/iwlwifi/fw/ |
| A D | dbg.h | 115 u32 usec = le16_to_cpu(trig->trig_dis_ms) * USEC_PER_MSEC; in iwl_fw_dbg_trigger_check_stop() local 120 if (iwl_fw_dbg_no_trig_window(fwrt, le32_to_cpu(trig->id), usec)) { in iwl_fw_dbg_trigger_check_stop()
|
| /drivers/media/rc/ |
| A D | sunxi-cir.c | 150 static unsigned int sunxi_usec_to_ithr(unsigned int base_clk, unsigned int usec) in sunxi_usec_to_ithr() argument 153 return DIV_ROUND_UP((base_clk / (128 * 64)) * usec, USEC_PER_SEC) - 1; in sunxi_usec_to_ithr()
|
| /drivers/media/pci/solo6x10/ |
| A 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/mtd/chips/ |
| A D | cfi_cmdset_0002.c | 1057 unsigned long adr, int usec) in xip_udelay() argument 1081 usec -= xip_elapsed_since(start); in xip_udelay() 1135 } else if (usec >= 1000000/HZ) { in xip_udelay() 1145 && xip_elapsed_since(start) < usec); in xip_udelay() 1148 #define UDELAY(map, chip, adr, usec) xip_udelay(map, chip, adr, usec) argument 1160 #define INVALIDATE_CACHE_UDELAY(map, chip, adr, len, usec) \ argument 1161 UDELAY(map, chip, adr, usec) 1186 #define UDELAY(map, chip, adr, usec) \ argument 1189 cfi_udelay(usec); \ 1193 #define INVALIDATE_CACHE_UDELAY(map, chip, adr, len, usec) \ argument [all …]
|