Home
last modified time | relevance | path

Searched refs:usec (Results 1 – 25 of 63) sorted by relevance

123

/drivers/idle/
Dintel_idle.c1255 unsigned int usec; in bxt_idle_state_table_update() local
1258 usec = irtl_2_usec(msr); in bxt_idle_state_table_update()
1259 if (usec) { in bxt_idle_state_table_update()
1260 bxt_cstates[2].exit_latency = usec; in bxt_idle_state_table_update()
1261 bxt_cstates[2].target_residency = usec; in bxt_idle_state_table_update()
1265 usec = irtl_2_usec(msr); in bxt_idle_state_table_update()
1266 if (usec) { in bxt_idle_state_table_update()
1267 bxt_cstates[3].exit_latency = usec; in bxt_idle_state_table_update()
1268 bxt_cstates[3].target_residency = usec; in bxt_idle_state_table_update()
1272 usec = irtl_2_usec(msr); in bxt_idle_state_table_update()
[all …]
/drivers/hv/
Dconnection.c443 u32 usec = 1; in vmbus_post_msg() local
476 if (can_sleep && usec > 1000) in vmbus_post_msg()
477 msleep(usec / 1000); in vmbus_post_msg()
478 else if (usec < MAX_UDELAY_MS * 1000) in vmbus_post_msg()
479 udelay(usec); in vmbus_post_msg()
481 mdelay(usec / 1000); in vmbus_post_msg()
483 if (usec < 256000) in vmbus_post_msg()
484 usec *= 2; in vmbus_post_msg()
/drivers/iio/light/
Dbh1750.c73 static int bh1750_change_int_time(struct bh1750_data *data, int usec) in bh1750_change_int_time() argument
80 if ((usec % chip_info->mtreg_to_usec) != 0) in bh1750_change_int_time()
83 val = usec / chip_info->mtreg_to_usec; in bh1750_change_int_time()
238 int ret, usec; in bh1750_probe() local
255 usec = data->chip_info->mtreg_to_usec * data->chip_info->mtreg_default; in bh1750_probe()
256 ret = bh1750_change_int_time(data, usec); in bh1750_probe()
/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
Dhwsq.c169 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/isdn/hardware/eicon/
Ddebug.c37 dword usec; member
372 dword sec, usec; in DI_register() local
376 diva_os_get_time(&sec, &usec); in DI_register()
426 clients[free_id].usec = usec; in DI_register()
465 pmsg->time_usec = usec; in DI_register()
483 dword sec, usec; in DI_deregister() local
488 diva_os_get_time(&sec, &usec); in DI_deregister()
537 pmsg->time_usec = usec; in DI_deregister()
574 dword sec, usec; in DI_format() local
594 diva_os_get_time(&sec, &usec); in DI_format()
[all …]
Ddivamnt.c88 void diva_os_get_time(dword *sec, dword *usec) in diva_os_get_time() argument
95 *usec = (dword) (time.tv_nsec / NSEC_PER_USEC); in diva_os_get_time()
Dplatform.h268 void diva_os_get_time(dword *sec, dword *usec);
/drivers/parport/
Dieee1284.c123 int usec) in parport_poll_peripheral() argument
126 int count = usec / 5 + 2; in parport_poll_peripheral()
174 int usec; in parport_wait_peripheral() local
178 usec = port->physport->spintime; /* usecs of fast polling */ in parport_wait_peripheral()
182 usec = 35000; in parport_wait_peripheral()
190 ret = parport_poll_peripheral (port, mask, result, usec); in parport_wait_peripheral()
/drivers/staging/greybus/tools/
DREADME.loopback182 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/
Dphy-ulpi-viewport.c32 unsigned long usec = 2000; in ulpi_viewport_wait() local
34 while (usec--) { in ulpi_viewport_wait()
/drivers/net/wireless/ath/ath5k/
Dreset.c101 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/
Ddevices.c99 static u32 iwl_usecs_to_beacons(struct iwl_priv *priv, u32 usec, in iwl_usecs_to_beacons() argument
106 if (!interval || !usec) in iwl_usecs_to_beacons()
109 quot = (usec / interval) & in iwl_usecs_to_beacons()
112 rem = (usec % interval) & iwl_beacon_time_mask_low(priv, in iwl_usecs_to_beacons()
/drivers/staging/greybus/
Dgpio.c224 request.usec = cpu_to_le16(debounce_usec); in gb_gpio_set_debounce_operation()
481 u16 usec; in gb_gpio_set_debounce() local
485 usec = (u16)debounce; in gb_gpio_set_debounce()
487 return gb_gpio_set_debounce_operation(ggc, (u8)offset, usec); in gb_gpio_set_debounce()
/drivers/usb/gadget/udc/bdc/
Dbdc_core.c35 static int poll_oip(struct bdc *bdc, int usec) in poll_oip() argument
39 while (usec) { in poll_oip()
48 usec -= 10; in poll_oip()
/drivers/mtd/chips/
Dcfi_cmdset_0002.c957 unsigned long adr, int usec) in xip_udelay() argument
981 usec -= xip_elapsed_since(start); in xip_udelay()
1035 } else if (usec >= 1000000/HZ) { in xip_udelay()
1045 && xip_elapsed_since(start) < usec); in xip_udelay()
1048 #define UDELAY(map, chip, adr, usec) xip_udelay(map, chip, adr, usec) argument
1060 #define INVALIDATE_CACHE_UDELAY(map, chip, adr, len, usec) \ argument
1061 UDELAY(map, chip, adr, usec)
1086 #define UDELAY(map, chip, adr, usec) \ argument
1089 cfi_udelay(usec); \
1093 #define INVALIDATE_CACHE_UDELAY(map, chip, adr, len, usec) \ argument
[all …]
Dcfi_cmdset_0001.c1119 unsigned long usec, suspended, start, done; in xip_wait_for_operation() local
1123 usec = chip_op_time_max; in xip_wait_for_operation()
1124 if (usec == 0) in xip_wait_for_operation()
1125 usec = 500000; in xip_wait_for_operation()
1144 usec -= done; in xip_wait_for_operation()
1207 } else if (usec >= 1000000/HZ) { in xip_wait_for_operation()
1218 && done < usec); in xip_wait_for_operation()
1220 return (done >= usec) ? -ETIME : 0; in xip_wait_for_operation()
1233 #define INVAL_CACHE_AND_WAIT(map, chip, cmd_adr, inval_adr, inval_len, usec, usec_max) \ argument
/drivers/hid/intel-ish-hid/ipc/
Dipc.c524 uint64_t usec; in _ish_sync_fw_clock() local
531 usec = (timespec_to_ns(&ts)) / NSEC_PER_USEC; in _ish_sync_fw_clock()
532 ipc_send_mng_msg(dev, MNG_SYNC_FW_CLOCK, &usec, sizeof(uint64_t)); in _ish_sync_fw_clock()
/drivers/media/pci/solo6x10/
Dsolo6x10-core.c60 u32 sec, usec; in solo_timer_sync() local
73 usec = solo_reg_read(solo_dev, SOLO_TIMER_USEC); in solo_timer_sync()
79 + ((long)(ts.tv_nsec / NSEC_PER_USEC) - (long)usec); in solo_timer_sync()
/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_ethtool.c269 static u32 sxgbe_usec2riwt(u32 usec, struct sxgbe_priv_data *priv) in sxgbe_usec2riwt() argument
276 return (usec * (clk / 1000000)) / 256; in sxgbe_usec2riwt()
/drivers/staging/lustre/lustre/ptlrpc/
Devents.c256 __u32 usec = req->rq_arrival_time.tv_nsec / NSEC_PER_USEC / 16; /* usec / 16 */ in ptlrpc_req_add_history() local
264 (usec << REQS_USEC_SHIFT) | in ptlrpc_req_add_history()
/drivers/net/ethernet/cisco/enic/
Dvnic_dev.h164 u32 vnic_dev_intr_coal_timer_usec_to_hw(struct vnic_dev *vdev, u32 usec);
/drivers/usb/host/
Dehci-hcd.c161 u32 mask, u32 done, int usec) in ehci_handshake() argument
173 usec--; in ehci_handshake()
174 } while (usec > 0); in ehci_handshake()
/drivers/net/xen-netback/
Dxenbus.c679 unsigned long *bytes, unsigned long *usec) in xen_net_read_rate() argument
687 *usec = 0; in xen_net_read_rate()
704 *usec = u; in xen_net_read_rate()
/drivers/net/wireless/marvell/libertas/
DREADME106 p2 is Wakeup offset in usec (0-65535)
107 p3 is Clock stabilization time in usec (0-65535)
/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c595 coal->rx_coalesce_usecs = priv->params.rx_cq_moderation.usec; in mlx5e_get_coalesce()
597 coal->tx_coalesce_usecs = priv->params.tx_cq_moderation.usec; in mlx5e_get_coalesce()
628 priv->params.tx_cq_moderation.usec = coal->tx_coalesce_usecs; in mlx5e_set_coalesce()
630 priv->params.rx_cq_moderation.usec = coal->rx_coalesce_usecs; in mlx5e_set_coalesce()

123