Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 9 of 9) 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 …]
Ddecompress_inflate.c43 int rc; in gunzip() local
46 rc = -1; in gunzip()
121 rc = zlib_inflateInit2(strm, -MAX_WBITS); in gunzip()
128 while (rc == Z_OK) { in gunzip()
133 rc = -1; in gunzip()
140 rc = zlib_inflate(strm, 0); in gunzip()
146 rc = -1; in gunzip()
155 if (rc == Z_STREAM_END) { in gunzip()
156 rc = 0; in gunzip()
158 } else if (rc != Z_OK) { in gunzip()
[all …]
Ddevres.c343 int i, rc; in pcim_iomap_regions() local
355 rc = -EINVAL; in pcim_iomap_regions()
360 rc = pci_request_region(pdev, i, name); in pcim_iomap_regions()
361 if (rc) in pcim_iomap_regions()
364 rc = -ENOMEM; in pcim_iomap_regions()
381 return rc; in pcim_iomap_regions()
397 int rc; in pcim_iomap_regions_request_all() local
399 rc = pci_request_selected_regions(pdev, request_mask, name); in pcim_iomap_regions_request_all()
400 if (rc) in pcim_iomap_regions_request_all()
401 return rc; in pcim_iomap_regions_request_all()
[all …]
Dcpu_rmap.c261 int rc; in irq_cpu_rmap_notify() local
263 rc = cpu_rmap_update(glue->rmap, glue->index, mask); in irq_cpu_rmap_notify()
264 if (rc) in irq_cpu_rmap_notify()
265 pr_warning("irq_cpu_rmap_notify: update failed: %d\n", rc); in irq_cpu_rmap_notify()
295 int rc; in irq_cpu_rmap_add() local
304 rc = irq_set_affinity_notifier(irq, &glue->notify); in irq_cpu_rmap_add()
305 if (rc) { in irq_cpu_rmap_add()
309 return rc; in irq_cpu_rmap_add()
Ddynamic_debug.c282 int rc = 0; in check_set() local
285 rc = -EINVAL; in check_set()
290 return rc; in check_set()
312 int rc; in ddebug_parse_query() local
327 rc = check_set(&query->function, words[i+1], "func"); in ddebug_parse_query()
329 rc = check_set(&query->filename, words[i+1], "file"); in ddebug_parse_query()
331 rc = check_set(&query->module, words[i+1], "module"); in ddebug_parse_query()
336 rc = check_set(&query->format, words[i+1], "format"); in ddebug_parse_query()
366 if (rc) in ddebug_parse_query()
367 return rc; in ddebug_parse_query()
[all …]
Dswiotlb.c237 int rc = 0; in swiotlb_late_init_with_default_size() local
268 rc = swiotlb_late_init_with_tbl(vstart, io_tlb_nslabs); in swiotlb_late_init_with_default_size()
269 if (rc) in swiotlb_late_init_with_default_size()
271 return rc; in swiotlb_late_init_with_default_size()
/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.c263 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/
Dmpi-pow.c50 int rc = -ENOMEM; in mpi_powm() local
307 rc = 0; in mpi_powm()
321 return rc; in mpi_powm()