| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
| H A D | test_verifier_log.c | 16 #define LOG_SIZE (1 << 20) macro 118 if (memcmp(full_log, log, LOG_SIZE)) { in test_log_good() 131 check_ones(log, LOG_SIZE, in test_log_bad() 137 char full_log[LOG_SIZE]; in main() 138 char log[LOG_SIZE]; in main() 142 memset(log, 1, LOG_SIZE); in main() 146 test_log_bad(log, LOG_SIZE, 0); in main() 152 test_log_bad(NULL, LOG_SIZE, 1); in main() 156 test_log_good(full_log, LOG_SIZE, LOG_SIZE, in main() [all...] |
| /kernel/linux/linux-5.10/drivers/platform/chrome/ |
| H A D | cros_ec_debugfs.c | 23 #define LOG_SIZE (1 << LOG_SHIFT) macro 83 buf_space = CIRC_SPACE(cb->head, cb->tail, LOG_SIZE); in cros_ec_console_log_work() 106 cb->head = CIRC_ADD(cb->head, LOG_SIZE, 1); in cros_ec_console_log_work() 137 while (!CIRC_CNT(cb->head, cb->tail, LOG_SIZE)) { in cros_ec_console_log_read() 146 CIRC_CNT(cb->head, cb->tail, LOG_SIZE)); in cros_ec_console_log_read() 156 ret = min_t(size_t, CIRC_CNT_TO_END(cb->head, cb->tail, LOG_SIZE), in cros_ec_console_log_read() 164 cb->tail = CIRC_ADD(cb->tail, LOG_SIZE, ret); in cros_ec_console_log_read() 182 LOG_SIZE)) in cros_ec_console_log_poll() 359 buf = devm_kzalloc(ec->dev, LOG_SIZE, GFP_KERNEL); in cros_ec_create_console_log()
|
| /kernel/linux/linux-6.6/drivers/platform/chrome/ |
| H A D | cros_ec_debugfs.c | 23 #define LOG_SIZE (1 << LOG_SHIFT) macro 86 buf_space = CIRC_SPACE(cb->head, cb->tail, LOG_SIZE); in cros_ec_console_log_work() 109 cb->head = CIRC_ADD(cb->head, LOG_SIZE, 1); in cros_ec_console_log_work() 140 while (!CIRC_CNT(cb->head, cb->tail, LOG_SIZE)) { in cros_ec_console_log_read() 149 CIRC_CNT(cb->head, cb->tail, LOG_SIZE)); in cros_ec_console_log_read() 159 ret = min_t(size_t, CIRC_CNT_TO_END(cb->head, cb->tail, LOG_SIZE), in cros_ec_console_log_read() 167 cb->tail = CIRC_ADD(cb->tail, LOG_SIZE, ret); in cros_ec_console_log_read() 185 LOG_SIZE)) in cros_ec_console_log_poll() 362 buf = devm_kzalloc(ec->dev, LOG_SIZE, GFP_KERNEL); in cros_ec_create_console_log()
|
| /kernel/linux/linux-5.10/drivers/isdn/hardware/mISDN/ |
| H A D | avmfritz.c | 94 #define LOG_SIZE 63 macro 131 char log[LOG_SIZE + 1]; 429 snprintf(fc->log, LOG_SIZE, "B%1d-recv %s %d ", in hdlc_empty_fifo() 500 snprintf(fc->log, LOG_SIZE, "B%1d-send %s %d ", in hdlc_fill_fifo()
|
| H A D | netjet.c | 61 #define LOG_SIZE 64 macro 84 char log[LOG_SIZE]; 413 snprintf(card->log, LOG_SIZE, in read_dma() 517 snprintf(card->log, LOG_SIZE, "B%1d-send %s %d ", in fill_hdlc_flag() 591 snprintf(card->log, LOG_SIZE, "B%1d-send %s %d ", in fill_dma()
|
| /kernel/linux/linux-6.6/drivers/isdn/hardware/mISDN/ |
| H A D | avmfritz.c | 94 #define LOG_SIZE 63 macro 131 char log[LOG_SIZE + 1]; 429 snprintf(fc->log, LOG_SIZE, "B%1d-recv %s %d ", in hdlc_empty_fifo() 500 snprintf(fc->log, LOG_SIZE, "B%1d-send %s %d ", in hdlc_fill_fifo()
|
| H A D | netjet.c | 61 #define LOG_SIZE 64 macro 84 char log[LOG_SIZE]; 413 snprintf(card->log, LOG_SIZE, in read_dma() 517 snprintf(card->log, LOG_SIZE, "B%1d-send %s %d ", in fill_hdlc_flag() 591 snprintf(card->log, LOG_SIZE, "B%1d-send %s %d ", in fill_dma()
|