| /kernel/linux/linux-5.10/Documentation/firmware-guide/acpi/ |
| D | intel-pmc-mux.rst | 20 configure the cable plug orientation and mode (with Alternate Modes). The driver 90 Orientation subsection 95 should not configure them according to the cable plug orientation. This can 97 orientation. The driver uses a specific device properties "sbu-orientation" 98 (SBU) and "hsl-orientation" (data) to know if those lines are "fixed", and to 99 which orientation. The value that these properties have is a string value, and 100 it can be one that is defined for the USB Type-C connector orientation: "normal" 106 Package () {"sbu-orientation", "normal"}, 107 Package () {"hsl-orientation", "normal"}, 132 Package () {"sbu-orientation", "normal"}, [all …]
|
| /kernel/linux/linux-6.6/Documentation/firmware-guide/acpi/ |
| D | intel-pmc-mux.rst | 20 configure the cable plug orientation and mode (with Alternate Modes). The driver 90 Orientation subsection 95 should not configure them according to the cable plug orientation. This can 97 orientation. The driver uses a specific device properties "sbu-orientation" 98 (SBU) and "hsl-orientation" (data) to know if those lines are "fixed", and to 99 which orientation. The value that these properties have is a string value, and 100 it can be one that is defined for the USB Type-C connector orientation: "normal" 106 Package () {"sbu-orientation", "normal"}, 107 Package () {"hsl-orientation", "normal"}, 132 Package () {"sbu-orientation", "normal"}, [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
| D | intel_dsi.c | 123 enum drm_panel_orientation orientation; in intel_dsi_get_panel_orientation() local 125 orientation = connector->panel.vbt.dsi.orientation; in intel_dsi_get_panel_orientation() 126 if (orientation != DRM_MODE_PANEL_ORIENTATION_UNKNOWN) in intel_dsi_get_panel_orientation() 127 return orientation; in intel_dsi_get_panel_orientation() 129 orientation = dev_priv->display.vbt.orientation; in intel_dsi_get_panel_orientation() 130 if (orientation != DRM_MODE_PANEL_ORIENTATION_UNKNOWN) in intel_dsi_get_panel_orientation() 131 return orientation; in intel_dsi_get_panel_orientation()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
| D | intel_dsi.c | 119 enum drm_panel_orientation orientation; in intel_dsi_get_panel_orientation() local 121 orientation = dev_priv->vbt.dsi.orientation; in intel_dsi_get_panel_orientation() 122 if (orientation != DRM_MODE_PANEL_ORIENTATION_UNKNOWN) in intel_dsi_get_panel_orientation() 123 return orientation; in intel_dsi_get_panel_orientation() 125 orientation = dev_priv->vbt.orientation; in intel_dsi_get_panel_orientation() 126 if (orientation != DRM_MODE_PANEL_ORIENTATION_UNKNOWN) in intel_dsi_get_panel_orientation() 127 return orientation; in intel_dsi_get_panel_orientation()
|
| /kernel/linux/linux-5.10/include/linux/platform_data/ |
| D | invensense_mpu6050.h | 11 * @orientation: Orientation matrix of the chip (deprecated in favor of 15 * work on this platform. The orientation matricies are 3x3 rotation matricies 16 * that are applied to the data to rotate from the mounting orientation to the 17 * platform orientation. The values must be one of 0, 1, or -1 and each row and 23 __s8 orientation[9]; member
|
| /kernel/linux/linux-6.6/include/linux/platform_data/ |
| D | invensense_mpu6050.h | 11 * @orientation: Orientation matrix of the chip (deprecated in favor of 15 * work on this platform. The orientation matrices are 3x3 rotation matrices 16 * that are applied to the data to rotate from the mounting orientation to the 17 * platform orientation. The values must be one of 0, 1, or -1 and each row and 23 __s8 orientation[9]; member
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/usb/ |
| D | gpio-sbu-mux.yaml | 14 and swapped depending on the altmode and orientation. This binding describes 30 description: Orientation select 39 orientation-switch: 40 description: Flag the port as possible handler of orientation switching 47 handling altmode muxing and orientation switching. 54 - orientation-switch 102 orientation-switch;
|
| D | fcs,fsa4480.yaml | 30 orientation-switch: 31 description: Flag the port as possible handler of orientation switching 38 handling altmode muxing and orientation switching. 63 orientation-switch;
|
| D | onnn,nb7vpq904m.yaml | 29 orientation-switch: 30 description: Flag the port as possible handler of orientation switching 92 handling altmode muxing and orientation switching. 113 orientation-switch;
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/ |
| D | drm_panel_orientation_quirks.c | 3 * drm_panel_orientation_quirks.c -- Quirks for non-normal panel orientation 30 int orientation; member 36 .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP, 44 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 52 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 60 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 68 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 77 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 85 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 92 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, [all …]
|
| D | drm_panel.c | 265 * of_drm_get_panel_orientation - look up the orientation of the panel through 268 * @orientation: orientation enum to be filled in 270 * Looks up the rotation of a panel in the device tree. The orientation of the 278 enum drm_panel_orientation *orientation) in of_drm_get_panel_orientation() argument 285 *orientation = DRM_MODE_PANEL_ORIENTATION_UNKNOWN; in of_drm_get_panel_orientation() 293 *orientation = DRM_MODE_PANEL_ORIENTATION_NORMAL; in of_drm_get_panel_orientation() 295 *orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP; in of_drm_get_panel_orientation() 297 *orientation = DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP; in of_drm_get_panel_orientation() 299 *orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP; in of_drm_get_panel_orientation()
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/ |
| D | drm_panel_orientation_quirks.c | 3 * drm_panel_orientation_quirks.c -- Quirks for non-normal panel orientation 30 int orientation; member 38 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 46 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 54 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 62 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 71 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 79 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 86 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 93 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, [all …]
|
| D | drm_panel.c | 340 * of_drm_get_panel_orientation - look up the orientation of the panel through 343 * @orientation: orientation enum to be filled in 345 * Looks up the rotation of a panel in the device tree. The orientation of the 353 enum drm_panel_orientation *orientation) in of_drm_get_panel_orientation() argument 360 *orientation = DRM_MODE_PANEL_ORIENTATION_UNKNOWN; in of_drm_get_panel_orientation() 368 *orientation = DRM_MODE_PANEL_ORIENTATION_NORMAL; in of_drm_get_panel_orientation() 370 *orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP; in of_drm_get_panel_orientation() 372 *orientation = DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP; in of_drm_get_panel_orientation() 374 *orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP; in of_drm_get_panel_orientation()
|
| /kernel/linux/linux-6.6/drivers/usb/typec/mux/ |
| D | nb7vpq904m.c | 77 enum typec_orientation orientation; member 110 bool reverse = (nb7->orientation == TYPEC_ORIENTATION_REVERSE); in nb7vpq904m_set() 132 * Normal Orientation (CC1) in nb7vpq904m_set() 137 * Flipped Orientation (CC2) in nb7vpq904m_set() 183 * Normal Orientation (CC1) in nb7vpq904m_set() 188 * Flipped Orientation (CC2) in nb7vpq904m_set() 222 * Normal Orientation (CC1) in nb7vpq904m_set() 227 * Flipped Orientation (CC2) in nb7vpq904m_set() 255 static int nb7vpq904m_sw_set(struct typec_switch_dev *sw, enum typec_orientation orientation) in nb7vpq904m_sw_set() argument 260 ret = typec_switch_set(nb7->typec_switch, orientation); in nb7vpq904m_sw_set() [all …]
|
| D | fsa4480.c | 58 enum typec_orientation orientation; member 75 bool reverse = (fsa->orientation == TYPEC_ORIENTATION_REVERSE); in fsa4480_set() 141 enum typec_orientation orientation) in fsa4480_switch_set() argument 148 if (fsa->orientation != orientation) { in fsa4480_switch_set() 149 fsa->orientation = orientation; in fsa4480_switch_set() 203 fsa->orientation = TYPEC_ORIENTATION_NONE; in fsa4480_probe()
|
| D | intel_pmc_mux.c | 141 enum typec_orientation orientation; member 183 return port->orientation - 1; in sbu_orientation() 191 return port->orientation - 1; in hsl_orientation() 290 req.mode_data = (port->orientation - 1) << PMC_USB_ALTMODE_ORI_SHIFT; in pmc_usb_mux_dp() 322 req.mode_data = (port->orientation - 1) << PMC_USB_ALTMODE_ORI_SHIFT; in pmc_usb_mux_tbt() 375 req.mode_data |= (port->orientation - 1) << PMC_USB_ALTMODE_ORI_SHIFT; in pmc_usb_mux_usb4() 459 if (port->orientation == TYPEC_ORIENTATION_NONE) in pmc_usb_connect() 490 if (port->orientation == TYPEC_ORIENTATION_NONE || port->role == USB_ROLE_NONE) in pmc_usb_mux_set() 521 enum typec_orientation orientation) in pmc_usb_set_orientation() argument 527 port->orientation = orientation; in pmc_usb_set_orientation() [all …]
|
| /kernel/linux/linux-6.6/drivers/soc/qcom/ |
| D | pmic_glink_altmode.c | 81 enum typec_orientation orientation; member 223 typec_switch_set(alt_port->typec_switch, alt_port->orientation); in pmic_glink_altmode_worker() 241 static enum typec_orientation pmic_glink_altmode_orientation(unsigned int orientation) in pmic_glink_altmode_orientation() argument 243 if (orientation == 0) in pmic_glink_altmode_orientation() 245 else if (orientation == 1) in pmic_glink_altmode_orientation() 264 u8 orientation; in pmic_glink_altmode_sc8180xp_notify() local 280 orientation = FIELD_GET(SC8180X_ORIENTATION_MASK, notification); in pmic_glink_altmode_sc8180xp_notify() 294 alt_port->orientation = pmic_glink_altmode_orientation(orientation); in pmic_glink_altmode_sc8180xp_notify() 311 u8 orientation; in pmic_glink_altmode_sc8280xp_notify() local 326 orientation = notify->payload[1]; in pmic_glink_altmode_sc8280xp_notify() [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/typec/ |
| D | mux.c | 52 * fwnode_typec_switch_get - Find USB Type-C orientation switch 64 sw = fwnode_connection_find_match(fwnode, "orientation-switch", NULL, in fwnode_typec_switch_get() 74 * typec_switch_put - Release USB Type-C orientation switch 75 * @sw: USB Type-C orientation switch 99 * typec_switch_register - Register USB Type-C orientation switch 101 * @desc: Orientation switch description 104 * data pairs depending on the cable plug orientation from the USB Type-C 148 enum typec_orientation orientation) in typec_switch_set() argument 153 return sw->set(sw, orientation); in typec_switch_set() 158 * typec_switch_unregister - Unregister USB Type-C orientation switch [all …]
|
| /kernel/linux/linux-6.6/drivers/usb/typec/ |
| D | mux.c | 45 * property is named "orientation-switch" (@id). The value of the device in typec_switch_match() 63 * fwnode_typec_switch_get - Find USB Type-C orientation switch 83 count = fwnode_connection_find_matches(fwnode, "orientation-switch", NULL, in fwnode_typec_switch_get() 121 * typec_switch_put - Release USB Type-C orientation switch 122 * @sw: USB Type-C orientation switch 155 * typec_switch_register - Register USB Type-C orientation switch 157 * @desc: Orientation switch description 160 * data pairs depending on the cable plug orientation from the USB Type-C 204 enum typec_orientation orientation) in typec_switch_set() argument 216 ret = sw_dev->set(sw_dev, orientation); in typec_switch_set() [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/imu/inv_mpu6050/ |
| D | inv_mpu_magn.c | 268 /* fill magnetometer orientation */ in inv_mpu_magn_set_orient() 274 st->magn_orient.rotation[0] = st->orientation.rotation[3]; in inv_mpu_magn_set_orient() 275 st->magn_orient.rotation[1] = st->orientation.rotation[4]; in inv_mpu_magn_set_orient() 276 st->magn_orient.rotation[2] = st->orientation.rotation[5]; in inv_mpu_magn_set_orient() 278 st->magn_orient.rotation[3] = st->orientation.rotation[0]; in inv_mpu_magn_set_orient() 279 st->magn_orient.rotation[4] = st->orientation.rotation[1]; in inv_mpu_magn_set_orient() 280 st->magn_orient.rotation[5] = st->orientation.rotation[2]; in inv_mpu_magn_set_orient() 283 orient = st->orientation.rotation[6 + i]; in inv_mpu_magn_set_orient() 301 st->magn_orient = st->orientation; in inv_mpu_magn_set_orient()
|
| /kernel/linux/linux-6.6/drivers/iio/imu/inv_mpu6050/ |
| D | inv_mpu_magn.c | 269 /* fill magnetometer orientation */ in inv_mpu_magn_set_orient() 275 st->magn_orient.rotation[0] = st->orientation.rotation[3]; in inv_mpu_magn_set_orient() 276 st->magn_orient.rotation[1] = st->orientation.rotation[4]; in inv_mpu_magn_set_orient() 277 st->magn_orient.rotation[2] = st->orientation.rotation[5]; in inv_mpu_magn_set_orient() 279 st->magn_orient.rotation[3] = st->orientation.rotation[0]; in inv_mpu_magn_set_orient() 280 st->magn_orient.rotation[4] = st->orientation.rotation[1]; in inv_mpu_magn_set_orient() 281 st->magn_orient.rotation[5] = st->orientation.rotation[2]; in inv_mpu_magn_set_orient() 284 orient = st->orientation.rotation[i]; in inv_mpu_magn_set_orient() 307 st->magn_orient = st->orientation; in inv_mpu_magn_set_orient()
|
| /kernel/linux/linux-6.6/Documentation/input/ |
| D | multi-touch-protocol.rst | 215 and MINOR are the major and minor axis of an ellipse. The orientation of 216 the touch ellipse can be described with the ORIENTATION parameter, and the 246 orientation of the contact and the approaching tool are assumed to be the 273 The orientation of the touching ellipse. The value should describe a signed 283 degree orientation, the reported orientation must exceed the range max to 287 Orientation can be omitted if the touch area is circular, or if the 288 information is not available in the kernel driver. Partial orientation 346 For devices reporting contacts as rectangular shapes, signed orientation 376 Rationale: We have no information about the orientation of the touching 399 and with ORIENTATION, one can detect twisting of fingers.
|
| /kernel/linux/linux-5.10/Documentation/input/ |
| D | multi-touch-protocol.rst | 215 and MINOR are the major and minor axis of an ellipse. The orientation of 216 the touch ellipse can be described with the ORIENTATION parameter, and the 246 orientation of the contact and the approaching tool are assumed to be the 269 The orientation of the touching ellipse. The value should describe a signed 279 degree orientation, the reported orientation must exceed the range max to 283 Orientation can be omitted if the touch area is circular, or if the 284 information is not available in the kernel driver. Partial orientation 342 For devices reporting contacts as rectangular shapes, signed orientation 372 Rationale: We have no information about the orientation of the touching 395 and with ORIENTATION, one can detect twisting of fingers.
|
| /kernel/linux/linux-5.10/drivers/usb/typec/mux/ |
| D | intel_pmc_mux.c | 128 enum typec_orientation orientation; member 165 return port->orientation - 1; in sbu_orientation() 173 return port->orientation - 1; in hsl_orientation() 250 req.mode_data = (port->orientation - 1) << PMC_USB_ALTMODE_ORI_SHIFT; in pmc_usb_mux_dp() 281 req.mode_data = (port->orientation - 1) << PMC_USB_ALTMODE_ORI_SHIFT; in pmc_usb_mux_tbt() 322 req.mode_data |= (port->orientation - 1) << PMC_USB_ALTMODE_ORI_SHIFT; in pmc_usb_mux_usb4() 392 if (port->orientation == TYPEC_ORIENTATION_NONE) in pmc_usb_connect() 423 if (port->orientation == TYPEC_ORIENTATION_NONE || port->role == USB_ROLE_NONE) in pmc_usb_mux_set() 454 enum typec_orientation orientation) in pmc_usb_set_orientation() argument 460 port->orientation = orientation; in pmc_usb_set_orientation() [all …]
|
| /kernel/linux/linux-6.6/drivers/usb/typec/ucsi/ |
| D | ucsi_glink.c | 203 int orientation; in pmic_glink_ucsi_connector_status() local 209 orientation = gpiod_get_value(ucsi->port_orientation[con->num - 1]); in pmic_glink_ucsi_connector_status() 210 if (orientation >= 0) { in pmic_glink_ucsi_connector_status() 212 orientation ? TYPEC_ORIENTATION_REVERSE in pmic_glink_ucsi_connector_status() 364 desc = devm_gpiod_get_index_optional(&adev->dev, "orientation", port, GPIOD_IN); in pmic_glink_ucsi_probe() 373 "unable to acquire orientation gpio\n"); in pmic_glink_ucsi_probe() 380 "failed to acquire orientation-switch\n"); in pmic_glink_ucsi_probe()
|