Searched refs:min (Results 501 - 525 of 3857) sorted by relevance

<<21222324252627282930>>

/linux-master/arch/x86/kvm/
H A Dpmu.h216 kvm_pmu_cap.version = min(kvm_pmu_cap.version, 2);
217 kvm_pmu_cap.num_counters_gp = min(kvm_pmu_cap.num_counters_gp,
219 kvm_pmu_cap.num_counters_fixed = min(kvm_pmu_cap.num_counters_fixed,
/linux-master/block/
H A Dblk-lib.c65 min(nr_sects, bio_discard_limit(bdev, sector));
162 return min(pages, (sector_t)BIO_MAX_VECS);
182 sz = min((sector_t) PAGE_SIZE, nr_sects << 9);
/linux-master/drivers/tty/serial/
H A Dserial_base_bus.c148 int min = 0, max = -1; /* Use -1 for max to apply IDA defaults */ local
157 min = port->port_id;
161 err = ida_alloc_range(&ctrl_dev->port_ida, min, max, GFP_KERNEL);
/linux-master/drivers/media/v4l2-core/
H A Dv4l2-ctrls-core.c1486 s64 min, s64 max, u64 step, s64 def)
1490 if (step != 1 || max > 1 || min < 0)
1498 if (step == 0 || min > max || def < min || def > max)
1502 if (step || min || !max || (def & ~max))
1507 if (min > max || def < min || def > max ||
1508 min < 0 || (step && max >= BITS_PER_LONG_LONG))
1516 if (min > max || min <
1485 check_range(enum v4l2_ctrl_type type, s64 min, s64 max, u64 step, s64 def) argument
1750 v4l2_ctrl_new(struct v4l2_ctrl_handler *hdl, const struct v4l2_ctrl_ops *ops, const struct v4l2_ctrl_type_ops *type_ops, u32 id, const char *name, enum v4l2_ctrl_type type, s64 min, s64 max, u64 step, s64 def, const u32 dims[V4L2_CTRL_MAX_DIMS], u32 elem_size, u32 flags, const char * const *qmenu, const s64 *qmenu_int, const union v4l2_ctrl_ptr p_def, void *priv) argument
2016 s64 min = cfg->min; local
2050 v4l2_ctrl_new_std(struct v4l2_ctrl_handler *hdl, const struct v4l2_ctrl_ops *ops, u32 id, s64 min, s64 max, u64 step, s64 def) argument
2081 s64 min; local
2113 s64 min; local
2145 s64 min, max, step, def; local
2165 s64 min; local
[all...]
/linux-master/kernel/irq/
H A Dtimings.c77 * search by a max period and min period.
186 * 4) 8, 15 <- min period
284 irqts->count = min(IRQ_TIMINGS_SIZE, \
384 int index, i, period_max, count, start, min = INT_MAX; local
425 min = min_t(int, irqs->timings[i], min);
430 return irqs->last_ts + irqs->ema_time[min];
/linux-master/drivers/media/test-drivers/vivid/
H A Dvivid-ctrls.c159 .min = 0,
170 .min = 0xffffffff80000000ULL,
180 .min = 0x8000000000000000ULL,
191 .min = 0x10,
204 .min = 10,
216 .min = 0x10,
228 .min = 0x10,
240 .min = 0x00,
252 .min = -10,
264 .min
[all...]
/linux-master/drivers/net/wireless/ath/ath9k/
H A Dar9002_phy.c358 ah->nf_2g.min = AR_PHY_CCA_MIN_GOOD_VAL_9285_2GHZ;
362 ah->nf_2g.min = AR_PHY_CCA_MIN_GOOD_VAL_9287_2GHZ;
366 ah->nf_2g.min = AR_PHY_CCA_MIN_GOOD_VAL_9271_2GHZ;
370 ah->nf_2g.min = AR_PHY_CCA_MIN_GOOD_VAL_9280_2GHZ;
373 ah->nf_5g.min = AR_PHY_CCA_MIN_GOOD_VAL_9280_5GHZ;
/linux-master/drivers/regulator/
H A Drtmv20-regulator.c190 static u32 clamp_to_selector(u32 val, u32 min, u32 max, u32 step) argument
192 u32 retval = clamp_val(val, min, max);
194 return (retval - min) / step;
202 u32 min; member in struct:__anon2609
251 temp = clamp_to_selector(temp, props[i].min, props[i].max, props[i].step);
H A Ds2mps11.c407 #define regulator_desc_s2mps11_buck67810(num, min, step, min_sel, voltages) { \
413 .min_uV = min, \
497 #define regulator_desc_s2mps13_ldo(num, min, step, min_sel) { \
503 .min_uV = min, \
513 #define regulator_desc_s2mps13_buck(num, min, step, min_sel) { \
519 .min_uV = min, \
530 #define regulator_desc_s2mps13_buck7(num, min, step, min_sel) { \
536 .min_uV = min, \
547 #define regulator_desc_s2mps13_buck8_10(num, min, step, min_sel) { \
553 .min_uV = min, \
[all...]
/linux-master/include/net/
H A Dudp.h208 int min, int max, bool use_eth)
212 if (min >= max) {
214 inet_get_local_port_range(net, &min, &max);
240 return htons((((u64) hash * (max - min)) >> 32) + min);
207 udp_flow_src_port(struct net *net, struct sk_buff *skb, int min, int max, bool use_eth) argument
/linux-master/tools/testing/selftests/net/
H A Dtcp_mmap.c75 #ifndef min
76 #define min(a, b) ((a) < (b) ? (a) : (b)) macro
224 zc.length = min(chunk_size, FILE_SZ - total);
246 lu = read(fd, buffer, min(zc.recv_skip_hint,
262 lu = read(fd, buffer + sub, min(chunk_size - sub,
/linux-master/drivers/pci/
H A Dsetup-res.c267 resource_size_t min; local
270 min = (res->flags & IORESOURCE_IO) ? PCIBIOS_MIN_IO : PCIBIOS_MIN_MEM;
279 ret = pci_bus_alloc_resource(bus, res, size, align, min,
291 ret = pci_bus_alloc_resource(bus, res, size, align, min,
305 ret = pci_bus_alloc_resource(bus, res, size, align, min, 0,
/linux-master/usr/
H A Dgen_init_cpio.c247 unsigned int maj, unsigned int min)
271 min, /* rminor */
287 unsigned int min; local
291 name, &mode, &uid, &gid, &dev_type, &maj, &min)) {
295 rc = cpio_mknod(name, mode, uid, gid, dev_type, maj, min);
520 "nod <name> <mode> <uid> <gid> <dev_type> <maj> <min>\n"
534 "<min> minor number of nod\n"
245 cpio_mknod(const char *name, unsigned int mode, uid_t uid, gid_t gid, char dev_type, unsigned int maj, unsigned int min) argument
/linux-master/tools/lib/perf/tests/
H A Dtest-evlist.c455 long long max = 0, min = 0, avg = 0; local
528 min = counts[0].val;
548 if (counts[i].val < min)
549 min = counts[i].val;
562 error = display_error(avg, max, min, expected_counts.val);
/linux-master/arch/parisc/kernel/
H A Dirq.c185 seq_printf(p, " [min/avg/max] (CPU cycle counts)");
211 unsigned int k, avg, min, max; local
213 min = max = action->cr16_hist[0];
224 if (hist < min) min = hist;
229 min,avg,max);
/linux-master/kernel/
H A Dsysctl.c7 * Added bdflush entry and intvec min/max checking, 2/23/96, Tom Dyas.
813 * @min: pointer to minimum allowable value
821 int *min; member in struct:do_proc_dointvec_minmax_conv_param
842 if ((param->min && *param->min > tmp) ||
852 * proc_dointvec_minmax - read a vector of integers with min/max values
863 * table->extra1 (min) and table->extra2 (max).
871 .min = (int *) table->extra1,
880 * @min: pointer to minimum allowable value
888 unsigned int *min; member in struct:do_proc_douintvec_minmax_conv_param
968 unsigned int min = 0, max = 255U, val; local
1030 unsigned long *i, *min, *max; local
[all...]
/linux-master/drivers/rtc/
H A Drtc-ds1511.c96 u8 mon, day, dow, hrs, min, sec, yrs, cen; local
105 min = rtc_tm->tm_min;
112 min = bin2bcd(min) & 0x7f;
126 rtc_write(min, DS1511_MIN);
H A Drtc-sc27xx.c170 u32 val, sec, min, hour, day; local
206 min = val & SPRD_RTC_MIN_MASK;
219 *secs = (((time64_t)(day * 24) + hour) * 60 + min) * 60 + sec;
227 u32 sec, min, hour, day, val; local
234 min = rem / 60;
235 sec = rem - min * 60;
267 ret = regmap_write(rtc->regmap, rtc->base + min_reg, min);
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec_stateless.c62 .min = V4L2_MPEG_VIDEO_H264_LEVEL_1_0,
71 .min = V4L2_STATELESS_H264_DECODE_MODE_FRAME_BASED,
80 .min = V4L2_STATELESS_H264_START_CODE_ANNEX_B,
95 .min = V4L2_MPEG_VIDEO_VP8_PROFILE_0,
110 .min = V4L2_MPEG_VIDEO_VP9_PROFILE_0,
120 .min = V4L2_MPEG_VIDEO_VP9_LEVEL_1_0,
163 .min = V4L2_MPEG_VIDEO_HEVC_LEVEL_1,
173 .min = V4L2_STATELESS_HEVC_DECODE_MODE_FRAME_BASED,
182 .min = V4L2_STATELESS_HEVC_START_CODE_ANNEX_B,
213 .min
[all...]
/linux-master/arch/x86/kernel/
H A Dkvm.c505 int cpu, min = 0, max = 0; local
531 min = max = apic_id;
532 } else if (apic_id < min && max - apic_id < KVM_IPI_CLUSTER_SIZE) {
533 ipi_bitmap <<= min - apic_id;
534 min = apic_id;
535 } else if (apic_id > min && apic_id < min + KVM_IPI_CLUSTER_SIZE) {
539 (unsigned long)(ipi_bitmap >> BITS_PER_LONG), min, icr);
542 min = max = apic_id;
545 __set_bit(apic_id - min, (unsigne
[all...]
/linux-master/drivers/iio/dac/
H A Dad5766.c130 int min; member in struct:ad5766_span_tbl
247 *val = ad5766_span_tbl[st->crt_range].min;
252 ad5766_span_tbl[st->crt_range].min;
498 int i, ret, min, max, tmp[2]; local
506 min = tmp[0] / 1000000;
509 if (ad5766_span_tbl[i].min != min ||
/linux-master/drivers/crypto/intel/qat/qat_common/
H A Dadf_tl_debugfs.c33 samples = min(telemetry->msg_cnt, telemetry->hbuffs);
57 samples = min(telemetry->msg_cnt, telemetry->hbuffs);
128 vals->min = min_array(hist_vals, sample_cnt);
151 vals->min *= cpp_ns_per_cycle;
201 vals->min = min_array(hist_vals, sample_cnt);
234 vals->min = div_u64(min_array(hist_vals, sample_cnt) * bw_hw_2_bits, MEGA);
250 seq_printf(s, "%*llu", TL_VALUE_MIN_PADDING, vals->min);
/linux-master/drivers/pwm/
H A Dpwm-atmel-tcb.c274 unsigned long long min; local
289 min = div_u64((u64)NSEC_PER_SEC * atmel_tcb_divisors[i], rate);
290 max = min << tcbpwmc->width;
302 min = div_u64(NSEC_PER_SEC, rate);
303 max = min << tcbpwmc->width;
310 duty = div_u64(duty_ns, min);
311 period = div_u64(period_ns, min);
/linux-master/drivers/iio/
H A Dindustrialio-gts-helper.c750 int i, min = -EINVAL; local
755 if (min == -EINVAL)
756 min = gain;
758 min = min(min, gain);
761 return min;
/linux-master/drivers/gpu/drm/
H A Ddrm_modes.c190 unsigned int min, typ, max; member in struct:analog_param_range
194 { .min = _min, .typ = _typ, .max = _max }
374 (hact_duration_ns < params->hact_ns.min ||
376 DRM_ERROR("Invalid horizontal active area duration: %uns (min: %u, max %u)\n",
377 hact_duration_ns, params->hact_ns.min, params->hact_ns.max);
386 (hblk_duration_ns < params->hblk_ns.min ||
388 DRM_ERROR("Invalid horizontal blanking duration: %uns (min: %u, max %u)\n",
389 hblk_duration_ns, params->hblk_ns.min, params->hblk_ns.max);
398 (hslen_duration_ns < params->hslen_ns.min ||
400 DRM_ERROR("Invalid horizontal sync duration: %uns (min
[all...]

Completed in 312 milliseconds

<<21222324252627282930>>