Lines Matching defs:mode

212 	int mode;
217 for_each_set_bit(mode, &caps, 8) {
218 if (mode >= ARRAY_SIZE(hdrcap_strings))
221 if (!hdrcap_strings[mode])
225 hdrcap_strings[mode]);
431 i3cbus->mode = I3C_BUS_MODE_PURE;
471 if (i3cbus->mode < 0 ||
472 i3cbus->mode >= ARRAY_SIZE(i3c_bus_mode_strings) ||
473 !i3c_bus_mode_strings[i3cbus->mode])
476 ret = sprintf(buf, "%s\n", i3c_bus_mode_strings[i3cbus->mode]);
481 static DEVICE_ATTR_RO(mode);
561 static int i3c_bus_set_mode(struct i3c_bus *i3cbus, enum i3c_bus_mode mode,
566 i3cbus->mode = mode;
568 switch (i3cbus->mode) {
720 * This function must be called with the bus lock held in write mode.
800 * This function must be called with the bus lock held in write mode.
853 * This function must be called with the bus lock held in write mode.
874 * This function must be called with the bus lock held in write mode.
900 * This function must be called with the bus lock held in write mode.
1547 * This function must be called with the bus lock held in write mode.
1588 * This function must be called with the bus lock held in maintenance mode.
1668 * the master controller. That's usually where the bus mode is selected
1869 * This function must be called with the bus lock held in write mode.
2190 /* Fall back to no spike filters and FM bus mode. */
2605 enum i3c_bus_mode mode = I3C_BUS_MODE_PURE;
2641 if (mode < I3C_BUS_MODE_MIXED_FAST)
2642 mode = I3C_BUS_MODE_MIXED_FAST;
2645 if (mode < I3C_BUS_MODE_MIXED_LIMITED)
2646 mode = I3C_BUS_MODE_MIXED_LIMITED;
2649 if (mode < I3C_BUS_MODE_MIXED_SLOW)
2650 mode = I3C_BUS_MODE_MIXED_SLOW;
2661 ret = i3c_bus_set_mode(i3cbus, mode, i2c_scl_rate);