/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() 163 int nob; in lnet_ipif_enumerate() local 215 nob = strnlen(ifr[i].ifr_name, IFNAMSIZ); in lnet_ipif_enumerate() 216 if (nob == IFNAMSIZ) { in lnet_ipif_enumerate() 219 nob, ifr[i].ifr_name, IFNAMSIZ); in lnet_ipif_enumerate() 230 memcpy(names[i], ifr[i].ifr_name, nob); in lnet_ipif_enumerate() 231 names[i][nob] = 0; in lnet_ipif_enumerate() 262 lnet_sock_write(struct socket *sock, void *buffer, int nob, int timeout) in lnet_sock_write() argument [all …]
|
D | config.c | 410 int nob; in lnet_new_text_buf() local 413 nob = offsetof(struct lnet_text_buf, ltb_text[str_len + 1]); in lnet_new_text_buf() 414 if (nob > LNET_SINGLE_TEXTBUF_NOB) { in lnet_new_text_buf() 420 if (lnet_tbnob + nob > LNET_MAX_TEXTBUF_NOB) { in lnet_new_text_buf() 425 LIBCFS_ALLOC(ltb, nob); in lnet_new_text_buf() 429 ltb->ltb_size = nob; in lnet_new_text_buf() 431 lnet_tbnob += nob; in lnet_new_text_buf() 460 int nob; in lnet_str2tbs_sep() local 477 nob = (int)(sep - str); in lnet_str2tbs_sep() 478 if (nob > 0) { in lnet_str2tbs_sep() [all …]
|
D | nidstrings.c | 768 libcfs_lo_str2addr(const char *str, int nob, __u32 *addr) in libcfs_lo_str2addr() argument 791 libcfs_ip_str2addr(const char *str, int nob, __u32 *addr) in libcfs_ip_str2addr() argument 797 int n = nob; /* XscanfX */ in libcfs_ip_str2addr() 801 n == nob && in libcfs_ip_str2addr() 894 libcfs_num_str2addr(const char *str, int nob, __u32 *addr) in libcfs_num_str2addr() argument 898 n = nob; in libcfs_num_str2addr() 899 if (sscanf(str, "0x%x%n", addr, &n) >= 1 && n == nob) in libcfs_num_str2addr() 902 n = nob; in libcfs_num_str2addr() 903 if (sscanf(str, "0X%x%n", addr, &n) >= 1 && n == nob) in libcfs_num_str2addr() 906 n = nob; in libcfs_num_str2addr() [all …]
|
D | lib-move.c | 160 unsigned int nob = 0; in lnet_iov_nob() local 164 nob += (iov++)->iov_len; in lnet_iov_nob() 166 return nob; in lnet_iov_nob() 173 unsigned int soffset, unsigned int nob) in lnet_copy_iov2iter() argument 179 if (!nob) in lnet_copy_iov2iter() 198 if (copy > nob) in lnet_copy_iov2iter() 199 copy = nob; in lnet_copy_iov2iter() 203 nob -= n; in lnet_copy_iov2iter() 209 } while (nob > 0); in lnet_copy_iov2iter() 216 unsigned int soffset, unsigned int nob) in lnet_copy_kiov2iter() argument [all …]
|
D | router_proc.c | 78 loff_t pos, void __user *buffer, int nob) in __proc_lnet_stats() argument 117 rc = cfs_trace_copyout_string(buffer, nob, in __proc_lnet_stats() 567 loff_t pos, void __user *buffer, int nob) in __proc_lnet_buffers() argument 617 rc = cfs_trace_copyout_string(buffer, nob, in __proc_lnet_buffers() 789 loff_t pos, void __user *buffer, int nob) in __proc_lnet_portal_rotor() argument 821 rc = cfs_trace_copyout_string(buffer, nob, in __proc_lnet_portal_rotor() 827 rc = cfs_trace_copyin_string(buf, buf_len, buffer, nob); in __proc_lnet_portal_rotor()
|
D | api-ni.c | 2146 int nob; in lnet_ping() local 2253 nob = rc; in lnet_ping() 2254 LASSERT(nob >= 0 && nob <= infosz); in lnet_ping() 2258 if (nob < 8) { in lnet_ping() 2261 libcfs_id2str(id), nob); in lnet_ping() 2279 if (nob < offsetof(struct lnet_ping_info, pi_ni[0])) { in lnet_ping() 2281 nob, (int)offsetof(struct lnet_ping_info, pi_ni[0])); in lnet_ping() 2288 if (nob < offsetof(struct lnet_ping_info, pi_ni[n_ids])) { in lnet_ping() 2290 nob, (int)offsetof(struct lnet_ping_info, pi_ni[n_ids])); in lnet_ping()
|
/drivers/staging/lustre/lnet/klnds/socklnd/ |
D | socklnd_lib.c | 78 int nob, i; in ksocknal_lib_send_iov() local 86 for (nob = i = 0; i < tx->tx_niov; i++) in ksocknal_lib_send_iov() 87 nob += tx->tx_iov[i].iov_len; in ksocknal_lib_send_iov() 90 nob < tx->tx_resid) in ksocknal_lib_send_iov() 94 tx->tx_iov, tx->tx_niov, nob); in ksocknal_lib_send_iov() 104 int nob; in ksocknal_lib_send_kiov() local 134 for (nob = i = 0; i < tx->tx_nkiov; i++) in ksocknal_lib_send_kiov() 135 nob += kiov[i].bv_len; in ksocknal_lib_send_kiov() 138 nob < tx->tx_resid) in ksocknal_lib_send_kiov() 142 kiov, tx->tx_nkiov, nob); in ksocknal_lib_send_kiov() [all …]
|
D | socklnd_cb.c | 112 int nob; in ksocknal_send_iov() local 123 nob = rc; in ksocknal_send_iov() 124 LASSERT(nob <= tx->tx_resid); in ksocknal_send_iov() 125 tx->tx_resid -= nob; in ksocknal_send_iov() 131 if (nob < (int)iov->iov_len) { in ksocknal_send_iov() 132 iov->iov_base = (void *)((char *)iov->iov_base + nob); in ksocknal_send_iov() 133 iov->iov_len -= nob; in ksocknal_send_iov() 137 nob -= iov->iov_len; in ksocknal_send_iov() 140 } while (nob); in ksocknal_send_iov() 149 int nob; in ksocknal_send_kiov() local [all …]
|
D | socklnd_proto.c | 281 int nob; in ksocknal_match_tx() local 290 nob = offsetof(struct ksock_msg, ksm_u); in ksocknal_match_tx() 292 nob = tx->tx_lnetmsg->msg_len + in ksocknal_match_tx() 309 if (nob < *ksocknal_tunables.ksnd_min_bulk) in ksocknal_match_tx() 315 if (nob >= *ksocknal_tunables.ksnd_min_bulk) in ksocknal_match_tx() 325 int nob; in ksocknal_match_tx_v3() local 328 nob = offsetof(struct ksock_msg, ksm_u); in ksocknal_match_tx_v3() 330 nob = tx->tx_lnetmsg->msg_len + sizeof(struct ksock_msg); in ksocknal_match_tx_v3() 350 else if (nob < *ksocknal_tunables.ksnd_min_bulk) in ksocknal_match_tx_v3() 358 else if (nob >= *ksocknal_tunables.ksnd_min_bulk) in ksocknal_match_tx_v3()
|
/drivers/staging/lustre/lnet/libcfs/ |
D | module.c | 183 loff_t pos, void __user *buffer, int nob) in __proc_dobitmasks() argument 203 rc = cfs_trace_copyout_string(buffer, nob, in __proc_dobitmasks() 207 rc = cfs_trace_copyin_string(tmpstr, tmpstrlen, buffer, nob); in __proc_dobitmasks() 231 loff_t pos, void __user *buffer, int nob) in __proc_dump_kernel() argument 236 return cfs_trace_dump_debug_buffer_usrstr(buffer, nob); in __proc_dump_kernel() 247 loff_t pos, void __user *buffer, int nob) in __proc_daemon_file() argument 255 return cfs_trace_copyout_string(buffer, nob, in __proc_daemon_file() 259 return cfs_trace_daemon_command_usrstr(buffer, nob); in __proc_daemon_file() 292 loff_t pos, void __user *buffer, int nob) in __proc_cpt_table() argument 325 rc = cfs_trace_copyout_string(buffer, nob, buf + pos, NULL); in __proc_cpt_table()
|
D | tracefile.c | 777 int nob; in cfs_trace_copyin_string() local 786 nob = strnlen(knl_buffer, usr_buffer_nob); in cfs_trace_copyin_string() 787 while (nob-- >= 0) /* strip trailing whitespace */ in cfs_trace_copyin_string() 788 if (!isspace(knl_buffer[nob])) in cfs_trace_copyin_string() 791 if (nob < 0) /* empty string */ in cfs_trace_copyin_string() 794 if (nob == knl_buffer_nob) /* no space to terminate */ in cfs_trace_copyin_string() 797 knl_buffer[nob + 1] = 0; /* terminate */ in cfs_trace_copyin_string() 809 int nob = strlen(knl_buffer); in cfs_trace_copyout_string() local 811 if (nob > usr_buffer_nob) in cfs_trace_copyout_string() 812 nob = usr_buffer_nob; in cfs_trace_copyout_string() [all …]
|
D | libcfs_string.c | 225 cfs_str2num_check(char *str, int nob, unsigned int *num, in cfs_str2num_check() argument 244 for (endp = str; endp < str + nob; endp++) { in cfs_str2num_check()
|
D | tracefile.h | 73 int cfs_trace_allocate_string_buffer(char **str, int nob);
|
/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd_cb.c | 467 kiblnd_rx_complete(struct kib_rx *rx, int status, int nob) in kiblnd_rx_complete() argument 489 LASSERT(nob >= 0); in kiblnd_rx_complete() 490 rx->rx_nob = nob; in kiblnd_rx_complete() 561 kiblnd_fmr_map_tx(struct kib_net *net, struct kib_tx *tx, struct kib_rdma_desc *rd, __u32 nob) in kiblnd_fmr_map_tx() argument 575 rc = kiblnd_fmr_pool_map(fps, tx, rd, nob, 0, &tx->fmr); in kiblnd_fmr_map_tx() 577 CERROR("Can't map %u bytes: %d\n", nob, rc); in kiblnd_fmr_map_tx() 587 rd->rd_frags[0].rf_nob = nob; in kiblnd_fmr_map_tx() 610 __u32 nob; in kiblnd_map_tx() local 623 for (i = 0, nob = 0; i < rd->rd_nfrags; i++) { in kiblnd_map_tx() 628 nob += rd->rd_frags[i].rf_nob; in kiblnd_map_tx() [all …]
|
D | o2iblnd.h | 900 kiblnd_rd_consume_frag(struct kib_rdma_desc *rd, int index, __u32 nob) in kiblnd_rd_consume_frag() argument 902 if (nob < rd->rd_frags[index].rf_nob) { in kiblnd_rd_consume_frag() 903 rd->rd_frags[index].rf_addr += nob; in kiblnd_rd_consume_frag() 904 rd->rd_frags[index].rf_nob -= nob; in kiblnd_rd_consume_frag() 985 struct kib_rdma_desc *rd, __u32 nob, __u64 iov, 1032 int kiblnd_unpack_msg(struct kib_msg *msg, int nob);
|
D | o2iblnd.c | 45 static __u32 kiblnd_cksum(void *ptr, int nob) in kiblnd_cksum() argument 50 while (nob-- > 0) in kiblnd_cksum() 132 int nob; in kiblnd_unpack_rd() local 150 nob = offsetof(struct kib_msg, ibm_u) + in kiblnd_unpack_rd() 153 if (msg->ibm_nob < nob) { in kiblnd_unpack_rd() 155 kiblnd_msgtype2str(msg->ibm_type), msg->ibm_nob, nob); in kiblnd_unpack_rd() 203 int kiblnd_unpack_msg(struct kib_msg *msg, int nob) in kiblnd_unpack_msg() argument 212 if (nob < 6) { in kiblnd_unpack_msg() 213 CERROR("Short message: %d\n", nob); in kiblnd_unpack_msg() 233 if (nob < hdr_size) { in kiblnd_unpack_msg() [all …]
|
/drivers/staging/lustre/lustre/obdclass/ |
D | cl_io.c | 474 size_t nob) in cl_io_rw_advance() argument 479 nob == 0); in cl_io_rw_advance() 483 io->u.ci_rw.crw_pos += nob; in cl_io_rw_advance() 484 io->u.ci_rw.crw_count -= nob; in cl_io_rw_advance() 490 nob); in cl_io_rw_advance() 744 size_t nob; in cl_io_loop() local 749 nob = io->ci_nob; in cl_io_loop() 768 cl_io_rw_advance(env, io, io->ci_nob - nob); in cl_io_loop()
|
/drivers/staging/lustre/include/linux/lnet/ |
D | lib-lnet.h | 579 unsigned int nob); 625 unsigned int soffset, unsigned int nob); 628 unsigned int kiovoffset, unsigned int nob); 658 int lnet_sock_write(struct socket *sock, void *buffer, int nob, int timeout); 659 int lnet_sock_read(struct socket *sock, void *buffer, int nob, int timeout);
|
/drivers/staging/lustre/lnet/selftest/ |
D | rpc.c | 88 int nob) in srpc_add_bulk_page() argument 91 LASSERT(nob > 0 && nob <= PAGE_SIZE); in srpc_add_bulk_page() 95 bk->bk_iovs[i].bv_len = nob; in srpc_add_bulk_page() 96 return nob; in srpc_add_bulk_page() 141 int nob; in srpc_alloc_bulk() local 151 nob = min_t(unsigned int, bulk_off + bulk_len, PAGE_SIZE) - in srpc_alloc_bulk() 153 srpc_add_bulk_page(bk, pg, i, bulk_off, nob); in srpc_alloc_bulk() 154 bulk_len -= nob; in srpc_alloc_bulk()
|
D | conrpc.c | 817 int nob = 0; in lstcon_testrpc_prep() local 822 nob = !(feats & LST_FEAT_BULK_LEN) ? in lstcon_testrpc_prep() 827 rc = lstcon_rpc_prep(nd, SRPC_SERVICE_TEST, feats, npg, nob, crpc); in lstcon_testrpc_prep() 846 LASSERT(nob > 0); in lstcon_testrpc_prep() 850 min_t(int, nob, PAGE_SIZE); in lstcon_testrpc_prep() 851 nob -= len; in lstcon_testrpc_prep()
|
/drivers/staging/lustre/include/linux/libcfs/ |
D | libcfs_string.h | 77 int cfs_str2num_check(char *str, int nob, unsigned int *num,
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_plain.c | 340 int i, nob; in plain_cli_unwrap_bulk() local 356 for (i = 0, nob = 0; i < desc->bd_iov_count; i++) { in plain_cli_unwrap_bulk() 359 if (bv_desc.bv_len + nob > desc->bd_nob_transferred) in plain_cli_unwrap_bulk() 360 bv_desc.bv_len = desc->bd_nob_transferred - nob; in plain_cli_unwrap_bulk() 361 nob += bv_desc.bv_len; in plain_cli_unwrap_bulk()
|
/drivers/staging/lustre/include/uapi/linux/lnet/ |
D | nidstr.h | 108 int (*nf_str2addr)(const char *str, int nob, __u32 *addr);
|
/drivers/staging/lustre/lustre/osc/ |
D | osc_request.c | 929 static u32 osc_checksum_bulk(int nob, u32 pg_count, in osc_checksum_bulk() argument 948 while (nob > 0 && pg_count > 0) { in osc_checksum_bulk() 949 unsigned int count = pga[i]->count > nob ? nob : pga[i]->count; in osc_checksum_bulk() 959 memcpy(ptr + off, "bad1", min_t(typeof(nob), 4, nob)); in osc_checksum_bulk() 972 nob -= pga[i]->count; in osc_checksum_bulk() 1200 __u32 client_cksum, __u32 server_cksum, int nob, in check_write_checksum() argument 1215 new_cksum = osc_checksum_bulk(nob, page_count, pga, OST_WRITE, in check_write_checksum()
|
/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() 313 mxcmci_writew(host, nob, MMC_REG_NOB); in mxcmci_setup_data()
|