Lines Matching refs:monbuf
100 struct mon_buf *monbuf; in monwrite_new_hdr() local
107 monbuf = NULL; in monwrite_new_hdr()
109 monbuf = monwrite_find_hdr(monpriv, monhdr); in monwrite_new_hdr()
110 if (monbuf) { in monwrite_new_hdr()
112 monhdr->datalen = monbuf->hdr.datalen; in monwrite_new_hdr()
113 rc = monwrite_diag(monhdr, monbuf->data, in monwrite_new_hdr()
115 list_del(&monbuf->list); in monwrite_new_hdr()
117 kfree(monbuf->data); in monwrite_new_hdr()
118 kfree(monbuf); in monwrite_new_hdr()
119 monbuf = NULL; in monwrite_new_hdr()
124 monbuf = kzalloc(sizeof(struct mon_buf), GFP_KERNEL); in monwrite_new_hdr()
125 if (!monbuf) in monwrite_new_hdr()
127 monbuf->data = kzalloc(monhdr->datalen, in monwrite_new_hdr()
129 if (!monbuf->data) { in monwrite_new_hdr()
130 kfree(monbuf); in monwrite_new_hdr()
133 monbuf->hdr = *monhdr; in monwrite_new_hdr()
134 list_add_tail(&monbuf->list, &monpriv->list); in monwrite_new_hdr()
138 monpriv->current_buf = monbuf; in monwrite_new_hdr()
145 struct mon_buf *monbuf = monpriv->current_buf; in monwrite_new_data() local
150 if (!monbuf->diag_done) { in monwrite_new_data()
151 rc = monwrite_diag(monhdr, monbuf->data, in monwrite_new_data()
153 monbuf->diag_done = 1; in monwrite_new_data()
157 if (!monbuf->diag_done) { in monwrite_new_data()
158 rc = monwrite_diag(monhdr, monbuf->data, in monwrite_new_data()
160 monbuf->diag_done = 1; in monwrite_new_data()
164 rc = monwrite_diag(monhdr, monbuf->data, in monwrite_new_data()
294 struct mon_buf *monbuf; in monwriter_freeze() local
297 list_for_each_entry(monbuf, &monpriv->list, list) { in monwriter_freeze()
298 if (monbuf->hdr.mon_function != MONWRITE_GEN_EVENT) in monwriter_freeze()
299 monwrite_diag(&monbuf->hdr, monbuf->data, in monwriter_freeze()
309 struct mon_buf *monbuf; in monwriter_restore() local
312 list_for_each_entry(monbuf, &monpriv->list, list) { in monwriter_restore()
313 if (monbuf->hdr.mon_function == MONWRITE_START_INTERVAL) in monwriter_restore()
314 monwrite_diag(&monbuf->hdr, monbuf->data, in monwriter_restore()
316 if (monbuf->hdr.mon_function == MONWRITE_START_CONFIG) in monwriter_restore()
317 monwrite_diag(&monbuf->hdr, monbuf->data, in monwriter_restore()