Home
last modified time | relevance | path

Searched refs:wsize (Results 1 – 25 of 71) sorted by relevance

123

/Linux-v5.10/lib/mpi/
Dmpi-add.c23 mpi_size_t usize, wsize; in mpi_add_ui() local
31 wsize = usize + 1; in mpi_add_ui()
32 if (w->alloced < wsize) in mpi_add_ui()
33 mpi_resize(w, wsize); in mpi_add_ui()
41 wsize = v ? 1:0; in mpi_add_ui()
46 wsize = usize + cy; in mpi_add_ui()
53 wsize = 1; in mpi_add_ui()
57 wsize = usize - (wp[usize-1] == 0); in mpi_add_ui()
62 w->nlimbs = wsize; in mpi_add_ui()
70 mpi_size_t usize, vsize, wsize; in mpi_add() local
[all …]
Dmpi-mul.c18 mpi_size_t usize, vsize, wsize; in mpi_mul() local
45 wsize = usize + vsize; in mpi_mul()
46 if (w->alloced < wsize) { in mpi_mul()
48 wp = mpi_alloc_limb_space(wsize); in mpi_mul()
51 mpi_resize(w, wsize); in mpi_mul()
72 wsize = 0; in mpi_mul()
75 wsize -= cy ? 0:1; in mpi_mul()
79 mpi_assign_limb_space(w, wp, wsize); in mpi_mul()
80 w->nlimbs = wsize; in mpi_mul()
Dec.c202 mpi_size_t wsize = LIMB_SIZE_25519; in ec_addm_25519() local
206 if (w->nlimbs != wsize || u->nlimbs != wsize || v->nlimbs != wsize) in ec_addm_25519()
214 mpihelp_add_n(wp, up, vp, wsize); in ec_addm_25519()
215 borrow = mpihelp_sub_n(wp, wp, ctx->p->d, wsize); in ec_addm_25519()
216 mpih_set_cond(n, ctx->p->d, wsize, (borrow != 0UL)); in ec_addm_25519()
217 mpihelp_add_n(wp, wp, n, wsize); in ec_addm_25519()
224 mpi_size_t wsize = LIMB_SIZE_25519; in ec_subm_25519() local
228 if (w->nlimbs != wsize || u->nlimbs != wsize || v->nlimbs != wsize) in ec_subm_25519()
236 borrow = mpihelp_sub_n(wp, up, vp, wsize); in ec_subm_25519()
237 mpih_set_cond(n, ctx->p->d, wsize, (borrow != 0UL)); in ec_subm_25519()
[all …]
/Linux-v5.10/drivers/spi/
Dspi-txx9.c179 unsigned int wsize; in txx9spi_work_one() local
183 wsize = bits_per_word >> 3; /* in bytes */ in txx9spi_work_one()
209 if (len < count * wsize) in txx9spi_work_one()
210 count = len / wsize; in txx9spi_work_one()
223 data = (wsize == 1) in txx9spi_work_one()
227 txbuf += wsize; in txx9spi_work_one()
238 if (wsize == 1) in txx9spi_work_one()
242 rxbuf += wsize; in txx9spi_work_one()
245 len -= count * wsize; in txx9spi_work_one()
Dspi-npcm-pspi.c197 int wsize; in npcm_pspi_send() local
200 wsize = min(bytes_per_word(priv->bits_per_word), priv->tx_bytes); in npcm_pspi_send()
201 priv->tx_bytes -= wsize; in npcm_pspi_send()
206 switch (wsize) { in npcm_pspi_send()
Dspi-uniphier.c253 int wsize; in uniphier_spi_send() local
256 wsize = min(bytes_per_word(priv->bits_per_word), priv->tx_bytes); in uniphier_spi_send()
257 priv->tx_bytes -= wsize; in uniphier_spi_send()
260 switch (wsize) { in uniphier_spi_send()
272 priv->tx_buf += wsize; in uniphier_spi_send()
/Linux-v5.10/drivers/media/i2c/
Dov7670.c242 struct ov7670_win_size *wsize; member
965 struct ov7670_win_size *wsize; in ov7670_try_fmt_internal() local
991 wsize = info->devtype->win_sizes + i; in ov7670_try_fmt_internal()
993 if (wsize->width < info->min_width || in ov7670_try_fmt_internal()
994 wsize->height < info->min_height) { in ov7670_try_fmt_internal()
1003 for (wsize = info->devtype->win_sizes; in ov7670_try_fmt_internal()
1004 wsize < info->devtype->win_sizes + win_sizes_limit; wsize++) in ov7670_try_fmt_internal()
1005 if (fmt->width >= wsize->width && fmt->height >= wsize->height) in ov7670_try_fmt_internal()
1007 if (wsize >= info->devtype->win_sizes + win_sizes_limit) in ov7670_try_fmt_internal()
1008 wsize--; /* Take the smallest one */ in ov7670_try_fmt_internal()
[all …]
/Linux-v5.10/drivers/watchdog/
Drti_wdt.c115 static int rti_wdt_setup_hw_hb(struct watchdog_device *wdd, u32 wsize) in rti_wdt_setup_hw_hb() argument
123 switch (wsize) { in rti_wdt_setup_hw_hb()
257 u32 wsize; in rti_wdt_probe() local
271 wsize = readl(wdt->base + RTIWWDSIZECTRL); in rti_wdt_probe()
272 ret = rti_wdt_setup_hw_hb(wdd, wsize); in rti_wdt_probe()
/Linux-v5.10/lib/zlib_inflate/
Dinffast.c78 unsigned wsize; /* window size or zero if not using window */ in inflate_fast() local
105 wsize = state->wsize; in inflate_fast()
189 from += wsize - op; in inflate_fast()
199 from += wsize + write - op; in inflate_fast()
Dinflate.c51 state->wsize = 1U << state->wbits; in zlib_inflateReset()
129 if (copy >= state->wsize) { in zlib_updatewindow()
130 memcpy(state->window, strm->next_out - state->wsize, state->wsize); in zlib_updatewindow()
132 state->whave = state->wsize; in zlib_updatewindow()
135 dist = state->wsize - state->write; in zlib_updatewindow()
142 state->whave = state->wsize; in zlib_updatewindow()
146 if (state->write == state->wsize) state->write = 0; in zlib_updatewindow()
147 if (state->whave < state->wsize) state->whave += dist; in zlib_updatewindow()
680 from = state->window + (state->wsize - copy); in zlib_inflate()
745 (state->wsize || (state->mode < CHECK && out != strm->avail_out))) in zlib_inflate()
Dinflate.h86 unsigned wsize; /* window size or zero if not using window */ member
/Linux-v5.10/lib/zlib_deflate/
Ddeflate.c744 uInt wsize = s->w_size; in fill_window() local
751 more = wsize; in fill_window()
762 } else if (s->strstart >= wsize+MAX_DIST(s)) { in fill_window()
764 memcpy((char *)s->window, (char *)s->window+wsize, in fill_window()
765 (unsigned)wsize); in fill_window()
766 s->match_start -= wsize; in fill_window()
767 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */ in fill_window()
768 s->block_start -= (long) wsize; in fill_window()
780 *p = (Pos)(m >= wsize ? m-wsize : NIL); in fill_window()
783 n = wsize; in fill_window()
[all …]
/Linux-v5.10/fs/nfs/
Dclient.c707 if (ctx->wsize) in nfs_init_server()
708 server->wsize = nfs_block_size(ctx->wsize, NULL); in nfs_init_server()
758 if (server->wsize == 0) in nfs_server_set_fsinfo()
759 server->wsize = nfs_block_size(fsinfo->wtpref, NULL); in nfs_server_set_fsinfo()
763 if (fsinfo->wtmax >= 512 && server->wsize > fsinfo->wtmax) in nfs_server_set_fsinfo()
764 server->wsize = nfs_block_size(fsinfo->wtmax, NULL); in nfs_server_set_fsinfo()
775 if (server->wsize > max_rpc_payload) in nfs_server_set_fsinfo()
776 server->wsize = max_rpc_payload; in nfs_server_set_fsinfo()
777 if (server->wsize > NFS_MAX_FILE_IO_SIZE) in nfs_server_set_fsinfo()
778 server->wsize = NFS_MAX_FILE_IO_SIZE; in nfs_server_set_fsinfo()
[all …]
Dfs_context.c578 ctx->wsize = result.uint_32; in nfs_fs_context_parse_param()
947 ctx->wsize = data->wsize; in nfs23_parse_monolithic()
1059 compat_int_t wsize; member
1096 data->wsize = compat->wsize; in nfs4_compat_mount_data_conv()
1174 ctx->wsize = data->wsize; in nfs4_parse_monolithic()
1443 ctx->wsize = nfss->wsize; in nfs_init_fs_context()
/Linux-v5.10/fs/cifs/
Dsmb1ops.c435 unsigned int wsize; in cifs_negotiate_wsize() local
438 if (volume_info->wsize) in cifs_negotiate_wsize()
439 wsize = volume_info->wsize; in cifs_negotiate_wsize()
441 wsize = CIFS_DEFAULT_IOSIZE; in cifs_negotiate_wsize()
443 wsize = CIFS_DEFAULT_NON_POSIX_WSIZE; in cifs_negotiate_wsize()
447 wsize = min_t(unsigned int, wsize, CIFS_MAX_RFC1002_WSIZE); in cifs_negotiate_wsize()
456 wsize = min_t(unsigned int, wsize, in cifs_negotiate_wsize()
460 wsize = min_t(unsigned int, wsize, CIFS_MAX_WSIZE); in cifs_negotiate_wsize()
462 return wsize; in cifs_negotiate_wsize()
1008 return CIFS_SB(inode->i_sb)->wsize; in cifs_wp_retry_size()
Dcifs_fs_sb.h66 unsigned int wsize; member
/Linux-v5.10/drivers/bus/
Dmvebu-mbus.c280 u32 wsize; in mvebu_mbus_window_conflicts() local
285 &enabled, &wbase, &wsize, in mvebu_mbus_window_conflicts()
291 wend = wbase + wsize; in mvebu_mbus_window_conflicts()
311 u32 wsize; in mvebu_mbus_find_window() local
315 &enabled, &wbase, &wsize, in mvebu_mbus_find_window()
321 if (base == wbase && size == wsize) in mvebu_mbus_find_window()
492 u32 wsize; in mvebu_devs_debug_show() local
497 &enabled, &wbase, &wsize, in mvebu_devs_debug_show()
507 (unsigned long long)(wbase + wsize), wtarget, wattr); in mvebu_devs_debug_show()
509 if (!is_power_of_2(wsize) || in mvebu_devs_debug_show()
[all …]
/Linux-v5.10/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c117 ds_versions[i].wsize = nfs_block_size(be32_to_cpup(p++), NULL); in nfs4_ff_alloc_deviceid_node()
122 if (ds_versions[i].wsize > NFS_MAX_FILE_IO_SIZE) in nfs4_ff_alloc_deviceid_node()
123 ds_versions[i].wsize = NFS_MAX_FILE_IO_SIZE; in nfs4_ff_alloc_deviceid_node()
143 ds_versions[i].wsize, in nfs4_ff_alloc_deviceid_node()
401 if (mirror->mirror_ds->ds_versions[0].wsize > max_payload) in nfs4_ff_layout_prepare_ds()
402 mirror->mirror_ds->ds_versions[0].wsize = max_payload; in nfs4_ff_layout_prepare_ds()
/Linux-v5.10/net/9p/
Dtrans_fd.c124 int wsize; member
454 if (!m->wsize) { in p9_write_work()
469 m->wsize = req->tc.size; in p9_write_work()
477 m, m->wpos, m->wsize); in p9_write_work()
479 err = p9_fd_write(m->client, m->wbuf + m->wpos, m->wsize - m->wpos); in p9_write_work()
493 if (m->wpos == m->wsize) { in p9_write_work()
494 m->wpos = m->wsize = 0; in p9_write_work()
502 if (m->wsize || !list_empty(&m->unsent_req_list)) { in p9_write_work()
641 if ((m->wsize || !list_empty(&m->unsent_req_list)) && in p9_poll_mux()
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_cudbg.c77 u32 wsize; in cxgb4_get_dump_length() local
97 wsize = cudbg_get_workspace_size(); in cxgb4_get_dump_length()
98 if (wsize && len > CUDBG_DUMP_BUFF_SIZE) in cxgb4_get_dump_length()
/Linux-v5.10/net/ceph/crush/
Dmapper.c907 int wsize = 0; in crush_do_rule() local
951 wsize = 1; in crush_do_rule()
993 if (wsize == 0) in crush_do_rule()
1005 for (i = 0; i < wsize; i++) { in crush_do_rule()
1079 wsize = osize; in crush_do_rule()
1084 for (i = 0; i < wsize && result_len < result_max; i++) { in crush_do_rule()
1088 wsize = 0; in crush_do_rule()
/Linux-v5.10/include/uapi/linux/
Dnfs4_mount.h31 int wsize; /* 1 */ member
Dnfs_mount.h33 int wsize; /* 1 */ member
/Linux-v5.10/fs/nfsd/
Dflexfilelayoutxdr.h31 u32 wsize; member
/Linux-v5.10/arch/arm/kernel/
Dhead-inflate-data.c53 WS(strm)->inflate_state.wsize = 0; in __inflate_kernel_data()

123