Home
last modified time | relevance | path

Searched refs:orientation (Results 1 – 25 of 149) sorted by relevance

123456

/openbmc/linux/drivers/gpu/drm/
H A Ddrm_panel_orientation_quirks.c30 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,
99 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
[all …]
H A Ddrm_panel.c350 enum drm_panel_orientation *orientation) in of_drm_get_panel_orientation() argument
357 *orientation = DRM_MODE_PANEL_ORIENTATION_UNKNOWN; in of_drm_get_panel_orientation()
365 *orientation = DRM_MODE_PANEL_ORIENTATION_NORMAL; in of_drm_get_panel_orientation()
367 *orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP; in of_drm_get_panel_orientation()
369 *orientation = DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP; in of_drm_get_panel_orientation()
371 *orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP; in of_drm_get_panel_orientation()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_dsi.c123 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()
/openbmc/linux/Documentation/firmware-guide/acpi/
H A Dintel-pmc-mux.rst20 configure the cable plug orientation and mode (with Alternate Modes). The driver
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"},
133 Package () {"hsl-orientation", "normal"},
[all …]
/openbmc/linux/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_magn.c275 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()
/openbmc/linux/drivers/usb/typec/mux/
H A Dfsa4480.c58 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()
H A Dnb7vpq904m.c77 enum typec_orientation orientation; member
110 bool reverse = (nb7->orientation == TYPEC_ORIENTATION_REVERSE); 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()
266 if (nb7->orientation != orientation) { in nb7vpq904m_sw_set()
267 nb7->orientation = orientation; in nb7vpq904m_sw_set()
436 nb7->orientation = TYPEC_ORIENTATION_NONE; in nb7vpq904m_probe()
H A Dintel_pmc_mux.c141 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()
H A Dgpio-sbu-mux.c27 enum typec_orientation orientation) in gpio_sbu_switch_set() argument
38 switch (orientation) { in gpio_sbu_switch_set()
H A Dpi3usb30532.c49 enum typec_orientation orientation) in pi3usb30532_sw_set() argument
58 switch (orientation) { in pi3usb30532_sw_set()
/openbmc/linux/drivers/soc/qcom/
H A Dpmic_glink_altmode.c81 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 …]
/openbmc/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()
H A Dpanel-elida-kd35t133.c45 enum drm_panel_orientation orientation; member
218 drm_connector_set_panel_orientation(connector, ctx->orientation); in kd35t133_get_modes()
227 return ctx->orientation; in kd35t133_get_orientation()
269 ret = of_drm_get_panel_orientation(dev->of_node, &ctx->orientation); in kd35t133_probe()
/openbmc/linux/drivers/media/pci/intel/
H A Dipu-bridge.c70 .orientation = "orientation",
239 enum v4l2_fwnode_orientation orientation; in ipu_bridge_parse_orientation() local
253 orientation = V4L2_FWNODE_ORIENTATION_FRONT; in ipu_bridge_parse_orientation()
256 orientation = V4L2_FWNODE_ORIENTATION_BACK; in ipu_bridge_parse_orientation()
262 orientation = V4L2_FWNODE_ORIENTATION_EXTERNAL; in ipu_bridge_parse_orientation()
267 orientation = V4L2_FWNODE_ORIENTATION_EXTERNAL; in ipu_bridge_parse_orientation()
272 return orientation; in ipu_bridge_parse_orientation()
298 sensor->orientation = ipu_bridge_parse_orientation(adev); in ipu_bridge_parse_ssdb()
362 sensor->prop_names.orientation, in ipu_bridge_create_fwnode_properties()
363 sensor->orientation); in ipu_bridge_create_fwnode_properties()
/openbmc/linux/include/linux/usb/
H A Dtypec_mux.h18 enum typec_orientation orientation);
30 enum typec_orientation orientation);
/openbmc/linux/include/drm/
H A Ddrm_panel.h290 enum drm_panel_orientation *orientation);
298 enum drm_panel_orientation *orientation) in of_drm_get_panel_orientation() argument
/openbmc/linux/drivers/usb/typec/ucsi/
H A Ducsi_glink.c203 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()
/openbmc/linux/include/media/
H A Dipu-bridge.h99 char orientation[12]; member
139 enum v4l2_fwnode_orientation orientation; member
/openbmc/linux/include/linux/platform_data/
H A Dinvensense_mpu6050.h23 __s8 orientation[9]; member
/openbmc/linux/include/linux/iio/accel/
H A Dkxcjk_1013.h14 struct iio_mount_matrix orientation; member
/openbmc/linux/drivers/iio/accel/
H A Dbmc150-accel-core.c387 struct iio_mount_matrix *orientation) in bmc150_apply_bosc0200_acpi_orientation() argument
440 orientation->rotation[i * 3 + j] = str; in bmc150_apply_bosc0200_acpi_orientation()
454 struct iio_mount_matrix *orientation) in bmc150_apply_dual250e_acpi_orientation() argument
467 struct iio_mount_matrix *orientation) in bmc150_apply_acpi_orientation() argument
472 return bmc150_apply_bosc0200_acpi_orientation(dev, orientation); in bmc150_apply_acpi_orientation()
475 return bmc150_apply_dual250e_acpi_orientation(dev, orientation); in bmc150_apply_acpi_orientation()
481 struct iio_mount_matrix *orientation) in bmc150_apply_acpi_orientation() argument
920 return &data->orientation; in bmc150_accel_get_mount_matrix()
1683 if (!bmc150_apply_acpi_orientation(dev, &data->orientation)) { in bmc150_accel_core_probe()
1684 ret = iio_read_mount_matrix(dev, &data->orientation); in bmc150_accel_core_probe()
H A Dkxsd9.c75 struct iio_mount_matrix orientation; member
270 return &st->orientation; in kxsd9_get_mount_matrix()
423 ret = iio_read_mount_matrix(dev, &st->orientation); in kxsd9_common_probe()
/openbmc/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
/openbmc/linux/drivers/usb/typec/tcpm/qcom/
H A Dqcom_pmic_typec_port.c346 unsigned int orientation, misc, mask, value; in qcom_pmic_typec_port_set_vconn() local
358 orientation = (misc & CC_ORIENTATION) ? 0 : VCONN_EN_ORIENTATION; in qcom_pmic_typec_port_set_vconn()
361 value = orientation | VCONN_EN_VALUE | VCONN_EN_SRC; in qcom_pmic_typec_port_set_vconn()
374 orientation, value, on ? "on" : "off", misc_to_vconn(misc), misc_to_cc(misc)); in qcom_pmic_typec_port_set_vconn()
/openbmc/linux/drivers/iio/imu/bmi160/
H A Dbmi160.h12 struct iio_mount_matrix orientation; member

123456