/linux-4.1.27/include/uapi/linux/netfilter/ |
H A D | xt_length.h | 7 __u16 min, max; member in struct:xt_length_info
|
H A D | xt_hashlimit.h | 8 /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490 34 __u32 max; /* max number of entries */ member in struct:hashlimit_cfg 58 __u32 max; /* max number of entries */ member in struct:hashlimit_cfg1
|
H A D | nf_nat.h | 26 union nf_conntrack_man_proto max; member in struct:nf_nat_ipv4_range
|
H A D | xt_limit.h | 11 /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490
|
H A D | xt_u32.h | 20 __u32 max; member in struct:xt_u32_value_element
|
/linux-4.1.27/drivers/regulator/ |
H A D | max8973-regulator.c | 151 struct max8973_chip *max = rdev_get_drvdata(rdev); max8973_dcdc_get_voltage_sel() local 155 ret = regmap_read(max->regmap, max->curr_vout_reg, &data); max8973_dcdc_get_voltage_sel() 157 dev_err(max->dev, "register %d read failed, err = %d\n", max8973_dcdc_get_voltage_sel() 158 max->curr_vout_reg, ret); max8973_dcdc_get_voltage_sel() 167 struct max8973_chip *max = rdev_get_drvdata(rdev); max8973_dcdc_set_voltage_sel() local 170 int vout_reg = max->curr_vout_reg; max8973_dcdc_set_voltage_sel() 171 int gpio_val = max->curr_gpio_val; max8973_dcdc_set_voltage_sel() 177 if (max->valid_dvs_gpio) max8973_dcdc_set_voltage_sel() 178 found = find_voltage_set_register(max, vsel, max8973_dcdc_set_voltage_sel() 182 ret = regmap_update_bits(max->regmap, vout_reg, max8973_dcdc_set_voltage_sel() 185 dev_err(max->dev, "register %d update failed, err %d\n", max8973_dcdc_set_voltage_sel() 189 max->curr_vout_reg = vout_reg; max8973_dcdc_set_voltage_sel() 190 max->curr_vout_val[gpio_val] = vsel; max8973_dcdc_set_voltage_sel() 194 if (max->valid_dvs_gpio) { max8973_dcdc_set_voltage_sel() 195 gpio_set_value_cansleep(max->dvs_gpio, gpio_val & 0x1); max8973_dcdc_set_voltage_sel() 196 max->curr_gpio_val = gpio_val; max8973_dcdc_set_voltage_sel() 203 struct max8973_chip *max = rdev_get_drvdata(rdev); max8973_dcdc_set_mode() local 221 ret = regmap_update_bits(max->regmap, MAX8973_CONTROL1, max8973_dcdc_set_mode() 224 dev_err(max->dev, "register %d update failed, err %d\n", max8973_dcdc_set_mode() 231 struct max8973_chip *max = rdev_get_drvdata(rdev); max8973_dcdc_get_mode() local 235 ret = regmap_read(max->regmap, MAX8973_CONTROL1, &data); max8973_dcdc_get_mode() 237 dev_err(max->dev, "register %d read failed, err %d\n", max8973_dcdc_get_mode() 253 static int max8973_init_dcdc(struct max8973_chip *max, max8973_init_dcdc() argument 288 max->desc.ramp_delay = 12500; max8973_init_dcdc() 332 ret = regmap_write(max->regmap, MAX8973_CONTROL1, control1); max8973_init_dcdc() 334 dev_err(max->dev, "register %d write failed, err = %d", max8973_init_dcdc() 339 ret = regmap_write(max->regmap, MAX8973_CONTROL2, control2); max8973_init_dcdc() 341 dev_err(max->dev, "register %d write failed, err = %d", max8973_init_dcdc() 347 if (max->enable_external_control) { max8973_init_dcdc() 348 ret = regmap_update_bits(max->regmap, MAX8973_VOUT, max8973_init_dcdc() 351 dev_err(max->dev, "register %d update failed, err = %d", max8973_init_dcdc() 370 struct max8973_chip *max; max8973_probe() local 380 max = devm_kzalloc(&client->dev, sizeof(*max), GFP_KERNEL); max8973_probe() 381 if (!max) max8973_probe() 384 max->regmap = devm_regmap_init_i2c(client, &max8973_regmap_config); max8973_probe() 385 if (IS_ERR(max->regmap)) { max8973_probe() 386 ret = PTR_ERR(max->regmap); max8973_probe() 391 i2c_set_clientdata(client, max); max8973_probe() 392 max->ops = max8973_dcdc_ops; max8973_probe() 393 max->dev = &client->dev; max8973_probe() 394 max->desc.name = id->name; max8973_probe() 395 max->desc.id = 0; max8973_probe() 396 max->desc.ops = &max->ops; max8973_probe() 397 max->desc.type = REGULATOR_VOLTAGE; max8973_probe() 398 max->desc.owner = THIS_MODULE; max8973_probe() 399 max->desc.min_uV = MAX8973_MIN_VOLATGE; max8973_probe() 400 max->desc.uV_step = MAX8973_VOLATGE_STEP; max8973_probe() 401 max->desc.n_voltages = MAX8973_BUCK_N_VOLTAGE; max8973_probe() 404 max->desc.enable_reg = MAX8973_VOUT; max8973_probe() 405 max->desc.enable_mask = MAX8973_VOUT_ENABLE; max8973_probe() 406 max->ops.enable = regulator_enable_regmap; max8973_probe() 407 max->ops.disable = regulator_disable_regmap; max8973_probe() 408 max->ops.is_enabled = regulator_is_enabled_regmap; max8973_probe() 412 max->dvs_gpio = pdata->dvs_gpio; max8973_probe() 413 max->enable_external_control = pdata->enable_ext_control; max8973_probe() 414 max->curr_gpio_val = pdata->dvs_def_state; max8973_probe() 415 max->curr_vout_reg = MAX8973_VOUT + pdata->dvs_def_state; max8973_probe() 417 max->dvs_gpio = -EINVAL; max8973_probe() 418 max->curr_vout_reg = MAX8973_VOUT; max8973_probe() 421 max->lru_index[0] = max->curr_vout_reg; max8973_probe() 423 if (gpio_is_valid(max->dvs_gpio)) { max8973_probe() 429 ret = devm_gpio_request_one(&client->dev, max->dvs_gpio, max8973_probe() 434 max->dvs_gpio, ret); max8973_probe() 437 max->valid_dvs_gpio = true; max8973_probe() 442 * set with the max->curr_vout_reg */ max8973_probe() 444 max->lru_index[i] = i; max8973_probe() 445 max->lru_index[0] = max->curr_vout_reg; max8973_probe() 446 max->lru_index[max->curr_vout_reg] = 0; max8973_probe() 448 max->valid_dvs_gpio = false; max8973_probe() 452 ret = max8973_init_dcdc(max, pdata); max8973_probe() 454 dev_err(max->dev, "Max8973 Init failed, err = %d\n", ret); max8973_probe() 462 &max->desc); max8973_probe() 463 config.driver_data = max; max8973_probe() 465 config.regmap = max->regmap; max8973_probe() 468 rdev = devm_regulator_register(&client->dev, &max->desc, &config); max8973_probe() 471 dev_err(max->dev, "regulator register failed, err %d\n", ret); max8973_probe()
|
H A D | da903x.c | 313 #define DA903x_LDO(_pmic, _id, min, max, step, vreg, shift, nbits, ereg, ebit) \ 320 .n_voltages = (step) ? ((max - min) / step + 1) : 1, \ 325 .max_uV = (max) * 1000, \ 333 #define DA903x_DVC(_pmic, _id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ 340 .n_voltages = (step) ? ((max - min) / step + 1) : 1, \ 345 .max_uV = (max) * 1000, \ 355 #define DA9034_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ 356 DA903x_LDO(DA9034, _id, min, max, step, vreg, shift, nbits, ereg, ebit) 358 #define DA9030_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ 359 DA903x_LDO(DA9030, _id, min, max, step, vreg, shift, nbits, ereg, ebit) 361 #define DA9030_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ 362 DA903x_DVC(DA9030, _id, min, max, step, vreg, nbits, ureg, ubit, \ 365 #define DA9034_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ 366 DA903x_DVC(DA9034, _id, min, max, step, vreg, nbits, ureg, ubit, \ 369 #define DA9035_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ 370 DA903x_DVC(DA9035, _id, min, max, step, vreg, nbits, ureg, ubit, \
|
/linux-4.1.27/drivers/macintosh/ |
H A D | windfarm_max6690_sensor.c | 37 struct wf_6690_sensor *max = wf_to_6690(sr); wf_max6690_get() local 40 if (max->i2c == NULL) wf_max6690_get() 44 data = i2c_smbus_read_byte_data(max->i2c, MAX6690_EXTERNAL_TEMP); wf_max6690_get() 53 struct wf_6690_sensor *max = wf_to_6690(sr); wf_max6690_release() local 55 kfree(max); wf_max6690_release() 68 struct wf_6690_sensor *max; wf_max6690_probe() local 90 max = kzalloc(sizeof(struct wf_6690_sensor), GFP_KERNEL); wf_max6690_probe() 91 if (max == NULL) { wf_max6690_probe() 97 max->i2c = client; wf_max6690_probe() 98 max->sens.name = name; wf_max6690_probe() 99 max->sens.ops = &wf_max6690_ops; wf_max6690_probe() 100 i2c_set_clientdata(client, max); wf_max6690_probe() 102 rc = wf_register_sensor(&max->sens); wf_max6690_probe() 104 kfree(max); wf_max6690_probe() 110 struct wf_6690_sensor *max = i2c_get_clientdata(client); wf_max6690_remove() local 112 max->i2c = NULL; wf_max6690_remove() 113 wf_unregister_sensor(&max->sens); wf_max6690_remove()
|
H A D | windfarm_fcu_controls.c | 49 /* Default min/max for pumps */ 67 s32 min, max, target; member in struct:wf_fcu_fan 154 if (value > fan->max) wf_fcu_fan_set_rpm() 155 value = fan->max; wf_fcu_fan_set_rpm() 211 if (value > fan->max) wf_fcu_fan_set_pwm() 212 value = fan->max; wf_fcu_fan_set_pwm() 264 return fan->max; wf_fcu_fan_max() 291 /* Try to fetch pumps min/max infos from eeprom */ wf_fcu_get_pump_minmax() 295 pump_min = max(pump_min, tmp[0]); wf_fcu_get_pump_minmax() 299 pump_min = max(pump_min, tmp[2]); wf_fcu_get_pump_minmax() 305 * some dual 2.5Ghz G5s seem, at least, to have both min & max wf_fcu_get_pump_minmax() 314 fan->max = pump_max; wf_fcu_get_pump_minmax() 316 DBG("wf_fcu: pump min/max for %s set to: [%d..%d] RPM\n", wf_fcu_get_pump_minmax() 328 fan->max = 56000 >> pv->rpm_shift; wf_fcu_get_rpmfan_minmax() 330 /* CPU fans have min/max in MPU */ wf_fcu_get_rpmfan_minmax() 332 fan->min = max(fan->min, (s32)mpu0->rminn_intake_fan); wf_fcu_get_rpmfan_minmax() 333 fan->max = min(fan->max, (s32)mpu0->rmaxn_intake_fan); wf_fcu_get_rpmfan_minmax() 337 fan->min = max(fan->min, (s32)mpu1->rminn_intake_fan); wf_fcu_get_rpmfan_minmax() 338 fan->max = min(fan->max, (s32)mpu1->rmaxn_intake_fan); wf_fcu_get_rpmfan_minmax() 342 fan->min = max(fan->min, (s32)mpu0->rminn_exhaust_fan); wf_fcu_get_rpmfan_minmax() 343 fan->max = min(fan->max, (s32)mpu0->rmaxn_exhaust_fan); wf_fcu_get_rpmfan_minmax() 347 fan->min = max(fan->min, (s32)mpu1->rminn_exhaust_fan); wf_fcu_get_rpmfan_minmax() 348 fan->max = min(fan->max, (s32)mpu1->rmaxn_exhaust_fan); wf_fcu_get_rpmfan_minmax() 353 fan->min = max(fan->min, (s32)mpu0->rminn_intake_fan); wf_fcu_get_rpmfan_minmax() 354 fan->max = min(fan->max, (s32)mpu0->rmaxn_intake_fan); wf_fcu_get_rpmfan_minmax() 358 DBG("wf_fcu: fan min/max for %s set to: [%d..%d] RPM\n", wf_fcu_get_rpmfan_minmax() 359 fan->ctrl.name, fan->min, fan->max); wf_fcu_get_rpmfan_minmax() 375 /* min/max is oddball but the code comes from wf_fcu_add_fan() 387 fan->max = 100; wf_fcu_add_fan()
|
H A D | via-pmu-backlight.c | 23 static void pmu_backlight_init_curve(u8 off, u8 min, u8 max) pmu_backlight_init_curve() argument 25 int i, flat, count, range = (max - min); pmu_backlight_init_curve() 40 int i, max = 0; pmu_backlight_curve_lookup() local 44 max = max((int)bl_curve[i], max); pmu_backlight_curve_lookup() 49 if (diff < max) { pmu_backlight_curve_lookup() 50 max = diff; pmu_backlight_curve_lookup()
|
H A D | windfarm_pid.h | 32 s32 min,max; /* min and max target values */ member in struct:wf_pid_param 64 s32 pmaxadj; /* PID max power adjust */ 66 s32 tmax; /* PID input max */ 67 s32 min,max; /* min and max target values */ member in struct:wf_cpu_pid_param
|
H A D | windfarm_rm31.c | 104 /* We max all CPU fans in case of a sensor error. We also do the cpu_max_all_fans() 156 * We calculate a history of max temperatures and use that for the cpu_check_overtemp() 267 t_max = max(t_max, temp); cpu_fans_tick() 279 speed = max(sp->target, dimms_output_clamp); cpu_fans_tick() 313 /* Set PID min/max by using the rear fan min/max */ cpu_setup_pid() 316 DBG("wf_72: CPU%d max RPM range = [%d..%d]\n", cpu, fmin, fmax); cpu_setup_pid() 332 pid.max = fmax; cpu_setup_pid() 350 .max = 100, 363 .max = 14000, 410 fan_min = max(fan_min, backside_param.min); backside_fan_tick() 411 speed = max(speed, fan_min); backside_fan_tick() 428 param.min = max(param.min, fmin); backside_setup_pid() 429 param.max = min(param.max, fmax); backside_setup_pid() 450 .max = 100, 494 param.min = max(param.min, fmin); slots_setup_pid() 495 param.max = min(param.max, fmax); slots_setup_pid()
|
H A D | windfarm_pid.c | 72 target = max(target, st->param.min); wf_pid_run() 73 target = min(target, st->param.max); wf_pid_run() 139 target = max(target, st->param.min); wf_cpu_pid_run() 140 target = min(target, st->param.max); wf_cpu_pid_run()
|
H A D | windfarm_pm81.c | 30 * scaled with the second pair of factors, and the max of that and 72 * by the System Fans control loop itself). Then, the max value of the 278 /* No params found, put fans to max */ wf_smu_create_sys_fans() 281 "for this machine model, max fan speed\n"); wf_smu_create_sys_fans() 290 " max fan speed\n"); wf_smu_create_sys_fans() 307 pid_param.max = wf_control_get_max(fan_system); wf_smu_create_sys_fans() 310 max(pid_param.min, wf_control_get_min(fan_hd)); wf_smu_create_sys_fans() 311 pid_param.max = wf_smu_create_sys_fans() 312 min(pid_param.max, wf_control_get_max(fan_hd)); wf_smu_create_sys_fans() 317 DBG(" itarged=%d.%03d, min=%d RPM, max=%d RPM\n", wf_smu_create_sys_fans() 318 FIX32TOPRINT(pid_param.itarget), pid_param.min, pid_param.max); wf_smu_create_sys_fans() 365 scaled = max(scaled, cputarget); wf_smu_sys_fans_tick() 366 scaled = max(scaled, st->pid.param.min); wf_smu_sys_fans_tick() 367 scaled = min(scaled, st->pid.param.max); wf_smu_sys_fans_tick() 406 "max fan speed\n"); wf_smu_create_cpu_fans() 452 pid_param.max = wf_control_get_max(fan_cpu_main); wf_smu_create_cpu_fans() 457 DBG(" ttarged=%d.%03d, tmax=%d.%03d, min=%d RPM, max=%d RPM\n", wf_smu_create_cpu_fans() 459 pid_param.min, pid_param.max); wf_smu_create_cpu_fans() 465 "for this machine model, max fan speed\n"); wf_smu_create_cpu_fans() 518 new_setpoint = max(new_setpoint, systarget); wf_smu_cpu_fans_tick() 519 new_setpoint = max(new_setpoint, st->pid.param.min); wf_smu_cpu_fans_tick() 520 new_setpoint = min(new_setpoint, st->pid.param.max); wf_smu_cpu_fans_tick()
|
H A D | windfarm_pm72.c | 110 /* We max all CPU fans in case of a sensor error. We also do the cpu_max_all_fans() 162 * We calculate a history of max temperatures and use that for the cpu_check_overtemp() 275 t_max = max(t_max, temp); cpu_fans_tick_split() 338 t_max = max(t_max, max(temp0, temp1)); cpu_fans_tick_combined() 344 /* Use the max temp & power of both */ cpu_fans_tick_combined() 345 temp = max(temp0, temp1); cpu_fans_tick_combined() 346 power = max(power0, power1); cpu_fans_tick_combined() 412 /* Set PID min/max by using the rear fan min/max */ cpu_setup_pid() 415 DBG("wf_72: CPU%d max RPM range = [%d..%d]\n", cpu, fmin, fmax); cpu_setup_pid() 431 pid.max = fmax; cpu_setup_pid() 449 .max = 100, 461 .max = 100, 523 param.min = max(param.min, fmin); backside_setup_pid() 524 param.max = min(param.max, fmax); backside_setup_pid() 541 .max = 4000, 589 param.min = max(param.min, fmin); drives_setup_pid() 590 param.max = min(param.max, fmax); drives_setup_pid()
|
H A D | windfarm_smu_controls.c | 49 s32 min, max; /* min/max values */ member in struct:smu_fan_control 122 if (value > fct->max) smu_fan_set() 123 value = fct->max; smu_fan_set() 145 return fct->max; smu_fan_max() 231 /* Get min & max values*/ smu_fan_create() 236 v = of_get_property(node, "max-value", NULL); smu_fan_create() 239 fct->max = *v; smu_fan_create()
|
/linux-4.1.27/include/uapi/asm-generic/ |
H A D | param.h | 16 #define MAXHOSTNAMELEN 64 /* max length of hostname */
|
H A D | resource.h | 17 #define RLIMIT_DATA 2 /* max data size */ 18 #define RLIMIT_STACK 3 /* max stack size */ 19 #define RLIMIT_CORE 4 /* max core file size */ 22 # define RLIMIT_RSS 5 /* max resident set size */ 26 # define RLIMIT_NPROC 6 /* max number of processes */ 30 # define RLIMIT_NOFILE 7 /* max number of open files */ 34 # define RLIMIT_MEMLOCK 8 /* max locked-in-memory address space */ 42 #define RLIMIT_SIGPENDING 11 /* max number of pending signals */ 44 #define RLIMIT_NICE 13 /* max nice prio allowed to raise to
|
/linux-4.1.27/arch/alpha/include/uapi/asm/ |
H A D | param.h | 12 #define MAXHOSTNAMELEN 64 /* max length of hostname */
|
H A D | resource.h | 8 #define RLIMIT_NOFILE 6 /* max number of open files */ 10 #define RLIMIT_NPROC 8 /* max number of processes */ 11 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */
|
H A D | msgbuf.h | 20 unsigned long msg_qbytes; /* max number of bytes on queue */
|
/linux-4.1.27/fs/cachefiles/ |
H A D | key.c | 42 int loop, len, max, seg, mark, print; cachefiles_cook_key() local 58 max = keylen - 2; cachefiles_cook_key() 59 max += 2; /* two base64'd length chars on the front */ cachefiles_cook_key() 60 max += 5; /* @checksum/M */ cachefiles_cook_key() 61 max += 3 * 2; /* maximum number of segment dividers (".../M") cachefiles_cook_key() 64 max += 1; /* NUL on end */ cachefiles_cook_key() 69 max = keylen * 4; cachefiles_cook_key() 70 max += 5; /* @checksum/M */ cachefiles_cook_key() 71 max += 3 * 2; /* maximum number of segment dividers (".../M") cachefiles_cook_key() 74 max += 1; /* NUL on end */ cachefiles_cook_key() 77 max += 1; /* 2nd NUL on end */ cachefiles_cook_key() 79 _debug("max: %d", max); cachefiles_cook_key() 81 key = kmalloc(max, cachefiles_gfp); cachefiles_cook_key() 111 ASSERT(len < max); cachefiles_cook_key() 143 ASSERT(len < max); cachefiles_cook_key()
|
/linux-4.1.27/arch/mips/dec/prom/ |
H A D | dectypes.h | 5 #define DS5000_200 2 /* DS5000/200 3max */ 7 #define DS5000_2X0 4 /* DS5000/2x0 3max+ */
|
/linux-4.1.27/include/trace/events/ |
H A D | regulator.h | 78 TP_PROTO(const char *name, int min, int max), 80 TP_ARGS(name, min, max), 85 __field( int, max ) 91 __entry->max = max; 95 (int)__entry->min, (int)__entry->max) 100 TP_PROTO(const char *name, int min, int max), 102 TP_ARGS(name, min, max)
|
/linux-4.1.27/tools/perf/util/ |
H A D | stat.h | 9 u64 max, min; member in struct:stats 23 stats->max = 0; init_stats()
|
H A D | stat.c | 14 if (val > stats->max) update_stats() 15 stats->max = val; update_stats()
|
/linux-4.1.27/include/uapi/linux/cifs/ |
H A D | cifs_mount.h | 20 #define CIFS_MAX_DOMAINNAME_LEN 256 /* max fully qualified domain name */ 21 #define CIFS_MAX_USERNAME_LEN 256 /* reasonable max for current servers */ 22 #define CIFS_MAX_PASSWORD_LEN 512 /* Windows max seems to be 256 wide chars */ 23 #define CIFS_MAX_SHARE_LEN 256 /* reasonable max share name length */ 24 #define CIFS_NI_MAXHOST 1024 /* max host name length (256 * 4 bytes) */
|
/linux-4.1.27/include/linux/netfilter/ |
H A D | nf_conntrack_tcp.h | 8 u_int32_t td_end; /* max of seq + len */ 9 u_int32_t td_maxend; /* max of ack + max(win, 1) */ 10 u_int32_t td_maxwin; /* max(win) */ 11 u_int32_t td_maxack; /* max of ack */
|
/linux-4.1.27/security/keys/ |
H A D | sysctl.c | 16 static const int zero, one = 1, max = INT_MAX; variable 26 .extra2 = (void *) &max, 35 .extra2 = (void *) &max, 44 .extra2 = (void *) &max, 53 .extra2 = (void *) &max, 62 .extra2 = (void *) &max, 72 .extra2 = (void *) &max,
|
/linux-4.1.27/lib/ |
H A D | strncpy_from_user.c | 20 * hit it), 'max' is the address space maximum (and we return 23 static inline long do_strncpy_from_user(char *dst, const char __user *src, long count, unsigned long max) do_strncpy_from_user() argument 29 * Truncate 'max' to the user-specified limit, so that do_strncpy_from_user() 32 if (max > count) do_strncpy_from_user() 33 max = count; do_strncpy_from_user() 38 while (max >= sizeof(unsigned long)) { do_strncpy_from_user() 51 max -= sizeof(unsigned long); do_strncpy_from_user() 55 while (max) { do_strncpy_from_user() 64 max--; do_strncpy_from_user() 68 * Uhhuh. We hit 'max'. But was that the user-specified maximum do_strncpy_from_user() 109 unsigned long max = max_addr - src_addr; strncpy_from_user() local 110 return do_strncpy_from_user(dst, src, count, max); strncpy_from_user()
|
H A D | strnlen_user.c | 16 * 'count' is the user-supplied count, while 'max' is the 25 * the return value against "> max". 27 static inline long do_strnlen_user(const char __user *src, unsigned long count, unsigned long max) do_strnlen_user() argument 34 * Truncate 'max' to the user-specified limit, so that do_strnlen_user() 37 if (max > count) do_strnlen_user() 38 max = count; do_strnlen_user() 46 max += align; do_strnlen_user() 61 if (unlikely(max <= sizeof(unsigned long))) do_strnlen_user() 63 max -= sizeof(unsigned long); do_strnlen_user() 70 * Uhhuh. We hit 'max'. But was that the user-specified maximum do_strnlen_user() 113 unsigned long max = max_addr - src_addr; strnlen_user() local 114 return do_strnlen_user(str, count, max); strnlen_user() 141 unsigned long max = max_addr - src_addr; strlen_user() local 142 return do_strnlen_user(str, ~0ul, max); strlen_user()
|
H A D | reciprocal_div.c | 23 R.sh2 = max(l - 1, 0); reciprocal_value()
|
H A D | rbtree_test.c | 48 u32 max = node->val, child_augmented; augment_recompute() local 52 if (max < child_augmented) augment_recompute() 53 max = child_augmented; augment_recompute() 58 if (max < child_augmented) augment_recompute() 59 max = child_augmented; augment_recompute() 61 return max; augment_recompute()
|
/linux-4.1.27/arch/mips/include/uapi/asm/ |
H A D | resource.h | 17 #define RLIMIT_NOFILE 5 /* max number of open files */ 19 #define RLIMIT_RSS 7 /* max resident set size */ 20 #define RLIMIT_NPROC 8 /* max number of processes */ 21 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */
|
/linux-4.1.27/arch/sparc/include/uapi/asm/ |
H A D | resource.h | 14 #define RLIMIT_NOFILE 6 /* max number of open files */ 15 #define RLIMIT_NPROC 7 /* max number of processes */
|
/linux-4.1.27/include/net/ |
H A D | firewire.h | 11 u8 max_rec; /* max packet size */ 12 u8 sspd; /* max speed */
|
/linux-4.1.27/arch/frv/kernel/ |
H A D | uaccess.c | 22 unsigned long max; strncpy_from_user() local 38 max = get_addr_limit() - (unsigned long) src; strncpy_from_user() 39 if ((unsigned long) count > max) { strncpy_from_user() 40 memset(dst + max, 0, count - max); strncpy_from_user() 41 count = max; strncpy_from_user()
|
/linux-4.1.27/include/keys/ |
H A D | rxrpc-type.h | 114 #define AFSTOKEN_LENGTH_MAX 16384 /* max payload size */ 115 #define AFSTOKEN_STRING_MAX 256 /* max small string length */ 116 #define AFSTOKEN_DATA_MAX 64 /* max small data length */ 117 #define AFSTOKEN_CELL_MAX 64 /* max cellname length */ 118 #define AFSTOKEN_MAX 8 /* max tokens per payload */ 119 #define AFSTOKEN_BDATALN_MAX 16384 /* max big data length */ 120 #define AFSTOKEN_RK_TIX_MAX 12000 /* max RxKAD ticket size */ 121 #define AFSTOKEN_GK_KEY_MAX 64 /* max GSSAPI key size */ 122 #define AFSTOKEN_GK_TOKEN_MAX 16384 /* max GSSAPI token size */ 123 #define AFSTOKEN_K5_COMPONENTS_MAX 16 /* max K5 components */ 124 #define AFSTOKEN_K5_NAME_MAX 128 /* max K5 name length */ 125 #define AFSTOKEN_K5_REALM_MAX 64 /* max K5 realm name length */ 126 #define AFSTOKEN_K5_TIX_MAX 16384 /* max K5 ticket size */ 127 #define AFSTOKEN_K5_ADDRESSES_MAX 16 /* max K5 addresses */ 128 #define AFSTOKEN_K5_AUTHDATA_MAX 16 /* max K5 pieces of auth data */
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
H A D | bitfield.h | 113 * which contains bits [min,max). 126 #define EFX_EXTRACT_NATIVE(native_element, min, max, low, high) \ 127 ((low) > (max) || (high) < (min) ? 0 : \ 134 * element which contains bits [min,max) 136 #define EFX_EXTRACT64(element, min, max, low, high) \ 137 EFX_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high) 141 * element which contains bits [min,max) 143 #define EFX_EXTRACT32(element, min, max, low, high) \ 144 EFX_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high) 243 * the range [min,max). 245 #define EFX_INSERT_NATIVE64(min, max, low, high, value) \ 246 (((low > max) || (high < min)) ? 0 : \ 251 #define EFX_INSERT_NATIVE32(min, max, low, high, value) \ 252 (((low > max) || (high < min)) ? 0 : \ 257 #define EFX_INSERT_NATIVE(min, max, low, high, value) \ 258 ((((max - min) >= 32) || ((high - low) >= 32)) ? \ 259 EFX_INSERT_NATIVE64(min, max, low, high, value) : \ 260 EFX_INSERT_NATIVE32(min, max, low, high, value)) 266 * range [min,max). 268 #define EFX_INSERT_FIELD_NATIVE(min, max, field, value) \ 269 EFX_INSERT_NATIVE(min, max, EFX_LOW_BIT(field), \ 276 * range [min,max). 278 #define EFX_INSERT_FIELDS_NATIVE(min, max, \ 289 (EFX_INSERT_FIELD_NATIVE((min), (max), field1, (value1)) | \ 290 EFX_INSERT_FIELD_NATIVE((min), (max), field2, (value2)) | \ 291 EFX_INSERT_FIELD_NATIVE((min), (max), field3, (value3)) | \ 292 EFX_INSERT_FIELD_NATIVE((min), (max), field4, (value4)) | \ 293 EFX_INSERT_FIELD_NATIVE((min), (max), field5, (value5)) | \ 294 EFX_INSERT_FIELD_NATIVE((min), (max), field6, (value6)) | \ 295 EFX_INSERT_FIELD_NATIVE((min), (max), field7, (value7)) | \ 296 EFX_INSERT_FIELD_NATIVE((min), (max), field8, (value8)) | \ 297 EFX_INSERT_FIELD_NATIVE((min), (max), field9, (value9)) | \ 298 EFX_INSERT_FIELD_NATIVE((min), (max), field10, (value10))) 442 #define EFX_INSERT64(min, max, low, high, value) \ 443 cpu_to_le64(EFX_INSERT_NATIVE(min, max, low, high, value)) 445 #define EFX_INSERT32(min, max, low, high, value) \ 446 cpu_to_le32(EFX_INSERT_NATIVE(min, max, low, high, value)) 448 #define EFX_INPLACE_MASK64(min, max, low, high) \ 449 EFX_INSERT64(min, max, low, high, EFX_MASK64((high) + 1 - (low))) 451 #define EFX_INPLACE_MASK32(min, max, low, high) \ 452 EFX_INSERT32(min, max, low, high, EFX_MASK32((high) + 1 - (low)))
|
/linux-4.1.27/drivers/cpufreq/ |
H A D | s3c2410-cpufreq.c | 53 hclk_max = cfg->max.hclk; s3c2410_cpufreq_calcdivs() 57 s3c_freq_dbg("%s: fclk is %lu, max hclk %lu\n", s3c2410_cpufreq_calcdivs() 60 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; s3c2410_cpufreq_calcdivs() 63 if (hclk > cfg->max.hclk) { s3c2410_cpufreq_calcdivs() 68 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; s3c2410_cpufreq_calcdivs() 71 if (pclk > cfg->max.pclk) { s3c2410_cpufreq_calcdivs() 86 .max = { 140 s3c2410_cpufreq_info.max.fclk = 266000000; s3c2410a_cpufreq_add() 141 s3c2410_cpufreq_info.max.hclk = 133000000; s3c2410a_cpufreq_add() 142 s3c2410_cpufreq_info.max.pclk = 66500000; s3c2410a_cpufreq_add()
|
H A D | cpufreq_performance.c | 26 policy->max, event); cpufreq_governor_performance() 27 __cpufreq_driver_target(policy, policy->max, cpufreq_governor_performance()
|
H A D | sh-cpufreq.c | 62 if (freq < (policy->min * 1000) || freq > (policy->max * 1000)) sh_cpufreq_target() 93 policy->max = (clk_round_rate(cpuclk, ~0UL) + 500) / 1000; sh_cpufreq_verify() 127 policy->max = policy->cpuinfo.max_freq = sh_cpufreq_cpu_init() 136 policy->max / 1000, policy->max % 1000); sh_cpufreq_cpu_init()
|
H A D | cpufreq_userspace.c | 77 cpu, policy->min, policy->max, cpufreq_governor_userspace() 80 if (policy->max < policy->cur) cpufreq_governor_userspace() 81 __cpufreq_driver_target(policy, policy->max, cpufreq_governor_userspace()
|
H A D | integrator-cpufreq.c | 65 vco = icst_hz_to_vco(&cclk_params, policy->max * 1000); integrator_verify_policy() 66 policy->max = icst_hz(&cclk_params, vco) / 1000; integrator_verify_policy() 115 if (target_freq > policy->max) integrator_set_target() 116 target_freq = policy->max; integrator_set_target() 185 policy->max = policy->cpuinfo.max_freq = 160000; integrator_cpufreq_init()
|
H A D | powernv-cpufreq.c | 48 * largest of which is indicated by powernv_pstate_info.max. 55 int max; member in struct:powernv_pstate_info 82 if (of_property_read_u32(power_mgt, "ibm,pstate-max", &pstate_max)) { init_powernv_pstates() 83 pr_warn("ibm,pstate-max node not found\n"); init_powernv_pstates() 92 pr_info("cpufreq pstate min %d nominal %d max %d\n", pstate_min, init_powernv_pstates() 132 powernv_pstate_info.max = pstate_max; init_powernv_pstates() 144 i = powernv_pstate_info.max - pstate_id; pstate_id_to_freq() 149 i = powernv_pstate_info.max - powernv_pstate_info.nominal; pstate_id_to_freq() 298 return powernv_pstate_info.max - powernv_pstate_info.nominal; get_nominal_index() 310 if (pmsr_pmax != powernv_pstate_info.max) { powernv_cpufreq_throttle_check()
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_sysctl.c | 85 .extra2 = &xfs_params.sgid_inherit.max 94 .extra2 = &xfs_params.symlink_mode.max 103 .extra2 = &xfs_params.panic_mask.max 113 .extra2 = &xfs_params.error_level.max 122 .extra2 = &xfs_params.syncd_timer.max 131 .extra2 = &xfs_params.inherit_sync.max 140 .extra2 = &xfs_params.inherit_nodump.max 149 .extra2 = &xfs_params.inherit_noatim.max 158 .extra2 = &xfs_params.inherit_nosym.max 167 .extra2 = &xfs_params.rotorstep.max 176 .extra2 = &xfs_params.inherit_nodfrg.max 185 .extra2 = &xfs_params.fstrm_timer.max, 194 .extra2 = &xfs_params.eofb_timer.max, 205 .extra2 = &xfs_params.stats_clear.max
|
/linux-4.1.27/drivers/gpu/host1x/ |
H A D | syncpt.h | 70 * Check sync point sanity. If max is larger than min, there have too many 77 u32 max; host1x_syncpt_check_max() local 80 max = host1x_syncpt_read_max(sp); host1x_syncpt_check_max() 81 return (s32)(max - real) >= 0; host1x_syncpt_check_max() 91 * Returns true if syncpoint min == max, which means that there are no 96 int min, max; host1x_syncpt_idle() local 99 max = atomic_read(&sp->max_val); host1x_syncpt_idle() 100 return (min == max); host1x_syncpt_idle() 118 /* Indicate future operations by incrementing the sync point max. */
|
/linux-4.1.27/arch/x86/kernel/cpu/ |
H A D | transmeta.c | 21 unsigned int cap_mask, uk, max, dummy; init_transmeta() local 31 max = cpuid_eax(0x80860000); init_transmeta() 33 if (max >= 0x80860001) { init_transmeta() 44 if (max >= 0x80860002) { init_transmeta() 57 if (max >= 0x80860006) { init_transmeta()
|
/linux-4.1.27/drivers/hwmon/ |
H A D | abx500.h | 40 * @max: sensor temperature max value 41 * @max_hyst: sensor temperature hysteresis value for max limit 43 * @max_alarm: sensor temperature max alarm 56 unsigned long max[NUM_SENSORS]; member in struct:abx500_temp
|
H A D | emc6w201.c | 52 enum subfeature { input, min, max }; enumerator in enum:subfeature 151 data->in[max][nr] = emc6w201_update_device() 163 data->temp[max][nr] = emc6w201_update_device() 317 0, max); 322 1, max); 327 2, max); 332 3, max); 337 4, max); 342 5, max); 348 0, max); 353 1, max); 358 2, max); 363 3, max); 368 4, max); 373 5, max);
|
/linux-4.1.27/include/media/ |
H A D | lm3646.h | 24 * min 93350uA, step 93750uA, max 1499600uA 34 * min 23040uA, step 23430uA, max 187100uA 44 * min 23040uA, step 11718uA, max 1499600uA 54 * min 2530uA, step 1460uA, max 187100uA 64 * min 50ms, step 50ms, max 400ms
|
H A D | lm3560.h | 34 * min 62500uA, step 62500uA, max 1000000uA 46 * min 32ms, step 32ms, max 1024ms 58 * min 31250uA, step 31250uA, max 250000uA
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | smp-tbsync.c | 114 int i, score, score2, old, min=0, max=5000, offset=1000; smp_generic_give_timebase() local 129 for (old = -1; old != offset ; offset = (min+max) / 2) { smp_generic_give_timebase() 135 max = offset; smp_generic_give_timebase() 141 score2 = start_contest(kSetAndTest, max, NUM_ITER); smp_generic_give_timebase() 144 min, score, max, score2); smp_generic_give_timebase() 147 offset = (score < score2) ? min : max; smp_generic_give_timebase()
|
H A D | pci-hotplug.c | 74 int slotno, mode, pass, max; pcibios_add_pci_devices() local 101 max = bus->busn_res.start; pcibios_add_pci_devices() 105 max = pci_scan_bridge(bus, dev, pcibios_add_pci_devices() 106 max, pass); pcibios_add_pci_devices()
|
/linux-4.1.27/drivers/s390/char/ |
H A D | sclp_cpi.c | 25 MODULE_PARM_DESC(system_name, "e.g. hostname - max. 8 characters"); 27 MODULE_PARM_DESC(sysplex_name, "if applicable - max. 8 characters");
|
H A D | hmcdrv_ftp.h | 14 * HMC drive FTP Service max. length of path (w/ EOS) 46 * @len: (max) number of bytes to transfer from/to @buf
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | boost.h | 8 u32 max; member in struct:nvbios_boostE 21 u32 max; member in struct:nvbios_boostS
|
H A D | vmap.h | 14 u32 max; member in struct:nvbios_vmap_entry
|
H A D | volt.h | 6 u32 max; member in struct:nvbios_volt
|
/linux-4.1.27/include/linux/ |
H A D | nfsacl.h | 28 w += max(acl_access ? (int)acl_access->a_count : 3, 4) * 12; nfsacl_size() 30 w += max((int)acl_default->a_count, 4) * 12; nfsacl_size()
|
H A D | threads.h | 7 * /proc/sys/kernel/threads-max. 38 * on original pid max of 32k for 32 cpus. Also, increase the
|
H A D | latencytop.h | 24 unsigned long max; member in struct:latency_record
|
H A D | efs_vh.h | 14 #define NVDIR 15 /* max of 15 directory entries */ 15 #define BFNAMESIZE 16 /* max 16 chars in boot file name */
|
/linux-4.1.27/include/linux/input/ |
H A D | bu21013.h | 12 * @touch_x_max: touch x max 13 * @touch_y_max: touch y max
|
H A D | gpio_tilt.h | 8 * @max: maximum value for abs_param 15 int max; member in struct:gpio_tilt_axis
|
/linux-4.1.27/include/linux/spi/ |
H A D | ifx_modem.h | 12 unsigned long max_hz; /* max SPI frequency */
|
H A D | ad7877.h | 6 * It's OK if the min/max values are zero.
|
H A D | ads7846.h | 6 * It's OK if the min/max values are zero. 43 u16 debounce_max; /* max number of additional readings
|
/linux-4.1.27/include/uapi/linux/netfilter_bridge/ |
H A D | ebt_limit.h | 11 /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490
|
/linux-4.1.27/arch/blackfin/mach-bf548/include/mach/ |
H A D | bf54x-lq043.h | 13 unsigned int max; member in struct:bfin_bf54xfb_val
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | nr-irqs.c | 3 * NR_IRQS = max(IA64_NATIVE_NR_IRQS, XEN_NR_IRQS, FOO_NR_IRQS...)
|
/linux-4.1.27/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | Util.py | 39 min, max, avg, count = dict[key] 42 if value > max: 43 max = value 45 dict[key] = (min, max, avg, count + 1)
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_dcb.c | 44 __u16 *max, int max_frame) ixgbe_ieee_credits() 68 max[i] = bw[i] ? (bw[i] * MAX_CREDIT)/100 : min_credit; ixgbe_ieee_credits() 119 * larger than the max frame size so here we find the smallest ixgbe_dcb_calculate_tc_credits() 121 * greater than the max frame size. ixgbe_dcb_calculate_tc_credits() 198 void ixgbe_dcb_unpack_max(struct ixgbe_dcb_config *cfg, u16 *max) ixgbe_dcb_unpack_max() argument 204 max[tc] = tc_config[tc].desc_credits_max; ixgbe_dcb_unpack_max() 273 u16 max[MAX_TRAFFIC_CLASS]; ixgbe_dcb_hw_config() local 278 ixgbe_dcb_unpack_max(dcb_config, max); ixgbe_dcb_hw_config() 285 return ixgbe_dcb_hw_config_82598(hw, pfc_en, refill, max, ixgbe_dcb_hw_config() 291 return ixgbe_dcb_hw_config_82599(hw, pfc_en, refill, max, ixgbe_dcb_hw_config() 318 __u16 refill[IEEE_8021QAZ_MAX_TCS], max[IEEE_8021QAZ_MAX_TCS]; ixgbe_dcb_hw_ets() local 344 ixgbe_ieee_credits(ets->tc_tx_bw, refill, max, max_frame); ixgbe_dcb_hw_ets() 345 return ixgbe_dcb_hw_ets_config(hw, refill, max, ixgbe_dcb_hw_ets() 350 u16 *refill, u16 *max, u8 *bwg_id, ixgbe_dcb_hw_ets_config() 355 ixgbe_dcb_config_rx_arbiter_82598(hw, refill, max, ixgbe_dcb_hw_ets_config() 357 ixgbe_dcb_config_tx_desc_arbiter_82598(hw, refill, max, ixgbe_dcb_hw_ets_config() 359 ixgbe_dcb_config_tx_data_arbiter_82598(hw, refill, max, ixgbe_dcb_hw_ets_config() 366 ixgbe_dcb_config_rx_arbiter_82599(hw, refill, max, ixgbe_dcb_hw_ets_config() 368 ixgbe_dcb_config_tx_desc_arbiter_82599(hw, refill, max, ixgbe_dcb_hw_ets_config() 370 ixgbe_dcb_config_tx_data_arbiter_82599(hw, refill, max, bwg_id, ixgbe_dcb_hw_ets_config() 43 ixgbe_ieee_credits(__u8 *bw, __u16 *refill, __u16 *max, int max_frame) ixgbe_ieee_credits() argument 349 ixgbe_dcb_hw_ets_config(struct ixgbe_hw *hw, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) ixgbe_dcb_hw_ets_config() argument
|
H A D | ixgbe_dcb_82599.c | 38 * @max: max credits index by traffic class 46 u16 *max, ixgbe_dcb_config_rx_arbiter_82599() 72 credit_max = max[i]; ixgbe_dcb_config_rx_arbiter_82599() 97 * @max: max credits index by traffic class 105 u16 *max, ixgbe_dcb_config_tx_desc_arbiter_82599() 120 max_credits = max[i]; ixgbe_dcb_config_tx_desc_arbiter_82599() 148 * @max: max credits index by traffic class 156 u16 *max, ixgbe_dcb_config_tx_data_arbiter_82599() 182 reg |= (u32)(max[i]) << IXGBE_RTTPT2C_MCL_SHIFT; ixgbe_dcb_config_tx_data_arbiter_82599() 342 * @max: max credits index by traffic class 350 u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) ixgbe_dcb_hw_config_82599() 352 ixgbe_dcb_config_rx_arbiter_82599(hw, refill, max, bwg_id, ixgbe_dcb_hw_config_82599() 354 ixgbe_dcb_config_tx_desc_arbiter_82599(hw, refill, max, ixgbe_dcb_hw_config_82599() 356 ixgbe_dcb_config_tx_data_arbiter_82599(hw, refill, max, ixgbe_dcb_hw_config_82599() 44 ixgbe_dcb_config_rx_arbiter_82599(struct ixgbe_hw *hw, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) ixgbe_dcb_config_rx_arbiter_82599() argument 103 ixgbe_dcb_config_tx_desc_arbiter_82599(struct ixgbe_hw *hw, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type) ixgbe_dcb_config_tx_desc_arbiter_82599() argument 154 ixgbe_dcb_config_tx_data_arbiter_82599(struct ixgbe_hw *hw, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) ixgbe_dcb_config_tx_data_arbiter_82599() argument 349 ixgbe_dcb_hw_config_82599(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) ixgbe_dcb_hw_config_82599() argument
|
H A D | ixgbe_dcb_82598.c | 43 u16 *max, ixgbe_dcb_config_rx_arbiter_82598() 67 credit_max = max[i]; ixgbe_dcb_config_rx_arbiter_82598() 100 u16 *max, ixgbe_dcb_config_tx_desc_arbiter_82598() 120 max_credits = max[i]; ixgbe_dcb_config_tx_desc_arbiter_82598() 146 u16 *max, ixgbe_dcb_config_tx_data_arbiter_82598() 164 reg |= (u32)(max[i]) << IXGBE_TDPT2TCCR_MCL_SHIFT; ixgbe_dcb_config_tx_data_arbiter_82598() 277 u16 *max, u8 *bwg_id, u8 *prio_type) ixgbe_dcb_hw_config_82598() 279 ixgbe_dcb_config_rx_arbiter_82598(hw, refill, max, prio_type); ixgbe_dcb_hw_config_82598() 280 ixgbe_dcb_config_tx_desc_arbiter_82598(hw, refill, max, ixgbe_dcb_hw_config_82598() 282 ixgbe_dcb_config_tx_data_arbiter_82598(hw, refill, max, ixgbe_dcb_hw_config_82598() 41 ixgbe_dcb_config_rx_arbiter_82598(struct ixgbe_hw *hw, u16 *refill, u16 *max, u8 *prio_type) ixgbe_dcb_config_rx_arbiter_82598() argument 98 ixgbe_dcb_config_tx_desc_arbiter_82598(struct ixgbe_hw *hw, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type) ixgbe_dcb_config_tx_desc_arbiter_82598() argument 144 ixgbe_dcb_config_tx_data_arbiter_82598(struct ixgbe_hw *hw, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type) ixgbe_dcb_config_tx_data_arbiter_82598() argument 276 ixgbe_dcb_hw_config_82598(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type) ixgbe_dcb_hw_config_82598() argument
|
H A D | ixgbe_dcb_82598.h | 79 u16 *max, 84 u16 *max, 90 u16 *max, 95 u16 *max, u8 *bwg_id, u8 *prio_type);
|
H A D | ixgbe_dcb_82599.h | 103 u16 *max, 110 u16 *max, 116 u16 *max, 122 u16 *max, u8 *bwg_id, u8 *prio_type,
|
/linux-4.1.27/mm/ |
H A D | quicklist.c | 28 unsigned long node_free_pages, max; max_pages() local 42 max = node_free_pages / FRACTION_OF_NODE_MEM; max_pages() 45 max /= num_cpus_on_node; max_pages() 47 return max(max, min_pages); max_pages()
|
H A D | readahead.c | 248 * for 128k (32 page) max ra 251 static unsigned long get_init_ra_size(unsigned long size, unsigned long max) get_init_ra_size() argument 255 if (newsize <= max / 32) get_init_ra_size() 257 else if (newsize <= max / 4) get_init_ra_size() 260 newsize = max; get_init_ra_size() 270 unsigned long max) get_next_ra_size() 275 if (cur < max / 16) get_next_ra_size() 280 return min(newsize, max); get_next_ra_size() 323 * Count contiguously cached pages from @offset-1 to @offset-@max, 329 pgoff_t offset, unsigned long max) count_history_pages() 334 head = page_cache_prev_hole(mapping, offset - 1, max); count_history_pages() 347 unsigned long max) try_context_readahead() 351 size = count_history_pages(mapping, offset, max); try_context_readahead() 368 ra->size = min(size + req_size, max); try_context_readahead() 383 unsigned long max = max_sane_readahead(ra->ra_pages); ondemand_readahead() local 399 ra->size = get_next_ra_size(ra, max); ondemand_readahead() 414 start = page_cache_next_hole(mapping, offset + 1, max); ondemand_readahead() 417 if (!start || start - offset > max) ondemand_readahead() 423 ra->size = get_next_ra_size(ra, max); ondemand_readahead() 431 if (req_size > max) ondemand_readahead() 447 if (try_context_readahead(mapping, ra, offset, req_size, max)) ondemand_readahead() 458 ra->size = get_init_ra_size(req_size, max); ondemand_readahead() 468 ra->async_size = get_next_ra_size(ra, max); ondemand_readahead() 269 get_next_ra_size(struct file_ra_state *ra, unsigned long max) get_next_ra_size() argument 328 count_history_pages(struct address_space *mapping, pgoff_t offset, unsigned long max) count_history_pages() argument 343 try_context_readahead(struct address_space *mapping, struct file_ra_state *ra, pgoff_t offset, unsigned long req_size, unsigned long max) try_context_readahead() argument
|
/linux-4.1.27/drivers/irqchip/ |
H A D | irq-crossbar.c | 196 int i, size, max = 0, reserved = 0, entry; crossbar_of_init() local 209 of_property_read_u32(node, "ti,max-crossbar-sources", crossbar_of_init() 212 pr_err("missing 'ti,max-crossbar-sources' property\n"); crossbar_of_init() 217 of_property_read_u32(node, "ti,max-irqs", &max); crossbar_of_init() 218 if (!max) { crossbar_of_init() 219 pr_err("missing 'ti,max-irqs' property\n"); crossbar_of_init() 223 cb->irq_map = kcalloc(max, sizeof(int), GFP_KERNEL); crossbar_of_init() 227 cb->int_max = max; crossbar_of_init() 229 for (i = 0; i < max; i++) crossbar_of_init() 241 if (entry >= max) { crossbar_of_init() 259 if (entry >= max) { crossbar_of_init() 269 cb->register_offsets = kcalloc(max, sizeof(int), GFP_KERNEL); crossbar_of_init() 296 for (i = 0; i < max; i++) { crossbar_of_init() 306 for (i = 0; i < max; i++) { crossbar_of_init()
|
/linux-4.1.27/init/ |
H A D | calibrate.c | 43 int max = -1; /* index of measured_times with max/min values or not set */ calibrate_delay_direct() local 107 if (max < 0 || timer_rate_max > measured_times[max]) calibrate_delay_direct() 108 max = i; calibrate_delay_direct() 129 if ((measured_times[max] - measured_times[min]) < maxdiff) calibrate_delay_direct() 135 if ((measured_times[max] - estimate) < calibrate_delay_direct() 141 min = max; calibrate_delay_direct() 144 "max bogoMips estimate %d = %lu\n", calibrate_delay_direct() 145 max, measured_times[max]); calibrate_delay_direct() 146 measured_times[max] = 0; calibrate_delay_direct() 147 max = min; calibrate_delay_direct() 157 if (measured_times[i] > measured_times[max]) calibrate_delay_direct() 158 max = i; calibrate_delay_direct()
|
/linux-4.1.27/drivers/infiniband/hw/amso1100/ |
H A D | c2_pd.c | 49 obj = find_next_zero_bit(c2dev->pd_table.table, c2dev->pd_table.max, c2_pd_alloc() 51 if (obj >= c2dev->pd_table.max) c2_pd_alloc() 53 c2dev->pd_table.max); c2_pd_alloc() 54 if (obj < c2dev->pd_table.max) { c2_pd_alloc() 58 if (c2dev->pd_table.last >= c2dev->pd_table.max) c2_pd_alloc() 77 c2dev->pd_table.max = c2dev->props.max_pd; c2_init_pd_table()
|
/linux-4.1.27/drivers/infiniband/hw/cxgb4/ |
H A D | id_table.c | 51 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last); c4iw_id_alloc() 52 if (obj >= alloc->max) c4iw_id_alloc() 53 obj = find_first_zero_bit(alloc->table, alloc->max); c4iw_id_alloc() 55 if (obj < alloc->max) { c4iw_id_alloc() 60 if (alloc->last >= alloc->max) c4iw_id_alloc() 94 alloc->max = num; c4iw_id_table_alloc()
|
/linux-4.1.27/include/sound/ |
H A D | seq_kernel.h | 33 /* max number of concurrent clients */ 36 /* max number of concurrent ports */ 39 /* max number of events in memory pool */ 45 /* max number of events in memory pool for one client (outqueue) */ 51 /* max delivery path length */ 54 /* max size of event size */
|
H A D | pcm_params.h | 225 i->max = UINT_MAX; snd_interval_any() 238 return (i->min > i->max || snd_interval_checkempty() 239 (i->min == i->max && (i->openmin || i->openmax))); snd_interval_checkempty() 249 return (i->min == i->max || snd_interval_single() 250 (i->min + 1 == i->max && i->openmax)); snd_interval_single() 266 v = i->max; snd_interval_max() 275 i->max < val || (i->max == val && i->openmax))); snd_interval_test() 287 if (i->openmin && i->openmax && i->min == i->max) snd_interval_setinteger() 300 i1->max == i2->max && i1->openmax == i2->openmax; snd_interval_eq()
|
H A D | tlv.h | 38 #define SNDRV_CTL_TLVT_DB_MINMAX 4 /* dB scale with min/max */ 39 #define SNDRV_CTL_TLVT_DB_MINMAX_MUTE 5 /* dB scale with min/max with mute */ 61 /* dB scale specified with min/max values instead of step */ 82 /* Each item is: <min> <max> <TLV> */
|
/linux-4.1.27/include/uapi/linux/ |
H A D | sem.h | 78 #define SEMMNI 32000 /* <= IPCMNI max # of semaphore identifiers */ 79 #define SEMMSL 32000 /* <= INT_MAX max num of semaphores per id */ 80 #define SEMMNS (SEMMNI*SEMMSL) /* <= INT_MAX max # of semaphores in system */ 81 #define SEMOPM 500 /* <= 1 000 max num of ops per semop call */ 83 #define SEMAEM SEMVMX /* adjust on exit max value */ 86 #define SEMUME SEMOPM /* max num of undo entries per process */
|
H A D | cycx_cfm.h | 26 /* min/max */ 27 #define CFM_IMAGE_SIZE 0x20000 /* max size of CYCX code image file */ 28 #define CFM_DESCR_LEN 256 /* max length of description string */ 29 #define CFM_MAX_CYCX 1 /* max number of compatible adapters */
|
H A D | shm.h | 20 #define SHMMNI 4096 /* max num of segs system wide */ 21 #define SHMMAX (ULONG_MAX - (1UL << 24)) /* max shared seg size (bytes) */ 22 #define SHMALL (ULONG_MAX - (1UL << 24)) /* max shm system wide (pages) */ 23 #define SHMSEG SHMMNI /* max shared segs per process */
|
H A D | socket.h | 7 #define _K_SS_MAXSIZE 128 /* Implementation specific max size */
|
H A D | msg.h | 27 unsigned short msg_qbytes; /* max number of bytes on queue */ 75 #define MSGMNI 32000 /* <= IPCMNI */ /* max # of msg queue identifiers */ 76 #define MSGMAX 8192 /* <= INT_MAX */ /* max size of message (bytes) */ 77 #define MSGMNB 16384 /* <= INT_MAX */ /* default max size of a message queue */ 84 #define __MSGSEG ((MSGPOOL * 1024) / MSGSSZ) /* max no. of segments */
|
H A D | atm_nicstar.h | 35 unsigned max; member in struct:buf_nr
|
/linux-4.1.27/sound/pci/ice1712/ |
H A D | wm8776.c | 155 .max = 0xff, 182 .max = 0x7f, 242 .max = 0xff, 289 .max = 5, /* .enum_names item count */ 299 .max = 15, 307 .max = 11, /* .enum_names item count */ 318 .max = 11, /* .enum_names item count */ 328 .max = 8, /* .enum_names item count */ 340 .max = 12, 349 .max = 15, 358 .max = 11, /* .enum_names item count */ 369 .max = 11, /* .enum_names item count */ 381 .max = 7, 391 .max = 15, 401 .max = 16, /* .enum_names item count */ 419 .max = 7, 478 uinfo->value.integer.max = wm->ctl[n].max; snd_wm8776_volume_info() 489 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, snd_wm8776_enum_info() 513 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); snd_wm8776_ctl_get() 515 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); snd_wm8776_ctl_get() 535 regval1 = wm->ctl[n].max - (regval1 - wm->ctl[n].min); snd_wm8776_ctl_put() 536 regval2 = wm->ctl[n].max - (regval2 - wm->ctl[n].min); snd_wm8776_ctl_put() 588 wm->ctl[num].max = 1; snd_wm8776_add_control()
|
H A D | wm8766.c | 52 .max = 0xff, 63 .max = 0xff, 74 .max = 0xff, 204 uinfo->value.integer.max = wm->ctl[n].max; snd_wm8766_volume_info() 215 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, snd_wm8766_enum_info() 239 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); snd_wm8766_ctl_get() 241 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); snd_wm8766_ctl_get() 261 regval1 = wm->ctl[n].max - (regval1 - wm->ctl[n].min); snd_wm8766_ctl_put() 262 regval2 = wm->ctl[n].max - (regval2 - wm->ctl[n].min); snd_wm8766_ctl_put() 314 wm->ctl[num].max = 1; snd_wm8766_add_control()
|
/linux-4.1.27/drivers/media/platform/vivid/ |
H A D | vivid-ctrls.c | 146 .max = 1, 157 .max = 0x7fffffff, 167 .max = 0x7fffffffffffffffLL, 178 .max = 0x20000, 190 .max = 0x2000, 202 .max = 0x20, 223 .max = 4, 235 .max = 4, 246 .max = 0x80402010, 260 .max = 8, 487 .max = TPG_MOVE_POS_FAST, 508 .max = TPG_MOVE_POS_FAST, 518 .max = 1, 527 .max = 1, 543 .max = 2, 553 .max = 100, 563 .max = 1, 572 .max = 1, 581 .max = 1, 590 .max = 1, 599 .max = 1, 609 .max = 1, 619 .max = 1, 635 .max = 1, 645 .max = 4, 666 .max = 5, 675 .max = 3, 685 .max = 256, 707 .max = 7, 730 .max = 8, 746 .max = 2, 755 .max = 1, 764 .max = 1, 792 .max = 1, 849 .max = 1, 859 .max = 1, 869 .max = 1, 943 .max = 100, 980 .max = 1, 989 .max = 1, 1033 .max = 5, 1043 .max = 14, 1108 .max = 1, 1116 .max = 1, 1132 .max = 2, 1141 .max = 1, 1197 .max = 1, 1229 .max = 1, 1340 .max = TPG_PAT_NOISE, vivid_create_controls() 1417 vivid_ctrl_dv_timings.max = dev->query_dv_timings_size - 1; vivid_create_controls()
|
/linux-4.1.27/sound/soc/ |
H A D | soc-ops.c | 194 mc->platform_max = mc->max; snd_soc_info_volsw() 204 uinfo->value.integer.max = platform_max - mc->min; snd_soc_info_volsw() 231 uinfo->value.integer.max += mc->min; snd_soc_info_volsw_sx() 257 int max = mc->max; snd_soc_get_volsw() local 260 unsigned int mask = (1 << fls(max)) - 1; snd_soc_get_volsw() 275 max - ucontrol->value.integer.value[0]; snd_soc_get_volsw() 290 max - ucontrol->value.integer.value[1]; snd_soc_get_volsw() 317 int max = mc->max; snd_soc_put_volsw() local 320 unsigned int mask = (1 << fls(max)) - 1; snd_soc_put_volsw() 332 val = max - val; snd_soc_put_volsw() 338 val2 = max - val2; snd_soc_put_volsw() 379 int max = mc->max; snd_soc_get_volsw_sx() local 381 int mask = (1 << (fls(min + max) - 1)) - 1; snd_soc_get_volsw_sx() 424 int max = mc->max; snd_soc_put_volsw_sx() local 426 int mask = (1 << (fls(min + max) - 1)) - 1; snd_soc_put_volsw_sx() 469 mc->platform_max = mc->max; snd_soc_info_volsw_range() 475 uinfo->value.integer.max = platform_max - min; snd_soc_info_volsw_range() 500 int max = mc->max; snd_soc_put_volsw_range() local 501 unsigned int mask = (1 << fls(max)) - 1; snd_soc_put_volsw_range() 507 val = (max - ucontrol->value.integer.value[0]) & mask; snd_soc_put_volsw_range() 519 val = (max - ucontrol->value.integer.value[1]) & mask; snd_soc_put_volsw_range() 552 int max = mc->max; snd_soc_get_volsw_range() local 553 unsigned int mask = (1 << fls(max)) - 1; snd_soc_get_volsw_range() 565 max - ucontrol->value.integer.value[0]; snd_soc_get_volsw_range() 578 max - ucontrol->value.integer.value[1]; snd_soc_get_volsw_range() 593 * @max: new maximum limit 598 const char *name, int max) snd_soc_limit_volume() 606 /* Sanity check for name and max */ snd_soc_limit_volume() 607 if (unlikely(!name || max <= 0)) snd_soc_limit_volume() 618 if (max <= mc->max) { snd_soc_limit_volume() 619 mc->platform_max = max; snd_soc_limit_volume() 766 ucontrol->count = params->max; snd_soc_bytes_info_ext() 776 unsigned int count = size < params->max ? size : params->max; snd_soc_bytes_tlv_callback() 812 uinfo->value.integer.max = mc->max; snd_soc_info_xr_sx() 844 long max = mc->max; snd_soc_get_xr_sx() local 857 if (min < 0 && val > max) snd_soc_get_xr_sx() 860 val = max - val; snd_soc_get_xr_sx() 892 long max = mc->max; snd_soc_put_xr_sx() local 898 val = max - val; snd_soc_put_xr_sx() 597 snd_soc_limit_volume(struct snd_soc_codec *codec, const char *name, int max) snd_soc_limit_volume() argument
|
/linux-4.1.27/drivers/ide/ |
H A D | ide-timings.c | 126 m->setup = max(a->setup, b->setup); ide_timing_merge() 128 m->act8b = max(a->act8b, b->act8b); ide_timing_merge() 130 m->rec8b = max(a->rec8b, b->rec8b); ide_timing_merge() 132 m->cyc8b = max(a->cyc8b, b->cyc8b); ide_timing_merge() 134 m->active = max(a->active, b->active); ide_timing_merge() 136 m->recover = max(a->recover, b->recover); ide_timing_merge() 138 m->cycle = max(a->cycle, b->cycle); ide_timing_merge() 140 m->udma = max(a->udma, b->udma); ide_timing_merge()
|
/linux-4.1.27/drivers/hid/ |
H A D | hid-kensington.c | 21 #define ks_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c)) 25 unsigned long **bit, int *max) ks_input_mapping() 23 ks_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ks_input_mapping() argument
|
H A D | hid-penmount.c | 23 struct hid_usage *usage, unsigned long **bit, int *max) penmount_input_mapping() 26 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_TOUCH); penmount_input_mapping() 21 penmount_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) penmount_input_mapping() argument
|
H A D | hid-ezkey.c | 25 #define ez_map_rel(c) hid_map_usage(hi, usage, bit, max, EV_REL, (c)) 26 #define ez_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c)) 30 unsigned long **bit, int *max) ez_input_mapping() 28 ez_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ez_input_mapping() argument
|
H A D | hid-belkin.c | 27 #define belkin_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 31 unsigned long **bit, int *max) belkin_input_mapping() 29 belkin_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) belkin_input_mapping() argument
|
H A D | hid-cherry.c | 39 #define ch_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 43 unsigned long **bit, int *max) ch_input_mapping() 41 ch_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ch_input_mapping() argument
|
H A D | hid-chicony.c | 26 #define ch_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 30 unsigned long **bit, int *max) ch_input_mapping() 28 ch_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ch_input_mapping() argument
|
H A D | hid-lcpower.c | 21 #define ts_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 25 unsigned long **bit, int *max) ts_input_mapping() 23 ts_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ts_input_mapping() argument
|
H A D | hid-microsoft.c | 58 #define ms_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 61 unsigned long **bit, int *max) ms_ergonomy_kb_quirk() 95 hid_map_usage_clear(hi, usage, bit, max, EV_REL, REL_WHEEL); ms_ergonomy_kb_quirk() 123 unsigned long **bit, int *max) ms_presenter_8k_quirk() 143 unsigned long **bit, int *max) ms_input_mapping() 148 int ret = ms_ergonomy_kb_quirk(hi, usage, bit, max); ms_input_mapping() 154 ms_presenter_8k_quirk(hi, usage, bit, max)) ms_input_mapping() 162 unsigned long **bit, int *max) ms_input_mapped() 60 ms_ergonomy_kb_quirk(struct hid_input *hi, struct hid_usage *usage, unsigned long **bit, int *max) ms_ergonomy_kb_quirk() argument 122 ms_presenter_8k_quirk(struct hid_input *hi, struct hid_usage *usage, unsigned long **bit, int *max) ms_presenter_8k_quirk() argument 141 ms_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ms_input_mapping() argument 160 ms_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ms_input_mapped() argument
|
H A D | hid-monterey.c | 34 #define mr_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 38 unsigned long **bit, int *max) mr_input_mapping() 36 mr_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) mr_input_mapping() argument
|
H A D | hid-sunplus.c | 36 #define sp_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 40 unsigned long **bit, int *max) sp_input_mapping() 38 sp_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) sp_input_mapping() argument
|
H A D | hid-tivo.c | 22 #define tivo_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 27 unsigned long **bit, int *max) tivo_input_mapping() 25 tivo_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) tivo_input_mapping() argument
|
/linux-4.1.27/include/linux/platform_data/ |
H A D | lm3630a_bl.h | 42 *@leda_max_brt : led a max brightness. 4~255 45 *@ledb_max_brt : led b max brightness. 4~255
|
/linux-4.1.27/arch/mips/pci/ |
H A D | fixup-sb1250.c | 15 * to the finite max. 35 * Set the SP1011 HT/PCI bridge's TRDY timeout to the finite max.
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | irq_srm.c | 45 init_srm_irqs(long max, unsigned long ignore_mask) init_srm_irqs() argument 51 for (i = 16; i < max; ++i) { init_srm_irqs()
|
/linux-4.1.27/sound/soc/spear/ |
H A D | spear_pcm.c | 27 .buffer_bytes_max = 16 * 1024, /* max buffer size */ 31 .periods_max = 8, /* max # of periods */
|
/linux-4.1.27/arch/x86/kernel/cpu/mtrr/ |
H A D | centaur.c | 30 int i, max; centaur_get_free_region() local 32 max = num_var_ranges; centaur_get_free_region() 33 if (replace_reg >= 0 && replace_reg < max) centaur_get_free_region() 36 for (i = 0; i < max; ++i) { centaur_get_free_region()
|
/linux-4.1.27/arch/xtensa/include/uapi/asm/ |
H A D | param.h | 28 #define MAXHOSTNAMELEN 64 /* max length of hostname */
|
/linux-4.1.27/arch/x86/crypto/ |
H A D | camellia-x86_64-asm_64.S | 155 #define enc_outunpack(op, max) \ 156 xorq key_table(CTX, max, 8), RCD0; \ 175 #define dec_inpack(max) \ 182 xorq key_table(CTX, max, 8), RAB0; 213 movl $24, RT1d; /* max */ 220 movl $32, RT1d; /* max */ 249 cmovel RXORd, RT2d; /* max */ 365 #define enc_outunpack2(op, max) \ 366 xorq key_table(CTX, max, 8), RCD0; \ 374 xorq key_table(CTX, max, 8), RCD1; \ 393 #define dec_inpack2(max) \ 400 xorq key_table(CTX, max, 8), RAB0; \ 408 xorq key_table(CTX, max, 8), RAB1; 448 movl $24, RT2d; /* max */ 455 movl $32, RT2d; /* max */ 485 cmovel RXORd, RT2d; /* max */
|
/linux-4.1.27/arch/mips/math-emu/ |
H A D | ieee754.c | 63 DPCNST(0, DP_EMAX, 0xFFFFFFFFFFFFFULL), /* + max */ 64 DPCNST(1, DP_EMAX, 0xFFFFFFFFFFFFFULL), /* - max */ 86 SPCNST(0, SP_EMAX, 0x7FFFFF), /* + max normal */ 87 SPCNST(1, SP_EMAX, 0x7FFFFF), /* - max normal */
|
/linux-4.1.27/arch/powerpc/boot/ |
H A D | types.h | 21 #define max(x,y) ({ \ macro
|
/linux-4.1.27/arch/ia64/include/uapi/asm/ |
H A D | param.h | 19 #define MAXHOSTNAMELEN 64 /* max length of hostname */
|
H A D | msgbuf.h | 20 unsigned long msg_qbytes; /* max number of bytes on queue */
|
/linux-4.1.27/scripts/selinux/genheaders/ |
H A D | genheaders.c | 16 #define max(x, y) (((int)(x) > (int)(y)) ? x : y) macro 78 for (j = 0; j < max(1, 40 - strlen(map->name)); j++) main() 88 for (j = 0; j < max(1, 40 - strlen(s)); j++) main() 129 for (k = 0; k < max(1, 40 - strlen(map->name) - strlen(map->perms[j])); k++) main()
|
/linux-4.1.27/include/linux/i2c/ |
H A D | tsc2007.h | 9 u16 max_rt; /* max. resistance above which samples are ignored */
|
/linux-4.1.27/drivers/gpu/drm/gma500/ |
H A D | cdv_intel_display.c | 46 .dot = {.min = 20000, .max = 115500}, 47 .vco = {.min = 1800000, .max = 3600000}, 48 .n = {.min = 2, .max = 6}, 49 .m = {.min = 60, .max = 160}, 50 .m1 = {.min = 0, .max = 0}, 51 .m2 = {.min = 58, .max = 158}, 52 .p = {.min = 28, .max = 140}, 53 .p1 = {.min = 2, .max = 10}, 58 .dot = {.min = 20000, .max = 115500}, 59 .vco = {.min = 1800000, .max = 3600000}, 60 .n = {.min = 2, .max = 6}, 61 .m = {.min = 60, .max = 160}, 62 .m1 = {.min = 0, .max = 0}, 63 .m2 = {.min = 58, .max = 158}, 64 .p = {.min = 28, .max = 140}, 65 .p1 = {.min = 2, .max = 10}, 73 .dot = {.min = 20000, .max = 400000}, 74 .vco = {.min = 1809000, .max = 3564000}, 75 .n = {.min = 1, .max = 1}, 76 .m = {.min = 67, .max = 132}, 77 .m1 = {.min = 0, .max = 0}, 78 .m2 = {.min = 65, .max = 130}, 79 .p = {.min = 5, .max = 90}, 80 .p1 = {.min = 1, .max = 9}, 85 .dot = {.min = 20000, .max = 400000}, 86 .vco = {.min = 1800000, .max = 3600000}, 87 .n = {.min = 2, .max = 6}, 88 .m = {.min = 60, .max = 160}, 89 .m1 = {.min = 0, .max = 0}, 90 .m2 = {.min = 58, .max = 158}, 91 .p = {.min = 5, .max = 100}, 92 .p1 = {.min = 1, .max = 10}, 97 .dot = {.min = 160000, .max = 272000}, 98 .vco = {.min = 1809000, .max = 3564000}, 99 .n = {.min = 1, .max = 1}, 100 .m = {.min = 67, .max = 132}, 101 .m1 = {.min = 0, .max = 0}, 102 .m2 = {.min = 65, .max = 130}, 103 .p = {.min = 5, .max = 90}, 104 .p1 = {.min = 1, .max = 9}, 109 .dot = {.min = 160000, .max = 272000}, 110 .vco = {.min = 1800000, .max = 3600000}, 111 .n = {.min = 2, .max = 6}, 112 .m = {.min = 60, .max = 164}, 113 .m1 = {.min = 0, .max = 0}, 114 .m2 = {.min = 58, .max = 162}, 115 .p = {.min = 5, .max = 100}, 116 .p1 = {.min = 1, .max = 10},
|
H A D | oaktrail_crtc.c | 56 .dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX}, 57 .m = {.min = MRST_M_MIN_100L, .max = MRST_M_MAX_100L}, 58 .p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_1}, 62 .dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX}, 63 .m = {.min = MRST_M_MIN_83, .max = MRST_M_MAX_83}, 64 .p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_0}, 68 .dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX}, 69 .m = {.min = MRST_M_MIN_100, .max = MRST_M_MAX_100}, 70 .p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_1}, 74 .vco = {.min = 1400000, .max = 2800000}, 75 .n = {.min = 3, .max = 7}, 76 .m = {.min = 80, .max = 137}, 77 .p1 = {.min = 1, .max = 2}, 143 for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) { mrst_sdvo_find_best_pll() 144 for (clock.n = limit->n.min; clock.n <= limit->n.max; mrst_sdvo_find_best_pll() 147 clock.p1 <= limit->p1.max; clock.p1++) { mrst_sdvo_find_best_pll() 153 if (target_vco > limit->vco.max) mrst_sdvo_find_best_pll() 199 for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) { mrst_lvds_find_best_pll() 200 for (clock.p1 = limit->p1.min; clock.p1 <= limit->p1.max; mrst_lvds_find_best_pll()
|
H A D | psb_intel_display.c | 37 .dot = {.min = 20000, .max = 400000}, 38 .vco = {.min = 1400000, .max = 2800000}, 39 .n = {.min = 1, .max = 6}, 40 .m = {.min = 70, .max = 120}, 41 .m1 = {.min = 8, .max = 18}, 42 .m2 = {.min = 3, .max = 7}, 43 .p = {.min = 5, .max = 80}, 44 .p1 = {.min = 1, .max = 8}, 49 .dot = {.min = 20000, .max = 400000}, 50 .vco = {.min = 1400000, .max = 2800000}, 51 .n = {.min = 1, .max = 6}, 52 .m = {.min = 70, .max = 120}, 53 .m1 = {.min = 8, .max = 18}, 54 .m2 = {.min = 3, .max = 7}, 55 .p = {.min = 7, .max = 98}, 56 .p1 = {.min = 1, .max = 8},
|
/linux-4.1.27/include/net/netfilter/ |
H A D | nf_nat_l4proto.h | 23 /* Is the manipable part of the tuple between min and max incl? */ 27 const union nf_conntrack_man_proto *max); 61 const union nf_conntrack_man_proto *max);
|
/linux-4.1.27/arch/mips/include/asm/sn/sn0/ |
H A D | arch.h | 15 #ifndef SN0XXL /* 128 cpu SMP max */ 60 #define MAX_MEM_SLOTS 16 /* max slots per node */ 62 #define MAX_MEM_SLOTS 32 /* max slots per node */
|
/linux-4.1.27/samples/bpf/ |
H A D | tracex2_user.c | 12 static void stars(char *str, long val, long max, int width) stars() argument 16 for (i = 0; i < (width * val / max) - 1 && i < width - 1; i++) stars() 18 if (val > max) stars()
|
/linux-4.1.27/security/apparmor/ |
H A D | Makefile | 31 # #define RLIMIT_STACK 3 /* max stack size */ 40 # #define RLIMIT_STACK 3 /* max stack size */ 47 # #define RLIMIT_STACK 3 /* max stack size */
|
/linux-4.1.27/tools/power/cpupower/utils/ |
H A D | cpufreq-set.c | 25 { .name = "max", .has_arg = required_argument, .flag = NULL, .val = 'u'}, 153 if (!new_pol->max) do_new_policy() 154 new_pol->max = cur_pol->max; do_new_policy() 180 else if (new_pol->max) do_one_cpu() 181 return cpufreq_modify_policy_max(cpu, new_pol->max); do_one_cpu() 204 .max = 0, cmd_freq_set() 234 if (new_pol.max) cmd_freq_set() 237 new_pol.max = string_to_frequency(optarg); cmd_freq_set() 238 if (new_pol.max == 0) { cmd_freq_set() 276 printf(_("the -f/--freq parameter cannot be combined with -d/--min, -u/--max or\n" cmd_freq_set() 282 printf(_("At least one parameter out of -f/--freq, -d/--min, -u/--max, and\n" cmd_freq_set()
|
H A D | cpufreq-info.c | 61 unsigned long min, max; proc_cpufreq_output() local 71 if (cpufreq_get_hardware_limits(cpu, &min, &max)) { proc_cpufreq_output() 72 max = 0; proc_cpufreq_output() 74 min_pctg = (policy->min * 100) / max; proc_cpufreq_output() 75 max_pctg = (policy->max * 100) / max; proc_cpufreq_output() 78 cpu , policy->min, max ? min_pctg : 0, policy->max, proc_cpufreq_output() 79 max ? max_pctg : 0, policy->governor); proc_cpufreq_output() 226 printf(_(" %.0f MHz max turbo 4 active cores\n"), get_boost_mode() 231 printf(_(" %.0f MHz max turbo 3 active cores\n"), get_boost_mode() 236 printf(_(" %.0f MHz max turbo 2 active cores\n"), get_boost_mode() 241 printf(_(" %.0f MHz max turbo 1 active cores\n"), get_boost_mode() 252 unsigned long min, max, freq_kernel, freq_hardware; debug_output_one() local 302 if (!(cpufreq_get_hardware_limits(cpu, &min, &max))) { debug_output_one() 306 print_speed(max); debug_output_one() 339 print_speed(policy->max); debug_output_one() 413 unsigned long min, max; get_hardware_limits() local 414 if (cpufreq_get_hardware_limits(cpu, &min, &max)) get_hardware_limits() 416 printf("%lu %lu\n", min, max); get_hardware_limits() 439 printf("%lu %lu %s\n", policy->min, policy->max, policy->governor); get_policy()
|
/linux-4.1.27/drivers/watchdog/ |
H A D | at91sam9_wdt.c | 58 /* Watchdog max counter value in ticks */ 61 /* Watchdog max delta/value in secs */ 207 "min heartbeat and max heartbeat might be too close for the system to handle it correctly\n"); at91_wdt_init() 270 u32 max = WDT_COUNTER_MAX_SECS; of_at91wdt_init() local 278 if (!of_property_read_u32_index(np, "atmel,max-heartbeat-sec", 0, of_at91wdt_init() 279 &max)) { of_at91wdt_init() 280 if (!max || max > WDT_COUNTER_MAX_SECS) of_at91wdt_init() 281 max = WDT_COUNTER_MAX_SECS; of_at91wdt_init() 285 if (min >= max) of_at91wdt_init() 286 min = max - 1; of_at91wdt_init() 291 max = secs_to_ticks(max); of_at91wdt_init() 318 wdt->mr |= max | ((max - min) << 16); of_at91wdt_init()
|
/linux-4.1.27/drivers/scsi/pm8001/ |
H A D | pm8001_defs.h | 74 #define PM8001_MAX_CCB 512 /* max ccbs supported */ 87 #define PM8001_MAX_PHYS 16 /* max. possible phys */ 88 #define PM8001_MAX_PORTS 16 /* max. possible ports */ 89 #define PM8001_MAX_DEVICES 2048 /* max supported device */ 90 #define PM8001_MAX_MSIX_VEC 64 /* max msi-x int for spcv/ve */
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_fifo.c | 99 uint32_t max; vmw_fifo_init() local 146 max = ioread32(fifo_mem + SVGA_FIFO_MAX); vmw_fifo_init() 150 DRM_INFO("Fifo max 0x%08x min 0x%08x cap 0x%08x\n", vmw_fifo_init() 151 (unsigned int) max, vmw_fifo_init() 212 uint32_t max = ioread32(fifo_mem + SVGA_FIFO_MAX); vmw_fifo_is_full() local 217 return ((max - next_cmd) + (stop - min) <= bytes); vmw_fifo_is_full() 319 uint32_t max; vmw_fifo_reserve() local 326 max = ioread32(fifo_mem + SVGA_FIFO_MAX); vmw_fifo_reserve() 330 if (unlikely(bytes >= (max - min))) vmw_fifo_reserve() 344 if (likely((next_cmd + bytes < max || vmw_fifo_reserve() 345 (next_cmd + bytes == max && stop > min)))) vmw_fifo_reserve() 400 uint32_t max, uint32_t min, uint32_t bytes) vmw_fifo_res_copy() 402 uint32_t chunk_size = max - next_cmd; vmw_fifo_res_copy() 422 uint32_t max, uint32_t min, uint32_t bytes) vmw_fifo_slow_copy() 430 if (unlikely(next_cmd == max)) vmw_fifo_slow_copy() 444 uint32_t max = ioread32(fifo_mem + SVGA_FIFO_MAX); vmw_fifo_commit() local 456 next_cmd, max, min, bytes); vmw_fifo_commit() 459 next_cmd, max, min, bytes); vmw_fifo_commit() 471 if (next_cmd >= max) vmw_fifo_commit() 472 next_cmd -= max - min; vmw_fifo_commit() 397 vmw_fifo_res_copy(struct vmw_fifo_state *fifo_state, __le32 __iomem *fifo_mem, uint32_t next_cmd, uint32_t max, uint32_t min, uint32_t bytes) vmw_fifo_res_copy() argument 419 vmw_fifo_slow_copy(struct vmw_fifo_state *fifo_state, __le32 __iomem *fifo_mem, uint32_t next_cmd, uint32_t max, uint32_t min, uint32_t bytes) vmw_fifo_slow_copy() argument
|
/linux-4.1.27/kernel/time/ |
H A D | test_udelay.c | 38 int min = 0, max = 0, fail_count = 0; udelay_test_single() local 56 if (i == 0 || time_passed > max) udelay_test_single() 57 max = time_passed; udelay_test_single() 66 seq_printf(s, "%d usecs x %d: exp=%d allowed=%d min=%d avg=%lld max=%d", udelay_test_single() 68 (usecs * 1000) - allowed_error_ns, min, avg, max); udelay_test_single()
|
/linux-4.1.27/arch/arm64/mm/ |
H A D | init.c | 80 static void __init zone_sizes_init(unsigned long min, unsigned long max) zone_sizes_init() argument 93 zone_size[ZONE_NORMAL] = max - max_dma; zone_sizes_init() 101 if (start >= max) for_each_memblock() 110 unsigned long normal_end = min(end, max); for_each_memblock() 111 unsigned long normal_start = max(start, max_dma); for_each_memblock() 188 unsigned long min, max; bootmem_init() local 191 max = PFN_DOWN(memblock_end_of_DRAM()); bootmem_init() 193 early_memtest(min << PAGE_SHIFT, max << PAGE_SHIFT); bootmem_init() 202 zone_sizes_init(min, max); bootmem_init() 204 high_memory = __va((max << PAGE_SHIFT) - 1) + 1; bootmem_init() 205 max_pfn = max_low_pfn = max; bootmem_init()
|
/linux-4.1.27/arch/alpha/oprofile/ |
H A D | op_model_ev5.c | 91 unsigned long max, hilo, count = ctr[i].count; common_reg_setup() local 96 count = 256, hilo = 3, max = 256; common_reg_setup() 98 max = (i == 2 ? 16384 : 65536); common_reg_setup() 100 if (count > max) common_reg_setup() 101 count = max; common_reg_setup() 106 reset |= (max - count) << (48 - 16*i); common_reg_setup() 107 if (count != max) common_reg_setup()
|
/linux-4.1.27/sound/firewire/fireworks/ |
H A D | fireworks_proc.c | 133 unsigned int g, c, m, max, size; proc_read_phys_meters() local 151 max = min(efw->phys_out, meters->out_meters); proc_read_phys_meters() 153 snd_iprintf(buffer, " %d Outputs:\n", max); proc_read_phys_meters() 157 if (m < max) proc_read_phys_meters() 164 max = min(efw->phys_in, meters->in_meters); proc_read_phys_meters() 166 snd_iprintf(buffer, " %d Inputs:\n", max); proc_read_phys_meters() 170 if (m < max) proc_read_phys_meters()
|
H A D | fireworks_pcm.c | 73 .min = UINT_MAX, .max = 0, .integer = 1 hw_rule_rate() 83 t.max = max(t.max, freq_table[i]); hw_rule_rate() 98 .min = UINT_MAX, .max = 0, .integer = 1 hw_rule_channels() 108 t.max = max(t.max, pcm_channels[mode]); hw_rule_channels() 128 hw->channels_max = max(hw->channels_max, pcm_channels[mode]); limit_channels()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | intel_panel.c | 437 panel->backlight.min, panel->backlight.max); scale_user_to_hw() 448 hw_level = scale(user_level, 0, user_max, 0, panel->backlight.max); clamp_user_to_hw() 449 hw_level = clamp(hw_level, panel->backlight.min, panel->backlight.max); clamp_user_to_hw() 460 return scale(hw_level, panel->backlight.min, panel->backlight.max, scale_hw_to_user() 471 WARN_ON(panel->backlight.max == 0); intel_panel_compute_brightness() 478 return panel->backlight.max - val; intel_panel_compute_brightness() 584 WARN_ON(panel->backlight.max == 0); i9xx_set_backlight() 589 lbpc = level * 0xfe / panel->backlight.max + 1; i9xx_set_backlight() 631 /* set backlight brightness to level in range [0..max], scaling wrt hw min */ intel_panel_set_backlight() 645 WARN_ON(panel->backlight.max == 0); intel_panel_set_backlight() 656 /* set backlight brightness to level in range [0..max], assuming hw min is 679 WARN_ON(panel->backlight.max == 0); intel_panel_set_backlight_acpi() 788 pch_ctl2 = panel->backlight.max << 16; bdw_enable_backlight() 842 pch_ctl2 = panel->backlight.max << 16; pch_enable_backlight() 867 freq = panel->backlight.max; i9xx_enable_backlight() 907 freq = panel->backlight.max; i965_enable_backlight() 944 ctl = panel->backlight.max << 16; vlv_enable_backlight() 972 WARN_ON(panel->backlight.max == 0); intel_panel_enable_backlight() 975 panel->backlight.level = panel->backlight.max; intel_panel_enable_backlight() 1060 WARN_ON(panel->backlight.max == 0); intel_backlight_device_register() 1066 * Note: Everything should work even if the backlight device max intel_backlight_device_register() 1069 props.max_brightness = panel->backlight.max; intel_backlight_device_register() 1134 WARN_ON(panel->backlight.max == 0); get_backlight_min_vbt() 1137 * XXX: If the vbt value is 255, it makes min equal to max, which leads get_backlight_min_vbt() 1141 * 25% of the max. get_backlight_min_vbt() 1150 return scale(min, 0, 255, 0, panel->backlight.max); get_backlight_min_vbt() 1164 panel->backlight.max = pch_ctl2 >> 16; bdw_setup_backlight() 1165 if (!panel->backlight.max) bdw_setup_backlight() 1190 panel->backlight.max = pch_ctl2 >> 16; pch_setup_backlight() 1191 if (!panel->backlight.max) pch_setup_backlight() 1221 panel->backlight.max = ctl >> 17; i9xx_setup_backlight() 1223 panel->backlight.max *= 0xff; i9xx_setup_backlight() 1225 if (!panel->backlight.max) i9xx_setup_backlight() 1250 panel->backlight.max = ctl >> 16; i965_setup_backlight() 1252 panel->backlight.max *= 0xff; i965_setup_backlight() 1254 if (!panel->backlight.max) i965_setup_backlight() 1295 panel->backlight.max = ctl >> 16; 1296 if (!panel->backlight.max) 1327 /* set level and max in panel struct */ intel_panel_setup_backlight() 1343 panel->backlight.level, panel->backlight.max); intel_panel_setup_backlight()
|
/linux-4.1.27/sound/firewire/bebob/ |
H A D | bebob_pcm.c | 20 .min = UINT_MAX, .max = 0, .integer = 1 hw_rule_rate() 33 t.max = max(t.max, snd_bebob_rate_table[i]); hw_rule_rate() 48 .min = UINT_MAX, .max = 0, .integer = 1 hw_rule_channels() 62 t.max = max(t.max, formations[i].pcm); hw_rule_channels() 87 hw->channels_max = max(hw->channels_max, formations[i].pcm); limit_channels_and_rates() 90 hw->rate_max = max(hw->rate_max, snd_bebob_rate_table[i]); limit_channels_and_rates()
|
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/ |
H A D | libcfs_string.c | 224 * hexadecimal integer in the range [\a min, \a max] 229 unsigned min, unsigned max) cfs_str2num_check() 243 return (*num >= min && *num <= max); cfs_str2num_check() 260 cfs_range_expr_parse(struct cfs_lstr *src, unsigned min, unsigned max, cfs_range_expr_parse() argument 272 re->re_hi = max; cfs_range_expr_parse() 278 &re->re_lo, min, max)) { cfs_range_expr_parse() 289 &re->re_lo, min, max)) cfs_range_expr_parse() 294 &re->re_hi, min, max)) { cfs_range_expr_parse() 303 &re->re_hi, min, max)) cfs_range_expr_parse() 308 &re->re_stride, min, max)) { cfs_range_expr_parse() 351 cfs_expr_list_values(struct cfs_expr_list *expr_list, int max, __u32 **valpp) cfs_expr_list_values() argument 368 if (count > max) { cfs_expr_list_values() 369 CERROR("Number of values %d exceeds max allowed %d\n", cfs_expr_list_values() 370 max, count); cfs_expr_list_values() 419 cfs_expr_list_parse(char *str, int len, unsigned min, unsigned max, cfs_expr_list_parse() argument 450 rc = cfs_range_expr_parse(&tok, min, max, 1, &expr); cfs_expr_list_parse() 458 rc = cfs_range_expr_parse(&src, min, max, 0, &expr); cfs_expr_list_parse() 228 cfs_str2num_check(char *str, int nob, unsigned *num, unsigned min, unsigned max) cfs_str2num_check() argument
|
/linux-4.1.27/drivers/infiniband/hw/mthca/ |
H A D | mthca_srq.c | 118 int logsize, max; mthca_arbel_init_srq_context() local 123 * Put max in a temporary variable to work around gcc bug mthca_arbel_init_srq_context() 126 max = srq->max; mthca_arbel_init_srq_context() 127 logsize = ilog2(max); mthca_arbel_init_srq_context() 142 mthca_buf_free(dev, srq->max << srq->wqe_shift, &srq->queue, mthca_free_srq_buf() 158 srq->wrid = kmalloc(srq->max * sizeof (u64), GFP_KERNEL); mthca_alloc_srq_buf() 162 err = mthca_buf_alloc(dev, srq->max << srq->wqe_shift, mthca_alloc_srq_buf() 175 for (i = 0; i < srq->max; ++i) { mthca_alloc_srq_buf() 180 if (i < srq->max - 1) { mthca_alloc_srq_buf() 194 srq->last = get_wqe(srq, srq->max - 1); mthca_alloc_srq_buf() 211 srq->max = attr->max_wr; mthca_alloc_srq() 216 srq->max = roundup_pow_of_two(srq->max + 1); mthca_alloc_srq() 218 srq->max = srq->max + 1; mthca_alloc_srq() 220 ds = max(64UL, mthca_alloc_srq() 287 srq->last_free = srq->max - 1; mthca_alloc_srq() 289 attr->max_wr = srq->max - 1; mthca_alloc_srq() 376 u32 max_wr = mthca_is_memfree(dev) ? srq->max - 1 : srq->max; mthca_modify_srq() 413 srq_attr->max_wr = srq->max - 1; mthca_query_srq() 649 * Therefore, we need to base the max number of sg entries on mthca_max_srq_sge() 651 * actual max WQE descriptor size, rather than return the mthca_max_srq_sge()
|
H A D | mthca_allocator.c | 47 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last); mthca_alloc() 48 if (obj >= alloc->max) { mthca_alloc() 49 alloc->top = (alloc->top + alloc->max) & alloc->mask; mthca_alloc() 50 obj = find_first_zero_bit(alloc->table, alloc->max); mthca_alloc() 53 if (obj < alloc->max) { mthca_alloc() 68 obj &= alloc->max - 1; mthca_free() 74 alloc->top = (alloc->top + alloc->max) & alloc->mask; mthca_free() 90 alloc->max = num; mthca_alloc_init()
|
H A D | mthca_qp.c | 232 wq->last_comp = wq->max - 1; mthca_wq_reset() 498 qp_attr->cap.max_send_wr = qp->sq.max; mthca_query_qp() 499 qp_attr->cap.max_recv_wr = qp->rq.max; mthca_query_qp() 524 mthca_dbg(dev, "sgid_index (%u) too large. max is %d\n", mthca_path_set() 598 if (qp->rq.max) __mthca_modify_qp() 599 qp_context->rq_size_stride = ilog2(qp->rq.max) << 3; __mthca_modify_qp() 602 if (qp->sq.max) __mthca_modify_qp() 603 qp_context->sq_size_stride = ilog2(qp->sq.max) << 3; __mthca_modify_qp() 671 mthca_dbg(dev, "Alternate P_Key index (%u) too large. max is %d\n", __mthca_modify_qp() 825 qp->sq.last = get_send_wqe(qp, qp->sq.max - 1); __mthca_modify_qp() 828 qp->rq.last = get_recv_wqe(qp, qp->rq.max - 1); __mthca_modify_qp() 874 mthca_dbg(dev, "P_Key index (%u) too large. max is %d\n", mthca_modify_qp() 887 mthca_dbg(dev, "Max rdma_atomic as initiator %u too large (max is %d)\n", mthca_modify_qp() 894 mthca_dbg(dev, "Max rdma_atomic as responder %u too large (max %d)\n", mthca_modify_qp() 964 * Allocate and register buffer for WQEs. qp->rq.max, sq.max, 1031 qp->send_wqe_offset = ALIGN(qp->rq.max << qp->rq.wqe_shift, mthca_alloc_wqe_buf() 1043 (qp->sq.max << qp->sq.wqe_shift)); mthca_alloc_wqe_buf() 1045 qp->wrid = kmalloc((qp->rq.max + qp->sq.max) * sizeof (u64), mthca_alloc_wqe_buf() 1066 (qp->sq.max << qp->sq.wqe_shift)), mthca_free_wqe_buf() 1197 for (i = 0; i < qp->rq.max; ++i) { mthca_alloc_qp_common() 1199 next->nda_op = cpu_to_be32(((i + 1) & (qp->rq.max - 1)) << mthca_alloc_qp_common() 1209 for (i = 0; i < qp->sq.max; ++i) { mthca_alloc_qp_common() 1211 next->nda_op = cpu_to_be32((((i + 1) & (qp->sq.max - 1)) << mthca_alloc_qp_common() 1216 for (i = 0; i < qp->rq.max; ++i) { mthca_alloc_qp_common() 1218 next->nda_op = htonl((((i + 1) % qp->rq.max) << mthca_alloc_qp_common() 1224 qp->sq.last = get_send_wqe(qp, qp->sq.max - 1); mthca_alloc_qp_common() 1225 qp->rq.last = get_recv_wqe(qp, qp->rq.max - 1); mthca_alloc_qp_common() 1251 qp->rq.max = cap->max_recv_wr ? mthca_set_qp_size() 1253 qp->sq.max = cap->max_send_wr ? mthca_set_qp_size() 1256 qp->rq.max = cap->max_recv_wr; mthca_set_qp_size() 1257 qp->sq.max = cap->max_send_wr; mthca_set_qp_size() 1361 sqp->header_buf_size = sqp->qp.sq.max * MTHCA_UD_HEADER_SIZE; mthca_alloc_sqp() 1552 if (likely(cur + nreq < wq->max)) mthca_wq_overflow() 1560 return cur + nreq >= wq->max; mthca_wq_overflow() 1635 " %d max, %d nreq)\n", qp->qpn, mthca_tavor_post_send() 1637 qp->sq.max, nreq); mthca_tavor_post_send() 1751 qp->wrid[ind + qp->rq.max] = wr->wr_id; mthca_tavor_post_send() 1778 if (unlikely(ind >= qp->sq.max)) mthca_tavor_post_send() 1779 ind -= qp->sq.max; mthca_tavor_post_send() 1836 " %d max, %d nreq)\n", qp->qpn, mthca_tavor_post_receive() 1838 qp->rq.max, nreq); mthca_tavor_post_receive() 1876 if (unlikely(ind >= qp->rq.max)) mthca_tavor_post_receive() 1877 ind -= qp->rq.max; mthca_tavor_post_receive() 1945 ind = qp->sq.head & (qp->sq.max - 1); mthca_arbel_post_send() 1976 " %d max, %d nreq)\n", qp->qpn, mthca_arbel_post_send() 1978 qp->sq.max, nreq); mthca_arbel_post_send() 2092 qp->wrid[ind + qp->rq.max] = wr->wr_id; mthca_arbel_post_send() 2119 if (unlikely(ind >= qp->sq.max)) mthca_arbel_post_send() 2120 ind -= qp->sq.max; mthca_arbel_post_send() 2172 ind = qp->rq.head & (qp->rq.max - 1); mthca_arbel_post_receive() 2177 " %d max, %d nreq)\n", qp->qpn, mthca_arbel_post_receive() 2179 qp->rq.max, nreq); mthca_arbel_post_receive() 2208 if (unlikely(ind >= qp->rq.max)) mthca_arbel_post_receive() 2209 ind -= qp->rq.max; mthca_arbel_post_receive()
|
/linux-4.1.27/drivers/block/drbd/ |
H A D | drbd_interval.c | 25 sector_t max = node->sector + (node->size >> 9); compute_subtree_last() local 29 if (left > max) compute_subtree_last() 30 max = left; compute_subtree_last() 34 if (right > max) compute_subtree_last() 35 max = right; compute_subtree_last() 37 return max; compute_subtree_last()
|
/linux-4.1.27/drivers/pnp/ |
H A D | base.h | 29 resource_size_t max; /* max base number */ member in struct:pnp_port 50 resource_size_t max; /* max base number */ member in struct:pnp_mem 85 resource_size_t min, resource_size_t max, 89 resource_size_t min, resource_size_t max,
|
/linux-4.1.27/arch/powerpc/platforms/powermac/ |
H A D | backlight.c | 80 int i, max = 0; pmac_backlight_curve_lookup() local 84 max = max((int)info->bl_curve[i], max); pmac_backlight_curve_lookup() 89 if (diff < max) { pmac_backlight_curve_lookup() 90 max = diff; pmac_backlight_curve_lookup()
|
/linux-4.1.27/drivers/staging/vt6656/ |
H A D | desc.h | 37 /* max transmit or receive buffer size */ 44 #define CB_MAX_RX_DESC 128 /* max # of descriptors */ 46 #define CB_MAX_TX_DESC 128 /* max # of descriptors */
|
/linux-4.1.27/drivers/input/touchscreen/ |
H A D | of_touchscreen.c | 29 int max, int fuzz) touchscreen_set_params() 45 absinfo->maximum = max; touchscreen_set_params() 80 maximum = of_get_optional_u32(np, "touchscreen-max-pressure"); touchscreen_parse_of_params() 27 touchscreen_set_params(struct input_dev *dev, unsigned long axis, int max, int fuzz) touchscreen_set_params() argument
|
/linux-4.1.27/drivers/crypto/ |
H A D | mv_cesa.h | 118 * | DATA IN | 16 * x (max ->max_req_size) 120 * | DATA OUT | 16 * x (max ->max_req_size) 134 * | DATA IN | 64 * x (max ->max_req_size)
|
/linux-4.1.27/drivers/char/hw_random/ |
H A D | pseries-rng.c | 28 static int pseries_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) pseries_rng_read() argument 31 size_t size = max < 8 ? max : 8; pseries_rng_read()
|
H A D | powernv-rng.c | 18 static int powernv_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) powernv_rng_read() argument 24 len = max / sizeof(unsigned long); powernv_rng_read()
|
H A D | tpm-rng.c | 26 static int tpm_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) tpm_rng_read() argument 28 return tpm_get_random(TPM_ANY_NUM, data, max); tpm_rng_read()
|
H A D | iproc-rng200.c | 94 static int iproc_rng200_read(struct hwrng *rng, void *buf, size_t max, iproc_rng200_read() argument 98 uint32_t num_remaining = max; iproc_rng200_read() 115 return max - num_remaining; iproc_rng200_read() 145 return max - num_remaining; iproc_rng200_read() 152 return max - num_remaining; iproc_rng200_read()
|
/linux-4.1.27/net/ipv4/netfilter/ |
H A D | ipt_ah.c | 23 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) spi_match() argument 27 invert ? '!' : ' ', min, spi, max); spi_match() 28 r=(spi >= min && spi <= max) ^ invert; spi_match()
|
H A D | nf_log_ipv4.c | 262 /* TCP: 10+max(25,20+30+13+9+32+11+127) = 252 */ dump_ipv4_packet() 263 /* UDP: 10+max(25,20) = 35 */ dump_ipv4_packet() 264 /* UDPLITE: 14+max(25,20) = 39 */ dump_ipv4_packet() 265 /* ICMP: 11+max(25, 18+25+max(19,14,24+3+n+10,3+n+10)) = 91+n */ dump_ipv4_packet() 266 /* ESP: 10+max(25)+15 = 50 */ dump_ipv4_packet() 267 /* AH: 9+max(25)+15 = 49 */ dump_ipv4_packet() 271 /* maxlen = IP + ICMP + IP + max(TCP,UDP,ICMP,unknown) */ dump_ipv4_packet()
|
/linux-4.1.27/net/atm/ |
H A D | atm_misc.c | 56 * min max pcr result min max pcr result 71 * else if max == y then y-
|
/linux-4.1.27/net/netfilter/ |
H A D | xt_esp.c | 29 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) spi_match() argument 33 invert ? '!' : ' ', min, spi, max); spi_match() 34 r = (spi >= min && spi <= max) ^ invert; spi_match()
|
H A D | xt_ipcomp.c | 32 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) spi_match() argument 36 invert ? '!' : ' ', min, spi, max); spi_match() 37 r = (spi >= min && spi <= max) ^ invert; spi_match()
|
H A D | xt_length.c | 29 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; length_mt() 39 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; length_mt6()
|
/linux-4.1.27/net/phonet/ |
H A D | sysctl.c | 51 void phonet_get_local_port_range(int *min, int *max) phonet_get_local_port_range() argument 59 if (max) phonet_get_local_port_range() 60 *max = local_port_range[1]; phonet_get_local_port_range()
|
/linux-4.1.27/drivers/media/tuners/ |
H A D | m88rs6000t.h | 4 * Copyright (C) 2014 Max nibble <nibble.max@gmail.com>
|
/linux-4.1.27/drivers/pcmcia/ |
H A D | cardbus.c | 71 unsigned int max, pass; cb_alloc() local 78 max = bus->busn_res.start; cb_alloc() 82 max = pci_scan_bridge(bus, dev, max, pass); cb_alloc()
|
/linux-4.1.27/drivers/devfreq/ |
H A D | governor_simpleondemand.c | 30 unsigned long max = (df->max_freq) ? df->max_freq : UINT_MAX; devfreq_simple_ondemand_func() local 47 *freq = max; devfreq_simple_ondemand_func() 60 *freq = max; devfreq_simple_ondemand_func() 66 *freq = max; devfreq_simple_ondemand_func()
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | sparsemem.h | 12 * MAX_PHYSADDR_BITS 2^n: max size of physical address space
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
H A D | nouveau_chan.h | 27 int max; member in struct:nouveau_channel::__anon4153
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | base.c | 40 u32 max = 1 << (mmu->pgt_bits - bits); nvkm_vm_map_at() local 52 if (unlikely(end >= max)) nvkm_vm_map_at() 53 end = max; nvkm_vm_map_at() 60 if (unlikely(end >= max)) { nvkm_vm_map_at() 85 u32 max = 1 << (mmu->pgt_bits - bits); nvkm_vm_map_sg_table() local 96 if (unlikely(end >= max)) nvkm_vm_map_sg_table() 97 end = max; nvkm_vm_map_sg_table() 110 if (unlikely(end >= max)) { nvkm_vm_map_sg_table() 144 u32 max = 1 << (mmu->pgt_bits - bits); nvkm_vm_map_sg() local 151 if (unlikely(end >= max)) nvkm_vm_map_sg() 152 end = max; nvkm_vm_map_sg() 160 if (unlikely(end >= max)) { nvkm_vm_map_sg() 192 u32 max = 1 << (mmu->pgt_bits - bits); nvkm_vm_unmap_at() local 199 if (unlikely(end >= max)) nvkm_vm_unmap_at() 200 end = max; nvkm_vm_unmap_at() 207 if (unlikely(end >= max)) { nvkm_vm_unmap_at()
|
/linux-4.1.27/include/linux/usb/ |
H A D | sl811.h | 15 /* mA/2 power supplied on this port (max = default = 250) */
|
/linux-4.1.27/arch/powerpc/include/uapi/asm/ |
H A D | msgbuf.h | 26 unsigned long msg_qbytes; /* max number of bytes on queue */
|
/linux-4.1.27/arch/arm/mach-omap2/ |
H A D | cm.h | 17 * MAX_MODULE_READY_TIME: max duration in microseconds to wait for the 20 * In the case of OMAP4 this is the max duration in microseconds for the 32 * MAX_MODULE_DISABLE_TIME: max duration in microseconds to wait for 34 * case of OMAP2 & 3. In the case of OMAP4 this is the max duration
|
/linux-4.1.27/fs/cifs/ |
H A D | cifsacl.h | 27 #define SID_MAX_SUB_AUTHORITIES (15) /* max number of sub authority fields */ 55 * u8: max 3 bytes in decimal 56 * u32: max 10 bytes in decimal 60 * For authority field, max is when all 6 values are non-zero and it must be
|
/linux-4.1.27/sound/firewire/dice/ |
H A D | dice-pcm.c | 23 .min = UINT_MAX, .max = 0, .integer = 1 dice_rate_constraint() 41 rates.max = max(rates.max, rate); dice_rate_constraint() 58 .min = UINT_MAX, .max = 0, .integer = 1 dice_channels_constraint() 76 channels.max = max(channels.max, pcm_channels[mode]); dice_channels_constraint() 101 hw->channels_max = max(hw->channels_max, pcm_channels[mode]); limit_channels_and_rates()
|
/linux-4.1.27/tools/lib/lockdep/uinclude/linux/ |
H A D | kernel.h | 16 #define max(x, y) ({ \ macro
|
/linux-4.1.27/include/linux/mfd/ |
H A D | bcm590xx.h | 21 /* max register address */
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
H A D | dvb-pll.c | 62 u32 max; member in struct:dvb_pll_desc 83 .max = 858000000, 105 .max = 896000000, 129 .max = 900000000, 147 .max = 862000000, 163 .max = 862000000, 185 .max = 858000000, 199 .max = 858000000, 223 .max = 858000000, 257 .max = 858000000, 281 .max = 863000000, 299 .max = 864000000, 316 .max = 860000000, 335 .max = 2150000, 401 .max = 2250000, 448 .max = 858000000, 468 .max = 863000000, 482 .max = 2150000, /* guesses */ 503 .max = 2150000, /* guesses */ 524 .max = 862000000, 571 if (frequency && (frequency < desc->min || frequency > desc->max)) dvb_pll_configure() 797 fe->ops.tuner_ops.info.frequency_max = desc->max; dvb_pll_attach()
|
/linux-4.1.27/fs/xfs/libxfs/ |
H A D | xfs_trans_resv.c | 123 * the free inode btree: max depth * block size 124 * the allocation btrees: 2 trees * (max depth - 1) * block size 172 * the inode's bmap btree: max depth * block size 175 * the allocation btrees: 2 exts * 2 trees * (2 * max depth - 1) * block size 180 * the allocation btrees: 2 exts * 2 trees * (2 * max depth - 1) * block size 201 * the inode's bmap btree: (max depth + 1) * block size 207 * 4 exts * 2 trees * (2 * max depth - 1) * block size 208 * the inode btree: max depth * blocksize 209 * the allocation btrees: 2 trees * (max depth - 1) * block size 232 * the two directory btrees: 2 * (max depth + v2) * dir block size 233 * the two directory bmap btrees: 2 * max depth * block size 239 * the allocation btrees: 3 exts * 2 trees * (2 * max depth - 1) * block size 271 * the directory btree could split: (max depth + v2) * dir block size 272 * the directory bmap btree could join or split: (max depth + v2) * blocksize 277 * the allocation btrees: 2 trees * (2 * max depth - 1) * block size 309 * the directory btree could join: (max depth + v2) * dir block size 310 * the directory bmap btree could join or split: (max depth + v2) * blocksize 315 * the allocation btrees: 2 exts * 2 trees * (2 * max depth - 1) * block size 343 * the directory btree: (max depth + v2) * dir block size 344 * the directory inode's bmap btree: (max depth + v2) * block size 363 * the inode btree: max depth * blocksize 364 * the allocation btrees: 2 trees * (max depth - 1) * block size 391 * the inode btree: max depth * blocksize 392 * the allocation btrees: 2 trees * (max depth - 1) * block size 470 * the inode btree: max depth * blocksize 471 * the allocation btrees: 2 trees * (max depth - 1) * block size 526 * bmap btree for bitmap/summary inode: max depth * blocksize 621 * the inode's bmap btree: max depth * block size 627 * 4 exts * 2 trees * (2 * max depth - 1) * block size 646 * the attribute btree * max depth 665 * the inode bmap btree could join or split: max depth * block size 684 * the attribute btree could join: max depth * block size 685 * the inode bmap btree could join or split: max depth * block size 690 * the allocation btrees: 2 exts * 2 trees * (2 * max depth - 1) * block size
|
/linux-4.1.27/tools/power/cpupower/lib/ |
H A D | sysfs.c | 226 unsigned long *max) sysfs_get_freq_hardware_limits() 228 if ((!min) || (!max)) sysfs_get_freq_hardware_limits() 235 *max = sysfs_cpufreq_get_one_value(cpu, CPUINFO_MAX_FREQ); sysfs_get_freq_hardware_limits() 236 if (!*max) sysfs_get_freq_hardware_limits() 261 policy->max = sysfs_cpufreq_get_one_value(cpu, SCALING_MAX_FREQ); sysfs_get_freq_policy() 262 if ((!policy->min) || (!policy->max)) { sysfs_get_freq_policy() 586 char max[SYSFS_PATH_MAX]; sysfs_set_freq_policy() local 595 if (policy->max < policy->min) sysfs_set_freq_policy() 602 snprintf(max, SYSFS_PATH_MAX, "%lu", policy->max); sysfs_set_freq_policy() 605 write_max_first = (old_min && (policy->max < old_min) ? 0 : 1); sysfs_set_freq_policy() 609 max, strlen(max)); sysfs_set_freq_policy() 621 max, strlen(max)); sysfs_set_freq_policy() 224 sysfs_get_freq_hardware_limits(unsigned int cpu, unsigned long *min, unsigned long *max) sysfs_get_freq_hardware_limits() argument
|
/linux-4.1.27/drivers/iio/dac/ |
H A D | ad5421.c | 280 unsigned int *min, unsigned int *max) ad5421_get_current_min_max() 287 *max = 20000; ad5421_get_current_min_max() 291 *max = 21000; ad5421_get_current_min_max() 295 *max = 24000; ad5421_get_current_min_max() 299 *max = 1; ad5421_get_current_min_max() 306 unsigned int min, max; ad5421_get_offset() local 308 ad5421_get_current_min_max(st, &min, &max); ad5421_get_offset() 309 return (min * (1 << 16)) / (max - min); ad5421_get_offset() 316 unsigned int min, max; ad5421_read_raw() local 330 ad5421_get_current_min_max(st, &min, &max); ad5421_read_raw() 331 *val = max - min; ad5421_read_raw() 279 ad5421_get_current_min_max(struct ad5421_state *st, unsigned int *min, unsigned int *max) ad5421_get_current_min_max() argument
|
/linux-4.1.27/drivers/infiniband/hw/mlx4/ |
H A D | srq.c | 97 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); mlx4_ib_create_srq() 100 desc_size = max(32UL, mlx4_ib_create_srq() 106 buf_size = srq->msrq.max * desc_size; mlx4_ib_create_srq() 150 srq->tail = srq->msrq.max - 1; mlx4_ib_create_srq() 153 for (i = 0; i < srq->msrq.max; ++i) { mlx4_ib_create_srq() 156 cpu_to_be16((i + 1) & (srq->msrq.max - 1)); mlx4_ib_create_srq() 173 srq->wrid = kmalloc(srq->msrq.max * sizeof (u64), GFP_KERNEL); mlx4_ib_create_srq() 199 init_attr->attr.max_wr = srq->msrq.max - 1; mlx4_ib_create_srq() 240 if (attr->srq_limit >= srq->msrq.max) mlx4_ib_modify_srq() 266 srq_attr->max_wr = srq->msrq.max - 1; mlx4_ib_query_srq() 285 mlx4_buf_free(dev->dev, msrq->msrq.max << msrq->msrq.wqe_shift, mlx4_ib_destroy_srq()
|
/linux-4.1.27/drivers/ata/ |
H A D | pata_at91.c | 57 int max; member in struct:smc_range 72 int maximum = (range + size - 1)->max; adjust_smc_value() 80 } else if ((range->min <= *value) && (*value <= range->max)) adjust_smc_value() 114 {.min = 0, .max = 31}, /* first range */ calc_smc_vals() 115 {.min = 128, .max = 159} /* second range */ calc_smc_vals() 118 {.min = 0, .max = 63}, /* first range */ calc_smc_vals() 119 {.min = 256, .max = 319} /* second range */ calc_smc_vals() 122 {.min = 0, .max = 127}, /* first range */ calc_smc_vals() 123 {.min = 256, .max = 383}, /* second range */ calc_smc_vals() 124 {.min = 512, .max = 639}, /* third range */ calc_smc_vals() 125 {.min = 768, .max = 895} /* fourth range */ calc_smc_vals()
|
/linux-4.1.27/drivers/media/rc/keymaps/ |
H A D | rc-dvbsky.c | 6 * Copyright (c) 2010-2012 by Nibble Max <nibble.max@gmail.com> 78 MODULE_AUTHOR("Nibble Max <nibble.max@gmail.com>");
|
/linux-4.1.27/drivers/staging/skein/ |
H A D | threefish_api.c | 27 u64 plain[SKEIN_MAX_STATE_WORDS]; /* max number of words*/ threefish_encrypt_block_bytes() 54 u64 plain[SKEIN_MAX_STATE_WORDS]; /* max number of words*/ threefish_decrypt_block_bytes()
|
/linux-4.1.27/drivers/net/wireless/brcm80211/include/ |
H A D | brcmu_utils.h | 69 u16 max; /* maximum number of queued packets */ member in struct:pktq_prec 76 u16 max; /* total max packets */ member in struct:pktq 94 return pq->q[prec].max - pq->q[prec].skblist.qlen; pktq_pavail() 99 return pq->q[prec].skblist.qlen >= pq->q[prec].max; pktq_pfull() 150 return (int)pq->max; pktq_max() 155 return (int)(pq->max - pq->len); pktq_avail() 160 return pq->len >= pq->max; pktq_full()
|
/linux-4.1.27/drivers/gpu/drm/exynos/ |
H A D | regs-rotator.h | 70 #define ROT_MAX(max, mask) ((max) & (mask))
|
/linux-4.1.27/drivers/block/paride/ |
H A D | paride.c | 272 static int pi_probe_mode(PIA * pi, int max, char *scratch, int verbose) pi_probe_mode() argument 277 if (pi->mode >= max) pi_probe_mode() 288 for (pi->mode = 0; pi->mode < max; pi->mode++) { pi_probe_mode() 304 int max, s, e; pi_probe_unit() local 319 max = pi->proto->test_port(pi); pi_probe_unit() 322 max = pi->proto->max_mode; pi_probe_unit() 329 if (pi_probe_mode(pi, max, scratch, verbose)) pi_probe_unit() 339 if (!pi_probe_mode(pi, max, scratch, verbose)) { pi_probe_unit()
|
/linux-4.1.27/drivers/clk/at91/ |
H A D | clk-peripheral.c | 144 if (periph->range.max) { clk_sam9x5_peripheral_autodiv() 151 if (parent_rate >> shift <= periph->range.max) clk_sam9x5_peripheral_autodiv() 241 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) clk_sam9x5_peripheral_round_rate() 244 if (periph->range.max) { clk_sam9x5_peripheral_round_rate() 247 if (cur_rate <= periph->range.max) clk_sam9x5_peripheral_round_rate() 282 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) { clk_sam9x5_peripheral_set_rate() 289 if (periph->range.max && rate > periph->range.max) clk_sam9x5_peripheral_set_rate()
|
/linux-4.1.27/arch/mips/dec/ |
H A D | wbflush.c | 33 case MACH_DS5000_200: /* DS5000 3max */ wbflush_setup() 41 case MACH_DS5000_2X0: /* DS5000/240 3max+ */ wbflush_setup()
|
/linux-4.1.27/arch/mips/include/asm/sn/ |
H A D | fru.h | 14 #define MAX_DIMMS 8 /* max # of dimm banks */ 15 #define MAX_PCIDEV 8 /* max # of pci devices on a pci bus */
|
/linux-4.1.27/arch/arm64/kernel/ |
H A D | cpu_errata.c | 43 #define MIDR_RANGE(model, min, max) \ 47 .midr_range_max = max
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | syscall.h | 66 pr_warn("%s called with max args %d, handling only %d\n", syscall_get_arguments() 91 pr_warn("%s called with max args %d, handling only %d\n", syscall_set_arguments()
|
/linux-4.1.27/include/asm-generic/ |
H A D | pci_iomap.h | 17 extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); 32 static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) pci_iomap() argument
|
/linux-4.1.27/sound/core/ |
H A D | pcm_lib.c | 598 * The interval status (min, max, integer, etc.) are evaluated. 616 if (i->max > v->max) { snd_interval_refine() 617 i->max = v->max; snd_interval_refine() 620 } else if (i->max == v->max && !i->openmax && v->openmax) { snd_interval_refine() 634 i->max--; snd_interval_refine() 637 } else if (!i->openmin && !i->openmax && i->min == i->max) snd_interval_refine() 654 i->max = i->min; snd_interval_refine_first() 657 i->max++; snd_interval_refine_first() 667 i->min = i->max; snd_interval_refine_last() 683 c->max = mul(a->max, b->max); snd_interval_mul() 706 c->min = div32(a->min, b->max, &r); snd_interval_div() 709 c->max = div32(a->max, b->min, &r); snd_interval_div() 711 c->max++; snd_interval_div() 716 c->max = UINT_MAX; snd_interval_div() 744 c->max = muldiv32(a->max, b->max, k, &r); snd_interval_muldivk() 746 c->max++; snd_interval_muldivk() 773 c->min = muldiv32(a->min, k, b->max, &r); snd_interval_mulkdiv() 776 c->max = muldiv32(a->max, k, b->min, &r); snd_interval_mulkdiv() 778 c->max++; snd_interval_mulkdiv() 783 c->max = UINT_MAX; snd_interval_mulkdiv() 858 unsigned int q = i->max; snd_interval_ratnum() 889 t.max = div_up(best_num, best_den); snd_interval_ratnum() 967 unsigned int q = i->max; snd_interval_ratden() 992 t.max = div_up(best_num, best_den); snd_interval_ratden() 1034 list_range.max = 0; snd_interval_list() 1041 list_range.max = max(list_range.max, list[k]); snd_interval_list() 1075 range_union.max = 0; snd_interval_ranges() 1091 if (range.max > range_union.max) { snd_interval_ranges() 1092 range_union.max = range.max; snd_interval_ranges() 1095 if (range.max == range_union.max && !range.openmax) snd_interval_ranges() 1112 n = i->max % step; snd_interval_step() 1114 i->max -= n; snd_interval_step() 1252 * snd_pcm_hw_constraint_minmax - apply a min/max range constraint to an interval 1256 * @max: the maximal value 1258 * Apply the min/max range constraint to an interval parameter. 1264 unsigned int min, unsigned int max) snd_pcm_hw_constraint_minmax() 1269 t.max = max; snd_pcm_hw_constraint_minmax() 1727 * min rate, min period time, max buffer size, min tick time 1923 wait_time = max(t, wait_time); wait_for_avail() 2481 uinfo->value.integer.max = SNDRV_CHMAP_LAST; pcm_chmap_ctl_info() 2575 * @max_channels: the max number of channels for the stream 1263 snd_pcm_hw_constraint_minmax(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var, unsigned int min, unsigned int max) snd_pcm_hw_constraint_minmax() argument
|
/linux-4.1.27/drivers/staging/fwserial/ |
H A D | dma_fifo.h | 36 * (cache line alignment - 1) * (max outstanding dma transactions) 59 int tx_limit; /* max # of bytes per dma transaction */ 60 int open_limit; /* max # of outstanding allowed */ 112 /* returns true if fifo has max # of outstanding dmas */ dma_fifo_busy() 118 /* changes the max size of dma returned from dma_fifo_out_pend() */ dma_fifo_change_tx_limit()
|
/linux-4.1.27/arch/mips/bcm47xx/ |
H A D | prom.c | 58 unsigned long max; prom_init_mem() local 79 max = 128 << 20; prom_init_mem() 81 for (mem = 1 << 20; mem < max; mem += 1 << 20) { prom_init_mem() 83 if (off + mem >= max) { prom_init_mem() 84 mem = max; prom_init_mem()
|
/linux-4.1.27/crypto/ |
H A D | xor.c | 68 int i, count, max; do_xor_speed() local 80 max = 0; do_xor_speed() 93 if (count > max) do_xor_speed() 94 max = count; do_xor_speed() 99 speed = max * (HZ * BENCH_SIZE / 1024); do_xor_speed()
|
/linux-4.1.27/fs/omfs/ |
H A D | bitmap.c | 21 * Counts the run of zero bits starting at bit up to max. 26 int addrlen, int bit, int max) count_run() 35 if (x < nbits || count > max) count_run() 36 return min(count, max); count_run() 40 return min(count, max); count_run() 25 count_run(unsigned long **addr, int nbits, int addrlen, int bit, int max) count_run() argument
|
/linux-4.1.27/fs/hfsplus/ |
H A D | bitmap.c | 19 u32 offset, u32 *max) hfsplus_block_allocate() 29 len = *max; hfsplus_block_allocate() 154 *max = offset + (curr - pptr) * 32 + i - start; hfsplus_block_allocate() 155 sbi->free_blocks -= *max; hfsplus_block_allocate() 157 hfs_dbg(BITMAP, "-> %u,%u\n", start, *max); hfsplus_block_allocate() 18 hfsplus_block_allocate(struct super_block *sb, u32 size, u32 offset, u32 *max) hfsplus_block_allocate() argument
|
/linux-4.1.27/drivers/power/ |
H A D | 88pm860x_battery.c | 534 int min, int max) set_temp_threshold() 546 if (max <= 0) set_temp_threshold() 549 data = (max << 8) / 1800; set_temp_threshold() 551 dev_dbg(info->dev, "TEMP_LOWTH:max : %d, 0x%x\n", max, data); set_temp_threshold() 559 int max; measure_temp() local 575 max = TBAT_NEG_10D * GPBIAS2_GPADC1_UA / 1000; measure_temp() 576 set_temp_threshold(info, 0, max); measure_temp() 579 max = TBAT_NEG_10D * GPBIAS2_GPADC1_UA / 1000; measure_temp() 580 set_temp_threshold(info, 0, max); measure_temp() 584 max = TBAT_40D * GPBIAS2_GPADC1_UA / 1000; measure_temp() 585 set_temp_threshold(info, min, max); measure_temp() 589 max = TBAT_40D * GPBIAS2_GPADC1_UA / 1000; measure_temp() 590 set_temp_threshold(info, min, max); measure_temp() 594 max = TBAT_40D * GPBIAS2_GPADC1_UA / 1000; measure_temp() 595 set_temp_threshold(info, min, max); measure_temp() 599 max = TBAT_40D * GPBIAS2_GPADC1_UA / 1000; measure_temp() 600 set_temp_threshold(info, min, max); measure_temp() 604 max = TBAT_40D * GPBIAS2_GPADC1_UA / 1000; measure_temp() 605 set_temp_threshold(info, min, max); measure_temp() 533 set_temp_threshold(struct pm860x_battery_info *info, int min, int max) set_temp_threshold() argument
|
/linux-4.1.27/drivers/isdn/hardware/eicon/ |
H A D | mi_pc.h | 31 #define BRI_RAY_TAYLOR_DSP_CODE_SIZE 0x00020000 /* max 128k DSP-Code (Ray Taylor's code) */ 32 #define BRI_ORG_MAX_DSP_CODE_SIZE 0x00050000 /* max 320k DSP-Code (Telindus) */ 33 #define BRI_V90D_MAX_DSP_CODE_SIZE 0x00060000 /* max 384k DSP-Code if V.90D included */ 55 #define MP_RAY_TAYLOR_DSP_CODE_SIZE 0x00040000 /* max 256k DSP-Code (Ray Taylor's code) */ 56 #define MP_ORG_MAX_DSP_CODE_SIZE 0x00060000 /* max 384k DSP-Code (Telindus) */ 57 #define MP_V90D_MAX_DSP_CODE_SIZE 0x00070000 /* max 448k DSP-Code if V.90D included) */ 58 #define MP_VOIP_MAX_DSP_CODE_SIZE 0x00090000 /* max 576k DSP-Code if voice over IP included */ 117 #define MQ_ORG_MAX_DSP_CODE_SIZE 0x00050000 /* max 320k DSP-Code (Telindus) */ 118 #define MQ_V90D_MAX_DSP_CODE_SIZE 0x00060000 /* max 384K DSP-Code if V.90D included */ 119 #define MQ_VOIP_MAX_DSP_CODE_SIZE 0x00028000 /* max 4*160k = 640K DSP-Code if voice over IP included */
|
/linux-4.1.27/net/sctp/ |
H A D | chunk.c | 169 int max, whole, i, offset, over, err; sctp_datamsg_from_user() local 202 max = asoc->frag_point; sctp_datamsg_from_user() 215 /* Now, check if we need to reduce our max */ sctp_datamsg_from_user() 216 if (max > max_data) sctp_datamsg_from_user() 217 max = max_data; sctp_datamsg_from_user() 220 first_len = max; sctp_datamsg_from_user() 231 msg_len > max) sctp_datamsg_from_user() 250 whole += msg_len / max; sctp_datamsg_from_user() 251 over = msg_len % max; sctp_datamsg_from_user() 298 len = max; sctp_datamsg_from_user()
|