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
110 resources = &dice->tx_resources; in start_stream()
114 resources = &dice->rx_resources; in start_stream()
150 err = keep_resources(dice, resources, in start_stream()
158 err = amdtp_stream_start(stream, resources->channel, in start_stream()
161 release_resources(dice, resources); in start_stream()
293 struct fw_iso_resources *resources; in init_stream() local
297 resources = &dice->tx_resources; in init_stream()
300 resources = &dice->rx_resources; in init_stream()
304 err = fw_iso_resources_init(resources, dice->unit); in init_stream()
307 resources->channels_mask = 0x00000000ffffffffuLL; in init_stream()
312 fw_iso_resources_destroy(resources); in init_stream()
324 struct fw_iso_resources *resources; in destroy_stream() local
327 resources = &dice->tx_resources; in destroy_stream()
329 resources = &dice->rx_resources; in destroy_stream()
332 fw_iso_resources_destroy(resources); in destroy_stream()