/Linux-v4.19/drivers/gpu/drm/gma500/ |
D | mdfld_tmd_vid.c | 35 struct drm_display_mode *mode; in tmd_vid_get_config_mode() local 40 mode = kzalloc(sizeof(*mode), GFP_KERNEL); in tmd_vid_get_config_mode() 41 if (!mode) in tmd_vid_get_config_mode() 45 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in tmd_vid_get_config_mode() 46 mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo; in tmd_vid_get_config_mode() 47 mode->hsync_start = mode->hdisplay + \ in tmd_vid_get_config_mode() 50 mode->hsync_end = mode->hsync_start + \ in tmd_vid_get_config_mode() 53 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in tmd_vid_get_config_mode() 55 mode->vsync_start = \ in tmd_vid_get_config_mode() 56 mode->vdisplay + ((ti->vsync_offset_hi << 8) | \ in tmd_vid_get_config_mode() [all …]
|
D | mdfld_tpo_vid.c | 32 struct drm_display_mode *mode; in tpo_vid_get_config_mode() local 34 mode = kzalloc(sizeof(*mode), GFP_KERNEL); in tpo_vid_get_config_mode() 35 if (!mode) in tpo_vid_get_config_mode() 38 mode->hdisplay = 864; in tpo_vid_get_config_mode() 39 mode->vdisplay = 480; in tpo_vid_get_config_mode() 40 mode->hsync_start = 873; in tpo_vid_get_config_mode() 41 mode->hsync_end = 876; in tpo_vid_get_config_mode() 42 mode->htotal = 887; in tpo_vid_get_config_mode() 43 mode->vsync_start = 487; in tpo_vid_get_config_mode() 44 mode->vsync_end = 490; in tpo_vid_get_config_mode() [all …]
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp4/ |
D | mdp4_dsi_encoder.c | 51 struct drm_display_mode *mode, in mdp4_dsi_encoder_mode_set() argument 59 mode = adjusted_mode; in mdp4_dsi_encoder_mode_set() 62 mode->base.id, mode->name, in mdp4_dsi_encoder_mode_set() 63 mode->vrefresh, mode->clock, in mdp4_dsi_encoder_mode_set() 64 mode->hdisplay, mode->hsync_start, in mdp4_dsi_encoder_mode_set() 65 mode->hsync_end, mode->htotal, in mdp4_dsi_encoder_mode_set() 66 mode->vdisplay, mode->vsync_start, in mdp4_dsi_encoder_mode_set() 67 mode->vsync_end, mode->vtotal, in mdp4_dsi_encoder_mode_set() 68 mode->type, mode->flags); in mdp4_dsi_encoder_mode_set() 71 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp4_dsi_encoder_mode_set() [all …]
|
D | mdp4_dtv_encoder.c | 96 struct drm_display_mode *mode, in mdp4_dtv_encoder_mode_set() argument 105 mode = adjusted_mode; in mdp4_dtv_encoder_mode_set() 108 mode->base.id, mode->name, in mdp4_dtv_encoder_mode_set() 109 mode->vrefresh, mode->clock, in mdp4_dtv_encoder_mode_set() 110 mode->hdisplay, mode->hsync_start, in mdp4_dtv_encoder_mode_set() 111 mode->hsync_end, mode->htotal, in mdp4_dtv_encoder_mode_set() 112 mode->vdisplay, mode->vsync_start, in mdp4_dtv_encoder_mode_set() 113 mode->vsync_end, mode->vtotal, in mdp4_dtv_encoder_mode_set() 114 mode->type, mode->flags); in mdp4_dtv_encoder_mode_set() 116 mdp4_dtv_encoder->pixclock = mode->clock * 1000; in mdp4_dtv_encoder_mode_set() [all …]
|
/Linux-v4.19/drivers/net/wireless/ath/ath5k/ |
D | eeprom.c | 41 unsigned int mode) in ath5k_eeprom_bin2freq() argument 48 if (mode == AR5K_EEPROM_MODE_11A) { in ath5k_eeprom_bin2freq() 190 unsigned int mode) in ath5k_eeprom_read_ants() argument 198 ee->ee_switch_settling[mode] = (val >> 8) & 0x7f; in ath5k_eeprom_read_ants() 199 ee->ee_atn_tx_rx[mode] = (val >> 2) & 0x3f; in ath5k_eeprom_read_ants() 200 ee->ee_ant_control[mode][i] = (val << 4) & 0x3f; in ath5k_eeprom_read_ants() 203 ee->ee_ant_control[mode][i++] |= (val >> 12) & 0xf; in ath5k_eeprom_read_ants() 204 ee->ee_ant_control[mode][i++] = (val >> 6) & 0x3f; in ath5k_eeprom_read_ants() 205 ee->ee_ant_control[mode][i++] = val & 0x3f; in ath5k_eeprom_read_ants() 208 ee->ee_ant_control[mode][i++] = (val >> 10) & 0x3f; in ath5k_eeprom_read_ants() [all …]
|
/Linux-v4.19/drivers/gpu/drm/tinydrm/core/ |
D | tinydrm-pipe.c | 18 struct drm_display_mode mode; member 30 struct drm_display_mode *mode; in tinydrm_connector_get_modes() local 32 mode = drm_mode_duplicate(connector->dev, &tconn->mode); in tinydrm_connector_get_modes() 33 if (!mode) { in tinydrm_connector_get_modes() 38 if (mode->name[0] == '\0') in tinydrm_connector_get_modes() 39 drm_mode_set_name(mode); in tinydrm_connector_get_modes() 41 mode->type |= DRM_MODE_TYPE_PREFERRED; in tinydrm_connector_get_modes() 42 drm_mode_probed_add(connector, mode); in tinydrm_connector_get_modes() 44 if (mode->width_mm) { in tinydrm_connector_get_modes() 45 connector->display_info.width_mm = mode->width_mm; in tinydrm_connector_get_modes() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
D | agp.c | 31 int mode; member 59 u32 mode = nvkm_pci_rd32(pci, 0x004c); in nvkm_agp_preinit() local 66 if ((mode | pci->agp.mode) & PCI_AGP_COMMAND_FW) { in nvkm_agp_preinit() 67 mode = pci->agp.mode & ~PCI_AGP_COMMAND_FW; in nvkm_agp_preinit() 68 agp_enable(pci->agp.bridge, mode); in nvkm_agp_preinit() 92 agp_enable(pci->agp.bridge, pci->agp.mode); in nvkm_agp_init() 110 int mode = -1; in nvkm_agp_ctor() local 120 mode = 0; in nvkm_agp_ctor() 122 mode = nvkm_longopt(device->cfgopt, "NvAGP", mode); in nvkm_agp_ctor() 132 pci->agp.mode = info.mode; in nvkm_agp_ctor() [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/power/reset/ |
D | reboot-mode.txt | 1 Generic reboot mode core map driver 3 This driver get reboot mode arguments and call the write 8 All mode properties are vendor specific, it is a indication to tell 10 as mode-xxx = <magic> (xxx is mode name, magic should be a none-zero value). 13 - mode-normal: Normal reboot mode, system reboot with command "reboot". 14 - mode-recovery: Android Recovery mode, it is a mode to format the device or update a new image. 15 - mode-bootloader: Android fastboot mode, it's a mode to re-flash partitions on the Android based d… 16 - mode-loader: A bootloader mode, it's a mode used to download image on Rockchip platform, 20 reboot-mode { 21 mode-normal = <BOOT_NORMAL>; [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | pad.c | 27 nvkm_i2c_pad_mode_locked(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode_locked() argument 29 PAD_TRACE(pad, "-> %s", (mode == NVKM_I2C_PAD_AUX) ? "aux" : in nvkm_i2c_pad_mode_locked() 30 (mode == NVKM_I2C_PAD_I2C) ? "i2c" : "off"); in nvkm_i2c_pad_mode_locked() 31 if (pad->func->mode) in nvkm_i2c_pad_mode_locked() 32 pad->func->mode(pad, mode); in nvkm_i2c_pad_mode_locked() 36 nvkm_i2c_pad_mode(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode() argument 38 PAD_TRACE(pad, "mode %d", mode); in nvkm_i2c_pad_mode() 40 nvkm_i2c_pad_mode_locked(pad, mode); in nvkm_i2c_pad_mode() 41 pad->mode = mode; in nvkm_i2c_pad_mode() 49 if (pad->mode == NVKM_I2C_PAD_OFF) in nvkm_i2c_pad_release() [all …]
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_encoder.c | 105 struct drm_display_mode *mode, in mdp5_vid_encoder_mode_set() argument 119 mode = adjusted_mode; in mdp5_vid_encoder_mode_set() 122 mode->base.id, mode->name, in mdp5_vid_encoder_mode_set() 123 mode->vrefresh, mode->clock, in mdp5_vid_encoder_mode_set() 124 mode->hdisplay, mode->hsync_start, in mdp5_vid_encoder_mode_set() 125 mode->hsync_end, mode->htotal, in mdp5_vid_encoder_mode_set() 126 mode->vdisplay, mode->vsync_start, in mdp5_vid_encoder_mode_set() 127 mode->vsync_end, mode->vtotal, in mdp5_vid_encoder_mode_set() 128 mode->type, mode->flags); in mdp5_vid_encoder_mode_set() 134 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp5_vid_encoder_mode_set() [all …]
|
/Linux-v4.19/arch/x86/boot/ |
D | video-mode.c | 54 int mode_defined(u16 mode) in mode_defined() argument 63 if (mi->mode == mode) in mode_defined() 72 static int raw_set_mode(u16 mode, u16 *real_mode) in raw_set_mode() argument 79 mode &= ~VIDEO_RECALC; in raw_set_mode() 88 if ((mode == nmode && visible) || in raw_set_mode() 89 mode == mi->mode || in raw_set_mode() 90 mode == (mi->y << 8)+mi->x) { in raw_set_mode() 91 *real_mode = mi->mode; in raw_set_mode() 102 if (mode >= card->xmode_first && in raw_set_mode() 103 mode < card->xmode_first+card->xmode_n) { in raw_set_mode() [all …]
|
/Linux-v4.19/include/linux/ |
D | proc_fs.h | 31 struct proc_dir_entry *proc_create_seq_private(const char *name, umode_t mode, 34 #define proc_create_seq_data(name, mode, parent, ops, data) \ argument 35 proc_create_seq_private(name, mode, parent, ops, 0, data) 36 #define proc_create_seq(name, mode, parent, ops) \ argument 37 proc_create_seq_private(name, mode, parent, ops, 0, NULL) 38 struct proc_dir_entry *proc_create_single_data(const char *name, umode_t mode, 41 #define proc_create_single(name, mode, parent, show) \ argument 42 proc_create_single_data(name, mode, parent, show, NULL) 49 struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, c… 58 struct proc_dir_entry *proc_create_net_data(const char *name, umode_t mode, [all …]
|
D | wait_bit.h | 24 typedef int wait_bit_action_f(struct wait_bit_key *key, int mode); 27 …ad *wq_head, struct wait_bit_queue_entry *wbq_entry, wait_bit_action_f *action, unsigned int mode); 28 …ad *wq_head, struct wait_bit_queue_entry *wbq_entry, wait_bit_action_f *action, unsigned int mode); 30 int out_of_line_wait_on_bit(void *word, int, wait_bit_action_f *action, unsigned int mode); 31 int out_of_line_wait_on_bit_timeout(void *word, int, wait_bit_action_f *action, unsigned int mode, … 32 int out_of_line_wait_on_bit_lock(void *word, int, wait_bit_action_f *action, unsigned int mode); 36 int wake_bit_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *key); 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); 51 extern int bit_wait_timeout(struct wait_bit_key *key, int mode); [all …]
|
/Linux-v4.19/drivers/gpu/ipu-v3/ |
D | ipu-di.c | 214 u32 h_total = sig->mode.hactive + sig->mode.hsync_len + in ipu_di_sync_config_interlaced() 215 sig->mode.hback_porch + sig->mode.hfront_porch; in ipu_di_sync_config_interlaced() 216 u32 v_total = sig->mode.vactive + sig->mode.vsync_len + in ipu_di_sync_config_interlaced() 217 sig->mode.vback_porch + sig->mode.vfront_porch; in ipu_di_sync_config_interlaced() 229 .cnt_down = sig->mode.hsync_len * 2, in ipu_di_sync_config_interlaced() 236 .cnt_down = sig->mode.vsync_len * 2, in ipu_di_sync_config_interlaced() 249 .offset_count = (sig->mode.vsync_len + in ipu_di_sync_config_interlaced() 250 sig->mode.vback_porch) / 2, in ipu_di_sync_config_interlaced() 252 .repeat_count = sig->mode.vactive / 2, in ipu_di_sync_config_interlaced() 257 .offset_count = sig->mode.hsync_len + in ipu_di_sync_config_interlaced() [all …]
|
/Linux-v4.19/net/ipv4/ |
D | sysctl_net_ipv4.c | 83 .mode = table->mode, in ipv4_local_port_range() 119 .mode = table->mode, in ipv4_privileged_ports() 180 .mode = table->mode, in ipv4_ping_group_range() 443 .mode = 0644, 450 .mode = 0644, 457 .mode = 0644, 464 .mode = 0644, 471 .mode = 0644, 478 .mode = 0644, 486 .mode = 0644, [all …]
|
/Linux-v4.19/drivers/video/fbdev/ |
D | macmodes.c | 142 const struct fb_videomode *mode; member 223 const struct fb_videomode *mode = NULL; in mac_vmode_to_var() local 228 mode = map->mode; in mac_vmode_to_var() 231 if (!mode) in mac_vmode_to_var() 271 var->xres = mode->xres; in mac_vmode_to_var() 272 var->yres = mode->yres; in mac_vmode_to_var() 273 var->xres_virtual = mode->xres; in mac_vmode_to_var() 274 var->yres_virtual = mode->yres; in mac_vmode_to_var() 277 var->pixclock = mode->pixclock; in mac_vmode_to_var() 278 var->left_margin = mode->left_margin; in mac_vmode_to_var() [all …]
|
/Linux-v4.19/drivers/phy/hisilicon/ |
D | phy-histb-combphy.c | 52 struct histb_combphy_mode mode; member 76 static int is_mode_fixed(struct histb_combphy_mode *mode) in is_mode_fixed() argument 78 return (mode->fixed != PHY_NONE) ? true : false; in is_mode_fixed() 83 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_set_mode() local 87 if (is_mode_fixed(mode)) in histb_combphy_set_mode() 90 switch (mode->select) { in histb_combphy_set_mode() 104 return regmap_update_bits(syscon, mode->reg, mode->mask, in histb_combphy_set_mode() 105 hw_sel << mode->shift); in histb_combphy_set_mode() 171 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_xlate() local 178 mode->select = args->args[0]; in histb_combphy_xlate() [all …]
|
/Linux-v4.19/drivers/hid/ |
D | hid-saitek.c | 37 int mode; member 54 ssc->mode = -1; in saitek_probe() 104 int mode = -1; in saitek_raw_event() local 106 mode = 0; in saitek_raw_event() 108 mode = 1; in saitek_raw_event() 110 mode = 2; in saitek_raw_event() 115 if (mode != ssc->mode) { in saitek_raw_event() 116 hid_dbg(hdev, "entered mode %d\n", mode); in saitek_raw_event() 117 if (ssc->mode != -1) { in saitek_raw_event() 121 ssc->mode = mode; in saitek_raw_event() [all …]
|
/Linux-v4.19/kernel/ |
D | sysctl.c | 272 .mode = 0555, 277 .mode = 0555, 282 .mode = 0555, 287 .mode = 0555, 292 .mode = 0555, 319 .mode = 0644, 327 .mode = 0644, 336 .mode = 0644, 345 .mode = 0644, 355 .mode = 0644, [all …]
|
/Linux-v4.19/drivers/ide/ |
D | ide-xfer-mode.c | 27 const char *ide_xfer_verbose(u8 mode) in ide_xfer_verbose() argument 30 u8 i = mode & 0xf; in ide_xfer_verbose() 32 if (mode >= XFER_UDMA_0 && mode <= XFER_UDMA_7) in ide_xfer_verbose() 34 else if (mode >= XFER_MW_DMA_0 && mode <= XFER_MW_DMA_4) in ide_xfer_verbose() 36 else if (mode >= XFER_SW_DMA_0 && mode <= XFER_SW_DMA_2) in ide_xfer_verbose() 38 else if (mode >= XFER_PIO_0 && mode <= XFER_PIO_6) in ide_xfer_verbose() 40 else if (mode == XFER_PIO_SLOW) in ide_xfer_verbose() 122 int ide_set_pio_mode(ide_drive_t *drive, const u8 mode) in ide_set_pio_mode() argument 138 drive->pio_mode = mode; in ide_set_pio_mode() 144 if (ide_config_drive_speed(drive, mode)) in ide_set_pio_mode() [all …]
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_probe_helper.c | 69 drm_mode_validate_flag(const struct drm_display_mode *mode, in drm_mode_validate_flag() argument 72 if ((mode->flags & DRM_MODE_FLAG_INTERLACE) && in drm_mode_validate_flag() 76 if ((mode->flags & DRM_MODE_FLAG_DBLSCAN) && in drm_mode_validate_flag() 80 if ((mode->flags & DRM_MODE_FLAG_3D_MASK) && in drm_mode_validate_flag() 88 drm_mode_validate_pipeline(struct drm_display_mode *mode, in drm_mode_validate_pipeline() argument 97 ret = drm_connector_mode_valid(connector, mode); in drm_mode_validate_pipeline() 105 ret = drm_encoder_mode_valid(encoder, mode); in drm_mode_validate_pipeline() 114 ret = drm_bridge_mode_valid(encoder->bridge, mode); in drm_mode_validate_pipeline() 125 ret = drm_crtc_mode_valid(crtc, mode); in drm_mode_validate_pipeline() 141 struct drm_display_mode *mode; in drm_helper_probe_add_cmdline_mode() local [all …]
|
D | drm_modes.c | 50 void drm_mode_debug_printmodeline(const struct drm_display_mode *mode) in drm_mode_debug_printmodeline() argument 52 DRM_DEBUG_KMS("Modeline " DRM_MODE_FMT "\n", DRM_MODE_ARG(mode)); in drm_mode_debug_printmodeline() 90 void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode) in drm_mode_destroy() argument 92 if (!mode) in drm_mode_destroy() 95 drm_mode_object_unregister(dev, &mode->base); in drm_mode_destroy() 97 kfree(mode); in drm_mode_destroy() 111 struct drm_display_mode *mode) in drm_mode_probed_add() argument 115 list_add_tail(&mode->head, &connector->probed_modes); in drm_mode_probed_add() 736 void drm_mode_set_name(struct drm_display_mode *mode) in drm_mode_set_name() argument 738 bool interlaced = !!(mode->flags & DRM_MODE_FLAG_INTERLACE); in drm_mode_set_name() [all …]
|
/Linux-v4.19/drivers/video/fbdev/core/ |
D | modedb.c | 600 const struct fb_videomode *mode, unsigned int bpp) in fb_try_mode() argument 605 mode->name ? mode->name : "noname", in fb_try_mode() 606 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode() 607 var->xres = mode->xres; in fb_try_mode() 608 var->yres = mode->yres; in fb_try_mode() 609 var->xres_virtual = mode->xres; in fb_try_mode() 610 var->yres_virtual = mode->yres; in fb_try_mode() 615 var->pixclock = mode->pixclock; in fb_try_mode() 616 var->left_margin = mode->left_margin; in fb_try_mode() 617 var->right_margin = mode->right_margin; in fb_try_mode() [all …]
|
/Linux-v4.19/drivers/net/ethernet/ibm/emac/ |
D | zmii.c | 50 static inline int zmii_valid_mode(int mode) in zmii_valid_mode() argument 52 return mode == PHY_INTERFACE_MODE_MII || in zmii_valid_mode() 53 mode == PHY_INTERFACE_MODE_RMII || in zmii_valid_mode() 54 mode == PHY_INTERFACE_MODE_SMII || in zmii_valid_mode() 55 mode == PHY_INTERFACE_MODE_NA; in zmii_valid_mode() 58 static inline const char *zmii_mode_name(int mode) in zmii_mode_name() argument 60 switch (mode) { in zmii_mode_name() 72 static inline u32 zmii_mode_mask(int mode, int input) in zmii_mode_mask() argument 74 switch (mode) { in zmii_mode_mask() 86 int zmii_attach(struct platform_device *ofdev, int input, int *mode) in zmii_attach() argument [all …]
|
/Linux-v4.19/sound/soc/codecs/ |
D | wl1273.c | 38 enum wl1273_mode mode; member 48 u16 mode; in snd_wl1273_fm_set_i2s_mode() local 55 mode = core->i2s_mode & ~WL1273_IS2_WIDTH & ~WL1273_IS2_RATE; in snd_wl1273_fm_set_i2s_mode() 59 mode |= WL1273_IS2_RATE_48K; in snd_wl1273_fm_set_i2s_mode() 62 mode |= WL1273_IS2_RATE_44_1K; in snd_wl1273_fm_set_i2s_mode() 65 mode |= WL1273_IS2_RATE_32K; in snd_wl1273_fm_set_i2s_mode() 68 mode |= WL1273_IS2_RATE_22_05K; in snd_wl1273_fm_set_i2s_mode() 71 mode |= WL1273_IS2_RATE_16K; in snd_wl1273_fm_set_i2s_mode() 74 mode |= WL1273_IS2_RATE_12K; in snd_wl1273_fm_set_i2s_mode() 77 mode |= WL1273_IS2_RATE_11_025; in snd_wl1273_fm_set_i2s_mode() [all …]
|