Lines Matching refs:nl
171 unsigned nl = be16_to_cpu(ev->event_name_len); in event_desc() local
172 __be16 *desc_len = (__be16 *)(ev->remainder + nl - 2); in event_desc()
175 return (char *)ev->remainder + nl; in event_desc()
180 unsigned nl = be16_to_cpu(ev->event_name_len); in event_long_desc() local
181 __be16 *desc_len_ = (__be16 *)(ev->remainder + nl - 2); in event_long_desc()
183 __be16 *long_desc_len = (__be16 *)(ev->remainder + nl + desc_len - 2); in event_long_desc()
186 return (char *)ev->remainder + nl + desc_len; in event_long_desc()
210 unsigned nl = be16_to_cpu(ev->event_name_len); in event_end() local
212 if (nl < 2) { in event_end()
213 pr_debug("%s: name length too short: %d", __func__, nl); in event_end()
217 if (start + nl > end) { in event_end()
219 __func__, start, nl, end); in event_end()
223 dl_ = (__be16 *)(ev->remainder + nl - 2); in event_end()
232 if (start + nl + dl > end) { in event_end()
234 __func__, start, nl, dl, start + nl + dl, end); in event_end()
238 ldl_ = (__be16 *)(ev->remainder + nl + dl - 2); in event_end()
248 if (start + nl + dl + ldl > end) { in event_end()
250 __func__, start, nl, dl, ldl, end); in event_end()
254 return start + nl + dl + ldl; in event_end()
430 int nl, dl; in event_to_desc_attr() local
431 char *name = event_name(event, &nl); in event_to_desc_attr()
438 return device_str_attr_create(name, nl, nonce, desc, dl); in event_to_desc_attr()
444 int nl, dl; in event_to_long_desc_attr() local
445 char *name = event_name(event, &nl); in event_to_long_desc_attr()
452 return device_str_attr_create(name, nl, nonce, desc, dl); in event_to_long_desc_attr()
508 int nl; member
537 static int event_uniq_add(struct rb_root *root, const char *name, int nl, in event_uniq_add() argument
549 result = ev_uniq_ord(name, nl, domain, it->name, it->nl, in event_uniq_add()
559 pr_info("found a duplicate event %.*s, ct=%u\n", nl, in event_uniq_add()
571 .nl = nl, in event_uniq_add()
779 int nl; in create_events_from_catalog() local
788 name = event_name(event, &nl); in create_events_from_catalog()
792 event_idx, nl, name); in create_events_from_catalog()
799 event_idx, nl, name, event->domain); in create_events_from_catalog()
839 int nl; in create_events_from_catalog() local
850 name = event_name(event, &nl); in create_events_from_catalog()
851 nonce = event_uniq_add(&ev_uniq, name, nl, event->domain); in create_events_from_catalog()
856 event_idx, nl, name); in create_events_from_catalog()