/linux/arch/powerpc/platforms/powernv/ |
A D | subcore.c | 213 static void split_core(int new_mode) in split_core() argument 223 i = (new_mode >> 1) - 1; in split_core() 245 static void cpu_do_split(int new_mode) in cpu_do_split() argument 256 if (new_mode != 1) in cpu_do_split() 257 split_core(new_mode); in cpu_do_split() 296 int cpu, new_mode = *(int *)data; in cpu_update_split_mode() local 299 new_split_mode = new_mode; in cpu_update_split_mode() 310 cpu_do_split(new_mode); in cpu_update_split_mode() 325 subcores_per_core = new_mode; in cpu_update_split_mode() 336 static int set_subcores_per_core(int new_mode) in set_subcores_per_core() argument [all …]
|
/linux/drivers/usb/musb/ |
A D | musb_cppi41.c | 345 u32 new_mode; in cppi41_set_dma_mode() local 355 if (new_mode == old_mode) in cppi41_set_dma_mode() 358 controller->tx_mode = new_mode; in cppi41_set_dma_mode() 361 controller->rx_mode = new_mode; in cppi41_set_dma_mode() 373 u32 new_mode; in da8xx_set_dma_mode() local 383 new_mode |= mode << shift; in da8xx_set_dma_mode() 385 if (new_mode == old_mode) in da8xx_set_dma_mode() 387 controller->tx_mode = new_mode; in da8xx_set_dma_mode() 397 u32 new_mode; in cppi41_set_autoreq_mode() local 404 if (new_mode == old_mode) in cppi41_set_autoreq_mode() [all …]
|
A D | mediatek.c | 274 enum phy_mode new_mode; in mtk_musb_set_mode() local 279 new_mode = PHY_MODE_USB_HOST; in mtk_musb_set_mode() 283 new_mode = PHY_MODE_USB_DEVICE; in mtk_musb_set_mode() 287 new_mode = PHY_MODE_USB_OTG; in mtk_musb_set_mode() 295 if (glue->phy_mode == new_mode) in mtk_musb_set_mode()
|
A D | sunxi.c | 327 enum phy_mode new_mode; in sunxi_musb_set_mode() local 331 new_mode = PHY_MODE_USB_HOST; in sunxi_musb_set_mode() 334 new_mode = PHY_MODE_USB_DEVICE; in sunxi_musb_set_mode() 337 new_mode = PHY_MODE_USB_OTG; in sunxi_musb_set_mode() 345 if (glue->phy_mode == new_mode) in sunxi_musb_set_mode() 361 glue->phy_mode = new_mode; in sunxi_musb_set_mode()
|
/linux/drivers/gpu/drm/arm/display/komeda/ |
A D | komeda_crtc.c | 117 u32 new_mode; in komeda_crtc_prepare() local 122 new_mode = mdev->dpmode | BIT(master->id); in komeda_crtc_prepare() 123 if (WARN_ON(new_mode == mdev->dpmode)) { in komeda_crtc_prepare() 131 mdev->dpmode, new_mode); in komeda_crtc_prepare() 135 mdev->dpmode = new_mode; in komeda_crtc_prepare() 141 if (new_mode != KOMEDA_MODE_DUAL_DISP) { in komeda_crtc_prepare() 168 u32 new_mode; in komeda_crtc_unprepare() local 175 if (WARN_ON(new_mode == mdev->dpmode)) { in komeda_crtc_unprepare() 183 mdev->dpmode, new_mode); in komeda_crtc_unprepare() 187 mdev->dpmode = new_mode; in komeda_crtc_unprepare() [all …]
|
/linux/drivers/media/i2c/ |
A D | ov7251.c | 1051 __crop->width = new_mode->width; in ov7251_set_format() 1052 __crop->height = new_mode->height; in ov7251_set_format() 1056 new_mode->pixel_clock); in ov7251_set_format() 1061 new_mode->link_freq); in ov7251_set_format() 1066 1, new_mode->exposure_max, in ov7251_set_format() 1072 new_mode->exposure_def); in ov7251_set_format() 1080 ov7251->current_mode = new_mode; in ov7251_set_format() 1196 new_mode->pixel_clock); in ov7251_set_frame_interval() 1201 new_mode->link_freq); in ov7251_set_frame_interval() 1212 new_mode->exposure_def); in ov7251_set_frame_interval() [all …]
|
A D | ov5645.c | 919 const struct ov5645_mode_info *new_mode; in ov5645_set_format() local 925 new_mode = v4l2_find_nearest_size(ov5645_mode_info_data, in ov5645_set_format() 930 __crop->width = new_mode->width; in ov5645_set_format() 931 __crop->height = new_mode->height; in ov5645_set_format() 935 new_mode->pixel_clock); in ov5645_set_format() 940 new_mode->link_freq); in ov5645_set_format() 944 ov5645->current_mode = new_mode; in ov5645_set_format()
|
/linux/arch/x86/boot/ |
A D | video-bios.c | 32 u8 new_mode; in set_bios_mode() local 44 new_mode = oreg.al & 0x7f; in set_bios_mode() 46 if (new_mode == mode) in set_bios_mode() 50 if (new_mode != boot_params.screen_info.orig_video_mode) { in set_bios_mode()
|
/linux/drivers/mfd/ |
A D | wl1273-core.c | 80 static int wl1273_fm_set_audio(struct wl1273_core *core, unsigned int new_mode) in wl1273_fm_set_audio() argument 88 if (core->mode == WL1273_MODE_RX && new_mode == WL1273_AUDIO_DIGITAL) { in wl1273_fm_set_audio() 105 new_mode == WL1273_AUDIO_ANALOG) { in wl1273_fm_set_audio() 112 new_mode == WL1273_AUDIO_DIGITAL) { in wl1273_fm_set_audio() 124 new_mode == WL1273_AUDIO_ANALOG) { in wl1273_fm_set_audio() 131 core->audio_mode = new_mode; in wl1273_fm_set_audio()
|
/linux/drivers/phy/rockchip/ |
A D | phy-rockchip-typec.c | 871 int timeout, new_mode, ret = 0; in rockchip_usb3_phy_power_on() local 876 new_mode = tcphy_get_mode(tcphy); in rockchip_usb3_phy_power_on() 877 if (new_mode < 0) { in rockchip_usb3_phy_power_on() 878 ret = new_mode; in rockchip_usb3_phy_power_on() 888 if (tcphy->mode == new_mode) in rockchip_usb3_phy_power_on() 949 int new_mode, ret = 0; in rockchip_dp_phy_power_on() local 954 new_mode = tcphy_get_mode(tcphy); in rockchip_dp_phy_power_on() 955 if (new_mode < 0) { in rockchip_dp_phy_power_on() 956 ret = new_mode; in rockchip_dp_phy_power_on() 960 if (!(new_mode & MODE_DFP_DP)) { in rockchip_dp_phy_power_on() [all …]
|
/linux/drivers/regulator/ |
A D | hi6421v530-regulator.c | 130 unsigned int new_mode; in hi6421v530_regulator_ldo_set_mode() local 135 new_mode = 0; in hi6421v530_regulator_ldo_set_mode() 138 new_mode = info->mode_mask; in hi6421v530_regulator_ldo_set_mode() 145 info->mode_mask, new_mode); in hi6421v530_regulator_ldo_set_mode()
|
A D | hi6421-regulator.c | 415 unsigned int new_mode; in hi6421_regulator_ldo_set_mode() local 420 new_mode = 0; in hi6421_regulator_ldo_set_mode() 423 new_mode = info->mode_mask; in hi6421_regulator_ldo_set_mode() 431 info->mode_mask, new_mode); in hi6421_regulator_ldo_set_mode() 440 unsigned int new_mode; in hi6421_regulator_buck_set_mode() local 445 new_mode = 0; in hi6421_regulator_buck_set_mode() 448 new_mode = info->mode_mask; in hi6421_regulator_buck_set_mode() 456 info->mode_mask, new_mode); in hi6421_regulator_buck_set_mode()
|
/linux/fs/ceph/ |
A D | acl.c | 96 umode_t new_mode = inode->i_mode, old_mode = inode->i_mode; in ceph_set_acl() local 108 &new_mode, &acl); in ceph_set_acl() 138 if (new_mode != old_mode) { in ceph_set_acl() 140 newattrs.ia_mode = new_mode; in ceph_set_acl() 149 if (new_mode != old_mode) { in ceph_set_acl()
|
/linux/include/linux/clk/ |
A D | sunxi-ng.h | 12 int sunxi_ccu_set_mmc_timing_mode(struct clk *clk, bool new_mode); 16 bool new_mode) in sunxi_ccu_set_mmc_timing_mode() argument
|
/linux/drivers/firmware/efi/libstub/ |
A D | gop.c | 388 u32 cur_mode, new_mode; in set_mode() local 392 new_mode = choose_mode_modenum(gop); in set_mode() 395 new_mode = choose_mode_res(gop); in set_mode() 398 new_mode = choose_mode_auto(gop); in set_mode() 401 new_mode = choose_mode_list(gop); in set_mode() 410 if (new_mode == cur_mode) in set_mode() 413 if (efi_call_proto(gop, set_mode, new_mode) != EFI_SUCCESS) in set_mode()
|
/linux/drivers/net/ethernet/sfc/falcon/ |
A D | falcon_boards.c | 369 enum ef4_phy_mode old_mode, new_mode; in phy_flash_cfg_store() local 375 new_mode = old_mode & ~PHY_MODE_SPECIAL; in phy_flash_cfg_store() 377 new_mode = PHY_MODE_SPECIAL; in phy_flash_cfg_store() 378 if (!((old_mode ^ new_mode) & PHY_MODE_SPECIAL)) { in phy_flash_cfg_store() 385 efx->phy_mode = new_mode; in phy_flash_cfg_store() 386 if (new_mode & PHY_MODE_SPECIAL) in phy_flash_cfg_store() 391 if (!(new_mode & PHY_MODE_SPECIAL)) in phy_flash_cfg_store()
|
/linux/drivers/clk/sunxi-ng/ |
A D | ccu_mmc_timing.c | 20 int sunxi_ccu_set_mmc_timing_mode(struct clk *clk, bool new_mode) in sunxi_ccu_set_mmc_timing_mode() argument 33 if (new_mode) in sunxi_ccu_set_mmc_timing_mode()
|
/linux/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_ethtool.c | 324 u32 new_mode = PRESTERA_LINK_MODE_MAX; in prestera_port_type_set() local 346 new_mode = mode; in prestera_port_type_set() 350 if (new_mode >= PRESTERA_LINK_MODE_MAX) in prestera_port_type_set() 587 u32 new_mode = PRESTERA_LINK_MODE_MAX; in prestera_port_link_mode_set() local 607 new_mode = mode; in prestera_port_link_mode_set() 611 if (new_mode == PRESTERA_LINK_MODE_MAX) in prestera_port_link_mode_set() 615 false, new_mode, 0, in prestera_port_link_mode_set() 622 port->cfg_phy.mode = new_mode; in prestera_port_link_mode_set()
|
/linux/drivers/phy/allwinner/ |
A D | phy-sun4i-usb.c | 478 int new_mode; in sun4i_usb_phy_set_mode() local 488 new_mode = USB_DR_MODE_HOST; in sun4i_usb_phy_set_mode() 491 new_mode = USB_DR_MODE_PERIPHERAL; in sun4i_usb_phy_set_mode() 494 new_mode = USB_DR_MODE_OTG; in sun4i_usb_phy_set_mode() 500 if (new_mode != data->dr_mode) { in sun4i_usb_phy_set_mode() 501 dev_info(&_phy->dev, "Changing dr_mode to %d\n", new_mode); in sun4i_usb_phy_set_mode() 502 data->dr_mode = new_mode; in sun4i_usb_phy_set_mode()
|
/linux/drivers/video/fbdev/ |
A D | carminefb.c | 77 u32 new_mode; member 417 par->new_mode = ret; in carmine_set_par() 418 if (par->cur_mode != par->new_mode) { in carmine_set_par() 420 par->cur_mode = par->new_mode; in carmine_set_par() 421 par->res = &car_modes[par->new_mode]; in carmine_set_par() 572 par->cur_mode = par->new_mode = ~0; in alloc_carmine_fb()
|
/linux/drivers/phy/renesas/ |
A D | phy-rcar-gen3-usb2.c | 343 enum phy_mode cur_mode, new_mode; in role_store() local 349 new_mode = PHY_MODE_USB_HOST; in role_store() 351 new_mode = PHY_MODE_USB_DEVICE; in role_store() 360 if (cur_mode == new_mode) in role_store() 363 if (new_mode == PHY_MODE_USB_HOST) { /* And is_host must be false */ in role_store()
|
/linux/drivers/media/radio/ |
A D | radio-wl1273.c | 556 static int wl1273_fm_start(struct wl1273_device *radio, int new_mode) in wl1273_fm_start() argument 570 if (new_mode == WL1273_MODE_RX) { in wl1273_fm_start() 592 } else if (new_mode == WL1273_MODE_TX) { in wl1273_fm_start() 633 if (new_mode == WL1273_MODE_RX) { in wl1273_fm_start() 644 } else if (new_mode == WL1273_MODE_TX) { in wl1273_fm_start() 1003 if (new_mode == WL1273_RDS_RESET) { in wl1273_fm_set_rds() 1008 if (core->mode == WL1273_MODE_TX && new_mode == WL1273_RDS_OFF) { in wl1273_fm_set_rds() 1010 } else if (core->mode == WL1273_MODE_TX && new_mode == WL1273_RDS_ON) { in wl1273_fm_set_rds() 1014 } else if (core->mode == WL1273_MODE_RX && new_mode == WL1273_RDS_ON) { in wl1273_fm_set_rds() 1018 __func__, new_mode); in wl1273_fm_set_rds() [all …]
|
/linux/drivers/input/tablet/ |
A D | aiptek.c | 1075 int new_mode = map_str_to_val(pointer_mode_map, buf, count); in store_tabletPointerMode() local 1077 if (new_mode == AIPTEK_INVALID_VALUE) in store_tabletPointerMode() 1080 aiptek->newSetting.pointerMode = new_mode; in store_tabletPointerMode() 1111 int new_mode = map_str_to_val(coordinate_mode_map, buf, count); in store_tabletCoordinateMode() local 1113 if (new_mode == AIPTEK_INVALID_VALUE) in store_tabletCoordinateMode() 1116 aiptek->newSetting.coordinateMode = new_mode; in store_tabletCoordinateMode() 1152 int new_mode = map_str_to_val(tool_mode_map, buf, count); in store_tabletToolMode() local 1154 if (new_mode == AIPTEK_INVALID_VALUE) in store_tabletToolMode() 1157 aiptek->newSetting.toolMode = new_mode; in store_tabletToolMode()
|
/linux/arch/s390/kernel/ |
A D | topology.c | 606 int new_mode; in topology_ctl_handler() local 621 new_mode = topology_get_mode(enabled); in topology_ctl_handler() 622 if (topology_mode != new_mode) { in topology_ctl_handler() 623 topology_mode = new_mode; in topology_ctl_handler()
|
/linux/drivers/platform/x86/ |
A D | asus-wmi.c | 2017 u8 new_mode; in fan_boost_mode_store() local 2021 result = kstrtou8(buf, 10, &new_mode); in fan_boost_mode_store() 2027 if (new_mode == ASUS_FAN_BOOST_MODE_OVERBOOST) { in fan_boost_mode_store() 2037 asus->fan_boost_mode = new_mode; in fan_boost_mode_store() 2112 if (new_mode > ASUS_THROTTLE_THERMAL_POLICY_SILENT) in throttle_thermal_policy_switch_next() 2113 new_mode = ASUS_THROTTLE_THERMAL_POLICY_DEFAULT; in throttle_thermal_policy_switch_next() 2115 asus->throttle_thermal_policy_mode = new_mode; in throttle_thermal_policy_switch_next() 2143 u8 new_mode; in throttle_thermal_policy_store() local 2147 result = kstrtou8(buf, 10, &new_mode); in throttle_thermal_policy_store() 2151 if (new_mode > ASUS_THROTTLE_THERMAL_POLICY_SILENT) in throttle_thermal_policy_store() [all …]
|