/drivers/regulator/ |
H A D | wm8994-regulator.c | 81 unsigned int selector) 83 if (selector > WM8994_LDO1_MAX_SELECTOR) 86 return (selector * 100000) + 2400000; 105 int selector, v; local 107 selector = (min_uV - 2400000) / 100000; 108 v = wm8994_ldo1_list_voltage(rdev, selector); 112 *s = selector; 113 selector <<= WM8994_LDO1_VSEL_SHIFT; 116 WM8994_LDO1_VSEL_MASK, selector); 131 unsigned int selector) 80 wm8994_ldo1_list_voltage(struct regulator_dev *rdev, unsigned int selector) argument 130 wm8994_ldo2_list_voltage(struct regulator_dev *rdev, unsigned int selector) argument 172 int selector, v; local [all...] |
H A D | max1586.c | 59 unsigned selector) 63 return max1586->min_uV + (selector * range_uV / MAX1586_V3_MAX_VSEL); 67 unsigned *selector) 79 *selector = DIV_ROUND_UP((min_uV - max1586->min_uV) * 81 if (max1586_v3_calc_voltage(max1586, *selector) > max_uV) 85 max1586_v3_calc_voltage(max1586, *selector) / 1000); 87 v3_prog = I2C_V3_SELECT | (u8) *selector; 91 static int max1586_v3_list(struct regulator_dev *rdev, unsigned selector) argument 95 if (selector > MAX1586_V3_MAX_VSEL) 97 return max1586_v3_calc_voltage(max1586, selector); 58 max1586_v3_calc_voltage(struct max1586_data *max1586, unsigned selector) argument 66 max1586_v3_set(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector) argument 106 max1586_v6_calc_voltage(unsigned selector) argument 113 max1586_v6_set(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned int *selector) argument 143 max1586_v6_list(struct regulator_dev *rdev, unsigned selector) argument [all...] |
H A D | max8660.c | 129 static int max8660_dcdc_list(struct regulator_dev *rdev, unsigned selector) argument 131 if (selector > MAX8660_DCDC_MAX_SEL) 133 return MAX8660_DCDC_MIN_UV + selector * MAX8660_DCDC_STEP; 140 u8 selector = max8660->shadow_regs[reg]; local 141 return MAX8660_DCDC_MIN_UV + selector * MAX8660_DCDC_STEP; 148 u8 reg, selector, bits; local 156 selector = DIV_ROUND_UP(min_uV - MAX8660_DCDC_MIN_UV, 159 ret = max8660_dcdc_list(rdev, selector); 163 *s = selector; 166 ret = max8660_write(max8660, reg, 0, selector); 187 max8660_ldo5_list(struct regulator_dev *rdev, unsigned selector) argument 197 u8 selector = max8660->shadow_regs[MAX8660_MDTV2]; local 206 u8 selector; local 264 max8660_ldo67_list(struct regulator_dev *rdev, unsigned selector) argument 275 u8 selector = (max8660->shadow_regs[MAX8660_L12VCR] >> shift) & 0xf; local 284 u8 selector; local [all...] |
H A D | tps65217-regulator.c | 202 unsigned int selector, rid = rdev_get_id(dev); local 207 ret = tps65217_reg_read(tps, tps->info[rid]->set_vout_reg, &selector); 211 selector &= tps->info[rid]->set_vout_mask; 213 return selector; 217 unsigned selector) 225 if (selector >= tps->info[ldo]->table_len) 231 selector, TPS65217_PROTECT_L2); 235 int min_uV, int max_uV, unsigned *selector) 256 ret = tps->info[rid]->uv_to_vsel(min_uV, selector); 263 *selector, TPS65217_PROTECT_L 216 tps65217_pmic_ldo1_set_voltage_sel(struct regulator_dev *dev, unsigned selector) argument 234 tps65217_pmic_set_voltage(struct regulator_dev *dev, int min_uV, int max_uV, unsigned *selector) argument 277 tps65217_pmic_list_voltage(struct regulator_dev *dev, unsigned selector) argument [all...] |
H A D | wm8400-regulator.c | 48 unsigned selector) 50 if (selector > WM8400_LDO1_VSEL_MASK) 53 if (selector < 15) 54 return 900000 + (selector * 50000); 56 return 1600000 + ((selector - 14) * 100000); 71 int min_uV, int max_uV, unsigned *selector) 97 *selector = val; 141 unsigned selector) 143 if (selector > WM8400_DC1_VSEL_MASK) 146 return 850000 + (selector * 2500 47 wm8400_ldo_list_voltage(struct regulator_dev *dev, unsigned selector) argument 70 wm8400_ldo_set_voltage(struct regulator_dev *dev, int min_uV, int max_uV, unsigned *selector) argument 140 wm8400_dcdc_list_voltage(struct regulator_dev *dev, unsigned selector) argument 161 wm8400_dcdc_set_voltage(struct regulator_dev *dev, int min_uV, int max_uV, unsigned *selector) argument [all...] |
H A D | ad5398.c | 32 unsigned selector) 36 return chip->min_uA + (selector * range_uA / chip->current_level); 88 unsigned selector; local 97 selector = DIV_ROUND_UP((min_uA - chip->min_uA) * chip->current_level, 99 if (ad5398_calc_current(chip, selector) > max_uA) 103 ad5398_calc_current(chip, selector) / 1000); 111 selector = (selector << chip->current_offset) & chip->current_mask; 112 data = (unsigned short)selector | (data & AD5398_CURRENT_EN_MASK); 31 ad5398_calc_current(struct ad5398_chip_info *chip, unsigned selector) argument
|
H A D | da9052-regulator.c | 177 unsigned int selector) 184 (selector >= DA9052_BUCK_PERI_REG_MAP_UPTO_3uV)) { 187 volt_uV += (selector - DA9052_BUCK_PERI_REG_MAP_UPTO_3uV) 190 volt_uV = (selector * info->step_uV) + info->min_uV; 199 unsigned int selector) 205 volt_uV = info->min_uV + info->step_uV * selector; 215 unsigned int *selector) 229 *selector = DIV_ROUND_UP(min_uV - info->min_uV, info->step_uV); 231 ret = da9052_list_voltage(rdev, *selector); 237 (1 << info->volt_shift) - 1, *selector); 176 da9052_list_buckperi_voltage(struct regulator_dev *rdev, unsigned int selector) argument 198 da9052_list_voltage(struct regulator_dev *rdev, unsigned int selector) argument 213 da9052_regulator_set_voltage_int(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned int *selector) argument 240 da9052_set_ldo_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned int *selector) argument 247 da9052_set_ldo5_6_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned int *selector) argument 267 da9052_set_dcdc_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned int *selector) argument 303 da9052_set_buckperi_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned int *selector) argument [all...] |
H A D | isl6271a-regulator.c | 63 unsigned *selector) 75 *selector = data; 87 static int isl6271a_list_voltage(struct regulator_dev *dev, unsigned selector) argument 89 return ISL6271A_VOLTAGE_MIN + (ISL6271A_VOLTAGE_STEP * selector); 104 static int isl6271a_list_fixed_voltage(struct regulator_dev *dev, unsigned selector) argument 61 isl6271a_set_voltage(struct regulator_dev *dev, int minuV, int maxuV, unsigned *selector) argument
|
H A D | tps6105x-regulator.c | 94 unsigned selector) 101 selector << TPS6105X_REG0_VOLTAGE_SHIFT); 109 unsigned selector) 111 if (selector >= ARRAY_SIZE(tps6105x_voltages)) 114 return tps6105x_voltages[selector]; 93 tps6105x_regulator_set_voltage_sel(struct regulator_dev *rdev, unsigned selector) argument 108 tps6105x_regulator_list_voltage(struct regulator_dev *rdev, unsigned selector) argument
|
H A D | wm831x-ldo.c | 103 unsigned int selector) 106 if (selector <= WM831X_GP_LDO_SELECTOR_LOW) 107 return 900000 + (selector * 50000); 109 if (selector <= WM831X_GP_LDO_MAX_SELECTOR) 110 return 1600000 + ((selector - WM831X_GP_LDO_SELECTOR_LOW) 117 unsigned *selector) 137 *selector = vsel; 144 unsigned *selector) 150 selector); 158 unsigned int selector; local 102 wm831x_gp_ldo_list_voltage(struct regulator_dev *rdev, unsigned int selector) argument 115 wm831x_gp_ldo_set_voltage_int(struct regulator_dev *rdev, int reg, int min_uV, int max_uV, unsigned *selector) argument 142 wm831x_gp_ldo_set_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector) argument 411 wm831x_aldo_list_voltage(struct regulator_dev *rdev, unsigned int selector) argument 424 wm831x_aldo_set_voltage_int(struct regulator_dev *rdev, int reg, int min_uV, int max_uV, unsigned *selector) argument 451 wm831x_aldo_set_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector) argument 466 unsigned int selector; local 671 wm831x_alive_ldo_list_voltage(struct regulator_dev *rdev, unsigned int selector) argument 680 wm831x_alive_ldo_set_voltage_int(struct regulator_dev *rdev, int reg, int min_uV, int max_uV, unsigned *selector) argument 702 wm831x_alive_ldo_set_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector) argument 718 unsigned selector; local [all...] |
H A D | tps65910-regulator.c | 680 /* The first 5 values of the selector correspond to 1V */ 695 /* The first 3 values of the selector correspond to 1V */ 715 unsigned selector) 723 dcdc_mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1; 726 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; 734 dcdc_mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1; 737 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; 745 vsel = selector + 3; 753 unsigned selector) 773 (selector << LDO_SEL_SHIF 714 tps65910_set_voltage_dcdc_sel(struct regulator_dev *dev, unsigned selector) argument 752 tps65910_set_voltage_sel(struct regulator_dev *dev, unsigned selector) argument 779 tps65911_set_voltage_sel(struct regulator_dev *dev, unsigned selector) argument 811 tps65910_list_voltage_dcdc(struct regulator_dev *dev, unsigned selector) argument 834 tps65910_list_voltage(struct regulator_dev *dev, unsigned selector) argument 851 tps65911_list_voltage(struct regulator_dev *dev, unsigned selector) argument [all...] |
H A D | s5m8767.c | 124 unsigned int selector) 137 val = desc->min + desc->step * selector; 292 int selector = 0; local 300 selector = (min_vol - desc->min) / desc->step; 302 if (desc->min + desc->step * selector > max_vol) 305 return selector; 309 int min_uV, int max_uV, unsigned *selector) 348 *selector = sel; 372 int min_uV, int max_uV, unsigned *selector) 384 return s5m8767_set_voltage(rdev, min_uV, max_uV, selector); 123 s5m8767_list_voltage(struct regulator_dev *rdev, unsigned int selector) argument 308 s5m8767_set_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector) argument 371 s5m8767_set_voltage_buck(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector) argument [all...] |
H A D | da903x.c | 111 int min_uV, int max_uV, unsigned *selector) 123 *selector = val; 179 static int da903x_list_voltage(struct regulator_dev *rdev, unsigned selector) argument 184 ret = info->min_uV + info->step_uV * selector; 193 unsigned *selector) 206 *selector = val; 222 unsigned *selector) 242 *selector = val; 272 int min_uV, int max_uV, unsigned *selector) 285 *selector 110 da903x_set_ldo_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector) argument 191 da9030_set_ldo1_15_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector) argument 220 da9030_set_ldo14_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector) argument 271 da9034_set_dvc_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector) argument 298 da9034_set_ldo12_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector) argument 339 da9034_list_ldo12_voltage(struct regulator_dev *rdev, unsigned selector) argument [all...] |
H A D | tps6586x-regulator.c | 79 unsigned selector) 85 if ((rid == TPS6586X_ID_LDO_0) && (selector == 0)) 88 return info->voltages[selector] * 1000; 95 unsigned *selector) 110 *selector = val; 123 int min_uV, int max_uV, unsigned *selector) 129 selector); 153 int min_uV, int max_uV, unsigned *selector) 160 selector); 78 tps6586x_ldo_list_voltage(struct regulator_dev *rdev, unsigned selector) argument 92 __tps6586x_ldo_set_voltage(struct device *parent, struct tps6586x_regulator *ri, int min_uV, int max_uV, unsigned *selector) argument 122 tps6586x_ldo_set_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector) argument 152 tps6586x_dvm_set_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector) argument
|
H A D | tps65912-regulator.c | 376 unsigned selector) 389 voltage = tps65912_vsel_to_uv_range0(selector); 393 voltage = tps65912_vsel_to_uv_range1(selector); 397 voltage = tps65912_vsel_to_uv_range2(selector); 401 voltage = tps65912_vsel_to_uv_range3(selector); 425 unsigned selector) 436 return tps65912_reg_write(mfd, reg, selector | value); 455 unsigned selector) 462 return tps65912_vsel_to_uv_ldo(selector); 375 tps65912_list_voltage_dcdc(struct regulator_dev *dev, unsigned selector) argument 424 tps65912_set_voltage_sel(struct regulator_dev *dev, unsigned selector) argument 454 tps65912_list_voltage_ldo(struct regulator_dev *dev, unsigned selector) argument
|
H A D | anatop-regulator.c | 47 int max_uV, unsigned *selector) 72 *selector = sel; 99 static int anatop_list_voltage(struct regulator_dev *reg, unsigned selector) argument 104 uv = anatop_reg->min_voltage + selector * 25000; 105 dev_dbg(®->dev, "vddio = %d, selector = %u\n", uv, selector); 46 anatop_set_voltage(struct regulator_dev *reg, int min_uV, int max_uV, unsigned *selector) argument
|
/drivers/md/ |
H A D | dm-round-robin.c | 9 * Round-robin path selector. 14 #include "dm-path-selector.h" 41 * Round-robin selector 46 struct selector { struct 51 static struct selector *alloc_selector(void) 53 struct selector *s = kmalloc(sizeof(*s), GFP_KERNEL); 65 struct selector *s; 77 struct selector *s = (struct selector *) ps->context; 114 struct selector * [all...] |
H A D | dm-queue-length.c | 12 * queue-length path selector - choose a path with the least number of 17 #include "dm-path-selector.h" 29 struct selector { struct 41 static struct selector *alloc_selector(void) 43 struct selector *s = kmalloc(sizeof(*s), GFP_KERNEL); 55 struct selector *s = alloc_selector(); 76 struct selector *s = ps->context; 90 /* When called with NULL path, return selector status/args. */ 112 struct selector *s = ps->context; 152 struct selector * [all...] |
H A D | dm-service-time.c | 8 * Throughput oriented path selector. 12 #include "dm-path-selector.h" 24 struct selector { struct 37 static struct selector *alloc_selector(void) 39 struct selector *s = kmalloc(sizeof(*s), GFP_KERNEL); 51 struct selector *s = alloc_selector(); 72 struct selector *s = ps->context; 109 struct selector *s = ps->context; 165 struct selector *s = ps->context; 173 struct selector * [all...] |
/drivers/media/video/uvc/ |
H A D | uvc_ctrl.c | 42 .selector = UVC_PU_BRIGHTNESS_CONTROL, 51 .selector = UVC_PU_CONTRAST_CONTROL, 60 .selector = UVC_PU_HUE_CONTROL, 70 .selector = UVC_PU_SATURATION_CONTROL, 79 .selector = UVC_PU_SHARPNESS_CONTROL, 88 .selector = UVC_PU_GAMMA_CONTROL, 97 .selector = UVC_PU_WHITE_BALANCE_TEMPERATURE_CONTROL, 107 .selector = UVC_PU_WHITE_BALANCE_COMPONENT_CONTROL, 117 .selector = UVC_PU_BACKLIGHT_COMPENSATION_CONTROL, 126 .selector 1309 u8 selector; member in struct:uvc_ctrl_fixup [all...] |
/drivers/pinctrl/ |
H A D | pinconf.c | 168 int selector, ret; local 187 selector = pinctrl_get_group_selector(pctldev, pin_group); 188 if (selector < 0) { 189 ret = selector; 193 ret = ops->pin_config_group_get(pctldev, selector, config); 207 int selector; local 230 selector = pinctrl_get_group_selector(pctldev, pin_group); 231 if (selector < 0) { 232 ret = selector; 236 ret = pctlops->get_group_pins(pctldev, selector, 481 pinconf_dump_group(struct pinctrl_dev *pctldev, struct seq_file *s, unsigned selector, const char *gname) argument 498 unsigned selector = 0; local [all...] |
H A D | pinctrl-pxa3xx.c | 28 static int pxa3xx_list_groups(struct pinctrl_dev *pctrldev, unsigned selector) argument 31 if (selector >= info->num_grps) 37 unsigned selector) 40 if (selector >= info->num_grps) 42 return info->grps[selector].name; 46 unsigned selector, 51 if (selector >= info->num_grps) 53 *pins = info->grps[selector].pins; 54 *num_pins = info->grps[selector].npins; 36 pxa3xx_get_group_name(struct pinctrl_dev *pctrldev, unsigned selector) argument 45 pxa3xx_get_group_pins(struct pinctrl_dev *pctrldev, unsigned selector, const unsigned **pins, unsigned *num_pins) argument
|
H A D | pinctrl-u300.c | 839 static int u300_list_groups(struct pinctrl_dev *pctldev, unsigned selector) argument 841 if (selector >= ARRAY_SIZE(u300_pin_groups)) 847 unsigned selector) 849 if (selector >= ARRAY_SIZE(u300_pin_groups)) 851 return u300_pin_groups[selector].name; 854 static int u300_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector, argument 858 if (selector >= ARRAY_SIZE(u300_pin_groups)) 860 *pins = u300_pin_groups[selector].pins; 861 *num_pins = u300_pin_groups[selector].num_pins; 941 static void u300_pmx_endisable(struct u300_pmx *upmx, unsigned selector, argument 846 u300_get_group_name(struct pinctrl_dev *pctldev, unsigned selector) argument 966 u300_pmx_enable(struct pinctrl_dev *pctldev, unsigned selector, unsigned group) argument 981 u300_pmx_disable(struct pinctrl_dev *pctldev, unsigned selector, unsigned group) argument 994 u300_pmx_list_funcs(struct pinctrl_dev *pctldev, unsigned selector) argument 1001 u300_pmx_get_func_name(struct pinctrl_dev *pctldev, unsigned selector) argument 1007 u300_pmx_get_groups(struct pinctrl_dev *pctldev, unsigned selector, const char * const **groups, unsigned * const num_groups) argument [all...] |
H A D | pinctrl-sirf.c | 856 static int sirfsoc_list_groups(struct pinctrl_dev *pctldev, unsigned selector) argument 858 if (selector >= ARRAY_SIZE(sirfsoc_pin_groups)) 864 unsigned selector) 866 if (selector >= ARRAY_SIZE(sirfsoc_pin_groups)) 868 return sirfsoc_pin_groups[selector].name; 871 static int sirfsoc_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector, argument 875 if (selector >= ARRAY_SIZE(sirfsoc_pin_groups)) 877 *pins = sirfsoc_pin_groups[selector].pins; 878 *num_pins = sirfsoc_pin_groups[selector].num_pins; 988 static void sirfsoc_pinmux_endisable(struct sirfsoc_pmx *spmx, unsigned selector, argument 863 sirfsoc_get_group_name(struct pinctrl_dev *pctldev, unsigned selector) argument 1016 sirfsoc_pinmux_enable(struct pinctrl_dev *pmxdev, unsigned selector, unsigned group) argument 1027 sirfsoc_pinmux_disable(struct pinctrl_dev *pmxdev, unsigned selector, unsigned group) argument 1036 sirfsoc_pinmux_list_funcs(struct pinctrl_dev *pmxdev, unsigned selector) argument 1043 sirfsoc_pinmux_get_func_name(struct pinctrl_dev *pctldev, unsigned selector) argument 1049 sirfsoc_pinmux_get_groups(struct pinctrl_dev *pctldev, unsigned selector, const char * const **groups, unsigned * const num_groups) argument [all...] |
/drivers/usb/wusbcore/ |
H A D | rh.c | 239 u8 selector, u8 port_idx) 266 port_idx, feature, selector); 270 port_idx, feature, selector); 283 u8 selector, u8 port_idx) 312 port_idx, feature, selector); 317 port_idx, feature, selector); 238 wusbhc_rh_set_port_feat(struct wusbhc *wusbhc, u16 feature, u8 selector, u8 port_idx) argument 282 wusbhc_rh_clear_port_feat(struct wusbhc *wusbhc, u16 feature, u8 selector, u8 port_idx) argument
|