Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 11 of 11) sorted by relevance

/lib/
Ddecompress_unlzma.c67 struct rc { struct
91 static void INIT rc_read(struct rc *rc) in rc_read() argument
93 rc->buffer_size = rc->fill((char *)rc->buffer, LZMA_IOBUF_SIZE); in rc_read()
94 if (rc->buffer_size <= 0) in rc_read()
95 rc->error("unexpected EOF"); in rc_read()
96 rc->ptr = rc->buffer; in rc_read()
97 rc->buffer_end = rc->buffer + rc->buffer_size; in rc_read()
101 static inline void INIT rc_init(struct rc *rc, in rc_init() argument
106 rc->fill = fill; in rc_init()
108 rc->fill = nofill; in rc_init()
[all …]
Dtest_firmware.c44 int rc; member
153 ssize_t rc = 0; in test_fw_misc_read() local
157 rc = simple_read_from_buffer(buf, size, offset, in test_fw_misc_read()
161 return rc; in test_fw_misc_read()
490 int rc; in config_num_requests_store() local
495 rc = -EINVAL; in config_num_requests_store()
500 rc = __test_dev_config_update_u8(buf, count, in config_num_requests_store()
505 return rc; in config_num_requests_store()
537 int rc; in config_buf_size_store() local
542 rc = -EINVAL; in config_buf_size_store()
[all …]
Ddecompress_inflate.c50 int rc; in __gunzip() local
52 rc = -1; in __gunzip()
133 rc = zlib_inflateInit2(strm, -MAX_WBITS); in __gunzip()
144 while (rc == Z_OK) { in __gunzip()
149 rc = -1; in __gunzip()
156 rc = zlib_inflate(strm, 0); in __gunzip()
162 rc = -1; in __gunzip()
171 if (rc == Z_STREAM_END) { in __gunzip()
172 rc = 0; in __gunzip()
174 } else if (rc != Z_OK) { in __gunzip()
[all …]
Dcmdline_kunit.c41 static void cmdline_do_one_test(struct kunit *test, const char *in, int rc, int offset) in cmdline_do_one_test() argument
50 KUNIT_EXPECT_EQ_MSG(test, ret, rc, fmt, in); in cmdline_do_one_test()
60 int rc = 0; in cmdline_test_noint() local
65 cmdline_do_one_test(test, str, rc, offset); in cmdline_test_noint()
76 int rc = cmdline_test_values[i]; in cmdline_test_lead_int() local
81 offset = strlen(in) - strlen(str) + !!(rc == 2); in cmdline_test_lead_int()
82 cmdline_do_one_test(test, in, rc, offset); in cmdline_test_lead_int()
94 int rc = strcmp(str, "") ? (strcmp(str, "-") ? 0 : 1) : 1; in cmdline_test_tail_int() local
102 offset = rc ? strlen(in) : !!(*str == '-'); in cmdline_test_tail_int()
103 cmdline_do_one_test(test, in, rc, offset); in cmdline_test_tail_int()
Dcpu_rmap.c267 int rc; in irq_cpu_rmap_notify() local
269 rc = cpu_rmap_update(glue->rmap, glue->index, mask); in irq_cpu_rmap_notify()
270 if (rc) in irq_cpu_rmap_notify()
271 pr_warn("irq_cpu_rmap_notify: update failed: %d\n", rc); in irq_cpu_rmap_notify()
313 int rc; in irq_cpu_rmap_add() local
321 rc = cpu_rmap_add(rmap, glue); in irq_cpu_rmap_add()
322 if (rc < 0) in irq_cpu_rmap_add()
325 glue->index = rc; in irq_cpu_rmap_add()
326 rc = irq_set_affinity_notifier(irq, &glue->notify); in irq_cpu_rmap_add()
327 if (rc) in irq_cpu_rmap_add()
[all …]
Ddevres.c426 int i, rc; in pcim_iomap_regions() local
438 rc = -EINVAL; in pcim_iomap_regions()
443 rc = pci_request_region(pdev, i, name); in pcim_iomap_regions()
444 if (rc) in pcim_iomap_regions()
447 rc = -ENOMEM; in pcim_iomap_regions()
464 return rc; in pcim_iomap_regions()
480 int rc; in pcim_iomap_regions_request_all() local
482 rc = pci_request_selected_regions(pdev, request_mask, name); in pcim_iomap_regions_request_all()
483 if (rc) in pcim_iomap_regions_request_all()
484 return rc; in pcim_iomap_regions_request_all()
[all …]
Ddynamic_debug.c390 int rc = 0; in check_set() local
393 rc = -EINVAL; in check_set()
398 return rc; in check_set()
420 int rc = 0; in ddebug_parse_query() local
434 rc = check_set(&query->function, arg, "func"); in ddebug_parse_query()
453 rc = check_set(&query->module, arg, "module"); in ddebug_parse_query()
458 rc = check_set(&query->format, arg, "format"); in ddebug_parse_query()
463 rc = check_set(&query->class_string, arg, "class"); in ddebug_parse_query()
468 if (rc) in ddebug_parse_query()
469 return rc; in ddebug_parse_query()
[all …]
/lib/zlib_inflate/
Dinfutil.c14 int rc; in zlib_inflate_blob() local
16 rc = -ENOMEM; in zlib_inflate_blob()
32 rc = zlib_inflateInit2(strm, -MAX_WBITS); in zlib_inflate_blob()
33 if (rc == Z_OK) { in zlib_inflate_blob()
34 rc = zlib_inflate(strm, Z_FINISH); in zlib_inflate_blob()
36 if (rc == Z_STREAM_END) in zlib_inflate_blob()
37 rc = sz - strm->avail_out; in zlib_inflate_blob()
39 rc = -EINVAL; in zlib_inflate_blob()
42 rc = -EINVAL; in zlib_inflate_blob()
48 return rc; /* returns Z_OK (0) if successful */ in zlib_inflate_blob()
/lib/xz/
Dxz_dec_lzma2.c267 struct rc_dec rc; member
470 static void rc_reset(struct rc_dec *rc) in rc_reset() argument
472 rc->range = (uint32_t)-1; in rc_reset()
473 rc->code = 0; in rc_reset()
474 rc->init_bytes_left = RC_INIT_BYTES; in rc_reset()
481 static bool rc_read_init(struct rc_dec *rc, struct xz_buf *b) in rc_read_init() argument
483 while (rc->init_bytes_left > 0) { in rc_read_init()
487 rc->code = (rc->code << 8) + b->in[b->in_pos++]; in rc_read_init()
488 --rc->init_bytes_left; in rc_read_init()
495 static inline bool rc_limit_exceeded(const struct rc_dec *rc) in rc_limit_exceeded() argument
[all …]
/lib/crypto/
Daes.c190 u32 rc, i, j; in aes_expandkey() local
209 for (i = 0, rc = 1; i < 10; i++, rc = mul_by_x(rc)) { in aes_expandkey()
213 rko[0] = ror32(subw(rki[kwords - 1]), 8) ^ rc ^ rki[0]; in aes_expandkey()
/lib/crypto/mpi/
Dmpi-pow.c39 int rc = -ENOMEM; in mpi_powm() local
297 rc = 0; in mpi_powm()
312 return rc; in mpi_powm()