| /linux/Documentation/firmware-guide/acpi/ |
| H A D | intel-pmc-mux.rst | 20 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 …]
|
| /linux/drivers/iio/imu/inv_mpu6050/ |
| H A D | inv_mpu_magn.c | 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/drivers/usb/typec/mux/ |
| H A D | ptn36502.c | 74 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()
|
| H A D | fsa4480.c | 63 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()
|
| H A D | nb7vpq904m.c | 76 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()
|
| H A D | ps883x.c | 63 enum typec_orientation orientation; member 111 if (retimer->orientation == TYPEC_ORIENTATION_REVERSE) in ps883x_set() 178 enum typec_orientation orientation) in ps883x_sw_set() argument 183 ret = typec_switch_set(retimer->typec_switch, orientation); in ps883x_sw_set() 189 if (retimer->orientation != orientation) { in ps883x_sw_set() 190 retimer->orientation = orientation; in ps883x_sw_set() 194 orientation == TYPEC_ORIENTATION_REVERSE); in ps883x_sw_set()
|
| H A D | wcd939x-usbss.c | 197 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()
|
| H A D | intel_pmc_mux.c | 140 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()
|
| H A D | pi3usb30532.c | 49 enum typec_orientation orientation) in pi3usb30532_sw_set() argument 58 switch (orientation) { in pi3usb30532_sw_set()
|
| H A D | it5205.c | 69 static int it5205_switch_set(struct typec_switch_dev *sw, enum typec_orientation orientation) in it5205_switch_set() argument 73 switch (orientation) { in it5205_switch_set()
|
| /linux/drivers/soc/qcom/ |
| H A D | pmic_glink_altmode.c | 82 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 …]
|
| /linux/drivers/phy/freescale/ |
| H A D | phy-fsl-imx8mq-usb.c | 106 enum typec_orientation orientation; member 127 enum typec_orientation orientation); 132 enum typec_orientation orientation) in tca_blk_typec_switch_set() argument 138 if (tca->orientation == orientation) in tca_blk_typec_switch_set() 145 tca_blk_orientation_set(tca, orientation); in tca_blk_typec_switch_set() 191 enum typec_orientation orientation) in tca_blk_orientation_set() argument 197 if (orientation == TYPEC_ORIENTATION_NONE) { in tca_blk_orientation_set() 220 if (orientation == TYPEC_ORIENTATION_REVERSE) in tca_blk_orientation_set() 222 else if (orientation == TYPEC_ORIENTATION_NORMAL) in tca_blk_orientation_set() 232 tca->orientation = orientation; in tca_blk_orientation_set() [all …]
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | qcs8550-aim300-aiot.dts | 47 orientation-gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>; 132 orientation-switch; 147 orientation-switch;
|
| H A D | sc8180x-lenovo-flex-5g.dts | 54 orientation-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>, 190 orientation-switch; 209 orientation-switch; 598 orientation-switch; 639 orientation-switch;
|
| /linux/include/media/ |
| H A D | ipu-bridge.h | 100 char orientation[12]; member 140 enum v4l2_fwnode_orientation orientation; member
|
| /linux/drivers/usb/typec/ucsi/ |
| H A D | ucsi_glink.c | 210 int orientation; in pmic_glink_ucsi_connector_status() local 221 orientation = gpiod_get_value(ucsi->port_orientation[con->num - 1]); in pmic_glink_ucsi_connector_status() 222 if (orientation >= 0) { in pmic_glink_ucsi_connector_status() 224 orientation ? in pmic_glink_ucsi_connector_status()
|
| /linux/drivers/iio/accel/ |
| H A D | bmc150-accel-core.c | 381 struct iio_mount_matrix *orientation) in bmc150_apply_bosc0200_acpi_orientation() argument 404 return iio_read_acpi_mount_matrix(dev, orientation, name); in bmc150_apply_bosc0200_acpi_orientation() 408 struct iio_mount_matrix *orientation) in bmc150_apply_dual250e_acpi_orientation() argument 421 struct iio_mount_matrix *orientation) in bmc150_apply_acpi_orientation() argument 426 return bmc150_apply_bosc0200_acpi_orientation(dev, orientation); in bmc150_apply_acpi_orientation() 429 return bmc150_apply_dual250e_acpi_orientation(dev, orientation); in bmc150_apply_acpi_orientation() 435 struct iio_mount_matrix *orientation) in bmc150_apply_acpi_orientation() argument 878 return &data->orientation; in bmc150_accel_get_mount_matrix() 1640 if (!bmc150_apply_acpi_orientation(dev, &data->orientation)) { in bmc150_accel_core_probe() 1641 ret = iio_read_mount_matrix(dev, &data->orientation); in bmc150_accel_core_probe()
|
| H A D | mxc4005.c | 67 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()
|
| /linux/Documentation/devicetree/bindings/iio/ |
| H A D | mount-matrix.txt | 22 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/include/linux/platform_data/ |
| H A D | invensense_mpu6050.h | 23 __s8 orientation[9]; member
|
| /linux/include/linux/iio/accel/ |
| H A D | kxcjk_1013.h | 14 struct iio_mount_matrix orientation; member
|
| /linux/drivers/iio/imu/bmi160/ |
| H A D | bmi160.h | 12 struct iio_mount_matrix orientation; member
|
| /linux/drivers/iio/magnetometer/ |
| H A D | hmc5843.h | 44 struct iio_mount_matrix orientation; member
|
| H A D | af8133j.c | 48 struct iio_mount_matrix orientation; member 68 return &data->orientation; in af8133j_get_mount_matrix() 431 ret = iio_read_mount_matrix(dev, &data->orientation); in af8133j_probe()
|
| /linux/drivers/phy/qualcomm/ |
| H A D | phy-qcom-qmp-combo.c | 1745 enum typec_orientation orientation; member 1887 enum typec_orientation orientation; member 2670 bool reverse = (qmp->orientation == TYPEC_ORIENTATION_REVERSE); in qmp_combo_configure_dp_mode() 2909 bool reverse = (qmp->orientation == TYPEC_ORIENTATION_REVERSE); in qmp_v4_configure_dp_phy() 3063 if (qmp->orientation == TYPEC_ORIENTATION_REVERSE) in qmp_combo_com_init() 3764 enum typec_orientation orientation) in qmp_combo_typec_switch_set() argument 3769 if (orientation == qmp->orientation || orientation == TYPEC_ORIENTATION_NONE) in qmp_combo_typec_switch_set() 3773 qmp->orientation = orientation; in qmp_combo_typec_switch_set() 4106 enum typec_orientation *orientation) in qmp_combo_find_lanes_orientation() argument 4114 *orientation = mapping[i].orientation; in qmp_combo_find_lanes_orientation() [all …]
|