Home
last modified time | relevance | path

Searched refs:new_mode (Results 1 – 25 of 70) sorted by relevance

123

/linux-6.15/arch/powerpc/platforms/powernv/
H A Dsubcore.c215 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 …]
/linux-6.15/drivers/usb/musb/
H A Dmusb_cppi41.c345 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 Dmediatek.c222 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 Dsunxi.c332 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()
/linux-6.15/arch/x86/boot/
H A Dvideo-bios.c32 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-6.15/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_crtc.c118 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 …]
/linux-6.15/drivers/mfd/
H A Dwl1273-core.c80 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-6.15/drivers/gpu/drm/xe/
H A Dxe_hw_engine_group.c290 enum xe_hw_engine_group_execution_mode new_mode; in switch_mode() local
296 new_mode = EXEC_MODE_DMA_FENCE; in switch_mode()
300 new_mode = EXEC_MODE_LR; in switch_mode()
308 group->cur_mode = new_mode; in switch_mode()
322 enum xe_hw_engine_group_execution_mode new_mode, in xe_hw_engine_group_get_mode() argument
333 if (new_mode != group->cur_mode) { in xe_hw_engine_group_get_mode()
339 if (new_mode != group->cur_mode) { in xe_hw_engine_group_get_mode()
H A Dxe_hw_engine_group.h21 enum xe_hw_engine_group_execution_mode new_mode,
/linux-6.15/drivers/regulator/
H A Dhi6421v530-regulator.c126 unsigned int new_mode; in hi6421v530_regulator_ldo_set_mode() local
131 new_mode = 0; in hi6421v530_regulator_ldo_set_mode()
134 new_mode = info->mode_mask; in hi6421v530_regulator_ldo_set_mode()
141 info->mode_mask, new_mode); in hi6421v530_regulator_ldo_set_mode()
H A Dhi6421-regulator.c415 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-6.15/drivers/phy/rockchip/
H A Dphy-rockchip-typec.c870 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 …]
/linux-6.15/fs/ceph/
H A Dacl.c99 umode_t new_mode = inode->i_mode, old_mode = inode->i_mode; in ceph_set_acl() local
111 &new_mode, &acl); in ceph_set_acl()
141 if (new_mode != old_mode) { in ceph_set_acl()
143 newattrs.ia_mode = new_mode; in ceph_set_acl()
152 if (new_mode != old_mode) { in ceph_set_acl()
/linux-6.15/drivers/media/i2c/
H A Dov7251.c1237 __crop->width = new_mode->width; in ov7251_set_format()
1238 __crop->height = new_mode->height; in ov7251_set_format()
1242 1, new_mode->exposure_max, in ov7251_set_format()
1243 1, new_mode->exposure_def); in ov7251_set_format()
1248 new_mode->exposure_def); in ov7251_set_format()
1257 vblank_def = new_mode->vts - new_mode->height; in ov7251_set_format()
1264 ov7251->current_mode = new_mode; in ov7251_set_format()
1430 1, new_mode->exposure_max, in ov7251_set_frame_interval()
1431 1, new_mode->exposure_def); in ov7251_set_frame_interval()
1436 new_mode->exposure_def); in ov7251_set_frame_interval()
[all …]
H A Dov5645.c858 const struct ov5645_mode_info *new_mode; in ov5645_set_format() local
862 new_mode = v4l2_find_nearest_size(ov5645_mode_info_data, in ov5645_set_format()
867 __crop->width = new_mode->width; in ov5645_set_format()
868 __crop->height = new_mode->height; in ov5645_set_format()
872 new_mode->pixel_clock); in ov5645_set_format()
877 new_mode->link_freq); in ov5645_set_format()
881 ov5645->current_mode = new_mode; in ov5645_set_format()
/linux-6.15/tools/testing/selftests/arm64/gcs/
H A Dbasic-gcs.c31 unsigned long new_mode; in gcs_set_status() local
43 &new_mode, 0, 0, 0); in gcs_set_status()
45 if (new_mode != mode) { in gcs_set_status()
47 new_mode, mode); in gcs_set_status()
/linux-6.15/drivers/firmware/efi/libstub/
H A Dgop.c329 u32 cur_mode, new_mode; in set_mode() local
333 new_mode = choose_mode_modenum(gop); in set_mode()
336 new_mode = choose_mode_res(gop); in set_mode()
339 new_mode = choose_mode_auto(gop); in set_mode()
342 new_mode = choose_mode_list(gop); in set_mode()
351 if (new_mode == cur_mode) in set_mode()
354 if (efi_call_proto(gop, set_mode, new_mode) != EFI_SUCCESS) in set_mode()
/linux-6.15/drivers/clk/sunxi-ng/
H A Dccu_mmc_timing.c20 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-6.15/drivers/net/ethernet/sfc/falcon/
H A Dfalcon_boards.c369 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-6.15/include/linux/
H A Dcoresight.h647 enum cs_mode new_mode) in coresight_take_mode() argument
649 return local_cmpxchg(&csdev->mode, CS_MODE_DISABLED, new_mode) == in coresight_take_mode()
659 enum cs_mode new_mode) in coresight_set_mode() argument
668 WARN(new_mode != CS_MODE_DISABLED && current_mode != CS_MODE_DISABLED && in coresight_set_mode()
669 current_mode != new_mode, "Device already in use\n"); in coresight_set_mode()
671 local_set(&csdev->mode, new_mode); in coresight_set_mode()
/linux-6.15/drivers/net/ethernet/marvell/prestera/
H A Dprestera_ethtool.c324 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()
/linux-6.15/include/linux/clk/
H A Dsunxi-ng.h9 int sunxi_ccu_set_mmc_timing_mode(struct clk *clk, bool new_mode);
/linux-6.15/drivers/video/fbdev/
H A Dcarminefb.c78 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()
/linux-6.15/drivers/phy/allwinner/
H A Dphy-sun4i-usb.c516 int new_mode; in sun4i_usb_phy_set_mode() local
526 new_mode = USB_DR_MODE_HOST; in sun4i_usb_phy_set_mode()
529 new_mode = USB_DR_MODE_PERIPHERAL; in sun4i_usb_phy_set_mode()
532 new_mode = USB_DR_MODE_OTG; in sun4i_usb_phy_set_mode()
538 if (new_mode != data->dr_mode) { in sun4i_usb_phy_set_mode()
539 dev_info(&_phy->dev, "Changing dr_mode to %d\n", new_mode); in sun4i_usb_phy_set_mode()
540 data->dr_mode = new_mode; in sun4i_usb_phy_set_mode()
/linux-6.15/drivers/media/radio/
H A Dradio-wl1273.c556 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 …]

123