/linux-4.4.14/drivers/staging/lustre/lnet/lnet/ |
D | lib-socket.c | 90 int nob; in lnet_ipif_query() local 94 nob = strnlen(name, IFNAMSIZ); in lnet_ipif_query() 95 if (nob == IFNAMSIZ) { in lnet_ipif_query() 154 int nob; in lnet_ipif_enumerate() local 206 nob = strnlen(ifr[i].ifr_name, IFNAMSIZ); in lnet_ipif_enumerate() 207 if (nob == IFNAMSIZ) { in lnet_ipif_enumerate() 210 nob, ifr[i].ifr_name, IFNAMSIZ); in lnet_ipif_enumerate() 221 memcpy(names[i], ifr[i].ifr_name, nob); in lnet_ipif_enumerate() 222 names[i][nob] = 0; in lnet_ipif_enumerate() 253 lnet_sock_write(struct socket *sock, void *buffer, int nob, int timeout) in lnet_sock_write() argument [all …]
|
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 | nidstrings.c | 773 libcfs_lo_str2addr(const char *str, int nob, __u32 *addr) in libcfs_lo_str2addr() argument 794 libcfs_ip_str2addr(const char *str, int nob, __u32 *addr) in libcfs_ip_str2addr() argument 800 int n = nob; /* XscanfX */ in libcfs_ip_str2addr() 804 n == nob && in libcfs_ip_str2addr() 897 libcfs_num_str2addr(const char *str, int nob, __u32 *addr) in libcfs_num_str2addr() argument 901 n = nob; in libcfs_num_str2addr() 902 if (sscanf(str, "0x%x%n", addr, &n) >= 1 && n == nob) in libcfs_num_str2addr() 905 n = nob; in libcfs_num_str2addr() 906 if (sscanf(str, "0X%x%n", addr, &n) >= 1 && n == nob) in libcfs_num_str2addr() 909 n = nob; in libcfs_num_str2addr() [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() 281 unsigned int nob = 0; in lnet_kiov_nob() local 284 nob += (kiov++)->kiov_len; in lnet_kiov_nob() [all …]
|
D | router_proc.c | 98 loff_t pos, void __user *buffer, int nob) in __proc_lnet_stats() argument 137 rc = cfs_trace_copyout_string(buffer, nob, in __proc_lnet_stats() 581 loff_t pos, void __user *buffer, int nob) in __proc_lnet_buffers() argument 631 rc = cfs_trace_copyout_string(buffer, nob, in __proc_lnet_buffers() 801 loff_t pos, void __user *buffer, int nob) in __proc_lnet_portal_rotor() argument 833 rc = cfs_trace_copyout_string(buffer, nob, in __proc_lnet_portal_rotor() 839 rc = cfs_trace_copyin_string(buf, buf_len, buffer, nob); in __proc_lnet_portal_rotor()
|
D | api-ni.c | 1699 int nob; in lnet_ping() local 1804 nob = rc; in lnet_ping() 1805 LASSERT(nob >= 0 && nob <= infosz); in lnet_ping() 1809 if (nob < 8) { in lnet_ping() 1812 libcfs_id2str(id), nob); in lnet_ping() 1830 if (nob < offsetof(lnet_ping_info_t, pi_ni[0])) { in lnet_ping() 1832 nob, (int)offsetof(lnet_ping_info_t, pi_ni[0])); in lnet_ping() 1839 if (nob < offsetof(lnet_ping_info_t, pi_ni[n_ids])) { in lnet_ping() 1841 nob, (int)offsetof(lnet_ping_info_t, pi_ni[n_ids])); in lnet_ping()
|
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/socklnd/ |
D | socklnd_lib.c | 79 int nob; in ksocknal_lib_send_iov() local 103 for (nob = i = 0; i < niov; i++) { in ksocknal_lib_send_iov() 105 nob += scratchiov[i].iov_len; in ksocknal_lib_send_iov() 109 nob < tx->tx_resid) in ksocknal_lib_send_iov() 112 rc = kernel_sendmsg(sock, &msg, scratchiov, niov, nob); in ksocknal_lib_send_iov() 123 int nob; in ksocknal_lib_send_kiov() local 166 for (nob = i = 0; i < niov; i++) { in ksocknal_lib_send_kiov() 169 nob += scratchiov[i].iov_len = kiov[i].kiov_len; in ksocknal_lib_send_kiov() 173 nob < tx->tx_resid) in ksocknal_lib_send_kiov() 176 rc = kernel_sendmsg(sock, &msg, (struct kvec *)scratchiov, niov, nob); in ksocknal_lib_send_kiov() [all …]
|
D | socklnd_cb.c | 113 int nob; in ksocknal_send_iov() local 124 nob = rc; in ksocknal_send_iov() 125 LASSERT (nob <= tx->tx_resid); in ksocknal_send_iov() 126 tx->tx_resid -= nob; in ksocknal_send_iov() 132 if (nob < (int) iov->iov_len) { in ksocknal_send_iov() 133 iov->iov_base = (void *)((char *)iov->iov_base + nob); in ksocknal_send_iov() 134 iov->iov_len -= nob; in ksocknal_send_iov() 138 nob -= iov->iov_len; in ksocknal_send_iov() 141 } while (nob != 0); in ksocknal_send_iov() 150 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.4.14/drivers/staging/lustre/include/linux/lnet/ |
D | lib-lnet.h | 560 unsigned int soffset, unsigned int nob); 564 unsigned int kiovoffset, unsigned int nob); 568 unsigned int iovoffset, unsigned int nob); 572 unsigned int soffset, unsigned int nob); 577 unsigned int nob) in lnet_copy_iov2flat() argument 582 nsiov, siov, soffset, nob); in lnet_copy_iov2flat() 588 unsigned int soffset, unsigned int nob) in lnet_copy_kiov2flat() argument 593 nsiov, skiov, soffset, nob); in lnet_copy_kiov2flat() 598 int slen, void *src, unsigned int soffset, unsigned int nob) in lnet_copy_flat2iov() argument 603 1, &siov, soffset, nob); in lnet_copy_flat2iov() [all …]
|
D | nidstr.h | 103 int (*nf_str2addr)(const char *str, int nob, __u32 *addr);
|
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/ |
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 | 352 loff_t pos, void __user *buffer, int nob) in __proc_dobitmasks() argument 372 rc = cfs_trace_copyout_string(buffer, nob, in __proc_dobitmasks() 376 rc = cfs_trace_copyin_string(tmpstr, tmpstrlen, buffer, nob); in __proc_dobitmasks() 400 loff_t pos, void __user *buffer, int nob) in __proc_dump_kernel() argument 405 return cfs_trace_dump_debug_buffer_usrstr(buffer, nob); in __proc_dump_kernel() 416 loff_t pos, void __user *buffer, int nob) in __proc_daemon_file() argument 424 return cfs_trace_copyout_string(buffer, nob, in __proc_daemon_file() 428 return cfs_trace_daemon_command_usrstr(buffer, nob); in __proc_daemon_file() 461 loff_t pos, void __user *buffer, int nob) in __proc_cpt_table() argument 494 rc = cfs_trace_copyout_string(buffer, nob, buf + pos, NULL); in __proc_cpt_table()
|
D | tracefile.h | 72 int cfs_trace_allocate_string_buffer(char **str, int nob); 73 void cfs_trace_free_string_buffer(char *str, int nob);
|
D | libcfs_string.c | 229 cfs_str2num_check(char *str, int nob, unsigned *num, in cfs_str2num_check() argument 239 for (; endp < str + nob; endp++) { in cfs_str2num_check()
|
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd_cb.c | 463 kiblnd_rx_complete(kib_rx_t *rx, int status, int nob) in kiblnd_rx_complete() argument 485 LASSERT(nob >= 0); in kiblnd_rx_complete() 486 rx->rx_nob = nob; in kiblnd_rx_complete() 557 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 595 rd->rd_frags[0].rf_nob = nob; in kiblnd_fmr_map_tx() 625 __u32 nob; in kiblnd_map_tx() local 636 for (i = 0, nob = 0; i < rd->rd_nfrags; i++) { in kiblnd_map_tx() 641 nob += rd->rd_frags[i].rf_nob; in kiblnd_map_tx() 653 return kiblnd_fmr_map_tx(net, tx, rd, nob); in kiblnd_map_tx() 660 unsigned int niov, struct kvec *iov, int offset, int nob) in kiblnd_setup_rd_iov() argument [all …]
|
D | o2iblnd.h | 830 kiblnd_rd_consume_frag(kib_rdma_desc_t *rd, int index, __u32 nob) in kiblnd_rd_consume_frag() argument 832 if (nob < rd->rd_frags[index].rf_nob) { in kiblnd_rd_consume_frag() 833 rd->rd_frags[index].rf_addr += nob; in kiblnd_rd_consume_frag() 834 rd->rd_frags[index].rf_nob -= nob; in kiblnd_rd_consume_frag() 962 int nob, kib_rdma_desc_t *dstrd, __u64 dstcookie); 978 int kiblnd_unpack_msg(kib_msg_t *msg, int nob);
|
D | o2iblnd.c | 57 static __u32 kiblnd_cksum(void *ptr, int nob) in kiblnd_cksum() argument 62 while (nob-- > 0) in kiblnd_cksum() 143 int nob; in kiblnd_unpack_rd() local 167 nob = offsetof(kib_msg_t, ibm_u) + in kiblnd_unpack_rd() 170 if (msg->ibm_nob < nob) { in kiblnd_unpack_rd() 172 kiblnd_msgtype2str(msg->ibm_type), msg->ibm_nob, nob); in kiblnd_unpack_rd() 211 int kiblnd_unpack_msg(kib_msg_t *msg, int nob) in kiblnd_unpack_msg() argument 220 if (nob < 6) { in kiblnd_unpack_msg() 221 CERROR("Short message: %d\n", nob); in kiblnd_unpack_msg() 241 if (nob < hdr_size) { in kiblnd_unpack_msg() [all …]
|
/linux-4.4.14/drivers/staging/lustre/include/linux/libcfs/ |
D | libcfs_string.h | 83 int cfs_str2num_check(char *str, int nob, unsigned *num,
|
/linux-4.4.14/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_t(int, nob, 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() 853 LASSERT(nob > 0); in lstcon_testrpc_prep() 857 min_t(int, nob, PAGE_CACHE_SIZE); in lstcon_testrpc_prep() 858 nob -= len; in lstcon_testrpc_prep()
|
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/ |
D | cl_io.c | 574 size_t nob) in cl_io_rw_advance() argument 579 nob == 0); in cl_io_rw_advance() 583 io->u.ci_rw.crw_pos += nob; in cl_io_rw_advance() 584 io->u.ci_rw.crw_count -= nob; in cl_io_rw_advance() 590 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.4.14/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 | 2112 int nob) in sptlrpc_cli_unwrap_bulk_read() argument
|
/linux-4.4.14/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 | 187 unsigned int nob = data->blocks; in pxamci_setup_data() local 195 nob = 0xffff; in pxamci_setup_data() 197 writel(nob, host->base + MMC_NOB); in pxamci_setup_data()
|
/linux-4.4.14/drivers/staging/lustre/lustre/obdecho/ |
D | echo_client.c | 1274 int nob, i; in echo_copyout_lsm() local 1276 nob = offsetof(struct lov_stripe_md, lsm_oinfo[lsm->lsm_stripe_count]); in echo_copyout_lsm() 1277 if (nob > ulsm_nob) in echo_copyout_lsm() 1807 int mode, u64 offset, u64 nob) in echo_client_enqueue() argument 1822 (nob & (~CFS_PAGE_MASK)) != 0) in echo_client_enqueue() 1829 end = (nob == 0) ? ((u64) -1) : (offset + nob - 1); in echo_client_enqueue()
|
/linux-4.4.14/drivers/staging/lustre/lustre/osc/ |
D | osc_request.c | 1152 static u32 osc_checksum_bulk(int nob, u32 pg_count, in osc_checksum_bulk() argument 1172 while (nob > 0 && pg_count > 0) { in osc_checksum_bulk() 1173 int count = pga[i]->count > nob ? nob : pga[i]->count; in osc_checksum_bulk() 1182 memcpy(ptr + off, "bad1", min(4, nob)); in osc_checksum_bulk() 1195 nob -= pga[i]->count; in osc_checksum_bulk() 1415 __u32 client_cksum, __u32 server_cksum, int nob, in check_write_checksum() argument 1430 new_cksum = osc_checksum_bulk(nob, page_count, pga, OST_WRITE, in check_write_checksum()
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/ |
D | lclient.h | 324 size_t nob);
|
D | lustre_sec.h | 1063 int nob);
|
D | cl_object.h | 2100 size_t nob);
|
/linux-4.4.14/drivers/staging/lustre/lustre/lclient/ |
D | lcommon_cl.c | 687 size_t nob) in ccc_io_advance() argument 698 iov_iter_reexpand(cio->cui_iter, cio->cui_tot_count -= nob); in ccc_io_advance()
|