/linux-master/tools/perf/util/hisi-ptt-decoder/ |
H A D | hisi-ptt-pkt-decoder.c | 90 static void hisi_ptt_print_pkt(const unsigned char *buf, int pos, const char *desc) argument 96 color_fprintf(stdout, color, " %08x: ", pos); 98 color_fprintf(stdout, color, "%02x ", buf[pos + i]); 104 static int hisi_ptt_8dw_kpt_desc(const unsigned char *buf, int pos) argument 111 pos += HISI_PTT_FIELD_LENTH; 115 hisi_ptt_print_pkt(buf, pos, hisi_ptt_8dw_pkt_field_name[i]); 116 pos += HISI_PTT_FIELD_LENTH; 122 static void hisi_ptt_4dw_print_dw0(const unsigned char *buf, int pos) argument 128 dw0.value = *(uint32_t *)(buf + pos); 130 color_fprintf(stdout, color, " %08x: ", pos); 143 hisi_ptt_4dw_kpt_desc(const unsigned char *buf, int pos) argument 158 hisi_ptt_pkt_desc(const unsigned char *buf, int pos, enum hisi_ptt_pkt_type type) argument [all...] |
/linux-master/io_uring/ |
H A D | slist.h | 6 #define __wq_list_for_each(pos, head) \ 7 for (pos = (head)->first; pos; pos = (pos)->next) 9 #define wq_list_for_each(pos, prv, head) \ 10 for (pos = (head)->first, prv = NULL; pos; prv = pos, pos 21 wq_list_add_after(struct io_wq_work_node *node, struct io_wq_work_node *pos, struct io_wq_work_list *list) argument [all...] |
/linux-master/scripts/dtc/ |
H A D | srcpos.c | 232 void srcpos_update(struct srcpos *pos, const char *text, int len) argument 236 pos->file = current_srcfile; 238 pos->first_line = current_srcfile->lineno; 239 pos->first_column = current_srcfile->colno; 249 pos->last_line = current_srcfile->lineno; 250 pos->last_column = current_srcfile->colno; 254 srcpos_copy(struct srcpos *pos) argument 259 if (!pos) 263 assert(pos->next == NULL); 264 memcpy(pos_new, pos, sizeo 274 srcpos_extend(struct srcpos *pos, struct srcpos *newtail) argument 287 srcpos_string(struct srcpos *pos) argument 312 srcpos_string_comment(struct srcpos *pos, bool first_line, int level) argument 363 srcpos_string_first(struct srcpos *pos, int level) argument 368 srcpos_string_last(struct srcpos *pos, int level) argument 373 srcpos_verror(struct srcpos *pos, const char *prefix, const char *fmt, va_list va) argument 387 srcpos_error(struct srcpos *pos, const char *prefix, const char *fmt, ...) argument [all...] |
/linux-master/tools/perf/util/ |
H A D | intlist.h | 62 * @pos: the &struct int_node to use as a loop cursor. 65 #define intlist__for_each_entry(pos, ilist) \ 66 for (pos = intlist__first(ilist); pos; pos = intlist__next(pos)) 71 * @pos: the &struct int_node to use as a loop cursor. 75 #define intlist__for_each_entry_safe(pos, n, ilist) \ 76 for (pos = intlist__first(ilist), n = intlist__next(pos); po [all...] |
/linux-master/tools/lib/perf/include/perf/ |
H A D | evlist.h | 26 #define perf_evlist__for_each_evsel(evlist, pos) \ 27 for ((pos) = perf_evlist__next((evlist), NULL); \ 28 (pos) != NULL; \ 29 (pos) = perf_evlist__next((evlist), (pos))) 44 #define perf_evlist__for_each_mmap(evlist, pos, overwrite) \ 45 for ((pos) = perf_evlist__next_mmap((evlist), NULL, overwrite); \ 46 (pos) != NULL; \ 47 (pos) = perf_evlist__next_mmap((evlist), (pos), overwrit [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | devcom.h | 43 struct mlx5_devcom_comp_dev **pos); 45 #define mlx5_devcom_for_each_peer_entry(devcom, data, pos) \ 46 for (pos = NULL, data = mlx5_devcom_get_next_peer_data(devcom, &pos); \ 48 data = mlx5_devcom_get_next_peer_data(devcom, &pos)) 51 struct mlx5_devcom_comp_dev **pos); 53 #define mlx5_devcom_for_each_peer_entry_rcu(devcom, data, pos) \ 54 for (pos = NULL, data = mlx5_devcom_get_next_peer_data_rcu(devcom, &pos); \ 56 data = mlx5_devcom_get_next_peer_data_rcu(devcom, &pos)) [all...] |
/linux-master/include/linux/ |
H A D | list.h | 272 struct list_head *pos = entry2->prev; local 276 if (pos == entry1) 277 pos = entry2; 278 list_add(entry1, pos); 641 * @pos: the type * to cursor 644 #define list_next_entry(pos, member) \ 645 list_entry((pos)->member.next, typeof(*(pos)), member) 649 * @pos: the type * to cursor. 653 * Wraparound if pos i 753 struct list_head *pos; local 1204 struct hlist_node *pos; local [all...] |
H A D | rculist_nulls.h | 158 * @pos: the &struct hlist_nulls_node to use as a loop cursor. 167 #define hlist_nulls_for_each_entry_rcu(tpos, pos, head, member) \ 169 pos = rcu_dereference_raw(hlist_nulls_first_rcu(head)); \ 170 (!is_a_nulls(pos)) && \ 171 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1; }); \ 172 pos = rcu_dereference_raw(hlist_nulls_next_rcu(pos))) 178 * @pos: the &struct hlist_nulls_node to use as a loop cursor. 182 #define hlist_nulls_for_each_entry_safe(tpos, pos, head, member) \ 184 pos [all...] |
H A D | plist.h | 139 * @pos: the type * to use as a loop counter 142 #define plist_for_each(pos, head) \ 143 list_for_each_entry(pos, &(head)->node_list, node_list) 147 * @pos: the type * to use as a loop cursor 152 #define plist_for_each_continue(pos, head) \ 153 list_for_each_entry_continue(pos, &(head)->node_list, node_list) 157 * @pos: the type * to use as a loop counter 163 #define plist_for_each_safe(pos, n, head) \ 164 list_for_each_entry_safe(pos, n, &(head)->node_list, node_list) 168 * @pos [all...] |
H A D | llist.h | 131 * @pos: the &struct llist_node to use as a loop cursor 143 #define llist_for_each(pos, node) \ 144 for ((pos) = (node); pos; (pos) = (pos)->next) 149 * @pos: the &struct llist_node to use as a loop cursor 162 #define llist_for_each_safe(pos, n, node) \ 163 for ((pos) = (node); (pos) [all...] |
/linux-master/scripts/ |
H A D | cleanfile | 23 my $pos = 0; 30 my $npos = ($pos+$nsp+8) & ~7; 31 my $ntab = ($npos >> 3) - ($pos >> 3); 33 $pos = $npos; 37 $pos += $nsp; 40 $pos = 0; 45 $pos += $nsp; 48 $pos++; 61 my $pos = 0; 67 $pos [all...] |
H A D | extract-vmlinux | 30 for pos in `tr "$1\n$2" "\n$2=" < "$img" | grep -abo "^$2"` 32 pos=${pos%%:*} 33 tail -c+$pos "$img" | $3 > $tmp 2> /dev/null
|
/linux-master/scripts/mod/ |
H A D | list.h | 174 * @pos: the type * to cursor 177 #define list_next_entry(pos, member) \ 178 list_entry((pos)->member.next, typeof(*(pos)), member) 182 * @pos: the type * to cursor 186 #define list_entry_is_head(pos, head, member) \ 187 (&pos->member == (head)) 191 * @pos: the type * to use as a loop cursor. 195 #define list_for_each_entry(pos, head, member) \ 196 for (pos [all...] |
/linux-master/fs/romfs/ |
H A D | storage.c | 23 static int romfs_mtd_read(struct super_block *sb, unsigned long pos, argument 29 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf); 37 unsigned long pos, size_t maxlen) 48 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); 55 pos += len; 66 static int romfs_mtd_strcmp(struct super_block *sb, unsigned long pos, argument 79 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); 87 pos += len; 103 static int romfs_blk_read(struct super_block *sb, unsigned long pos, argument 112 offset = pos 36 romfs_mtd_strnlen(struct super_block *sb, unsigned long pos, size_t maxlen) argument 130 romfs_blk_strnlen(struct super_block *sb, unsigned long pos, size_t limit) argument 163 romfs_blk_strcmp(struct super_block *sb, unsigned long pos, const char *str, size_t size) argument 214 romfs_dev_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) argument 237 romfs_dev_strnlen(struct super_block *sb, unsigned long pos, size_t maxlen) argument 265 romfs_dev_strcmp(struct super_block *sb, unsigned long pos, const char *str, size_t size) argument [all...] |
/linux-master/scripts/kconfig/ |
H A D | list.h | 171 * @pos: the type * to cursor 174 #define list_next_entry(pos, member) \ 175 list_entry((pos)->member.next, typeof(*(pos)), member) 179 * @pos: the type * to cursor 183 #define list_entry_is_head(pos, head, member) \ 184 (&pos->member == (head)) 188 * @pos: the type * to use as a loop cursor. 192 #define list_for_each_entry(pos, head, member) \ 193 for (pos [all...] |
/linux-master/security/tomoyo/ |
H A D | realpath.c | 97 char *pos = ERR_PTR(-ENOMEM); local 101 pos = d_absolute_path(path, buffer, buflen - 1); 102 if (!IS_ERR(pos) && *pos == '/' && pos[1]) { 111 return pos; 128 char *pos = ERR_PTR(-ENOMEM); local 131 pos = dentry_path_raw(dentry, buffer, buflen - 1); 132 if (!IS_ERR(pos) && *pos 157 char *pos = tomoyo_get_dentry_path(dentry, buffer, buflen); local 246 char *pos; local [all...] |
/linux-master/arch/x86/boot/ |
H A D | early_serial_console.c | 50 int pos = 0; local 58 pos += 6; 61 if (arg[pos] == ',') 62 pos++; 70 if (pos == 7 && !strncmp(arg + pos, "0x", 2)) { 71 port = simple_strtoull(arg + pos, &e, 16); 72 if (port == 0 || arg + pos == e) 75 pos = e - arg; 76 } else if (!strncmp(arg + pos, "tty [all...] |
/linux-master/include/linux/decompress/ |
H A D | unlzo.h | 9 long *pos,
|
H A D | inflate.h | 9 long *pos,
|
H A D | bunzip2.h | 9 long *pos,
|
H A D | unlz4.h | 9 long *pos,
|
H A D | unzstd.h | 9 long *pos,
|
/linux-master/drivers/gpu/drm/omapdrm/ |
H A D | tcm-sita.c | 22 * pos position in bitmap 28 static void free_slots(unsigned long pos, u16 w, u16 h, argument 33 for (i = 0; i < h; i++, pos += stride) 34 bitmap_clear(map, pos, w); 39 * pos ptr to position 43 static int r2l_b2t_1d(u16 w, unsigned long *pos, unsigned long *map, argument 50 *pos = num_bits - w; 53 bit = find_next_bit(map, num_bits, *pos); 55 if (bit - *pos >= w) { 57 bitmap_set(map, *pos, 79 l2r_t2b(u16 w, u16 h, u16 a, s16 offset, unsigned long *pos, unsigned long slot_bytes, unsigned long *map, size_t num_bits, size_t slot_stride) argument 157 unsigned long pos; local 177 unsigned long pos; local 202 unsigned long pos; local [all...] |
/linux-master/fs/bcachefs/ |
H A D | lru.h | 8 static inline u64 lru_pos_id(struct bpos pos) argument 10 return pos.inode >> LRU_TIME_BITS; 13 static inline u64 lru_pos_time(struct bpos pos) argument 15 return pos.inode & ~(~0ULL << LRU_TIME_BITS); 20 struct bpos pos = POS(((u64) lru_id << LRU_TIME_BITS)|time, dev_bucket); local 23 EBUG_ON(lru_pos_id(pos) != lru_id); 24 EBUG_ON(lru_pos_time(pos) != time); 25 EBUG_ON(pos.offset != dev_bucket); 27 return pos;
|
/linux-master/drivers/video/ |
H A D | screen_info_generic.c | 76 struct resource *pos = r; local 83 resource_init_io_named(pos++, 0x3b0, 12, "mda"); 85 resource_init_io_named(pos++, 0x3bf, 0x01, "mda"); 87 resource_init_mem_named(pos++, 0xb0000, 0x2000, "mda"); 91 resource_init_io_named(pos++, 0x3d4, 0x02, "cga"); 93 resource_init_mem_named(pos++, 0xb8000, 0x2000, "cga"); 97 resource_init_io_named(pos++, 0x3bf, 0x10, "ega"); 99 resource_init_mem_named(pos++, 0xb0000, 0x8000, "ega"); 103 resource_init_io_named(pos++, 0x3c0, 0x20, "ega"); 106 resource_init_mem_named(pos [all...] |