Home
last modified time | relevance | path

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

123

/linux-6.6.21/lib/crypto/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-6.6.21/fs/ceph/
Dmetric.c30 struct ceph_write_io_size *wsize; in ceph_mdsc_send_metrics() local
50 + sizeof(*wsize); in ceph_mdsc_send_metrics()
165 wsize = (struct ceph_write_io_size *)(rsize + 1); in ceph_mdsc_send_metrics()
166 wsize->header.type = cpu_to_le32(CLIENT_METRIC_TYPE_WRITE_IO_SIZES); in ceph_mdsc_send_metrics()
167 wsize->header.ver = 1; in ceph_mdsc_send_metrics()
168 wsize->header.compat = 1; in ceph_mdsc_send_metrics()
169 wsize->header.data_len = cpu_to_le32(sizeof(*wsize) - header_len); in ceph_mdsc_send_metrics()
170 wsize->total_ops = cpu_to_le64(m->metric[METRIC_WRITE].total); in ceph_mdsc_send_metrics()
171 wsize->total_size = cpu_to_le64(m->metric[METRIC_WRITE].size_sum); in ceph_mdsc_send_metrics()
/linux-6.6.21/drivers/media/i2c/
Dov7670.c241 struct ov7670_win_size *wsize; member
978 struct ov7670_win_size *wsize; in ov7670_try_fmt_internal() local
1004 wsize = info->devtype->win_sizes + i; in ov7670_try_fmt_internal()
1006 if (wsize->width < info->min_width || in ov7670_try_fmt_internal()
1007 wsize->height < info->min_height) { in ov7670_try_fmt_internal()
1016 for (wsize = info->devtype->win_sizes; in ov7670_try_fmt_internal()
1017 wsize < info->devtype->win_sizes + win_sizes_limit; wsize++) in ov7670_try_fmt_internal()
1018 if (fmt->width >= wsize->width && fmt->height >= wsize->height) in ov7670_try_fmt_internal()
1020 if (wsize >= info->devtype->win_sizes + win_sizes_limit) in ov7670_try_fmt_internal()
1021 wsize--; /* Take the smallest one */ in ov7670_try_fmt_internal()
[all …]
/linux-6.6.21/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-6.6.21/lib/zlib_deflate/
Ddeflate.c751 uInt wsize = s->w_size; in fill_window() local
758 more = wsize; in fill_window()
769 } else if (s->strstart >= wsize+MAX_DIST(s)) { in fill_window()
771 memcpy((char *)s->window, (char *)s->window+wsize, in fill_window()
772 (unsigned)wsize); in fill_window()
773 s->match_start -= wsize; in fill_window()
774 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */ in fill_window()
775 s->block_start -= (long) wsize; in fill_window()
787 *p = (Pos)(m >= wsize ? m-wsize : NIL); in fill_window()
790 n = wsize; in fill_window()
[all …]
/linux-6.6.21/drivers/watchdog/
Drti_wdt.c127 static int rti_wdt_setup_hw_hb(struct watchdog_device *wdd, u32 wsize) in rti_wdt_setup_hw_hb() argument
135 switch (wsize) { in rti_wdt_setup_hw_hb()
275 u32 wsize; in rti_wdt_probe() local
290 wsize = readl(wdt->base + RTIWWDSIZECTRL); in rti_wdt_probe()
291 ret = rti_wdt_setup_hw_hb(wdd, wsize); in rti_wdt_probe()
/linux-6.6.21/fs/nfs/
Dclient.c726 if (ctx->wsize) in nfs_init_server()
727 server->wsize = nfs_io_size(ctx->wsize, clp->cl_proto); in nfs_init_server()
778 if (server->wsize == 0) in nfs_server_set_fsinfo()
779 server->wsize = nfs_io_size(fsinfo->wtpref, clp->cl_proto); in nfs_server_set_fsinfo()
783 if (fsinfo->wtmax >= 512 && server->wsize > fsinfo->wtmax) in nfs_server_set_fsinfo()
784 server->wsize = nfs_io_size(fsinfo->wtmax, clp->cl_proto); in nfs_server_set_fsinfo()
795 if (server->wsize > max_rpc_payload) in nfs_server_set_fsinfo()
796 server->wsize = max_rpc_payload; in nfs_server_set_fsinfo()
797 if (server->wsize > NFS_MAX_FILE_IO_SIZE) in nfs_server_set_fsinfo()
798 server->wsize = NFS_MAX_FILE_IO_SIZE; in nfs_server_set_fsinfo()
[all …]
Dfs_context.c679 ctx->wsize = result.uint_32; in nfs_fs_context_parse_param()
1105 ctx->wsize = data->wsize; in nfs23_parse_monolithic()
1223 compat_int_t wsize; member
1260 data->wsize = compat->wsize; in nfs4_compat_mount_data_conv()
1339 ctx->wsize = data->wsize; in nfs4_parse_monolithic()
1600 ctx->wsize = nfss->wsize; in nfs_init_fs_context()
/linux-6.6.21/fs/smb/client/
Dsmb1ops.c444 unsigned int wsize; in cifs_negotiate_wsize() local
447 if (ctx->wsize) in cifs_negotiate_wsize()
448 wsize = ctx->wsize; in cifs_negotiate_wsize()
450 wsize = CIFS_DEFAULT_IOSIZE; in cifs_negotiate_wsize()
452 wsize = CIFS_DEFAULT_NON_POSIX_WSIZE; in cifs_negotiate_wsize()
456 wsize = min_t(unsigned int, wsize, CIFS_MAX_RFC1002_WSIZE); in cifs_negotiate_wsize()
465 wsize = min_t(unsigned int, wsize, in cifs_negotiate_wsize()
469 wsize = min_t(unsigned int, wsize, CIFS_MAX_WSIZE); in cifs_negotiate_wsize()
471 return wsize; in cifs_negotiate_wsize()
1019 return CIFS_SB(inode->i_sb)->ctx->wsize; in cifs_wp_retry_size()
Dfs_context.c868 if (ctx->wsize == 0) in smb3_reconfigure()
869 ctx->wsize = cifs_sb->ctx->wsize; in smb3_reconfigure()
1108 ctx->wsize = result.uint_32; in smb3_fs_context_parse_param()
1110 if (ctx->wsize % PAGE_SIZE != 0) { in smb3_fs_context_parse_param()
1111 ctx->wsize = round_down(ctx->wsize, PAGE_SIZE); in smb3_fs_context_parse_param()
1112 if (ctx->wsize == 0) { in smb3_fs_context_parse_param()
1113 ctx->wsize = PAGE_SIZE; in smb3_fs_context_parse_param()
1118 ctx->wsize, PAGE_SIZE); in smb3_fs_context_parse_param()
/linux-6.6.21/drivers/bus/
Dmvebu-mbus.c277 u32 wsize; in mvebu_mbus_window_conflicts() local
282 &enabled, &wbase, &wsize, in mvebu_mbus_window_conflicts()
288 wend = wbase + wsize; in mvebu_mbus_window_conflicts()
308 u32 wsize; in mvebu_mbus_find_window() local
312 &enabled, &wbase, &wsize, in mvebu_mbus_find_window()
318 if (base == wbase && size == wsize) in mvebu_mbus_find_window()
478 u32 wsize; in mvebu_devs_debug_show() local
483 &enabled, &wbase, &wsize, in mvebu_devs_debug_show()
493 (unsigned long long)(wbase + wsize), wtarget, wattr); in mvebu_devs_debug_show()
495 if (!is_power_of_2(wsize) || in mvebu_devs_debug_show()
[all …]
/linux-6.6.21/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c118 ds_versions[i].wsize = nfs_io_size(be32_to_cpup(p++), in nfs4_ff_alloc_deviceid_node()
124 if (ds_versions[i].wsize > NFS_MAX_FILE_IO_SIZE) in nfs4_ff_alloc_deviceid_node()
125 ds_versions[i].wsize = NFS_MAX_FILE_IO_SIZE; in nfs4_ff_alloc_deviceid_node()
145 ds_versions[i].wsize, in nfs4_ff_alloc_deviceid_node()
403 if (mirror->mirror_ds->ds_versions[0].wsize > max_payload) in nfs4_ff_layout_prepare_ds()
404 mirror->mirror_ds->ds_versions[0].wsize = max_payload; in nfs4_ff_layout_prepare_ds()
/linux-6.6.21/drivers/spi/
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-6.6.21/net/9p/
Dtrans_fd.c125 int wsize; member
459 if (!m->wsize) { in p9_write_work()
474 m->wsize = req->tc.size; in p9_write_work()
482 m, m->wpos, m->wsize); in p9_write_work()
484 err = p9_fd_write(m->client, m->wbuf + m->wpos, m->wsize - m->wpos); in p9_write_work()
498 if (m->wpos == m->wsize) { in p9_write_work()
499 m->wpos = m->wsize = 0; in p9_write_work()
507 if (m->wsize || !list_empty(&m->unsent_req_list)) { in p9_write_work()
647 if ((m->wsize || !list_empty(&m->unsent_req_list)) && in p9_poll_mux()
/linux-6.6.21/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-6.6.21/net/ceph/crush/
Dmapper.c907 int wsize = 0; in crush_do_rule() local
950 wsize = 1; in crush_do_rule()
992 if (wsize == 0) in crush_do_rule()
1004 for (i = 0; i < wsize; i++) { in crush_do_rule()
1076 wsize = osize; in crush_do_rule()
1081 for (i = 0; i < wsize && result_len < result_max; i++) { in crush_do_rule()
1085 wsize = 0; in crush_do_rule()
/linux-6.6.21/include/uapi/linux/
Dnfs4_mount.h31 int wsize; /* 1 */ member
Dnfs_mount.h33 int wsize; /* 1 */ member
/linux-6.6.21/arch/arm/kernel/
Dhead-inflate-data.c50 WS(strm)->inflate_state.wsize = 0; in __inflate_kernel_data()
/linux-6.6.21/fs/nfsd/
Dflexfilelayoutxdr.h31 u32 wsize; member

123