Lines Matching refs:tp
278 struct trace_params tp;
294 t4_get_trace_filter(sc, &tp, i, &enabled);
298 memcpy(&t->tp.data[0], &tp.data[0], sizeof(t->tp.data));
299 memcpy(&t->tp.mask[0], &tp.mask[0], sizeof(t->tp.mask));
300 t->tp.snap_len = tp.snap_len;
301 t->tp.min_len = tp.min_len;
302 t->tp.skip_ofst = tp.skip_ofst;
303 t->tp.skip_len = tp.skip_len;
304 t->tp.invert = tp.invert;
307 if (tp.port < 4)
308 t->tp.port = sc->chan_map[tp.port];
309 else if (tp.port < 8)
310 t->tp.port = sc->chan_map[tp.port - 4] + 4;
312 t->tp.port = tp.port;
331 struct trace_params tp, *tpp;
354 if (t->tp.port > 19 || t->tp.snap_len > 9600 ||
355 t->tp.min_len > M_TFMINPKTSIZE || t->tp.skip_len > M_TFLENGTH ||
356 t->tp.skip_ofst > M_TFOFFSET) {
361 memcpy(&tp.data[0], &t->tp.data[0], sizeof(tp.data));
362 memcpy(&tp.mask[0], &t->tp.mask[0], sizeof(tp.mask));
363 tp.snap_len = t->tp.snap_len;
364 tp.min_len = t->tp.min_len;
365 tp.skip_ofst = t->tp.skip_ofst;
366 tp.skip_len = t->tp.skip_len;
367 tp.invert = !!t->tp.invert;
370 if (t->tp.port < 4) {
371 if (sc->port[t->tp.port] == NULL) {
375 tp.port = sc->port[t->tp.port]->tx_chan;
376 } else if (t->tp.port < 8) {
377 if (sc->port[t->tp.port - 4] == NULL) {
381 tp.port = sc->port[t->tp.port - 4]->tx_chan + 4;
383 tpp = &tp;