Searched refs:w_size (Results 1 - 5 of 5) sorted by relevance

/linux-4.4.14/drivers/net/ppp/
H A Dppp_deflate.c29 int w_size; member in struct:ppp_deflate_state
91 int w_size; z_comp_alloc() local
99 w_size = DEFLATE_SIZE(options[2]); z_comp_alloc()
100 if (w_size < DEFLATE_MIN_SIZE || w_size > DEFLATE_MAX_SIZE) z_comp_alloc()
109 state->w_size = w_size; z_comp_alloc()
110 state->strm.workspace = vmalloc(zlib_deflate_workspacesize(-w_size, 8)); z_comp_alloc()
115 DEFLATE_METHOD_VAL, -w_size, 8, Z_DEFAULT_STRATEGY) z_comp_alloc()
149 DEFLATE_SIZE(options[2]) != state->w_size || z_comp_init()
308 int w_size; z_decomp_alloc() local
316 w_size = DEFLATE_SIZE(options[2]); z_decomp_alloc()
317 if (w_size < DEFLATE_MIN_SIZE || w_size > DEFLATE_MAX_SIZE) z_decomp_alloc()
324 state->w_size = w_size; z_decomp_alloc()
330 if (zlib_inflateInit2(&state->strm, -w_size) != Z_OK) z_decomp_alloc()
364 DEFLATE_SIZE(options[2]) != state->w_size || z_decomp_init()
/linux-4.4.14/drivers/spi/
H A Dspi-qup.c146 int w_size; /* bytes per SPI word */ member in struct:spi_qup
215 int idx, shift, w_size; spi_qup_fifo_read() local
217 w_size = controller->w_size; spi_qup_fifo_read()
228 controller->rx_bytes += w_size; spi_qup_fifo_read()
232 for (idx = 0; idx < w_size; idx++, controller->rx_bytes++) { spi_qup_fifo_read()
240 shift *= (w_size - idx - 1); spi_qup_fifo_read()
251 int idx, w_size; spi_qup_fifo_write() local
253 w_size = controller->w_size; spi_qup_fifo_write()
262 for (idx = 0; idx < w_size; idx++, controller->tx_bytes++) { spi_qup_fifo_write()
265 controller->tx_bytes += w_size; spi_qup_fifo_write()
452 qup->w_size = 4; spi_qup_get_mode()
455 qup->w_size = 1; spi_qup_get_mode()
457 qup->w_size = 2; spi_qup_get_mode()
459 qup->n_words = xfer->len / qup->w_size; spi_qup_get_mode()
H A Dspi.c2104 int w_size; __spi_validate() local
2157 w_size = 1; __spi_validate()
2159 w_size = 2; __spi_validate()
2161 w_size = 4; __spi_validate()
2164 if (xfer->len % w_size) __spi_validate()
/linux-4.4.14/lib/zlib_deflate/
H A Ddefutil.h85 uInt w_size; /* LZ77 window size (32K by default) */ member in struct:deflate_state
86 uInt w_bits; /* log2(w_size) (8..16) */
87 uInt w_mask; /* w_size - 1 */
270 #define MAX_DIST(s) ((s)->w_size-MIN_LOOKAHEAD)
H A Ddeflate.c224 s->w_size = 1 << s->w_bits; zlib_deflateInit2()
225 s->w_mask = s->w_size - 1; zlib_deflateInit2()
523 s->window_size = (ulg)2L*s->w_size; lm_init()
740 uInt wsize = s->w_size; fill_window()
873 Assert(s->strstart < s->w_size+MAX_DIST(s) || deflate_stored()
874 s->block_start >= (long)s->w_size, "slide too late"); deflate_stored()

Completed in 236 milliseconds