/kernel/linux/linux-5.10/drivers/gpu/drm/selftests/ |
D | test-drm_cmdline_parser.c | 22 struct drm_cmdline_mode mode = { }; in drm_cmdline_test_force_e_only() local 26 &mode)); in drm_cmdline_test_force_e_only() 27 FAIL_ON(mode.specified); in drm_cmdline_test_force_e_only() 28 FAIL_ON(mode.refresh_specified); in drm_cmdline_test_force_e_only() 29 FAIL_ON(mode.bpp_specified); in drm_cmdline_test_force_e_only() 31 FAIL_ON(mode.rb); in drm_cmdline_test_force_e_only() 32 FAIL_ON(mode.cvt); in drm_cmdline_test_force_e_only() 33 FAIL_ON(mode.interlace); in drm_cmdline_test_force_e_only() 34 FAIL_ON(mode.margins); in drm_cmdline_test_force_e_only() 35 FAIL_ON(mode.force != DRM_FORCE_ON); in drm_cmdline_test_force_e_only() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/ |
D | mdfld_tmd_vid.c | 37 struct drm_display_mode *mode; in tmd_vid_get_config_mode() local 42 mode = kzalloc(sizeof(*mode), GFP_KERNEL); in tmd_vid_get_config_mode() 43 if (!mode) in tmd_vid_get_config_mode() 47 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in tmd_vid_get_config_mode() 48 mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo; in tmd_vid_get_config_mode() 49 mode->hsync_start = mode->hdisplay + \ in tmd_vid_get_config_mode() 52 mode->hsync_end = mode->hsync_start + \ in tmd_vid_get_config_mode() 55 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in tmd_vid_get_config_mode() 57 mode->vsync_start = \ in tmd_vid_get_config_mode() 58 mode->vdisplay + ((ti->vsync_offset_hi << 8) | \ in tmd_vid_get_config_mode() [all …]
|
D | mdfld_tpo_vid.c | 32 struct drm_display_mode *mode; in tpo_vid_get_config_mode() local 34 mode = kzalloc(sizeof(*mode), GFP_KERNEL); in tpo_vid_get_config_mode() 35 if (!mode) in tpo_vid_get_config_mode() 38 mode->hdisplay = 864; in tpo_vid_get_config_mode() 39 mode->vdisplay = 480; in tpo_vid_get_config_mode() 40 mode->hsync_start = 873; in tpo_vid_get_config_mode() 41 mode->hsync_end = 876; in tpo_vid_get_config_mode() 42 mode->htotal = 887; in tpo_vid_get_config_mode() 43 mode->vsync_start = 487; in tpo_vid_get_config_mode() 44 mode->vsync_end = 490; in tpo_vid_get_config_mode() [all …]
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
D | wcd-clsh-v2.c | 14 int mode; member 127 int mode) in wcd_clsh_set_buck_mode() argument 130 if (mode == CLS_H_HIFI) in wcd_clsh_set_buck_mode() 141 int mode) in wcd_clsh_set_flyback_mode() argument 144 if (mode == CLS_H_HIFI) in wcd_clsh_set_flyback_mode() 155 int mode, in wcd_clsh_buck_ctrl() argument 174 int mode, in wcd_clsh_flyback_ctrl() argument 195 static void wcd_clsh_set_gain_path(struct wcd_clsh_ctrl *ctrl, int mode) in wcd_clsh_set_gain_path() argument 200 switch (mode) { in wcd_clsh_set_gain_path() 223 int mode) in wcd_clsh_set_hph_mode() argument [all …]
|
D | wl1273.c | 24 enum wl1273_mode mode; member 34 u16 mode; in snd_wl1273_fm_set_i2s_mode() local 41 mode = core->i2s_mode & ~WL1273_IS2_WIDTH & ~WL1273_IS2_RATE; in snd_wl1273_fm_set_i2s_mode() 45 mode |= WL1273_IS2_RATE_48K; in snd_wl1273_fm_set_i2s_mode() 48 mode |= WL1273_IS2_RATE_44_1K; in snd_wl1273_fm_set_i2s_mode() 51 mode |= WL1273_IS2_RATE_32K; in snd_wl1273_fm_set_i2s_mode() 54 mode |= WL1273_IS2_RATE_22_05K; in snd_wl1273_fm_set_i2s_mode() 57 mode |= WL1273_IS2_RATE_16K; in snd_wl1273_fm_set_i2s_mode() 60 mode |= WL1273_IS2_RATE_12K; in snd_wl1273_fm_set_i2s_mode() 63 mode |= WL1273_IS2_RATE_11_025; in snd_wl1273_fm_set_i2s_mode() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | sysctl_net_ipv4.c | 83 .mode = table->mode, in ipv4_local_port_range() 119 .mode = table->mode, in ipv4_privileged_ports() 179 .mode = table->mode, in ipv4_ping_group_range() 418 .mode = 0644, 425 .mode = 0644, 432 .mode = 0644, 439 .mode = 0644, 446 .mode = 0644, 453 .mode = 0644, 461 .mode = 0644, [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
D | agp.c | 31 int mode; member 59 u32 mode = nvkm_pci_rd32(pci, 0x004c); in nvkm_agp_preinit() local 66 if ((mode | pci->agp.mode) & PCI_AGP_COMMAND_FW) { in nvkm_agp_preinit() 67 mode = pci->agp.mode & ~PCI_AGP_COMMAND_FW; in nvkm_agp_preinit() 68 agp_enable(pci->agp.bridge, mode); in nvkm_agp_preinit() 92 agp_enable(pci->agp.bridge, pci->agp.mode); in nvkm_agp_init() 110 int mode = -1; in nvkm_agp_ctor() local 120 mode = 0; in nvkm_agp_ctor() 122 mode = nvkm_longopt(device->cfgopt, "NvAGP", mode); in nvkm_agp_ctor() 132 pci->agp.mode = info.mode; in nvkm_agp_ctor() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | pad.c | 27 nvkm_i2c_pad_mode_locked(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode_locked() argument 29 PAD_TRACE(pad, "-> %s", (mode == NVKM_I2C_PAD_AUX) ? "aux" : in nvkm_i2c_pad_mode_locked() 30 (mode == NVKM_I2C_PAD_I2C) ? "i2c" : "off"); in nvkm_i2c_pad_mode_locked() 31 if (pad->func->mode) in nvkm_i2c_pad_mode_locked() 32 pad->func->mode(pad, mode); in nvkm_i2c_pad_mode_locked() 36 nvkm_i2c_pad_mode(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode() argument 38 PAD_TRACE(pad, "mode %d", mode); in nvkm_i2c_pad_mode() 40 nvkm_i2c_pad_mode_locked(pad, mode); in nvkm_i2c_pad_mode() 41 pad->mode = mode; in nvkm_i2c_pad_mode() 49 if (pad->mode == NVKM_I2C_PAD_OFF) in nvkm_i2c_pad_release() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_modes.c | 54 void drm_mode_debug_printmodeline(const struct drm_display_mode *mode) in drm_mode_debug_printmodeline() argument 56 DRM_DEBUG_KMS("Modeline " DRM_MODE_FMT "\n", DRM_MODE_ARG(mode)); in drm_mode_debug_printmodeline() 89 void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode) in drm_mode_destroy() argument 91 if (!mode) in drm_mode_destroy() 94 kfree(mode); in drm_mode_destroy() 108 struct drm_display_mode *mode) in drm_mode_probed_add() argument 112 list_add_tail(&mode->head, &connector->probed_modes); in drm_mode_probed_add() 740 void drm_mode_set_name(struct drm_display_mode *mode) in drm_mode_set_name() argument 742 bool interlaced = !!(mode->flags & DRM_MODE_FLAG_INTERLACE); in drm_mode_set_name() 744 snprintf(mode->name, DRM_DISPLAY_MODE_LEN, "%dx%d%s", in drm_mode_set_name() [all …]
|
/kernel/linux/linux-5.10/kernel/ |
D | sysctl.c | 215 .mode = table->mode, in bpf_stats_handler() 1663 .mode = table->mode, in proc_do_static_key() 1689 .mode = 0644, 1697 .mode = 0644, 1706 .mode = 0644, 1715 .mode = 0644, 1724 .mode = 0644, 1733 .mode = 0644, 1740 .mode = 0644, 1749 .mode = 0644, [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/ipu-v3/ |
D | ipu-di.c | 205 u32 h_total = sig->mode.hactive + sig->mode.hsync_len + in ipu_di_sync_config_interlaced() 206 sig->mode.hback_porch + sig->mode.hfront_porch; in ipu_di_sync_config_interlaced() 207 u32 v_total = sig->mode.vactive + sig->mode.vsync_len + in ipu_di_sync_config_interlaced() 208 sig->mode.vback_porch + sig->mode.vfront_porch; in ipu_di_sync_config_interlaced() 220 .cnt_down = sig->mode.hsync_len * 2, in ipu_di_sync_config_interlaced() 227 .cnt_down = sig->mode.vsync_len * 2, in ipu_di_sync_config_interlaced() 240 .offset_count = (sig->mode.vsync_len + in ipu_di_sync_config_interlaced() 241 sig->mode.vback_porch) / 2, in ipu_di_sync_config_interlaced() 243 .repeat_count = sig->mode.vactive / 2, in ipu_di_sync_config_interlaced() 248 .offset_count = sig->mode.hsync_len + in ipu_di_sync_config_interlaced() [all …]
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | demangle-java.c | 45 __demangle_java_sym(const char *str, const char *end, char *buf, int maxlen, int mode) in __demangle_java_sym() argument 62 if (mode == MODE_PREFIX || mode == MODE_TYPE) { in __demangle_java_sym() 63 if (mode == MODE_TYPE) { in __demangle_java_sym() 68 if (mode == MODE_PREFIX) in __demangle_java_sym() 69 mode = MODE_CLASS; in __demangle_java_sym() 71 mode = MODE_CTYPE; in __demangle_java_sym() 83 if (mode == MODE_TYPE) { in __demangle_java_sym() 95 if (mode == MODE_TYPE) { in __demangle_java_sym() 104 if (mode != MODE_TYPE) in __demangle_java_sym() 109 if (mode != MODE_FUNC) in __demangle_java_sym() [all …]
|
/kernel/linux/linux-5.10/drivers/phy/hisilicon/ |
D | phy-histb-combphy.c | 49 struct histb_combphy_mode mode; member 73 static int is_mode_fixed(struct histb_combphy_mode *mode) in is_mode_fixed() argument 75 return (mode->fixed != PHY_NONE) ? true : false; in is_mode_fixed() 80 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_set_mode() local 84 if (is_mode_fixed(mode)) in histb_combphy_set_mode() 87 switch (mode->select) { in histb_combphy_set_mode() 101 return regmap_update_bits(syscon, mode->reg, mode->mask, in histb_combphy_set_mode() 102 hw_sel << mode->shift); in histb_combphy_set_mode() 168 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_xlate() local 175 mode->select = args->args[0]; in histb_combphy_xlate() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/reset/ |
D | nvmem-reboot-mode.txt | 1 NVMEM reboot mode driver 3 This driver gets reboot mode magic value from reboot-mode driver 4 and stores it in a NVMEM cell named "reboot-mode". Then the bootloader 9 - compatible: should be "nvmem-reboot-mode". 10 - nvmem-cells: A phandle to the reboot mode provided by a nvmem device. 11 - nvmem-cell-names: Should be "reboot-mode". 13 The rest of the properties should follow the generic reboot-mode description 14 found in reboot-mode.txt 17 reboot-mode { 18 compatible = "nvmem-reboot-mode"; [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp4/ |
D | mdp4_dsi_encoder.c | 40 struct drm_display_mode *mode, in mdp4_dsi_encoder_mode_set() argument 48 mode = adjusted_mode; in mdp4_dsi_encoder_mode_set() 50 DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); in mdp4_dsi_encoder_mode_set() 53 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp4_dsi_encoder_mode_set() 55 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mdp4_dsi_encoder_mode_set() 61 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dsi_encoder_mode_set() 62 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dsi_encoder_mode_set() 64 vsync_period = mode->vtotal * mode->htotal; in mdp4_dsi_encoder_mode_set() 65 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dsi_encoder_mode_set() 66 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dsi_hsync_skew; in mdp4_dsi_encoder_mode_set() [all …]
|
/kernel/linux/linux-5.10/drivers/ide/ |
D | ide-xfer-mode.c | 28 const char *ide_xfer_verbose(u8 mode) in ide_xfer_verbose() argument 31 u8 i = mode & 0xf; in ide_xfer_verbose() 33 if (mode >= XFER_UDMA_0 && mode <= XFER_UDMA_7) in ide_xfer_verbose() 35 else if (mode >= XFER_MW_DMA_0 && mode <= XFER_MW_DMA_4) in ide_xfer_verbose() 37 else if (mode >= XFER_SW_DMA_0 && mode <= XFER_SW_DMA_2) in ide_xfer_verbose() 39 else if (mode >= XFER_PIO_0 && mode <= XFER_PIO_6) in ide_xfer_verbose() 41 else if (mode == XFER_PIO_SLOW) in ide_xfer_verbose() 123 int ide_set_pio_mode(ide_drive_t *drive, const u8 mode) in ide_set_pio_mode() argument 139 drive->pio_mode = mode; in ide_set_pio_mode() 145 if (ide_config_drive_speed(drive, mode)) in ide_set_pio_mode() [all …]
|
/kernel/linux/linux-5.10/drivers/hid/ |
D | hid-saitek.c | 33 int mode; member 50 ssc->mode = -1; in saitek_probe() 100 int mode = -1; in saitek_raw_event() local 102 mode = 0; in saitek_raw_event() 104 mode = 1; in saitek_raw_event() 106 mode = 2; in saitek_raw_event() 111 if (mode != ssc->mode) { in saitek_raw_event() 112 hid_dbg(hdev, "entered mode %d\n", mode); in saitek_raw_event() 113 if (ssc->mode != -1) { in saitek_raw_event() 117 ssc->mode = mode; in saitek_raw_event() [all …]
|
/kernel/linux/linux-5.10/drivers/video/fbdev/core/ |
D | modedb.c | 543 const struct fb_videomode *mode, unsigned int bpp) in fb_try_mode() argument 548 mode->name ? mode->name : "noname", in fb_try_mode() 549 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode() 550 var->xres = mode->xres; in fb_try_mode() 551 var->yres = mode->yres; in fb_try_mode() 552 var->xres_virtual = mode->xres; in fb_try_mode() 553 var->yres_virtual = mode->yres; in fb_try_mode() 558 var->pixclock = mode->pixclock; in fb_try_mode() 559 var->left_margin = mode->left_margin; in fb_try_mode() 560 var->right_margin = mode->right_margin; in fb_try_mode() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/emac/ |
D | zmii.c | 45 static inline int zmii_valid_mode(int mode) in zmii_valid_mode() argument 47 return mode == PHY_INTERFACE_MODE_MII || in zmii_valid_mode() 48 mode == PHY_INTERFACE_MODE_RMII || in zmii_valid_mode() 49 mode == PHY_INTERFACE_MODE_SMII || in zmii_valid_mode() 50 mode == PHY_INTERFACE_MODE_NA; in zmii_valid_mode() 53 static inline const char *zmii_mode_name(int mode) in zmii_mode_name() argument 55 switch (mode) { in zmii_mode_name() 67 static inline u32 zmii_mode_mask(int mode, int input) in zmii_mode_mask() argument 69 switch (mode) { in zmii_mode_mask() 82 phy_interface_t *mode) in zmii_attach() argument [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | phylink.h | 25 static inline bool phylink_autoneg_inband(unsigned int mode) in phylink_autoneg_inband() argument 27 return mode == MLO_AN_INBAND; in phylink_autoneg_inband() 98 int (*mac_prepare)(struct phylink_config *config, unsigned int mode, 100 void (*mac_config)(struct phylink_config *config, unsigned int mode, 102 int (*mac_finish)(struct phylink_config *config, unsigned int mode, 105 void (*mac_link_down)(struct phylink_config *config, unsigned int mode, 108 struct phy_device *phy, unsigned int mode, 180 int mac_prepare(struct phylink_config *config, unsigned int mode, 255 void mac_config(struct phylink_config *config, unsigned int mode, 272 int mac_finish(struct phylink_config *config, unsigned int mode, [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | radeon_agp.c | 136 struct drm_agp_mode mode; in radeon_agp_init() local 165 mode.mode = info.mode; in radeon_agp_init() 170 agp_status = (RREG32(RADEON_AGP_STATUS) | RADEON_AGPv3_MODE) & mode.mode; in radeon_agp_init() 172 agp_status = mode.mode; in radeon_agp_init() 215 mode.mode &= ~RADEON_AGP_MODE_MASK; in radeon_agp_init() 219 mode.mode |= RADEON_AGPv3_8X_MODE; in radeon_agp_init() 223 mode.mode |= RADEON_AGPv3_4X_MODE; in radeon_agp_init() 229 mode.mode |= RADEON_AGP_4X_MODE; in radeon_agp_init() 232 mode.mode |= RADEON_AGP_2X_MODE; in radeon_agp_init() 236 mode.mode |= RADEON_AGP_1X_MODE; in radeon_agp_init() [all …]
|