Lines Matching full:generation

232 	int generation = device->generation;  in fw_device_enable_phys_dma()  local
234 /* device->node_id, accessed below, must not be older than generation */ in fw_device_enable_phys_dma()
239 generation); in fw_device_enable_phys_dma()
476 int generation, int index, u32 *data) in read_rom() argument
481 /* device->node_id, accessed below, must not be older than generation */ in read_rom()
487 generation, device->max_speed, offset, data, 4); in read_rom()
501 * the config ROM. We do all this with a cached bus generation. If the bus
502 * generation changes under us, read_config_rom will fail and get retried.
507 static int read_config_rom(struct fw_device *device, int generation) in read_config_rom() argument
527 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom()
565 if (read_rom(device, generation, 0, &dummy) == in read_config_rom()
597 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom()
621 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom()
904 smp_wmb(); /* update node_id before generation */ in lookup_existing_device()
905 old->generation = card->generation; in lookup_existing_device()
926 static void set_broadcast_channel(struct fw_device *device, int generation) in set_broadcast_channel() argument
951 device->node_id, generation, device->max_speed, in set_broadcast_channel()
970 device->node_id, generation, device->max_speed, in set_broadcast_channel()
998 ret = read_config_rom(device, device->generation); in fw_device_init()
1077 set_broadcast_channel(device, device->generation); in fw_device_init()
1104 static int reread_config_rom(struct fw_device *device, int generation, in reread_config_rom() argument
1111 rcode = read_rom(device, generation, i, &q); in reread_config_rom()
1137 ret = reread_config_rom(device, device->generation, &changed); in fw_device_refresh()
1158 ret = read_config_rom(device, device->generation); in fw_device_refresh()
1234 device->generation = card->generation; in fw_node_event()
1242 * and generation for the device. in fw_node_event()
1264 smp_wmb(); /* update node_id before generation */ in fw_node_event()
1265 device->generation = card->generation; in fw_node_event()
1281 smp_wmb(); /* update node_id before generation */ in fw_node_event()
1282 device->generation = card->generation; in fw_node_event()