Lines Matching refs:opcr

1351 static inline u32 get_opcr(__be32 opcr, u32 mask, u32 shift)  in get_opcr()  argument
1353 return (be32_to_cpu(opcr) >> shift) & mask; in get_opcr()
1356 static inline void set_opcr(__be32 *opcr, u32 value, u32 mask, u32 shift) in set_opcr() argument
1358 *opcr &= ~cpu_to_be32(mask << shift); in set_opcr()
1359 *opcr |= cpu_to_be32((value & mask) << shift); in set_opcr()
1373 __be32 old_opcr, opcr[2]; in cmp_establish_pp_connection() local
1378 ret = cmp_read(fdtv, opcr_address, opcr); in cmp_establish_pp_connection()
1383 if (!get_opcr_online(*opcr)) { in cmp_establish_pp_connection()
1388 old_opcr = *opcr; in cmp_establish_pp_connection()
1390 if (get_opcr_p2p_connections(*opcr)) { in cmp_establish_pp_connection()
1391 if (get_opcr_channel(*opcr) != channel) { in cmp_establish_pp_connection()
1399 set_opcr_channel(opcr, channel); in cmp_establish_pp_connection()
1400 set_opcr_data_rate(opcr, 2); /* S400 */ in cmp_establish_pp_connection()
1403 set_opcr_overhead_id(opcr, 0); in cmp_establish_pp_connection()
1408 set_opcr_p2p_connections(opcr, get_opcr_p2p_connections(*opcr) + 1); in cmp_establish_pp_connection()
1410 opcr[1] = *opcr; in cmp_establish_pp_connection()
1411 opcr[0] = old_opcr; in cmp_establish_pp_connection()
1413 ret = cmp_lock(fdtv, opcr_address, opcr); in cmp_establish_pp_connection()
1417 if (old_opcr != *opcr) { in cmp_establish_pp_connection()
1433 __be32 old_opcr, opcr[2]; in cmp_break_pp_connection() local
1437 if (cmp_read(fdtv, opcr_address, opcr) < 0) in cmp_break_pp_connection()
1441 if (!get_opcr_online(*opcr) || !get_opcr_p2p_connections(*opcr) || in cmp_break_pp_connection()
1442 get_opcr_channel(*opcr) != channel) { in cmp_break_pp_connection()
1447 old_opcr = *opcr; in cmp_break_pp_connection()
1448 set_opcr_p2p_connections(opcr, get_opcr_p2p_connections(*opcr) - 1); in cmp_break_pp_connection()
1450 opcr[1] = *opcr; in cmp_break_pp_connection()
1451 opcr[0] = old_opcr; in cmp_break_pp_connection()
1453 if (cmp_lock(fdtv, opcr_address, opcr) < 0) in cmp_break_pp_connection()
1456 if (old_opcr != *opcr) { in cmp_break_pp_connection()