Lines Matching refs:pos
1340 #define LEN_OR_ZERO (len ? len - pos : 0)
1344 int pos = 0, i = *iout; in user_dyn_field_set_string() local
1350 pos += snprintf(buf + pos, LEN_OR_ZERO, " "); in user_dyn_field_set_string()
1352 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s", argv[i]); in user_dyn_field_set_string()
1365 return pos + 1; in user_dyn_field_set_string()
1371 int pos = 0; in user_field_set_string() local
1373 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s", field->type); in user_field_set_string()
1374 pos += snprintf(buf + pos, LEN_OR_ZERO, " "); in user_field_set_string()
1375 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s", field->name); in user_field_set_string()
1378 pos += snprintf(buf + pos, LEN_OR_ZERO, " %d", field->size); in user_field_set_string()
1381 pos += snprintf(buf + pos, LEN_OR_ZERO, ";"); in user_field_set_string()
1383 return pos + 1; in user_field_set_string()
1390 int pos = 0, depth = 0; in user_event_set_print_fmt() local
1393 pos += snprintf(buf + pos, LEN_OR_ZERO, "\""); in user_event_set_print_fmt()
1397 pos += snprintf(buf + pos, LEN_OR_ZERO, " "); in user_event_set_print_fmt()
1399 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s=%s", in user_event_set_print_fmt()
1405 pos += snprintf(buf + pos, LEN_OR_ZERO, "\""); in user_event_set_print_fmt()
1409 pos += snprintf(buf + pos, LEN_OR_ZERO, in user_event_set_print_fmt()
1412 pos += snprintf(buf + pos, LEN_OR_ZERO, in user_event_set_print_fmt()
1416 return pos + 1; in user_event_set_print_fmt()
1558 void *pos, *end = data + len; in user_event_validate() local
1562 pos = data + validator->offset; in user_event_validate()
1565 loc = *(u32 *)pos; in user_event_validate()
1570 pos += offset + sizeof(loc); in user_event_validate()
1572 pos = data + offset; in user_event_validate()
1574 pos += size; in user_event_validate()
1576 if (unlikely(pos > end)) in user_event_validate()
1580 if (unlikely(*(char *)(pos - 1) != '\0')) in user_event_validate()
2014 char *fixed, *pos; in insert_space_after_semis() local
2023 pos = fixed; in insert_space_after_semis()
2027 *pos = *args++; in insert_space_after_semis()
2029 if (*pos++ == ';' && !isspace(*args)) in insert_space_after_semis()
2030 *pos++ = ' '; in insert_space_after_semis()
2033 *pos = '\0'; in insert_space_after_semis()
2761 static void *user_seq_start(struct seq_file *m, loff_t *pos) in user_seq_start() argument
2763 if (*pos) in user_seq_start()
2769 static void *user_seq_next(struct seq_file *m, void *p, loff_t *pos) in user_seq_next() argument
2771 ++*pos; in user_seq_next()