Lines Matching refs:granularity
2742 int usb4_dp_port_set_granularity(struct tb_port *port, int granularity) in usb4_dp_port_set_granularity() argument
2757 switch (granularity) { in usb4_dp_port_set_granularity()
2788 u32 val, granularity; in usb4_dp_port_set_estimated_bandwidth() local
2797 granularity = ret; in usb4_dp_port_set_estimated_bandwidth()
2805 val |= (bw / granularity) << ADP_DP_CS_2_ESTIMATED_BW_SHIFT; in usb4_dp_port_set_estimated_bandwidth()
2821 u32 val, granularity; in usb4_dp_port_allocated_bandwidth() local
2830 granularity = ret; in usb4_dp_port_allocated_bandwidth()
2840 return val * granularity; in usb4_dp_port_allocated_bandwidth()
2917 u32 val, granularity; in usb4_dp_port_allocate_bandwidth() local
2926 granularity = ret; in usb4_dp_port_allocate_bandwidth()
2934 val |= (bw / granularity) << DP_STATUS_ALLOCATED_BW_SHIFT; in usb4_dp_port_allocate_bandwidth()
2960 u32 val, granularity; in usb4_dp_port_requested_bandwidth() local
2969 granularity = ret; in usb4_dp_port_requested_bandwidth()
2979 return (val & ADP_DP_CS_8_REQUESTED_BW_MASK) * granularity; in usb4_dp_port_requested_bandwidth()