Lines Matching refs:nl
199 unsigned nl = be16_to_cpu(ev->event_name_len); in event_desc() local
200 __be16 *desc_len = (__be16 *)(ev->remainder + nl - 2); in event_desc()
203 return (char *)ev->remainder + nl; in event_desc()
208 unsigned nl = be16_to_cpu(ev->event_name_len); in event_long_desc() local
209 __be16 *desc_len_ = (__be16 *)(ev->remainder + nl - 2); in event_long_desc()
211 __be16 *long_desc_len = (__be16 *)(ev->remainder + nl + desc_len - 2); in event_long_desc()
214 return (char *)ev->remainder + nl + desc_len; in event_long_desc()
238 unsigned nl = be16_to_cpu(ev->event_name_len); in event_end() local
240 if (nl < 2) { in event_end()
241 pr_debug("%s: name length too short: %d", __func__, nl); in event_end()
245 if (start + nl > end) { in event_end()
247 __func__, start, nl, end); in event_end()
251 dl_ = (__be16 *)(ev->remainder + nl - 2); in event_end()
260 if (start + nl + dl > end) { in event_end()
262 __func__, start, nl, dl, start + nl + dl, end); in event_end()
266 ldl_ = (__be16 *)(ev->remainder + nl + dl - 2); in event_end()
276 if (start + nl + dl + ldl > end) { in event_end()
278 __func__, start, nl, dl, ldl, end); in event_end()
282 return start + nl + dl + ldl; in event_end()
491 int nl, dl; in event_to_desc_attr() local
492 char *name = event_name(event, &nl); in event_to_desc_attr()
499 return device_str_attr_create(name, nl, nonce, desc, dl); in event_to_desc_attr()
505 int nl, dl; in event_to_long_desc_attr() local
506 char *name = event_name(event, &nl); in event_to_long_desc_attr()
513 return device_str_attr_create(name, nl, nonce, desc, dl); in event_to_long_desc_attr()
530 int nl; member
559 static int event_uniq_add(struct rb_root *root, const char *name, int nl, in event_uniq_add() argument
571 result = ev_uniq_ord(name, nl, domain, it->name, it->nl, in event_uniq_add()
581 pr_info("found a duplicate event %.*s, ct=%u\n", nl, in event_uniq_add()
593 .nl = nl, in event_uniq_add()
800 int nl; in create_events_from_catalog() local
809 name = event_name(event, &nl); in create_events_from_catalog()
813 event_idx, nl, name); in create_events_from_catalog()
820 event_idx, nl, name, event->domain); in create_events_from_catalog()
860 int nl; in create_events_from_catalog() local
871 name = event_name(event, &nl); in create_events_from_catalog()
872 nonce = event_uniq_add(&ev_uniq, name, nl, event->domain); in create_events_from_catalog()
877 event_idx, nl, name); in create_events_from_catalog()