Lines Matching defs:generation

231 	int generation = device->generation;
233 /* device->node_id, accessed below, must not be older than generation */
238 generation);
475 int generation, int index, u32 *data)
480 /* device->node_id, accessed below, must not be older than generation */
486 generation, device->max_speed, offset, data, 4);
500 * the config ROM. We do all this with a cached bus generation. If the bus
501 * generation changes under us, read_config_rom will fail and get retried.
506 static int read_config_rom(struct fw_device *device, int generation)
526 ret = read_rom(device, generation, i, &rom[i]);
564 if (read_rom(device, generation, 0, &dummy) ==
596 ret = read_rom(device, generation, i, &rom[i]);
620 ret = read_rom(device, generation, i, &rom[i]);
900 smp_wmb(); /* update node_id before generation */
901 old->generation = card->generation;
922 static void set_broadcast_channel(struct fw_device *device, int generation)
947 device->node_id, generation, device->max_speed,
966 device->node_id, generation, device->max_speed,
994 ret = read_config_rom(device, device->generation);
1073 set_broadcast_channel(device, device->generation);
1100 static int reread_config_rom(struct fw_device *device, int generation,
1107 rcode = read_rom(device, generation, i, &q);
1133 ret = reread_config_rom(device, device->generation, &changed);
1154 ret = read_config_rom(device, device->generation);
1230 device->generation = card->generation;
1238 * and generation for the device.
1260 smp_wmb(); /* update node_id before generation */
1261 device->generation = card->generation;
1277 smp_wmb(); /* update node_id before generation */
1278 device->generation = card->generation;