/linux-6.12.1/drivers/gpu/drm/tests/ |
D | drm_cmdline_parser_test.c | 16 struct drm_cmdline_mode mode = { }; in drm_test_cmdline_force_e_only() local 20 &no_connector, &mode)); in drm_test_cmdline_force_e_only() 21 KUNIT_EXPECT_FALSE(test, mode.specified); in drm_test_cmdline_force_e_only() 22 KUNIT_EXPECT_FALSE(test, mode.refresh_specified); in drm_test_cmdline_force_e_only() 23 KUNIT_EXPECT_FALSE(test, mode.bpp_specified); in drm_test_cmdline_force_e_only() 25 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_e_only() 26 KUNIT_EXPECT_FALSE(test, mode.cvt); in drm_test_cmdline_force_e_only() 27 KUNIT_EXPECT_FALSE(test, mode.interlace); in drm_test_cmdline_force_e_only() 28 KUNIT_EXPECT_FALSE(test, mode.margins); in drm_test_cmdline_force_e_only() 29 KUNIT_EXPECT_EQ(test, mode.force, DRM_FORCE_ON); in drm_test_cmdline_force_e_only() [all …]
|
D | drm_modes_test.c | 42 struct drm_display_mode *mode; in drm_test_modes_analog_tv_ntsc_480i() local 44 mode = drm_analog_tv_mode(priv->drm, in drm_test_modes_analog_tv_ntsc_480i() 48 KUNIT_ASSERT_NOT_NULL(test, mode); in drm_test_modes_analog_tv_ntsc_480i() 50 KUNIT_EXPECT_EQ(test, drm_mode_vrefresh(mode), 60); in drm_test_modes_analog_tv_ntsc_480i() 51 KUNIT_EXPECT_EQ(test, mode->hdisplay, 720); in drm_test_modes_analog_tv_ntsc_480i() 54 KUNIT_EXPECT_EQ(test, mode->hsync_start, 736); in drm_test_modes_analog_tv_ntsc_480i() 63 KUNIT_EXPECT_EQ(test, mode->htotal, 858); in drm_test_modes_analog_tv_ntsc_480i() 65 KUNIT_EXPECT_EQ(test, mode->vdisplay, 480); in drm_test_modes_analog_tv_ntsc_480i() 66 KUNIT_EXPECT_EQ(test, mode->vtotal, 525); in drm_test_modes_analog_tv_ntsc_480i() 72 struct drm_display_mode *expected, *mode; in drm_test_modes_analog_tv_ntsc_480i_inlined() local [all …]
|
/linux-6.12.1/sound/soc/codecs/ |
D | wcd-clsh-v2.c | 14 int mode; member 134 int mode) in wcd_clsh_set_buck_mode() argument 137 if (mode == CLS_H_HIFI) in wcd_clsh_set_buck_mode() 148 int mode) in wcd_clsh_v3_set_buck_mode() argument 150 if (mode == CLS_H_HIFI || mode == CLS_H_LOHIFI || in wcd_clsh_v3_set_buck_mode() 151 mode == CLS_AB_HIFI || mode == CLS_AB_LOHIFI) in wcd_clsh_v3_set_buck_mode() 162 int mode) in wcd_clsh_set_flyback_mode() argument 165 if (mode == CLS_H_HIFI) in wcd_clsh_set_flyback_mode() 176 int mode, in wcd_clsh_buck_ctrl() argument 196 int mode, in wcd_clsh_v3_buck_ctrl() argument [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | test_xdp_redirect_multi.sh | 78 local mode=$1 81 if [ "$mode" = "xdpegress" ]; then 82 mode="xdpdrv" 96 ip -n ${NS[$i]} link set veth0 $mode obj \ 106 local mode=$1 109 ip netns exec ${NS[2]} tcpdump -e -i veth0 -nn -l -e &> ${LOG_DIR}/mac_ns1-2_${mode}.log & 110 ip netns exec ${NS[3]} tcpdump -e -i veth0 -nn -l -e &> ${LOG_DIR}/mac_ns1-3_${mode}.log & 117 grep -q "${veth_mac[2]} > ff:ff:ff:ff:ff:ff" ${LOG_DIR}/mac_ns1-2_${mode}.log && \ 118 test_pass "$mode mac ns1-2" || test_fail "$mode mac ns1-2" 119 grep -q "${veth_mac[3]} > ff:ff:ff:ff:ff:ff" ${LOG_DIR}/mac_ns1-3_${mode}.log && \ [all …]
|
/linux-6.12.1/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-6.12.1/drivers/interconnect/imx/ |
D | imx8mp.c | 24 .mode = IMX_NOC_MODE_FIXED, 29 .mode = IMX_NOC_MODE_FIXED, 34 .mode = IMX_NOC_MODE_FIXED, 39 .mode = IMX_NOC_MODE_FIXED, 44 .mode = IMX_NOC_MODE_FIXED, 49 .mode = IMX_NOC_MODE_FIXED, 54 .mode = IMX_NOC_MODE_FIXED, 59 .mode = IMX_NOC_MODE_FIXED, 64 .mode = IMX_NOC_MODE_FIXED, 69 .mode = IMX_NOC_MODE_FIXED, [all …]
|
/linux-6.12.1/net/ipv4/ |
D | sysctl_net_ipv4.c | 74 .mode = table->mode, in ipv4_local_port_range() 110 .mode = table->mode, in ipv4_privileged_ports() 172 .mode = table->mode, in ipv4_ping_group_range() 529 .mode = 0644, 536 .mode = 0644, 543 .mode = 0644, 550 .mode = 0644, 557 .mode = 0644, 564 .mode = 0644, 572 .mode = 0644, [all …]
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
D | agp.c | 31 int mode; member 59 u32 mode = nvkm_pci_rd32(pci, 0x004c); in nvkm_agp_preinit() local 66 if ((mode | pci->agp.mode) & PCI_AGP_COMMAND_FW) { in nvkm_agp_preinit() 67 mode = pci->agp.mode & ~PCI_AGP_COMMAND_FW; in nvkm_agp_preinit() 68 agp_enable(pci->agp.bridge, mode); in nvkm_agp_preinit() 92 agp_enable(pci->agp.bridge, pci->agp.mode); in nvkm_agp_init() 110 int mode = -1; in nvkm_agp_ctor() local 120 mode = 0; in nvkm_agp_ctor() 122 mode = nvkm_longopt(device->cfgopt, "NvAGP", mode); in nvkm_agp_ctor() 132 pci->agp.mode = info.mode; in nvkm_agp_ctor() [all …]
|
/linux-6.12.1/Documentation/networking/devlink/ |
D | devlink-eswitch-attr.rst | 8 Legacy mode operates based on traditional MAC/VLAN steering rules. Switching 12 On the other hand, switchdev mode allows for more advanced offloading 13 capabilities of the E-Switch to hardware. In switchdev mode, more switching 34 * - ``mode`` 36 - The mode of the device. The mode can be one of the following: 42 * - ``inline-mode`` 46 matching and steering. Support for both switchdev mode and legacy mode. 49 * ``link`` L2 mode. 50 * ``network`` L3 mode. 51 * ``transport`` L4 mode. [all …]
|
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | pad.c | 27 nvkm_i2c_pad_mode_locked(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode_locked() argument 29 PAD_TRACE(pad, "-> %s", (mode == NVKM_I2C_PAD_AUX) ? "aux" : in nvkm_i2c_pad_mode_locked() 30 (mode == NVKM_I2C_PAD_I2C) ? "i2c" : "off"); in nvkm_i2c_pad_mode_locked() 31 if (pad->func->mode) in nvkm_i2c_pad_mode_locked() 32 pad->func->mode(pad, mode); in nvkm_i2c_pad_mode_locked() 36 nvkm_i2c_pad_mode(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode() argument 38 PAD_TRACE(pad, "mode %d", mode); in nvkm_i2c_pad_mode() 40 nvkm_i2c_pad_mode_locked(pad, mode); in nvkm_i2c_pad_mode() 41 pad->mode = mode; in nvkm_i2c_pad_mode() 49 if (pad->mode == NVKM_I2C_PAD_OFF) in nvkm_i2c_pad_release() [all …]
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/drivers/gpu/drm/ |
D | drm_modes.c | 58 void drm_mode_debug_printmodeline(const struct drm_display_mode *mode) in drm_mode_debug_printmodeline() argument 60 DRM_DEBUG_KMS("Modeline " DRM_MODE_FMT "\n", DRM_MODE_ARG(mode)); in drm_mode_debug_printmodeline() 93 void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode) in drm_mode_destroy() argument 95 if (!mode) in drm_mode_destroy() 98 kfree(mode); in drm_mode_destroy() 112 struct drm_display_mode *mode) in drm_mode_probed_add() argument 116 list_add_tail(&mode->head, &connector->probed_modes); in drm_mode_probed_add() 326 struct drm_display_mode *mode, in fill_analog_mode() argument 455 mode->clock = pixel_clock_hz / 1000; in fill_analog_mode() 456 mode->hdisplay = hactive; in fill_analog_mode() [all …]
|
D | drm_probe_helper.c | 71 drm_mode_validate_flag(const struct drm_display_mode *mode, in drm_mode_validate_flag() argument 74 if ((mode->flags & DRM_MODE_FLAG_INTERLACE) && in drm_mode_validate_flag() 78 if ((mode->flags & DRM_MODE_FLAG_DBLSCAN) && in drm_mode_validate_flag() 82 if ((mode->flags & DRM_MODE_FLAG_3D_MASK) && in drm_mode_validate_flag() 90 drm_mode_validate_pipeline(struct drm_display_mode *mode, in drm_mode_validate_pipeline() argument 100 ret = drm_connector_mode_valid(connector, mode, ctx, status); in drm_mode_validate_pipeline() 109 *status = drm_encoder_mode_valid(encoder, mode); in drm_mode_validate_pipeline() 121 mode); in drm_mode_validate_pipeline() 132 *status = drm_crtc_mode_valid(crtc, mode); in drm_mode_validate_pipeline() 148 struct drm_display_mode *mode; in drm_helper_probe_add_cmdline_mode() local [all …]
|
/linux-6.12.1/drivers/gpu/drm/msm/disp/mdp4/ |
D | mdp4_dsi_encoder.c | 30 struct drm_display_mode *mode, in mdp4_dsi_encoder_mode_set() argument 38 mode = adjusted_mode; in mdp4_dsi_encoder_mode_set() 40 DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); in mdp4_dsi_encoder_mode_set() 43 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp4_dsi_encoder_mode_set() 45 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mdp4_dsi_encoder_mode_set() 51 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dsi_encoder_mode_set() 52 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dsi_encoder_mode_set() 54 vsync_period = mode->vtotal * mode->htotal; in mdp4_dsi_encoder_mode_set() 55 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dsi_encoder_mode_set() 56 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dsi_hsync_skew; in mdp4_dsi_encoder_mode_set() [all …]
|
/linux-6.12.1/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_encoder.c | 20 struct drm_display_mode *mode, in mdp5_vid_encoder_mode_set() argument 34 mode = adjusted_mode; in mdp5_vid_encoder_mode_set() 36 DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); in mdp5_vid_encoder_mode_set() 42 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp5_vid_encoder_mode_set() 44 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mdp5_vid_encoder_mode_set() 73 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp5_vid_encoder_mode_set() 74 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp5_vid_encoder_mode_set() 76 vsync_period = mode->vtotal * mode->htotal; in mdp5_vid_encoder_mode_set() 77 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp5_vid_encoder_mode_set() 78 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp5_vid_encoder_mode_set() [all …]
|
/linux-6.12.1/drivers/net/ethernet/realtek/ |
D | r8169_leds.c | 75 u16 mode = 0; in rtl8168_led_hw_control_set() local 78 mode |= RTL8168_LED_CTRL_LINK_10; in rtl8168_led_hw_control_set() 80 mode |= RTL8168_LED_CTRL_LINK_100; in rtl8168_led_hw_control_set() 82 mode |= RTL8168_LED_CTRL_LINK_1000; in rtl8168_led_hw_control_set() 84 mode |= RTL8168_LED_CTRL_ACT; in rtl8168_led_hw_control_set() 86 return rtl8168_led_mod_ctrl(tp, 0x000f << shift, mode << shift); in rtl8168_led_hw_control_set() 95 int mode; in rtl8168_led_hw_control_get() local 97 mode = rtl8168_get_led_mode(tp); in rtl8168_led_hw_control_get() 98 if (mode < 0) in rtl8168_led_hw_control_get() 99 return mode; in rtl8168_led_hw_control_get() [all …]
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/arch/s390/boot/ |
D | vmem.c | 40 static void pgtable_populate(unsigned long addr, unsigned long end, enum populate_mode mode); 53 static inline void kasan_populate(unsigned long start, unsigned long end, enum populate_mode mode) in kasan_populate() argument 57 pgtable_populate(start, end, mode); in kasan_populate() 110 unsigned long end, enum populate_mode mode) in kasan_pgd_populate_zero_shadow() argument 112 if (mode == POPULATE_KASAN_ZERO_SHADOW && in kasan_pgd_populate_zero_shadow() 121 unsigned long end, enum populate_mode mode) in kasan_p4d_populate_zero_shadow() argument 123 if (mode == POPULATE_KASAN_ZERO_SHADOW && in kasan_p4d_populate_zero_shadow() 132 unsigned long end, enum populate_mode mode) in kasan_pud_populate_zero_shadow() argument 134 if (mode == POPULATE_KASAN_ZERO_SHADOW && in kasan_pud_populate_zero_shadow() 143 unsigned long end, enum populate_mode mode) in kasan_pmd_populate_zero_shadow() argument [all …]
|
/linux-6.12.1/drivers/phy/hisilicon/ |
D | phy-histb-combphy.c | 50 struct histb_combphy_mode mode; member 74 static int is_mode_fixed(struct histb_combphy_mode *mode) in is_mode_fixed() argument 76 return (mode->fixed != PHY_NONE) ? true : false; in is_mode_fixed() 81 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_set_mode() local 85 if (is_mode_fixed(mode)) in histb_combphy_set_mode() 88 switch (mode->select) { in histb_combphy_set_mode() 102 return regmap_update_bits(syscon, mode->reg, mode->mask, in histb_combphy_set_mode() 103 hw_sel << mode->shift); in histb_combphy_set_mode() 169 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_xlate() local 176 mode->select = args->args[0]; in histb_combphy_xlate() [all …]
|
/linux-6.12.1/drivers/video/fbdev/ |
D | macmodes.c | 142 const struct fb_videomode *mode; member 223 const struct fb_videomode *mode = NULL; in mac_vmode_to_var() local 228 mode = map->mode; in mac_vmode_to_var() 231 if (!mode) in mac_vmode_to_var() 271 var->xres = mode->xres; in mac_vmode_to_var() 272 var->yres = mode->yres; in mac_vmode_to_var() 273 var->xres_virtual = mode->xres; in mac_vmode_to_var() 274 var->yres_virtual = mode->yres; in mac_vmode_to_var() 277 var->pixclock = mode->pixclock; in mac_vmode_to_var() 278 var->left_margin = mode->left_margin; in mac_vmode_to_var() [all …]
|
/linux-6.12.1/tools/spi/ |
D | spidev_test.c | 39 static uint32_t mode; variable 131 if (mode & SPI_TX_OCTAL) in transfer() 133 else if (mode & SPI_TX_QUAD) in transfer() 135 else if (mode & SPI_TX_DUAL) in transfer() 137 if (mode & SPI_RX_OCTAL) in transfer() 139 else if (mode & SPI_RX_QUAD) in transfer() 141 else if (mode & SPI_RX_DUAL) in transfer() 143 if (!(mode & SPI_LOOP)) { in transfer() 144 if (mode & (SPI_TX_OCTAL | SPI_TX_QUAD | SPI_TX_DUAL)) in transfer() 146 else if (mode & (SPI_RX_OCTAL | SPI_RX_QUAD | SPI_RX_DUAL)) in transfer() [all …]
|
/linux-6.12.1/drivers/video/fbdev/core/ |
D | modedb.c | 548 const struct fb_videomode *mode, unsigned int bpp) in fb_try_mode() argument 553 mode->name ? mode->name : "noname", in fb_try_mode() 554 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode() 555 var->xres = mode->xres; in fb_try_mode() 556 var->yres = mode->yres; in fb_try_mode() 557 var->xres_virtual = mode->xres; in fb_try_mode() 558 var->yres_virtual = mode->yres; in fb_try_mode() 563 var->pixclock = mode->pixclock; in fb_try_mode() 564 var->left_margin = mode->left_margin; in fb_try_mode() 565 var->right_margin = mode->right_margin; in fb_try_mode() [all …]
|
/linux-6.12.1/include/linux/ |
D | debugfs.h | 74 struct dentry *debugfs_create_file(const char *name, umode_t mode, 77 struct dentry *debugfs_create_file_unsafe(const char *name, umode_t mode, 81 void debugfs_create_file_size(const char *name, umode_t mode, 116 void debugfs_create_u8(const char *name, umode_t mode, struct dentry *parent, 118 void debugfs_create_u16(const char *name, umode_t mode, struct dentry *parent, 120 void debugfs_create_u32(const char *name, umode_t mode, struct dentry *parent, 122 void debugfs_create_u64(const char *name, umode_t mode, struct dentry *parent, 124 void debugfs_create_ulong(const char *name, umode_t mode, struct dentry *parent, 126 void debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent, 128 void debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent, [all …]
|
/linux-6.12.1/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 …]
|