Searched refs:max (Results 201 - 225 of 3297) sorted by relevance

1234567891011>>

/linux-master/sound/firewire/fireworks/
H A Dfireworks_proc.c132 unsigned int g, c, m, max, size; local
150 max = min(efw->phys_out, meters->out_meters);
152 snd_iprintf(buffer, " %d Outputs:\n", max);
156 if (m < max)
163 max = min(efw->phys_in, meters->in_meters);
165 snd_iprintf(buffer, " %d Inputs:\n", max);
169 if (m < max)
H A Dfireworks_pcm.c72 .min = UINT_MAX, .max = 0, .integer = 1
82 t.max = max(t.max, freq_table[i]);
97 .min = UINT_MAX, .max = 0, .integer = 1
107 t.max = max(t.max, pcm_channels[mode]);
127 hw->channels_max = max(hw->channels_max, pcm_channels[mode]);
/linux-master/drivers/net/wireless/broadcom/brcm80211/include/
H A Dbrcmu_utils.h58 u16 max; /* maximum number of queued packets */ member in struct:pktq_prec
65 u16 max; /* total max packets */ member in struct:pktq
83 return pq->q[prec].max - pq->q[prec].skblist.qlen;
88 return pq->q[prec].skblist.qlen >= pq->q[prec].max;
139 return (int)pq->max;
144 return (int)(pq->max - pq->len);
149 return pq->len >= pq->max;
/linux-master/drivers/media/rc/
H A Dir-rc6-decoder.c302 * @max: maximum size of @events
306 * encoding. In this case all @max events will have been written.
310 struct ir_raw_event *events, unsigned int max)
317 ret = ir_raw_gen_manchester(&e, max - (e - events),
324 ret = ir_raw_gen_manchester(&e, max - (e - events),
330 ret = ir_raw_gen_manchester(&e, max - (e - events),
355 ret = ir_raw_gen_manchester(&e, max - (e - events),
362 ret = ir_raw_gen_manchester(&e, max - (e - events),
368 ret = ir_raw_gen_manchester(&e, max - (e - events),
309 ir_rc6_encode(enum rc_proto protocol, u32 scancode, struct ir_raw_event *events, unsigned int max) argument
/linux-master/drivers/char/hw_random/
H A Doptee-rng.c115 static int optee_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) argument
122 if (max > MAX_ENTROPY_REQ_SZ)
123 max = MAX_ENTROPY_REQ_SZ;
125 while (read < max) {
126 rng_size = get_optee_rng_data(pvt_data, data, (max - read));
132 if ((timeout-- == 0) || (read == max))
134 msleep((1000 * (max - read)) / pvt_data->data_rate);
H A Dxiphera-trng.c35 static int xiphera_trng_read(struct hwrng *rng, void *buf, size_t max, bool wait) argument
40 while (max >= sizeof(u32)) {
52 max -= sizeof(u32);
/linux-master/include/linux/
H A Dminmax.h11 * min()/max()/clamp() macros must accomplish three things:
88 * max - return maximum of two values of the same or compatible types
92 #define max(x, y) __careful_cmp(max, x, y) macro
109 __careful_cmp(max, (x) + 0u + 0ul + 0ull, (y) + 0u + 0ul + 0ull)
125 #define max3(x, y, z) max((typeof(x))max(x, y), z)
152 * Or not use min/max/clamp at all, of course.
169 #define max_t(type, x, y) __careful_cmp(max, (type)(x), (type)(y))
212 #define max_array(array, len) __minmax_array(max, arra
[all...]
/linux-master/drivers/crypto/
H A Dqcom-rng.c53 static int qcom_rng_read(struct qcom_rng *rng, u8 *data, unsigned int max) argument
71 if ((max - currsize) >= WORD_SZ) {
77 memcpy(data, &val, max - currsize);
78 currsize = max;
80 } while (currsize < max);
116 static int qcom_hwrng_read(struct hwrng *hwrng, void *data, size_t max, bool wait) argument
120 return qcom_rng_read(qrng, data, max);
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dram.c155 u8 page = max(rpage, (u8)NVKM_RAM_MM_SHIFT);
157 u32 max = ALIGN(size, 1 << page) >> NVKM_RAM_MM_SHIFT; local
158 u32 min = contig ? max : align;
177 ret = nvkm_mm_tail(mm, heap, type, max, min, align, &r);
179 ret = nvkm_mm_head(mm, heap, type, max, min, align, &r);
188 max -= r->length;
189 } while (max);
/linux-master/arch/s390/boot/
H A Dkaslr.c117 align = max(align, 8UL);
125 start = max(_min, start);
183 unsigned long min, unsigned long max)
190 max = min(max, get_physmem_alloc_pos());
192 max_pos = iterate_valid_positions(size, align, min, max, res, ARRAY_SIZE(res), true, 0);
197 return iterate_valid_positions(size, align, min, max, res, ARRAY_SIZE(res), false, pos + 1);
182 randomize_within_range(unsigned long size, unsigned long align, unsigned long min, unsigned long max) argument
/linux-master/drivers/net/ipa/data/
H A Dipa_data-v4.7.c44 .max_reads = 0, /* no limit (hardware max) */
172 .min = 8, .max = 8,
177 .min = 8, .max = 8,
182 .min = 18, .max = 18,
187 .min = 2, .max = 2,
192 .min = 15, .max = 15,
201 .min = 7, .max = 7,
206 .min = 2, .max = 2,
H A Dipa_data-v4.2.c176 .min = 3, .max = 63,
181 .min = 3, .max = 3,
186 .min = 10, .max = 10,
191 .min = 1, .max = 1,
196 .min = 5, .max = 5,
205 .min = 3, .max = 3,
210 .min = 1, .max = 63,
/linux-master/tools/include/linux/
H A Drbtree_augmented.h111 * computing RBAUGMENTED scalar as max(RBCOMPUTE(node)) for all subtree nodes.
127 RBTYPE max = RBCOMPUTE(node); \
130 if (child->RBAUGMENTED > max) \
131 max = child->RBAUGMENTED; \
135 if (child->RBAUGMENTED > max) \
136 max = child->RBAUGMENTED; \
138 if (exit && node->RBAUGMENTED == max) \
140 node->RBAUGMENTED = max; \
/linux-master/drivers/cpufreq/
H A Dgx-suspmod.c344 * within policy->min and policy->max. If it is not, policy->max
353 if (policy->min > policy->max)
354 policy->max = tmp_freq;
355 tmp_freq = gx_validate_speed(policy->max, &tmp1, &tmp2);
356 if (tmp_freq > policy->max)
358 policy->max = tmp_freq;
359 if (policy->max < policy->min)
360 policy->max = policy->min;
388 while (tmp_freq > policy->max) {
[all...]
H A Dcpufreq_userspace.c112 policy->cpu, policy->min, policy->max, policy->cur, userspace->setspeed);
114 if (policy->max < userspace->setspeed)
115 __cpufreq_driver_target(policy, policy->max,
/linux-master/sound/firewire/motu/
H A Dmotu-pcm.c21 .min = UINT_MAX, .max = 0, .integer = 1
34 rates.max = max(rates.max, rate);
50 .min = UINT_MAX, .max = 0, .integer = 1
63 channels.max = max(channels.max, pcm_channels);
89 hw->channels_max = max(hw->channels_max, pcm_channels);
/linux-master/drivers/clk/starfive/
H A Dclk-starfive-jh71x0.c87 * case 1: div hits the max divider value, which means it's less than
301 const struct clk_ops *starfive_jh71x0_clk_ops(u32 max) argument
303 if (max & JH71X0_CLK_DIV_MASK) {
304 if (max & JH71X0_CLK_MUX_MASK) {
305 if (max & JH71X0_CLK_ENABLE)
309 if (max & JH71X0_CLK_ENABLE)
311 if (max == JH71X0_CLK_FRAC_MAX)
316 if (max & JH71X0_CLK_MUX_MASK) {
317 if (max & JH71X0_CLK_ENABLE)
322 if (max
[all...]
/linux-master/drivers/hid/
H A Dhid-gfrm.c29 unsigned long **bit, int *max)
36 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_INFO);
42 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_OK);
27 gfrm_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
H A Dhid-ite.c44 int *max)
53 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F22);
58 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F23);
41 ite_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
/linux-master/arch/sh/kernel/cpu/sh2/
H A Dsmp-j2.c46 unsigned i, max = 1; local
69 max = max_cpus;
73 for (i=max; i<NR_CPUS; i++) {
/linux-master/net/ipv6/netfilter/
H A Dip6t_ah.c25 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) argument
30 invert ? '!' : ' ', min, spi, max);
31 r = (spi >= min && spi <= max) ^ invert;
/linux-master/lib/
H A Didr.c15 * @max: The maximum ID to allocate (inclusive).
18 * Allocates an unused ID in the range specified by @nextid and @max.
19 * Note that @max is inclusive whereas the @end parameter to idr_alloc()
34 unsigned long max, gfp_t gfp)
46 slot = idr_get_free(&idr->idr_rt, &iter, gfp, max - base);
120 int err, max = end > 0 ? end - 1 : INT_MAX; local
125 err = idr_alloc_u32(idr, ptr, &id, max, gfp);
128 err = idr_alloc_u32(idr, ptr, &id, max, gfp);
369 * @max: Highest ID to allocate.
372 * Allocate an ID between @min and @max, inclusiv
33 idr_alloc_u32(struct idr *idr, void *ptr, u32 *nextid, unsigned long max, gfp_t gfp) argument
380 ida_alloc_range(struct ida *ida, unsigned int min, unsigned int max, gfp_t gfp) argument
[all...]
/linux-master/Documentation/driver-api/media/drivers/ccs/
H A Dmk-ccs-regs240 $size *= $apref->{max} - $apref->{min} + 1;
265 $argdescs .= "\t{ \"$sorted_arg\", $h->{min}, $h->{max}, $h->{elsize} },\n";
310 my ($arg, $min, $max, $elsize, @discontig) = split /\s+/;
313 foreach my $num ($min, $max) {
318 $hdr_data .= sprintf "#define %-62s %s", "CCS_LIM_" . (uc ${this{name}} . "_MAX_$arg"), $max . ($max =~ /0x/i ? "" : "U") . "\n";
323 "max" => $max,
373 my $max = $da->{max};
[all...]
/linux-master/drivers/clk/sophgo/
H A Dclk-cv18xx-pll.h14 u8 max; member in struct:cv1800_clk_pll_limit::__anon38
21 .max = _max, \
25 for (_var = (_restrict)->min; _var <= (_restrict)->max; _var++)
/linux-master/include/drm/
H A Ddrm_buddy.h16 #define range_overflows(start, size, max) ({ \
19 typeof(max) max__ = (max); \

Completed in 438 milliseconds

1234567891011>>