/linux-master/drivers/platform/x86/intel/uncore-frequency/ |
H A D | uncore-frequency-common.c | 22 static int (*uncore_read)(struct uncore_data *data, unsigned int *min, unsigned int *max); 50 unsigned int min, max; local 54 ret = uncore_read(data, &min, &max); 60 return sprintf(buf, "%u\n", max); 272 int uncore_freq_common_init(int (*read_control_freq)(struct uncore_data *data, unsigned int *min, unsigned int *max), argument
|
/linux-master/drivers/pci/ |
H A D | bus.c | 187 resource_size_t max; local 220 max = avail.end; 223 if (size > max - min_used + 1) 227 ret = allocate_resource(r, res, size, min_used, max, 303 start = max(r->start, res->start);
|
/linux-master/drivers/gpu/drm/amd/pm/swsmu/smu12/ |
H A D | smu_v12_0.c | 214 uint32_t min, uint32_t max) 228 ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_SetSoftMaxGfxClk, max, NULL); 239 ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_SetSoftMaxFclkByFreq, max, NULL); 248 ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_SetSoftMaxSocclkByFreq, max, NULL); 257 ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_SetSoftMaxVcn, max, NULL); 213 smu_v12_0_set_soft_freq_limited_range(struct smu_context *smu, enum smu_clk_type clk_type, uint32_t min, uint32_t max) argument
|
H A D | renoir_ppt.c | 266 /* The sclk as gfxclk and has three level about max/min/current */ 283 uint32_t *max) 310 if (max) 311 *max = clock_limit / 100; 316 if (max) { 328 ret = smu_cmn_send_smc_msg(smu, SMU_MSG_GetMaxGfxclkFrequency, max); 330 dev_err(smu->adev->dev, "Attempt to get max GX frequency from SMC Failed !\n"); 337 ret = renoir_get_dpm_clk_limited(smu, clk_type, mclk_mask, max); 342 ret = renoir_get_dpm_clk_limited(smu, clk_type, soc_mask, max); 458 dev_err(smu->adev->dev, "Set soft max scl 280 renoir_get_dpm_ultimate_freq(struct smu_context *smu, enum smu_clk_type clk_type, uint32_t *min, uint32_t *max) argument 472 uint32_t min = 0, max = 0; local 498 uint32_t cur_value = 0, value = 0, count = 0, min = 0, max = 0; local [all...] |
/linux-master/drivers/hwmon/ |
H A D | lm77.c | 243 int i, cur, conf, hyst, crit, min, max; local 269 max = i2c_smbus_read_word_data(client, 5); 275 || i2c_smbus_read_word_data(client, i + 5) != max) 284 || ((max & 0x00f0) != 0xf0 && (max & 0x00f0) != 0x0))
|
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | selftest_reset.c | 29 long max, count; local 122 max = -1; 154 max = page; 164 msg, count, max); 166 if (max >= I915_GEM_STOLEN_BIAS >> PAGE_SHIFT) {
|
/linux-master/include/net/ |
H A D | xdp_sock_drv.h | 25 u32 xsk_tx_peek_release_desc_batch(struct xsk_buff_pool *pool, u32 max); 109 /* Returns as many entries as possible up to max. 0 <= N <= max. */ 110 static inline u32 xsk_buff_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max) argument 112 return xp_alloc_batch(pool, xdp, max); 248 static inline u32 xsk_tx_peek_release_desc_batch(struct xsk_buff_pool *pool, u32 max) argument 345 static inline u32 xsk_buff_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max) argument
|
/linux-master/drivers/pci/hotplug/ |
H A D | acpiphp_glue.c | 374 unsigned char max, n; local 384 max = bus->busn_res.start; 388 if (n > max) 389 max = n; 391 return max; 448 int max; local 453 max = bus->busn_res.start; 457 max = pci_scan_bridge(bus, dev, max, 0); 465 max 502 int max, pass; local [all...] |
/linux-master/sound/usb/ |
H A D | pcm.c | 142 /* find the format with the largest max. packet size */ 745 if (fp->channels < ct->min || fp->channels > ct->max) { 746 hwc_debug(" > check: no valid channels %d (%d/%d)\n", fp->channels, ct->min, ct->max); 750 if (fp->rate_min > it->max || (fp->rate_min == it->max && it->openmax)) { 751 hwc_debug(" > check: rate_min %d > max %d\n", fp->rate_min, it->max); 761 if (ptime > pt->max || (ptime == pt->max && pt->openmax)) { 762 hwc_debug(" > check: ptime %u > max [all...] |
/linux-master/drivers/memory/samsung/ |
H A D | exynos5422-dmc.c | 721 * two DMC channels. The 'total_count' is used as a reference and max value. 1052 val = max(val, dmc->min_tck->tRFC); 1058 val = max(val, dmc->min_tck->tRRD); 1064 val = max(val, dmc->min_tck->tRPab); 1070 val = max(val, dmc->min_tck->tRCD); 1076 val = max(val, dmc->min_tck->tRC); 1082 val = max(val, dmc->min_tck->tRAS); 1089 val = max(val, dmc->min_tck->tWTR); 1095 val = max(val, dmc->min_tck->tWR); 1101 val = max(va [all...] |
/linux-master/drivers/hid/ |
H A D | hid-lenovo.c | 63 #define map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c)) 142 * - get a reasonable usage max for the vendor collection 171 struct hid_usage *usage, unsigned long **bit, int *max) 184 struct hid_usage *usage, unsigned long **bit, int *max) 243 hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL); 246 hid_map_usage(hi, usage, bit, max, EV_REL, REL_WHEEL); 258 struct hid_usage *usage, unsigned long **bit, int *max) 338 hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL); 341 hid_map_usage(hi, usage, bit, max, EV_REL, REL_WHEEL); 353 struct hid_usage *usage, unsigned long **bit, int *max) 169 lenovo_input_mapping_tpkbd(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 182 lenovo_input_mapping_cptkbd(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 256 lenovo_input_mapping_tpIIkbd(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 351 lenovo_input_mapping_scrollpoint(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 362 lenovo_input_mapping_tp10_ultrabook_kbd(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 400 lenovo_input_mapping_x1_tab_kbd(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 448 lenovo_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument [all...] |
/linux-master/sound/soc/sh/rcar/ |
H A D | core.c | 484 int max = array ? array_size : RSND_MOD_MAX; local 486 for (; *iterator < max; (*iterator)++) { 890 p.max = 0; 901 p.max = max(p.max, list[i]); 905 baseline->max, list[i], NULL); 908 p.max = max(p.max, lis 1830 rsnd_kctrl_new(struct rsnd_mod *mod, struct rsnd_dai_stream *io, struct snd_soc_pcm_runtime *rtd, const unsigned char *name, int (*accept)(struct rsnd_dai_stream *io), void (*update)(struct rsnd_dai_stream *io, struct rsnd_mod *mod), struct rsnd_kctrl_cfg *cfg, const char * const *texts, int size, u32 max) argument [all...] |
/linux-master/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_param.c | 172 int max; member in struct:e1000_option::__anon1089::__anon1090 202 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { 266 .max = mac_type < e1000_82544 ? E1000_MAX_TXD : E1000_MAX_82544_TXD 294 .max = mac_type < e1000_82544 ? E1000_MAX_RXD : 360 .max = MAX_TXDELAY }} 378 .max = MAX_TXABSDELAY }} 396 .max = MAX_RXDELAY }} 414 .max = MAX_RXABSDELAY }} 432 .max = MAX_ITR }}
|
/linux-master/net/rxrpc/ |
H A D | call_accept.c | 44 int max, tmp; local 48 max = rx->sk.sk_max_ack_backlog; 50 if (tmp >= max) { 51 _leave(" = -ENOBUFS [full %u]", max); 54 max -= tmp; 63 if (tmp >= max) { 67 max = tmp + 1; 71 if (CIRC_CNT(head, tail, size) < max) { 84 if (CIRC_CNT(head, tail, size) < max) {
|
/linux-master/drivers/media/v4l2-core/ |
H A D | v4l2-ctrls-defs.c | 1252 s64 *min, s64 *max, u64 *step, s64 *def, u32 *flags) 1314 *max = *step = 1; 1348 *min = *max = *step = *def = 0; 1457 *min = *max = *step = *def = 0; 1465 *max = 0xffffff; 1471 *max = 0xffff; 1492 *max = 0x1ffffffffLL; 1499 *max = 0x7fffffffffffffffLL; 1507 *max = 0xffffffffffffLL; 1251 v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type, s64 *min, s64 *max, u64 *step, s64 *def, u32 *flags) argument
|
/linux-master/drivers/pnp/pnpbios/ |
H A D | rsparser.c | 221 resource_size_t min, max, align, len; local 225 max = ((p[7] << 8) | p[6]) << 8; 229 pnp_register_mem_resource(dev, option_flags, min, max, align, len, 237 resource_size_t min, max, align, len; local 241 max = (p[11] << 24) | (p[10] << 16) | (p[9] << 8) | p[8]; 245 pnp_register_mem_resource(dev, option_flags, min, max, align, len, 292 resource_size_t min, max, align, len; local 296 max = (p[5] << 8) | p[4]; 300 pnp_register_port_resource(dev, option_flags, min, max, align, len,
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_dp_aux_backlight.c | 188 return panel->backlight.max; 314 panel->backlight.max = luminance_range->max_luminance; 317 panel->backlight.max = 512; 323 panel->backlight.min, panel->backlight.max); 424 panel->backlight.max = panel->backlight.edp.vesa.info.max; 430 panel->backlight.level = panel->backlight.max; 434 panel->backlight.max = panel->backlight.pwm_level_max; 440 panel->backlight.level = panel->backlight.max;
|
H A D | i9xx_wm.c | 198 * FIFO for a particular plane (so called max FIFO mode) to allow the 209 * Note that on VLV/CHV this actually only controls the max FIFO mode, 213 * While the system is actually in the CxSR/max FIFO mode, some plane 710 return max(0, tlb_miss); 903 cpp = max(cpp, 4u); 954 level = max(level, G4X_WM_LEVEL_SR); 1225 max(optimal->wm.plane[plane_id], 1232 intermediate->sr.plane = max(optimal->sr.plane, 1234 intermediate->sr.cursor = max(optimal->sr.cursor, 1236 intermediate->sr.fbc = max(optima 2514 ilk_compute_wm_maximums(const struct drm_i915_private *dev_priv, int level, const struct intel_wm_config *config, enum intel_ddb_partitioning ddb_partitioning, struct ilk_wm_maximums *max) argument 2526 ilk_compute_wm_reg_maximums(const struct drm_i915_private *dev_priv, int level, struct ilk_wm_maximums *max) argument 2536 ilk_validate_wm_level(struct drm_i915_private *i915, int level, const struct ilk_wm_maximums *max, struct intel_wm_level *result) argument 2779 struct ilk_wm_maximums max; local 2806 struct ilk_wm_maximums max; local 2961 ilk_wm_merge(struct drm_i915_private *dev_priv, const struct intel_wm_config *config, const struct ilk_wm_maximums *max, struct intel_pipe_wm *merged) argument 3289 struct ilk_wm_maximums max; local [all...] |
/linux-master/drivers/android/ |
H A D | binderfs.c | 69 fsparam_u32("max", Opt_max), 130 if (++info->device_count <= info->mount_opts.max) 294 ctx->max = result.uint_32; 318 info->mount_opts.max = ctx->max; 326 if (info->mount_opts.max <= BINDERFS_MAX_MINOR) 327 seq_printf(seq, ",max=%d", info->mount_opts.max); 694 info->mount_opts.max = ctx->max; [all...] |
/linux-master/drivers/base/regmap/ |
H A D | regcache.c | 304 unsigned int max) 308 for (reg = min; reg <= max; reg += map->reg_stride) { 441 * @max: last register to sync 449 unsigned int max) 466 dev_dbg(map->dev, "Syncing %s cache from %d-%d\n", name, min, max); 476 ret = map->cache_ops->sync(map, min, max); 478 ret = regcache_default_sync(map, min, max); 500 * @max: last register to discard 507 unsigned int max) 516 trace_regcache_drop_region(map, min, max); 303 regcache_default_sync(struct regmap *map, unsigned int min, unsigned int max) argument 448 regcache_sync_region(struct regmap *map, unsigned int min, unsigned int max) argument 506 regcache_drop_region(struct regmap *map, unsigned int min, unsigned int max) argument [all...] |
/linux-master/drivers/usb/phy/ |
H A D | phy.c | 126 unsigned int min, max; local 130 usb_phy_get_charger_current(usb_phy, &min, &max); 132 atomic_notifier_call_chain(&usb_phy->notifier, max, usb_phy); 274 * @max: the maximum current 281 unsigned int *min, unsigned int *max) 286 *max = usb_phy->chg_cur.sdp_max; 290 *max = usb_phy->chg_cur.dcp_max; 294 *max = usb_phy->chg_cur.cdp_max; 298 *max = usb_phy->chg_cur.aca_max; 302 *max 280 usb_phy_get_charger_current(struct usb_phy *usb_phy, unsigned int *min, unsigned int *max) argument [all...] |
/linux-master/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_ipp.c | 446 __limit_set_val(&res->h.max, l->h.max); 449 __limit_set_val(&res->v.max, l->v.max); 467 if ((l->min && val < l->min) || (l->max && val > l->max)) { 468 DRM_DEBUG_DRIVER("Value %d exceeds HW limits (min %d, max %d)\n", 469 val, l->min, l->max); 507 unsigned int min, unsigned int max) 509 if ((max 506 __scale_limit_check(unsigned int src, unsigned int dst, unsigned int min, unsigned int max) argument [all...] |
/linux-master/sound/soc/codecs/ |
H A D | rt715-sdca.c | 151 rt715_sdca_vol_gain(ucontrol->value.integer.value[i], mc->max, 186 rt715_sdca_vol_gain(ucontrol->value.integer.value[i], p->max, 222 rt715_sdca_boost_gain(ucontrol->value.integer.value[i], p->max, 336 ucontrol->value.integer.value[i] = invert ? p->max - val : val; 342 invert ? p->max - val : val; 358 unsigned int max = p->max; local 359 unsigned int mask = (1 << fls(max)) - 1; 374 val[i * 2] = max - val[i * 2]; 383 val[i * 2 + 1] = max [all...] |
/linux-master/lib/ |
H A D | rbtree_test.c | 225 u32 subtree, max = node->val; local 229 if (max < subtree) 230 max = subtree; 235 if (max < subtree) 236 max = subtree; 238 WARN_ON_ONCE(node->augmented != max);
|
/linux-master/sound/drivers/mpu401/ |
H A D | mpu401_uart.c | 360 int max = 64; local 367 while (max-- > 0) 391 int max = 128; local 394 while (max-- > 0) { 418 int max = 256; local 436 } while (--max > 0);
|