/openbmc/linux/drivers/hid/ |
H A D | hid-saitek.c | 33 int mode; member 102 mode = 0; in saitek_raw_event() 104 mode = 1; in saitek_raw_event() 106 mode = 2; in saitek_raw_event() 111 if (mode != ssc->mode) { in saitek_raw_event() 117 ssc->mode = mode; in saitek_raw_event() 124 mode = 0; in saitek_raw_event() 126 mode = 1; in saitek_raw_event() 128 mode = 2; in saitek_raw_event() 134 if (mode != ssc->mode) { in saitek_raw_event() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/power/reset/ |
H A D | reboot-mode.yaml | 7 title: Generic reboot mode core map 20 as mode-xxx = <magic> (xxx is mode name, magic should be a non-zero value). 24 - recovery: Android Recovery mode, it is a mode to format the device or update a new image. 26 - loader: A bootloader mode, it's a mode used to download image on Rockchip platform, 30 mode-normal: 36 "^mode-.*$": 43 reboot-mode { 44 mode-normal = <0>; 45 mode-recovery = <1>; 46 mode-bootloader = <2>; [all …]
|
H A D | nvmem-reboot-mode.yaml | 7 title: Generic NVMEM reboot mode 13 This driver gets the reboot mode magic value from the reboot-mode driver 19 const: nvmem-reboot-mode 29 - const: reboot-mode 32 "^mode-.+": 34 description: Vendor-specific mode value written to the mode register 45 reboot-mode { 46 compatible = "nvmem-reboot-mode"; 48 nvmem-cell-names = "reboot-mode"; 49 mode-recovery = <0x01>; [all …]
|
H A D | syscon-reboot-mode.yaml | 7 title: Generic SYSCON reboot mode driver 13 This driver gets reboot mode magic value from reboot-mode driver 22 const: syscon-reboot-mode 33 "^mode-.+": 35 description: Vendor-specific mode value written to the mode register 47 reboot-mode { 48 compatible = "syscon-reboot-mode"; 50 mode-normal = <BOOT_NORMAL>; 51 mode-recovery = <BOOT_RECOVERY>; 52 mode-bootloader = <BOOT_FASTBOOT>; [all …]
|
/openbmc/linux/drivers/net/ethernet/ibm/emac/ |
H A D | zmii.c | 50 mode == PHY_INTERFACE_MODE_RMII || in zmii_valid_mode() 51 mode == PHY_INTERFACE_MODE_SMII || in zmii_valid_mode() 52 mode == PHY_INTERFACE_MODE_NA; in zmii_valid_mode() 57 switch (mode) { in zmii_mode_name() 71 switch (mode) { in zmii_mode_mask() 84 phy_interface_t *mode) in zmii_attach() argument 91 if (!zmii_valid_mode(*mode)) { in zmii_attach() 120 dev->mode = *mode; in zmii_attach() 124 zmii_mode_name(dev->mode)); in zmii_attach() 127 if (*mode != PHY_INTERFACE_MODE_NA && *mode != dev->mode) { in zmii_attach() [all …]
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | modedb.c | 553 mode->name ? mode->name : "noname", in fb_try_mode() 554 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode() 860 mode->name = NULL; in fb_var_to_videomode() 873 mode->refresh = 0; in fb_var_to_videomode() 972 mode = &modelist->mode; in fb_find_best_mode() 974 if (mode->xres >= var->xres && mode->yres >= var->yres) { in fb_find_best_mode() 979 best = mode; in fb_find_best_mode() 982 best = mode; in fb_find_best_mode() 1043 m = &modelist->mode; in fb_match_mode() 1065 m = &modelist->mode; in fb_add_videomode() [all …]
|
/openbmc/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-spi.h | 49 int (*reset_cb) (int interface, cvmx_spi_mode_t mode); 52 int (*calendar_setup_cb) (int interface, cvmx_spi_mode_t mode, 56 int (*clock_detect_cb) (int interface, cvmx_spi_mode_t mode, 60 int (*training_cb) (int interface, cvmx_spi_mode_t mode, int timeout); 63 int (*calendar_sync_cb) (int interface, cvmx_spi_mode_t mode, 67 int (*interface_up_cb) (int interface, cvmx_spi_mode_t mode); 97 extern int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, 113 extern int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, 183 extern int cvmx_spi_reset_cb(int interface, cvmx_spi_mode_t mode); 217 extern int cvmx_spi_clock_detect_cb(int interface, cvmx_spi_mode_t mode, [all …]
|
/openbmc/linux/include/linux/ |
H A D | debugfs.h | 75 struct dentry *debugfs_create_file(const char *name, umode_t mode, 82 void debugfs_create_file_size(const char *name, umode_t mode, 135 void debugfs_create_size_t(const char *name, umode_t mode, 137 void debugfs_create_atomic_t(const char *name, umode_t mode, 141 void debugfs_create_str(const char *name, umode_t mode, 144 struct dentry *debugfs_create_blob(const char *name, umode_t mode, 148 void debugfs_create_regset32(const char *name, umode_t mode, 155 void debugfs_create_u32_array(const char *name, umode_t mode, 198 umode_t mode, struct dentry *parent, 399 debugfs_create_x32(name, mode, parent, (u32 *)value); in debugfs_create_xul() [all …]
|
H A D | wait_bit.h | 24 typedef int wait_bit_action_f(struct wait_bit_key *key, int mode); 49 extern int bit_wait(struct wait_bit_key *key, int mode); 50 extern int bit_wait_io(struct wait_bit_key *key, int mode); 71 wait_on_bit(unsigned long *word, int bit, unsigned mode) in wait_on_bit() argument 78 mode); in wait_on_bit() 96 wait_on_bit_io(unsigned long *word, int bit, unsigned mode) in wait_on_bit_io() argument 103 mode); in wait_on_bit_io() 130 mode, timeout); in wait_on_bit_timeout() 151 unsigned mode) in wait_on_bit_action() argument 156 return out_of_line_wait_on_bit(word, bit, action, mode); in wait_on_bit_action() [all …]
|
H A D | proc_fs.h | 95 #define proc_create_seq_data(name, mode, parent, ops, data) \ argument 96 proc_create_seq_private(name, mode, parent, ops, 0, data) 97 #define proc_create_seq(name, mode, parent, ops) \ argument 98 proc_create_seq_private(name, mode, parent, ops, 0, NULL) 102 #define proc_create_single(name, mode, parent, show) \ argument 103 proc_create_single_data(name, mode, parent, show, NULL) 131 #define proc_create_net(name, mode, parent, ops, state_size) \ argument 132 proc_create_net_data(name, mode, parent, ops, state_size, NULL) 187 umode_t mode, struct proc_dir_entry *parent) { return NULL; } in proc_mkdir_mode() argument 190 #define proc_create_seq(name, mode, parent, ops) ({NULL;}) argument [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_probe_helper.c | 120 mode); in drm_mode_validate_pipeline() 172 if (mode == NULL) in drm_helper_probe_add_cmdline_mode() 464 mode->status = drm_mode_validate_driver(dev, mode); in __drm_helper_update_and_validate() 468 mode->status = drm_mode_validate_size(mode, maxX, maxY); in __drm_helper_update_and_validate() 472 mode->status = drm_mode_validate_flag(mode, mode_flags); in __drm_helper_update_and_validate() 477 &mode->status); in __drm_helper_update_and_validate() 491 mode->status = drm_mode_validate_ycbcr420(mode, connector); in __drm_helper_update_and_validate() 1178 if (!mode) { in drm_connector_helper_get_modes_fixed() 1190 if (mode->width_mm) in drm_connector_helper_get_modes_fixed() 1192 if (mode->height_mm) in drm_connector_helper_get_modes_fixed() [all …]
|
/openbmc/u-boot/drivers/video/sunxi/ |
H A D | sunxi_display.c | 382 writel(SUNXI_DE_FE_HEIGHT(mode->yres) | SUNXI_DE_FE_WIDTH(mode->xres), in sunxi_frontend_mode_set() 384 writel(SUNXI_DE_FE_HEIGHT(mode->yres) | SUNXI_DE_FE_WIDTH(mode->xres), in sunxi_frontend_mode_set() 727 if (mode->xres * 100 / mode->yres < 156) 782 writel(SUNXI_HDMI_Y(mode->yres) | SUNXI_HDMI_X(mode->xres), 785 x = mode->hsync_len + mode->left_margin; 786 y = mode->vsync_len + mode->upper_margin; 1128 mode = &custom; 1135 mode = &custom; 1165 mode = &custom; 1200 (mode->xres * mode->yres * 4 + 0xfff) & ~0xfff; [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | wl1273.c | 24 enum wl1273_mode mode; member 34 u16 mode; in snd_wl1273_fm_set_i2s_mode() local 45 mode |= WL1273_IS2_RATE_48K; in snd_wl1273_fm_set_i2s_mode() 51 mode |= WL1273_IS2_RATE_32K; in snd_wl1273_fm_set_i2s_mode() 57 mode |= WL1273_IS2_RATE_16K; in snd_wl1273_fm_set_i2s_mode() 60 mode |= WL1273_IS2_RATE_12K; in snd_wl1273_fm_set_i2s_mode() 66 mode |= WL1273_IS2_RATE_8K; in snd_wl1273_fm_set_i2s_mode() 76 mode |= WL1273_IS2_WIDTH_32; in snd_wl1273_fm_set_i2s_mode() 117 core->i2s_mode = mode; in snd_wl1273_fm_set_i2s_mode() 293 switch (wl1273->mode) { in wl1273_startup() [all …]
|
/openbmc/linux/drivers/nfc/s3fwrn5/ |
H A D | phy_common.c | 29 bool s3fwrn5_phy_power_ctrl(struct phy_common *phy, enum s3fwrn5_mode mode) in s3fwrn5_phy_power_ctrl() argument 31 if (phy->mode == mode) in s3fwrn5_phy_power_ctrl() 34 phy->mode = mode; in s3fwrn5_phy_power_ctrl() 38 if (mode == S3FWRN5_MODE_FW) in s3fwrn5_phy_power_ctrl() 41 if (mode != S3FWRN5_MODE_COLD) { in s3fwrn5_phy_power_ctrl() 51 void s3fwrn5_phy_set_mode(void *phy_id, enum s3fwrn5_mode mode) in s3fwrn5_phy_set_mode() argument 57 s3fwrn5_phy_power_ctrl(phy, mode); in s3fwrn5_phy_set_mode() 66 enum s3fwrn5_mode mode; in s3fwrn5_phy_get_mode() local 70 mode = phy->mode; in s3fwrn5_phy_get_mode() 74 return mode; in s3fwrn5_phy_get_mode()
|
/openbmc/linux/drivers/gpu/drm/sti/ |
H A D | sti_vtg.c | 168 u32 xstop = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); in vtg_set_output_window() 169 u32 ystop = sti_vtg_get_line_number(*mode, mode->vdisplay - 1); in vtg_set_output_window() 193 clocksperline = mode->htotal; in vtg_set_hsync_vsync_pos() 197 stop = mode->hsync_end - mode->hsync_start; in vtg_set_hsync_vsync_pos() 218 fallsync_top += mode->vsync_end - mode->vsync_start; in vtg_set_hsync_vsync_pos() 223 risesync_top = mode->vtotal; in vtg_set_hsync_vsync_pos() 224 fallsync_top = mode->vsync_end - mode->vsync_start; in vtg_set_hsync_vsync_pos() 241 const struct drm_display_mode *mode) in vtg_set_mode() argument 293 const struct drm_display_mode *mode) in sti_vtg_set_config() argument 317 u32 start_line = mode.vtotal - mode.vsync_start + 1; in sti_vtg_get_line_number() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_agp.c | 192 rdev->agp->mode = mode.mode; in radeon_agp_head_enable() 193 agp_enable(rdev->agp->bridge, mode.mode); in radeon_agp_head_enable() 208 info->mode = kern->mode; in radeon_agp_head_info() 253 mode.mode = info.mode; in radeon_agp_init() 260 agp_status = mode.mode; in radeon_agp_init() 303 mode.mode &= ~RADEON_AGP_MODE_MASK; in radeon_agp_init() 307 mode.mode |= RADEON_AGPv3_8X_MODE; in radeon_agp_init() 311 mode.mode |= RADEON_AGPv3_4X_MODE; in radeon_agp_init() 317 mode.mode |= RADEON_AGP_4X_MODE; in radeon_agp_init() 320 mode.mode |= RADEON_AGP_2X_MODE; in radeon_agp_init() [all …]
|
/openbmc/linux/arch/s390/boot/ |
H A D | vmem.c | 52 pgtable_populate(start, end, mode); in kasan_populate() 126 if (mode == POPULATE_KASAN_ZERO_SHADOW && in kasan_pgd_populate_zero_shadow() 253 switch (mode) { in _pa() 284 enum populate_mode mode) in pgtable_pte_populate() argument 302 if (mode == POPULATE_DIRECT) in pgtable_pte_populate() 307 enum populate_mode mode) in pgtable_pmd_populate() argument 335 if (mode == POPULATE_DIRECT) in pgtable_pmd_populate() 340 enum populate_mode mode) in pgtable_pud_populate() argument 368 if (mode == POPULATE_DIRECT) in pgtable_pud_populate() 373 enum populate_mode mode) in pgtable_p4d_populate() argument [all …]
|
/openbmc/u-boot/drivers/video/ |
H A D | videomodes.c | 162 int mode; in video_get_params() local 182 mode = 0; /* default */ in video_get_params() 185 GET_OPTION ("mode:", mode) in video_get_params() 191 if (mode >= RES_MODES_COUNT) in video_get_params() 192 mode = 0; in video_get_params() 195 bpp = 24 - ((mode % 3) * 8); in video_get_params() 413 mode->pixclock = 1000000000L / mode->pixclock_khz; in video_edid_dtd_to_ctfb_res_modes() 418 (mode->right_margin + mode->hsync_len); in video_edid_dtd_to_ctfb_res_modes() 422 mode->left_margin = margin; in video_edid_dtd_to_ctfb_res_modes() 427 (mode->lower_margin + mode->vsync_len); in video_edid_dtd_to_ctfb_res_modes() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/ |
H A D | mdp5_encoder.c | 31 struct drm_display_mode *mode, in mdp5_vid_encoder_mode_set() argument 45 mode = adjusted_mode; in mdp5_vid_encoder_mode_set() 84 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp5_vid_encoder_mode_set() 85 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp5_vid_encoder_mode_set() 87 vsync_period = mode->vtotal * mode->htotal; in mdp5_vid_encoder_mode_set() 88 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp5_vid_encoder_mode_set() 89 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp5_vid_encoder_mode_set() 90 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp5_vid_encoder_mode_set() 98 display_v_start += mode->htotal - mode->hsync_start; in mdp5_vid_encoder_mode_set() 99 display_v_end -= mode->hsync_start - mode->hdisplay; in mdp5_vid_encoder_mode_set() [all …]
|
/openbmc/linux/drivers/gpu/drm/gma500/ |
H A D | oaktrail_lvds.c | 74 if (mode == DRM_MODE_DPMS_ON) in oaktrail_lvds_dpms() 142 mode->vdisplay) > (mode->hdisplay * in oaktrail_lvds_mode_set() 227 mode = kzalloc(sizeof(*mode), GFP_KERNEL); in oaktrail_lvds_get_configuration_mode() 228 if (!mode) in oaktrail_lvds_get_configuration_mode() 233 mode->hsync_start = mode->hdisplay + \ in oaktrail_lvds_get_configuration_mode() 236 mode->hsync_end = mode->hsync_start + \ in oaktrail_lvds_get_configuration_mode() 239 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in oaktrail_lvds_get_configuration_mode() 241 mode->vsync_start = \ in oaktrail_lvds_get_configuration_mode() 244 mode->vsync_end = \ in oaktrail_lvds_get_configuration_mode() 247 mode->vtotal = mode->vdisplay + \ in oaktrail_lvds_get_configuration_mode() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-crypto-cipher.c | 31 QCryptoCipherMode mode; member 47 .mode = QCRYPTO_CIPHER_MODE_ECB, 64 .mode = QCRYPTO_CIPHER_MODE_ECB, 81 .mode = QCRYPTO_CIPHER_MODE_ECB, 100 .mode = QCRYPTO_CIPHER_MODE_CBC, 118 .mode = QCRYPTO_CIPHER_MODE_CBC, 136 .mode = QCRYPTO_CIPHER_MODE_CBC, 160 .mode = QCRYPTO_CIPHER_MODE_ECB, 169 .mode = QCRYPTO_CIPHER_MODE_CBC, 178 .mode = QCRYPTO_CIPHER_MODE_ECB, [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp4/ |
H A D | mdp4_dtv_encoder.c | 40 struct drm_display_mode *mode, in mdp4_dtv_encoder_mode_set() argument 49 mode = adjusted_mode; in mdp4_dtv_encoder_mode_set() 58 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp4_dtv_encoder_mode_set() 60 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mdp4_dtv_encoder_mode_set() 66 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dtv_encoder_mode_set() 67 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dtv_encoder_mode_set() 69 vsync_period = mode->vtotal * mode->htotal; in mdp4_dtv_encoder_mode_set() 70 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dtv_encoder_mode_set() 71 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp4_dtv_encoder_mode_set() 72 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp4_dtv_encoder_mode_set() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_encoder_phys_vid.c | 49 if ((mode->htotal < mode->hsync_end) in drm_mode_to_intf_timing_params() 50 || (mode->hsync_start < mode->hdisplay) in drm_mode_to_intf_timing_params() 51 || (mode->vtotal < mode->vsync_end) in drm_mode_to_intf_timing_params() 52 || (mode->vsync_start < mode->vdisplay) in drm_mode_to_intf_timing_params() 57 mode->hsync_start, mode->hsync_end, in drm_mode_to_intf_timing_params() 58 mode->htotal, mode->hdisplay); in drm_mode_to_intf_timing_params() 60 mode->vsync_start, mode->vsync_end, in drm_mode_to_intf_timing_params() 61 mode->vtotal, mode->vdisplay); in drm_mode_to_intf_timing_params() 268 mode.hdisplay, mode.htotal, in dpu_encoder_phys_vid_setup_timing_engine() 269 mode.hsync_start, mode.hsync_end, in dpu_encoder_phys_vid_setup_timing_engine() [all …]
|
/openbmc/linux/drivers/parport/ |
H A D | ieee1284.c | 332 if (port->ieee1284.mode == mode) in parport_negotiate() 336 if ((port->ieee1284.mode & ~IEEE1284_ADDR) == (mode & ~IEEE1284_ADDR)){ in parport_negotiate() 337 port->ieee1284.mode = mode; in parport_negotiate() 349 switch (mode) { in parport_negotiate() 431 if (mode && !xflag) { in parport_negotiate() 441 m = mode & 0x7f; in parport_negotiate() 494 port->ieee1284.mode = mode; in parport_negotiate() 589 int mode = port->ieee1284.mode; in parport_write() 597 switch (mode) { in parport_write() 680 int mode = port->physport->ieee1284.mode; in parport_read() [all …]
|
/openbmc/linux/lib/xz/ |
H A D | xz_private.h | 70 # define DEC_IS_SINGLE(mode) ((mode) == XZ_SINGLE) argument 72 # define DEC_IS_SINGLE(mode) (false) argument 76 # define DEC_IS_PREALLOC(mode) ((mode) == XZ_PREALLOC) argument 78 # define DEC_IS_PREALLOC(mode) (false) argument 82 # define DEC_IS_DYNALLOC(mode) ((mode) == XZ_DYNALLOC) argument 84 # define DEC_IS_DYNALLOC(mode) (false) argument 88 # define DEC_IS_MULTI(mode) (true) argument 90 # define DEC_IS_MULTI(mode) ((mode) != XZ_SINGLE) argument 92 # define DEC_IS_MULTI(mode) (false) argument 116 XZ_EXTERN struct xz_dec_lzma2 *xz_dec_lzma2_create(enum xz_mode mode,
|