Lines Matching refs:lc
216 try_read(uint32_t lc) in try_read() argument
230 __func__, lc); in try_read()
244 try_write(uint32_t lc) in try_write() argument
249 v = RTE_MAX(lc % UINT8_MAX, 1U); in try_write()
261 __func__, __LINE__, lc); in try_write()
278 __func__, __LINE__, lc); in try_write()
297 uint32_t i, lc; in try_read_lcore() local
301 lc = rte_lcore_id(); in try_read_lcore()
302 lcd = try_lcore_data + lc; in try_read_lcore()
310 rc = try_read(lc); in try_read_lcore()
331 uint32_t i, lc; in try_write_lcore() local
335 lc = rte_lcore_id(); in try_write_lcore()
336 lcd = try_lcore_data + lc; in try_write_lcore()
344 rc = try_write(lc); in try_write_lcore()
362 print_try_lcore_stats(const struct try_rwlock_lcore *tlc, uint32_t lc) in print_try_lcore_stats() argument
379 lc, in print_try_lcore_stats()
393 const struct try_rwlock_lcore *lc) in collect_try_lcore_stats() argument
395 tlc->stat.tick += lc->stat.tick; in collect_try_lcore_stats()
396 tlc->stat.fail += lc->stat.fail; in collect_try_lcore_stats()
397 tlc->stat.success += lc->stat.success; in collect_try_lcore_stats()
409 uint32_t lc, rd, wr; in process_try_lcore_stats() local
421 RTE_LCORE_FOREACH(lc) { in process_try_lcore_stats()
422 rc |= try_lcore_data[lc].rc; in process_try_lcore_stats()
423 if (try_lcore_data[lc].type == LC_TYPE_RDLOCK) { in process_try_lcore_stats()
424 collect_try_lcore_stats(&rlc, try_lcore_data + lc); in process_try_lcore_stats()
427 collect_try_lcore_stats(&wlc, try_lcore_data + lc); in process_try_lcore_stats()
433 RTE_LCORE_FOREACH(lc) in process_try_lcore_stats()
434 print_try_lcore_stats(try_lcore_data + lc, lc); in process_try_lcore_stats()
488 uint32_t lc, mlc; in try_rwlock_test_rde_wro() local
494 RTE_LCORE_FOREACH(lc) { in try_rwlock_test_rde_wro()
495 if (lc != mlc) { in try_rwlock_test_rde_wro()
496 if ((lc & 1) == 0) in try_rwlock_test_rde_wro()
498 NULL, lc); in try_rwlock_test_rde_wro()
501 NULL, lc); in try_rwlock_test_rde_wro()