/Linux-v5.10/arch/powerpc/platforms/powernv/ |
D | subcore.c | 203 static void split_core(int new_mode) in split_core() argument 213 i = (new_mode >> 1) - 1; in split_core() 235 static void cpu_do_split(int new_mode) in cpu_do_split() argument 246 if (new_mode != 1) in cpu_do_split() 247 split_core(new_mode); in cpu_do_split() 286 int cpu, new_mode = *(int *)data; in cpu_update_split_mode() local 289 new_split_mode = new_mode; in cpu_update_split_mode() 300 cpu_do_split(new_mode); in cpu_update_split_mode() 315 subcores_per_core = new_mode; in cpu_update_split_mode() 326 static int set_subcores_per_core(int new_mode) in set_subcores_per_core() argument [all …]
|
/Linux-v5.10/arch/x86/boot/ |
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-v5.10/drivers/usb/musb/ |
D | musb_cppi41.c | 345 u32 new_mode; in cppi41_set_dma_mode() local 353 new_mode = update_ep_mode(port, mode, old_mode); in cppi41_set_dma_mode() 355 if (new_mode == old_mode) in cppi41_set_dma_mode() 358 controller->tx_mode = new_mode; in cppi41_set_dma_mode() 359 musb_writel(musb->ctrl_base, USB_CTRL_TX_MODE, new_mode); in cppi41_set_dma_mode() 361 controller->rx_mode = new_mode; in cppi41_set_dma_mode() 362 musb_writel(musb->ctrl_base, USB_CTRL_RX_MODE, new_mode); in cppi41_set_dma_mode() 373 u32 new_mode; in da8xx_set_dma_mode() local 382 new_mode = old_mode & ~(3 << shift); in da8xx_set_dma_mode() 383 new_mode |= mode << shift; in da8xx_set_dma_mode() [all …]
|
D | mediatek.c | 273 enum phy_mode new_mode; in mtk_musb_set_mode() local 278 new_mode = PHY_MODE_USB_HOST; in mtk_musb_set_mode() 282 new_mode = PHY_MODE_USB_DEVICE; in mtk_musb_set_mode() 286 new_mode = PHY_MODE_USB_OTG; in mtk_musb_set_mode() 294 if (glue->phy_mode == new_mode) in mtk_musb_set_mode()
|
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-v5.10/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_crtc.c | 115 u32 new_mode; in komeda_crtc_prepare() local 120 new_mode = mdev->dpmode | BIT(master->id); in komeda_crtc_prepare() 121 if (WARN_ON(new_mode == mdev->dpmode)) { in komeda_crtc_prepare() 126 err = mdev->funcs->change_opmode(mdev, new_mode); in komeda_crtc_prepare() 129 mdev->dpmode, new_mode); in komeda_crtc_prepare() 133 mdev->dpmode = new_mode; in komeda_crtc_prepare() 139 if (new_mode != KOMEDA_MODE_DUAL_DISP) { in komeda_crtc_prepare() 166 u32 new_mode; in komeda_crtc_unprepare() local 171 new_mode = mdev->dpmode & (~BIT(master->id)); in komeda_crtc_unprepare() 173 if (WARN_ON(new_mode == mdev->dpmode)) { in komeda_crtc_unprepare() [all …]
|
/Linux-v5.10/drivers/mfd/ |
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-v5.10/drivers/media/i2c/ |
D | ov7251.c | 1036 const struct ov7251_mode_info *new_mode; in ov7251_set_format() local 1043 new_mode = v4l2_find_nearest_size(ov7251_mode_info_data, in ov7251_set_format() 1048 __crop->width = new_mode->width; in ov7251_set_format() 1049 __crop->height = new_mode->height; in ov7251_set_format() 1053 new_mode->pixel_clock); in ov7251_set_format() 1058 new_mode->link_freq); in ov7251_set_format() 1063 1, new_mode->exposure_max, in ov7251_set_format() 1064 1, new_mode->exposure_def); in ov7251_set_format() 1069 new_mode->exposure_def); in ov7251_set_format() 1077 ov7251->current_mode = new_mode; in ov7251_set_format() [all …]
|
D | ov5645.c | 917 const struct ov5645_mode_info *new_mode; in ov5645_set_format() local 923 new_mode = v4l2_find_nearest_size(ov5645_mode_info_data, in ov5645_set_format() 928 __crop->width = new_mode->width; in ov5645_set_format() 929 __crop->height = new_mode->height; in ov5645_set_format() 933 new_mode->pixel_clock); in ov5645_set_format() 938 new_mode->link_freq); in ov5645_set_format() 942 ov5645->current_mode = new_mode; in ov5645_set_format()
|
/Linux-v5.10/drivers/regulator/ |
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()
|
D | hi6421-regulator.c | 414 u32 new_mode; in hi6421_regulator_ldo_set_mode() local 418 new_mode = 0; in hi6421_regulator_ldo_set_mode() 421 new_mode = info->mode_mask; in hi6421_regulator_ldo_set_mode() 429 info->mode_mask, new_mode); in hi6421_regulator_ldo_set_mode() 438 u32 new_mode; in hi6421_regulator_buck_set_mode() local 442 new_mode = 0; in hi6421_regulator_buck_set_mode() 445 new_mode = info->mode_mask; in hi6421_regulator_buck_set_mode() 453 info->mode_mask, new_mode); in hi6421_regulator_buck_set_mode()
|
/Linux-v5.10/include/linux/clk/ |
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-v5.10/fs/ceph/ |
D | acl.c | 92 umode_t new_mode = inode->i_mode, old_mode = inode->i_mode; in ceph_set_acl() local 103 ret = posix_acl_update_mode(inode, &new_mode, &acl); in ceph_set_acl() 133 if (new_mode != old_mode) { in ceph_set_acl() 135 newattrs.ia_mode = new_mode; in ceph_set_acl() 144 if (new_mode != old_mode) { in ceph_set_acl()
|
/Linux-v5.10/drivers/phy/rockchip/ |
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() 883 if (!(new_mode & (MODE_DFP_USB | MODE_UFP_USB))) { in rockchip_usb3_phy_power_on() 888 if (tcphy->mode == new_mode) in rockchip_usb3_phy_power_on() 892 ret = tcphy_phy_init(tcphy, new_mode); in rockchip_usb3_phy_power_on() 901 tcphy->mode |= new_mode & (MODE_DFP_USB | MODE_UFP_USB); 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() [all …]
|
/Linux-v5.10/drivers/gpu/drm/omapdrm/ |
D | omap_connector.c | 92 struct drm_display_mode new_mode = {}; in omap_connector_mode_valid() local 96 &new_mode); in omap_connector_mode_valid() 101 if (drm_mode_vrefresh(mode) != drm_mode_vrefresh(&new_mode)) in omap_connector_mode_valid()
|
/Linux-v5.10/drivers/clk/sunxi-ng/ |
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-v5.10/drivers/firmware/efi/libstub/ |
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-v5.10/drivers/net/ethernet/sfc/falcon/ |
D | falcon_boards.c | 369 enum ef4_phy_mode old_mode, new_mode; in set_phy_flash_cfg() local 375 new_mode = old_mode & ~PHY_MODE_SPECIAL; in set_phy_flash_cfg() 377 new_mode = PHY_MODE_SPECIAL; in set_phy_flash_cfg() 378 if (!((old_mode ^ new_mode) & PHY_MODE_SPECIAL)) { in set_phy_flash_cfg() 385 efx->phy_mode = new_mode; in set_phy_flash_cfg() 386 if (new_mode & PHY_MODE_SPECIAL) in set_phy_flash_cfg() 391 if (!(new_mode & PHY_MODE_SPECIAL)) in set_phy_flash_cfg()
|
/Linux-v5.10/drivers/net/ethernet/marvell/prestera/ |
D | prestera_ethtool.c | 324 u32 new_mode = PRESTERA_LINK_MODE_MAX; in prestera_port_type_set() local 347 new_mode = mode; in prestera_port_type_set() 351 if (new_mode < PRESTERA_LINK_MODE_MAX) in prestera_port_type_set() 352 err = prestera_hw_port_link_mode_set(port, new_mode); in prestera_port_type_set() 569 u32 new_mode = PRESTERA_LINK_MODE_MAX; in prestera_port_link_mode_set() local 586 new_mode = mode; in prestera_port_link_mode_set() 590 if (new_mode == PRESTERA_LINK_MODE_MAX) in prestera_port_link_mode_set() 593 return prestera_hw_port_link_mode_set(port, new_mode); in prestera_port_link_mode_set()
|
/Linux-v5.10/drivers/phy/allwinner/ |
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-v5.10/drivers/phy/renesas/ |
D | phy-rcar-gen3-usb2.c | 320 enum phy_mode cur_mode, new_mode; in role_store() local 326 new_mode = PHY_MODE_USB_HOST; in role_store() 328 new_mode = PHY_MODE_USB_DEVICE; in role_store() 337 if (cur_mode == new_mode) in role_store() 340 if (new_mode == PHY_MODE_USB_HOST) { /* And is_host must be false */ in role_store()
|
/Linux-v5.10/drivers/video/fbdev/ |
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-v5.10/drivers/media/radio/ |
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() 994 static int wl1273_fm_set_rds(struct wl1273_device *radio, unsigned int new_mode) in wl1273_fm_set_rds() argument 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() 1012 } else if (core->mode == WL1273_MODE_RX && new_mode == WL1273_RDS_OFF) { in wl1273_fm_set_rds() [all …]
|
/Linux-v5.10/drivers/input/tablet/ |
D | aiptek.c | 1076 int new_mode = map_str_to_val(pointer_mode_map, buf, count); in store_tabletPointerMode() local 1078 if (new_mode == AIPTEK_INVALID_VALUE) in store_tabletPointerMode() 1081 aiptek->newSetting.pointerMode = new_mode; in store_tabletPointerMode() 1113 int new_mode = map_str_to_val(coordinate_mode_map, buf, count); in store_tabletCoordinateMode() local 1115 if (new_mode == AIPTEK_INVALID_VALUE) in store_tabletCoordinateMode() 1118 aiptek->newSetting.coordinateMode = new_mode; in store_tabletCoordinateMode() 1155 int new_mode = map_str_to_val(tool_mode_map, buf, count); in store_tabletToolMode() local 1157 if (new_mode == AIPTEK_INVALID_VALUE) in store_tabletToolMode() 1160 aiptek->newSetting.toolMode = new_mode; in store_tabletToolMode()
|
/Linux-v5.10/arch/s390/kernel/ |
D | topology.c | 600 int new_mode; in topology_ctl_handler() local 615 new_mode = topology_get_mode(enabled); in topology_ctl_handler() 616 if (topology_mode != new_mode) { in topology_ctl_handler() 617 topology_mode = new_mode; in topology_ctl_handler()
|