Lines Matching refs:cgid_len
78 ssize_t cgid_len = cgid ? sizeof(cgid) : 0; in trace_note() local
84 sizeof(*t) + len + cgid_len, in trace_note()
95 t = relay_reserve(bt->rchan, sizeof(*t) + len + cgid_len); in trace_note()
104 t->pdu_len = len + cgid_len; in trace_note()
105 if (cgid_len) in trace_note()
106 memcpy((void *)t + sizeof(*t), &cgid, cgid_len); in trace_note()
107 memcpy((void *) t + sizeof(*t) + cgid_len, data, len); in trace_note()
229 ssize_t cgid_len = cgid ? sizeof(cgid) : 0; in __blk_add_trace() local
259 sizeof(*t) + pdu_len + cgid_len, in __blk_add_trace()
276 t = relay_reserve(bt->rchan, sizeof(*t) + pdu_len + cgid_len); in __blk_add_trace()
298 t->pdu_len = pdu_len + cgid_len; in __blk_add_trace()
300 if (cgid_len) in __blk_add_trace()
301 memcpy((void *)t + sizeof(*t), &cgid, cgid_len); in __blk_add_trace()
303 memcpy((void *)t + sizeof(*t) + cgid_len, pdu_data, pdu_len); in __blk_add_trace()