Lines Matching defs:granularity
2669 * usb4_dp_port_granularity() - Return granularity for the bandwidth values
2672 * Reads the programmed granularity from @port. If the DP IN adapter does
2705 * usb4_dp_port_set_granularity() - Set granularity for the bandwidth values
2707 * @granularity: Granularity in Mb/s. Supported values: 1000, 500 and 250.
2709 * Sets the granularity used with the estimated, allocated and requested
2713 int usb4_dp_port_set_granularity(struct tb_port *port, int granularity)
2728 switch (granularity) {
2751 * Sets the estimated bandwidth to @bw. Set the granularity by calling
2753 * down to the closest granularity multiplier. Returns %0 in success
2759 u32 val, granularity;
2768 granularity = ret;
2776 val |= (bw / granularity) << ADP_DP_CS_2_ESTIMATED_BW_SHIFT;
2787 * account the programmed granularity). Returns negative errno in case
2792 u32 val, granularity;
2801 granularity = ret;
2811 return val * granularity;
2883 * driver). Takes into account the programmed granularity. Returns %0 in
2888 u32 val, granularity;
2897 granularity = ret;
2905 val |= (bw / granularity) << DP_STATUS_ALLOCATED_BW_SHIFT;
2924 * in Mb/s. Takes the programmed granularity into account. In case of
2931 u32 val, granularity;
2940 granularity = ret;
2950 return (val & ADP_DP_CS_8_REQUESTED_BW_MASK) * granularity;