Home
last modified time | relevance | path

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

12345

/drivers/gpu/drm/
A Ddrm_panel_orientation_quirks.c31 int orientation; member
39 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
47 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
55 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
63 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
72 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
80 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
100 .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
112 .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
575 return data->orientation; in drm_get_panel_orientation_quirk()
[all …]
A Ddrm_panel.c447 enum drm_panel_orientation *orientation) in of_drm_get_panel_orientation() argument
454 *orientation = DRM_MODE_PANEL_ORIENTATION_UNKNOWN; in of_drm_get_panel_orientation()
462 *orientation = DRM_MODE_PANEL_ORIENTATION_NORMAL; in of_drm_get_panel_orientation()
464 *orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP; in of_drm_get_panel_orientation()
466 *orientation = DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP; in of_drm_get_panel_orientation()
468 *orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP; in of_drm_get_panel_orientation()
/drivers/gpu/drm/i915/display/
A Dintel_dsi.c121 enum drm_panel_orientation orientation; in intel_dsi_get_panel_orientation() local
123 orientation = connector->panel.vbt.dsi.orientation; in intel_dsi_get_panel_orientation()
124 if (orientation != DRM_MODE_PANEL_ORIENTATION_UNKNOWN) in intel_dsi_get_panel_orientation()
125 return orientation; in intel_dsi_get_panel_orientation()
127 orientation = display->vbt.orientation; in intel_dsi_get_panel_orientation()
128 if (orientation != DRM_MODE_PANEL_ORIENTATION_UNKNOWN) in intel_dsi_get_panel_orientation()
129 return orientation; in intel_dsi_get_panel_orientation()
/drivers/iio/imu/inv_mpu6050/
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()
/drivers/usb/typec/mux/
A Dptn36502.c74 enum typec_orientation orientation; member
81 bool reverse = (ptn->orientation == TYPEC_ORIENTATION_REVERSE); 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()
225 if (ptn->orientation != orientation) { in ptn36502_sw_set()
226 ptn->orientation = orientation; in ptn36502_sw_set()
320 ptn->orientation = TYPEC_ORIENTATION_NONE; in ptn36502_probe()
A Dfsa4480.c63 enum typec_orientation orientation; member
81 bool reverse = (fsa->orientation == TYPEC_ORIENTATION_REVERSE); in fsa4480_set()
150 enum typec_orientation orientation) in fsa4480_switch_set() argument
157 if (fsa->orientation != orientation) { in fsa4480_switch_set()
158 fsa->orientation = orientation; in fsa4480_switch_set()
293 fsa->orientation = TYPEC_ORIENTATION_NONE; in fsa4480_probe()
A Dps883x.c56 enum typec_orientation orientation; member
94 if (retimer->orientation == TYPEC_ORIENTATION_NONE || in ps883x_set()
102 if (retimer->orientation == TYPEC_ORIENTATION_REVERSE) in ps883x_set()
138 enum typec_orientation orientation) in ps883x_sw_set() argument
143 ret = typec_switch_set(retimer->typec_switch, orientation); in ps883x_sw_set()
149 if (retimer->orientation != orientation) { in ps883x_sw_set()
150 retimer->orientation = orientation; in ps883x_sw_set()
A Dnb7vpq904m.c76 enum typec_orientation orientation; member
109 bool reverse = (nb7->orientation == TYPEC_ORIENTATION_REVERSE); 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()
265 if (nb7->orientation != orientation) { in nb7vpq904m_sw_set()
266 nb7->orientation = orientation; in nb7vpq904m_sw_set()
407 nb7->orientation = TYPEC_ORIENTATION_NONE; in nb7vpq904m_probe()
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()
554 return typec_switch_set(usbss->codec_switch, orientation); in wcd939x_usbss_switch_set()
627 usbss->orientation = TYPEC_ORIENTATION_NONE; in wcd939x_usbss_probe()
A Dintel_pmc_mux.c140 enum typec_orientation orientation; member
182 return port->orientation - 1; in sbu_orientation()
190 return port->orientation - 1; in hsl_orientation()
295 req.mode_data = (port->orientation - 1) << PMC_USB_ALTMODE_ORI_SHIFT; in pmc_usb_mux_dp()
345 req.mode_data = (port->orientation - 1) << PMC_USB_ALTMODE_ORI_SHIFT; in pmc_usb_mux_tbt()
398 req.mode_data |= (port->orientation - 1) << PMC_USB_ALTMODE_ORI_SHIFT; in pmc_usb_mux_usb4()
482 if (port->orientation == TYPEC_ORIENTATION_NONE) in pmc_usb_connect()
513 if (port->orientation == TYPEC_ORIENTATION_NONE || port->role == USB_ROLE_NONE) in pmc_usb_mux_set()
544 enum typec_orientation orientation) in pmc_usb_set_orientation() argument
550 port->orientation = orientation; in pmc_usb_set_orientation()
A Dtusb1046.c92 enum typec_orientation orientation) in tusb1046_switch_set() argument
99 dev_dbg(dev, "setting USB3.0 lane flip for orientation %d\n", orientation); in tusb1046_switch_set()
110 if (orientation == TYPEC_ORIENTATION_REVERSE) in tusb1046_switch_set()
A Dgpio-sbu-mux.c27 enum typec_orientation orientation) in gpio_sbu_switch_set() argument
38 switch (orientation) { in gpio_sbu_switch_set()
/drivers/soc/qcom/
A Dpmic_glink_altmode.c82 enum typec_orientation orientation; member
223 typec_switch_set(alt_port->typec_switch, alt_port->orientation); in pmic_glink_altmode_worker()
248 static enum typec_orientation pmic_glink_altmode_orientation(unsigned int orientation) in pmic_glink_altmode_orientation() argument
250 if (orientation == 0) in pmic_glink_altmode_orientation()
252 else if (orientation == 1) in pmic_glink_altmode_orientation()
271 u8 orientation; in pmic_glink_altmode_sc8180xp_notify() local
287 orientation = FIELD_GET(SC8180X_ORIENTATION_MASK, notification); in pmic_glink_altmode_sc8180xp_notify()
301 alt_port->orientation = pmic_glink_altmode_orientation(orientation); in pmic_glink_altmode_sc8180xp_notify()
318 u8 orientation; in pmic_glink_altmode_sc8280xp_notify() local
333 orientation = notify->payload[1]; in pmic_glink_altmode_sc8280xp_notify()
[all …]
/drivers/phy/freescale/
A Dphy-fsl-imx8mq-usb.c105 enum typec_orientation orientation; member
125 enum typec_orientation orientation);
130 enum typec_orientation orientation) in tca_blk_typec_switch_set() argument
136 if (tca->orientation == orientation) in tca_blk_typec_switch_set()
143 tca_blk_orientation_set(tca, orientation); in tca_blk_typec_switch_set()
189 enum typec_orientation orientation) in tca_blk_orientation_set() argument
195 if (orientation == TYPEC_ORIENTATION_NONE) { in tca_blk_orientation_set()
218 if (orientation == TYPEC_ORIENTATION_REVERSE) in tca_blk_orientation_set()
230 tca->orientation = orientation; in tca_blk_orientation_set()
249 tca_blk_orientation_set(tca, tca->orientation); in tca_blk_init()
[all …]
/drivers/media/pci/intel/
A Dipu-bridge.c100 .orientation = "orientation",
262 enum v4l2_fwnode_orientation orientation; in ipu_bridge_parse_orientation() local
272 orientation = V4L2_FWNODE_ORIENTATION_FRONT; in ipu_bridge_parse_orientation()
275 orientation = V4L2_FWNODE_ORIENTATION_BACK; in ipu_bridge_parse_orientation()
281 orientation = V4L2_FWNODE_ORIENTATION_EXTERNAL; in ipu_bridge_parse_orientation()
286 orientation = V4L2_FWNODE_ORIENTATION_EXTERNAL; in ipu_bridge_parse_orientation()
291 return orientation; in ipu_bridge_parse_orientation()
317 sensor->orientation = ipu_bridge_parse_orientation(adev); in ipu_bridge_parse_ssdb()
381 sensor->prop_names.orientation, in ipu_bridge_create_fwnode_properties()
382 sensor->orientation); in ipu_bridge_create_fwnode_properties()
/drivers/gpu/drm/panel/
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()
A Dpanel-boe-th101mb31ig002-28a.c48 enum drm_panel_orientation orientation; member
323 drm_connector_set_panel_orientation(connector, ctx->orientation); in boe_th101mb31ig002_get_modes()
335 return ctx->orientation; in boe_th101mb31ig002_get_orientation()
383 &ctx->orientation); in boe_th101mb31ig002_dsi_probe()
A Dpanel-elida-kd35t133.c45 enum drm_panel_orientation orientation; member
193 return ctx->orientation; in kd35t133_get_orientation()
236 ret = of_drm_get_panel_orientation(dev->of_node, &ctx->orientation); in kd35t133_probe()
/drivers/iio/accel/
A Dmc3230.c70 struct iio_mount_matrix orientation; member
79 return &data->orientation; in mc3230_get_mount_matrix()
192 ret = iio_read_mount_matrix(&client->dev, &data->orientation); in mc3230_probe()
A Dmma7660.c50 struct iio_mount_matrix orientation; member
59 return &data->orientation; in mma7660_get_mount_matrix()
206 ret = iio_read_mount_matrix(&client->dev, &data->orientation); in mma7660_probe()
A Dbmc150-accel-core.c384 struct iio_mount_matrix *orientation) in bmc150_apply_bosc0200_acpi_orientation() argument
407 return iio_read_acpi_mount_matrix(dev, orientation, name); in bmc150_apply_bosc0200_acpi_orientation()
411 struct iio_mount_matrix *orientation) in bmc150_apply_dual250e_acpi_orientation() argument
424 struct iio_mount_matrix *orientation) in bmc150_apply_acpi_orientation() argument
429 return bmc150_apply_bosc0200_acpi_orientation(dev, orientation); in bmc150_apply_acpi_orientation()
432 return bmc150_apply_dual250e_acpi_orientation(dev, orientation); in bmc150_apply_acpi_orientation()
438 struct iio_mount_matrix *orientation) in bmc150_apply_acpi_orientation() argument
877 return &data->orientation; in bmc150_accel_get_mount_matrix()
1639 if (!bmc150_apply_acpi_orientation(dev, &data->orientation)) { in bmc150_accel_core_probe()
1640 ret = iio_read_mount_matrix(dev, &data->orientation); in bmc150_accel_core_probe()
A Dmxc4005.c67 struct iio_mount_matrix orientation; member
281 return &data->orientation; in mxc4005_get_mount_matrix()
458 if (!iio_read_acpi_mount_matrix(&client->dev, &data->orientation, "ROTM")) { in mxc4005_probe()
459 ret = iio_read_mount_matrix(&client->dev, &data->orientation); in mxc4005_probe()
/drivers/iio/
A Dindustrialio-acpi.c28 struct iio_mount_matrix *orientation, in iio_read_acpi_mount_matrix() argument
80 orientation->rotation[i * 3 + j] = str; in iio_read_acpi_mount_matrix()
/drivers/phy/qualcomm/
A Dphy-qcom-qmp-usbc.c353 enum typec_orientation orientation; member
493 if (qmp->orientation == TYPEC_ORIENTATION_REVERSE) in qmp_usbc_init()
857 enum typec_orientation orientation) in qmp_usbc_typec_switch_set() argument
861 if (orientation == qmp->orientation || orientation == TYPEC_ORIENTATION_NONE) in qmp_usbc_typec_switch_set()
865 qmp->orientation = orientation; in qmp_usbc_typec_switch_set()
1055 qmp->orientation = TYPEC_ORIENTATION_NORMAL; in qmp_usbc_probe()
/drivers/usb/typec/ucsi/
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()

Completed in 1079 milliseconds

12345