Lines Matching full:granularity
2820 * usb4_dp_port_granularity() - Return granularity for the bandwidth values
2823 * Reads the programmed granularity from @port.
2826 * * Granularity value of a @port.
2860 * usb4_dp_port_set_granularity() - Set granularity for the bandwidth values
2862 * @granularity: Granularity in Mb/s. Supported values: 1000, 500 and 250.
2864 * Sets the granularity used with the estimated, allocated and requested
2872 int usb4_dp_port_set_granularity(struct tb_port *port, int granularity)
2887 switch (granularity) {
2910 * Sets the estimated bandwidth to @bw. Set the granularity by calling
2912 * down to the closest granularity multiplier.
2921 u32 val, granularity;
2930 granularity = ret;
2938 val |= (bw / granularity) << ADP_DP_CS_2_ESTIMATED_BW_SHIFT;
2949 * the programmed granularity).
2955 u32 val, granularity;
2964 granularity = ret;
2974 return val * granularity;
3046 * driver). Takes into account the programmed granularity.
3052 u32 val, granularity;
3061 granularity = ret;
3069 val |= (bw / granularity) << DP_STATUS_ALLOCATED_BW_SHIFT;
3088 * in Mb/s. Takes the programmed granularity into account.
3100 u32 val, granularity;
3109 granularity = ret;
3119 return (val & ADP_DP_CS_8_REQUESTED_BW_MASK) * granularity;