Home
last modified time | relevance | path

Searched refs:setting (Results 1 – 25 of 96) sorted by relevance

1234

/drivers/memory/
Dda8xx-ddrctl.c74 da8xx_ddrctl_match_knob(const struct da8xx_ddrctl_setting *setting) in da8xx_ddrctl_match_knob() argument
82 if (strcmp(knob->name, setting->name) == 0) in da8xx_ddrctl_match_knob()
107 const struct da8xx_ddrctl_setting *setting; in da8xx_ddrctl_probe() local
117 setting = da8xx_ddrctl_get_board_settings(); in da8xx_ddrctl_probe()
118 if (!setting) { in da8xx_ddrctl_probe()
130 for (; setting->name; setting++) { in da8xx_ddrctl_probe()
131 knob = da8xx_ddrctl_match_knob(setting); in da8xx_ddrctl_probe()
134 "no such config option: %s\n", setting->name); in da8xx_ddrctl_probe()
147 reg |= setting->val << knob->shift; in da8xx_ddrctl_probe()
149 dev_dbg(dev, "writing 0x%08x to %s\n", reg, setting->name); in da8xx_ddrctl_probe()
/drivers/pinctrl/
Dpinconf.c110 struct pinctrl_setting *setting) in pinconf_map_to_setting() argument
112 struct pinctrl_dev *pctldev = setting->pctldev; in pinconf_map_to_setting()
115 switch (setting->type) { in pinconf_map_to_setting()
124 setting->data.configs.group_or_pin = pin; in pinconf_map_to_setting()
134 setting->data.configs.group_or_pin = pin; in pinconf_map_to_setting()
140 setting->data.configs.num_configs = map->data.configs.num_configs; in pinconf_map_to_setting()
141 setting->data.configs.configs = map->data.configs.configs; in pinconf_map_to_setting()
146 void pinconf_free_setting(const struct pinctrl_setting *setting) in pinconf_free_setting() argument
150 int pinconf_apply_setting(const struct pinctrl_setting *setting) in pinconf_apply_setting() argument
152 struct pinctrl_dev *pctldev = setting->pctldev; in pinconf_apply_setting()
[all …]
Dpinmux.h29 struct pinctrl_setting *setting);
30 void pinmux_free_setting(const struct pinctrl_setting *setting);
31 int pinmux_enable_setting(const struct pinctrl_setting *setting);
32 void pinmux_disable_setting(const struct pinctrl_setting *setting);
67 struct pinctrl_setting *setting) in pinmux_map_to_setting() argument
72 static inline void pinmux_free_setting(const struct pinctrl_setting *setting) in pinmux_free_setting() argument
76 static inline int pinmux_enable_setting(const struct pinctrl_setting *setting) in pinmux_enable_setting() argument
81 static inline void pinmux_disable_setting(const struct pinctrl_setting *setting) in pinmux_disable_setting() argument
91 const struct pinctrl_setting *setting);
103 const struct pinctrl_setting *setting) in pinmux_show_setting() argument
Dpinmux.c316 struct pinctrl_setting *setting) in pinmux_map_to_setting() argument
318 struct pinctrl_dev *pctldev = setting->pctldev; in pinmux_map_to_setting()
336 setting->data.mux.func = ret; in pinmux_map_to_setting()
338 ret = pmxops->get_function_groups(pctldev, setting->data.mux.func, in pinmux_map_to_setting()
370 setting->data.mux.group = ret; in pinmux_map_to_setting()
375 void pinmux_free_setting(const struct pinctrl_setting *setting) in pinmux_free_setting() argument
380 int pinmux_enable_setting(const struct pinctrl_setting *setting) in pinmux_enable_setting() argument
382 struct pinctrl_dev *pctldev = setting->pctldev; in pinmux_enable_setting()
392 ret = pctlops->get_group_pins(pctldev, setting->data.mux.group, in pinmux_enable_setting()
400 setting->data.mux.group); in pinmux_enable_setting()
[all …]
Dpinconf.h19 struct pinctrl_setting *setting);
20 void pinconf_free_setting(const struct pinctrl_setting *setting);
21 int pinconf_apply_setting(const struct pinctrl_setting *setting);
48 struct pinctrl_setting *setting) in pinconf_map_to_setting() argument
53 static inline void pinconf_free_setting(const struct pinctrl_setting *setting) in pinconf_free_setting() argument
57 static inline int pinconf_apply_setting(const struct pinctrl_setting *setting) in pinconf_apply_setting() argument
74 const struct pinctrl_setting *setting);
86 const struct pinctrl_setting *setting) in pinconf_show_setting() argument
Dcore.c913 struct pinctrl_setting *setting; in add_setting() local
925 setting = kzalloc(sizeof(*setting), GFP_KERNEL); in add_setting()
926 if (!setting) in add_setting()
929 setting->type = map->type; in add_setting()
932 setting->pctldev = pctldev; in add_setting()
934 setting->pctldev = in add_setting()
936 if (!setting->pctldev) { in add_setting()
937 kfree(setting); in add_setting()
950 setting->dev_name = map->dev_name; in add_setting()
954 ret = pinmux_map_to_setting(map, setting); in add_setting()
[all …]
/drivers/ide/
Dide-proc.c193 const struct ide_proc_devset *setting) in ide_read_setting() argument
195 const struct ide_devset *ds = setting->setting; in ide_read_setting()
223 const struct ide_proc_devset *setting, int val) in ide_write_setting() argument
225 const struct ide_devset *ds = setting->setting; in ide_write_setting()
232 && (val < setting->min || val > setting->max)) in ide_write_setting()
283 const struct ide_proc_devset *setting, *g, *d; in ide_settings_proc_show() local
299 setting = d++; in ide_settings_proc_show()
301 setting = g++; in ide_settings_proc_show()
303 setting = d++; in ide_settings_proc_show()
305 setting = g++; in ide_settings_proc_show()
[all …]
Dide-devsets.c159 int ide_devset_execute(ide_drive_t *drive, const struct ide_devset *setting, in ide_devset_execute() argument
166 if (!(setting->flags & DS_SYNC)) in ide_devset_execute()
167 return setting->set(drive, arg); in ide_devset_execute()
174 rq->special = setting->set; in ide_devset_execute()
/drivers/mfd/
Dab3100-core.c645 u8 setting; member
651 .setting = 0x01
654 .setting = 0x30
657 .setting = 0x00
660 .setting = 0xFF
663 .setting = 0x01
666 .setting = 0xBF
669 .setting = 0xFF
672 .setting = 0xFF
675 .setting = 0x00
[all …]
/drivers/leds/
Dleds-aat1290.c368 struct led_flash_setting *setting; in aat1290_init_flash_timeout() local
371 setting = &fled_cdev->timeout; in aat1290_init_flash_timeout()
372 setting->min = cfg->max_flash_tm / AAT1290_FLASH_TM_NUM_LEVELS; in aat1290_init_flash_timeout()
373 setting->max = cfg->max_flash_tm; in aat1290_init_flash_timeout()
374 setting->step = setting->min; in aat1290_init_flash_timeout()
375 setting->val = setting->max; in aat1290_init_flash_timeout()
Dleds-ktd2692.c240 struct led_flash_setting *setting; in ktd2692_init_flash_timeout() local
242 setting = &fled_cdev->timeout; in ktd2692_init_flash_timeout()
243 setting->min = KTD2692_FLASH_MODE_TIMEOUT_DISABLE; in ktd2692_init_flash_timeout()
244 setting->max = cfg->flash_max_timeout; in ktd2692_init_flash_timeout()
245 setting->step = cfg->flash_max_timeout in ktd2692_init_flash_timeout()
247 setting->val = cfg->flash_max_timeout; in ktd2692_init_flash_timeout()
Dleds-max77693.c801 struct led_flash_setting *setting; in max77693_init_flash_settings() local
804 setting = &fled_cdev->brightness; in max77693_init_flash_settings()
805 setting->min = FLASH_IOUT_MIN; in max77693_init_flash_settings()
806 setting->max = led->iout_joint ? in max77693_init_flash_settings()
810 setting->step = FLASH_IOUT_STEP; in max77693_init_flash_settings()
811 setting->val = setting->max; in max77693_init_flash_settings()
814 setting = &fled_cdev->timeout; in max77693_init_flash_settings()
815 setting->min = FLASH_TIMEOUT_MIN; in max77693_init_flash_settings()
816 setting->max = led_cfg->flash_timeout_max[fled_id]; in max77693_init_flash_settings()
817 setting->step = FLASH_TIMEOUT_STEP; in max77693_init_flash_settings()
[all …]
Dleds-ss4200.c234 u32 setting = 0; in nasgpio_led_set_brightness() local
236 setting = 1; in nasgpio_led_set_brightness()
249 __nasgpio_led_set_attr(led_cdev, GP_LVL, setting); in nasgpio_led_set_brightness()
257 u32 setting = 1; in nasgpio_led_set_blink() local
267 nasgpio_led_set_attr(led_cdev, GPO_BLINK, setting); in nasgpio_led_set_blink()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.h53 int ixgbe_ndo_set_vf_spoofchk(struct net_device *netdev, int vf, bool setting);
55 bool setting);
56 int ixgbe_ndo_set_vf_trust(struct net_device *netdev, int vf, bool setting);
Dixgbe_sriov.c1618 int ixgbe_ndo_set_vf_spoofchk(struct net_device *netdev, int vf, bool setting) in ixgbe_ndo_set_vf_spoofchk() argument
1626 adapter->vfinfo[vf].spoofchk_enabled = setting; in ixgbe_ndo_set_vf_spoofchk()
1629 hw->mac.ops.set_mac_anti_spoofing(hw, setting, vf); in ixgbe_ndo_set_vf_spoofchk()
1632 hw->mac.ops.set_vlan_anti_spoofing(hw, setting, vf); in ixgbe_ndo_set_vf_spoofchk()
1648 hw->mac.ops.set_ethertype_anti_spoofing(hw, setting, vf); in ixgbe_ndo_set_vf_spoofchk()
1655 bool setting) in ixgbe_ndo_set_vf_rss_query_en() argument
1669 adapter->vfinfo[vf].rss_query_enabled = setting; in ixgbe_ndo_set_vf_rss_query_en()
1674 int ixgbe_ndo_set_vf_trust(struct net_device *netdev, int vf, bool setting) in ixgbe_ndo_set_vf_trust() argument
1682 if (adapter->vfinfo[vf].trusted == setting) in ixgbe_ndo_set_vf_trust()
1685 adapter->vfinfo[vf].trusted = setting; in ixgbe_ndo_set_vf_trust()
[all …]
/drivers/pinctrl/mvebu/
Dpinctrl-mvebu.c294 struct mvebu_mpp_ctrl_setting *setting; in mvebu_pinmux_set() local
298 setting = mvebu_pinctrl_find_setting_by_name(pctl, grp, in mvebu_pinmux_set()
300 if (!setting) { in mvebu_pinmux_set()
307 config = setting->val; in mvebu_pinmux_set()
323 struct mvebu_mpp_ctrl_setting *setting; in mvebu_pinmux_gpio_request_enable() local
333 setting = mvebu_pinctrl_find_gpio_setting(pctl, grp); in mvebu_pinmux_gpio_request_enable()
334 if (!setting) in mvebu_pinmux_gpio_request_enable()
337 config = setting->val; in mvebu_pinmux_gpio_request_enable()
347 struct mvebu_mpp_ctrl_setting *setting; in mvebu_pinmux_gpio_set_direction() local
356 setting = mvebu_pinctrl_find_gpio_setting(pctl, grp); in mvebu_pinmux_gpio_set_direction()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_dcbnl.c608 int priority, u8 setting) in mlx5e_dcbnl_setpfccfg() argument
619 if (setting > 1) in mlx5e_dcbnl_setpfccfg()
622 cee_cfg->pfc_setting[priority] = setting; in mlx5e_dcbnl_setpfccfg()
627 int priority, u8 *setting) in mlx5e_dcbnl_get_priority_pfc() argument
635 *setting = 0; in mlx5e_dcbnl_get_priority_pfc()
637 *setting = (pfc.pfc_en >> priority) & 0x01; in mlx5e_dcbnl_get_priority_pfc()
643 int priority, u8 *setting) in mlx5e_dcbnl_getpfccfg() argument
651 if (!setting) in mlx5e_dcbnl_getpfccfg()
654 mlx5e_dcbnl_get_priority_pfc(netdev, priority, setting); in mlx5e_dcbnl_getpfccfg()
/drivers/i2c/muxes/
Di2c-mux-pinctrl.c49 struct pinctrl_setting *setting; in i2c_mux_pinctrl_root_adapter() local
52 list_for_each_entry(setting, &state->settings, node) { in i2c_mux_pinctrl_root_adapter()
53 pin_root = i2c_root_adapter(setting->pctldev->dev); in i2c_mux_pinctrl_root_adapter()
/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.h47 #define ITR_TO_REG(setting) ((setting & ~I40E_ITR_DYNAMIC) >> 1) argument
48 #define ITR_IS_DYNAMIC(setting) (!!(setting & I40E_ITR_DYNAMIC)) argument
/drivers/net/ethernet/intel/i40e/
Di40e_txrx.h47 #define ITR_TO_REG(setting) ((setting & ~I40E_ITR_DYNAMIC) >> 1) argument
48 #define ITR_IS_DYNAMIC(setting) (!!(setting & I40E_ITR_DYNAMIC)) argument
/drivers/net/ethernet/qlogic/qede/
Dqede_dcbnl.c72 u8 *setting) in qede_dcbnl_getpfccfg() argument
76 edev->ops->dcb->getpfccfg(edev->cdev, prio, setting); in qede_dcbnl_getpfccfg()
80 u8 setting) in qede_dcbnl_setpfccfg() argument
84 edev->ops->dcb->setpfccfg(edev->cdev, prio, setting); in qede_dcbnl_setpfccfg()
/drivers/regulator/
Dtps6586x-regulator.c310 struct tps6586x_settings *setting = p->driver_data; in tps6586x_regulator_set_slew_rate() local
313 if (setting == NULL) in tps6586x_regulator_set_slew_rate()
316 if (!(setting->slew_rate & TPS6586X_SLEW_RATE_SET)) in tps6586x_regulator_set_slew_rate()
333 setting->slew_rate & TPS6586X_SLEW_RATE_MASK); in tps6586x_regulator_set_slew_rate()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_dcb.c855 u8 *setting) in qlcnic_dcb_get_pfc_cfg() argument
863 *setting = 0; in qlcnic_dcb_get_pfc_cfg()
876 *setting = tc_cfg->prio_cfg[prio].pfc_type; in qlcnic_dcb_get_pfc_cfg()
1103 u8 i, setting, prio; in qlcnic_dcb_cee_peer_get_pfc() local
1116 setting = 0; in qlcnic_dcb_cee_peer_get_pfc()
1117 qlcnic_dcb_get_pfc_cfg(netdev, prio, &setting); in qlcnic_dcb_cee_peer_get_pfc()
1118 if (setting) in qlcnic_dcb_cee_peer_get_pfc()
/drivers/net/phy/
Dphy.c226 const struct phy_setting *setting; in phy_sanitize_settings() local
233 setting = phy_find_valid(phydev->speed, phydev->duplex, features); in phy_sanitize_settings()
234 if (setting) { in phy_sanitize_settings()
235 phydev->speed = setting->speed; in phy_sanitize_settings()
236 phydev->duplex = setting->duplex; in phy_sanitize_settings()
/drivers/net/ethernet/netronome/nfp/
Dnfp_net_sriov.h80 int nfp_app_set_vf_spoofchk(struct net_device *netdev, int vf, bool setting);

1234