/linux-4.1.27/arch/x86/kernel/cpu/ |
H A D | perf_event_intel_bts.c | 81 int pg, nbuf, pad; bts_buffer_setup_aux() local 84 for (pg = 0, nbuf = 0; pg < nr_pages;) { bts_buffer_setup_aux() 89 nbuf++; bts_buffer_setup_aux() 95 if (overwrite && nbuf > 1) bts_buffer_setup_aux() 98 buf = kzalloc_node(offsetof(struct bts_buffer, buf[nbuf]), GFP_KERNEL, node); bts_buffer_setup_aux() 103 buf->nr_bufs = nbuf; bts_buffer_setup_aux() 108 for (pg = 0, nbuf = 0, offset = 0, pad = 0; nbuf < buf->nr_bufs; nbuf++) { bts_buffer_setup_aux() 113 buf->buf[nbuf].page = page; bts_buffer_setup_aux() 114 buf->buf[nbuf].offset = offset; bts_buffer_setup_aux() 115 buf->buf[nbuf].displacement = (pad ? BTS_RECORD_SIZE - pad : 0); bts_buffer_setup_aux() 116 buf->buf[nbuf].size = buf_size(page) - buf->buf[nbuf].displacement; bts_buffer_setup_aux() 117 pad = buf->buf[nbuf].size % BTS_RECORD_SIZE; bts_buffer_setup_aux() 118 buf->buf[nbuf].size -= pad; bts_buffer_setup_aux()
|
/linux-4.1.27/fs/exportfs/ |
H A D | expfs.c | 120 struct dentry *dentry, char *nbuf) reconnect_one() 140 err = exportfs_get_name(mnt, parent, nbuf, dentry); reconnect_one() 145 dprintk("%s: found name: %s\n", __func__, nbuf); reconnect_one() 147 tmp = lookup_one_len(nbuf, parent, strlen(nbuf)); reconnect_one() 205 reconnect_path(struct vfsmount *mnt, struct dentry *target_dir, char *nbuf) reconnect_path() argument 215 parent = reconnect_one(mnt, dentry, nbuf); reconnect_path() 418 char nbuf[NAME_MAX+1]; exportfs_decode_fh() local 442 err = reconnect_path(mnt, result, nbuf); exportfs_decode_fh() 493 err = reconnect_path(mnt, target_dir, nbuf); exportfs_decode_fh() 504 err = exportfs_get_name(mnt, target_dir, nbuf, result); exportfs_decode_fh() 507 nresult = lookup_one_len(nbuf, target_dir, exportfs_decode_fh() 508 strlen(nbuf)); exportfs_decode_fh() 119 reconnect_one(struct vfsmount *mnt, struct dentry *dentry, char *nbuf) reconnect_one() argument
|
/linux-4.1.27/fs/gfs2/ |
H A D | trans.c | 91 s64 nbuf; gfs2_trans_end() local 106 nbuf = tr->tr_num_buf_new + tr->tr_num_databuf_new; gfs2_trans_end() 107 nbuf -= tr->tr_num_buf_rm; gfs2_trans_end() 108 nbuf -= tr->tr_num_databuf_rm; gfs2_trans_end() 110 if (gfs2_assert_withdraw(sdp, (nbuf <= tr->tr_blocks) && gfs2_trans_end()
|
H A D | lops.c | 497 unsigned int nbuf; buf_lo_before_commit() local 500 nbuf = tr->tr_num_buf_new - tr->tr_num_buf_rm; buf_lo_before_commit() 501 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_buf, 0); buf_lo_before_commit() 760 unsigned int nbuf; databuf_lo_before_commit() local 763 nbuf = tr->tr_num_databuf_new - tr->tr_num_databuf_rm; databuf_lo_before_commit() 764 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_databuf, 1); databuf_lo_before_commit()
|
/linux-4.1.27/arch/sparc/prom/ |
H A D | tree_32.c | 231 char nbuf[128]; prom_finddevice() local 241 for (d = nbuf; *s != 0 && *s != '@' && *s != '/';) prom_finddevice() 245 node = prom_searchsiblings(node, nbuf); prom_finddevice() 266 node2 = prom_searchsiblings(prom_getsibling(node2), nbuf); prom_finddevice()
|
/linux-4.1.27/drivers/mtd/nand/ |
H A D | cafe_nand.c | 587 struct nand_buffers *nbuf; cafe_nand_probe() local 713 cafe->nand.buffers = nbuf = (void *)cafe->dmabuf + 2112; cafe_nand_probe() 727 nbuf->ecccalc = NULL; cafe_nand_probe() 728 nbuf->ecccode = NULL; cafe_nand_probe() 729 nbuf->databuf = (uint8_t *)(nbuf + 1); cafe_nand_probe()
|
H A D | nand_base.c | 3908 struct nand_buffers *nbuf; nand_scan_tail() local 3915 nbuf = kzalloc(sizeof(*nbuf) + mtd->writesize nand_scan_tail() 3917 if (!nbuf) nand_scan_tail() 3919 nbuf->ecccalc = (uint8_t *)(nbuf + 1); nand_scan_tail() 3920 nbuf->ecccode = nbuf->ecccalc + mtd->oobsize; nand_scan_tail() 3921 nbuf->databuf = nbuf->ecccode + mtd->oobsize; nand_scan_tail() 3923 chip->buffers = nbuf; nand_scan_tail()
|
/linux-4.1.27/fs/ext4/ |
H A D | ext4_jbd2.c | 136 char nbuf[16]; ext4_journal_abort_handle() local 137 const char *errstr = ext4_decode_error(NULL, err, nbuf); ext4_journal_abort_handle()
|
H A D | super.c | 499 char nbuf[16]) ext4_decode_error() 521 if (nbuf) { ext4_decode_error() 523 if (snprintf(nbuf, 16, "error %d", -errno) >= 0) ext4_decode_error() 524 errstr = nbuf; ext4_decode_error() 538 char nbuf[16]; __ext4_std_error() local 549 errstr = ext4_decode_error(sb, errno, nbuf); __ext4_std_error() 4733 char nbuf[16]; ext4_clear_journal_err() local 4735 errstr = ext4_decode_error(sb, j_errno, nbuf); ext4_clear_journal_err() 498 ext4_decode_error(struct super_block *sb, int errno, char nbuf[16]) ext4_decode_error() argument
|
H A D | ext4.h | 2385 char nbuf[16]);
|
/linux-4.1.27/drivers/net/wireless/ath/ath9k/ |
H A D | init.c | 227 int nbuf, int ndesc, bool is_tx) ath_descdma_setup() 234 name, nbuf, ndesc); ath_descdma_setup() 250 dd->dd_desc_len = desc_len * nbuf * ndesc; ath_descdma_setup() 285 bsize = sizeof(struct ath_buf) * nbuf; ath_descdma_setup() 290 for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { ath_descdma_setup() 316 bsize = sizeof(struct ath_rxbuf) * nbuf; ath_descdma_setup() 321 for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { ath_descdma_setup() 225 ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd, struct list_head *head, const char *name, int nbuf, int ndesc, bool is_tx) ath_descdma_setup() argument
|
H A D | ath9k.h | 76 int nbuf, int ndesc, bool is_tx);
|
/linux-4.1.27/drivers/staging/lustre/lnet/selftest/ |
H A D | framework.c | 549 int nbuf; sfw_test_buffers() local 551 nbuf = min(svc->sv_wi_total, tsi->tsi_loop) / svc->sv_ncpts; sfw_test_buffers() 552 return max(SFW_TEST_WI_MIN, nbuf + SFW_TEST_WI_EXTRA); sfw_test_buffers() 560 int nbuf; sfw_load_test() local 565 nbuf = sfw_test_buffers(tsi); sfw_load_test() 574 rc = srpc_service_add_buffers(svc, nbuf); sfw_load_test() 577 svc->sv_name, nbuf, rc); sfw_load_test() 582 srpc_service_remove_buffers(svc, nbuf); sfw_load_test() 587 nbuf * (srpc_serv_is_framework(svc) ? sfw_load_test()
|
/linux-4.1.27/drivers/media/platform/xilinx/ |
H A D | xilinx-dma.c | 389 struct xvip_dma_buffer *buf, *nbuf; xvip_dma_start_streaming() local 436 list_for_each_entry_safe(buf, nbuf, &dma->queued_bufs, queue) { xvip_dma_start_streaming() 449 struct xvip_dma_buffer *buf, *nbuf; xvip_dma_stop_streaming() local 463 list_for_each_entry_safe(buf, nbuf, &dma->queued_bufs, queue) { xvip_dma_stop_streaming()
|
/linux-4.1.27/sound/core/ |
H A D | info.c | 89 char *nbuf; resize_info_buffer() local 92 nbuf = krealloc(buffer->buffer, nsize, GFP_KERNEL | __GFP_ZERO); resize_info_buffer() 93 if (! nbuf) resize_info_buffer() 96 buffer->buffer = nbuf; resize_info_buffer()
|
/linux-4.1.27/fs/ubifs/ |
H A D | replay.c | 409 char *nbuf; insert_dent() local 419 nbuf = kmalloc(nlen + 1, GFP_KERNEL); insert_dent() 420 if (!nbuf) { insert_dent() 434 memcpy(nbuf, name, nlen); insert_dent() 435 nbuf[nlen] = '\0'; insert_dent() 436 r->nm.name = nbuf; insert_dent()
|
/linux-4.1.27/fs/ext3/ |
H A D | super.c | 60 char nbuf[16]); 109 char nbuf[16]; ext3_journal_abort_handle() local 110 const char *errstr = ext3_decode_error(NULL, err, nbuf); ext3_journal_abort_handle() 211 char nbuf[16]) ext3_decode_error() 232 if (nbuf) { ext3_decode_error() 234 if (snprintf(nbuf, 16, "error %d", -errno) >= 0) ext3_decode_error() 235 errstr = nbuf; ext3_decode_error() 249 char nbuf[16]; __ext3_std_error() local 259 errstr = ext3_decode_error(sb, errno, nbuf); __ext3_std_error() 2543 char nbuf[16]; ext3_clear_journal_err() local 2545 errstr = ext3_decode_error(sb, j_errno, nbuf); ext3_clear_journal_err() 210 ext3_decode_error(struct super_block * sb, int errno, char nbuf[16]) ext3_decode_error() argument
|
/linux-4.1.27/fs/fuse/ |
H A D | dev.c | 1986 unsigned nbuf; fuse_dev_splice_write() local 2003 nbuf = 0; fuse_dev_splice_write() 2019 BUG_ON(nbuf >= pipe->buffers); fuse_dev_splice_write() 2022 obuf = &bufs[nbuf]; fuse_dev_splice_write() 2037 nbuf++; fuse_dev_splice_write() 2044 cs.nr_segs = nbuf; fuse_dev_splice_write() 2052 for (idx = 0; idx < nbuf; idx++) { fuse_dev_splice_write()
|
/linux-4.1.27/drivers/crypto/ |
H A D | talitos.c | 664 u64 nbuf; member in struct:talitos_ahash_req_ctx 1543 req_ctx->nbuf = req_ctx->to_hash_later; ahash_done() 1658 req_ctx->nbuf = 0; ahash_init() 1709 if (!req_ctx->last && (nbytes + req_ctx->nbuf <= blocksize)) { ahash_process_req() 1713 req_ctx->buf + req_ctx->nbuf, nbytes); ahash_process_req() 1714 req_ctx->nbuf += nbytes; ahash_process_req() 1719 nbytes_to_hash = nbytes + req_ctx->nbuf; ahash_process_req() 1734 if (req_ctx->nbuf) { ahash_process_req() 1735 nsg = (req_ctx->nbuf < nbytes_to_hash) ? 2 : 1; ahash_process_req() 1737 sg_set_buf(req_ctx->bufsl, req_ctx->buf, req_ctx->nbuf); ahash_process_req()
|
/linux-4.1.27/drivers/isdn/i4l/ |
H A D | isdn_ppp.c | 737 u_char *nbuf; isdn_ppp_fill_rq() local 750 nbuf = kmalloc(len + 4, GFP_ATOMIC); isdn_ppp_fill_rq() 751 if (!nbuf) { isdn_ppp_fill_rq() 755 nbuf[0] = PPP_ALLSTATIONS; isdn_ppp_fill_rq() 756 nbuf[1] = PPP_UI; isdn_ppp_fill_rq() 757 nbuf[2] = proto >> 8; isdn_ppp_fill_rq() 758 nbuf[3] = proto & 0xff; isdn_ppp_fill_rq() 759 memcpy(nbuf + 4, buf, len); isdn_ppp_fill_rq() 771 bl->buf = (char *) nbuf; isdn_ppp_fill_rq()
|
/linux-4.1.27/fs/ |
H A D | splice.c | 1795 int ret = 0, nbuf; splice_pipe_to_pipe() local 1851 nbuf = (opipe->curbuf + opipe->nrbufs) & (opipe->buffers - 1); splice_pipe_to_pipe() 1852 obuf = opipe->bufs + nbuf; splice_pipe_to_pipe() 1910 int ret = 0, i = 0, nbuf; link_pipe() local 1935 nbuf = (opipe->curbuf + opipe->nrbufs) & (opipe->buffers - 1); link_pipe() 1943 obuf = opipe->bufs + nbuf; link_pipe()
|
/linux-4.1.27/drivers/isdn/isdnloop/ |
H A D | isdnloop.c | 674 char nbuf[32]; isdnloop_try_call() local 692 sprintf(nbuf, "%s%c", cc->s0num[0], *e); isdnloop_try_call() 693 if (!(strcmp(nbuf, cmd->parm.setup.phone))) isdnloop_try_call()
|
/linux-4.1.27/drivers/net/ethernet/apm/xgene/ |
H A D | xgene_enet_main.c | 47 u32 nbuf) xgene_enet_refill_bufpool() 64 for (i = 0; i < nbuf; i++) { xgene_enet_refill_bufpool() 85 iowrite32(nbuf, buf_pool->cmd); xgene_enet_refill_bufpool() 46 xgene_enet_refill_bufpool(struct xgene_enet_desc_ring *buf_pool, u32 nbuf) xgene_enet_refill_bufpool() argument
|
/linux-4.1.27/drivers/media/platform/ |
H A D | via-camera.c | 414 int nbuf = cam->viadev->camera_fbmem_size/cam->sensor_format.sizeimage; viacam_ctlr_cbufs() local 421 if (nbuf >= 3) { viacam_ctlr_cbufs() 425 } else if (nbuf == 2) { viacam_ctlr_cbufs()
|
/linux-4.1.27/drivers/scsi/pcmcia/ |
H A D | nsp_cs.c | 729 nsp_dbg(NSP_DEBUG_DATA_IO, "in SCpnt=0x%p resid=%d ocount=%d ptr=0x%p this_residual=%d buffers=0x%p nbuf=%d", nsp_pio_read() 828 nsp_dbg(NSP_DEBUG_DATA_IO, "in fifocount=%d ptr=0x%p this_residual=%d buffers=0x%p nbuf=%d resid=0x%x", nsp_pio_write()
|