Searched refs:wsize (Results 1 - 48 of 48) sorted by relevance

/linux-4.4.14/drivers/spi/
H A Dspi-txx9.c183 unsigned int wsize; txx9spi_work_one() local
187 wsize = bits_per_word >> 3; /* in bytes */ txx9spi_work_one()
213 if (len < count * wsize) txx9spi_work_one()
214 count = len / wsize; txx9spi_work_one()
227 data = (wsize == 1) txx9spi_work_one()
231 txbuf += wsize; txx9spi_work_one()
242 if (wsize == 1) txx9spi_work_one()
246 rxbuf += wsize; txx9spi_work_one()
249 len -= count * wsize; txx9spi_work_one()
/linux-4.4.14/fs/nfs/flexfilelayout/
H A Dflexfilelayoutdev.c104 /* 20 = version(4) + minor_version(4) + rsize(4) + wsize(4) + nfs4_ff_alloc_deviceid_node()
112 ds_versions[i].wsize = nfs_block_size(be32_to_cpup(p++), NULL); nfs4_ff_alloc_deviceid_node()
117 if (ds_versions[i].wsize > NFS_MAX_FILE_IO_SIZE) nfs4_ff_alloc_deviceid_node()
118 ds_versions[i].wsize = NFS_MAX_FILE_IO_SIZE; nfs4_ff_alloc_deviceid_node()
128 dprintk("%s: [%d] vers %u minor_ver %u rsize %u wsize %u coupled %d\n", nfs4_ff_alloc_deviceid_node()
132 ds_versions[i].wsize, nfs4_ff_alloc_deviceid_node()
418 /* connect success, check rsize/wsize limit */ nfs4_ff_layout_prepare_ds()
425 if (mirror->mirror_ds->ds_versions[0].wsize > max_payload) nfs4_ff_layout_prepare_ds()
426 mirror->mirror_ds->ds_versions[0].wsize = max_payload; nfs4_ff_layout_prepare_ds()
H A Dflexfilelayout.h28 u32 wsize; member in struct:nfs4_ff_ds_version
H A Dflexfilelayout.c855 pgm->pg_bsize = mirror->mirror_ds->ds_versions[0].wsize; ff_layout_pg_init_write()
/linux-4.4.14/lib/zlib_inflate/
H A Dinffast.c99 unsigned wsize; /* window size or zero if not using window */ inflate_fast() local
102 unsigned char *window; /* allocated sliding window, if wsize != 0 */ inflate_fast()
126 wsize = state->wsize; inflate_fast()
210 from += wsize - op; inflate_fast()
220 from += wsize + write - op; inflate_fast()
H A Dinflate.c41 state->wsize = 1U << state->wbits; zlib_inflateReset()
89 Update the window with the last wsize (normally 32K) bytes written before
108 /* copy state->wsize or less output bytes into the circular window */ zlib_updatewindow()
110 if (copy >= state->wsize) { zlib_updatewindow()
111 memcpy(state->window, strm->next_out - state->wsize, state->wsize); zlib_updatewindow()
113 state->whave = state->wsize; zlib_updatewindow()
116 dist = state->wsize - state->write; zlib_updatewindow()
123 state->whave = state->wsize; zlib_updatewindow()
127 if (state->write == state->wsize) state->write = 0; zlib_updatewindow()
128 if (state->whave < state->wsize) state->whave += dist; zlib_updatewindow()
654 from = state->window + (state->wsize - copy); zlib_inflate()
717 if (state->wsize || (state->mode < CHECK && out != strm->avail_out)) zlib_inflate()
H A Dinflate.h84 unsigned wsize; /* window size or zero if not using window */ member in struct:inflate_state
/linux-4.4.14/drivers/media/i2c/
H A Dov7670.c919 struct ov7670_win_size *wsize; ov7670_try_fmt_internal() local
945 wsize = info->devtype->win_sizes + i; ov7670_try_fmt_internal()
947 if (wsize->width < info->min_width || ov7670_try_fmt_internal()
948 wsize->height < info->min_height) { ov7670_try_fmt_internal()
957 for (wsize = info->devtype->win_sizes; ov7670_try_fmt_internal()
958 wsize < info->devtype->win_sizes + win_sizes_limit; wsize++) ov7670_try_fmt_internal()
959 if (fmt->width >= wsize->width && fmt->height >= wsize->height) ov7670_try_fmt_internal()
961 if (wsize >= info->devtype->win_sizes + win_sizes_limit) ov7670_try_fmt_internal()
962 wsize--; /* Take the smallest one */ ov7670_try_fmt_internal()
964 *ret_wsize = wsize; ov7670_try_fmt_internal()
968 fmt->width = wsize->width; ov7670_try_fmt_internal()
969 fmt->height = wsize->height; ov7670_try_fmt_internal()
982 struct ov7670_win_size *wsize; ov7670_set_fmt() local
998 ret = ov7670_try_fmt_internal(sd, &format->format, &ovfmt, &wsize); ov7670_set_fmt()
1009 com7 |= wsize->com7_bit; ov7670_set_fmt()
1015 ov7670_set_hw(sd, wsize->hstart, wsize->hstop, wsize->vstart, ov7670_set_fmt()
1016 wsize->vstop); ov7670_set_fmt()
1018 if (wsize->regs) ov7670_set_fmt()
1019 ret = ov7670_write_array(sd, wsize->regs); ov7670_set_fmt()
/linux-4.4.14/include/uapi/linux/
H A Dnfs4_mount.h30 int wsize; /* 1 */ member in struct:nfs4_mount_data
H A Dnfs_mount.h32 int wsize; /* 1 */ member in struct:nfs_mount_data
/linux-4.4.14/fs/nfs/
H A Dclient.c673 if (data->wsize) nfs_init_server()
674 server->wsize = nfs_block_size(data->wsize, NULL); nfs_init_server()
726 if (server->wsize == 0) nfs_server_set_fsinfo()
727 server->wsize = nfs_block_size(fsinfo->wtpref, NULL); nfs_server_set_fsinfo()
731 if (fsinfo->wtmax >= 512 && server->wsize > fsinfo->wtmax) nfs_server_set_fsinfo()
732 server->wsize = nfs_block_size(fsinfo->wtmax, NULL); nfs_server_set_fsinfo()
744 if (server->wsize > max_rpc_payload) nfs_server_set_fsinfo()
745 server->wsize = max_rpc_payload; nfs_server_set_fsinfo()
746 if (server->wsize > NFS_MAX_FILE_IO_SIZE) nfs_server_set_fsinfo()
747 server->wsize = NFS_MAX_FILE_IO_SIZE; nfs_server_set_fsinfo()
748 server->wpages = (server->wsize + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; nfs_server_set_fsinfo()
769 rpc_setbufsize(server->client, server->wsize + 100, server->rsize + 100); nfs_server_set_fsinfo()
824 target->wsize = source->wsize; nfs_server_copy_userdata()
H A Dsuper.c157 { Opt_wsize, "wsize=%s" },
654 seq_printf(m, ",wsize=%u", nfss->wsize); nfs_show_mount_options()
1345 mnt->wsize = option; nfs_parse_mount_options()
2006 args->wsize = data->wsize; nfs23_validate_mount_data()
2194 data->wsize != nfss->wsize || nfs_compare_remount_data()
2243 data->wsize = nfss->wsize; nfs_remount()
2295 sb->s_blocksize = nfs_block_bits(server->wsize, nfs_initialise_sb()
2367 if (a->wsize != b->wsize) nfs_compare_mount_options()
2777 args->wsize = data->wsize; nfs4_validate_mount_data()
H A Dfscache.c87 key->key.nfs_server.wsize = nfss->wsize; nfs_fscache_get_super_cookie()
H A Dnfs4client.c882 * Set the mount rsize and wsize with negotiated fore channel
900 if (server->wsize > server_rqst_sz) nfs4_session_set_rwsize()
901 server->wsize = server_rqst_sz; nfs4_session_set_rwsize()
1007 if (data->wsize) nfs4_init_server()
1008 server->wsize = nfs_block_size(data->wsize, NULL); nfs4_init_server()
H A Ddirect.c854 * For each wsize'd chunk of the user's buffer, dispatch an NFS WRITE
868 size_t wsize = max_t(size_t, NFS_SERVER(inode)->wsize, PAGE_SIZE); nfs_direct_write_schedule_iovec() local
884 wsize, &pgbase); nfs_direct_write_schedule_iovec()
H A Dfscache.h41 unsigned int wsize; /* write size */ member in struct:nfs_fscache_key::__anon11667::__anon11669
H A Dnfsroot.c90 #define NFS_DEF_OPTIONS "vers=2,udp,rsize=4096,wsize=4096"
H A Dinternal.h83 unsigned int rsize, wsize; member in struct:nfs_parsed_mount_data
H A Dwrite.c1346 server->wsize, ioflags); nfs_pageio_init_write()
1362 mirror->pg_bsize = NFS_SERVER(pgio->pg_inode)->wsize; nfs_pageio_reset_write_mds()
/linux-4.4.14/fs/cifs/
H A Dsmb1ops.c443 unsigned int wsize; cifs_negotiate_wsize() local
445 /* start with specified wsize, or default */ cifs_negotiate_wsize()
446 if (volume_info->wsize) cifs_negotiate_wsize()
447 wsize = volume_info->wsize; cifs_negotiate_wsize()
449 wsize = CIFS_DEFAULT_IOSIZE; cifs_negotiate_wsize()
451 wsize = CIFS_DEFAULT_NON_POSIX_WSIZE; cifs_negotiate_wsize()
455 wsize = min_t(unsigned int, wsize, CIFS_MAX_RFC1002_WSIZE); cifs_negotiate_wsize()
464 wsize = min_t(unsigned int, wsize, cifs_negotiate_wsize()
468 wsize = min_t(unsigned int, wsize, CIFS_MAX_WSIZE); cifs_negotiate_wsize()
470 return wsize; cifs_negotiate_wsize()
1009 return CIFS_SB(inode->i_sb)->wsize; cifs_wp_retry_size()
H A Dcifs_fs_sb.h56 unsigned int wsize; member in struct:cifs_sb_info
H A Dsmb2ops.c233 unsigned int wsize; smb2_negotiate_wsize() local
235 /* start with specified wsize, or default */ smb2_negotiate_wsize()
236 wsize = volume_info->wsize ? volume_info->wsize : CIFS_DEFAULT_IOSIZE; smb2_negotiate_wsize()
237 wsize = min_t(unsigned int, wsize, server->max_write); smb2_negotiate_wsize()
240 wsize = min_t(unsigned int, wsize, SMB2_MAX_BUFFER_SIZE); smb2_negotiate_wsize()
242 return wsize; smb2_negotiate_wsize()
1456 return min_t(unsigned int, CIFS_SB(inode->i_sb)->wsize, smb2_wp_retry_size()
H A Dconnect.c189 { Opt_wsize, "wsize=%s" },
1609 cifs_dbg(VFS, "%s: Invalid wsize value\n", cifs_parse_mount_options()
1613 vol->wsize = option; cifs_parse_mount_options()
2788 * We want to share sb only if we don't specify an r/wsize or compare_mount_options()
2789 * specified r/wsize is greater than or equal to existing one. compare_mount_options()
2791 if (new->wsize && new->wsize < old->wsize) compare_mount_options()
3091 /* make the bufsizes depend on wsize/rsize and max requests */ generic_ip_connect()
3264 * Temporarily set r/wsize for matching superblock. If we end up using cifs_setup_cifs_sb()
3268 cifs_sb->wsize = pvolume_info->wsize; cifs_setup_cifs_sb()
3610 cifs_sb->wsize = server->ops->negotiate_wsize(tcon, volume_info); cifs_mount()
H A Dfile.c1904 * fill the array or the wsize is effectively limited to wdata_alloc_and_fillpages()
2047 * If wsize is smaller than the page cache size, default to writing cifs_writepages()
2050 if (cifs_sb->wsize < PAGE_CACHE_SIZE) cifs_writepages()
2066 unsigned int i, nr_pages, found_pages, wsize, credits; cifs_writepages() local
2069 rc = server->ops->wait_mtu_credits(server, cifs_sb->wsize, cifs_writepages()
2070 &wsize, &credits); cifs_writepages()
2074 tofind = min((wsize / PAGE_CACHE_SIZE) - 1, end - index) + 1; cifs_writepages()
2377 size_t get_numpages(const size_t wsize, const size_t len, size_t *cur_len) get_numpages() argument
2382 clen = min_t(const size_t, len, wsize); get_numpages()
2487 unsigned int wsize, credits; cifs_write_from_iter() local
2489 rc = server->ops->wait_mtu_credits(server, cifs_sb->wsize, cifs_write_from_iter()
2490 &wsize, &credits); cifs_write_from_iter()
2494 nr_pages = get_numpages(wsize, len, &cur_len); cifs_write_from_iter()
H A Dcifsglob.h501 unsigned int wsize; member in struct:smb_vol
722 * When the server doesn't allow large posix writes, only allow a rsize/wsize
730 * The default wsize is 1M. find_get_pages seems to return a maximum of 256
732 * a single wsize request with a single call.
H A Dcifsfs.c509 seq_printf(s, ",wsize=%u", cifs_sb->wsize); cifs_show_options()
H A Dcifssmb.c1928 unsigned int j, nr_pages, wsize, tailsz, cur_len; cifs_writev_requeue() local
1930 wsize = server->ops->wp_retry_size(inode); cifs_writev_requeue()
1931 if (wsize < rest_len) { cifs_writev_requeue()
1932 nr_pages = wsize / PAGE_CACHE_SIZE; cifs_writev_requeue()
/linux-4.4.14/lib/zlib_deflate/
H A Ddeflate.c740 uInt wsize = s->w_size; fill_window() local
747 more = wsize; fill_window()
758 } else if (s->strstart >= wsize+MAX_DIST(s)) { fill_window()
760 memcpy((char *)s->window, (char *)s->window+wsize, fill_window()
761 (unsigned)wsize); fill_window()
762 s->match_start -= wsize; fill_window()
763 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */ fill_window()
764 s->block_start -= (long) wsize; fill_window()
776 *p = (Pos)(m >= wsize ? m-wsize : NIL); fill_window()
779 n = wsize; fill_window()
783 *p = (Pos)(m >= wsize ? m-wsize : NIL); fill_window()
788 more += wsize; fill_window()
/linux-4.4.14/drivers/bus/
H A Dmvebu-mbus.c280 u32 wsize; mvebu_mbus_window_conflicts() local
285 &enabled, &wbase, &wsize, mvebu_mbus_window_conflicts()
291 wend = wbase + wsize; mvebu_mbus_window_conflicts()
311 u32 wsize; mvebu_mbus_find_window() local
315 &enabled, &wbase, &wsize, mvebu_mbus_find_window()
321 if (base == wbase && size == wsize) mvebu_mbus_find_window()
492 u32 wsize; mvebu_devs_debug_show() local
497 &enabled, &wbase, &wsize, mvebu_devs_debug_show()
507 (unsigned long long)(wbase + wsize), wtarget, wattr); mvebu_devs_debug_show()
509 if (!is_power_of_2(wsize) || mvebu_devs_debug_show()
510 ((wbase & (u64)(wsize - 1)) != 0)) mvebu_devs_debug_show()
/linux-4.4.14/net/ceph/crush/
H A Dmapper.c796 int wsize = 0; crush_do_rule() local
841 wsize = 1; crush_do_rule()
878 if (wsize == 0) crush_do_rule()
890 for (i = 0; i < wsize; i++) { crush_do_rule()
956 wsize = osize; crush_do_rule()
961 for (i = 0; i < wsize && result_len < result_max; i++) { crush_do_rule()
965 wsize = 0; crush_do_rule()
/linux-4.4.14/net/9p/
H A Dtrans_fd.c115 * @wsize: amount of data to write for current frame
138 int wsize; member in struct:p9_conn
458 if (!m->wsize) { p9_write_work()
473 m->wsize = req->tc->size; p9_write_work()
479 m, m->wpos, m->wsize); p9_write_work()
481 err = p9_fd_write(m->client, m->wbuf + m->wpos, m->wsize - m->wpos); p9_write_work()
495 if (m->wpos == m->wsize) p9_write_work()
496 m->wpos = m->wsize = 0; p9_write_work()
501 if (m->wsize || !list_empty(&m->unsent_req_list)) { p9_write_work()
641 if ((m->wsize || !list_empty(&m->unsent_req_list)) && p9_poll_mux()
/linux-4.4.14/fs/ceph/
H A Dsuper.c146 {Opt_wsize, "wsize=%d"},
216 fsopt->wsize = intval; parse_fsopt_token()
460 if (fsopt->wsize) ceph_show_options()
461 seq_printf(m, ",wsize=%d", fsopt->wsize); ceph_show_options()
563 page_count = fsc->mount_options->wsize >> PAGE_CACHE_SHIFT; create_fs_client()
H A Daddr.c700 unsigned wsize = 1 << inode->i_blkbits; ceph_writepages_start() local
726 if (fsc->mount_options->wsize && fsc->mount_options->wsize < wsize) ceph_writepages_start()
727 wsize = fsc->mount_options->wsize; ceph_writepages_start()
728 if (wsize < PAGE_CACHE_SIZE) ceph_writepages_start()
729 wsize = PAGE_CACHE_SIZE; ceph_writepages_start()
730 max_pages_ever = wsize >> PAGE_CACHE_SHIFT; ceph_writepages_start()
877 len = wsize; ceph_writepages_start()
H A Dsuper.h58 int wsize; /* max write size */ member in struct:ceph_mount_options
/linux-4.4.14/net/xfrm/
H A Dxfrm_replay.c442 u32 wsize = replay_esn->replay_window; xfrm_replay_check_esn() local
444 u32 bottom = top - wsize + 1; xfrm_replay_check_esn()
446 if (!wsize) xfrm_replay_check_esn()
455 if (likely(top >= wsize - 1)) { xfrm_replay_check_esn()
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
H A Drx_reorder.c433 "ADDBA for vring[%d] already established wsize %d\n", wil_back_tx_handle()
490 int wil_addba_tx_request(struct wil6210_priv *wil, u8 ringid, u16 wsize) wil_addba_tx_request() argument
498 req->agg_wsize = wil_agg_size(wil, wsize); wil_addba_tx_request()
H A Dwil6210.h770 int wil_addba_tx_request(struct wil6210_priv *wil, u8 ringid, u16 wsize);
/linux-4.4.14/lib/
H A Ddecompress_inflate.c126 WS(strm)->inflate_state.wsize = 0; __gunzip()
/linux-4.4.14/drivers/usb/atm/
H A Dcxacru.c209 u8 *wdata, int wsize, u8 *rdata, int rsize);
586 u8 *wdata, int wsize, u8 *rdata, int rsize) cxacru_cm()
593 int wbuflen = ((wsize - 1) / stride + 1) * CMD_PACKET_SIZE; cxacru_cm()
617 /* handle wsize == 0 */ cxacru_cm()
619 for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) { cxacru_cm()
621 memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd)); cxacru_cm()
585 cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm, u8 *wdata, int wsize, u8 *rdata, int rsize) cxacru_cm() argument
/linux-4.4.14/drivers/staging/rtl8712/
H A Drtl8712_recv.c455 u8 wsize = preorder_ctrl->wsize_b; check_indicate_seq() local
456 u16 wend = (preorder_ctrl->indicate_seq + wsize - 1) % 4096; check_indicate_seq()
473 if (seq_num >= (wsize - 1)) check_indicate_seq()
474 preorder_ctrl->indicate_seq = seq_num + 1 - wsize; check_indicate_seq()
476 preorder_ctrl->indicate_seq = 4095 - (wsize - check_indicate_seq()
/linux-4.4.14/drivers/mtd/
H A Dmtdconcat.c187 size_t size, wsize, retsize, old_iov_len; concat_writev() local
195 wsize = size; /* store for future use */ concat_writev()
219 total_len -= wsize; concat_writev()
/linux-4.4.14/net/sunrpc/xprtrdma/
H A Dtransport.c349 cdata.wsize = RPCRDMA_MAX_SEGS * PAGE_SIZE; /* RDMA read max */ xprt_setup_rdma()
352 if (cdata.inline_wsize > cdata.wsize) xprt_setup_rdma()
353 cdata.inline_wsize = cdata.wsize; xprt_setup_rdma()
H A Dxprt_rdma.h325 unsigned int wsize; /* mount wsize - max write hdr+data */ member in struct:rpcrdma_create_data_internal
/linux-4.4.14/include/linux/
H A Dnfs_fs_sb.h138 unsigned int wsize; /* write size */ member in struct:nfs_server
H A Dnfs_xdr.h8 * To change the maximum rsize and wsize supported by the NFS client, adjust
/linux-4.4.14/drivers/staging/rtl8188eu/core/
H A Drtw_recv.c1716 u8 wsize = preorder_ctrl->wsize_b; check_indicate_seq() local
1717 u16 wend = (preorder_ctrl->indicate_seq + wsize - 1) & 0xFFF;/* 4096; */ check_indicate_seq()
1735 if (seq_num >= (wsize - 1)) check_indicate_seq()
1736 preorder_ctrl->indicate_seq = seq_num + 1 - wsize; check_indicate_seq()
1738 preorder_ctrl->indicate_seq = 0xFFF - (wsize - (seq_num + 1)) + 1; check_indicate_seq()
/linux-4.4.14/drivers/staging/rtl8723au/core/
H A Drtw_recv.c1808 u8 wsize = preorder_ctrl->wsize_b; check_indicate_seq() local
1809 u16 wend = (preorder_ctrl->indicate_seq + wsize -1) & 0xFFF; check_indicate_seq()
1829 if (seq_num >= (wsize - 1)) check_indicate_seq()
1830 preorder_ctrl->indicate_seq = seq_num + 1 -wsize; check_indicate_seq()
1832 preorder_ctrl->indicate_seq = 0xFFF - (wsize - (seq_num + 1)) + 1; check_indicate_seq()
/linux-4.4.14/fs/
H A Dcompat.c737 compat_int_t wsize; member in struct:compat_nfs4_mount_data_v1
777 real->wsize = raw->wsize; do_nfs4_super_data_conv()

Completed in 1855 milliseconds