Searched refs:nob (Results 1 - 25 of 36) sorted by relevance

12

/drivers/staging/lustre/lustre/obdclass/
H A Duuid.c47 static inline __u32 consume(int nob, __u8 **ptr) argument
51 LASSERT(nob <= sizeof(value));
53 for (value = 0; nob > 0; --nob)
H A Ddt_object.c649 * \param nob - is the maximum number of bytes that should be copied
656 int nob, const struct dt_it_ops *iops,
671 nob -= LIP_HDR_SIZE;
696 if (nob < size) {
728 nob -= size;
768 unsigned int pageidx, nob, nlupgs = 0; local
774 nob = rdpg->rp_count;
775 if (nob <= 0)
809 for (pageidx = 0; rc == 0 && nob > 0; pageidx++) {
817 for (i = 0; i < LU_PAGE_COUNT; i++, lp++, nob
655 dt_index_page_build(const struct lu_env *env, union lu_page *lp, int nob, const struct dt_it_ops *iops, struct dt_it *it, __u32 attr, void *arg) argument
[all...]
H A Dcl_io.c571 * Records that read or write io progressed \a nob bytes forward.
573 void cl_io_rw_advance(const struct lu_env *env, struct cl_io *io, size_t nob) argument
578 nob == 0);
582 io->u.ci_rw.crw_pos += nob;
583 io->u.ci_rw.crw_count -= nob;
589 nob);
983 size_t nob; local
988 nob = io->ci_nob;
1007 cl_io_rw_advance(env, io, io->ci_nob - nob);
/drivers/staging/lustre/lustre/libcfs/linux/
H A Dlinux-tcpip.c81 int nob; local
85 nob = strnlen(name, IFNAMSIZ);
86 if (nob == IFNAMSIZ) {
150 int nob; local
204 nob = strnlen (ifr[i].ifr_name, IFNAMSIZ);
205 if (nob == IFNAMSIZ) {
208 nob, ifr[i].ifr_name, IFNAMSIZ);
219 memcpy(names[i], ifr[i].ifr_name, nob);
220 names[i][nob] = 0;
253 libcfs_sock_write (struct socket *sock, void *buffer, int nob, in argument
316 libcfs_sock_read(struct socket *sock, void *buffer, int nob, int timeout) argument
[all...]
H A Dlinux-proc.c121 loff_t pos, void __user *buffer, int nob)
141 rc = cfs_trace_copyout_string(buffer, nob,
145 rc = cfs_trace_copyin_string(tmpstr, tmpstrlen, buffer, nob);
172 loff_t pos, void __user *buffer, int nob)
177 return cfs_trace_dump_debug_buffer_usrstr(buffer, nob);
188 loff_t pos, void __user *buffer, int nob)
196 return cfs_trace_copyout_string(buffer, nob,
200 return cfs_trace_daemon_command_usrstr(buffer, nob);
211 loff_t pos, void __user *buffer, int nob)
221 return cfs_trace_copyout_string(buffer, nob, tmpst
120 __proc_dobitmasks(void *data, int write, loff_t pos, void __user *buffer, int nob) argument
171 __proc_dump_kernel(void *data, int write, loff_t pos, void __user *buffer, int nob) argument
187 __proc_daemon_file(void *data, int write, loff_t pos, void __user *buffer, int nob) argument
210 __proc_debug_mb(void *data, int write, loff_t pos, void __user *buffer, int nob) argument
347 __proc_cpt_table(void *data, int write, loff_t pos, void __user *buffer, int nob) argument
[all...]
/drivers/staging/lustre/lnet/klnds/socklnd/
H A Dsocklnd_lib-linux.c81 int nob; local
105 for (nob = i = 0; i < niov; i++) {
107 nob += scratchiov[i].iov_len;
111 nob < tx->tx_resid)
114 rc = kernel_sendmsg(sock, &msg, (struct kvec *)scratchiov, niov, nob);
125 int nob; local
169 for (nob = i = 0; i < niov; i++) {
172 nob += scratchiov[i].iov_len = kiov[i].kiov_len;
176 nob < tx->tx_resid)
179 rc = kernel_sendmsg(sock, &msg, (struct kvec *)scratchiov, niov, nob);
217 int nob; local
275 int nob; local
326 int nob; local
[all...]
H A Dsocklnd_cb.c114 int nob; local
125 nob = rc;
126 LASSERT (nob <= tx->tx_resid);
127 tx->tx_resid -= nob;
133 if (nob < (int) iov->iov_len) {
134 iov->iov_base = (void *)((char *)iov->iov_base + nob);
135 iov->iov_len -= nob;
139 nob -= iov->iov_len;
142 } while (nob != 0);
151 int nob; local
255 int nob; local
300 int nob; local
632 int nob = atomic_read(&c->ksnc_tx_nob) + local
1035 int nob; local
[all...]
H A Dsocklnd_proto.c276 int nob; local
285 nob = offsetof(ksock_msg_t, ksm_u);
287 nob = tx->tx_lnetmsg->msg_len +
304 if (nob < *ksocknal_tunables.ksnd_min_bulk)
310 if (nob >= *ksocknal_tunables.ksnd_min_bulk)
320 int nob; local
323 nob = offsetof(ksock_msg_t, ksm_u);
325 nob = tx->tx_lnetmsg->msg_len + sizeof(ksock_msg_t);
345 else if (nob < *ksocknal_tunables.ksnd_min_bulk)
353 else if (nob >
[all...]
/drivers/staging/lustre/lustre/libcfs/
H A Dnidstrings.c84 static int libcfs_lo_str2addr(const char *str, int nob, __u32 *addr);
86 static int libcfs_ip_str2addr(const char *str, int nob, __u32 *addr);
89 static int libcfs_num_str2addr(const char *str, int nob, __u32 *addr);
98 int (*nf_str2addr)(const char *str, int nob, __u32 *addr);
203 libcfs_lo_str2addr(const char *str, int nob, __u32 *addr) argument
227 libcfs_ip_str2addr(const char *str, int nob, __u32 *addr) argument
233 int n = nob; /* XscanfX */
237 n == nob &&
260 libcfs_num_str2addr(const char *str, int nob, __u32 *addr) argument
264 n = nob;
391 int nob; local
420 int nob; local
[all...]
H A Dtracefile.c760 int nob; local
769 nob = strnlen(knl_buffer, usr_buffer_nob);
770 while (nob-- >= 0) /* strip trailing whitespace */
771 if (!isspace(knl_buffer[nob]))
774 if (nob < 0) /* empty string */
777 if (nob == knl_buffer_nob) /* no space to terminate */
780 knl_buffer[nob + 1] = 0; /* terminate */
791 int nob = strlen(knl_buffer); local
793 if (nob > usr_buffer_nob)
794 nob
810 cfs_trace_allocate_string_buffer(char **str, int nob) argument
822 cfs_trace_free_string_buffer(char *str, int nob) argument
[all...]
H A Dtracefile.h74 int cfs_trace_allocate_string_buffer(char **str, int nob);
75 void cfs_trace_free_string_buffer(char *str, int nob);
H A Dlibcfs_string.c221 * \retval 1 if first \a nob chars of \a str convert to decimal or
226 cfs_str2num_check(char *str, int nob, unsigned *num, argument
236 for (; endp < str + nob; endp++) {
/drivers/staging/lustre/lnet/lnet/
H A Dconfig.c372 int nob; local
375 nob = offsetof(lnet_text_buf_t, ltb_text[str_len + 1]);
376 if (nob > LNET_SINGLE_TEXTBUF_NOB) {
382 if (lnet_tbnob + nob > LNET_MAX_TEXTBUF_NOB) {
387 LIBCFS_ALLOC(ltb, nob);
391 ltb->ltb_size = nob;
393 lnet_tbnob += nob;
422 int nob; local
439 nob = (int)(sep - str);
440 if (nob >
513 int nob; local
584 int nob = len; local
596 int nob; local
[all...]
H A Dlib-move.c163 unsigned int nob = 0; local
166 nob += (iov++)->iov_len;
168 return nob;
175 unsigned int nob)
180 if (nob == 0)
206 this_nob = MIN(this_nob, nob);
210 nob -= this_nob;
227 } while (nob > 0);
282 unsigned int nob = 0; local
285 nob
173 lnet_copy_iov2iov(unsigned int ndiov, struct iovec *diov, unsigned int doffset, unsigned int nsiov, struct iovec *siov, unsigned int soffset, unsigned int nob) argument
292 lnet_copy_kiov2kiov(unsigned int ndiov, lnet_kiov_t *diov, unsigned int doffset, unsigned int nsiov, lnet_kiov_t *siov, unsigned int soffset, unsigned int nob) argument
374 lnet_copy_kiov2iov(unsigned int niov, struct iovec *iov, unsigned int iovoffset, unsigned int nkiov, lnet_kiov_t *kiov, unsigned int kiovoffset, unsigned int nob) argument
444 lnet_copy_iov2kiov(unsigned int nkiov, lnet_kiov_t *kiov, unsigned int kiovoffset, unsigned int niov, struct iovec *iov, unsigned int iovoffset, unsigned int nob) argument
1358 lnet_drop_message(lnet_ni_t *ni, int cpt, void *private, unsigned int nob) argument
[all...]
H A Drouter_proc.c113 loff_t pos, void __user *buffer, int nob)
152 rc = cfs_trace_copyout_string(buffer, nob,
596 loff_t pos, void __user *buffer, int nob)
646 rc = cfs_trace_copyout_string(buffer, nob,
819 loff_t pos, void __user *buffer, int nob)
851 rc = cfs_trace_copyout_string(buffer, nob,
857 rc = cfs_trace_copyin_string(buf, buf_len, buffer, nob);
112 __proc_lnet_stats(void *data, int write, loff_t pos, void __user *buffer, int nob) argument
595 __proc_lnet_buffers(void *data, int write, loff_t pos, void __user *buffer, int nob) argument
818 __proc_lnet_portal_rotor(void *data, int write, loff_t pos, void __user *buffer, int nob) argument
H A Dapi-ni.c1778 int nob; local
1883 nob = rc;
1884 LASSERT(nob >= 0 && nob <= infosz);
1888 if (nob < 8) {
1891 libcfs_id2str(id), nob);
1909 if (nob < offsetof(lnet_ping_info_t, pi_ni[0])) {
1911 nob, (int)offsetof(lnet_ping_info_t, pi_ni[0]));
1918 if (nob < offsetof(lnet_ping_info_t, pi_ni[n_ids])) {
1920 nob, (in
[all...]
/drivers/staging/lustre/include/linux/lnet/
H A Dlib-lnet.h768 unsigned int soffset, unsigned int nob);
772 unsigned int kiovoffset, unsigned int nob);
776 unsigned int iovoffset, unsigned int nob);
780 unsigned int soffset, unsigned int nob);
785 unsigned int nob)
790 nsiov, siov, soffset, nob);
796 unsigned int soffset, unsigned int nob)
801 nsiov, skiov, soffset, nob);
806 int slen, void *src, unsigned int soffset, unsigned int nob)
811 1, &siov, soffset, nob);
783 lnet_copy_iov2flat(int dlen, void *dest, unsigned int doffset, unsigned int nsiov, struct iovec *siov, unsigned int soffset, unsigned int nob) argument
794 lnet_copy_kiov2flat(int dlen, void *dest, unsigned int doffset, unsigned int nsiov, lnet_kiov_t *skiov, unsigned int soffset, unsigned int nob) argument
805 lnet_copy_flat2iov(unsigned int ndiov, struct iovec *diov, unsigned int doffset, int slen, void *src, unsigned int soffset, unsigned int nob) argument
815 lnet_copy_flat2kiov(unsigned int ndiov, lnet_kiov_t *dkiov, unsigned int doffset, int slen, void *src, unsigned int soffset, unsigned int nob) argument
[all...]
/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs.h101 int libcfs_sock_write(struct socket *sock, void *buffer, int nob, int timeout);
102 int libcfs_sock_read(struct socket *sock, void *buffer, int nob, int timeout);
H A Dlibcfs_string.h83 int cfs_str2num_check(char *str, int nob, unsigned *num,
/drivers/staging/bcm/
H A DBcmchar.c1600 UINT nob = 0; local
1642 nob = flash_2x_read.numOfBytes;
1643 if (nob > ad->uiSectorSize)
1646 buff_size = nob;
1671 while (nob) {
1672 if (nob > ad->uiSectorSize)
1675 read_bytes = nob;
1700 nob = nob - read_bytes;
1701 if (nob) {
1719 UINT nob = 0; local
2159 unsigned int nob; local
[all...]
/drivers/staging/lustre/lnet/klnds/o2iblnd/
H A Do2iblnd_cb.c457 kiblnd_rx_complete (kib_rx_t *rx, int status, int nob) argument
479 LASSERT (nob >= 0);
480 rx->rx_nob = nob;
551 kiblnd_fmr_map_tx(kib_net_t *net, kib_tx_t *tx, kib_rdma_desc_t *rd, int nob) argument
589 rd->rd_frags[0].rf_nob = nob;
596 kiblnd_pmr_map_tx(kib_net_t *net, kib_tx_t *tx, kib_rdma_desc_t *rd, int nob) argument
626 rd->rd_frags[0].rf_nob = nob;
661 __u32 nob; local
673 for (i = 0, nob = 0; i < rd->rd_nfrags; i++) {
678 nob
699 kiblnd_setup_rd_iov(lnet_ni_t *ni, kib_tx_t *tx, kib_rdma_desc_t *rd, unsigned int niov, struct iovec *iov, int offset, int nob) argument
752 kiblnd_setup_rd_kiov(lnet_ni_t *ni, kib_tx_t *tx, kib_rdma_desc_t *rd, int nkiov, lnet_kiov_t *kiov, int offset, int nob) argument
1057 int nob = offsetof (kib_msg_t, ibm_u) + body_nob; local
1471 int nob; local
1635 unsigned int nob = lntmsg->msg_len; local
1699 int nob; local
[all...]
H A Do2iblnd.h867 kiblnd_rd_consume_frag(kib_rdma_desc_t *rd, int index, __u32 nob) argument
869 if (nob < rd->rd_frags[index].rf_nob) {
870 rd->rd_frags[index].rf_addr += nob;
871 rd->rd_frags[index].rf_nob -= nob;
1008 int nob, kib_rdma_desc_t *dstrd, __u64 dstcookie);
1024 int kiblnd_unpack_msg(kib_msg_t *msg, int nob);
H A Do2iblnd.c57 kiblnd_cksum(void *ptr, int nob) argument
62 while (nob-- > 0)
146 int nob; local
170 nob = offsetof (kib_msg_t, ibm_u) +
173 if (msg->ibm_nob < nob) {
175 kiblnd_msgtype2str(msg->ibm_type), msg->ibm_nob, nob);
216 kiblnd_unpack_msg(kib_msg_t *msg, int nob) argument
225 if (nob < 6) {
226 CERROR("Short message: %d\n", nob);
246 if (nob < hdr_siz
[all...]
/drivers/staging/lustre/lnet/selftest/
H A Drpc.c91 srpc_add_bulk_page(srpc_bulk_t *bk, struct page *pg, int i, int nob) argument
93 nob = min(nob, (int)PAGE_CACHE_SIZE);
95 LASSERT(nob > 0);
100 bk->bk_iovs[i].kiov_len = nob;
101 return nob;
145 int nob; local
155 nob = srpc_add_bulk_page(bk, pg, i, bulk_len);
156 bulk_len -= nob;
/drivers/staging/lustre/lustre/ptlrpc/
H A Dsec_plain.c338 int i, nob; local
354 for (i = 0, nob = 0; i < desc->bd_iov_count; i++) {
355 if (desc->bd_iov[i].kiov_len + nob > desc->bd_nob_transferred) {
357 desc->bd_nob_transferred - nob;
359 nob += desc->bd_iov[i].kiov_len;

Completed in 273 milliseconds

12