Searched refs:limit (Results 1 - 25 of 193) sorted by relevance

12345678

/drivers/usb/host/
H A Dxhci-ext-caps.h136 * This uses an arbitrary limit of XHCI_MAX_EXT_CAPS extended capabilities
142 int limit = XHCI_MAX_EXT_CAPS; local
144 while (ext_offset && limit > 0) {
149 limit--;
151 if (limit > 0)
/drivers/scsi/be2iscsi/
H A Dbe.h48 static inline u32 MODULO(u16 val, u16 limit) argument
50 WARN_ON(limit & (limit - 1));
51 return val & (limit - 1);
54 static inline void index_inc(u16 *index, u16 limit) argument
56 *index = MODULO((*index + 1), limit);
/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac1000_dma.c37 int limit; local
42 limit = 10;
43 while (limit--) {
48 if (limit < 0)
H A Ddwmac100_dma.c39 int limit; local
44 limit = 10;
45 while (limit--) {
50 if (limit < 0)
/drivers/net/wireless/ath/ath9k/
H A Dcalib.c51 struct ath_nf_limits *limit; local
54 limit = &ah->nf_2g;
56 limit = &ah->nf_5g;
58 return limit;
86 struct ath_nf_limits *limit; local
93 limit = ath9k_hw_get_nf_limits(ah, ah->curchan);
116 if (h[i].privNF > limit->max) {
121 i, h[i].privNF, limit->max,
127 * Normally we limit the average noise floor by the
130 * we bypass this limit her
333 struct ath_nf_limits *limit; local
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_diag.c255 /* If user regs mapped, they are after send, so set limit. */
283 * appropriate limit.
339 u32 limit; local
342 reg_addr = (const u64 __iomem *)qib_remap_ioaddr32(dd, regoffs, &limit);
343 if (reg_addr == NULL || limit == 0 || !(dd->flags & QIB_PRESENT)) {
347 if (count >= limit)
348 count = limit;
383 u32 limit; local
386 reg_addr = (u64 __iomem *)qib_remap_ioaddr32(dd, regoffs, &limit);
387 if (reg_addr == NULL || limit
427 u32 limit; local
473 u32 limit; local
[all...]
/drivers/staging/speakup/
H A Dselection.c42 static unsigned short limit(const unsigned short v, const unsigned short u) function
54 xs = limit(xs, vc->vc_cols - 1);
55 ys = limit(ys, vc->vc_rows - 1);
56 xe = limit(xe, vc->vc_cols - 1);
57 ye = limit(ye, vc->vc_rows - 1);
/drivers/tty/serial/
H A Dsunhv.c78 int limit = 10000; local
80 while (limit-- > 0) {
121 int limit = 10000; local
123 while (limit-- > 0) {
268 int limit = 10000; local
272 while (limit-- > 0) {
297 int limit = 10000; local
301 while (limit-- > 0) {
453 int limit = 1000000; local
455 while (limit
478 int limit = 1000000; local
[all...]
/drivers/gpu/drm/gma500/
H A Dpsb_intel_display.c171 const struct psb_intel_limit_t *limit; local
174 limit = &psb_intel_limits[INTEL_LIMIT_I9XX_LVDS];
176 limit = &psb_intel_limits[INTEL_LIMIT_I9XX_SDVO_DAC];
177 return limit;
235 const struct psb_intel_limit_t *limit = psb_intel_limit(crtc); local
237 if (clock->p1 < limit->p1.min || limit->p1.max < clock->p1)
239 if (clock->p < limit->p.min || limit->p.max < clock->p)
241 if (clock->m2 < limit
274 const struct psb_intel_limit_t *limit = psb_intel_limit(crtc); local
[all...]
H A Dcdv_intel_display.c367 const struct cdv_intel_limit_t *limit; local
374 limit = &cdv_intel_limits[CDV_LIMIT_SINGLE_LVDS_96];
376 limit = &cdv_intel_limits[CDV_LIMIT_SINGLE_LVDS_100];
379 limit = &cdv_intel_limits[CDV_LIMIT_DAC_HDMI_27];
381 limit = &cdv_intel_limits[CDV_LIMIT_DAC_HDMI_96];
383 return limit;
399 const struct cdv_intel_limit_t *limit,
402 if (clock->p1 < limit->p1.min || limit->p1.max < clock->p1)
404 if (clock->p < limit
398 cdv_intel_PLL_is_valid(struct drm_crtc *crtc, const struct cdv_intel_limit_t *limit, struct cdv_intel_clock_t *clock) argument
425 const struct cdv_intel_limit_t *limit = cdv_intel_limit(crtc, refclk); local
[all...]
H A Doaktrail_crtc.c87 const struct oaktrail_limit_t *limit = NULL; local
95 limit = &oaktrail_limits[MRST_LIMIT_LVDS_100L];
98 limit = &oaktrail_limits[MRST_LIMIT_LVDS_83];
101 limit = &oaktrail_limits[MRST_LIMIT_LVDS_100];
105 limit = NULL;
109 return limit;
133 const struct oaktrail_limit_t *limit = oaktrail_limit(crtc); local
138 for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) {
139 for (clock.p1 = limit
[all...]
/drivers/parisc/
H A Dgsc.h42 int gsc_find_local_irq(unsigned int irq, int *global_irq, int limit);
/drivers/staging/rtl8712/
H A Dieee80211.c111 index: the information element id index, limit is the limit for search
113 u8 *r8712_get_ie(u8 *pbuf, sint index, sint *len, sint limit) argument
118 if (limit < 1)
132 if (i >= limit)
219 unsigned char *r8712_get_wpa_ie(unsigned char *pie, int *wpa_ie_len, int limit) argument
227 pbuf = r8712_get_ie(pbuf, _WPA_IE_ID_, &len, limit);
245 limit = limit - (pbuf - pie) - 2 - len;
246 if (limit <
254 r8712_get_wpa2_ie(unsigned char *pie, int *rsn_ie_len, int limit) argument
[all...]
/drivers/atm/
H A Dambassador.h540 #define NEXTQ(current,start,limit) \
541 ( (current)+1 < (limit) ? (current)+1 : (start) )
547 command * limit; member in struct:__anon120
568 tx_in * limit; member in struct:__anon122::__anon123
573 tx_out * limit; member in struct:__anon122::__anon124
586 rx_in * limit; member in struct:__anon125::__anon126
591 rx_out * limit; member in struct:__anon125::__anon127
/drivers/usb/mon/
H A Dmon_text.c32 * This limit exists to prevent OOMs when the user process stops reading.
40 * Potentially unlimited number; we limit it for similar allocations.
96 int cnt, limit; member in struct:mon_text_ptr
394 ptr.limit = rp->printf_size;
398 ptr.cnt += snprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt,
421 ptr.limit = rp->printf_size;
434 ptr.cnt += snprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt,
488 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt,
506 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt,
517 p->cnt += snprintf(p->pbuf + p->cnt, p->limit
[all...]
/drivers/net/ethernet/ibm/emac/
H A Dphy.c57 int limit = 10000; local
66 while (--limit) {
72 if ((val & BMCR_ISOLATE) && limit > 0)
75 return limit <= 0;
81 int limit = 10000; local
90 while (--limit) {
96 if ((val & BMCR_ISOLATE) && limit > 0)
99 if (limit > 0 && phy->mode == PHY_MODE_SGMII) {
106 return limit <= 0;
/drivers/ssb/
H A Ddriver_chipcommon.c150 int uninitialized_var(limit);
187 limit = 43000;
189 limit = 25000;
193 limit = 20200000;
195 limit = 19800000;
199 limit = 34000000;
201 limit = 25000000;
204 limit /= divisor;
206 return limit;
/drivers/scsi/
H A DNCR5380.h346 unsigned limit; local
353 limit = 65536 - (bus_addr & 0xFFFF);
357 limit = 65536 * 2 - (bus_addr & 0x1FFFF);
360 if (count > limit)
361 count = limit;
/drivers/edac/
H A Dsb_edac.c671 u64 limit, prv = 0; local
708 limit = SAD_LIMIT(reg);
713 if (limit <= prv)
716 tmp_mb = (limit + 1) >> 20;
724 prv = limit;
745 limit = TAD_LIMIT(reg);
746 if (limit <= prv)
748 tmp_mb = (limit + 1) >> 20;
798 debugf0("CH#%d RIR#%d, limit: %Lu.%03Lu GB (0x%016Lx), way: %d, reg=0x%08x\n",
851 u64 ch_addr, offset, limit, pr local
[all...]
/drivers/gpu/drm/nouveau/
H A Dnv10_fb.c46 tile->limit = max(1u, addr + size) - 1;
94 tile->addr = tile->limit = tile->pitch = tile->zcomp = 0;
103 nv_wr32(dev, NV10_PFB_TLIMIT(i), tile->limit);
H A Dnv30_fb.c40 tile->limit = max(1u, addr + size) - 1;
50 tile->addr = tile->limit = tile->pitch = 0;
H A Dnv40_fb.c14 nv_wr32(dev, NV10_PFB_TLIMIT(i), tile->limit);
20 nv_wr32(dev, NV40_PFB_TLIMIT(i), tile->limit);
/drivers/mmc/host/
H A Dcb710-mmc.c149 unsigned limit = 2000000; /* FIXME: real timeout */ local
157 if (!--limit) {
169 limit = 2000000 - limit;
170 if (limit > 100)
173 limit, what, e, x); local
181 unsigned limit = 500000; /* FIXME: real timeout */ local
190 if (!--limit) {
202 limit = 500000 - limit;
206 limit, mask, e, x); local
[all...]
/drivers/net/ethernet/emulex/benet/
H A Dbe.h92 #define MAX_RSS_QS 4 /* BE limit is 4 queues/port */
118 static inline u32 MODULO(u16 val, u16 limit) argument
120 BUG_ON(limit & (limit - 1));
121 return val & (limit - 1);
124 static inline void index_adv(u16 *index, u16 val, u16 limit) argument
126 *index = MODULO((*index + val), limit);
129 static inline void index_inc(u16 *index, u16 limit) argument
131 *index = MODULO((*index + 1), limit);
/drivers/video/backlight/
H A Dgeneric_bl.c56 * Called when the battery is low to limit the backlight intensity.
57 * If limit==0 clear any limit, otherwise limit the intensity
59 void genericbl_limit_intensity(int limit) argument
64 if (limit)

Completed in 481 milliseconds

12345678