Lines Matching refs:options
166 static void *bsd_alloc(unsigned char *options, int opt_len, int decomp);
167 static void *bsd_comp_alloc (unsigned char *options, int opt_len);
168 static void *bsd_decomp_alloc (unsigned char *options, int opt_len);
170 static int bsd_init (void *db, unsigned char *options,
172 static int bsd_comp_init (void *state, unsigned char *options,
174 static int bsd_decomp_init (void *state, unsigned char *options,
356 static void *bsd_alloc (unsigned char *options, int opt_len, int decomp) in bsd_alloc() argument
362 if (opt_len != 3 || options[0] != CI_BSD_COMPRESS || options[1] != 3 in bsd_alloc()
363 || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION) in bsd_alloc()
368 bits = BSD_NBITS(options[2]); in bsd_alloc()
457 static void *bsd_comp_alloc (unsigned char *options, int opt_len) in bsd_comp_alloc() argument
459 return bsd_alloc (options, opt_len, 0); in bsd_comp_alloc()
462 static void *bsd_decomp_alloc (unsigned char *options, int opt_len) in bsd_decomp_alloc() argument
464 return bsd_alloc (options, opt_len, 1); in bsd_decomp_alloc()
471 static int bsd_init (void *state, unsigned char *options, in bsd_init() argument
477 if ((opt_len != 3) || (options[0] != CI_BSD_COMPRESS) || (options[1] != 3) in bsd_init()
478 || (BSD_VERSION(options[2]) != BSD_CURRENT_VERSION) in bsd_init()
479 || (BSD_NBITS(options[2]) != db->maxbits) in bsd_init()
514 static int bsd_comp_init (void *state, unsigned char *options, in bsd_comp_init() argument
517 return bsd_init (state, options, opt_len, unit, debug, 0); in bsd_comp_init()
520 static int bsd_decomp_init (void *state, unsigned char *options, in bsd_decomp_init() argument
524 return bsd_init (state, options, opt_len, unit, debug, 1); in bsd_decomp_init()