cryptodeflate.c (259980) | cryptodeflate.c (260817) |
---|---|
1/* $OpenBSD: deflate.c,v 1.3 2001/08/20 02:45:22 hugh Exp $ */ 2 3/*- 4 * Copyright (c) 2001 Jean-Jacques Bernard-Gundol (jj@wabbitt.org) 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 */ 29 30/* 31 * This file contains a wrapper around the deflate algo compression 32 * functions using the zlib library (see net/zlib.{c,h}) 33 */ 34 35#include <sys/cdefs.h> | 1/* $OpenBSD: deflate.c,v 1.3 2001/08/20 02:45:22 hugh Exp $ */ 2 3/*- 4 * Copyright (c) 2001 Jean-Jacques Bernard-Gundol (jj@wabbitt.org) 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 */ 29 30/* 31 * This file contains a wrapper around the deflate algo compression 32 * functions using the zlib library (see net/zlib.{c,h}) 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: stable/10/sys/opencrypto/cryptodeflate.c 259980 2013-12-28 01:03:30Z peter $"); | 36__FBSDID("$FreeBSD: stable/10/sys/opencrypto/cryptodeflate.c 260817 2014-01-17 10:58:59Z avg $"); |
37 38#include "opt_kdtrace.h" 39 40#include <sys/types.h> 41#include <sys/param.h> 42#include <sys/malloc.h> 43#include <sys/param.h> 44#include <sys/kernel.h> 45#include <sys/sdt.h> 46#include <sys/systm.h> 47#include <net/zlib.h> 48 49#include <opencrypto/cryptodev.h> 50#include <opencrypto/deflate.h> 51 52SDT_PROVIDER_DECLARE(opencrypto); | 37 38#include "opt_kdtrace.h" 39 40#include <sys/types.h> 41#include <sys/param.h> 42#include <sys/malloc.h> 43#include <sys/param.h> 44#include <sys/kernel.h> 45#include <sys/sdt.h> 46#include <sys/systm.h> 47#include <net/zlib.h> 48 49#include <opencrypto/cryptodev.h> 50#include <opencrypto/deflate.h> 51 52SDT_PROVIDER_DECLARE(opencrypto); |
53SDT_PROBE_DEFINE2(opencrypto, deflate, deflate_global, entry, entry, | 53SDT_PROBE_DEFINE2(opencrypto, deflate, deflate_global, entry, |
54 "int", "u_int32_t"); | 54 "int", "u_int32_t"); |
55SDT_PROBE_DEFINE5(opencrypto, deflate, deflate_global, bad, bad, | 55SDT_PROBE_DEFINE5(opencrypto, deflate, deflate_global, bad, |
56 "int", "int", "int", "int", "int"); | 56 "int", "int", "int", "int", "int"); |
57SDT_PROBE_DEFINE5(opencrypto, deflate, deflate_global, iter, iter, | 57SDT_PROBE_DEFINE5(opencrypto, deflate, deflate_global, iter, |
58 "int", "int", "int", "int", "int"); | 58 "int", "int", "int", "int", "int"); |
59SDT_PROBE_DEFINE2(opencrypto, deflate, deflate_global, return, return, | 59SDT_PROBE_DEFINE2(opencrypto, deflate, deflate_global, return, |
60 "int", "u_int32_t"); 61 62int window_inflate = -1 * MAX_WBITS; 63int window_deflate = -12; 64 65/* 66 * This function takes a block of data and (de)compress it using the deflate 67 * algorithm --- 198 unchanged lines hidden --- | 60 "int", "u_int32_t"); 61 62int window_inflate = -1 * MAX_WBITS; 63int window_deflate = -12; 64 65/* 66 * This function takes a block of data and (de)compress it using the deflate 67 * algorithm --- 198 unchanged lines hidden --- |