Lines Matching refs:buf_len
497 static void debug_if_show(struct debug_box *db, int buf_len)
506 printk("\ndumped %d (extra 1) blen %d\n", db->dlen, buf_len);
615 static int profiler_magic_verify(struct profile_sample_ctrl_header *psc_hd, int buf_len)
620 kxdump(psc_hd, buf_len, "bad profile packet");
621 printk("bad profile packet %x : %d\n", psc_hd->hd_magic, buf_len);
636 int buf_len = npm->cm.len;
644 if (buf_len < (sizeof(struct profile_session) - sizeof(struct profile_counter) * (PROFILE_MAX_APP_COUNTERS))) {
645 printk("profile data packet is too small to be useful %d\n", buf_len);
649 swap = profiler_magic_verify(psc_hd, buf_len);
655 profileInfo("%s: dlen %d swap %d cmd %x - %d\n", __func__, buf_len, swap, npm->cm.type, (pn->ccl_read - pn->ccl_write) & (CCL_SIZE-1));
656 //kxdump(buf, buf_len, "process profile packet");
694 memcpy(&nsb->psc_header, buf, buf_len); /* pn->pnc.pn2h->psc_header = *psc_hd; maybe faster, but take more memory */