Searched refs:max (Results 326 - 350 of 3298) sorted by relevance

<<11121314151617181920>>

/linux-master/sound/firewire/dice/
H A Ddice-pcm.c23 .min = UINT_MAX, .max = 0, .integer = 1
43 rates.max = max(rates.max, rate);
61 .min = UINT_MAX, .max = 0, .integer = 1
81 channels.max = max(channels.max, pcm_channels[mode]);
117 hw->channels_max = max(hw->channels_max, channels);
/linux-master/drivers/clk/at91/
H A Dclk-generated.c146 if (gck->range.max && req->rate > gck->range.max)
147 req->rate = gck->range.max;
162 (gck->range.max && min_rate > gck->range.max))
212 if (best_rate < 0 || (gck->range.max && best_rate > gck->range.max))
253 if (gck->range.max && rate > gck->range.max)
/linux-master/include/media/
H A Dv4l2-ctrls.h117 * the usual min/max/step checks are not sufficient.
422 * @max: The control's maximum value.
451 s64 max; member in struct:v4l2_ctrl_config
471 * @max: pointer for storing the maximum value for the control
481 * The contents of @min, @max, @step and @def may be modified depending on
491 s64 *min, s64 *max, u64 *step, s64 *def, u32 *flags);
647 * @max: The control's maximum value.
661 u32 id, s64 min, s64 max, u64 step,
671 * @max: The control's maximum value.
687 u32 id, u8 max, u6
954 v4l2_ctrl_modify_range(struct v4l2_ctrl *ctrl, s64 min, s64 max, u64 step, s64 def) argument
[all...]
/linux-master/drivers/hwmon/
H A Dmenf21bmc_hwmon.c139 static SENSOR_DEVICE_ATTR_RO(in0_max, max, 0);
143 static SENSOR_DEVICE_ATTR_RO(in1_max, max, 1);
147 static SENSOR_DEVICE_ATTR_RO(in2_max, max, 2);
151 static SENSOR_DEVICE_ATTR_RO(in3_max, max, 3);
155 static SENSOR_DEVICE_ATTR_RO(in4_max, max, 4);
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dvolt.c98 info->max = nvbios_rd32(bios, volt + 0x0e);
99 if (!info->max)
100 info->max = max(info->base, info->base + info->step * info->vidmask);
104 info->max = nvbios_rd32(bios, volt + 0x0e);
/linux-master/drivers/media/rc/
H A Dir-rc5-decoder.c202 * @max: maximum size of @events
206 * encoding. In this case all @max events will have been written.
210 struct ir_raw_event *events, unsigned int max)
226 ret = ir_raw_gen_manchester(&e, max, &ir_rc5_timings,
242 ret = ir_raw_gen_manchester(&e, max, &ir_rc5x_timings[0],
247 ret = ir_raw_gen_manchester(&e, max - (e - events),
256 ret = ir_raw_gen_manchester(&e, max, &ir_rc5_sz_timings,
209 ir_rc5_encode(enum rc_proto protocol, u32 scancode, struct ir_raw_event *events, unsigned int max) argument
/linux-master/drivers/clk/mvebu/
H A Ddove-divider.c70 unsigned int divider, max; local
86 max = 1 << dc->div_bit_size;
88 if (set && (divider == 0 || divider >= max))
90 if (divider >= max)
91 divider = max - 1;
/linux-master/fs/hfsplus/
H A Dbitmap.c20 u32 offset, u32 *max)
30 len = *max;
155 *max = offset + (curr - pptr) * 32 + i - start;
156 sbi->free_blocks -= *max;
158 hfs_dbg(BITMAP, "-> %u,%u\n", start, *max);
19 hfsplus_block_allocate(struct super_block *sb, u32 size, u32 offset, u32 *max) argument
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_dsi_dcs_backlight.c54 size_t len = panel->backlight.max > U8_MAX ? 2 : 1;
73 size_t len = panel->backlight.max > U8_MAX ? 2 : 1;
169 panel->backlight.max = (1 << panel->vbt.backlight.brightness_precision_bits) - 1;
171 panel->backlight.max = PANEL_PWM_MAX_VALUE;
173 panel->backlight.level = panel->backlight.max;
/linux-master/drivers/clk/
H A Dclk-scpi.c142 unsigned long min = 0, max = 0; local
157 if (sclk->scpi_ops->clk_get_range(sclk->id, &min, &max) || !max)
164 if (!ret && max)
165 clk_hw_set_rate_range(&sclk->hw, min, max);
/linux-master/drivers/char/hw_random/
H A Diproc-rng200.c90 static int iproc_rng200_read(struct hwrng *rng, void *buf, size_t max, argument
94 uint32_t num_remaining = max;
111 return max - num_remaining;
141 return max - num_remaining;
148 return max - num_remaining;
/linux-master/fs/jfs/
H A Djfs_extent.c303 s64 nb, nblks, daddr, max; local
319 max = (s64) 1 << bmp->db_maxfreebud;
320 if (*nblocks >= max && *nblocks > nbperpage)
321 nb = nblks = (max > nbperpage) ? max : nbperpage;
/linux-master/drivers/cpufreq/
H A Dcpufreq_conservative.c40 unsigned int freq_step = (cs_tuners->freq_step * policy->max) / 100;
42 /* max freq cannot be less than 100. But who knows... */
80 if (requested_freq > policy->max || requested_freq < policy->min) {
107 if (requested_freq == policy->max)
111 if (requested_freq > policy->max)
112 requested_freq = policy->max;
/linux-master/drivers/iio/dac/
H A Ddpot-dac.c139 int max; local
141 ret = iio_read_max_channel_raw(dac->dpot, &max);
149 return max * val;
151 tmp = (unsigned long long)max * val;
155 tmp = val * 1000000000LL * max >> val2;
/linux-master/drivers/platform/x86/amd/pmf/
H A Dspc.c58 u16 max, avg = 0; local
68 /* Get the avg and max C0 residency of all the cores */
69 max = dev->m_table.avg_core_c0residency[0];
72 if (dev->m_table.avg_core_c0residency[i] > max)
73 max = dev->m_table.avg_core_c0residency[i];
78 in->ev_info.max_c0residency = max;
/linux-master/lib/
H A Dnlattr.c123 (pt->min < 0 || pt->max < 0));
129 range->max = U8_MAX;
134 range->max = U16_MAX;
138 range->max = U32_MAX;
143 range->max = U64_MAX;
154 range->max = pt->max;
163 range->max = pt->max;
213 pt->type == NLA_BINARY && value > range.max) {
[all...]
/linux-master/tools/workqueue/
H A Dwq_dump.py154 max_pool_id_len = max(max_pool_id_len, len(f'{pi}'))
155 max_ref_len = max(max_ref_len, len(f'{pool.refcnt.value_()}'))
186 field_len = max(len(str(cpu)), max_pool_id_len)
197 ucpus_len = max(cpumask_str_len, len("unbound_cpus"))
198 rcpus_len = max(cpumask_str_len, len("rescuer_cpus"))
230 print(f'[{"workqueue":^{WQ_NAME_LEN-2}}\\ min max', end='')
249 print(f' {nna.nr.counter.value_():3}/{nna.max.value_():3}', end='')
251 print(f' {nna.nr.counter.value_():3}/{nna.max.value_():3}')
/linux-master/drivers/md/dm-vdo/
H A Derrors.c74 int max; member in struct:error_block
91 .max = UDS_ERROR_CODE_BLOCK_END,
112 } else if ((errnum >= block->last) && (errnum < block->max)) {
280 .max = next_free_error,
301 if ((first_error < block->max) && (next_free_error > block->base))
/linux-master/drivers/clk/starfive/
H A Dclk-starfive-jh7110-isp.c152 u32 max = jh7110_ispclk_data[idx].max; local
156 .ops = starfive_jh71x0_clk_ops(max),
159 ((max & JH71X0_CLK_MUX_MASK) >> JH71X0_CLK_MUX_SHIFT) + 1,
182 clk->max_div = max & JH71X0_CLK_DIV_MASK;
H A Dclk-starfive-jh7110-vout.c157 u32 max = jh7110_voutclk_data[idx].max; local
161 .ops = starfive_jh71x0_clk_ops(max),
164 ((max & JH71X0_CLK_MUX_MASK) >> JH71X0_CLK_MUX_SHIFT) + 1,
189 clk->max_div = max & JH71X0_CLK_DIV_MASK;
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_dctcp.c17 #define max(a, b) ((a) > (b) ? (a) : (b)) macro
121 return max(tp->snd_cwnd - ((tp->snd_cwnd * ca->dctcp_alpha) >> 11U), 2U);
145 delivered_ce /= max(1U, delivered);
160 tp->snd_ssthresh = max(tp->snd_cwnd >> 1U, 2U);
234 return max(tcp_sk(sk)->snd_cwnd, ca->loss_cwnd);
/linux-master/drivers/misc/
H A Dntsync.c47 __u32 max; member in struct:ntsync_obj::__anon125::__anon126
67 sum > sem->u.sem.max)
177 if (args.count > args.max)
184 sem->u.sem.max = args.max;
/linux-master/include/sound/
H A Dsoc.h45 .rshift = shift_right, .max = xmax, \
50 .rshift = shift_right, .min = xmin, .max = xmax, \
56 {.reg = xreg, .max = xmax, .invert = xinvert})
60 .max = xmax, .invert = xinvert})
64 .max = xmax, .min = xmin, .sign_bit = xsign_bit, \
69 .min = xmin, .max = xmax, .invert = xinvert})
70 #define SOC_SINGLE(xname, reg, shift, max, invert) \
74 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 0) }
81 .rshift = xshift, .min = xmin, .max = xmax, \
83 #define SOC_SINGLE_TLV(xname, reg, shift, max, inver
1252 int min, max, platform_max; member in struct:soc_mixer_control
1270 int max; member in struct:soc_bytes_ext
1283 long min, max; member in struct:soc_mreg_control
[all...]
/linux-master/drivers/power/supply/
H A D88pm860x_battery.c533 int min, int max)
545 if (max <= 0)
548 data = (max << 8) / 1800;
550 dev_dbg(info->dev, "TEMP_LOWTH:max : %d, 0x%x\n", max, data);
558 int max; local
574 max = TBAT_NEG_10D * GPBIAS2_GPADC1_UA / 1000;
575 set_temp_threshold(info, 0, max);
578 max = TBAT_NEG_10D * GPBIAS2_GPADC1_UA / 1000;
579 set_temp_threshold(info, 0, max);
532 set_temp_threshold(struct pm860x_battery_info *info, int min, int max) argument
[all...]
/linux-master/fs/hfs/
H A Dbitmap.c29 static u32 hfs_find_set_zero_bits(__be32 *bitmap, u32 size, u32 offset, u32 *max) argument
36 len = *max;
108 *max = (curr - bitmap) * 32 + i - start;

Completed in 282 milliseconds

<<11121314151617181920>>