/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/ |
D | linux-tcpip.c | 81 int nob; in libcfs_ipif_query() local 85 nob = strnlen(name, IFNAMSIZ); in libcfs_ipif_query() 86 if (nob == IFNAMSIZ) { in libcfs_ipif_query() 150 int nob; in libcfs_ipif_enumerate() local 204 nob = strnlen (ifr[i].ifr_name, IFNAMSIZ); in libcfs_ipif_enumerate() 205 if (nob == IFNAMSIZ) { in libcfs_ipif_enumerate() 208 nob, ifr[i].ifr_name, IFNAMSIZ); in libcfs_ipif_enumerate() 219 memcpy(names[i], ifr[i].ifr_name, nob); in libcfs_ipif_enumerate() 220 names[i][nob] = 0; in libcfs_ipif_enumerate() 253 libcfs_sock_write (struct socket *sock, void *buffer, int nob, int timeout) in libcfs_sock_write() argument [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/ |
D | nidstrings.c | 84 static int libcfs_lo_str2addr(const char *str, int nob, __u32 *addr) in libcfs_lo_str2addr() argument 97 static int libcfs_ip_str2addr(const char *str, int nob, __u32 *addr) in libcfs_ip_str2addr() argument 103 int n = nob; /* XscanfX */ in libcfs_ip_str2addr() 107 n == nob && in libcfs_ip_str2addr() 127 static int libcfs_num_str2addr(const char *str, int nob, __u32 *addr) in libcfs_num_str2addr() argument 131 n = nob; in libcfs_num_str2addr() 132 if (sscanf(str, "0x%x%n", addr, &n) >= 1 && n == nob) in libcfs_num_str2addr() 135 n = nob; in libcfs_num_str2addr() 136 if (sscanf(str, "0X%x%n", addr, &n) >= 1 && n == nob) in libcfs_num_str2addr() 139 n = nob; in libcfs_num_str2addr() [all …]
|
D | tracefile.c | 758 int nob; in cfs_trace_copyin_string() local 767 nob = strnlen(knl_buffer, usr_buffer_nob); in cfs_trace_copyin_string() 768 while (nob-- >= 0) /* strip trailing whitespace */ in cfs_trace_copyin_string() 769 if (!isspace(knl_buffer[nob])) in cfs_trace_copyin_string() 772 if (nob < 0) /* empty string */ in cfs_trace_copyin_string() 775 if (nob == knl_buffer_nob) /* no space to terminate */ in cfs_trace_copyin_string() 778 knl_buffer[nob + 1] = 0; /* terminate */ in cfs_trace_copyin_string() 789 int nob = strlen(knl_buffer); in cfs_trace_copyout_string() local 791 if (nob > usr_buffer_nob) in cfs_trace_copyout_string() 792 nob = usr_buffer_nob; in cfs_trace_copyout_string() [all …]
|
D | module.c | 515 loff_t pos, void __user *buffer, int nob) in __proc_dobitmasks() argument 535 rc = cfs_trace_copyout_string(buffer, nob, in __proc_dobitmasks() 539 rc = cfs_trace_copyin_string(tmpstr, tmpstrlen, buffer, nob); in __proc_dobitmasks() 566 loff_t pos, void __user *buffer, int nob) in __proc_dump_kernel() argument 571 return cfs_trace_dump_debug_buffer_usrstr(buffer, nob); in __proc_dump_kernel() 582 loff_t pos, void __user *buffer, int nob) in __proc_daemon_file() argument 590 return cfs_trace_copyout_string(buffer, nob, in __proc_daemon_file() 594 return cfs_trace_daemon_command_usrstr(buffer, nob); in __proc_daemon_file() 605 loff_t pos, void __user *buffer, int nob) in __proc_debug_mb() argument 615 return cfs_trace_copyout_string(buffer, nob, tmpstr + pos, in __proc_debug_mb() [all …]
|
D | tracefile.h | 74 int cfs_trace_allocate_string_buffer(char **str, int nob); 75 void cfs_trace_free_string_buffer(char *str, int nob);
|
D | libcfs_string.c | 228 cfs_str2num_check(char *str, int nob, unsigned *num, in cfs_str2num_check() argument 238 for (; endp < str + nob; endp++) { in cfs_str2num_check()
|
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/socklnd/ |
D | socklnd_lib-linux.c | 81 int nob; in ksocknal_lib_send_iov() local 105 for (nob = i = 0; i < niov; i++) { in ksocknal_lib_send_iov() 107 nob += scratchiov[i].iov_len; in ksocknal_lib_send_iov() 111 nob < tx->tx_resid) in ksocknal_lib_send_iov() 114 rc = kernel_sendmsg(sock, &msg, scratchiov, niov, nob); in ksocknal_lib_send_iov() 125 int nob; in ksocknal_lib_send_kiov() local 169 for (nob = i = 0; i < niov; i++) { in ksocknal_lib_send_kiov() 172 nob += scratchiov[i].iov_len = kiov[i].kiov_len; in ksocknal_lib_send_kiov() 176 nob < tx->tx_resid) in ksocknal_lib_send_kiov() 179 rc = kernel_sendmsg(sock, &msg, (struct kvec *)scratchiov, niov, nob); in ksocknal_lib_send_kiov() [all …]
|
D | socklnd_cb.c | 114 int nob; in ksocknal_send_iov() local 125 nob = rc; in ksocknal_send_iov() 126 LASSERT (nob <= tx->tx_resid); in ksocknal_send_iov() 127 tx->tx_resid -= nob; in ksocknal_send_iov() 133 if (nob < (int) iov->iov_len) { in ksocknal_send_iov() 134 iov->iov_base = (void *)((char *)iov->iov_base + nob); in ksocknal_send_iov() 135 iov->iov_len -= nob; in ksocknal_send_iov() 139 nob -= iov->iov_len; in ksocknal_send_iov() 142 } while (nob != 0); in ksocknal_send_iov() 151 int nob; in ksocknal_send_kiov() local [all …]
|
D | socklnd_proto.c | 276 int nob; in ksocknal_match_tx() local 285 nob = offsetof(ksock_msg_t, ksm_u); in ksocknal_match_tx() 287 nob = tx->tx_lnetmsg->msg_len + in ksocknal_match_tx() 304 if (nob < *ksocknal_tunables.ksnd_min_bulk) in ksocknal_match_tx() 310 if (nob >= *ksocknal_tunables.ksnd_min_bulk) in ksocknal_match_tx() 320 int nob; in ksocknal_match_tx_v3() local 323 nob = offsetof(ksock_msg_t, ksm_u); in ksocknal_match_tx_v3() 325 nob = tx->tx_lnetmsg->msg_len + sizeof(ksock_msg_t); in ksocknal_match_tx_v3() 345 else if (nob < *ksocknal_tunables.ksnd_min_bulk) in ksocknal_match_tx_v3() 353 else if (nob >= *ksocknal_tunables.ksnd_min_bulk) in ksocknal_match_tx_v3()
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
D | uuid.c | 47 static inline __u32 consume(int nob, __u8 **ptr) in consume() argument 51 LASSERT(nob <= sizeof(value)); in consume() 53 for (value = 0; nob > 0; --nob) in consume()
|
D | dt_object.c | 652 int nob, const struct dt_it_ops *iops, in dt_index_page_build() argument 667 nob -= LIP_HDR_SIZE; in dt_index_page_build() 692 if (nob < size) { in dt_index_page_build() 724 nob -= size; in dt_index_page_build() 764 unsigned int pageidx, nob, nlupgs = 0; in dt_index_walk() local 770 nob = rdpg->rp_count; in dt_index_walk() 771 if (nob <= 0) in dt_index_walk() 805 for (pageidx = 0; rc == 0 && nob > 0; pageidx++) { in dt_index_walk() 813 for (i = 0; i < LU_PAGE_COUNT; i++, lp++, nob -= LU_PAGE_SIZE) { in dt_index_walk() 814 rc = filler(env, lp, min_t(int, nob, LU_PAGE_SIZE), in dt_index_walk()
|
D | cl_io.c | 573 void cl_io_rw_advance(const struct lu_env *env, struct cl_io *io, size_t nob) in cl_io_rw_advance() argument 578 nob == 0); in cl_io_rw_advance() 582 io->u.ci_rw.crw_pos += nob; in cl_io_rw_advance() 583 io->u.ci_rw.crw_count -= nob; in cl_io_rw_advance() 589 nob); in cl_io_rw_advance() 983 size_t nob; in cl_io_loop() local 988 nob = io->ci_nob; in cl_io_loop() 1007 cl_io_rw_advance(env, io, io->ci_nob - nob); in cl_io_loop()
|
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/ |
D | config.c | 372 int nob; in lnet_new_text_buf() local 375 nob = offsetof(struct lnet_text_buf_t, ltb_text[str_len + 1]); in lnet_new_text_buf() 376 if (nob > LNET_SINGLE_TEXTBUF_NOB) { in lnet_new_text_buf() 382 if (lnet_tbnob + nob > LNET_MAX_TEXTBUF_NOB) { in lnet_new_text_buf() 387 LIBCFS_ALLOC(ltb, nob); in lnet_new_text_buf() 391 ltb->ltb_size = nob; in lnet_new_text_buf() 393 lnet_tbnob += nob; in lnet_new_text_buf() 422 int nob; in lnet_str2tbs_sep() local 439 nob = (int)(sep - str); in lnet_str2tbs_sep() 440 if (nob > 0) { in lnet_str2tbs_sep() [all …]
|
D | lib-move.c | 163 unsigned int nob = 0; in lnet_iov_nob() local 166 nob += (iov++)->iov_len; in lnet_iov_nob() 168 return nob; in lnet_iov_nob() 175 unsigned int nob) in lnet_copy_iov2iov() argument 180 if (nob == 0) in lnet_copy_iov2iov() 206 this_nob = min(this_nob, nob); in lnet_copy_iov2iov() 210 nob -= this_nob; in lnet_copy_iov2iov() 227 } while (nob > 0); in lnet_copy_iov2iov() 282 unsigned int nob = 0; in lnet_kiov_nob() local 285 nob += (kiov++)->kiov_len; in lnet_kiov_nob() [all …]
|
D | router_proc.c | 113 loff_t pos, void __user *buffer, int nob) in __proc_lnet_stats() argument 152 rc = cfs_trace_copyout_string(buffer, nob, in __proc_lnet_stats() 596 loff_t pos, void __user *buffer, int nob) in __proc_lnet_buffers() argument 646 rc = cfs_trace_copyout_string(buffer, nob, in __proc_lnet_buffers() 816 loff_t pos, void __user *buffer, int nob) in __proc_lnet_portal_rotor() argument 848 rc = cfs_trace_copyout_string(buffer, nob, in __proc_lnet_portal_rotor() 854 rc = cfs_trace_copyin_string(buf, buf_len, buffer, nob); in __proc_lnet_portal_rotor()
|
D | api-ni.c | 1774 int nob; in lnet_ping() local 1879 nob = rc; in lnet_ping() 1880 LASSERT(nob >= 0 && nob <= infosz); in lnet_ping() 1884 if (nob < 8) { in lnet_ping() 1887 libcfs_id2str(id), nob); in lnet_ping() 1905 if (nob < offsetof(lnet_ping_info_t, pi_ni[0])) { in lnet_ping() 1907 nob, (int)offsetof(lnet_ping_info_t, pi_ni[0])); in lnet_ping() 1914 if (nob < offsetof(lnet_ping_info_t, pi_ni[n_ids])) { in lnet_ping() 1916 nob, (int)offsetof(lnet_ping_info_t, pi_ni[n_ids])); in lnet_ping()
|
/linux-4.1.27/drivers/staging/lustre/include/linux/lnet/ |
D | lib-lnet.h | 769 unsigned int soffset, unsigned int nob); 773 unsigned int kiovoffset, unsigned int nob); 777 unsigned int iovoffset, unsigned int nob); 781 unsigned int soffset, unsigned int nob); 786 unsigned int nob) in lnet_copy_iov2flat() argument 791 nsiov, siov, soffset, nob); in lnet_copy_iov2flat() 797 unsigned int soffset, unsigned int nob) in lnet_copy_kiov2flat() argument 802 nsiov, skiov, soffset, nob); in lnet_copy_kiov2flat() 807 int slen, void *src, unsigned int soffset, unsigned int nob) in lnet_copy_flat2iov() argument 812 1, &siov, soffset, nob); in lnet_copy_flat2iov() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd_cb.c | 457 kiblnd_rx_complete(kib_rx_t *rx, int status, int nob) in kiblnd_rx_complete() argument 479 LASSERT(nob >= 0); in kiblnd_rx_complete() 480 rx->rx_nob = nob; in kiblnd_rx_complete() 551 kiblnd_fmr_map_tx(kib_net_t *net, kib_tx_t *tx, kib_rdma_desc_t *rd, int nob) in kiblnd_fmr_map_tx() argument 589 rd->rd_frags[0].rf_nob = nob; in kiblnd_fmr_map_tx() 596 kiblnd_pmr_map_tx(kib_net_t *net, kib_tx_t *tx, kib_rdma_desc_t *rd, int nob) in kiblnd_pmr_map_tx() argument 626 rd->rd_frags[0].rf_nob = nob; in kiblnd_pmr_map_tx() 661 __u32 nob; in kiblnd_map_tx() local 673 for (i = 0, nob = 0; i < rd->rd_nfrags; i++) { in kiblnd_map_tx() 678 nob += rd->rd_frags[i].rf_nob; in kiblnd_map_tx() [all …]
|
D | o2iblnd.h | 867 kiblnd_rd_consume_frag(kib_rdma_desc_t *rd, int index, __u32 nob) in kiblnd_rd_consume_frag() argument 869 if (nob < rd->rd_frags[index].rf_nob) { in kiblnd_rd_consume_frag() 870 rd->rd_frags[index].rf_addr += nob; in kiblnd_rd_consume_frag() 871 rd->rd_frags[index].rf_nob -= nob; in kiblnd_rd_consume_frag() 1008 int nob, kib_rdma_desc_t *dstrd, __u64 dstcookie); 1024 int kiblnd_unpack_msg(kib_msg_t *msg, int nob);
|
D | o2iblnd.c | 56 static __u32 kiblnd_cksum(void *ptr, int nob) in kiblnd_cksum() argument 61 while (nob-- > 0) in kiblnd_cksum() 142 int nob; in kiblnd_unpack_rd() local 166 nob = offsetof(kib_msg_t, ibm_u) + in kiblnd_unpack_rd() 169 if (msg->ibm_nob < nob) { in kiblnd_unpack_rd() 171 kiblnd_msgtype2str(msg->ibm_type), msg->ibm_nob, nob); in kiblnd_unpack_rd() 210 int kiblnd_unpack_msg(kib_msg_t *msg, int nob) in kiblnd_unpack_msg() argument 219 if (nob < 6) { in kiblnd_unpack_msg() 220 CERROR("Short message: %d\n", nob); in kiblnd_unpack_msg() 240 if (nob < hdr_size) { in kiblnd_unpack_msg() [all …]
|
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/ |
D | libcfs.h | 104 int libcfs_sock_write(struct socket *sock, void *buffer, int nob, int timeout); 105 int libcfs_sock_read(struct socket *sock, void *buffer, int nob, int timeout);
|
D | libcfs_string.h | 83 int cfs_str2num_check(char *str, int nob, unsigned *num,
|
/linux-4.1.27/drivers/staging/lustre/lnet/selftest/ |
D | rpc.c | 91 srpc_add_bulk_page(srpc_bulk_t *bk, struct page *pg, int i, int nob) in srpc_add_bulk_page() argument 93 nob = min(nob, (int)PAGE_CACHE_SIZE); in srpc_add_bulk_page() 95 LASSERT(nob > 0); in srpc_add_bulk_page() 100 bk->bk_iovs[i].kiov_len = nob; in srpc_add_bulk_page() 101 return nob; in srpc_add_bulk_page() 146 int nob; in srpc_alloc_bulk() local 156 nob = srpc_add_bulk_page(bk, pg, i, bulk_len); in srpc_alloc_bulk() 157 bulk_len -= nob; in srpc_alloc_bulk()
|
D | conrpc.c | 821 int nob = 0; in lstcon_testrpc_prep() local 826 nob = (feats & LST_FEAT_BULK_LEN) == 0 ? in lstcon_testrpc_prep() 831 rc = lstcon_rpc_prep(nd, SRPC_SERVICE_TEST, feats, npg, nob, crpc); in lstcon_testrpc_prep() 851 LASSERT(nob > 0); in lstcon_testrpc_prep() 854 PAGE_CACHE_SIZE : min_t(int, nob, PAGE_CACHE_SIZE); in lstcon_testrpc_prep() 855 nob -= len; in lstcon_testrpc_prep()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_plain.c | 338 int i, nob; in plain_cli_unwrap_bulk() local 354 for (i = 0, nob = 0; i < desc->bd_iov_count; i++) { in plain_cli_unwrap_bulk() 355 if (desc->bd_iov[i].kiov_len + nob > desc->bd_nob_transferred) { in plain_cli_unwrap_bulk() 357 desc->bd_nob_transferred - nob; in plain_cli_unwrap_bulk() 359 nob += desc->bd_iov[i].kiov_len; in plain_cli_unwrap_bulk()
|
D | sec.c | 2232 int nob) in sptlrpc_cli_unwrap_bulk_read() argument
|
/linux-4.1.27/drivers/mmc/host/ |
D | mxcmmc.c | 303 unsigned int nob = data->blocks; in mxcmci_setup_data() local 305 unsigned int datasize = nob * blksz; in mxcmci_setup_data() 311 nob = 0xffff; in mxcmci_setup_data() 316 mxcmci_writew(host, nob, MMC_REG_NOB); in mxcmci_setup_data()
|
D | pxamci.c | 178 unsigned int nob = data->blocks; in pxamci_setup_data() local 188 nob = 0xffff; in pxamci_setup_data() 190 writel(nob, host->base + MMC_NOB); in pxamci_setup_data()
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdecho/ |
D | echo_client.c | 1272 int nob, i; in echo_copyout_lsm() local 1274 nob = offsetof(struct lov_stripe_md, lsm_oinfo[lsm->lsm_stripe_count]); in echo_copyout_lsm() 1275 if (nob > ulsm_nob) in echo_copyout_lsm() 1808 int mode, u64 offset, u64 nob) in echo_client_enqueue() argument 1823 (nob & (~CFS_PAGE_MASK)) != 0) in echo_client_enqueue() 1830 end = (nob == 0) ? ((u64) -1) : (offset + nob - 1); in echo_client_enqueue()
|
/linux-4.1.27/drivers/staging/lustre/lustre/osc/ |
D | osc_request.c | 1183 static u32 osc_checksum_bulk(int nob, u32 pg_count, in osc_checksum_bulk() argument 1203 while (nob > 0 && pg_count > 0) { in osc_checksum_bulk() 1204 int count = pga[i]->count > nob ? nob : pga[i]->count; in osc_checksum_bulk() 1212 memcpy(ptr + off, "bad1", min(4, nob)); in osc_checksum_bulk() 1225 nob -= pga[i]->count; in osc_checksum_bulk() 1449 __u32 client_cksum, __u32 server_cksum, int nob, in check_write_checksum() argument 1464 new_cksum = osc_checksum_bulk(nob, page_count, pga, OST_WRITE, in check_write_checksum()
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
D | lclient.h | 348 size_t nob);
|
D | lustre_sec.h | 1114 int nob);
|
D | cl_object.h | 2100 size_t nob); 3070 size_t nob);
|
D | dt_object.h | 927 union lu_page *lp, int nob,
|
/linux-4.1.27/drivers/staging/lustre/lustre/lclient/ |
D | lcommon_cl.c | 758 size_t nob) in ccc_io_advance() argument 769 iov_iter_reexpand(cio->cui_iter, cio->cui_tot_count -= nob); in ccc_io_advance()
|