/lib/ |
D | decompress_unlzma.c | 67 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 …]
|
D | test_firmware.c | 28 ssize_t rc = 0; in test_fw_misc_read() local 32 rc = simple_read_from_buffer(buf, size, offset, in test_fw_misc_read() 36 return rc; in test_fw_misc_read() 54 int rc; in trigger_request_store() local 67 rc = request_firmware(&test_firmware, name, dev); in trigger_request_store() 68 if (rc) in trigger_request_store() 69 pr_info("load of '%s' failed: %d\n", name, rc); in trigger_request_store() 81 int rc; in test_firmware_init() local 83 rc = misc_register(&test_fw_misc_device); in test_firmware_init() 84 if (rc) { in test_firmware_init() [all …]
|
D | decompress_inflate.c | 44 int rc; in gunzip() local 47 rc = -1; in gunzip() 122 rc = zlib_inflateInit2(strm, -MAX_WBITS); in gunzip() 129 while (rc == Z_OK) { in gunzip() 134 rc = -1; in gunzip() 141 rc = zlib_inflate(strm, 0); in gunzip() 147 rc = -1; in gunzip() 156 if (rc == Z_STREAM_END) { in gunzip() 157 rc = 0; in gunzip() 159 } else if (rc != Z_OK) { in gunzip() [all …]
|
D | devres.c | 315 int i, rc; in pcim_iomap_regions() local 327 rc = -EINVAL; in pcim_iomap_regions() 332 rc = pci_request_region(pdev, i, name); in pcim_iomap_regions() 333 if (rc) in pcim_iomap_regions() 336 rc = -ENOMEM; in pcim_iomap_regions() 353 return rc; in pcim_iomap_regions() 369 int rc; in pcim_iomap_regions_request_all() local 371 rc = pci_request_selected_regions(pdev, request_mask, name); in pcim_iomap_regions_request_all() 372 if (rc) in pcim_iomap_regions_request_all() 373 return rc; in pcim_iomap_regions_request_all() [all …]
|
D | cpu_rmap.c | 257 int rc; in irq_cpu_rmap_notify() local 259 rc = cpu_rmap_update(glue->rmap, glue->index, mask); in irq_cpu_rmap_notify() 260 if (rc) in irq_cpu_rmap_notify() 261 pr_warning("irq_cpu_rmap_notify: update failed: %d\n", rc); in irq_cpu_rmap_notify() 291 int rc; in irq_cpu_rmap_add() local 300 rc = irq_set_affinity_notifier(irq, &glue->notify); in irq_cpu_rmap_add() 301 if (rc) { in irq_cpu_rmap_add() 305 return rc; in irq_cpu_rmap_add()
|
D | dynamic_debug.c | 285 int rc = 0; in check_set() local 288 rc = -EINVAL; in check_set() 293 return rc; in check_set() 315 int rc = 0; in ddebug_parse_query() local 330 rc = check_set(&query->function, words[i+1], "func"); in ddebug_parse_query() 332 rc = check_set(&query->filename, words[i+1], "file"); in ddebug_parse_query() 334 rc = check_set(&query->module, words[i+1], "module"); in ddebug_parse_query() 339 rc = check_set(&query->format, words[i+1], "format"); in ddebug_parse_query() 373 if (rc) in ddebug_parse_query() 374 return rc; in ddebug_parse_query() [all …]
|
D | test-string_helpers.c | 318 int rc = -ENOMEM, ret; in test_string_escape_nomem() local 321 if (ret == rc) in test_string_escape_nomem() 324 pr_err("Test 'escape nomem' failed: got %d instead of %d\n", ret, rc); in test_string_escape_nomem()
|
D | dma-debug.c | 515 int rc; in active_cacheline_insert() local 525 rc = radix_tree_insert(&dma_active_cacheline, cln, entry); in active_cacheline_insert() 526 if (rc == -EEXIST) in active_cacheline_insert() 530 return rc; in active_cacheline_insert() 604 int rc; in add_dma_entry() local 610 rc = active_cacheline_insert(entry); in add_dma_entry() 611 if (rc == -ENOMEM) { in add_dma_entry()
|
D | swiotlb.c | 248 int rc = 0; in swiotlb_late_init_with_default_size() local 279 rc = swiotlb_late_init_with_tbl(vstart, io_tlb_nslabs); in swiotlb_late_init_with_default_size() 280 if (rc) in swiotlb_late_init_with_default_size() 282 return rc; in swiotlb_late_init_with_default_size()
|
/lib/zlib_inflate/ |
D | infutil.c | 14 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/ |
D | xz_dec_lzma2.c | 263 struct rc_dec rc; member 438 static void rc_reset(struct rc_dec *rc) in rc_reset() argument 440 rc->range = (uint32_t)-1; in rc_reset() 441 rc->code = 0; in rc_reset() 442 rc->init_bytes_left = RC_INIT_BYTES; in rc_reset() 449 static bool rc_read_init(struct rc_dec *rc, struct xz_buf *b) in rc_read_init() argument 451 while (rc->init_bytes_left > 0) { in rc_read_init() 455 rc->code = (rc->code << 8) + b->in[b->in_pos++]; in rc_read_init() 456 --rc->init_bytes_left; in rc_read_init() 463 static inline bool rc_limit_exceeded(const struct rc_dec *rc) in rc_limit_exceeded() argument [all …]
|
/lib/mpi/ |
D | mpi-pow.c | 51 int rc = -ENOMEM; in mpi_powm() local 314 rc = 0; in mpi_powm() 328 return rc; in mpi_powm()
|