Lines Matching full:generation
231 int generation = device->generation; in fw_device_enable_phys_dma() local
233 /* device->node_id, accessed below, must not be older than generation */ in fw_device_enable_phys_dma()
238 generation); in fw_device_enable_phys_dma()
473 int generation, int index, u32 *data) in read_rom() argument
478 /* device->node_id, accessed below, must not be older than generation */ in read_rom()
484 generation, device->max_speed, offset, data, 4); in read_rom()
498 * the config ROM. We do all this with a cached bus generation. If the bus
499 * generation changes under us, read_config_rom will fail and get retried.
504 static int read_config_rom(struct fw_device *device, int generation) in read_config_rom() argument
524 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom()
562 if (read_rom(device, generation, 0, &dummy) == in read_config_rom()
594 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom()
618 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom()
898 smp_wmb(); /* update node_id before generation */ in lookup_existing_device()
899 old->generation = card->generation; in lookup_existing_device()
920 static void set_broadcast_channel(struct fw_device *device, int generation) in set_broadcast_channel() argument
945 device->node_id, generation, device->max_speed, in set_broadcast_channel()
964 device->node_id, generation, device->max_speed, in set_broadcast_channel()
992 ret = read_config_rom(device, device->generation); in fw_device_init()
1071 set_broadcast_channel(device, device->generation); in fw_device_init()
1098 static int reread_config_rom(struct fw_device *device, int generation, in reread_config_rom() argument
1105 rcode = read_rom(device, generation, i, &q); in reread_config_rom()
1131 ret = reread_config_rom(device, device->generation, &changed); in fw_device_refresh()
1152 ret = read_config_rom(device, device->generation); in fw_device_refresh()
1228 device->generation = card->generation; in fw_node_event()
1236 * and generation for the device. in fw_node_event()
1258 smp_wmb(); /* update node_id before generation */ in fw_node_event()
1259 device->generation = card->generation; in fw_node_event()
1275 smp_wmb(); /* update node_id before generation */ in fw_node_event()
1276 device->generation = card->generation; in fw_node_event()