Lines Matching refs:resources
45 struct fw_iso_resources *resources) in release_resources() argument
51 if (resources == &dice->tx_resources) in release_resources()
58 fw_iso_resources_free(resources); in release_resources()
62 struct fw_iso_resources *resources, in keep_resources() argument
68 err = fw_iso_resources_allocate(resources, max_payload_bytes, in keep_resources()
74 channel = cpu_to_be32(resources->channel); in keep_resources()
75 if (resources == &dice->tx_resources) in keep_resources()
82 release_resources(dice, resources); in keep_resources()
101 struct fw_iso_resources *resources; in start_stream() local
109 resources = &dice->tx_resources; in start_stream()
113 resources = &dice->rx_resources; in start_stream()
146 err = keep_resources(dice, resources, in start_stream()
154 err = amdtp_stream_start(stream, resources->channel, in start_stream()
157 release_resources(dice, resources); in start_stream()
289 struct fw_iso_resources *resources; in init_stream() local
293 resources = &dice->tx_resources; in init_stream()
296 resources = &dice->rx_resources; in init_stream()
300 err = fw_iso_resources_init(resources, dice->unit); in init_stream()
303 resources->channels_mask = 0x00000000ffffffffuLL; in init_stream()
308 fw_iso_resources_destroy(resources); in init_stream()
320 struct fw_iso_resources *resources; in destroy_stream() local
323 resources = &dice->tx_resources; in destroy_stream()
325 resources = &dice->rx_resources; in destroy_stream()
328 fw_iso_resources_destroy(resources); in destroy_stream()