Lines Matching refs:u

48 	} u;  member
59 } u; member
89 if (opcr_number >= ch->u.ompr.nplugs || in cmp_register_opcr()
94 plug->u.pcr.online = 1; in cmp_register_opcr()
95 plug->u.pcr.bcast_count = 0; in cmp_register_opcr()
96 plug->u.pcr.p2p_count = 0; in cmp_register_opcr()
97 plug->u.pcr.overhead = 0; in cmp_register_opcr()
98 plug->u.pcr.payload = payload; in cmp_register_opcr()
102 return &plug->u.pcr; in cmp_register_opcr()
112 if (plug - ch->opcr >= ch->u.ompr.nplugs) BUG(); in cmp_unregister_opcr()
114 plug->u.pcr.online = 0; in cmp_unregister_opcr()
122 ch->u.ompr.non_persistent_ext = 0xff; in reset_plugs()
123 for (i = 0; i < ch->u.ompr.nplugs; i++) { in reset_plugs()
124 ch->opcr[i].u.pcr.bcast_count = 0; in reset_plugs()
125 ch->opcr[i].u.pcr.p2p_count = 0; in reset_plugs()
126 ch->opcr[i].u.pcr.overhead = 0; in reset_plugs()
140 ch->u.ompr.rate = IEEE1394_SPEED_100; in cmp_add_host()
141 ch->u.ompr.bcast_channel_base = 63; in cmp_add_host()
142 ch->u.ompr.nplugs = 2; in cmp_add_host()
172 *buf = cpu_to_be32(ch->u.ompr_quadlet); in pcr_read()
175 else if (csraddr < 0x904 + ch->u.ompr.nplugs * 4) { in pcr_read()
177 *buf = cpu_to_be32(ch->opcr[plug].u.quadlet); in pcr_read()
189 *buf = cpu_to_be32(ch->ipcr[plug].u.quadlet); in pcr_read()
210 *store = cpu_to_be32(ch->u.ompr_quadlet); in pcr_lock()
211 if (arg == cpu_to_be32(ch->u.ompr_quadlet)) in pcr_lock()
212 ch->u.ompr_quadlet = be32_to_cpu(data); in pcr_lock()
216 if (csraddr < 0x904 + ch->u.ompr.nplugs * 4) { in pcr_lock()
218 *store = cpu_to_be32(ch->opcr[plug].u.quadlet); in pcr_lock()
221 ch->opcr[plug].u.quadlet = be32_to_cpu(data); in pcr_lock()
223 if (be32_to_cpu(*store) != ch->opcr[plug].u.quadlet && in pcr_lock()
225 ch->opcr[plug].update(&ch->opcr[plug].u.pcr, in pcr_lock()
235 *store = cpu_to_be32(ch->u.ompr_quadlet); in pcr_lock()
236 if (arg == cpu_to_be32(ch->u.ompr_quadlet)) in pcr_lock()
237 ch->u.ompr_quadlet = be32_to_cpu(data); in pcr_lock()
243 *store = cpu_to_be32(ch->ipcr[plug].u.quadlet); in pcr_lock()
246 ch->ipcr[plug].u.quadlet = be32_to_cpu(data); in pcr_lock()
248 if (be32_to_cpu(*store) != ch->ipcr[plug].u.quadlet && in pcr_lock()
250 ch->ipcr[plug].update(&ch->ipcr[plug].u.pcr, in pcr_lock()