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

12345678

/drivers/usb/host/
H A Dxhci-ext-caps.h137 * This uses an arbitrary limit of XHCI_MAX_EXT_CAPS extended capabilities
143 int limit = XHCI_MAX_EXT_CAPS; local
145 while (ext_offset && limit > 0) {
150 limit--;
152 if (limit > 0)
/drivers/net/wireless/ath/ath9k/
H A Dcalib.c50 struct ath_nf_limits *limit; local
53 limit = &ah->nf_2g;
55 limit = &ah->nf_5g;
57 return limit;
85 struct ath_nf_limits *limit; local
92 limit = ath9k_hw_get_nf_limits(ah, ah->curchan);
115 if (h[i].privNF > limit->max) {
120 i, h[i].privNF, limit->max,
126 * Normally we limit the average noise floor by the
129 * we bypass this limit her
332 struct ath_nf_limits *limit; local
[all...]
/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/iwlwifi/
H A Diwl-debug.c108 u32 level, bool limit, const char *function,
120 (!limit || net_ratelimit()))
107 __iwl_dbg(struct device *dev, u32 level, bool limit, const char *function, const char *fmt, ...) argument
/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/nouveau/
H A Dnv10_fb.c14 tile->limit = max(1u, addr + size) - 1;
24 tile->addr = tile->limit = tile->pitch = tile->zcomp = 0;
33 nv_wr32(dev, NV10_PFB_TLIMIT(i), tile->limit);
H A Dnv20_fb.c49 tile->limit = max(1u, addr + size) - 1;
83 tile->addr = tile->limit = tile->pitch = tile->zcomp = 0;
93 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;
/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...]
H A Dmdfld_intel_display.c683 const struct mrst_limit_t *limit = NULL; local
690 limit = &mdfld_limits[MDFLD_LIMT_DSIPLL_19];
692 limit = &mdfld_limits[MDFLD_LIMT_DSIPLL_25];
695 limit = &mdfld_limits[MDFLD_LIMT_DSIPLL_83];
699 limit = &mdfld_limits[MDFLD_LIMT_DSIPLL_100];
702 limit = &mdfld_limits[MDFLD_LIMT_DPLL_19];
704 limit = &mdfld_limits[MDFLD_LIMT_DPLL_25];
707 limit = &mdfld_limits[MDFLD_LIMT_DPLL_83];
711 limit = &mdfld_limits[MDFLD_LIMT_DPLL_100];
713 limit
735 const struct mrst_limit_t *limit = mdfld_limit(crtc); local
[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:__anon121
568 tx_in * limit; member in struct:__anon123::__anon124
573 tx_out * limit; member in struct:__anon123::__anon125
586 rx_in * limit; member in struct:__anon126::__anon127
591 rx_out * limit; member in struct:__anon126::__anon128
/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/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/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 551 milliseconds

12345678