/linux-4.1.27/drivers/gpu/drm/gma500/ |
D | mdfld_tpo_vid.c | 32 struct drm_display_mode *mode; in tpo_vid_get_config_mode() local 37 mode = kzalloc(sizeof(*mode), GFP_KERNEL); in tpo_vid_get_config_mode() 38 if (!mode) in tpo_vid_get_config_mode() 42 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in tpo_vid_get_config_mode() 43 mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo; in tpo_vid_get_config_mode() 44 mode->hsync_start = mode->hdisplay + in tpo_vid_get_config_mode() 47 mode->hsync_end = mode->hsync_start + in tpo_vid_get_config_mode() 50 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | in tpo_vid_get_config_mode() 52 mode->vsync_start = in tpo_vid_get_config_mode() 53 mode->vdisplay + ((ti->vsync_offset_hi << 8) | in tpo_vid_get_config_mode() [all …]
|
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 | oaktrail_lvds.c | 78 static void oaktrail_lvds_dpms(struct drm_encoder *encoder, int mode) in oaktrail_lvds_dpms() argument 83 if (mode == DRM_MODE_DPMS_ON) in oaktrail_lvds_dpms() 92 struct drm_display_mode *mode, in oaktrail_lvds_mode_set() argument 143 if ((mode->vdisplay != adjusted_mode->crtc_vdisplay) || in oaktrail_lvds_mode_set() 144 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set() 145 if ((adjusted_mode->crtc_hdisplay * mode->vdisplay) == in oaktrail_lvds_mode_set() 146 (mode->hdisplay * adjusted_mode->crtc_vdisplay)) in oaktrail_lvds_mode_set() 149 mode->vdisplay) > (mode->hdisplay * in oaktrail_lvds_mode_set() 226 struct drm_display_mode *mode = NULL; in oaktrail_lvds_get_configuration_mode() local 234 mode = kzalloc(sizeof(*mode), GFP_KERNEL); in oaktrail_lvds_get_configuration_mode() [all …]
|
D | mdfld_dsi_dpi.c | 428 int mdfld_dsi_dpi_timing_calculation(struct drm_display_mode *mode, in mdfld_dsi_dpi_timing_calculation() argument 435 pclk_hactive = mode->hdisplay; in mdfld_dsi_dpi_timing_calculation() 436 pclk_hfp = mode->hsync_start - mode->hdisplay; in mdfld_dsi_dpi_timing_calculation() 437 pclk_hsync = mode->hsync_end - mode->hsync_start; in mdfld_dsi_dpi_timing_calculation() 438 pclk_hbp = mode->htotal - mode->hsync_end; in mdfld_dsi_dpi_timing_calculation() 440 pclk_vfp = mode->vsync_start - mode->vdisplay; in mdfld_dsi_dpi_timing_calculation() 441 pclk_vsync = mode->vsync_end - mode->vsync_start; in mdfld_dsi_dpi_timing_calculation() 442 pclk_vbp = mode->vtotal - mode->vsync_end; in mdfld_dsi_dpi_timing_calculation() 472 struct drm_display_mode *mode = dsi_config->mode; in mdfld_dsi_dpi_controller_init() local 505 (mode->vtotal * mode->htotal * dsi_config->bpp / in mdfld_dsi_dpi_controller_init() [all …]
|
D | tc35876x-dsi-lvds.c | 579 struct drm_display_mode *mode; in tc35876x_get_config_mode() local 583 mode = kzalloc(sizeof(*mode), GFP_KERNEL); in tc35876x_get_config_mode() 584 if (!mode) in tc35876x_get_config_mode() 588 mode->hdisplay = 1280; in tc35876x_get_config_mode() 589 mode->vdisplay = 800; in tc35876x_get_config_mode() 590 mode->hsync_start = 1360; in tc35876x_get_config_mode() 591 mode->hsync_end = 1400; in tc35876x_get_config_mode() 592 mode->htotal = 1440; in tc35876x_get_config_mode() 593 mode->vsync_start = 814; in tc35876x_get_config_mode() 594 mode->vsync_end = 824; in tc35876x_get_config_mode() [all …]
|
D | psb_intel_display.c | 103 struct drm_display_mode *mode, in psb_intel_crtc_mode_set() argument 171 adjusted_mode->clock / mode->clock; in psb_intel_crtc_mode_set() 221 drm_mode_debug_printmodeline(mode); in psb_intel_crtc_mode_set() 288 ((mode->vdisplay - 1) << 16) | (mode->hdisplay - 1)); in psb_intel_crtc_mode_set() 291 ((mode->hdisplay - 1) << 16) | (mode->vdisplay - 1)); in psb_intel_crtc_mode_set() 389 struct drm_display_mode *mode; in psb_intel_crtc_mode_get() local 411 mode = kzalloc(sizeof(*mode), GFP_KERNEL); in psb_intel_crtc_mode_get() 412 if (!mode) in psb_intel_crtc_mode_get() 415 mode->clock = psb_intel_crtc_clock_get(dev, crtc); in psb_intel_crtc_mode_get() 416 mode->hdisplay = (htot & 0xffff) + 1; in psb_intel_crtc_mode_get() [all …]
|
D | psb_intel_sdvo.c | 538 static int psb_intel_sdvo_get_pixel_multiplier(struct drm_display_mode *mode) in psb_intel_sdvo_get_pixel_multiplier() argument 540 if (mode->clock >= 100000) in psb_intel_sdvo_get_pixel_multiplier() 542 else if (mode->clock >= 50000) in psb_intel_sdvo_get_pixel_multiplier() 611 int mode) in psb_intel_sdvo_set_encoder_power_state() argument 615 switch (mode) { in psb_intel_sdvo_set_encoder_power_state() 722 const struct drm_display_mode *mode) in psb_intel_sdvo_get_dtd_from_mode() argument 728 width = mode->crtc_hdisplay; in psb_intel_sdvo_get_dtd_from_mode() 729 height = mode->crtc_vdisplay; in psb_intel_sdvo_get_dtd_from_mode() 732 h_blank_len = mode->crtc_hblank_end - mode->crtc_hblank_start; in psb_intel_sdvo_get_dtd_from_mode() 733 h_sync_len = mode->crtc_hsync_end - mode->crtc_hsync_start; in psb_intel_sdvo_get_dtd_from_mode() [all …]
|
/linux-4.1.27/drivers/gpu/drm/omapdrm/ |
D | omap_connector.c | 45 void copy_timings_omap_to_drm(struct drm_display_mode *mode, in copy_timings_omap_to_drm() argument 48 mode->clock = timings->pixelclock / 1000; in copy_timings_omap_to_drm() 50 mode->hdisplay = timings->x_res; in copy_timings_omap_to_drm() 51 mode->hsync_start = mode->hdisplay + timings->hfp; in copy_timings_omap_to_drm() 52 mode->hsync_end = mode->hsync_start + timings->hsw; in copy_timings_omap_to_drm() 53 mode->htotal = mode->hsync_end + timings->hbp; in copy_timings_omap_to_drm() 55 mode->vdisplay = timings->y_res; in copy_timings_omap_to_drm() 56 mode->vsync_start = mode->vdisplay + timings->vfp; in copy_timings_omap_to_drm() 57 mode->vsync_end = mode->vsync_start + timings->vsw; in copy_timings_omap_to_drm() 58 mode->vtotal = mode->vsync_end + timings->vbp; in copy_timings_omap_to_drm() [all …]
|
D | omap_crtc.c | 463 static void omap_crtc_dpms(struct drm_crtc *crtc, int mode) in omap_crtc_dpms() argument 467 bool enabled = (mode == DRM_MODE_DPMS_ON); in omap_crtc_dpms() 470 DBG("%s: %d", omap_crtc->name, mode); in omap_crtc_dpms() 486 const struct drm_display_mode *mode, in omap_crtc_mode_fixup() argument 493 struct drm_display_mode *mode, in omap_crtc_mode_set() argument 500 mode = adjusted_mode; in omap_crtc_mode_set() 503 omap_crtc->name, mode->base.id, mode->name, in omap_crtc_mode_set() 504 mode->vrefresh, mode->clock, in omap_crtc_mode_set() 505 mode->hdisplay, mode->hsync_start, in omap_crtc_mode_set() 506 mode->hsync_end, mode->htotal, in omap_crtc_mode_set() [all …]
|
/linux-4.1.27/net/ipv4/ |
D | sysctl_net_ipv4.c | 66 .mode = table->mode, in ipv4_local_port_range() 124 .mode = table->mode, in ipv4_ping_group_range() 255 .mode = 0644, 262 .mode = 0644, 269 .mode = 0644, 276 .mode = 0644, 283 .mode = 0644, 292 .mode = 0644, 301 .mode = 0644, 308 .mode = 0644, [all …]
|
/linux-4.1.27/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-4.1.27/kernel/ |
D | sysctl.c | 236 .mode = 0555, 241 .mode = 0555, 246 .mode = 0555, 251 .mode = 0555, 256 .mode = 0555, 283 .mode = 0644, 291 .mode = 0644, 300 .mode = 0644, 309 .mode = 0644, 319 .mode = 0644, [all …]
|
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp4/ |
D | mdp4_dtv_encoder.c | 98 const struct drm_display_mode *mode, in mdp4_dtv_encoder_mode_fixup() argument 105 struct drm_display_mode *mode, in mdp4_dtv_encoder_mode_set() argument 114 mode = adjusted_mode; in mdp4_dtv_encoder_mode_set() 117 mode->base.id, mode->name, in mdp4_dtv_encoder_mode_set() 118 mode->vrefresh, mode->clock, in mdp4_dtv_encoder_mode_set() 119 mode->hdisplay, mode->hsync_start, in mdp4_dtv_encoder_mode_set() 120 mode->hsync_end, mode->htotal, in mdp4_dtv_encoder_mode_set() 121 mode->vdisplay, mode->vsync_start, in mdp4_dtv_encoder_mode_set() 122 mode->vsync_end, mode->vtotal, in mdp4_dtv_encoder_mode_set() 123 mode->type, mode->flags); in mdp4_dtv_encoder_mode_set() [all …]
|
D | mdp4_lcdc_encoder.c | 263 const struct drm_display_mode *mode, in mdp4_lcdc_encoder_mode_fixup() argument 270 struct drm_display_mode *mode, in mdp4_lcdc_encoder_mode_set() argument 280 mode = adjusted_mode; in mdp4_lcdc_encoder_mode_set() 283 mode->base.id, mode->name, in mdp4_lcdc_encoder_mode_set() 284 mode->vrefresh, mode->clock, in mdp4_lcdc_encoder_mode_set() 285 mode->hdisplay, mode->hsync_start, in mdp4_lcdc_encoder_mode_set() 286 mode->hsync_end, mode->htotal, in mdp4_lcdc_encoder_mode_set() 287 mode->vdisplay, mode->vsync_start, in mdp4_lcdc_encoder_mode_set() 288 mode->vsync_end, mode->vtotal, in mdp4_lcdc_encoder_mode_set() 289 mode->type, mode->flags); in mdp4_lcdc_encoder_mode_set() [all …]
|
/linux-4.1.27/arch/x86/boot/ |
D | video-mode.c | 52 int mode_defined(u16 mode) in mode_defined() argument 61 if (mi->mode == mode) in mode_defined() 70 static int raw_set_mode(u16 mode, u16 *real_mode) in raw_set_mode() argument 77 mode &= ~VIDEO_RECALC; in raw_set_mode() 86 if ((mode == nmode && visible) || in raw_set_mode() 87 mode == mi->mode || in raw_set_mode() 88 mode == (mi->y << 8)+mi->x) { in raw_set_mode() 89 *real_mode = mi->mode; in raw_set_mode() 100 if (mode >= card->xmode_first && in raw_set_mode() 101 mode < card->xmode_first+card->xmode_n) { in raw_set_mode() [all …]
|
D | video-bios.c | 24 static int set_bios_mode(u8 mode); 28 return set_bios_mode(mi->mode - VIDEO_FIRST_BIOS); in bios_set_mode() 31 static int set_bios_mode(u8 mode) in set_bios_mode() argument 37 ireg.al = mode; /* AH=0x00 Set Video Mode */ in set_bios_mode() 48 if (new_mode == mode) in set_bios_mode() 65 u8 mode; in bios_probe() local 83 for (mode = 0x14; mode <= 0x7f; mode++) { in bios_probe() 87 if (mode_defined(VIDEO_FIRST_BIOS+mode)) in bios_probe() 90 if (set_bios_mode(mode)) in bios_probe() 108 mi->mode = VIDEO_FIRST_BIOS+mode; in bios_probe()
|
D | video-vga.c | 44 u8 mode; in vga_set_basic_mode() local 51 mode = oreg.al; in vga_set_basic_mode() 53 if (mode != 3 && mode != 7) in vga_set_basic_mode() 54 mode = 3; in vga_set_basic_mode() 57 ireg.ax = mode; /* AH=0: set mode */ in vga_set_basic_mode() 60 return mode; in vga_set_basic_mode() 193 static int vga_set_mode(struct mode_info *mode) in vga_set_mode() argument 199 force_x = mode->x; in vga_set_mode() 200 force_y = mode->y; in vga_set_mode() 202 switch (mode->mode) { in vga_set_mode()
|
D | video-vesa.c | 36 u16 mode; in vesa_probe() local 56 while ((mode = rdfs16(mode_ptr)) != 0xffff) { in vesa_probe() 62 if (mode & ~0x1ff) in vesa_probe() 68 ireg.cx = mode; in vesa_probe() 79 mi->mode = mode + VIDEO_FIRST_VESA; in vesa_probe() 94 mi->mode = mode + VIDEO_FIRST_VESA; in vesa_probe() 106 static int vesa_set_mode(struct mode_info *mode) in vesa_set_mode() argument 110 u16 vesa_mode = mode->mode - VIDEO_FIRST_VESA; in vesa_set_mode() 148 force_x = mode->x; in vesa_set_mode() 149 force_y = mode->y; in vesa_set_mode()
|
/linux-4.1.27/drivers/gpu/drm/sti/ |
D | sti_vtg.c | 125 int type, const struct drm_display_mode *mode) in vtg_set_mode() argument 130 vtg_set_mode(vtg->slave, VTG_TYPE_SLAVE_BY_EXT0, mode); in vtg_set_mode() 132 writel(mode->htotal, vtg->regs + VTG_CLKLN); in vtg_set_mode() 133 writel(mode->vtotal * 2, vtg->regs + VTG_HLFLN); in vtg_set_mode() 135 tmp = (mode->vtotal - mode->vsync_start + 1) << 16; in vtg_set_mode() 136 tmp |= mode->htotal - mode->hsync_start; in vtg_set_mode() 140 tmp = (mode->vdisplay + mode->vtotal - mode->vsync_start + 1) << 16; in vtg_set_mode() 141 tmp |= mode->hdisplay + mode->htotal - mode->hsync_start; in vtg_set_mode() 146 tmp = (mode->hsync_end - mode->hsync_start + HDMI_DELAY) << 16; in vtg_set_mode() 150 tmp = (mode->vsync_end - mode->vsync_start + 1) << 16; in vtg_set_mode() [all …]
|
D | sti_drm_crtc.c | 22 static void sti_drm_crtc_dpms(struct drm_crtc *crtc, int mode) in sti_drm_crtc_dpms() argument 74 const struct drm_display_mode *mode, in sti_drm_crtc_mode_fixup() argument 82 sti_drm_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode) in sti_drm_crtc_mode_set() argument 88 int rate = mode->clock * 1000; in sti_drm_crtc_mode_set() 93 mode->base.id, mode->name); in sti_drm_crtc_mode_set() 96 mode->vrefresh, mode->clock, in sti_drm_crtc_mode_set() 97 mode->hdisplay, in sti_drm_crtc_mode_set() 98 mode->hsync_start, mode->hsync_end, in sti_drm_crtc_mode_set() 99 mode->htotal, in sti_drm_crtc_mode_set() 100 mode->vdisplay, in sti_drm_crtc_mode_set() [all …]
|
D | sti_mixer.c | 91 struct drm_display_mode *mode) in sti_mixer_set_background_area() argument 95 ydo = sti_vtg_get_line_number(*mode, 0); in sti_mixer_set_background_area() 96 yds = sti_vtg_get_line_number(*mode, mode->vdisplay - 1); in sti_mixer_set_background_area() 97 xdo = sti_vtg_get_pixel_number(*mode, 0); in sti_mixer_set_background_area() 98 xds = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); in sti_mixer_set_background_area() 158 struct drm_display_mode *mode) in sti_mixer_active_video_area() argument 162 ydo = sti_vtg_get_line_number(*mode, 0); in sti_mixer_active_video_area() 163 yds = sti_vtg_get_line_number(*mode, mode->vdisplay - 1); in sti_mixer_active_video_area() 164 xdo = sti_vtg_get_pixel_number(*mode, 0); in sti_mixer_active_video_area() 165 xds = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); in sti_mixer_active_video_area() [all …]
|
D | sti_hda.c | 172 struct drm_display_mode mode; member 247 struct drm_display_mode mode; member 282 static bool hda_get_mode_idx(struct drm_display_mode mode, int *idx) in hda_get_mode_idx() argument 287 if (drm_mode_equal(&hda_supported_modes[i].mode, &mode)) { in hda_get_mode_idx() 392 if (!hda_get_mode_idx(hda->mode, &mode_idx)) { in sti_hda_pre_enable() 444 val |= (hda->mode.flags & DRM_MODE_FLAG_INTERLACE) ? in sti_hda_pre_enable() 463 struct drm_display_mode *mode, in sti_hda_set_mode() argument 473 memcpy(&hda->mode, mode, sizeof(struct drm_display_mode)); in sti_hda_set_mode() 475 if (!hda_get_mode_idx(hda->mode, &mode_idx)) { in sti_hda_set_mode() 483 hddac_rate = mode->clock * 1000 * 2; in sti_hda_set_mode() [all …]
|
D | sti_dvo.c | 84 struct drm_display_mode mode; member 110 struct drm_display_mode *mode = &dvo->mode; in dvo_awg_generate_code() local 118 timing.total_lines = mode->vtotal; in dvo_awg_generate_code() 119 timing.active_lines = mode->vdisplay; in dvo_awg_generate_code() 120 timing.blanking_lines = mode->vsync_start - mode->vdisplay; in dvo_awg_generate_code() 121 timing.trailing_lines = mode->vtotal - mode->vsync_start; in dvo_awg_generate_code() 122 timing.total_pixels = mode->htotal; in dvo_awg_generate_code() 123 timing.active_pixels = mode->hdisplay; in dvo_awg_generate_code() 124 timing.blanking_pixels = mode->hsync_start - mode->hdisplay; in dvo_awg_generate_code() 125 timing.trailing_pixels = mode->htotal - mode->hsync_start; in dvo_awg_generate_code() [all …]
|
D | sti_cursor.c | 102 struct drm_display_mode *mode = layer->mode; in sti_cursor_prepare_layer() local 148 y = sti_vtg_get_line_number(*mode, 0); in sti_cursor_prepare_layer() 149 x = sti_vtg_get_pixel_number(*mode, 0); in sti_cursor_prepare_layer() 152 y = sti_vtg_get_line_number(*mode, mode->vdisplay - 1); in sti_cursor_prepare_layer() 153 x = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); in sti_cursor_prepare_layer() 169 struct drm_display_mode *mode = layer->mode; in sti_cursor_commit_layer() local 179 ydo = sti_vtg_get_line_number(*mode, layer->dst_y); in sti_cursor_commit_layer() 180 xdo = sti_vtg_get_pixel_number(*mode, layer->dst_y); in sti_cursor_commit_layer()
|
/linux-4.1.27/fs/debugfs/ |
D | file.c | 95 struct dentry *debugfs_create_u8(const char *name, umode_t mode, in debugfs_create_u8() argument 99 if (!(mode & S_IWUGO)) in debugfs_create_u8() 100 return debugfs_create_file(name, mode, parent, value, &fops_u8_ro); in debugfs_create_u8() 102 if (!(mode & S_IRUGO)) in debugfs_create_u8() 103 return debugfs_create_file(name, mode, parent, value, &fops_u8_wo); in debugfs_create_u8() 105 return debugfs_create_file(name, mode, parent, value, &fops_u8); in debugfs_create_u8() 147 struct dentry *debugfs_create_u16(const char *name, umode_t mode, in debugfs_create_u16() argument 151 if (!(mode & S_IWUGO)) in debugfs_create_u16() 152 return debugfs_create_file(name, mode, parent, value, &fops_u16_ro); in debugfs_create_u16() 154 if (!(mode & S_IRUGO)) in debugfs_create_u16() [all …]
|
/linux-4.1.27/drivers/gpu/drm/ |
D | drm_modes.c | 50 void drm_mode_debug_printmodeline(const struct drm_display_mode *mode) in drm_mode_debug_printmodeline() argument 54 mode->base.id, mode->name, mode->vrefresh, mode->clock, in drm_mode_debug_printmodeline() 55 mode->hdisplay, mode->hsync_start, in drm_mode_debug_printmodeline() 56 mode->hsync_end, mode->htotal, in drm_mode_debug_printmodeline() 57 mode->vdisplay, mode->vsync_start, in drm_mode_debug_printmodeline() 58 mode->vsync_end, mode->vtotal, mode->type, mode->flags); in drm_mode_debug_printmodeline() 96 void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode) in drm_mode_destroy() argument 98 if (!mode) in drm_mode_destroy() 101 drm_mode_object_put(dev, &mode->base); in drm_mode_destroy() 103 kfree(mode); in drm_mode_destroy() [all …]
|
D | drm_probe_helper.c | 62 drm_mode_validate_flag(const struct drm_display_mode *mode, in drm_mode_validate_flag() argument 65 if ((mode->flags & DRM_MODE_FLAG_INTERLACE) && in drm_mode_validate_flag() 69 if ((mode->flags & DRM_MODE_FLAG_DBLSCAN) && in drm_mode_validate_flag() 73 if ((mode->flags & DRM_MODE_FLAG_3D_MASK) && in drm_mode_validate_flag() 82 struct drm_display_mode *mode; in drm_helper_probe_add_cmdline_mode() local 87 mode = drm_mode_create_from_cmdline_mode(connector->dev, in drm_helper_probe_add_cmdline_mode() 89 if (mode == NULL) in drm_helper_probe_add_cmdline_mode() 92 drm_mode_probed_add(connector, mode); in drm_helper_probe_add_cmdline_mode() 100 struct drm_display_mode *mode; in drm_helper_probe_single_connector_modes_merge_bits() local 113 list_for_each_entry(mode, &connector->modes, head) in drm_helper_probe_single_connector_modes_merge_bits() [all …]
|
D | drm_edid.c | 1449 mode_is_rb(const struct drm_display_mode *mode) in mode_is_rb() argument 1451 return (mode->htotal - mode->hdisplay == 160) && in mode_is_rb() 1452 (mode->hsync_end - mode->hdisplay == 80) && in mode_is_rb() 1453 (mode->hsync_end - mode->hsync_start == 32) && in mode_is_rb() 1454 (mode->vsync_start - mode->vdisplay == 3); in mode_is_rb() 1660 struct drm_display_mode *m, *mode = NULL; in drm_mode_std() local 1710 mode = drm_cvt_mode(dev, 1366, 768, vrefresh_rate, 0, 0, in drm_mode_std() 1712 mode->hdisplay = 1366; in drm_mode_std() 1713 mode->hsync_start = mode->hsync_start - 1; in drm_mode_std() 1714 mode->hsync_end = mode->hsync_end - 1; in drm_mode_std() [all …]
|
D | drm_crtc_helper.c | 268 struct drm_display_mode *mode, in drm_crtc_helper_set_mode() argument 288 adjusted_mode = drm_mode_duplicate(dev, mode); in drm_crtc_helper_set_mode() 294 saved_mode = crtc->mode; in drm_crtc_helper_set_mode() 302 crtc->mode = *mode; in drm_crtc_helper_set_mode() 317 encoder->bridge, mode, adjusted_mode); in drm_crtc_helper_set_mode() 325 if (!(ret = encoder_funcs->mode_fixup(encoder, mode, in drm_crtc_helper_set_mode() 332 if (!(ret = crtc_funcs->mode_fixup(crtc, mode, adjusted_mode))) { in drm_crtc_helper_set_mode() 364 ret = !crtc_funcs->mode_set(crtc, mode, adjusted_mode, x, y, old_fb); in drm_crtc_helper_set_mode() 375 mode->base.id, mode->name); in drm_crtc_helper_set_mode() 377 encoder_funcs->mode_set(encoder, mode, adjusted_mode); in drm_crtc_helper_set_mode() [all …]
|
/linux-4.1.27/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 …]
|
D | hid-gt683r.c | 60 enum gt683r_led_mode mode; member 96 if (led->mode == GT683R_LED_NORMAL) in mode_show() 98 else if (led->mode == GT683R_LED_AUDIO) in mode_show() 122 led->mode = GT683R_LED_NORMAL; in mode_store() 124 led->mode = GT683R_LED_AUDIO; in mode_store() 126 led->mode = GT683R_LED_BREATHING; in mode_store() 170 static int gt683r_mode_set(struct gt683r_led *led, u8 mode) in gt683r_mode_set() argument 182 buffer[3] = mode; in gt683r_mode_set() 194 u8 mode; in gt683r_led_work() local 208 mode = led->mode; in gt683r_led_work() [all …]
|
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/ |
D | mdp5_encoder.c | 114 const struct drm_display_mode *mode, in mdp5_encoder_mode_fixup() argument 121 struct drm_display_mode *mode, in mdp5_encoder_mode_set() argument 135 mode = adjusted_mode; in mdp5_encoder_mode_set() 138 mode->base.id, mode->name, in mdp5_encoder_mode_set() 139 mode->vrefresh, mode->clock, in mdp5_encoder_mode_set() 140 mode->hdisplay, mode->hsync_start, in mdp5_encoder_mode_set() 141 mode->hsync_end, mode->htotal, in mdp5_encoder_mode_set() 142 mode->vdisplay, mode->vsync_start, in mdp5_encoder_mode_set() 143 mode->vsync_end, mode->vtotal, in mdp5_encoder_mode_set() 144 mode->type, mode->flags); in mdp5_encoder_mode_set() [all …]
|
D | mdp5_cmd_encoder.c | 97 struct drm_display_mode *mode) in pingpong_tearcheck_setup() argument 110 total_lines_x100 = mode->vtotal * mode->vrefresh; in pingpong_tearcheck_setup() 113 __func__, mode->vtotal, mode->vrefresh); in pingpong_tearcheck_setup() 133 REG_MDP5_PP_VSYNC_INIT_VAL(pp_id), mode->vdisplay); in pingpong_tearcheck_setup() 134 mdp5_write(mdp5_kms, REG_MDP5_PP_RD_PTR_IRQ(pp_id), mode->vdisplay + 1); in pingpong_tearcheck_setup() 135 mdp5_write(mdp5_kms, REG_MDP5_PP_START_POS(pp_id), mode->vdisplay); in pingpong_tearcheck_setup() 190 const struct drm_display_mode *mode, in mdp5_cmd_encoder_mode_fixup() argument 197 struct drm_display_mode *mode, in mdp5_cmd_encoder_mode_set() argument 202 mode = adjusted_mode; in mdp5_cmd_encoder_mode_set() 205 mode->base.id, mode->name, in mdp5_cmd_encoder_mode_set() [all …]
|
/linux-4.1.27/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 …]
|
D | auo_k1900fb.c | 85 static void auok1900_update_region(struct auok190xfb_par *par, int mode, in auok1900_update_region() argument 103 1, y1+1, xres, y2-y1, mode); in auok1900_update_region() 106 args[0] = mode | 1; in auok1900_update_region() 126 int mode; in auok1900fb_dpy_update_pages() local 129 mode = AUOK190X_UPDATE_MODE(1); in auok1900fb_dpy_update_pages() 132 mode = AUOK190X_UPDATE_MODE(par->update_mode); in auok1900fb_dpy_update_pages() 137 mode |= AUOK190X_UPDATE_NONFLASH; in auok1900fb_dpy_update_pages() 139 auok1900_update_region(par, mode, y1, y2); in auok1900fb_dpy_update_pages() 144 int mode; in auok1900fb_dpy_update() local 147 mode = AUOK190X_UPDATE_MODE(0); in auok1900fb_dpy_update() [all …]
|
D | bfin_adv7393fb.c | 43 static int mode = VMODE; variable 149 fbdev->modes[mode].xres + fbdev->modes[mode].boeft_blank; in dma_desc_list() 152 fbdev->vb1->y_count = fbdev->modes[mode].vb1_lines; in dma_desc_list() 160 fbdev->modes[mode].xres + fbdev->modes[mode].boeft_blank; in dma_desc_list() 161 fbdev->av1->x_modify = fbdev->modes[mode].bpp / 8; in dma_desc_list() 162 fbdev->av1->y_count = fbdev->modes[mode].a_lines; in dma_desc_list() 164 (fbdev->modes[mode].xres - fbdev->modes[mode].boeft_blank + in dma_desc_list() 165 1) * (fbdev->modes[mode].bpp / 8); in dma_desc_list() 172 fbdev->modes[mode].xres + fbdev->modes[mode].boeft_blank; in dma_desc_list() 175 fbdev->vb2->y_count = fbdev->modes[mode].vb2_lines; in dma_desc_list() [all …]
|
D | jz4740_fb.c | 278 struct fb_videomode *mode = jzfb->pdata->modes; in jzfb_get_mode() local 280 for (i = 0; i < jzfb->pdata->num_modes; ++i, ++mode) { in jzfb_get_mode() 281 if (mode->xres == var->xres && mode->yres == var->yres) in jzfb_get_mode() 282 return mode; in jzfb_get_mode() 291 struct fb_videomode *mode; in jzfb_check_var() local 297 mode = jzfb_get_mode(jzfb, var); in jzfb_check_var() 298 if (mode == NULL) in jzfb_check_var() 301 fb_videomode_to_var(var, mode); in jzfb_check_var() 355 struct fb_videomode *mode; in jzfb_set_par() local 363 mode = jzfb_get_mode(jzfb, var); in jzfb_set_par() [all …]
|
D | auo_k1901fb.c | 124 static void auok1901_update_region(struct auok190xfb_par *par, int mode, in auok1901_update_region() argument 142 1, y1+1, xres, y2-y1, mode); in auok1901_update_region() 156 args[0] = mode | AUOK1901_DDMA_ROTATE180(par->rotation); in auok1901_update_region() 174 int mode; in auok1901fb_dpy_update_pages() local 177 mode = AUOK190X_UPDATE_MODE(1); in auok1901fb_dpy_update_pages() 180 mode = AUOK190X_UPDATE_MODE(par->update_mode); in auok1901fb_dpy_update_pages() 185 mode |= AUOK190X_UPDATE_NONFLASH; in auok1901fb_dpy_update_pages() 187 auok1901_update_region(par, mode, y1, y2); in auok1901fb_dpy_update_pages() 192 int mode; in auok1901fb_dpy_update() local 200 mode = AUOK190X_UPDATE_MODE(0); in auok1901fb_dpy_update() [all …]
|
D | tmiofb.c | 316 struct fb_videomode *mode = info->mode; in tmiofb_hw_mode() local 323 data->lcd_mode(dev, mode); in tmiofb_hw_mode() 332 tmio_iowrite16(i += mode->hsync_len, par->lcr + LCR_HSE); in tmiofb_hw_mode() 333 tmio_iowrite16(i += mode->left_margin, par->lcr + LCR_HDS); in tmiofb_hw_mode() 334 tmio_iowrite16(i += mode->xres + mode->right_margin, par->lcr + LCR_HT); in tmiofb_hw_mode() 335 tmio_iowrite16(mode->xres, par->lcr + LCR_HNP); in tmiofb_hw_mode() 337 tmio_iowrite16(i += mode->vsync_len, par->lcr + LCR_VSE); in tmiofb_hw_mode() 338 tmio_iowrite16(i += mode->upper_margin, par->lcr + LCR_VDS); in tmiofb_hw_mode() 339 tmio_iowrite16(i += mode->yres, par->lcr + LCR_ILN); in tmiofb_hw_mode() 340 tmio_iowrite16(i += mode->lower_margin, par->lcr + LCR_VT); in tmiofb_hw_mode() [all …]
|
D | sh_mobile_hdmi.c | 288 struct fb_videomode mode; member 405 struct fb_videomode *mode = &hdmi->mode; in sh_hdmi_external_video_param() local 409 htotal = mode->xres + mode->right_margin + mode->left_margin in sh_hdmi_external_video_param() 410 + mode->hsync_len; in sh_hdmi_external_video_param() 411 hdelay = mode->hsync_len + mode->left_margin; in sh_hdmi_external_video_param() 412 hblank = mode->right_margin + hdelay; in sh_hdmi_external_video_param() 418 vtotal = mode->yres + mode->upper_margin + mode->lower_margin in sh_hdmi_external_video_param() 419 + mode->vsync_len; in sh_hdmi_external_video_param() 420 vdelay = mode->vsync_len + mode->upper_margin; in sh_hdmi_external_video_param() 421 vblank = mode->lower_margin + vdelay; in sh_hdmi_external_video_param() [all …]
|
/linux-4.1.27/Documentation/spi/ |
D | spidev_test.c | 34 static uint32_t mode; variable 116 if (mode & SPI_TX_QUAD) in transfer() 118 else if (mode & SPI_TX_DUAL) in transfer() 120 if (mode & SPI_RX_QUAD) in transfer() 122 else if (mode & SPI_RX_DUAL) in transfer() 124 if (!(mode & SPI_LOOP)) { in transfer() 125 if (mode & (SPI_TX_QUAD | SPI_TX_DUAL)) in transfer() 127 else if (mode & (SPI_RX_QUAD | SPI_RX_DUAL)) in transfer() 204 mode |= SPI_LOOP; in parse_opts() 207 mode |= SPI_CPHA; in parse_opts() [all …]
|
/linux-4.1.27/include/linux/ |
D | debugfs.h | 50 struct dentry *debugfs_create_file(const char *name, umode_t mode, 54 struct dentry *debugfs_create_file_size(const char *name, umode_t mode, 75 struct dentry *debugfs_create_u8(const char *name, umode_t mode, 77 struct dentry *debugfs_create_u16(const char *name, umode_t mode, 79 struct dentry *debugfs_create_u32(const char *name, umode_t mode, 81 struct dentry *debugfs_create_u64(const char *name, umode_t mode, 83 struct dentry *debugfs_create_x8(const char *name, umode_t mode, 85 struct dentry *debugfs_create_x16(const char *name, umode_t mode, 87 struct dentry *debugfs_create_x32(const char *name, umode_t mode, 89 struct dentry *debugfs_create_x64(const char *name, umode_t mode, [all …]
|
D | wait.h | 13 typedef int (*wait_queue_func_t)(wait_queue_t *wait, unsigned mode, int flags, void *key); 14 int default_wake_function(wait_queue_t *wait, unsigned mode, int flags, void *key); 149 void __wake_up(wait_queue_head_t *q, unsigned int mode, int nr, void *key); 150 void __wake_up_locked_key(wait_queue_head_t *q, unsigned int mode, void *key); 151 void __wake_up_sync_key(wait_queue_head_t *q, unsigned int mode, int nr, void *key); 152 void __wake_up_locked(wait_queue_head_t *q, unsigned int mode, int nr); 153 void __wake_up_sync(wait_queue_head_t *q, unsigned int mode, int nr); 915 void abort_exclusive_wait(wait_queue_head_t *q, wait_queue_t *wait, unsigned int mode, void *key); 916 long wait_woken(wait_queue_t *wait, unsigned mode, long timeout); 917 int woken_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key); [all …]
|
D | hrtimer.h | 338 enum hrtimer_mode mode); 342 enum hrtimer_mode mode); 348 enum hrtimer_mode mode) in hrtimer_init_on_stack() argument 350 hrtimer_init(timer, which_clock, mode); in hrtimer_init_on_stack() 357 const enum hrtimer_mode mode); 359 unsigned long range_ns, const enum hrtimer_mode mode); 363 const enum hrtimer_mode mode, int wakeup); 369 enum hrtimer_mode mode) in hrtimer_start_expires() argument 376 return hrtimer_start_range_ns(timer, soft, delta, mode); in hrtimer_start_expires() 431 const enum hrtimer_mode mode, [all …]
|
/linux-4.1.27/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 …]
|
D | tc86c001.c | 20 u16 mode, scr = inw(scr_port); in tc86c001_set_mode() local 24 case XFER_UDMA_4: mode = 0x00c0; break; in tc86c001_set_mode() 25 case XFER_UDMA_3: mode = 0x00b0; break; in tc86c001_set_mode() 26 case XFER_UDMA_2: mode = 0x00a0; break; in tc86c001_set_mode() 27 case XFER_UDMA_1: mode = 0x0090; break; in tc86c001_set_mode() 28 case XFER_UDMA_0: mode = 0x0080; break; in tc86c001_set_mode() 29 case XFER_MW_DMA_2: mode = 0x0070; break; in tc86c001_set_mode() 30 case XFER_MW_DMA_1: mode = 0x0060; break; in tc86c001_set_mode() 31 case XFER_MW_DMA_0: mode = 0x0050; break; in tc86c001_set_mode() 32 case XFER_PIO_4: mode = 0x0400; break; in tc86c001_set_mode() [all …]
|
D | ide-dma.c | 269 u8 mode = ((id[ATA_ID_CFA_MODES] & 0x38) >> 3) - 1; in ide_get_mode_mask() local 271 mask |= ((2 << mode) - 1) << 3; in ide_get_mode_mask() 282 u8 mode = id[ATA_ID_OLD_DMA_MODES] >> 8; in ide_get_mode_mask() local 288 if (mode <= 2) in ide_get_mode_mask() 289 mask = (2 << mode) - 1; in ide_get_mode_mask() 318 u8 mode = 0; in ide_find_dma_mode() local 331 mode = xfer_mode_bases[i] + x; in ide_find_dma_mode() 336 if (hwif->chipset == ide_acorn && mode == 0) { in ide_find_dma_mode() 342 mode = XFER_MW_DMA_1; in ide_find_dma_mode() 345 mode = min(mode, req_mode); in ide_find_dma_mode() [all …]
|
D | sis5513.c | 197 static void sis_ata16_program_timings(ide_drive_t *drive, const u8 mode) in sis_ata16_program_timings() argument 210 if (mode >= XFER_MW_DMA_0) { in sis_ata16_program_timings() 213 t1 |= mwdma_timings[mode - XFER_MW_DMA_0]; in sis_ata16_program_timings() 215 t1 |= pio_timings[mode - XFER_PIO_0]; in sis_ata16_program_timings() 220 static void sis_ata100_program_timings(ide_drive_t *drive, const u8 mode) in sis_ata100_program_timings() argument 229 if (mode >= XFER_MW_DMA_0) { in sis_ata100_program_timings() 236 t1 = mwdma_timings[mode - XFER_MW_DMA_0]; in sis_ata100_program_timings() 238 t1 = pio_timings[mode - XFER_PIO_0]; in sis_ata100_program_timings() 243 static void sis_ata133_program_timings(ide_drive_t *drive, const u8 mode) in sis_ata133_program_timings() argument 253 if (mode >= XFER_MW_DMA_0) { in sis_ata133_program_timings() [all …]
|
D | sc1200.c | 132 const u8 mode = drive->dma_mode; in sc1200_set_dma_mode() local 153 if (mode >= XFER_UDMA_0) in sc1200_set_dma_mode() 154 timings = udma_timing[pci_clock][mode - XFER_UDMA_0]; in sc1200_set_dma_mode() 156 timings = mwdma_timing[pci_clock][mode - XFER_MW_DMA_0]; in sc1200_set_dma_mode() 199 int mode = -1; in sc1200_set_pio_mode() local 206 case 200: mode = XFER_UDMA_0; break; in sc1200_set_pio_mode() 207 case 201: mode = XFER_UDMA_1; break; in sc1200_set_pio_mode() 208 case 202: mode = XFER_UDMA_2; break; in sc1200_set_pio_mode() 209 case 100: mode = XFER_MW_DMA_0; break; in sc1200_set_pio_mode() 210 case 101: mode = XFER_MW_DMA_1; break; in sc1200_set_pio_mode() [all …]
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | radeon_agp.c | 128 struct drm_agp_mode mode; in radeon_agp_init() local 157 mode.mode = info.mode; in radeon_agp_init() 162 agp_status = (RREG32(RADEON_AGP_STATUS) | RADEON_AGPv3_MODE) & mode.mode; in radeon_agp_init() 164 agp_status = mode.mode; in radeon_agp_init() 207 mode.mode &= ~RADEON_AGP_MODE_MASK; in radeon_agp_init() 211 mode.mode |= RADEON_AGPv3_8X_MODE; in radeon_agp_init() 215 mode.mode |= RADEON_AGPv3_4X_MODE; in radeon_agp_init() 221 mode.mode |= RADEON_AGP_4X_MODE; in radeon_agp_init() 224 mode.mode |= RADEON_AGP_2X_MODE; in radeon_agp_init() 228 mode.mode |= RADEON_AGP_1X_MODE; in radeon_agp_init() [all …]
|
D | radeon_legacy_crtc.c | 34 struct drm_display_mode *mode) in radeon_overscan_setup() argument 46 struct drm_display_mode *mode) in radeon_legacy_rmx_mode_set() argument 51 int xres = mode->hdisplay; in radeon_legacy_rmx_mode_set() 52 int yres = mode->vdisplay; in radeon_legacy_rmx_mode_set() 80 fp_crtc_h_total_disp = ((((mode->crtc_htotal / 8) - 1) & 0x3ff) in radeon_legacy_rmx_mode_set() 81 | ((((mode->crtc_hdisplay / 8) - 1) & 0x1ff) << 16)); in radeon_legacy_rmx_mode_set() 83 hsync_wid = (mode->crtc_hsync_end - mode->crtc_hsync_start) / 8; in radeon_legacy_rmx_mode_set() 86 hsync_start = mode->crtc_hsync_start - 8; in radeon_legacy_rmx_mode_set() 90 | ((mode->flags & DRM_MODE_FLAG_NHSYNC) in radeon_legacy_rmx_mode_set() 94 fp_crtc_v_total_disp = (((mode->crtc_vtotal - 1) & 0xffff) in radeon_legacy_rmx_mode_set() [all …]
|
D | atombios_crtc.c | 35 struct drm_display_mode *mode, in atombios_overscan_setup() argument 51 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in atombios_overscan_setup() 52 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in atombios_overscan_setup() 53 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup() 54 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup() 57 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in atombios_overscan_setup() 58 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in atombios_overscan_setup() 61 …args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup() 62 …args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2… in atombios_overscan_setup() 64 … args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in atombios_overscan_setup() [all …]
|
/linux-4.1.27/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_MODE_MII || in zmii_valid_mode() 53 mode == PHY_MODE_RMII || in zmii_valid_mode() 54 mode == PHY_MODE_SMII || in zmii_valid_mode() 55 mode == PHY_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-4.1.27/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 …]
|
D | fbmon.c | 382 struct fb_videomode *mode) in calc_mode_timings() argument 393 mode->xres = xres; in calc_mode_timings() 394 mode->yres = yres; in calc_mode_timings() 395 mode->pixclock = var->pixclock; in calc_mode_timings() 396 mode->refresh = refresh; in calc_mode_timings() 397 mode->left_margin = var->left_margin; in calc_mode_timings() 398 mode->right_margin = var->right_margin; in calc_mode_timings() 399 mode->upper_margin = var->upper_margin; in calc_mode_timings() 400 mode->lower_margin = var->lower_margin; in calc_mode_timings() 401 mode->hsync_len = var->hsync_len; in calc_mode_timings() [all …]
|
D | fbcvt.c | 271 struct fb_videomode *mode) in fb_cvt_convert_to_mode() argument 273 mode->refresh = cvt->f_refresh; in fb_cvt_convert_to_mode() 274 mode->pixclock = KHZ2PICOS(cvt->pixclock/1000); in fb_cvt_convert_to_mode() 275 mode->left_margin = cvt->h_back_porch; in fb_cvt_convert_to_mode() 276 mode->right_margin = cvt->h_front_porch; in fb_cvt_convert_to_mode() 277 mode->hsync_len = cvt->hsync; in fb_cvt_convert_to_mode() 278 mode->upper_margin = cvt->v_back_porch; in fb_cvt_convert_to_mode() 279 mode->lower_margin = cvt->v_front_porch; in fb_cvt_convert_to_mode() 280 mode->vsync_len = cvt->vsync; in fb_cvt_convert_to_mode() 282 mode->sync &= ~(FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT); in fb_cvt_convert_to_mode() [all …]
|
D | fbsysfs.c | 106 const struct fb_videomode *mode) in mode_string() argument 111 if (mode->flag & FB_MODE_IS_DETAILED) in mode_string() 113 if (mode->flag & FB_MODE_IS_VESA) in mode_string() 115 if (mode->flag & FB_MODE_IS_STANDARD) in mode_string() 118 if (mode->vmode & FB_VMODE_INTERLACED) in mode_string() 120 if (mode->vmode & FB_VMODE_DOUBLE) in mode_string() 124 m, mode->xres, mode->yres, v, mode->refresh); in mode_string() 134 struct fb_videomode *mode; in store_mode() local 143 mode = &modelist->mode; in store_mode() 144 i = mode_string(mstr, 0, mode); in store_mode() [all …]
|
/linux-4.1.27/arch/mips/include/asm/octeon/ |
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); 200 extern int cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode, [all …]
|
/linux-4.1.27/drivers/gpu/ipu-v3/ |
D | ipu-di.c | 210 u32 h_total = sig->mode.hactive + sig->mode.hsync_len + in ipu_di_sync_config_interlaced() 211 sig->mode.hback_porch + sig->mode.hfront_porch; in ipu_di_sync_config_interlaced() 212 u32 v_total = sig->mode.vactive + sig->mode.vsync_len + in ipu_di_sync_config_interlaced() 213 sig->mode.vback_porch + sig->mode.vfront_porch; in ipu_di_sync_config_interlaced() 232 .offset_count = sig->mode.vback_porch, in ipu_di_sync_config_interlaced() 238 .repeat_count = sig->mode.vactive / 2, in ipu_di_sync_config_interlaced() 252 .offset_count = sig->mode.hback_porch, in ipu_di_sync_config_interlaced() 254 .repeat_count = sig->mode.hactive, in ipu_di_sync_config_interlaced() 280 u32 h_total = sig->mode.hactive + sig->mode.hsync_len + in ipu_di_sync_config_noninterlaced() 281 sig->mode.hback_porch + sig->mode.hfront_porch; in ipu_di_sync_config_noninterlaced() [all …]
|
/linux-4.1.27/drivers/gpu/drm/tilcdc/ |
D | tilcdc_crtc.c | 99 (crtc->mode.vdisplay * fb->pitches[0]); in update_scanout() 170 static void tilcdc_crtc_dpms(struct drm_crtc *crtc, int mode) in tilcdc_crtc_dpms() argument 177 if (mode != DRM_MODE_DPMS_ON) in tilcdc_crtc_dpms() 178 mode = DRM_MODE_DPMS_OFF; in tilcdc_crtc_dpms() 180 if (tilcdc_crtc->dpms == mode) in tilcdc_crtc_dpms() 183 tilcdc_crtc->dpms = mode; in tilcdc_crtc_dpms() 187 if (mode == DRM_MODE_DPMS_ON) { in tilcdc_crtc_dpms() 213 const struct drm_display_mode *mode, in tilcdc_crtc_mode_fixup() argument 230 struct drm_display_mode *mode, in tilcdc_crtc_mode_set() argument 242 ret = tilcdc_crtc_mode_valid(crtc, mode); in tilcdc_crtc_mode_set() [all …]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
D | nouveau_agp.c | 17 int mode; member 33 unsigned long mode = info->mode; in get_agp_mode() local 40 mode &= ~PCI_AGP_COMMAND_FW; in get_agp_mode() 50 agpmode = quirk->mode; in get_agp_mode() 62 bool agpv3 = mode & 0x8; in get_agp_mode() 65 mode = (mode & ~0x7) | (rate & 0x7); in get_agp_mode() 68 return mode; in get_agp_mode() 117 dev->agp->mode) & PCI_AGP_COMMAND_FW) { in nouveau_agp_reset() 119 struct drm_agp_mode mode; in nouveau_agp_reset() local 125 mode.mode = get_agp_mode(drm, &info); in nouveau_agp_reset() [all …]
|
D | nouveau_connector.c | 504 &nv_crtc->base.mode, in nouveau_connector_set_property() 599 struct drm_display_mode *mode, *largest = NULL; in nouveau_connector_native_mode() local 602 list_for_each_entry(mode, &nv_connector->base.probed_modes, head) { in nouveau_connector_native_mode() 603 mode->vrefresh = drm_mode_vrefresh(mode); in nouveau_connector_native_mode() 604 if (helper->mode_valid(connector, mode) != MODE_OK || in nouveau_connector_native_mode() 605 (mode->flags & DRM_MODE_FLAG_INTERLACE)) in nouveau_connector_native_mode() 609 if (mode->type & DRM_MODE_TYPE_PREFERRED) { in nouveau_connector_native_mode() 611 return drm_mode_duplicate(dev, mode); in nouveau_connector_native_mode() 617 if (mode->hdisplay < high_w) in nouveau_connector_native_mode() 620 if (mode->hdisplay == high_w && mode->vdisplay < high_h) in nouveau_connector_native_mode() [all …]
|
/linux-4.1.27/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 …]
|
/linux-4.1.27/lib/xz/ |
D | xz_private.h | 67 # define DEC_IS_SINGLE(mode) ((mode) == XZ_SINGLE) argument 69 # define DEC_IS_SINGLE(mode) (false) argument 73 # define DEC_IS_PREALLOC(mode) ((mode) == XZ_PREALLOC) argument 75 # define DEC_IS_PREALLOC(mode) (false) argument 79 # define DEC_IS_DYNALLOC(mode) ((mode) == XZ_DYNALLOC) argument 81 # define DEC_IS_DYNALLOC(mode) (false) argument 85 # define DEC_IS_MULTI(mode) (true) argument 87 # define DEC_IS_MULTI(mode) ((mode) != XZ_SINGLE) argument 89 # define DEC_IS_MULTI(mode) (false) argument 109 XZ_EXTERN struct xz_dec_lzma2 *xz_dec_lzma2_create(enum xz_mode mode,
|
/linux-4.1.27/net/netfilter/ |
D | xt_SECMARK.c | 30 static u8 mode; variable 38 BUG_ON(info->mode != mode); in secmark_tg() 40 switch (mode) { in secmark_tg() 94 if (mode && mode != info->mode) { in secmark_tg_check() 96 "rules for mode %hu\n", mode, info->mode); in secmark_tg_check() 100 switch (info->mode) { in secmark_tg_check() 104 pr_info("invalid mode: %hu\n", info->mode); in secmark_tg_check() 112 if (!mode) in secmark_tg_check() 113 mode = info->mode; in secmark_tg_check() 119 switch (mode) { in secmark_tg_destroy()
|
D | xt_HL.c | 40 switch (info->mode) { in ttl_tg() 80 switch (info->mode) { in hl_tg6() 108 if (info->mode > IPT_TTL_MAXMODE) { in ttl_tg_check() 109 pr_info("TTL: invalid or unknown mode %u\n", info->mode); in ttl_tg_check() 112 if (info->mode != IPT_TTL_SET && info->ttl == 0) in ttl_tg_check() 121 if (info->mode > IP6T_HL_MAXMODE) { in hl_tg6_check() 122 pr_info("invalid or unknown mode %u\n", info->mode); in hl_tg6_check() 125 if (info->mode != IP6T_HL_SET && info->hop_limit == 0) { in hl_tg6_check()
|
/linux-4.1.27/drivers/parport/ |
D | ieee1284.c | 233 switch (port->ieee1284.mode) { in parport_ieee1284_terminate() 311 port->ieee1284.mode = IEEE1284_MODE_COMPAT; in parport_ieee1284_terminate() 334 int parport_negotiate (struct parport *port, int mode) in parport_negotiate() argument 337 if (mode == IEEE1284_MODE_COMPAT) in parport_negotiate() 342 int m = mode & ~IEEE1284_ADDR; in parport_negotiate() 349 if (port->ieee1284.mode == mode) in parport_negotiate() 353 if ((port->ieee1284.mode & ~IEEE1284_ADDR) == (mode & ~IEEE1284_ADDR)){ in parport_negotiate() 354 port->ieee1284.mode = mode; in parport_negotiate() 359 if (port->ieee1284.mode != IEEE1284_MODE_COMPAT) in parport_negotiate() 362 if (mode == IEEE1284_MODE_COMPAT) in parport_negotiate() [all …]
|
D | procfs.c | 236 #define PARPORT_PORT_DIR(CHILD) { .procname = NULL, .mode = 0555, .child = CHILD } 238 .mode = 0555, .child = CHILD } 239 #define PARPORT_DEV_DIR(CHILD) { .procname = "dev", .mode = 0555, .child = CHILD } 241 .mode = 0555, .child = NULL } 272 .mode = 0644, 281 .mode = 0444, 288 .mode = 0444, 295 .mode = 0444, 302 .mode = 0444, 311 .mode = 0444, [all …]
|
/linux-4.1.27/drivers/gpu/drm/shmobile/ |
D | shmob_drm_crtc.c | 77 const struct drm_display_mode *mode = &crtc->mode; in shmob_drm_crtc_setup_geometry() local 81 | ((mode->flags & DRM_MODE_FLAG_PVSYNC) ? 0 : LDMT1R_VPOL) in shmob_drm_crtc_setup_geometry() 82 | ((mode->flags & DRM_MODE_FLAG_PHSYNC) ? 0 : LDMT1R_HPOL) in shmob_drm_crtc_setup_geometry() 108 value = ((mode->hdisplay / 8) << 16) /* HDCN */ in shmob_drm_crtc_setup_geometry() 109 | (mode->htotal / 8); /* HTCN */ in shmob_drm_crtc_setup_geometry() 112 value = (((mode->hsync_end - mode->hsync_start) / 8) << 16) /* HSYNW */ in shmob_drm_crtc_setup_geometry() 113 | (mode->hsync_start / 8); /* HSYNP */ in shmob_drm_crtc_setup_geometry() 116 value = ((mode->hdisplay & 7) << 24) | ((mode->htotal & 7) << 16) in shmob_drm_crtc_setup_geometry() 117 | (((mode->hsync_end - mode->hsync_start) & 7) << 8) in shmob_drm_crtc_setup_geometry() 118 | (mode->hsync_start & 7); in shmob_drm_crtc_setup_geometry() [all …]
|
/linux-4.1.27/drivers/gpu/drm/msm/edp/ |
D | edp_bridge.c | 55 struct drm_display_mode *mode, in edp_bridge_mode_set() argument 64 mode->base.id, mode->name, in edp_bridge_mode_set() 65 mode->vrefresh, mode->clock, in edp_bridge_mode_set() 66 mode->hdisplay, mode->hsync_start, in edp_bridge_mode_set() 67 mode->hsync_end, mode->htotal, in edp_bridge_mode_set() 68 mode->vdisplay, mode->vsync_start, in edp_bridge_mode_set() 69 mode->vsync_end, mode->vtotal, in edp_bridge_mode_set() 70 mode->type, mode->flags); in edp_bridge_mode_set()
|
/linux-4.1.27/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_bridge.c | 133 struct drm_display_mode *mode, in hdmi_bridge_mode_set() argument 141 mode = adjusted_mode; in hdmi_bridge_mode_set() 143 hdmi->pixclock = mode->clock * 1000; in hdmi_bridge_mode_set() 145 hdmi->hdmi_mode = drm_match_cea_mode(mode) > 1; in hdmi_bridge_mode_set() 147 hstart = mode->htotal - mode->hsync_start; in hdmi_bridge_mode_set() 148 hend = mode->htotal - mode->hsync_start + mode->hdisplay; in hdmi_bridge_mode_set() 150 vstart = mode->vtotal - mode->vsync_start - 1; in hdmi_bridge_mode_set() 151 vend = mode->vtotal - mode->vsync_start + mode->vdisplay - 1; in hdmi_bridge_mode_set() 154 mode->htotal, mode->vtotal, hstart, hend, vstart, vend); in hdmi_bridge_mode_set() 157 HDMI_TOTAL_H_TOTAL(mode->htotal - 1) | in hdmi_bridge_mode_set() [all …]
|
/linux-4.1.27/drivers/char/ |
D | ppdev.c | 115 int mode; in pp_read() local 132 mode = pport->ieee1284.mode & ~(IEEE1284_DEVICEID | IEEE1284_ADDR); in pp_read() 142 if (mode == IEEE1284_MODE_EPP) { in pp_read() 153 if (pport->ieee1284.mode & IEEE1284_ADDR) { in pp_read() 197 int mode; in pp_write() local 211 mode = pport->ieee1284.mode & ~(IEEE1284_DEVICEID | IEEE1284_ADDR); in pp_write() 226 if ((pp->flags & PP_FASTWRITE) && (mode == IEEE1284_MODE_EPP)) { in pp_write() 228 if (pport->ieee1284.mode & IEEE1284_ADDR) { in pp_write() 314 static enum ieee1284_phase init_phase (int mode) in init_phase() argument 316 switch (mode & ~(IEEE1284_DEVICEID in init_phase() [all …]
|
/linux-4.1.27/arch/arm64/kvm/ |
D | regmap.c | 115 unsigned long mode = *vcpu_cpsr(vcpu) & COMPAT_PSR_MODE_MASK; in vcpu_reg32() local 117 switch (mode) { in vcpu_reg32() 119 mode &= ~PSR_MODE32_BIT; /* 0 ... 3 */ in vcpu_reg32() 123 mode = 4; in vcpu_reg32() 127 mode = 5; in vcpu_reg32() 131 mode = 0; /* SYS maps to USR */ in vcpu_reg32() 138 return reg_array + vcpu_reg_offsets[mode][reg_num]; in vcpu_reg32() 146 unsigned long mode = *vcpu_cpsr(vcpu) & COMPAT_PSR_MODE_MASK; in vcpu_spsr32() local 147 switch (mode) { in vcpu_spsr32() 149 mode = KVM_SPSR_SVC; in vcpu_spsr32() [all …]
|
/linux-4.1.27/drivers/gpu/drm/armada/ |
D | armada_fb.c | 38 struct drm_mode_fb_cmd2 *mode, struct armada_gem_object *obj) in armada_framebuffer_create() argument 44 switch (mode->pixel_format) { in armada_framebuffer_create() 84 drm_helper_mode_fill_fb_struct(&dfb->fb, mode); in armada_framebuffer_create() 104 struct drm_file *dfile, struct drm_mode_fb_cmd2 *mode) in armada_fb_create() argument 111 mode->width, mode->height, mode->pixel_format, in armada_fb_create() 112 mode->flags, mode->pitches[0], mode->pitches[1], in armada_fb_create() 113 mode->pitches[2]); in armada_fb_create() 116 if (drm_format_num_planes(mode->pixel_format) > 1 && in armada_fb_create() 117 (mode->handles[0] != mode->handles[1] || in armada_fb_create() 118 mode->handles[0] != mode->handles[2])) { in armada_fb_create() [all …]
|
D | armada_fbdev.c | 39 struct drm_mode_fb_cmd2 mode; in armada_fb_create() local 46 memset(&mode, 0, sizeof(mode)); in armada_fb_create() 47 mode.width = sizes->surface_width; in armada_fb_create() 48 mode.height = sizes->surface_height; in armada_fb_create() 49 mode.pitches[0] = armada_pitch(mode.width, sizes->surface_bpp); in armada_fb_create() 50 mode.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in armada_fb_create() 53 size = mode.pitches[0] * mode.height; in armada_fb_create() 72 dfb = armada_framebuffer_create(dev, &mode, obj); in armada_fb_create()
|
/linux-4.1.27/kernel/sched/ |
D | wait.c | 65 static void __wake_up_common(wait_queue_head_t *q, unsigned int mode, in __wake_up_common() argument 73 if (curr->func(curr, mode, wake_flags, key) && in __wake_up_common() 89 void __wake_up(wait_queue_head_t *q, unsigned int mode, in __wake_up() argument 95 __wake_up_common(q, mode, nr_exclusive, 0, key); in __wake_up() 103 void __wake_up_locked(wait_queue_head_t *q, unsigned int mode, int nr) in __wake_up_locked() argument 105 __wake_up_common(q, mode, nr, 0, NULL); in __wake_up_locked() 109 void __wake_up_locked_key(wait_queue_head_t *q, unsigned int mode, void *key) in __wake_up_locked_key() argument 111 __wake_up_common(q, mode, 1, 0, key); in __wake_up_locked_key() 132 void __wake_up_sync_key(wait_queue_head_t *q, unsigned int mode, in __wake_up_sync_key() argument 145 __wake_up_common(q, mode, nr_exclusive, wake_flags, key); in __wake_up_sync_key() [all …]
|
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf-phy.c | 69 int mxl1x1sf_set_device_mode(struct mxl111sf_state *state, int mode) in mxl1x1sf_set_device_mode() argument 73 mxl_debug("(%s)", MXL_SOC_MODE == mode ? in mxl1x1sf_set_device_mode() 78 MXL_SOC_MODE == mode ? 0x01 : 0x00); in mxl1x1sf_set_device_mode() 83 0x7d, 0x40, MXL_SOC_MODE == mode ? in mxl1x1sf_set_device_mode() 91 state->device_mode = mode; in mxl1x1sf_set_device_mode() 127 u8 mode, tmp; in mxl111sf_config_mpeg_in() local 137 mxl111sf_read_reg(state, V6_MPEG_IN_CLK_INV_REG, &mode); in mxl111sf_config_mpeg_in() 140 mode &= ~V6_INVERTED_CLK_PHASE; in mxl111sf_config_mpeg_in() 142 mode |= V6_INVERTED_CLK_PHASE; in mxl111sf_config_mpeg_in() 144 ret = mxl111sf_write_reg(state, V6_MPEG_IN_CLK_INV_REG, mode); in mxl111sf_config_mpeg_in() [all …]
|
/linux-4.1.27/drivers/leds/ |
D | leds-netxbig.c | 138 enum netxbig_led_mode mode; member 143 static int netxbig_led_get_timer_mode(enum netxbig_led_mode *mode, in netxbig_led_get_timer_mode() argument 154 *mode = timer[i].mode; in netxbig_led_get_timer_mode() 167 enum netxbig_led_mode mode; in netxbig_led_blink_set() local 172 ret = netxbig_led_get_timer_mode(&mode, *delay_on, *delay_off, in netxbig_led_blink_set() 177 mode_val = led_dat->mode_val[mode]; in netxbig_led_blink_set() 184 led_dat->mode = mode; in netxbig_led_blink_set() 196 enum netxbig_led_mode mode; in netxbig_led_set() local 204 mode = NETXBIG_LED_OFF; in netxbig_led_set() 208 mode = NETXBIG_LED_SATA; in netxbig_led_set() [all …]
|
D | leds-ns2.c | 58 enum ns2_led_modes mode; member 79 enum ns2_led_modes *mode) in ns2_led_get_mode() argument 94 *mode = ns2_led_modval[i].mode; in ns2_led_get_mode() 106 enum ns2_led_modes mode) in ns2_led_set_mode() argument 114 if (mode == ns2_led_modval[i].mode) { in ns2_led_set_mode() 130 enum ns2_led_modes mode; in ns2_led_set() local 133 mode = NS_V2_LED_OFF; in ns2_led_set() 135 mode = NS_V2_LED_SATA; in ns2_led_set() 137 mode = NS_V2_LED_ON; in ns2_led_set() 139 ns2_led_set_mode(led_dat, mode); in ns2_led_set() [all …]
|
D | leds-lp5562.c | 53 #define LP5562_ENG1_IS_LOADING(mode) \ argument 54 ((mode & LP5562_MODE_ENG1_M) == LP5562_LOAD_ENG1) 55 #define LP5562_ENG2_IS_LOADING(mode) \ argument 56 ((mode & LP5562_MODE_ENG2_M) == LP5562_LOAD_ENG2) 57 #define LP5562_ENG3_IS_LOADING(mode) \ argument 58 ((mode & LP5562_MODE_ENG3_M) == LP5562_LOAD_ENG3) 159 u8 mode; in lp5562_run_engine() local 178 ret = lp55xx_read(chip, LP5562_REG_OP_MODE, &mode); in lp5562_run_engine() 187 if (LP5562_ENG1_IS_LOADING(mode)) { in lp5562_run_engine() 188 mode = (mode & ~LP5562_MODE_ENG1_M) | LP5562_RUN_ENG1; in lp5562_run_engine() [all …]
|
D | leds-lp8501.c | 75 #define LP8501_ENG1_IS_LOADING(mode) \ argument 76 ((mode & LP8501_MODE_ENG1_M) == LP8501_LOAD_ENG1) 77 #define LP8501_ENG2_IS_LOADING(mode) \ argument 78 ((mode & LP8501_MODE_ENG2_M) == LP8501_LOAD_ENG2) 79 #define LP8501_ENG3_IS_LOADING(mode) \ argument 80 ((mode & LP8501_MODE_ENG3_M) == LP8501_LOAD_ENG3) 163 u8 mode; in lp8501_run_engine() local 178 ret = lp55xx_read(chip, LP8501_REG_OP_MODE, &mode); in lp8501_run_engine() 187 if (LP8501_ENG1_IS_LOADING(mode)) { in lp8501_run_engine() 188 mode = (mode & ~LP8501_MODE_ENG1_M) | LP8501_RUN_ENG1; in lp8501_run_engine() [all …]
|
D | leds-lm3530.c | 86 const char *mode; member 110 enum lm3530_mode mode; member 150 if (sysfs_streq(str, mode_map[i].mode)) in lm3530_get_mode_from_str() 242 switch (drvdata->mode) { in lm3530_init_registers() 289 drvdata->mode == LM3530_BL_MODE_PWM) { in lm3530_init_registers() 315 switch (drvdata->mode) { in lm3530_brightness_set() 359 if (drvdata->mode == mode_map[i].mode_val) in lm3530_mode_get() 360 len += sprintf(buf + len, "[%s] ", mode_map[i].mode); in lm3530_mode_get() 362 len += sprintf(buf + len, "%s ", mode_map[i].mode); in lm3530_mode_get() 376 int mode, err; in lm3530_mode_set() local [all …]
|
D | leds-lp5521.c | 100 #define LP5521_R_IS_LOADING(mode) \ argument 101 ((mode & LP5521_MODE_R_M) == LP5521_LOAD_R) 102 #define LP5521_G_IS_LOADING(mode) \ argument 103 ((mode & LP5521_MODE_G_M) == LP5521_LOAD_G) 104 #define LP5521_B_IS_LOADING(mode) \ argument 105 ((mode & LP5521_MODE_B_M) == LP5521_LOAD_B) 177 u8 mode; in lp5521_run_engine() local 193 ret = lp55xx_read(chip, LP5521_REG_OP_MODE, &mode); in lp5521_run_engine() 202 if (LP5521_R_IS_LOADING(mode)) { in lp5521_run_engine() 203 mode = (mode & ~LP5521_MODE_R_M) | LP5521_RUN_R; in lp5521_run_engine() [all …]
|
D | leds-max8997.c | 53 enum max8997_led_mode mode) in max8997_led_set_mode() argument 59 switch (mode) { in max8997_led_set_mode() 99 led->led_mode = mode; in max8997_led_set_mode() 208 enum max8997_led_mode mode; in max8997_led_store_mode() local 213 mode = MAX8997_FLASH_PIN_CONTROL_MODE; in max8997_led_store_mode() 215 mode = MAX8997_MOVIE_PIN_CONTROL_MODE; in max8997_led_store_mode() 217 mode = MAX8997_FLASH_MODE; in max8997_led_store_mode() 219 mode = MAX8997_MOVIE_MODE; in max8997_led_store_mode() 221 mode = MAX8997_NONE; in max8997_led_store_mode() 223 max8997_led_set_mode(led, mode); in max8997_led_store_mode() [all …]
|
/linux-4.1.27/drivers/media/i2c/ |
D | sony-btf-mpx.c | 175 int mode = t->mpxmode; in mpx_setup() local 190 mode++; in mpx_setup() 192 if (mpx_audio_modes[mode].audio_mode != AUD_MONO) { in mpx_setup() 195 switch (mpx_audio_modes[mode].audio_mode) { in mpx_setup() 197 source = mpx_audio_modes[mode].source; in mpx_setup() 210 source = mpx_audio_modes[mode].source; in mpx_setup() 219 source |= mpx_audio_modes[mode].source & 0x00ff; in mpx_setup() 221 source = mpx_audio_modes[mode].source; in mpx_setup() 223 mpx_write(client, 0x10, 0x0030, mpx_audio_modes[mode].modus); in mpx_setup() 225 mpx_write(client, 0x12, 0x0013, mpx_audio_modes[mode].acb); in mpx_setup() [all …]
|
D | tvaudio.c | 67 typedef void (*setaudmode)(struct CHIPSTATE*, int mode); 314 int mode, selected; in chip_thread() local 333 mode = desc->getrxsubchans(chip); in chip_thread() 334 if (mode == chip->prevmode) in chip_thread() 340 chip->prevmode = mode; in chip_thread() 345 if (mode & V4L2_TUNER_SUB_LANG1) in chip_thread() 350 if (mode & V4L2_TUNER_SUB_LANG1) in chip_thread() 352 else if (mode & V4L2_TUNER_SUB_STEREO) in chip_thread() 356 if (mode & V4L2_TUNER_SUB_LANG2) in chip_thread() 358 else if (mode & V4L2_TUNER_SUB_STEREO) in chip_thread() [all …]
|
/linux-4.1.27/lib/zlib_inflate/ |
D | inflate.c | 32 state->mode = HEAD; in zlib_inflateReset() 153 if (state->mode == STORED && state->bits == 0) { in zlib_inflateSyncPacket() 154 state->mode = TYPE; in zlib_inflateSyncPacket() 344 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */ in zlib_inflate() 350 switch (state->mode) { in zlib_inflate() 353 state->mode = TYPEDO; in zlib_inflate() 360 state->mode = BAD; in zlib_inflate() 365 state->mode = BAD; in zlib_inflate() 372 state->mode = BAD; in zlib_inflate() 377 state->mode = hold & 0x200 ? DICTID : TYPE; in zlib_inflate() [all …]
|
/linux-4.1.27/arch/arm/mach-tegra/ |
D | pm.c | 171 static void tegra_pm_set(enum tegra_suspend_mode mode) in tegra_pm_set() argument 188 tegra_pmc_enter_suspend_mode(mode); in tegra_pm_set() 205 enum tegra_suspend_mode mode) in tegra_pm_validate_suspend_mode() argument 210 if (mode > TEGRA_SUSPEND_LP1) in tegra_pm_validate_suspend_mode() 213 return mode; in tegra_pm_validate_suspend_mode() 319 enum tegra_suspend_mode mode = tegra_pmc_get_suspend_mode(); in tegra_suspend_enter() local 321 if (WARN_ON(mode < TEGRA_SUSPEND_NONE || in tegra_suspend_enter() 322 mode >= TEGRA_MAX_SUSPEND_MODE)) in tegra_suspend_enter() 325 pr_info("Entering suspend state %s\n", lp_state[mode]); in tegra_suspend_enter() 327 tegra_pm_set(mode); in tegra_suspend_enter() [all …]
|
/linux-4.1.27/net/ceph/ |
D | ceph_fs.c | 33 int mode; in ceph_flags_to_mode() local 42 mode = CEPH_FILE_MODE_WR; in ceph_flags_to_mode() 45 mode = CEPH_FILE_MODE_RD; in ceph_flags_to_mode() 49 mode = CEPH_FILE_MODE_RDWR; in ceph_flags_to_mode() 54 mode |= CEPH_FILE_MODE_LAZY; in ceph_flags_to_mode() 57 return mode; in ceph_flags_to_mode() 61 int ceph_caps_for_mode(int mode) in ceph_caps_for_mode() argument 65 if (mode & CEPH_FILE_MODE_RD) in ceph_caps_for_mode() 68 if (mode & CEPH_FILE_MODE_WR) in ceph_caps_for_mode() 73 if (mode & CEPH_FILE_MODE_LAZY) in ceph_caps_for_mode()
|
/linux-4.1.27/Documentation/fb/ |
D | s3fb.txt | 27 * 8 bpp pseudocolor mode (with 18bit palette) 29 * 24 bpp truecolor mode (RGB 888) on (only on Virge VX) 30 * 32 bpp truecolor mode (RGB 888) on (not on Virge VX) 31 * text mode (activated by bpp = 0) 32 * interlaced mode variant (not available in text mode) 33 * doublescan mode variant (not available in text mode) 38 Text mode is supported even in higher resolutions, but there is limitation to 41 limitation is not enforced by driver. Text mode supports 8bit wide fonts only 42 (hardware limitation) and 16bit tall fonts (driver limitation). Text mode 45 There are two 4 bpp modes. First mode (selected if nonstd == 0) is mode with [all …]
|
D | vt8623fb.txt | 19 * 8 bpp pseudocolor mode (with 18bit palette) 20 * 16 bpp truecolor mode (RGB 565) 21 * 32 bpp truecolor mode (RGB 888) 22 * text mode (activated by bpp = 0) 23 * doublescan mode variant (not available in text mode) 28 Text mode is supported even in higher resolutions, but there is limitation to 30 driver. Text mode supports 8bit wide fonts only (hardware limitation) and 33 There are two 4 bpp modes. First mode (selected if nonstd == 0) is mode with 34 packed pixels, high nibble first. Second mode (selected if nonstd == 1) is mode 48 * interlaced mode variant [all …]
|
D | arkfb.txt | 20 * 8 bpp pseudocolor mode (with 18bit palette) 22 * 24 bpp truecolor mode (RGB 888) 23 * 32 bpp truecolor mode (RGB 888) 24 * text mode (activated by bpp = 0) 25 * doublescan mode variant (not available in text mode) 29 Text mode is supported even in higher resolutions, but there is limitation to 31 hardware). This limitation is not enforced by driver. Text mode supports 8bit 33 limitation). Unfortunately character attributes (like color) in text mode are 36 There are two 4 bpp modes. First mode (selected if nonstd == 0) is mode with 37 packed pixels, high nibble first. Second mode (selected if nonstd == 1) is mode [all …]
|
D | viafb.modes | 28 mode "640x480-60" 31 timings 39722 48 16 33 10 96 2 endmode mode "480x640-60" 52 mode "640x480-75" 73 mode "640x480-85" 94 mode "640x480-100" 115 mode "640x480-120" 136 mode "720x480-60" 157 mode "800x480-60" 178 mode "720x576-60" 199 mode "800x600-60" [all …]
|
D | vesafb.txt | 7 The idea is simple: Turn on graphics mode at boot time with the help 12 graphics mode. Switching mode later on (in protected mode) is 13 impossible; BIOS calls work in real mode only. VESA BIOS Extensions 26 * graphic mode is slower than text mode... 35 You should compile in both vgacon (for text mode) and vesafb (for 36 graphics mode). Which of them takes over the console depends on 37 whenever the specified mode is text or graphics. 40 vga=ask and hit return. The mode you wish to use is derived from the 41 VESA mode number. Here are those VESA mode numbers: 50 The video mode number of the Linux kernel is the VESA mode number plus [all …]
|
D | sisfb.txt | 46 append="video=sisfb:mode:1024x768x16,mem:12288,rate:75" 50 modprobe sisfb mode=1024x768x16 rate=75 mem=12288 54 the parameter format is video=sisfb:mode:none or video=sisfb:mode:1024x768x16 55 (or whatever mode you want to use, alternatively using any other format 56 described above or the vesa keyword instead of mode). If compiled as a module, 57 the parameter format reads mode=none or mode=1024x768x16 (or whatever mode you 62 video=sisfb:mode:1024x768x16,rate:75,mem:12288 74 The desired display mode can be specified using the keyword "mode" with 80 - or simply use the VESA mode number in hexadecimal or decimal. 87 Additionally, sisfb understands the keyword "vesa" followed by a VESA mode [all …]
|
/linux-4.1.27/drivers/video/fbdev/i810/ |
D | i810_dvt.c | 248 u32 mode, pixclock; in i810fb_fill_var_timings() local 254 mode = i810fb_find_best_mode(xres, yres, pixclock); in i810fb_fill_var_timings() 256 total = (std_modes[mode].cr00 | (std_modes[mode].cr35 & 1) << 8) + 3; in i810fb_fill_var_timings() 259 var->pixclock = 1000000000 / std_modes[mode].pixclock; in i810fb_fill_var_timings() 260 var->right_margin = (std_modes[mode].cr04 << 3) - xres; in i810fb_fill_var_timings() 261 var->hsync_len = ((std_modes[mode].cr05 & 0x1F) - in i810fb_fill_var_timings() 262 (std_modes[mode].cr04 & 0x1F)) << 3; in i810fb_fill_var_timings() 266 if (~(std_modes[mode].msr & (1 << 6))) in i810fb_fill_var_timings() 268 if (~(std_modes[mode].msr & (1 << 7))) in i810fb_fill_var_timings() 271 total = (std_modes[mode].cr06 | (std_modes[mode].cr30 & 0xF) << 8) + 2; in i810fb_fill_var_timings() [all …]
|
/linux-4.1.27/net/rxrpc/ |
D | sysctl.c | 36 .mode = 0644, 44 .mode = 0644, 52 .mode = 0644, 60 .mode = 0644, 70 .mode = 0644, 78 .mode = 0644, 88 .mode = 0644, 96 .mode = 0644, 106 .mode = 0644, 115 .mode = 0644, [all …]
|
/linux-4.1.27/net/ax25/ |
D | sysctl_net_ax25.c | 36 .mode = 0644, 44 .mode = 0644, 52 .mode = 0644, 60 .mode = 0644, 68 .mode = 0644, 76 .mode = 0644, 84 .mode = 0644, 92 .mode = 0644, 100 .mode = 0644, 108 .mode = 0644, [all …]
|
/linux-4.1.27/usr/ |
D | gen_init_cpio.c | 103 unsigned int mode, uid_t uid, gid_t gid) in cpio_mkslink() argument 113 S_IFLNK | mode, /* mode */ in cpio_mkslink() 137 unsigned int mode; in cpio_mkslink_line() local 142 …if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &ui… in cpio_mkslink_line() 146 rc = cpio_mkslink(name, target, mode, uid, gid); in cpio_mkslink_line() 151 static int cpio_mkgeneric(const char *name, unsigned int mode, in cpio_mkgeneric() argument 162 mode, /* mode */ in cpio_mkgeneric() 187 mode_t mode; member 193 .mode = S_IFDIR 197 .mode = S_IFIFO [all …]
|
/linux-4.1.27/lib/ |
D | fault-inject.c | 162 static struct dentry *debugfs_create_ul(const char *name, umode_t mode, in debugfs_create_ul() argument 165 return debugfs_create_file(name, mode, parent, value, &fops_ul); in debugfs_create_ul() 182 const char *name, umode_t mode, in debugfs_create_stacktrace_depth() argument 185 return debugfs_create_file(name, mode, parent, value, in debugfs_create_stacktrace_depth() 194 umode_t mode = S_IFREG | S_IRUSR | S_IWUSR; in fault_create_debugfs_attr() local 201 if (!debugfs_create_ul("probability", mode, dir, &attr->probability)) in fault_create_debugfs_attr() 203 if (!debugfs_create_ul("interval", mode, dir, &attr->interval)) in fault_create_debugfs_attr() 205 if (!debugfs_create_atomic_t("times", mode, dir, &attr->times)) in fault_create_debugfs_attr() 207 if (!debugfs_create_atomic_t("space", mode, dir, &attr->space)) in fault_create_debugfs_attr() 209 if (!debugfs_create_ul("verbose", mode, dir, &attr->verbose)) in fault_create_debugfs_attr() [all …]
|
/linux-4.1.27/net/netrom/ |
D | sysctl_net_netrom.c | 42 .mode = 0644, 51 .mode = 0644, 60 .mode = 0644, 69 .mode = 0644, 78 .mode = 0644, 87 .mode = 0644, 96 .mode = 0644, 105 .mode = 0644, 114 .mode = 0644, 123 .mode = 0644, [all …]
|
/linux-4.1.27/drivers/net/ethernet/brocade/bna/ |
D | bna.h | 240 #define is_xxx_enable(mode, bitmask, xxx) ((bitmask & xxx) && (mode & xxx)) argument 242 #define is_xxx_disable(mode, bitmask, xxx) ((bitmask & xxx) && !(mode & xxx)) argument 244 #define xxx_enable(mode, bitmask, xxx) \ argument 247 mode |= xxx; \ 250 #define xxx_disable(mode, bitmask, xxx) \ argument 253 mode &= ~xxx; \ 256 #define xxx_inactive(mode, bitmask, xxx) \ argument 259 mode &= ~xxx; \ 262 #define is_promisc_enable(mode, bitmask) \ argument 263 is_xxx_enable(mode, bitmask, BNA_RXMODE_PROMISC) [all …]
|
/linux-4.1.27/Documentation/devicetree/bindings/hsi/ |
D | client-devices.txt | 9 - hsi-rx-mode: Receiver Bit transmission mode ("stream" or "frame") 10 - hsi-tx-mode: Transmitter Bit transmission mode ("stream" or "frame") 11 - hsi-mode: May be used instead hsi-rx-mode and hsi-tx-mode if 12 the transmission mode is the same for receiver and 16 - hsi-arb-mode: Arbitration mode for TX frame ("round-robin", "priority") 37 hsi-mode = "frame"; 39 hsi-arb-mode = "round-robin";
|
/linux-4.1.27/drivers/net/ethernet/ti/ |
D | cpsw-phy-sel.c | 48 u32 mode = 0; in cpsw_gmii_sel_am3352() local 54 mode = AM33XX_GMII_SEL_MODE_RMII; in cpsw_gmii_sel_am3352() 61 mode = AM33XX_GMII_SEL_MODE_RGMII; in cpsw_gmii_sel_am3352() 66 mode = AM33XX_GMII_SEL_MODE_MII; in cpsw_gmii_sel_am3352() 71 mode <<= slave * 2; in cpsw_gmii_sel_am3352() 75 mode |= AM33XX_GMII_SEL_RMII1_IO_CLK_EN; in cpsw_gmii_sel_am3352() 77 mode |= AM33XX_GMII_SEL_RMII2_IO_CLK_EN; in cpsw_gmii_sel_am3352() 81 reg |= mode; in cpsw_gmii_sel_am3352() 91 u32 mode = 0; in cpsw_gmii_sel_dra7xx() local 97 mode = AM33XX_GMII_SEL_MODE_RMII; in cpsw_gmii_sel_dra7xx() [all …]
|
/linux-4.1.27/net/core/ |
D | sysctl_net_core.c | 42 .mode = table->mode in rps_sock_flow_sysctl() 240 .mode = 0644, 248 .mode = 0644, 256 .mode = 0644, 264 .mode = 0644, 272 .mode = 0644, 279 .mode = 0644, 286 .mode = 0444, 294 .mode = 0644, 302 .mode = 0644, [all …]
|
/linux-4.1.27/net/ |
D | sysctl_net.c | 51 int mode = (table->mode >> 6) & 7; in net_ctl_permissions() local 52 return (mode << 6) | (mode << 3) | mode; in net_ctl_permissions() 56 int mode = (table->mode >> 3) & 7; in net_ctl_permissions() local 57 return (mode << 3) | mode; in net_ctl_permissions() 59 return table->mode; in net_ctl_permissions()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/ |
D | tvnv17.c | 216 struct drm_display_mode *mode; in nv17_tv_get_ld_modes() local 218 mode = drm_mode_duplicate(encoder->dev, tv_mode); in nv17_tv_get_ld_modes() 220 mode->clock = tv_norm->tv_enc_mode.vrefresh * in nv17_tv_get_ld_modes() 221 mode->htotal / 1000 * in nv17_tv_get_ld_modes() 222 mode->vtotal / 1000; in nv17_tv_get_ld_modes() 224 if (mode->flags & DRM_MODE_FLAG_DBLSCAN) in nv17_tv_get_ld_modes() 225 mode->clock *= 2; in nv17_tv_get_ld_modes() 227 if (mode->hdisplay == tv_norm->tv_enc_mode.hdisplay && in nv17_tv_get_ld_modes() 228 mode->vdisplay == tv_norm->tv_enc_mode.vdisplay) in nv17_tv_get_ld_modes() 229 mode->type |= DRM_MODE_TYPE_PREFERRED; in nv17_tv_get_ld_modes() [all …]
|
D | dfp.c | 113 void nv04_dfp_update_fp_control(struct drm_encoder *encoder, int mode) in nv04_dfp_update_fp_control() argument 120 if (mode == DRM_MODE_DPMS_ON) { in nv04_dfp_update_fp_control() 183 const struct drm_display_mode *mode, in nv04_dfp_mode_fixup() argument 191 mode->hdisplay > nv_connector->native_mode->hdisplay || in nv04_dfp_mode_fixup() 192 mode->vdisplay > nv_connector->native_mode->vdisplay) { in nv04_dfp_mode_fixup() 193 nv_encoder->mode = *adjusted_mode; in nv04_dfp_mode_fixup() 196 nv_encoder->mode = *nv_connector->native_mode; in nv04_dfp_mode_fixup() 280 struct drm_display_mode *mode, in nv04_dfp_mode_set() argument 291 struct drm_display_mode *output_mode = &nv_encoder->mode; in nv04_dfp_mode_set() 456 run_tmds_table(dev, dcbe, head, nv_encoder->mode.clock); in nv04_dfp_commit() [all …]
|
/linux-4.1.27/drivers/staging/fbtft/ |
D | fbtft_device.c | 57 static int mode = -1; variable 58 module_param(mode, int, 0); 59 MODULE_PARM_DESC(mode, "SPI mode (override device default)"); 210 .mode = SPI_MODE_0, 230 .mode = SPI_MODE_0, 253 .mode = SPI_MODE_0, 272 .mode = SPI_MODE_0, 292 .mode = SPI_MODE_0, 312 .mode = SPI_MODE_0, 347 .mode = SPI_MODE_0, [all …]
|
/linux-4.1.27/net/irda/ |
D | irsysctl.c | 119 .mode = 0644, 126 .mode = 0644, 134 .mode = 0644, 142 .mode = 0644, 151 .mode = 0644, 158 .mode = 0644, 167 .mode = 0644, 176 .mode = 0644, 185 .mode = 0644, 194 .mode = 0644, [all …]
|
/linux-4.1.27/net/sctp/ |
D | sysctl.c | 82 .mode = 0644, 89 .mode = 0644, 96 .mode = 0644, 108 .mode = 0644, 117 .mode = 0644, 126 .mode = 0644, 135 .mode = 0644, 144 .mode = 0644, 153 .mode = 0644, 162 .mode = 0644, [all …]
|
/linux-4.1.27/arch/arm/boot/dts/ |
D | am437x-gp-evm.dts | 274 0x1B0 (PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_hd mode 0*/ 275 0x1B4 (PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_vd mode 0*/ 276 0x1C0 (PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_pclk mode 0*/ 277 0x1C4 (PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data8 mode 0*/ 278 0x1C8 (PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data9 mode 0*/ 279 0x208 (PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data0 mode 0*/ 280 0x20C (PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data1 mode 0*/ 281 0x210 (PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data2 mode 0*/ 282 0x214 (PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data3 mode 0*/ 283 0x218 (PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data4 mode 0*/ [all …]
|
/linux-4.1.27/net/rose/ |
D | sysctl_net_rose.c | 32 .mode = 0644, 41 .mode = 0644, 50 .mode = 0644, 59 .mode = 0644, 68 .mode = 0644, 77 .mode = 0644, 86 .mode = 0644, 95 .mode = 0644, 104 .mode = 0644, 113 .mode = 0644,
|
/linux-4.1.27/fs/xfs/ |
D | xfs_sysctl.c | 82 .mode = 0644, 91 .mode = 0644, 100 .mode = 0644, 110 .mode = 0644, 119 .mode = 0644, 128 .mode = 0644, 137 .mode = 0644, 146 .mode = 0644, 155 .mode = 0644, 164 .mode = 0644, [all …]
|
/linux-4.1.27/net/sunrpc/xprtrdma/ |
D | svc_rdma.c | 127 .mode = 0644, 136 .mode = 0644, 145 .mode = 0644, 155 .mode = 0644, 162 .mode = 0644, 169 .mode = 0644, 176 .mode = 0644, 183 .mode = 0644, 190 .mode = 0644, 197 .mode = 0644, [all …]
|
/linux-4.1.27/Documentation/devicetree/bindings/regmap/ |
D | regmap.txt | 3 The endianness mode of CPU & Device scenarios: 15 meaning that the CPU and the Device are in the same endianness mode, 19 Scenario 1 : CPU in LE mode & device in LE mode. 26 Scenario 2 : CPU in LE mode & device in BE mode. 34 Scenario 3 : CPU in BE mode & device in BE mode. 41 Scenario 4 : CPU in BE mode & device in LE mode.
|
/linux-4.1.27/arch/x86/kernel/ |
D | sysfb_simplefb.c | 32 struct simplefb_platform_data *mode) in parse_mode() argument 53 mode->format = f->name; in parse_mode() 54 mode->width = si->lfb_width; in parse_mode() 55 mode->height = si->lfb_height; in parse_mode() 56 mode->stride = si->lfb_linelength; in parse_mode() 65 const struct simplefb_platform_data *mode) in create_simplefb() argument 73 len = mode->height * mode->stride; in create_simplefb() 90 &res, 1, mode, sizeof(*mode)); in create_simplefb()
|
/linux-4.1.27/sound/isa/sb/ |
D | sb16_main.c | 60 if ((csp->mode & SNDRV_SB_CSP_MODE_DSP_WRITE) && in snd_sb16_csp_playback_prepare() 67 } else if ((csp->mode & SNDRV_SB_CSP_MODE_QSOUND) && (csp->q_enabled)) { in snd_sb16_csp_playback_prepare() 86 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_PLAYBACK_16) ? in snd_sb16_csp_playback_prepare() 108 if ((csp->mode & SNDRV_SB_CSP_MODE_DSP_READ) && in snd_sb16_csp_capture_prepare() 124 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_CAPTURE_16) ? in snd_sb16_csp_capture_prepare() 160 if (csp->mode & SNDRV_SB_CSP_MODE_DSP_WRITE) { in snd_sb16_csp_playback_open() 191 if (csp->mode & SNDRV_SB_CSP_MODE_DSP_READ) { in snd_sb16_csp_capture_open() 231 if (chip->mode & (channel == SNDRV_PCM_STREAM_PLAYBACK ? SB_MODE_PLAYBACK_16 : SB_MODE_CAPTURE_16)) in snd_sb16_setup_rate() 235 if (!(chip->mode & SB_RATE_LOCK)) { in snd_sb16_setup_rate() 276 dma = (chip->mode & SB_MODE_PLAYBACK_8) ? chip->dma8 : chip->dma16; in snd_sb16_playback_prepare() [all …]
|
/linux-4.1.27/drivers/gpu/drm/udl/ |
D | udl_modeset.c | 163 static char *udl_set_vid_cmds(char *wrptr, struct drm_display_mode *mode) in udl_set_vid_cmds() argument 170 xds = mode->crtc_htotal - mode->crtc_hsync_start; in udl_set_vid_cmds() 173 xde = xds + mode->crtc_hdisplay; in udl_set_vid_cmds() 177 yds = mode->crtc_vtotal - mode->crtc_vsync_start; in udl_set_vid_cmds() 180 yde = yds + mode->crtc_vdisplay; in udl_set_vid_cmds() 185 mode->crtc_htotal - 1); in udl_set_vid_cmds() 192 mode->crtc_hsync_end - mode->crtc_hsync_start + 1); in udl_set_vid_cmds() 195 wrptr = udl_set_register_16(wrptr, 0x0F, mode->hdisplay); in udl_set_vid_cmds() 198 yec = mode->crtc_vtotal; in udl_set_vid_cmds() 205 wrptr = udl_set_register_lfsr16(wrptr, 0x15, mode->crtc_vsync_end - mode->crtc_vsync_start); in udl_set_vid_cmds() [all …]
|
/linux-4.1.27/drivers/crypto/qce/ |
D | common.h | 75 #define IS_CBC(mode) (mode & QCE_MODE_CBC) argument 76 #define IS_ECB(mode) (mode & QCE_MODE_ECB) argument 77 #define IS_CTR(mode) (mode & QCE_MODE_CTR) argument 78 #define IS_XTS(mode) (mode & QCE_MODE_XTS) argument 79 #define IS_CCM(mode) (mode & QCE_MODE_CCM) argument
|
/linux-4.1.27/drivers/gpu/drm/imx/ |
D | parallel-display.c | 38 struct drm_display_mode mode; member 67 struct drm_display_mode *mode = drm_mode_create(connector->dev); in imx_pd_connector_get_modes() local 69 if (!mode) in imx_pd_connector_get_modes() 71 drm_mode_copy(mode, &imxpd->mode); in imx_pd_connector_get_modes() 72 mode->type |= DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, in imx_pd_connector_get_modes() 73 drm_mode_probed_add(connector, mode); in imx_pd_connector_get_modes() 78 struct drm_display_mode *mode = drm_mode_create(connector->dev); in imx_pd_connector_get_modes() local 80 if (!mode) in imx_pd_connector_get_modes() 82 of_get_drm_display_mode(np, &imxpd->mode, OF_USE_NATIVE_MODE); in imx_pd_connector_get_modes() 83 drm_mode_copy(mode, &imxpd->mode); in imx_pd_connector_get_modes() [all …]
|
/linux-4.1.27/Documentation/input/ |
D | cma3000_d0x.txt | 18 Motion Detect Mode: Its the low power mode where interrupts are generated only 21 Measurement Mode: This mode is used to read the acceleration data on X,Y,Z 24 Free fall Mode: This mode is intended to save system resources. 31 Initial configuration for bus mode is set in non volatile memory and can later 49 mode: Default Operating mode 90 mode: 91 0: power down mode 92 1: 100 Hz Measurement mode 93 2: 400 Hz Measurement mode 94 3: 40 Hz Measurement mode [all …]
|
/linux-4.1.27/drivers/net/team/ |
D | Kconfig | 18 tristate "Broadcast mode support" 21 Basic mode where packets are transmitted always by all suitable ports. 25 To compile this team mode as a module, choose M here: the module 29 tristate "Round-robin mode support" 32 Basic mode where port used for transmitting packets is selected in 37 To compile this team mode as a module, choose M here: the module 41 tristate "Random mode support" 44 Basic mode where port used for transmitting packets is selected 49 To compile this team mode as a module, choose M here: the module 53 tristate "Active-backup mode support" [all …]
|
/linux-4.1.27/arch/arm/mach-ks8695/ |
D | irq.c | 69 unsigned long ctrl, mode; in ks8695_irq_set_type() local 76 mode = IOPC_TM_HIGH; in ks8695_irq_set_type() 80 mode = IOPC_TM_LOW; in ks8695_irq_set_type() 84 mode = IOPC_TM_RISING; in ks8695_irq_set_type() 87 mode = IOPC_TM_FALLING; in ks8695_irq_set_type() 90 mode = IOPC_TM_EDGE; in ks8695_irq_set_type() 99 ctrl |= IOPC_IOEINT0_MODE(mode); in ks8695_irq_set_type() 103 ctrl |= IOPC_IOEINT1_MODE(mode); in ks8695_irq_set_type() 107 ctrl |= IOPC_IOEINT2_MODE(mode); in ks8695_irq_set_type() 111 ctrl |= IOPC_IOEINT3_MODE(mode); in ks8695_irq_set_type()
|
/linux-4.1.27/Documentation/ |
D | svga.txt | 13 ** enter `scan' on the video mode prompt, pick the mode you want to use, 14 ** remember its mode ID (the four-digit hexadecimal number) and then 17 The video mode to be used is selected by a kernel parameter which can be 23 NORMAL_VGA - Standard 80x25 mode available on all display adapters. 25 EXTENDED_VGA - Standard 8-pixel font mode: 80x43 on EGA, 80x50 on VGA. 27 ASK_VGA - Display a video mode menu upon startup (see below). 32 mode list displayed may vary as the kernel version changes, because the 34 better to use absolute mode numbers instead. 36 0x.... - Hexadecimal video mode ID (also displayed on the menu, see below 42 The ASK_VGA mode causes the kernel to offer a video mode menu upon [all …]
|
/linux-4.1.27/drivers/gpu/drm/i2c/ |
D | ch7006_mode.c | 107 .mode = { \ 178 struct ch7006_mode *mode; in ch7006_lookup_mode() local 180 for (mode = ch7006_modes; mode->mode.clock; mode++) { in ch7006_lookup_mode() 182 if (~mode->valid_norms & 1<<priv->norm) in ch7006_lookup_mode() 185 if (mode->mode.hdisplay != drm_mode->hdisplay || in ch7006_lookup_mode() 186 mode->mode.vdisplay != drm_mode->vdisplay || in ch7006_lookup_mode() 187 mode->mode.vtotal != drm_mode->vtotal || in ch7006_lookup_mode() 188 mode->mode.htotal != drm_mode->htotal || in ch7006_lookup_mode() 189 mode->mode.clock != drm_mode->clock) in ch7006_lookup_mode() 192 return mode; in ch7006_lookup_mode() [all …]
|
D | tda998x_drv.c | 635 tda998x_write_avi(struct tda998x_priv *priv, struct drm_display_mode *mode) in tda998x_write_avi() argument 646 buf[PB(4)] = drm_match_cea_mode(mode); in tda998x_write_avi() 665 struct drm_display_mode *mode, struct tda998x_encoder_params *p) in tda998x_configure_audio() argument 708 if (mode->clock > 100000) in tda998x_configure_audio() 776 static void tda998x_encoder_dpms(struct tda998x_priv *priv, int mode) in tda998x_encoder_dpms() argument 779 if (mode != DRM_MODE_DPMS_ON) in tda998x_encoder_dpms() 780 mode = DRM_MODE_DPMS_OFF; in tda998x_encoder_dpms() 782 if (mode == priv->dpms) in tda998x_encoder_dpms() 785 switch (mode) { in tda998x_encoder_dpms() 804 priv->dpms = mode; in tda998x_encoder_dpms() [all …]
|
/linux-4.1.27/fs/dlm/ |
D | ast.c | 30 lkb->lkb_last_bast.mode, in dlm_dump_lkb_callbacks() 38 lkb->lkb_last_cast.mode, in dlm_dump_lkb_callbacks() 47 lkb->lkb_callbacks[i].mode, in dlm_dump_lkb_callbacks() 53 int dlm_add_lkb_callback(struct dlm_lkb *lkb, uint32_t flags, int mode, in dlm_add_lkb_callback() argument 76 prev_mode = lkb->lkb_callbacks[i-1].mode; in dlm_add_lkb_callback() 78 if ((prev_mode == mode) || in dlm_add_lkb_callback() 79 (prev_mode > mode && prev_mode > DLM_LOCK_PR)) { in dlm_add_lkb_callback() 85 mode, in dlm_add_lkb_callback() 95 lkb->lkb_callbacks[i].mode = mode; in dlm_add_lkb_callback() 105 flags, mode, status, sbflags); in dlm_add_lkb_callback() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/linux/ |
D | linux-sysctl.c | 267 .mode = 0644, 274 .mode = 0644, 281 .mode = 0644, 288 .mode = 0644, 295 .mode = 0444, 302 .mode = 0444, 309 .mode = 0444, 316 .mode = 0444, 323 .mode = 0644, 330 .mode = 0644, [all …]
|
/linux-4.1.27/fs/ramfs/ |
D | inode.c | 54 const struct inode *dir, umode_t mode, dev_t dev) in ramfs_get_inode() argument 60 inode_init_owner(inode, dir, mode); in ramfs_get_inode() 65 switch (mode & S_IFMT) { in ramfs_get_inode() 67 init_special_inode(inode, mode, dev); in ramfs_get_inode() 93 ramfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) in ramfs_mknod() argument 95 struct inode * inode = ramfs_get_inode(dir->i_sb, dir, mode, dev); in ramfs_mknod() 107 static int ramfs_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) in ramfs_mkdir() argument 109 int retval = ramfs_mknod(dir, dentry, mode | S_IFDIR, 0); in ramfs_mkdir() 115 static int ramfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) in ramfs_create() argument 117 return ramfs_mknod(dir, dentry, mode | S_IFREG, 0); in ramfs_create() [all …]
|
/linux-4.1.27/arch/mips/cavium-octeon/executive/ |
D | cvmx-interrupt-rsl.c | 78 union cvmx_gmxx_inf_mode mode; in __cvmx_interrupt_gmxx_enable() local 83 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); in __cvmx_interrupt_gmxx_enable() 86 if (mode.s.en) { in __cvmx_interrupt_gmxx_enable() 87 switch (mode.cn56xx.mode) { in __cvmx_interrupt_gmxx_enable() 102 if (mode.s.en) { in __cvmx_interrupt_gmxx_enable() 110 if (mode.s.type) in __cvmx_interrupt_gmxx_enable() 120 if (mode.s.type) in __cvmx_interrupt_gmxx_enable()
|
D | cvmx-spi.c | 105 int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, in cvmx_spi_start_interface() argument 114 INVOKE_CB(cvmx_spi_callbacks.reset_cb, interface, mode); in cvmx_spi_start_interface() 117 INVOKE_CB(cvmx_spi_callbacks.calendar_setup_cb, interface, mode, in cvmx_spi_start_interface() 121 INVOKE_CB(cvmx_spi_callbacks.clock_detect_cb, interface, mode, timeout); in cvmx_spi_start_interface() 124 INVOKE_CB(cvmx_spi_callbacks.training_cb, interface, mode, timeout); in cvmx_spi_start_interface() 127 INVOKE_CB(cvmx_spi_callbacks.calendar_sync_cb, interface, mode, in cvmx_spi_start_interface() 131 INVOKE_CB(cvmx_spi_callbacks.interface_up_cb, interface, mode); in cvmx_spi_start_interface() 150 int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, int timeout) in cvmx_spi_restart_interface() argument 157 cvmx_dprintf("SPI%d: Restart %s\n", interface, modes[mode]); in cvmx_spi_restart_interface() 160 INVOKE_CB(cvmx_spi_callbacks.reset_cb, interface, mode); in cvmx_spi_restart_interface() [all …]
|
/linux-4.1.27/drivers/scsi/aic94xx/ |
D | aic94xx_dump.c | 50 u32 mode; member 285 int mode; in asd_dump_cseq_state() local 318 for (mode = 0; mode < 9; mode++) in asd_dump_cseq_state() 319 PRINT_MREG_16bit(asd_ha, mode, MnSCBPTR, CMnSCBPTR(mode)); in asd_dump_cseq_state() 322 for (mode = 0; mode < 9; mode++) in asd_dump_cseq_state() 323 PRINT_MREG_16bit(asd_ha, mode, MnDDBPTR, CMnDDBPTR(mode)); in asd_dump_cseq_state() 326 for (mode = 0; mode < 8; mode++) in asd_dump_cseq_state() 327 PRINT_MREG_32bit(asd_ha, mode, MnREQMBX, CMnREQMBX(mode)); in asd_dump_cseq_state() 328 for (mode = 0; mode < 8; mode++) in asd_dump_cseq_state() 329 PRINT_MREG_32bit(asd_ha, mode, MnRSPMBX, CMnRSPMBX(mode)); in asd_dump_cseq_state() [all …]
|
/linux-4.1.27/arch/blackfin/lib/ |
D | gcclib.h | 10 typedef unsigned int UQItype __attribute__ ((mode(QI))); 11 typedef int SItype __attribute__ ((mode(SI))); 12 typedef unsigned int USItype __attribute__ ((mode(SI))); 13 typedef int DItype __attribute__ ((mode(DI))); 14 typedef int word_type __attribute__ ((mode(__word__))); 15 typedef unsigned int UDItype __attribute__ ((mode(DI)));
|
/linux-4.1.27/ipc/ |
D | ipc_sysctl.c | 108 .mode = 0644, 115 .mode = 0644, 122 .mode = 0644, 129 .mode = 0644, 138 .mode = 0644, 147 .mode = 0644, 156 .mode = 0644, 165 .mode = 0644, 174 .mode = 0644, 182 .mode = 0644, [all …]
|
D | mq_sysctl.c | 61 .mode = 0644, 68 .mode = 0644, 77 .mode = 0644, 86 .mode = 0644, 95 .mode = 0644, 106 .mode = 0555, 115 .mode = 0555,
|
/linux-4.1.27/fs/ |
D | posix_acl.c | 246 umode_t mode = 0; in posix_acl_equiv_mode() local 258 mode |= (pa->e_perm & S_IRWXO) << 6; in posix_acl_equiv_mode() 261 mode |= (pa->e_perm & S_IRWXO) << 3; in posix_acl_equiv_mode() 264 mode |= pa->e_perm & S_IRWXO; in posix_acl_equiv_mode() 267 mode = (mode & ~S_IRWXG) | in posix_acl_equiv_mode() 280 *mode_p = (*mode_p & ~S_IRWXUGO) | mode; in posix_acl_equiv_mode() 289 posix_acl_from_mode(umode_t mode, gfp_t flags) in posix_acl_from_mode() argument 296 acl->a_entries[0].e_perm = (mode & S_IRWXU) >> 6; in posix_acl_from_mode() 299 acl->a_entries[1].e_perm = (mode & S_IRWXG) >> 3; in posix_acl_from_mode() 302 acl->a_entries[2].e_perm = (mode & S_IRWXO); in posix_acl_from_mode() [all …]
|
D | open.c | 225 int vfs_fallocate(struct file *file, int mode, loff_t offset, loff_t len) in vfs_fallocate() argument 234 if (mode & ~FALLOC_FL_SUPPORTED_MASK) in vfs_fallocate() 238 if ((mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE)) == in vfs_fallocate() 243 if ((mode & FALLOC_FL_PUNCH_HOLE) && in vfs_fallocate() 244 !(mode & FALLOC_FL_KEEP_SIZE)) in vfs_fallocate() 248 if ((mode & FALLOC_FL_COLLAPSE_RANGE) && in vfs_fallocate() 249 (mode & ~FALLOC_FL_COLLAPSE_RANGE)) in vfs_fallocate() 253 if ((mode & FALLOC_FL_INSERT_RANGE) && in vfs_fallocate() 254 (mode & ~FALLOC_FL_INSERT_RANGE)) in vfs_fallocate() 263 if ((mode & ~FALLOC_FL_KEEP_SIZE) && IS_APPEND(inode)) in vfs_fallocate() [all …]
|
/linux-4.1.27/net/dccp/ |
D | sysctl.c | 33 .mode = 0644, 42 .mode = 0644, 51 .mode = 0644, 60 .mode = 0644, 69 .mode = 0644, 78 .mode = 0644, 87 .mode = 0644, 95 .mode = 0644,
|
/linux-4.1.27/arch/mips/lasat/ |
D | sysctl.c | 169 .mode = 0444, 176 .mode = 0444, 183 .mode = 0444, 190 .mode = 0644, 198 .mode = 0644, 205 .mode = 0644, 214 .mode = 0600, 221 .mode = 0644, 229 .mode = 0644, 237 .mode = 0444, [all …]
|
/linux-4.1.27/include/drm/ |
D | drm_modes.h | 175 static inline bool drm_mode_is_stereo(const struct drm_display_mode *mode) in drm_mode_is_stereo() argument 177 return mode->flags & DRM_MODE_FLAG_3D_MASK; in drm_mode_is_stereo() 184 void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode); 185 void drm_mode_probed_add(struct drm_connector *connector, struct drm_display_mode *mode); 186 void drm_mode_debug_printmodeline(const struct drm_display_mode *mode); 209 void drm_mode_set_name(struct drm_display_mode *mode); 210 int drm_mode_hsync(const struct drm_display_mode *mode); 211 int drm_mode_vrefresh(const struct drm_display_mode *mode); 218 const struct drm_display_mode *mode); 225 enum drm_mode_status drm_mode_validate_basic(const struct drm_display_mode *mode); [all …]
|
D | drm_crtc_helper.h | 80 void (*dpms)(struct drm_crtc *crtc, int mode); 86 const struct drm_display_mode *mode, 89 int (*mode_set)(struct drm_crtc *crtc, struct drm_display_mode *mode, 140 void (*dpms)(struct drm_encoder *encoder, int mode); 145 const struct drm_display_mode *mode, 150 struct drm_display_mode *mode, 177 struct drm_display_mode *mode); 184 struct drm_display_mode *mode, 190 extern void drm_helper_connector_dpms(struct drm_connector *connector, int mode); 217 int drm_helper_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode,
|
D | drm_encoder_slave.h | 53 void (*dpms)(struct drm_encoder *encoder, int mode); 57 const struct drm_display_mode *mode, 60 struct drm_display_mode *mode); 62 struct drm_display_mode *mode, 167 void drm_i2c_encoder_dpms(struct drm_encoder *encoder, int mode); 169 const struct drm_display_mode *mode, 174 struct drm_display_mode *mode,
|
/linux-4.1.27/drivers/gpu/drm/ast/ |
D | ast_mode.c | 77 static bool ast_get_vbios_mode_info(struct drm_crtc *crtc, struct drm_display_mode *mode, in ast_get_vbios_mode_info() argument 105 switch (crtc->mode.crtc_hdisplay) { in ast_get_vbios_mode_info() 116 if (crtc->mode.crtc_vdisplay == 800) in ast_get_vbios_mode_info() 128 if (crtc->mode.crtc_vdisplay == 900) in ast_get_vbios_mode_info() 137 if (crtc->mode.crtc_vdisplay == 1080) in ast_get_vbios_mode_info() 146 refresh_rate = drm_mode_vrefresh(mode); in ast_get_vbios_mode_info() 153 (((mode->flags & DRM_MODE_FLAG_NVSYNC) && in ast_get_vbios_mode_info() 155 ((mode->flags & DRM_MODE_FLAG_PVSYNC) && in ast_get_vbios_mode_info() 157 ((mode->flags & DRM_MODE_FLAG_NHSYNC) && in ast_get_vbios_mode_info() 159 ((mode->flags & DRM_MODE_FLAG_PHSYNC) && in ast_get_vbios_mode_info() [all …]
|
/linux-4.1.27/drivers/media/usb/gspca/ |
D | stv0680.c | 43 struct v4l2_pix_format mode; member 108 static int stv0680_set_video_mode(struct gspca_dev *gspca_dev, u8 mode) in stv0680_set_video_mode() argument 112 if (sd->current_mode == mode) in stv0680_set_video_mode() 116 gspca_dev->usb_buf[0] = mode; in stv0680_set_video_mode() 124 if (stv0680_get_video_mode(gspca_dev) != mode) { in stv0680_set_video_mode() 129 sd->current_mode = mode; in stv0680_set_video_mode() 215 sd->mode.width = (gspca_dev->usb_buf[4] << 8) | in sd_config() 217 sd->mode.height = (gspca_dev->usb_buf[6] << 8) | in sd_config() 219 sd->mode.pixelformat = V4L2_PIX_FMT_STV0680; in sd_config() 220 sd->mode.field = V4L2_FIELD_NONE; in sd_config() [all …]
|
/linux-4.1.27/drivers/base/ |
D | devtmpfs.c | 44 umode_t mode; /* 0 => delete */ member 90 req.mode = 0; in devtmpfs_create_node() 93 req.name = device_get_devnode(dev, &req.mode, &req.uid, &req.gid, &tmp); in devtmpfs_create_node() 97 if (req.mode == 0) in devtmpfs_create_node() 98 req.mode = 0600; in devtmpfs_create_node() 100 req.mode |= S_IFBLK; in devtmpfs_create_node() 102 req.mode |= S_IFCHR; in devtmpfs_create_node() 133 req.mode = 0; in devtmpfs_delete_node() 150 static int dev_mkdir(const char *name, umode_t mode) in dev_mkdir() argument 160 err = vfs_mkdir(d_inode(path.dentry), dentry, mode); in dev_mkdir() [all …]
|
/linux-4.1.27/drivers/gpu/drm/rcar-du/ |
D | rcar_du_lvdscon.c | 34 struct videomode mode; member 45 struct drm_display_mode *mode; in rcar_du_lvds_connector_get_modes() local 47 mode = drm_mode_create(connector->dev); in rcar_du_lvds_connector_get_modes() 48 if (mode == NULL) in rcar_du_lvds_connector_get_modes() 51 mode->type = DRM_MODE_TYPE_PREFERRED | DRM_MODE_TYPE_DRIVER; in rcar_du_lvds_connector_get_modes() 53 drm_display_mode_from_videomode(&lvdscon->panel.mode, mode); in rcar_du_lvds_connector_get_modes() 55 drm_mode_probed_add(connector, mode); in rcar_du_lvds_connector_get_modes() 105 videomode_from_timing(&timing, &lvdscon->panel.mode); in rcar_du_lvds_connector_init()
|
D | rcar_du_crtc.c | 110 const struct drm_display_mode *mode = &rcrtc->crtc.state->adjusted_mode; in rcar_du_crtc_set_display_timing() local 111 unsigned long mode_clock = mode->clock * 1000; in rcar_du_crtc_set_display_timing() 151 value = ((mode->flags & DRM_MODE_FLAG_PVSYNC) ? 0 : DSMR_VSL) in rcar_du_crtc_set_display_timing() 152 | ((mode->flags & DRM_MODE_FLAG_PHSYNC) ? 0 : DSMR_HSL) in rcar_du_crtc_set_display_timing() 157 rcar_du_crtc_write(rcrtc, HDSR, mode->htotal - mode->hsync_start - 19); in rcar_du_crtc_set_display_timing() 158 rcar_du_crtc_write(rcrtc, HDER, mode->htotal - mode->hsync_start + in rcar_du_crtc_set_display_timing() 159 mode->hdisplay - 19); in rcar_du_crtc_set_display_timing() 160 rcar_du_crtc_write(rcrtc, HSWR, mode->hsync_end - in rcar_du_crtc_set_display_timing() 161 mode->hsync_start - 1); in rcar_du_crtc_set_display_timing() 162 rcar_du_crtc_write(rcrtc, HCR, mode->htotal - 1); in rcar_du_crtc_set_display_timing() [all …]
|
/linux-4.1.27/drivers/video/fbdev/mmp/fb/ |
D | mmpfb.c | 238 static void fbmode_to_mmpmode(struct mmp_mode *mode, in fbmode_to_mmpmode() argument 242 mode->name = videomode->name; in fbmode_to_mmpmode() 243 mode->refresh = videomode->refresh; in fbmode_to_mmpmode() 244 mode->xres = videomode->xres; in fbmode_to_mmpmode() 245 mode->yres = videomode->yres; in fbmode_to_mmpmode() 248 mode->pixclock_freq = (u32)div_result; in fbmode_to_mmpmode() 250 mode->left_margin = videomode->left_margin; in fbmode_to_mmpmode() 251 mode->right_margin = videomode->right_margin; in fbmode_to_mmpmode() 252 mode->upper_margin = videomode->upper_margin; in fbmode_to_mmpmode() 253 mode->lower_margin = videomode->lower_margin; in fbmode_to_mmpmode() [all …]
|
/linux-4.1.27/drivers/video/backlight/ |
D | tdo24m.c | 36 int (*adj_mode)(struct tdo24m *lcd, int mode); 40 int mode; member 220 static int tdo24m_adj_mode(struct tdo24m *lcd, int mode) in tdo24m_adj_mode() argument 222 switch (mode) { in tdo24m_adj_mode() 237 lcd->mode = mode; in tdo24m_adj_mode() 241 static int tdo35s_adj_mode(struct tdo24m *lcd, int mode) in tdo35s_adj_mode() argument 243 switch (mode) { in tdo35s_adj_mode() 258 lcd->mode = mode; in tdo35s_adj_mode() 274 err = lcd->adj_mode(lcd, lcd->mode); in tdo24m_power_on() 317 int mode = MODE_QVGA; in tdo24m_set_mode() local [all …]
|
D | lp8788_bl.c | 51 enum lp8788_bl_ctrl_mode mode; member 64 static inline bool is_brightness_ctrl_by_pwm(enum lp8788_bl_ctrl_mode mode) in is_brightness_ctrl_by_pwm() argument 66 return mode == LP8788_BL_COMB_PWM_BASED; in is_brightness_ctrl_by_pwm() 69 static inline bool is_brightness_ctrl_by_register(enum lp8788_bl_ctrl_mode mode) in is_brightness_ctrl_by_register() argument 71 return mode == LP8788_BL_REGISTER_ONLY || in is_brightness_ctrl_by_register() 72 mode == LP8788_BL_COMB_REGISTER_BASED; in is_brightness_ctrl_by_register() 120 bl->mode = cfg->bl_mode; in lp8788_backlight_configure() 160 enum lp8788_bl_ctrl_mode mode = bl->mode; in lp8788_bl_update_status() local 165 if (is_brightness_ctrl_by_pwm(mode)) { in lp8788_bl_update_status() 170 } else if (is_brightness_ctrl_by_register(mode)) { in lp8788_bl_update_status() [all …]
|
/linux-4.1.27/fs/hostfs/ |
D | hostfs_user.c | 24 p->mode = buf->st_mode; in stat64_to_hostfs() 57 int mode = 0; in access_file() local 60 mode = R_OK; in access_file() 62 mode |= W_OK; in access_file() 64 mode |= X_OK; in access_file() 65 if (access(path, mode) != 0) in access_file() 72 int mode = 0, fd; in open_file() local 75 mode = O_RDONLY; in open_file() 77 mode = O_WRONLY; in open_file() 79 mode = O_RDWR; in open_file() [all …]
|
/linux-4.1.27/sound/firewire/dice/ |
D | dice.c | 110 unsigned int mode, unsigned int *rate) in highest_supported_mode_rate() argument 118 if (mode == m) in highest_supported_mode_rate() 127 static int dice_read_mode_params(struct snd_dice *dice, unsigned int mode) in dice_read_mode_params() argument 133 if (highest_supported_mode_rate(dice, mode, &rate) < 0) { in dice_read_mode_params() 134 dice->tx_channels[mode] = 0; in dice_read_mode_params() 135 dice->tx_midi_ports[mode] = 0; in dice_read_mode_params() 136 dice->rx_channels[mode] = 0; in dice_read_mode_params() 137 dice->rx_midi_ports[mode] = 0; in dice_read_mode_params() 150 dice->tx_channels[mode] = be32_to_cpu(values[0]); in dice_read_mode_params() 151 dice->tx_midi_ports[mode] = be32_to_cpu(values[1]); in dice_read_mode_params() [all …]
|
/linux-4.1.27/drivers/gpu/drm/msm/dsi/ |
D | dsi_manager.c | 149 struct drm_display_mode *mode, *m; in dsi_dual_connector_fix_modes() local 152 list_for_each_entry_safe(mode, m, &connector->probed_modes, head) { in dsi_dual_connector_fix_modes() 153 mode->clock >>= 1; in dsi_dual_connector_fix_modes() 154 mode->hdisplay >>= 1; in dsi_dual_connector_fix_modes() 155 mode->hsync_start >>= 1; in dsi_dual_connector_fix_modes() 156 mode->hsync_end >>= 1; in dsi_dual_connector_fix_modes() 157 mode->htotal >>= 1; in dsi_dual_connector_fix_modes() 158 drm_mode_set_name(mode); in dsi_dual_connector_fix_modes() 165 struct drm_display_mode *mode; in dsi_dual_connector_tile_init() local 175 mode = list_first_entry(&connector->probed_modes, in dsi_dual_connector_tile_init() [all …]
|
/linux-4.1.27/arch/mips/include/asm/mach-au1x00/ |
D | au1xxx_ide.h | 171 #define SBC_IDE_TIMING(mode) \ argument 172 (SBC_IDE_##mode##_TWCS | \ 173 SBC_IDE_##mode##_TCSH | \ 174 SBC_IDE_##mode##_TCSOFF | \ 175 SBC_IDE_##mode##_TWP | \ 176 SBC_IDE_##mode##_TCSW | \ 177 SBC_IDE_##mode##_TPM | \ 178 SBC_IDE_##mode##_TA)
|
D | au1000_dma.h | 114 unsigned int mode; member 234 u32 mode; in init_dma() local 244 mode = chan->mode | (chan->dev_id << DMA_DID_BIT); in init_dma() 246 mode |= DMA_IE; in init_dma() 248 __raw_writel(~mode, chan->io + DMA_MODE_CLEAR); in init_dma() 249 __raw_writel(mode, chan->io + DMA_MODE_SET); in init_dma() 255 static inline void set_dma_mode(unsigned int dmanr, unsigned int mode) in set_dma_mode() argument 266 mode &= (DMA_BE | DMA_DR | DMA_TS8 | DMA_DW_MASK | DMA_NC); in set_dma_mode() 267 chan->mode &= ~(DMA_BE | DMA_DR | DMA_TS8 | DMA_DW_MASK | DMA_NC); in set_dma_mode() 268 chan->mode |= mode; in set_dma_mode() [all …]
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | intel_dsi_pll.c | 55 static u32 dsi_rr_formula(const struct drm_display_mode *mode, in dsi_rr_formula() argument 82 hactive = mode->hdisplay; in dsi_rr_formula() 83 vactive = mode->vdisplay; in dsi_rr_formula() 84 hfp = mode->hsync_start - mode->hdisplay; in dsi_rr_formula() 85 hsync = mode->hsync_end - mode->hsync_start; in dsi_rr_formula() 86 hbp = mode->htotal - mode->hsync_end; in dsi_rr_formula() 88 vfp = mode->vsync_start - mode->vdisplay; in dsi_rr_formula() 89 vsync = mode->vsync_end - mode->vsync_start; in dsi_rr_formula() 90 vbp = mode->vtotal - mode->vsync_end; in dsi_rr_formula() 119 num_frames = drm_mode_vrefresh(mode); in dsi_rr_formula()
|
D | intel_dvo.c | 190 &crtc->config->base.mode, in intel_enable_dvo() 200 static void intel_dvo_dpms(struct drm_connector *connector, int mode) in intel_dvo_dpms() argument 207 if (mode != DRM_MODE_DPMS_ON) in intel_dvo_dpms() 208 mode = DRM_MODE_DPMS_OFF; in intel_dvo_dpms() 210 if (mode == connector->dpms) in intel_dvo_dpms() 213 connector->dpms = mode; in intel_dvo_dpms() 224 if (mode == DRM_MODE_DPMS_ON) { in intel_dvo_dpms() 245 struct drm_display_mode *mode) in intel_dvo_mode_valid() argument 249 if (mode->flags & DRM_MODE_FLAG_DBLSCAN) in intel_dvo_mode_valid() 255 if (mode->hdisplay > intel_dvo->panel_fixed_mode->hdisplay) in intel_dvo_mode_valid() [all …]
|
D | dvo_ns2501.c | 512 struct drm_display_mode *mode) in ns2501_mode_valid() argument 516 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_valid() 524 if ((mode->hdisplay == 640 && mode->vdisplay == 480 && mode->clock == 25175) || in ns2501_mode_valid() 525 (mode->hdisplay == 800 && mode->vdisplay == 600 && mode->clock == 40000) || in ns2501_mode_valid() 526 (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 65000)) { in ns2501_mode_valid() 534 struct drm_display_mode *mode, in ns2501_mode_set() argument 542 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_set() 544 if (mode->hdisplay == 640 && mode->vdisplay == 480) in ns2501_mode_set() 546 else if (mode->hdisplay == 800 && mode->vdisplay == 600) in ns2501_mode_set() 548 else if (mode->hdisplay == 1024 && mode->vdisplay == 768) in ns2501_mode_set()
|
D | intel_sdvo.c | 598 static int intel_sdvo_get_pixel_multiplier(struct drm_display_mode *mode) in intel_sdvo_get_pixel_multiplier() argument 600 if (mode->clock >= 100000) in intel_sdvo_get_pixel_multiplier() 602 else if (mode->clock >= 50000) in intel_sdvo_get_pixel_multiplier() 679 int mode) in intel_sdvo_set_encoder_power_state() argument 683 switch (mode) { in intel_sdvo_set_encoder_power_state() 804 const struct drm_display_mode *mode) in intel_sdvo_get_dtd_from_mode() argument 813 width = mode->hdisplay; in intel_sdvo_get_dtd_from_mode() 814 height = mode->vdisplay; in intel_sdvo_get_dtd_from_mode() 817 h_blank_len = mode->htotal - mode->hdisplay; in intel_sdvo_get_dtd_from_mode() 818 h_sync_len = mode->hsync_end - mode->hsync_start; in intel_sdvo_get_dtd_from_mode() [all …]
|
/linux-4.1.27/arch/mips/kernel/ |
D | irq_txx9.c | 63 unsigned char mode; member 108 if (unlikely(TXx9_IRCR_EDGE(txx9irq[irq_nr].mode))) in txx9_irq_mask_ack() 118 int mode; in txx9_irq_set_type() local 123 case IRQF_TRIGGER_RISING: mode = TXx9_IRCR_UP; break; in txx9_irq_set_type() 124 case IRQF_TRIGGER_FALLING: mode = TXx9_IRCR_DOWN; break; in txx9_irq_set_type() 125 case IRQF_TRIGGER_HIGH: mode = TXx9_IRCR_HIGH; break; in txx9_irq_set_type() 126 case IRQF_TRIGGER_LOW: mode = TXx9_IRCR_LOW; break; in txx9_irq_set_type() 134 cr |= (mode & 0x3) << ofs; in txx9_irq_set_type() 136 txx9irq[irq_nr].mode = mode; in txx9_irq_set_type() 156 txx9irq[i].mode = TXx9_IRCR_LOW; in txx9_irq_init()
|
/linux-4.1.27/Documentation/ABI/testing/ |
D | sysfs-driver-hid-logitech-lg4ff | 14 mode is listed as follows: 16 Currently active mode is marked with an asterisk. List also 18 native mode of the wheel. Echoing the mode tag switches the 19 wheel into the corresponding mode. Depending on the exact model 21 If a wheel cannot be switched into the desired mode, -EINVAL 24 This entry is not created for devices that have only one mode. 26 Currently supported mode switches: 43 parameter set in order for the switch to DF-EX mode to work. 50 alternate mode the wheel might be switched to. 52 This entry is not created for devices that have only one mode.
|
D | sysfs-platform-msi-laptop | 46 Contains either 0 or 1 and indicates if turbo mode is turned 47 on. In turbo mode power LED is orange and processor is 48 overclocked. Turbo mode is available only if charging. It is 49 only possible to toggle turbo mode state by pressing Fn+F10, 51 If user presses Fn+F10 too frequent, turbo mode state is not 59 Contains either 0 or 1 and indicates if ECO mode is turned on. 60 In ECO mode power LED is green and userspace should do some 61 powersaving actions. ECO mode is available only on battery 62 power. ECO mode can only be toggled by pressing Fn+F10. 70 * 0 -> Turbo mode is off [all …]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
D | base.c | 85 nvkm_therm_update(struct nvkm_therm *therm, int mode) in nvkm_therm_update() argument 95 if (mode < 0) in nvkm_therm_update() 96 mode = priv->mode; in nvkm_therm_update() 97 priv->mode = mode; in nvkm_therm_update() 99 switch (mode) { in nvkm_therm_update() 161 nvkm_therm_fan_mode(struct nvkm_therm *therm, int mode) in nvkm_therm_fan_mode() argument 172 if ((mode >= ARRAY_SIZE(name)) || in nvkm_therm_fan_mode() 173 (mode != NVKM_THERM_CTRL_NONE && device->card_type >= NV_C0 && in nvkm_therm_fan_mode() 179 if (mode == NVKM_THERM_CTRL_AUTO && therm->temp_get(therm) < 0) in nvkm_therm_fan_mode() 182 if (priv->mode == mode) in nvkm_therm_fan_mode() [all …]
|
/linux-4.1.27/arch/avr32/mach-at32ap/ |
D | hsmc.c | 141 u32 setup, pulse, cycle, mode; in smc_set_configuration() local 161 mode = HSMC_BF(DBW, HSMC_DBW_8_BITS); in smc_set_configuration() 164 mode = HSMC_BF(DBW, HSMC_DBW_16_BITS); in smc_set_configuration() 167 mode = HSMC_BF(DBW, HSMC_DBW_32_BITS); in smc_set_configuration() 175 mode |= HSMC_BF(EXNW_MODE, HSMC_EXNW_MODE_DISABLED); in smc_set_configuration() 178 mode |= HSMC_BF(EXNW_MODE, HSMC_EXNW_MODE_RESERVED); in smc_set_configuration() 181 mode |= HSMC_BF(EXNW_MODE, HSMC_EXNW_MODE_FROZEN); in smc_set_configuration() 184 mode |= HSMC_BF(EXNW_MODE, HSMC_EXNW_MODE_READY); in smc_set_configuration() 191 mode |= HSMC_BF(TDF_CYCLES, config->tdf_cycles); in smc_set_configuration() 195 mode |= HSMC_BIT(READ_MODE); in smc_set_configuration() [all …]
|
/linux-4.1.27/arch/m68k/include/asm/ |
D | dma.h | 169 static __inline__ void set_dma_mode(unsigned int dmanr, char mode) in set_dma_mode() argument 176 printk("set_dma_mode(dmanr=%d,mode=%d)\n", dmanr, mode); in set_dma_mode() 191 ((mode & DMA_MODE_SINGLE_BIT) ? MCFDMA_DCR_SAA : 0) | in set_dma_mode() 193 ((mode & DMA_MODE_WRITE_BIT) ? MCFDMA_DCR_S_RW : 0) | in set_dma_mode() 195 ((mode & DMA_MODE_WRITE_BIT) ? MCFDMA_DCR_SINC : MCFDMA_DCR_DINC) | in set_dma_mode() 197 ((mode & DMA_MODE_WORD_BIT) ? MCFDMA_DCR_SSIZE_WORD : in set_dma_mode() 198 ((mode & DMA_MODE_LONG_BIT) ? MCFDMA_DCR_SSIZE_LONG : in set_dma_mode() 200 ((mode & DMA_MODE_WORD_BIT) ? MCFDMA_DCR_DSIZE_WORD : in set_dma_mode() 201 ((mode & DMA_MODE_LONG_BIT) ? MCFDMA_DCR_DSIZE_LONG : in set_dma_mode() 360 static __inline__ void set_dma_mode(unsigned int dmanr, char mode) in set_dma_mode() argument [all …]
|
/linux-4.1.27/crypto/ |
D | tcrypt.c | 63 static int mode; variable 1774 if (mode > 300 && mode < 400) break; in do_test() 1778 if (mode > 300 && mode < 400) break; in do_test() 1782 if (mode > 300 && mode < 400) break; in do_test() 1786 if (mode > 300 && mode < 400) break; in do_test() 1790 if (mode > 300 && mode < 400) break; in do_test() 1794 if (mode > 300 && mode < 400) break; in do_test() 1798 if (mode > 300 && mode < 400) break; in do_test() 1802 if (mode > 300 && mode < 400) break; in do_test() 1806 if (mode > 300 && mode < 400) break; in do_test() [all …]
|
/linux-4.1.27/fs/9p/ |
D | vfs_inode.c | 64 static u32 unixmode2p9mode(struct v9fs_session_info *v9ses, umode_t mode) in unixmode2p9mode() argument 67 res = mode & 0777; in unixmode2p9mode() 68 if (S_ISDIR(mode)) in unixmode2p9mode() 72 if (S_ISSOCK(mode)) in unixmode2p9mode() 74 if (S_ISFIFO(mode)) in unixmode2p9mode() 76 if (S_ISBLK(mode)) in unixmode2p9mode() 78 if (S_ISCHR(mode)) in unixmode2p9mode() 82 if ((mode & S_ISUID) == S_ISUID) in unixmode2p9mode() 84 if ((mode & S_ISGID) == S_ISGID) in unixmode2p9mode() 86 if ((mode & S_ISVTX) == S_ISVTX) in unixmode2p9mode() [all …]
|
/linux-4.1.27/fs/adfs/ |
D | inode.c | 92 umode_t mode, rmask; in adfs_atts2mode() local 96 mode = S_IRUGO & asb->s_owner_mask; in adfs_atts2mode() 97 return S_IFDIR | S_IXUGO | mode; in adfs_atts2mode() 112 mode = S_IFREG; in adfs_atts2mode() 115 mode |= rmask & asb->s_owner_mask; in adfs_atts2mode() 118 mode |= S_IWUGO & asb->s_owner_mask; in adfs_atts2mode() 121 mode |= rmask & asb->s_other_mask; in adfs_atts2mode() 124 mode |= S_IWUGO & asb->s_other_mask; in adfs_atts2mode() 125 return mode; in adfs_atts2mode() 135 umode_t mode; in adfs_mode2atts() local [all …]
|
/linux-4.1.27/drivers/md/ |
D | faulty.c | 94 static int check_mode(struct faulty_conf *conf, int mode) in check_mode() argument 96 if (conf->period[mode] == 0 && in check_mode() 97 atomic_read(&conf->counters[mode]) <= 0) in check_mode() 101 if (atomic_dec_and_test(&conf->counters[mode])) { in check_mode() 102 if (conf->period[mode]) in check_mode() 103 atomic_set(&conf->counters[mode], conf->period[mode]); in check_mode() 133 static void add_sector(struct faulty_conf *conf, sector_t start, int mode) in add_sector() argument 139 switch(mode) { in add_sector() 140 case NoPersist: conf->modes[i] = mode; return; in add_sector() 168 conf->modes[n] = mode; in add_sector() [all …]
|
/linux-4.1.27/arch/x86/vdso/ |
D | vclock_gettime.c | 79 static notrace cycle_t vread_pvclock(int *mode) in vread_pvclock() argument 121 *mode = VCLOCK_NONE; in vread_pvclock() 167 static notrace cycle_t vread_pvclock(int *mode) in vread_pvclock() argument 169 *mode = VCLOCK_NONE; in vread_pvclock() 208 notrace static inline u64 vgetsns(int *mode) in vgetsns() argument 221 cycles = vread_pvclock(mode); in vgetsns() 234 int mode; in do_realtime() local 238 mode = gtod->vclock_mode; in do_realtime() 241 ns += vgetsns(&mode); in do_realtime() 248 return mode; in do_realtime() [all …]
|
/linux-4.1.27/arch/mips/txx9/generic/ |
D | irq_tx4939.c | 50 unsigned char mode; member 95 if (TXx9_IRCR_EDGE(tx4939irq[irq_nr].mode)) { in tx4939_irq_mask_ack() 110 int mode; in tx4939_irq_set_type() local 116 mode = TXx9_IRCR_UP; in tx4939_irq_set_type() 119 mode = TXx9_IRCR_DOWN; in tx4939_irq_set_type() 122 mode = TXx9_IRCR_HIGH; in tx4939_irq_set_type() 125 mode = TXx9_IRCR_LOW; in tx4939_irq_set_type() 140 cr |= (mode & 0x3) << ofs; in tx4939_irq_set_type() 142 tx4939irq[irq_nr].mode = mode; in tx4939_irq_set_type() 178 tx4939irq[i].mode = TXx9_IRCR_LOW; in tx4939_irq_init()
|
/linux-4.1.27/drivers/gpu/drm/mgag200/ |
D | mgag200_mode.c | 101 const struct drm_display_mode *mode, in mga_crtc_mode_fixup() argument 781 struct drm_display_mode *mode, in mga_crtc_mode_set() argument 865 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mga_crtc_mode_set() 867 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mga_crtc_mode_set() 906 hdisplay = mode->hdisplay / 8 - 1; in mga_crtc_mode_set() 907 hsyncstart = mode->hsync_start / 8 - 1; in mga_crtc_mode_set() 908 hsyncend = mode->hsync_end / 8 - 1; in mga_crtc_mode_set() 909 htotal = mode->htotal / 8 - 1; in mga_crtc_mode_set() 915 vdisplay = mode->vdisplay - 1; in mga_crtc_mode_set() 916 vsyncstart = mode->vsync_start - 1; in mga_crtc_mode_set() [all …]
|
/linux-4.1.27/Documentation/devicetree/bindings/mfd/ |
D | qcom-rpm.txt | 162 === Switch-mode Power Supply regulator custom properties 169 - qcom,switch-mode-frequency: 172 Definition: Frequency (Hz) of the switch-mode power supply; 178 - qcom,force-mode: 179 Usage: optional (default if no other qcom,force-mode is specified) 182 particular mode, valid values are: 183 QCOM_RPM_FORCE_MODE_NONE - do not force any mode 184 QCOM_RPM_FORCE_MODE_LPM - force into low power mode 185 QCOM_RPM_FORCE_MODE_HPM - force into high power mode 187 select its own mode based on [all …]
|
/linux-4.1.27/net/decnet/ |
D | sysctl_net_decnet.c | 253 .mode = 0644, 260 .mode = 0644, 266 .mode = 0644, 273 .mode = 0644, 282 .mode = 0644, 291 .mode = 0644, 300 .mode = 0644, 309 .mode = 0644, 318 .mode = 0644, 327 .mode = 0644, [all …]
|
/linux-4.1.27/arch/mips/include/asm/ |
D | fpu.h | 57 static inline int __enable_fpu(enum fpu_mode mode) in __enable_fpu() argument 61 switch (mode) { in __enable_fpu() 90 fr = (int)mode & FPU_FR_MASK; in __enable_fpu() 123 enum fpu_mode mode; in __own_fpu() local 127 mode = FPU_HYBRID; in __own_fpu() 129 mode = !test_thread_flag(TIF_32BIT_FPREGS); in __own_fpu() 131 ret = __enable_fpu(mode); in __own_fpu() 136 if (mode == FPU_64BIT || mode == FPU_HYBRID) in __own_fpu()
|
/linux-4.1.27/drivers/isdn/hardware/mISDN/ |
D | mISDNinfineon.c | 93 enum addr_mode mode; member 101 enum addr_mode mode; member 647 if (hw->cfg.mode) { in release_io() 653 hw->cfg.mode = AM_NONE; in release_io() 655 if (hw->addr.mode) { in release_io() 661 hw->addr.mode = AM_NONE; in release_io() 690 hw->cfg.mode = hw->ci->cfg_mode; in setup_io() 717 hw->addr.mode = hw->ci->addr_mode; in setup_io() 729 hw->isac.mode = hw->cfg.mode; in setup_io() 732 hw->hscx.mode = hw->cfg.mode; in setup_io() [all …]
|
/linux-4.1.27/drivers/crypto/ccp/ |
D | ccp-crypto-aes.c | 34 if (ctx->u.aes.mode != CCP_AES_MODE_ECB) in ccp_aes_complete() 61 ctx->u.aes.mode = alg->mode; in ccp_aes_setkey() 81 if (((ctx->u.aes.mode == CCP_AES_MODE_ECB) || in ccp_aes_crypt() 82 (ctx->u.aes.mode == CCP_AES_MODE_CBC) || in ccp_aes_crypt() 83 (ctx->u.aes.mode == CCP_AES_MODE_CFB)) && in ccp_aes_crypt() 87 if (ctx->u.aes.mode != CCP_AES_MODE_ECB) { in ccp_aes_crypt() 101 rctx->cmd.u.aes.mode = ctx->u.aes.mode; in ccp_aes_crypt() 261 enum ccp_aes_mode mode; member 271 .mode = CCP_AES_MODE_ECB, 279 .mode = CCP_AES_MODE_CBC, [all …]
|
/linux-4.1.27/drivers/iio/adc/ |
D | ad7791.c | 149 uint8_t mode; member 169 enum ad_sigma_delta_mode mode) in ad7791_set_mode() argument 173 switch (mode) { in ad7791_set_mode() 175 mode = AD7791_MODE_CONTINUOUS; in ad7791_set_mode() 178 mode = AD7791_MODE_SINGLE; in ad7791_set_mode() 182 mode = AD7791_MODE_POWERDOWN; in ad7791_set_mode() 186 st->mode &= ~AD7791_MODE_SEL_MASK; in ad7791_set_mode() 187 st->mode |= AD7791_MODE_SEL(mode); in ad7791_set_mode() 189 return ad_sd_write_reg(sd, AD7791_REG_MODE, sizeof(st->mode), st->mode); in ad7791_set_mode() 204 bool unipolar = !!(st->mode & AD7791_MODE_UNIPOLAR); in ad7791_read_raw() [all …]
|
/linux-4.1.27/drivers/media/pci/cx88/ |
D | cx88-tvaudio.c | 125 static void set_audio_start(struct cx88_core *core, u32 mode) in set_audio_start() argument 131 cx_write(AUD_INIT, mode); in set_audio_start() 172 u32 mode) in set_audio_standard_BTSC() argument 266 mode |= EN_FMRADIO_EN_RDS; in set_audio_standard_BTSC() 272 set_audio_finish(core, mode); in set_audio_standard_BTSC() 277 set_audio_finish(core, mode); in set_audio_standard_BTSC() 281 static void set_audio_standard_NICAM(struct cx88_core *core, u32 mode) in set_audio_standard_NICAM() argument 378 mode |= EN_DMTRX_LR | EN_DMTRX_BYPASS; in set_audio_standard_NICAM() 379 set_audio_finish(core, mode); in set_audio_standard_NICAM() 382 static void set_audio_standard_A2(struct cx88_core *core, u32 mode) in set_audio_standard_A2() argument [all …]
|
/linux-4.1.27/arch/arm/mach-omap2/ |
D | common.h | 152 void omap2xxx_restart(enum reboot_mode mode, const char *cmd); 154 static inline void omap2xxx_restart(enum reboot_mode mode, const char *cmd) in omap2xxx_restart() argument 160 void am33xx_restart(enum reboot_mode mode, const char *cmd); 162 static inline void am33xx_restart(enum reboot_mode mode, const char *cmd) in am33xx_restart() argument 168 void omap3xxx_restart(enum reboot_mode mode, const char *cmd); 170 static inline void omap3xxx_restart(enum reboot_mode mode, const char *cmd) in omap3xxx_restart() argument 176 void ti81xx_restart(enum reboot_mode mode, const char *cmd); 178 static inline void ti81xx_restart(enum reboot_mode mode, const char *cmd) in ti81xx_restart() argument 185 void omap44xx_restart(enum reboot_mode mode, const char *cmd); 187 static inline void omap44xx_restart(enum reboot_mode mode, const char *cmd) in omap44xx_restart() argument
|
/linux-4.1.27/security/keys/ |
D | sysctl.c | 23 .mode = 0644, 32 .mode = 0644, 41 .mode = 0644, 50 .mode = 0644, 59 .mode = 0644, 69 .mode = 0644,
|
/linux-4.1.27/drivers/input/misc/ |
D | ati_remote2.c | 198 int mode; member 317 int channel, mode; in ati_remote2_input_mouse() local 324 mode = data[0] & 0x0F; in ati_remote2_input_mouse() 326 if (mode > ATI_REMOTE2_PC) { in ati_remote2_input_mouse() 333 if (!((1 << mode) & ar2->mode_mask)) in ati_remote2_input_mouse() 356 int channel, mode, hw_code, index; in ati_remote2_input_key() local 363 mode = data[0] & 0x0F; in ati_remote2_input_key() 365 if (mode > ATI_REMOTE2_PC) { in ati_remote2_input_key() 381 if (ar2->mode == mode) in ati_remote2_input_key() 385 ar2->mode = mode; in ati_remote2_input_key() [all …]
|
/linux-4.1.27/security/tomoyo/ |
D | audit.c | 115 static inline const char *tomoyo_filetype(const umode_t mode) in tomoyo_filetype() argument 117 switch (mode & S_IFMT) { in tomoyo_filetype() 167 tomoyo_mode[r->mode], tomoyo_yesno(r->granted), gpid, in tomoyo_print_header() 186 umode_t mode; in tomoyo_print_header() local 191 mode = stat->mode; in tomoyo_print_header() 200 stat->mode & S_IALLUGO); in tomoyo_print_header() 210 mode & S_IALLUGO, tomoyo_filetype(mode)); in tomoyo_print_header() 211 if (S_ISCHR(mode) || S_ISBLK(mode)) { in tomoyo_print_header() 326 u8 mode; in tomoyo_get_audit() local 338 mode = p->config[index]; in tomoyo_get_audit() [all …]
|
/linux-4.1.27/drivers/usb/phy/ |
D | phy-ab8500-usb.c | 221 enum ab8500_usb_mode mode; member 438 if (ab->mode == USB_PERIPHERAL) in ab9540_usb_link_status_update() 441 ab->mode = USB_IDLE; in ab9540_usb_link_status_update() 457 if (ab->mode == USB_HOST) { in ab9540_usb_link_status_update() 458 ab->mode = USB_PERIPHERAL; in ab9540_usb_link_status_update() 465 if (ab->mode == USB_IDLE) { in ab9540_usb_link_status_update() 466 ab->mode = USB_PERIPHERAL; in ab9540_usb_link_status_update() 480 if (ab->mode == USB_PERIPHERAL) { in ab9540_usb_link_status_update() 481 ab->mode = USB_HOST; in ab9540_usb_link_status_update() 487 if (ab->mode == USB_IDLE) { in ab9540_usb_link_status_update() [all …]
|
/linux-4.1.27/net/x25/ |
D | sysctl_net_x25.c | 25 .mode = 0644, 34 .mode = 0644, 43 .mode = 0644, 52 .mode = 0644, 61 .mode = 0644, 70 .mode = 0644,
|
/linux-4.1.27/drivers/net/wireless/b43/ |
D | sysfs.c | 98 int mode; in b43_attr_interfmode_store() local 103 mode = get_integer(buf, count); in b43_attr_interfmode_store() 104 switch (mode) { in b43_attr_interfmode_store() 106 mode = B43_INTERFMODE_NONE; in b43_attr_interfmode_store() 109 mode = B43_INTERFMODE_NONWLAN; in b43_attr_interfmode_store() 112 mode = B43_INTERFMODE_MANUALWLAN; in b43_attr_interfmode_store() 115 mode = B43_INTERFMODE_AUTOWLAN; in b43_attr_interfmode_store() 124 err = wldev->phy.ops->interf_mitigation(wldev, mode); in b43_attr_interfmode_store()
|
/linux-4.1.27/drivers/media/usb/s2255/ |
D | s2255drv.c | 224 struct s2255_mode mode; member 354 static int s2255_set_mode(struct s2255_vc *vc, struct s2255_mode *mode); 846 struct s2255_mode mode; in vidioc_s_fmt_vid_cap() local 864 mode = vc->mode; in vidioc_s_fmt_vid_cap() 873 mode.scale = SCALE_4CIFSI; in vidioc_s_fmt_vid_cap() 875 mode.scale = SCALE_4CIFS; in vidioc_s_fmt_vid_cap() 877 mode.scale = SCALE_2CIFS; in vidioc_s_fmt_vid_cap() 880 mode.scale = SCALE_1CIFS; in vidioc_s_fmt_vid_cap() 885 mode.color &= ~MASK_COLOR; in vidioc_s_fmt_vid_cap() 886 mode.color |= COLOR_Y8; in vidioc_s_fmt_vid_cap() [all …]
|
/linux-4.1.27/drivers/pps/ |
D | kapi.c | 85 if ((info->mode & default_params) != default_params) { in pps_register_source() 91 if ((info->mode & (PPS_TSFMT_TSPEC | PPS_TSFMT_NTPFP)) == 0) { in pps_register_source() 109 pps->params.mode = default_params; in pps_register_source() 113 if ((pps->info.mode & (PPS_ECHOASSERT | PPS_ECHOCLEAR)) && in pps_register_source() 190 if ((pps->params.mode & (PPS_ECHOASSERT | PPS_ECHOCLEAR))) in pps_event() 194 pps->current_mode = pps->params.mode; in pps_event() 195 if (event & pps->params.mode & PPS_CAPTUREASSERT) { in pps_event() 197 if (pps->params.mode & PPS_OFFSETASSERT) in pps_event() 209 if (event & pps->params.mode & PPS_CAPTURECLEAR) { in pps_event() 211 if (pps->params.mode & PPS_OFFSETCLEAR) in pps_event()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | floppy.h | 23 #define fd_set_dma_mode(mode) set_dma_mode(FLOPPY_DMA, mode) argument 34 #define fd_dma_setup(addr,size,mode,io) fd_ops->_dma_setup(addr,size,mode,io) argument 42 int (*_dma_setup)(char *addr, unsigned long size, int mode, int io); 117 static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io) in vdma_dma_setup() argument 121 virtual_dma_mode = (mode == DMA_MODE_WRITE); in vdma_dma_setup() 128 static int hard_dma_setup(char *addr, unsigned long size, int mode, int io) in hard_dma_setup() argument 137 dir = (mode == DMA_MODE_READ) ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE; in hard_dma_setup() 156 fd_set_dma_mode(mode); in hard_dma_setup()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/ |
D | fw-api-power.h | 438 #define IWL_BF_CMD_CONFIG(mode) \ argument 439 .bf_energy_delta = cpu_to_le32(IWL_BF_ENERGY_DELTA ## mode), \ 441 cpu_to_le32(IWL_BF_ROAMING_ENERGY_DELTA ## mode), \ 442 .bf_roaming_state = cpu_to_le32(IWL_BF_ROAMING_STATE ## mode), \ 443 .bf_temp_threshold = cpu_to_le32(IWL_BF_TEMP_THRESHOLD ## mode), \ 444 .bf_temp_fast_filter = cpu_to_le32(IWL_BF_TEMP_FAST_FILTER ## mode), \ 445 .bf_temp_slow_filter = cpu_to_le32(IWL_BF_TEMP_SLOW_FILTER ## mode), \ 446 .bf_debug_flag = cpu_to_le32(IWL_BF_DEBUG_FLAG ## mode), \ 447 .bf_escape_timer = cpu_to_le32(IWL_BF_ESCAPE_TIMER ## mode), \ 448 .ba_escape_timer = cpu_to_le32(IWL_BA_ESCAPE_TIMER ## mode)
|
/linux-4.1.27/drivers/gpu/drm/exynos/ |
D | exynos7_drm_decon.c | 154 const struct drm_display_mode *mode) in decon_calc_clkdiv() argument 156 unsigned long ideal_clk = mode->htotal * mode->vtotal * mode->vrefresh; in decon_calc_clkdiv() 166 const struct drm_display_mode *mode, in decon_mode_fixup() argument 178 struct drm_display_mode *mode = &crtc->base.mode; in decon_commit() local 185 if (mode->htotal == 0 || mode->vtotal == 0) in decon_commit() 191 vsync_len = mode->crtc_vsync_end - mode->crtc_vsync_start; in decon_commit() 192 vbpd = mode->crtc_vtotal - mode->crtc_vsync_end; in decon_commit() 193 vfpd = mode->crtc_vsync_start - mode->crtc_vdisplay; in decon_commit() 202 hsync_len = mode->crtc_hsync_end - mode->crtc_hsync_start; in decon_commit() 203 hbpd = mode->crtc_htotal - mode->crtc_hsync_end; in decon_commit() [all …]
|
/linux-4.1.27/arch/m68k/ifpsp060/ |
D | os.S | 59 | instructions for supervisor mode applications and call _copyin()/_copyout() 60 | for user mode applications. 76 | Writes to data memory while in supervisor mode. 82 | 0x4(%a6),bit5 - 1 = supervisor mode, 0 = user mode 107 | Reads from data/instruction memory while in supervisor mode. 113 | 0x4(%a6),bit5 - 1 = supervisor mode, 0 = user mode 144 | 0x4(%a6),bit5 - 1 = supervisor mode, 0 = user mode 167 | 0x4(%a6),bit5 - 1 = supervisor mode, 0 = user mode 178 | 0x4(%a6),bit5 - 1 = supervisor mode, 0 = user mode 203 | 0x4(%a6),bit5 - 1 = supervisor mode, 0 = user mode [all …]
|
/linux-4.1.27/net/rds/ |
D | iw_sysctl.c | 63 .mode = 0644, 72 .mode = 0644, 81 .mode = 0644, 90 .mode = 0644, 99 .mode = 0644, 106 .mode = 0644,
|
/linux-4.1.27/Documentation/devicetree/bindings/ |
D | common-properties.txt | 11 know the peripheral always needs to be accessed in BE mode. 14 peripheral always needs to be accessed in LE mode. 30 Scenario 1 : CPU in LE mode & device in LE mode. 38 Scenario 2 : CPU in LE mode & device in BE mode. 46 Scenario 3 : CPU in BE mode & device in BE mode. 54 Scenario 4 : CPU in BE mode & device in LE mode.
|
/linux-4.1.27/drivers/video/fbdev/mmp/hw/ |
D | mmp_ctrl.c | 258 static void path_set_mode(struct mmp_path *path, struct mmp_mode *mode) in path_set_mode() argument 266 memcpy(&path->mode, mode, sizeof(struct mmp_mode)); in path_set_mode() 272 tmp |= mode->vsync_invert ? 0 : 0x8; in path_set_mode() 273 tmp |= mode->hsync_invert ? 0 : 0x4; in path_set_mode() 284 writel_relaxed((mode->yres << 16) | mode->xres, ®s->screen_active); in path_set_mode() 285 writel_relaxed((mode->left_margin << 16) | mode->right_margin, in path_set_mode() 287 writel_relaxed((mode->upper_margin << 16) | mode->lower_margin, in path_set_mode() 289 total_x = mode->xres + mode->left_margin + mode->right_margin + in path_set_mode() 290 mode->hsync_len; in path_set_mode() 291 total_y = mode->yres + mode->upper_margin + mode->lower_margin + in path_set_mode() [all …]
|
/linux-4.1.27/arch/alpha/include/asm/ |
D | floppy.h | 22 #define fd_set_dma_mode(mode) set_dma_mode(FLOPPY_DMA,mode) argument 36 #define fd_dma_setup(addr,size,mode,io) alpha_fd_dma_setup(addr,size,mode,io) argument 39 alpha_fd_dma_setup(char *addr, unsigned long size, int mode, int io) in alpha_fd_dma_setup() argument 47 dir = (mode != DMA_MODE_READ) ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE; in alpha_fd_dma_setup() 66 fd_set_dma_mode(mode); in alpha_fd_dma_setup()
|
/linux-4.1.27/arch/ia64/sn/kernel/ |
D | bte.c | 46 static inline void bte_start_transfer(struct bteinfo_s *bte, u64 len, u64 mode) in bte_start_transfer() argument 49 BTE_CTRL_STORE(bte, (IBLS_BUSY | ((len) | (mode) << 24))); in bte_start_transfer() 52 BTE_CTRL_STORE(bte, mode); in bte_start_transfer() 80 bte_result_t bte_copy(u64 src, u64 dest, u64 len, u64 mode, void *notification) in bte_copy() argument 95 src, dest, len, mode, notification)); in bte_copy() 111 if (mode & BTE_USE_DEST) { in bte_copy() 114 if (mode & BTE_USE_ANY) { in bte_copy() 122 if (mode & BTE_USE_ANY) { in bte_copy() 173 if (!(mode & BTE_WACQUIRE)) { in bte_copy() 203 BTE_PRINTK(("IBCT = 0x%lx)\n", BTE_VALID_MODE(mode))); in bte_copy() [all …]
|
/linux-4.1.27/init/ |
D | initramfs.c | 58 umode_t mode; member 71 umode_t mode, char *name) in find_link() argument 81 if (((*p)->mode ^ mode) & S_IFMT) in find_link() 91 q->mode = mode; in find_link() 156 static __initdata umode_t mode; variable 174 mode = parsed[1]; in parse_header() 267 if (S_ISLNK(mode)) { in do_header() 276 if (S_ISREG(mode) || !body_len) in do_header() 305 char *old = find_link(major, minor, ino, mode, collected); in maybe_link() 334 clean_path(collected, mode); in do_name() [all …]
|
/linux-4.1.27/drivers/isdn/hisax/ |
D | st5481_b.c | 67 if (bcs->mode == L1_MODE_TRANS) { in usb_b_out() 98 if (bcs->mode == L1_MODE_TRANS) { in usb_b_out() 200 static void st5481B_mode(struct st5481_bcs *bcs, int mode) in st5481B_mode() argument 205 DBG(4, "B%d,mode=%d", bcs->channel + 1, mode); in st5481B_mode() 207 if (bcs->mode == mode) in st5481B_mode() 210 bcs->mode = mode; in st5481B_mode() 217 st5481_in_mode(&bcs->b_in, mode); in st5481B_mode() 218 if (bcs->mode != L1_MODE_NULL) { in st5481B_mode() 220 if (bcs->mode != L1_MODE_TRANS) { in st5481B_mode() 222 if (bcs->mode == L1_MODE_HDLC_56K) in st5481B_mode() [all …]
|