Home
last modified time | relevance | path

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

123

/linux/lib/crypto/mpi/
H A Dmpi-add.c19 mpi_size_t usize, vsize, wsize; in mpi_add() local
28 wsize = usize + 1; in mpi_add()
29 err = RESIZE_IF_NEEDED(w, wsize); in mpi_add()
40 wsize = usize + 1; in mpi_add()
41 err = RESIZE_IF_NEEDED(w, wsize); in mpi_add()
53 wsize = usize; in mpi_add()
59 wsize = usize; in mpi_add()
60 MPN_NORMALIZE(wp, wsize); in mpi_add()
64 wsize = usize; in mpi_add()
65 MPN_NORMALIZE(wp, wsize); in mpi_add()
[all …]
H A Dmpi-mul.c18 mpi_size_t usize, vsize, wsize; in mpi_mul() local
46 wsize = usize + vsize; in mpi_mul()
47 if (w->alloced < wsize) { in mpi_mul()
49 wp = mpi_alloc_limb_space(wsize); in mpi_mul()
54 err = mpi_resize(w, wsize); in mpi_mul()
81 wsize = 0; in mpi_mul()
89 wsize -= cy ? 0:1; in mpi_mul()
93 mpi_assign_limb_space(w, wp, wsize); in mpi_mul()
94 w->nlimbs = wsize; in mpi_mul()
/linux/fs/9p/
H A Dvfs_addr.c44 wreq->wsize = fid->clnt->msize - P9_IOHDRSZ; in v9fs_begin_writeback()
46 wreq->wsize = min(wreq->wsize, fid->iounit); in v9fs_begin_writeback()
123 rreq->wsize = fid->clnt->msize - P9_IOHDRSZ; in v9fs_init_request()
125 rreq->wsize = min(rreq->wsize, fid->iounit); in v9fs_init_request()
/linux/fs/ceph/
H A Dmetric.c30 struct ceph_write_io_size *wsize; in ceph_mdsc_send_metrics() local
51 + sizeof(*wsize); in ceph_mdsc_send_metrics()
166 wsize = (struct ceph_write_io_size *)(rsize + 1); in ceph_mdsc_send_metrics()
167 wsize->header.type = cpu_to_le32(CLIENT_METRIC_TYPE_WRITE_IO_SIZES); in ceph_mdsc_send_metrics()
168 wsize->header.ver = 1; in ceph_mdsc_send_metrics()
169 wsize->header.compat = 1; in ceph_mdsc_send_metrics()
170 wsize->header.data_len = cpu_to_le32(sizeof(*wsize) - header_len); in ceph_mdsc_send_metrics()
171 wsize->total_ops = cpu_to_le64(m->metric[METRIC_WRITE].total); in ceph_mdsc_send_metrics()
172 wsize->total_size = cpu_to_le64(m->metric[METRIC_WRITE].size_sum); in ceph_mdsc_send_metrics()
/linux/drivers/media/i2c/
H A Dov7670.c235 struct ov7670_win_size *wsize; member
972 struct ov7670_win_size *wsize; in ov7670_try_fmt_internal() local
998 wsize = info->devtype->win_sizes + i; in ov7670_try_fmt_internal()
1000 if (wsize->width < info->min_width || in ov7670_try_fmt_internal()
1001 wsize->height < info->min_height) { in ov7670_try_fmt_internal()
1010 for (wsize = info->devtype->win_sizes; in ov7670_try_fmt_internal()
1011 wsize < info->devtype->win_sizes + win_sizes_limit; wsize++) in ov7670_try_fmt_internal()
1012 if (fmt->width >= wsize->width && fmt->height >= wsize->height) in ov7670_try_fmt_internal()
1014 if (wsize >= info->devtype->win_sizes + win_sizes_limit) in ov7670_try_fmt_internal()
1015 wsize--; /* Take the smallest one */ in ov7670_try_fmt_internal()
[all …]
/linux/lib/zlib_deflate/
H A 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/lib/zlib_inflate/
H A 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()
H A 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()
H A Dinflate.h86 unsigned wsize; /* window size or zero if not using window */ member
/linux/drivers/watchdog/
H A Drti_wdt.c129 static int rti_wdt_setup_hw_hb(struct watchdog_device *wdd, u32 wsize) in rti_wdt_setup_hw_hb() argument
139 switch (wsize) { in rti_wdt_setup_hw_hb()
272 u32 wsize; in rti_wdt_probe() local
287 wsize = readl(wdt->base + RTIWWDSIZECTRL); in rti_wdt_probe()
288 ret = rti_wdt_setup_hw_hb(wdd, wsize); in rti_wdt_probe()
/linux/fs/smb/client/
H A 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()
H A Dfs_context.c1037 if (ctx->wsize == 0) in smb3_reconfigure()
1038 ctx->wsize = cifs_sb->ctx->wsize; in smb3_reconfigure()
1268 ctx->wsize = result.uint_32; in smb3_fs_context_parse_param()
1270 if (ctx->wsize % PAGE_SIZE != 0) { in smb3_fs_context_parse_param()
1271 ctx->wsize = round_down(ctx->wsize, PAGE_SIZE); in smb3_fs_context_parse_param()
1272 if (ctx->wsize == 0) { in smb3_fs_context_parse_param()
1273 ctx->wsize = PAGE_SIZE; in smb3_fs_context_parse_param()
1278 ctx->wsize, PAGE_SIZE); in smb3_fs_context_parse_param()
/linux/fs/nfs/
H A Dclient.c739 if (ctx->wsize) in nfs_init_server()
740 server->wsize = nfs_io_size(ctx->wsize, clp->cl_proto); in nfs_init_server()
791 if (server->wsize == 0) in nfs_server_set_fsinfo()
792 server->wsize = nfs_io_size(fsinfo->wtpref, clp->cl_proto); in nfs_server_set_fsinfo()
796 if (fsinfo->wtmax >= 512 && server->wsize > fsinfo->wtmax) in nfs_server_set_fsinfo()
797 server->wsize = nfs_io_size(fsinfo->wtmax, clp->cl_proto); in nfs_server_set_fsinfo()
808 if (server->wsize > max_rpc_payload) in nfs_server_set_fsinfo()
809 server->wsize = max_rpc_payload; in nfs_server_set_fsinfo()
810 if (server->wsize > NFS_MAX_FILE_IO_SIZE) in nfs_server_set_fsinfo()
811 server->wsize = NFS_MAX_FILE_IO_SIZE; in nfs_server_set_fsinfo()
[all …]
H A Dfs_context.c690 ctx->wsize = result.uint_32; in nfs_fs_context_parse_param()
1116 ctx->wsize = data->wsize; in nfs23_parse_monolithic()
1237 compat_int_t wsize; member
1274 data->wsize = compat->wsize; in nfs4_compat_mount_data_conv()
1353 ctx->wsize = data->wsize; in nfs4_parse_monolithic()
1614 ctx->wsize = nfss->wsize; in nfs_init_fs_context()
H A Dsuper.c468 seq_printf(m, ",wsize=%u", nfss->wsize); in nfs_show_mount_options()
1021 ctx->wsize != nfss->wsize || in nfs_compare_remount_data()
1127 sb->s_blocksize = nfs_block_bits(server->wsize, in nfs_fill_super()
1148 if (a->wsize != b->wsize) in nfs_compare_mount_options()
/linux/drivers/bus/
H A 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/fs/nfs/flexfilelayout/
H A 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()
409 if (mirror->mirror_ds->ds_versions[0].wsize > max_payload) in nfs4_ff_layout_prepare_ds()
410 mirror->mirror_ds->ds_versions[0].wsize = max_payload; in nfs4_ff_layout_prepare_ds()
/linux/net/9p/
H A Dtrans_fd.c124 int wsize; member
458 if (!m->wsize) { in p9_write_work()
473 m->wsize = req->tc.size; in p9_write_work()
481 m, m->wpos, m->wsize); in p9_write_work()
483 err = p9_fd_write(m->client, m->wbuf + m->wpos, m->wsize - m->wpos); in p9_write_work()
497 if (m->wpos == m->wsize) { in p9_write_work()
498 m->wpos = m->wsize = 0; in p9_write_work()
506 if (m->wsize || !list_empty(&m->unsent_req_list)) { in p9_write_work()
646 if ((m->wsize || !list_empty(&m->unsent_req_list)) && in p9_poll_mux()
/linux/net/ceph/crush/
H A Dmapper.c910 int wsize = 0; in crush_do_rule() local
953 wsize = 1; in crush_do_rule()
995 if (wsize == 0) in crush_do_rule()
1007 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/drivers/net/ethernet/chelsio/cxgb4/
H A 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/include/uapi/linux/
H A Dnfs4_mount.h31 int wsize; /* 1 */ member
H A Dnfs_mount.h33 int wsize; /* 1 */ member
/linux/fs/nfsd/
H A Dflexfilelayoutxdr.h31 u32 wsize; member
/linux/arch/arm/kernel/
H A Dhead-inflate-data.c50 WS(strm)->inflate_state.wsize = 0; in __inflate_kernel_data()
/linux/net/xfrm/
H A Dxfrm_replay.c459 u32 wsize = replay_esn->replay_window; in xfrm_replay_check_esn() local
461 u32 bottom = top - wsize + 1; in xfrm_replay_check_esn()
463 if (!wsize) in xfrm_replay_check_esn()
472 if (likely(top >= wsize - 1)) { in xfrm_replay_check_esn()

123