Searched refs:usec (Results 1 - 25 of 42) sorted by relevance

12

/drivers/gpu/drm/nouveau/
H A Dnouveau_hwsq.h60 hwsq_usec(struct hwsq_ucode *hwsq, u8 usec) argument
63 while (usec & ~3) {
64 usec >>= 2;
68 *hwsq->ptr.u08++ = (shift << 2) | usec;
/drivers/staging/cxt1e1/
H A Dfunctions.c129 int OS_init_watchdog(struct watchdog *wdp, void (*f) (void *), void *c, int usec) argument
133 wdp->ticks = (HZ) * (usec / 1000) / 1000;
146 OS_uwait (int usec, char *description) argument
150 if (usec >= 1000)
152 mdelay (usec / 1000);
154 tmp = (usec / 1000) * 1000; /* round */
155 tmp = usec - tmp; /* residual */
162 udelay (usec);
H A Dsbecom_inline_linux.h206 void OS_uwait (int usec, char *description);
211 int OS_init_watchdog(struct watchdog *wdp, void (*f) (void *), void *ci, int usec);
/drivers/usb/otg/
H A Dulpi_viewport.c31 unsigned long usec = 2000; local
33 while (usec--) {
/drivers/isdn/hardware/eicon/
H A Ddivamnt.c89 void diva_os_get_time(dword *sec, dword *usec) argument
101 *usec = (dword) (tv.tv_usec - start_time.tv_usec);
105 *usec = (dword) (tv.tv_usec - start_time.tv_usec);
107 *usec = 0;
111 *usec = (dword) tv.tv_usec;
H A Ddebug.c37 dword usec; member in struct:_diva_maint_client
376 dword sec, usec; local
380 diva_os_get_time(&sec, &usec);
430 clients[free_id].usec = usec;
469 pmsg->time_usec = usec;
487 dword sec, usec; local
492 diva_os_get_time(&sec, &usec);
541 pmsg->time_usec = usec;
578 dword sec, usec; local
863 dword sec, usec, logical, serial, org_mask; local
1029 dword sec, usec; local
1798 dword sec, usec; local
[all...]
H A Dplatform.h271 void diva_os_get_time(dword *sec, dword *usec);
/drivers/parport/
H A Dieee1284.c101 * @usec: timeout
110 * using udelay(). It currently has a resolution of 5usec.
123 int usec)
126 int count = usec / 5 + 2;
159 * time is configurable (using /proc), and defaults to 500usec.
174 int usec; local
178 usec = port->physport->spintime; /* usecs of fast polling */
182 usec = 35000;
190 ret = parport_poll_peripheral (port, mask, result, usec);
120 parport_poll_peripheral(struct parport *port, unsigned char mask, unsigned char result, int usec) argument
/drivers/net/xen-netback/
H A Dxenbus.c270 unsigned long *bytes, unsigned long *usec)
278 *usec = 0;
295 *usec = u;
269 xen_net_read_rate(struct xenbus_device *dev, unsigned long *bytes, unsigned long *usec) argument
/drivers/usb/host/
H A Dehci-hcd.c173 * @usec: timeout in microseconds
178 * handshake done). There are two failure modes: "usec" have passed (major
186 u32 mask, u32 done, int usec)
198 usec--;
199 } while (usec > 0);
249 int usec)
259 error = handshake(ehci, ptr, mask, done, usec);
271 int usec)
279 u32 mask, u32 done, int usec)
283 error = handshake(ehci, ptr, mask, done, usec);
185 handshake(struct ehci_hcd *ehci, void __iomem *ptr, u32 mask, u32 done, int usec) argument
247 handshake_for_broken_root_hub(struct ehci_hcd *ehci, void __iomem *ptr, u32 mask, u32 done, int usec) argument
269 handshake_for_broken_root_hub(struct ehci_hcd *ehci, void __iomem *ptr, u32 mask, u32 done, int usec) argument
278 handshake_on_error_set_halt(struct ehci_hcd *ehci, void __iomem *ptr, u32 mask, u32 done, int usec) argument
[all...]
/drivers/net/wireless/ath/ath5k/
H A Dreset.c89 * ath5k_hw_htoclock() - Translate usec to hw clock units
91 * @usec: value in microseconds
99 ath5k_hw_htoclock(struct ath5k_hw *ah, unsigned int usec) argument
102 return usec * common->clockrate;
106 * ath5k_hw_clocktoh() - Translate hw clock units to usec
126 * Initialize core clock parameters (usec, usec32, latencies etc),
134 u32 usec_reg, txlat, rxlat, usec, clock, sclock, txf2txs; local
174 usec = clock - 1;
175 usec = AR5K_REG_SM(usec, AR5K_USEC_
[all...]
/drivers/net/ethernet/cisco/enic/
H A Dvnic_dev.h121 u32 vnic_dev_intr_coal_timer_usec_to_hw(struct vnic_dev *vdev, u32 usec);
H A Dvnic_dev.c906 u32 vnic_dev_intr_coal_timer_usec_to_hw(struct vnic_dev *vdev, u32 usec) argument
908 return (usec * vdev->intr_coal_timer_info.mul) /
/drivers/net/wireless/iwlwifi/
H A Diwl-core.h203 u32 iwl_usecs_to_beacons(struct iwl_priv *priv, u32 usec, u32 beacon_interval);
H A Diwl-core.c1405 * time in usec will be changed into a 32-bit value in extended:internal format
1407 * the internal part is the time in usec within one beacon interval
1409 u32 iwl_usecs_to_beacons(struct iwl_priv *priv, u32 usec, u32 beacon_interval) argument
1415 if (!interval || !usec)
1418 quot = (usec / interval) &
1421 rem = (usec % interval) & iwl_beacon_time_mask_low(priv,
/drivers/mtd/chips/
H A Dcfi_cmdset_0002.c833 unsigned long adr, int usec)
857 usec -= xip_elapsed_since(start);
909 } else if (usec >= 1000000/HZ) {
919 && xip_elapsed_since(start) < usec);
922 #define UDELAY(map, chip, adr, usec) xip_udelay(map, chip, adr, usec)
934 #define INVALIDATE_CACHE_UDELAY(map, chip, adr, len, usec) \
935 UDELAY(map, chip, adr, usec)
960 #define UDELAY(map, chip, adr, usec) \
963 cfi_udelay(usec); \
832 xip_udelay(struct map_info *map, struct flchip *chip, unsigned long adr, int usec) argument
[all...]
H A Dcfi_cmdset_0001.c1081 unsigned long usec, suspended, start, done; local
1085 usec = chip_op_time_max;
1086 if (usec == 0)
1087 usec = 500000;
1106 usec -= done;
1169 } else if (usec >= 1000000/HZ) {
1180 && done < usec);
1182 return (done >= usec) ? -ETIME : 0;
1195 #define INVAL_CACHE_AND_WAIT(map, chip, cmd_adr, inval_adr, inval_len, usec, usec_max) \
/drivers/net/wireless/bcmdhd/include/
H A Dlinux_osl.h67 #define OSL_DELAY(usec) osl_delay(usec)
68 extern void osl_delay(uint usec);
/drivers/net/wireless/bcmdhd/
H A Dlinux_osl.c1035 osl_delay(uint usec) argument
1039 while (usec > 0) {
1040 d = MIN(usec, 1000);
1042 usec -= d;
/drivers/staging/media/easycap/
H A Deasycap.h319 int usec; member in struct:easycap
/drivers/usb/gadget/
H A Dnet2280.c267 static int handshake (u32 __iomem *ptr, u32 mask, u32 done, int usec) argument
279 usec--;
280 } while (usec > 0);
530 unsigned usec; local
532 usec = 50; /* 64 byte bulk/interrupt */
534 (1 << USB_OUT_PING_NAK_SENT), usec);
/drivers/scsi/aic7xxx/
H A Daic7xxx_osm.h234 ahc_scb_timer_reset(struct scb *scb, u_int usec) argument
/drivers/net/wireless/brcm80211/brcmsmac/
H A Dmain.c605 * time in usec unit
6419 u16 usec = 0; local
6424 usec = length << 3;
6427 usec = length << 2;
6430 usec = (length << 4) / 11;
6431 if ((length << 4) - (usec * 11) > 0)
6432 usec++;
6435 usec = (length << 3) / 11;
6436 if ((length << 3) - (usec * 11) > 0) {
6437 usec
[all...]
/drivers/input/misc/
H A Dhp_sdc_rtc.c594 ttime.usec = 0;
/drivers/net/ethernet/marvell/
H A Dmv643xx_eth.c1317 static void set_rx_coal(struct mv643xx_eth_private *mp, unsigned int usec) argument
1322 temp = (u64)usec * mp->shared->t_clk;
1353 static void set_tx_coal(struct mv643xx_eth_private *mp, unsigned int usec) argument
1357 temp = (u64)usec * mp->shared->t_clk;

Completed in 571 milliseconds

12