Lines Matching refs:card

64 static int current_bandwidth_overhead(struct fw_card *card)  in current_bandwidth_overhead()  argument
76 return card->gap_count < 63 ? card->gap_count * 97 / 10 + 89 : 512; in current_bandwidth_overhead()
79 static int wait_isoch_resource_delay_after_bus_reset(struct fw_card *card) in wait_isoch_resource_delay_after_bus_reset() argument
82 s64 delay = (card->reset_jiffies + HZ) - get_jiffies_64(); in wait_isoch_resource_delay_after_bus_reset()
108 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_allocate() local
117 spin_lock_irq(&card->lock); in fw_iso_resources_allocate()
118 r->generation = card->generation; in fw_iso_resources_allocate()
119 r->bandwidth_overhead = current_bandwidth_overhead(card); in fw_iso_resources_allocate()
120 spin_unlock_irq(&card->lock); in fw_iso_resources_allocate()
122 err = wait_isoch_resource_delay_after_bus_reset(card); in fw_iso_resources_allocate()
129 fw_iso_resource_manage(card, r->generation, r->channels_mask, in fw_iso_resources_allocate()
166 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_update() local
176 spin_lock_irq(&card->lock); in fw_iso_resources_update()
177 r->generation = card->generation; in fw_iso_resources_update()
178 r->bandwidth_overhead = current_bandwidth_overhead(card); in fw_iso_resources_update()
179 spin_unlock_irq(&card->lock); in fw_iso_resources_update()
183 fw_iso_resource_manage(card, r->generation, 1uLL << r->channel, in fw_iso_resources_update()
213 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_free() local
220 fw_iso_resource_manage(card, r->generation, 1uLL << r->channel, in fw_iso_resources_free()