/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | subcore.c | 215 static void split_core(int new_mode) in split_core() argument 225 i = (new_mode >> 1) - 1; in split_core() 247 static void cpu_do_split(int new_mode) in cpu_do_split() argument 258 if (new_mode != 1) in cpu_do_split() 259 split_core(new_mode); in cpu_do_split() 298 int cpu, new_mode = *(int *)data; in cpu_update_split_mode() local 301 new_split_mode = new_mode; in cpu_update_split_mode() 312 cpu_do_split(new_mode); in cpu_update_split_mode() 327 subcores_per_core = new_mode; in cpu_update_split_mode() 338 static int set_subcores_per_core(int new_mode) in set_subcores_per_core() argument [all …]
|
/openbmc/linux/arch/x86/boot/ |
H 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()
|
/openbmc/linux/drivers/usb/musb/ |
H 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 …]
|
H A D | mediatek.c | 222 enum phy_mode new_mode; in mtk_musb_set_mode() local 227 new_mode = PHY_MODE_USB_HOST; in mtk_musb_set_mode() 231 new_mode = PHY_MODE_USB_DEVICE; in mtk_musb_set_mode() 235 new_mode = PHY_MODE_USB_OTG; in mtk_musb_set_mode() 243 if (glue->phy_mode == new_mode) in mtk_musb_set_mode()
|
H A D | sunxi.c | 332 enum phy_mode new_mode; in sunxi_musb_set_mode() local 336 new_mode = PHY_MODE_USB_HOST; in sunxi_musb_set_mode() 339 new_mode = PHY_MODE_USB_DEVICE; in sunxi_musb_set_mode() 342 new_mode = PHY_MODE_USB_OTG; in sunxi_musb_set_mode() 350 if (glue->phy_mode == new_mode) in sunxi_musb_set_mode() 366 glue->phy_mode = new_mode; in sunxi_musb_set_mode()
|
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_crtc.c | 118 u32 new_mode; in komeda_crtc_prepare() local 123 new_mode = mdev->dpmode | BIT(master->id); in komeda_crtc_prepare() 124 if (WARN_ON(new_mode == mdev->dpmode)) { in komeda_crtc_prepare() 132 mdev->dpmode, new_mode); in komeda_crtc_prepare() 136 mdev->dpmode = new_mode; in komeda_crtc_prepare() 142 if (new_mode != KOMEDA_MODE_DUAL_DISP) { in komeda_crtc_prepare() 169 u32 new_mode; in komeda_crtc_unprepare() local 176 if (WARN_ON(new_mode == mdev->dpmode)) { in komeda_crtc_unprepare() 184 mdev->dpmode, new_mode); in komeda_crtc_unprepare() 188 mdev->dpmode = new_mode; in komeda_crtc_unprepare() [all …]
|
/openbmc/linux/drivers/mfd/ |
H 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()
|
/openbmc/openbmc/poky/bitbake/lib/hashserv/ |
H A D | client.py | 53 async def _set_mode(self, new_mode): argument 67 if new_mode == self.mode: 70 self.logger.debug("Transitioning mode %s -> %s", self.mode, new_mode) 82 if new_mode == self.MODE_GET_STREAM: 84 elif new_mode == self.MODE_EXIST_STREAM: 86 elif new_mode != self.MODE_NORMAL: 89 self.mode = new_mode
|
/openbmc/linux/drivers/regulator/ |
H 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()
|
H 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()
|
/openbmc/linux/drivers/phy/rockchip/ |
H A D | phy-rockchip-typec.c | 870 int timeout, new_mode, ret = 0; in rockchip_usb3_phy_power_on() local 875 new_mode = tcphy_get_mode(tcphy); in rockchip_usb3_phy_power_on() 876 if (new_mode < 0) { in rockchip_usb3_phy_power_on() 877 ret = new_mode; in rockchip_usb3_phy_power_on() 887 if (tcphy->mode == new_mode) in rockchip_usb3_phy_power_on() 948 int new_mode, ret = 0; in rockchip_dp_phy_power_on() local 953 new_mode = tcphy_get_mode(tcphy); in rockchip_dp_phy_power_on() 954 if (new_mode < 0) { in rockchip_dp_phy_power_on() 955 ret = new_mode; in rockchip_dp_phy_power_on() 959 if (!(new_mode & MODE_DFP_DP)) { in rockchip_dp_phy_power_on() [all …]
|
/openbmc/linux/fs/ceph/ |
H A D | acl.c | 97 umode_t new_mode = inode->i_mode, old_mode = inode->i_mode; in ceph_set_acl() local 109 &new_mode, &acl); in ceph_set_acl() 139 if (new_mode != old_mode) { in ceph_set_acl() 141 newattrs.ia_mode = new_mode; in ceph_set_acl() 150 if (new_mode != old_mode) { in ceph_set_acl()
|
/openbmc/linux/drivers/media/i2c/ |
H A D | ov7251.c | 1235 __crop->width = new_mode->width; in ov7251_set_format() 1236 __crop->height = new_mode->height; in ov7251_set_format() 1240 1, new_mode->exposure_max, in ov7251_set_format() 1241 1, new_mode->exposure_def); in ov7251_set_format() 1246 new_mode->exposure_def); in ov7251_set_format() 1255 vblank_def = new_mode->vts - new_mode->height; in ov7251_set_format() 1262 ov7251->current_mode = new_mode; in ov7251_set_format() 1410 1, new_mode->exposure_max, in ov7251_set_frame_interval() 1411 1, new_mode->exposure_def); in ov7251_set_frame_interval() 1416 new_mode->exposure_def); in ov7251_set_frame_interval() [all …]
|
H A D | ov5645.c | 896 const struct ov5645_mode_info *new_mode; in ov5645_set_format() local 902 new_mode = v4l2_find_nearest_size(ov5645_mode_info_data, in ov5645_set_format() 907 __crop->width = new_mode->width; in ov5645_set_format() 908 __crop->height = new_mode->height; in ov5645_set_format() 912 new_mode->pixel_clock); in ov5645_set_format() 917 new_mode->link_freq); in ov5645_set_format() 921 ov5645->current_mode = new_mode; in ov5645_set_format()
|
/openbmc/linux/drivers/clk/sunxi-ng/ |
H 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()
|
/openbmc/linux/drivers/firmware/efi/libstub/ |
H 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()
|
/openbmc/linux/drivers/net/ethernet/sfc/falcon/ |
H 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()
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H 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() 590 u32 new_mode = PRESTERA_LINK_MODE_MAX; in prestera_port_link_mode_set() local 610 new_mode = mode; in prestera_port_link_mode_set() 614 if (new_mode == PRESTERA_LINK_MODE_MAX) in prestera_port_link_mode_set() 618 false, new_mode, 0, in prestera_port_link_mode_set() 625 port->cfg_phy.mode = new_mode; in prestera_port_link_mode_set()
|
/openbmc/linux/include/linux/clk/ |
H A D | sunxi-ng.h | 9 int sunxi_ccu_set_mmc_timing_mode(struct clk *clk, bool new_mode);
|
/openbmc/linux/drivers/phy/renesas/ |
H A D | phy-rcar-gen3-usb2.c | 341 enum phy_mode cur_mode, new_mode; in role_store() local 347 new_mode = PHY_MODE_USB_HOST; in role_store() 349 new_mode = PHY_MODE_USB_DEVICE; in role_store() 358 if (cur_mode == new_mode) in role_store() 361 if (new_mode == PHY_MODE_USB_HOST) { /* And is_host must be false */ in role_store()
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | carminefb.c | 78 u32 new_mode; member 418 par->new_mode = ret; in carmine_set_par() 419 if (par->cur_mode != par->new_mode) { in carmine_set_par() 421 par->cur_mode = par->new_mode; in carmine_set_par() 422 par->res = &car_modes[par->new_mode]; in carmine_set_par() 569 par->cur_mode = par->new_mode = ~0; in alloc_carmine_fb()
|
/openbmc/linux/drivers/phy/allwinner/ |
H A D | phy-sun4i-usb.c | 517 int new_mode; in sun4i_usb_phy_set_mode() local 527 new_mode = USB_DR_MODE_HOST; in sun4i_usb_phy_set_mode() 530 new_mode = USB_DR_MODE_PERIPHERAL; in sun4i_usb_phy_set_mode() 533 new_mode = USB_DR_MODE_OTG; in sun4i_usb_phy_set_mode() 539 if (new_mode != data->dr_mode) { in sun4i_usb_phy_set_mode() 540 dev_info(&_phy->dev, "Changing dr_mode to %d\n", new_mode); in sun4i_usb_phy_set_mode() 541 data->dr_mode = new_mode; in sun4i_usb_phy_set_mode()
|
/openbmc/linux/drivers/media/radio/ |
H 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 …]
|
/openbmc/linux/arch/s390/kernel/ |
H A D | topology.c | 607 int new_mode; in topology_ctl_handler() local 622 new_mode = topology_get_mode(enabled); in topology_ctl_handler() 623 if (topology_mode != new_mode) { in topology_ctl_handler() 624 topology_mode = new_mode; in topology_ctl_handler()
|
/openbmc/linux/drivers/input/tablet/ |
H A D | aiptek.c | 1074 int new_mode = map_str_to_val(pointer_mode_map, buf, count); in store_tabletPointerMode() local 1076 if (new_mode == AIPTEK_INVALID_VALUE) in store_tabletPointerMode() 1079 aiptek->newSetting.pointerMode = new_mode; in store_tabletPointerMode() 1110 int new_mode = map_str_to_val(coordinate_mode_map, buf, count); in store_tabletCoordinateMode() local 1112 if (new_mode == AIPTEK_INVALID_VALUE) in store_tabletCoordinateMode() 1115 aiptek->newSetting.coordinateMode = new_mode; in store_tabletCoordinateMode() 1151 int new_mode = map_str_to_val(tool_mode_map, buf, count); in store_tabletToolMode() local 1153 if (new_mode == AIPTEK_INVALID_VALUE) in store_tabletToolMode() 1156 aiptek->newSetting.toolMode = new_mode; in store_tabletToolMode()
|