Home
last modified time | relevance | path

Searched full:orientation (Results 1 – 25 of 203) sorted by relevance

123456789

/linux/Documentation/firmware-guide/acpi/
H A Dintel-pmc-mux.rst20 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 …]
/linux/include/linux/platform_data/
H A Dinvensense_mpu6050.h11 * @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
/linux/drivers/usb/typec/mux/
H A Dptn36502.c74 enum typec_orientation orientation; member
81 bool reverse = (ptn->orientation == TYPEC_ORIENTATION_REVERSE); in ptn36502_set()
96 * Normal Orientation (CC1) in ptn36502_set()
101 * Flipped Orientation (CC2) in ptn36502_set()
131 * Normal Orientation (CC1) in ptn36502_set()
136 * Flipped Orientation (CC2) in ptn36502_set()
153 * Normal Orientation (CC1) in ptn36502_set()
158 * Flipped Orientation (CC2) in ptn36502_set()
214 static int ptn36502_sw_set(struct typec_switch_dev *sw, enum typec_orientation orientation) in ptn36502_sw_set() argument
219 ret = typec_switch_set(ptn->typec_switch, orientation); in ptn36502_sw_set()
[all …]
H A Dnb7vpq904m.c76 enum typec_orientation orientation; member
109 bool reverse = (nb7->orientation == TYPEC_ORIENTATION_REVERSE); in nb7vpq904m_set()
131 * Normal Orientation (CC1) in nb7vpq904m_set()
136 * Flipped Orientation (CC2) in nb7vpq904m_set()
182 * Normal Orientation (CC1) in nb7vpq904m_set()
187 * Flipped Orientation (CC2) in nb7vpq904m_set()
221 * Normal Orientation (CC1) in nb7vpq904m_set()
226 * Flipped Orientation (CC2) in nb7vpq904m_set()
254 static int nb7vpq904m_sw_set(struct typec_switch_dev *sw, enum typec_orientation orientation) in nb7vpq904m_sw_set() argument
259 ret = typec_switch_set(nb7->typec_switch, orientation); in nb7vpq904m_sw_set()
[all …]
H A Dfsa4480.c62 enum typec_orientation orientation; member
80 bool reverse = (fsa->orientation == TYPEC_ORIENTATION_REVERSE); in fsa4480_set()
149 enum typec_orientation orientation) in fsa4480_switch_set() argument
156 if (fsa->orientation != orientation) { in fsa4480_switch_set()
157 fsa->orientation = orientation; in fsa4480_switch_set()
288 fsa->orientation = TYPEC_ORIENTATION_NONE; in fsa4480_probe()
H A Dwcd939x-usbss.c197 enum typec_orientation orientation; member
242 bool reverse = (usbss->orientation == TYPEC_ORIENTATION_REVERSE); in wcd939x_usbss_set()
535 enum typec_orientation orientation) in wcd939x_usbss_switch_set() argument
542 if (usbss->orientation != orientation) { in wcd939x_usbss_switch_set()
543 usbss->orientation = orientation; in wcd939x_usbss_switch_set()
553 /* Report orientation to codec after switch has been done */ in wcd939x_usbss_switch_set()
554 return typec_switch_set(usbss->codec_switch, orientation); in wcd939x_usbss_switch_set()
622 "failed to acquire codec orientation-switch\n"); in wcd939x_usbss_probe()
627 usbss->orientation = TYPEC_ORIENTATION_NONE; in wcd939x_usbss_probe()
/linux/drivers/gpu/drm/
H A Ddrm_panel_orientation_quirks.c3 * 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 …]
H A Ddrm_panel.c356 * of_drm_get_panel_orientation - look up the orientation of the panel through
359 * @orientation: orientation enum to be filled in
361 * Looks up the rotation of a panel in the device tree. The orientation of the
369 enum drm_panel_orientation *orientation) in of_drm_get_panel_orientation() argument
376 *orientation = DRM_MODE_PANEL_ORIENTATION_UNKNOWN; in of_drm_get_panel_orientation()
384 *orientation = DRM_MODE_PANEL_ORIENTATION_NORMAL; in of_drm_get_panel_orientation()
386 *orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP; in of_drm_get_panel_orientation()
388 *orientation = DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP; in of_drm_get_panel_orientation()
390 *orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP; in of_drm_get_panel_orientation()
/linux/Documentation/devicetree/bindings/usb/
H A Dusb-switch.yaml7 title: USB Orientation and Mode Switches Common Properties
13 Common properties for devices handling USB mode and orientation switching.
20 orientation-switch:
21 description: Possible handler of orientation switching
32 handling altmode muxing and orientation switching.
H A Dqcom,wcd939x-usbss.yaml18 graph description to handle USB-C altmode & orientation switching for Audio
39 orientation-switch: true
48 purpose of handling altmode muxing and orientation switching.
54 purpose of handling USB-C Audio Accessory Mode muxing and orientation switching.
79 orientation-switch;
H A Dnxp,ptn36502.yaml23 orientation-switch: true
41 handling altmode muxing and orientation switching.
65 orientation-switch;
H A Donnn,nb7vpq904m.yaml24 orientation-switch: true
86 handling altmode muxing and orientation switching.
110 orientation-switch;
/linux/drivers/usb/typec/
H A Dmux.c45 * 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 …]
/linux/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_magn.c269 /* 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()
/linux/Documentation/input/
H A Dmulti-touch-protocol.rst215 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.
/linux/Documentation/devicetree/bindings/sound/
H A Dqcom,wcd939x.yaml19 to handle USB-C altmode & orientation switching for Audio Accessory Mode.
37 orientation-switch:
38 description: Flag the port as possible handler of orientation switching
45 purpose of handling altmode muxing and orientation switching to detect and
/linux/Documentation/devicetree/bindings/soc/qcom/
H A Dqcom,pmic-glink.yaml52 orientation-gpios:
53 description: Array of input gpios for the Type-C connector orientation indication.
54 The GPIO indication is used to detect the orientation of the Type-C connector.
56 It is defined that GPIO active level means "CC2" or Reversed/Flipped orientation.
/linux/drivers/gpu/drm/panel/
H A Dpanel-lvds.c42 enum drm_panel_orientation orientation; member
107 drm_connector_set_panel_orientation(connector, lvds->orientation); in panel_lvds_get_modes()
116 return lvds->orientation; in panel_lvds_get_orientation()
131 ret = of_drm_get_panel_orientation(np, &lvds->orientation); in panel_lvds_parse_dt()
133 dev_err(lvds->dev, "%pOF: failed to get orientation %d\n", np, ret); in panel_lvds_parse_dt()
/linux/drivers/media/pci/intel/
H A Dipu-bridge.c92 .orientation = "orientation",
254 enum v4l2_fwnode_orientation orientation; in ipu_bridge_parse_orientation() local
258 dev_warn(ADEV_DEV(adev), "_PLD call failed, using default orientation\n"); in ipu_bridge_parse_orientation()
264 orientation = V4L2_FWNODE_ORIENTATION_FRONT; in ipu_bridge_parse_orientation()
267 orientation = V4L2_FWNODE_ORIENTATION_BACK; in ipu_bridge_parse_orientation()
273 orientation = V4L2_FWNODE_ORIENTATION_EXTERNAL; in ipu_bridge_parse_orientation()
278 orientation = V4L2_FWNODE_ORIENTATION_EXTERNAL; in ipu_bridge_parse_orientation()
283 return orientation; in ipu_bridge_parse_orientation()
309 sensor->orientation = ipu_bridge_parse_orientation(adev); in ipu_bridge_parse_ssdb()
373 sensor->prop_names.orientation, in ipu_bridge_create_fwnode_properties()
[all …]
/linux/include/linux/input/
H A Dadxl34x.h305 * ADXL346 only ORIENTATION SENSING feature
306 * The orientation function of the ADXL346 reports both 2-D and
307 * 3-D orientation concurrently.
318 * orientation positions is determined by setting the Deadzone
321 * angle where the orientation is considered invalid.
338 * orientation bandwidth. Set the depth of the filter used to
340 * orientation sensing
H A Dkxtj9.h18 * changed to account for sensor orientation within the host device.
25 * Each axis can be negated to account for sensor orientation within
/linux/drivers/staging/fbtft/
H A Dfb_uc1701.c33 /* 8: select orientation */
58 /* column offset for normal orientation */
60 /* column offset for bottom view orientation */
74 /* select orientation BOTTOMVIEW */ in init_display()
/linux/Documentation/devicetree/bindings/iio/
H A Dmount-matrix.txt22 and thus implying that the component should be mounted in a certain orientation
28 reference to (x,y,z) orientation, with (x,y) corresponding to these axes on the
43 to this world. When using the mounting matrix, the sensor and device orientation
94 geomagnetic field. The system orientation vis-a-vis the world is defined with
151 relative orientation of any given sensor of this type with respect to the
/linux/drivers/usb/typec/ucsi/
H A Ducsi_glink.c186 int orientation; in pmic_glink_ucsi_connector_status() local
197 orientation = gpiod_get_value(ucsi->port_orientation[con->num - 1]); in pmic_glink_ucsi_connector_status()
198 if (orientation >= 0) { in pmic_glink_ucsi_connector_status()
200 orientation ? in pmic_glink_ucsi_connector_status()
377 desc = devm_gpiod_get_index_optional(&adev->dev, "orientation", port, GPIOD_IN); in pmic_glink_ucsi_probe()
385 "unable to acquire orientation gpio\n"); in pmic_glink_ucsi_probe()
/linux/Documentation/fb/
H A Dfbcon.rst125 This option changes the orientation angle of the console display. The
128 - 0 - normal orientation (0 degree)
129 - 1 - clockwise orientation (90 degrees)
130 - 2 - upside down orientation (180 degrees)
131 - 3 - counterclockwise orientation (270 degrees)
144 use the framebuffer will remain at their 'normal' orientation.

123456789