Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 2096) sorted by relevance

12345678910>>...84

/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Ddebugfs.c66 int pos = 0; in iwl_dbgfs_sram_read() local
95 pos += scnprintf(buf + pos, bufsz - pos, "sram_len: 0x%x\n", in iwl_dbgfs_sram_read()
97 pos += scnprintf(buf + pos, bufsz - pos, "sram_offset: 0x%x\n", in iwl_dbgfs_sram_read()
110 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
114 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
117 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
130 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read()
132 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read()
134 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read()
138 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/
D4965-debug.c45 int pos = 0; in il4965_ucode_rx_stats_read() local
89 pos += il4965_stats_flag(il, buf, bufsz); in il4965_ucode_rx_stats_read()
90 pos += in il4965_ucode_rx_stats_read()
91 scnprintf(buf + pos, bufsz - pos, fmt_header, in il4965_ucode_rx_stats_read()
93 pos += in il4965_ucode_rx_stats_read()
94 scnprintf(buf + pos, bufsz - pos, fmt_table, "ina_cnt:", in il4965_ucode_rx_stats_read()
97 pos += in il4965_ucode_rx_stats_read()
98 scnprintf(buf + pos, bufsz - pos, fmt_table, "fina_cnt:", in il4965_ucode_rx_stats_read()
101 pos += in il4965_ucode_rx_stats_read()
102 scnprintf(buf + pos, bufsz - pos, fmt_table, "plcp_err:", in il4965_ucode_rx_stats_read()
[all …]
D3945-debug.c38 int pos = 0; in il3945_ucode_rx_stats_read() local
76 pos += il3945_stats_flag(il, buf, bufsz); in il3945_ucode_rx_stats_read()
77 pos += in il3945_ucode_rx_stats_read()
78 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
82 pos += in il3945_ucode_rx_stats_read()
83 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
87 pos += in il3945_ucode_rx_stats_read()
88 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
92 pos += in il3945_ucode_rx_stats_read()
93 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
[all …]
Ddebug.c206 int pos = 0; in il_dbgfs_tx_stats_read() local
215 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in il_dbgfs_tx_stats_read()
217 pos += in il_dbgfs_tx_stats_read()
218 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read()
221 pos += scnprintf(buf + pos, bufsz - pos, "Control\n"); in il_dbgfs_tx_stats_read()
223 pos += in il_dbgfs_tx_stats_read()
224 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read()
227 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n"); in il_dbgfs_tx_stats_read()
228 pos += in il_dbgfs_tx_stats_read()
229 scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in il_dbgfs_tx_stats_read()
[all …]
/kernel/linux/linux-5.10/tools/include/linux/
Dlist.h392 #define list_next_entry(pos, member) \ argument
393 list_entry((pos)->member.next, typeof(*(pos)), member)
400 #define list_prev_entry(pos, member) \ argument
401 list_entry((pos)->member.prev, typeof(*(pos)), member)
408 #define list_for_each(pos, head) \ argument
409 for (pos = (head)->next; pos != (head); pos = pos->next)
416 #define list_for_each_prev(pos, head) \ argument
417 for (pos = (head)->prev; pos != (head); pos = pos->prev)
425 #define list_for_each_safe(pos, n, head) \ argument
426 for (pos = (head)->next, n = pos->next; pos != (head); \
[all …]
/kernel/linux/linux-5.10/include/linux/
Dlist.h189 struct list_head *pos = entry2->prev; in list_swap() local
193 if (pos == entry1) in list_swap()
194 pos = entry2; in list_swap()
195 list_add(entry1, pos); in list_swap()
554 #define list_next_entry(pos, member) \ argument
555 list_entry((pos)->member.next, typeof(*(pos)), member)
562 #define list_prev_entry(pos, member) \ argument
563 list_entry((pos)->member.prev, typeof(*(pos)), member)
570 #define list_for_each(pos, head) \ argument
571 for (pos = (head)->next; pos != (head); pos = pos->next)
[all …]
Drculist.h390 #define list_for_each_entry_rcu(pos, head, member, cond...) \ argument
392 pos = list_entry_rcu((head)->next, typeof(*pos), member); \
393 &pos->member != (head); \
394 pos = list_entry_rcu(pos->member.next, typeof(*pos), member))
409 #define list_for_each_entry_srcu(pos, head, member, cond) \ argument
411 pos = list_entry_rcu((head)->next, typeof(*pos), member); \
412 &pos->member != (head); \
413 pos = list_entry_rcu(pos->member.next, typeof(*pos), member))
444 #define list_for_each_entry_lockless(pos, head, member) \ argument
445 for (pos = list_entry_lockless((head)->next, typeof(*pos), member); \
[all …]
Dllist.h114 #define llist_for_each(pos, node) \ argument
115 for ((pos) = (node); pos; (pos) = (pos)->next)
133 #define llist_for_each_safe(pos, n, node) \ argument
134 for ((pos) = (node); (pos) && ((n) = (pos)->next, true); (pos) = (n))
151 #define llist_for_each_entry(pos, node, member) \ argument
152 for ((pos) = llist_entry((node), typeof(*(pos)), member); \
153 member_address_is_nonnull(pos, member); \
154 (pos) = llist_entry((pos)->member.next, typeof(*(pos)), member))
173 #define llist_for_each_entry_safe(pos, n, node, member) \ argument
174 for (pos = llist_entry((node), typeof(*pos), member); \
[all …]
/kernel/linux/linux-5.10/tools/perf/util/
Dbpf-prologue.c29 struct bpf_insn *pos; member
33 pos_get_cnt(struct bpf_insn_pos *pos) in pos_get_cnt() argument
35 return pos->pos - pos->begin; in pos_get_cnt()
39 append_insn(struct bpf_insn new_insn, struct bpf_insn_pos *pos) in append_insn() argument
41 if (!pos->pos) in append_insn()
44 if (pos->pos + 1 >= pos->end) { in append_insn()
46 pos->pos = NULL; in append_insn()
50 *(pos->pos)++ = new_insn; in append_insn()
55 check_pos(struct bpf_insn_pos *pos) in check_pos() argument
57 if (!pos->pos || pos->pos >= pos->end) in check_pos()
[all …]
/kernel/linux/linux-5.10/net/ieee802154/
Dheader_ops.c18 int pos = 0; in ieee802154_hdr_push_addr() local
24 memcpy(buf + pos, &addr->pan_id, 2); in ieee802154_hdr_push_addr()
25 pos += 2; in ieee802154_hdr_push_addr()
30 memcpy(buf + pos, &addr->short_addr, 2); in ieee802154_hdr_push_addr()
31 pos += 2; in ieee802154_hdr_push_addr()
35 memcpy(buf + pos, &addr->extended_addr, IEEE802154_ADDR_LEN); in ieee802154_hdr_push_addr()
36 pos += IEEE802154_ADDR_LEN; in ieee802154_hdr_push_addr()
43 return pos; in ieee802154_hdr_push_addr()
49 int pos = 5; in ieee802154_hdr_push_sechdr() local
56 return pos; in ieee802154_hdr_push_sechdr()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvif/
Dlist.h314 #define list_for_each_entry(pos, head, member) \ argument
315 for (pos = __container_of((head)->next, pos, member); \
316 &pos->member != (head); \
317 pos = __container_of(pos->member.next, pos, member))
326 #define list_for_each_entry_safe(pos, tmp, head, member) \ argument
327 for (pos = __container_of((head)->next, pos, member), \
328 tmp = __container_of(pos->member.next, pos, member); \
329 &pos->member != (head); \
330 pos = tmp, tmp = __container_of(pos->member.next, tmp, member))
333 #define list_for_each_entry_reverse(pos, head, member) \ argument
[all …]
/kernel/linux/linux-5.10/scripts/dtc/
Dsrcpos.c232 void srcpos_update(struct srcpos *pos, const char *text, int len) in srcpos_update() argument
236 pos->file = current_srcfile; in srcpos_update()
238 pos->first_line = current_srcfile->lineno; in srcpos_update()
239 pos->first_column = current_srcfile->colno; in srcpos_update()
249 pos->last_line = current_srcfile->lineno; in srcpos_update()
250 pos->last_column = current_srcfile->colno; in srcpos_update()
254 srcpos_copy(struct srcpos *pos) in srcpos_copy() argument
259 if (!pos) in srcpos_copy()
263 assert(pos->next == NULL); in srcpos_copy()
264 memcpy(pos_new, pos, sizeof(struct srcpos)); in srcpos_copy()
[all …]
/kernel/linux/linux-5.10/security/tomoyo/
Drealpath.c97 char *pos = ERR_PTR(-ENOMEM); in tomoyo_get_absolute_path() local
101 pos = d_absolute_path(path, buffer, buflen - 1); in tomoyo_get_absolute_path()
102 if (!IS_ERR(pos) && *pos == '/' && pos[1]) { in tomoyo_get_absolute_path()
111 return pos; in tomoyo_get_absolute_path()
128 char *pos = ERR_PTR(-ENOMEM); in tomoyo_get_dentry_path() local
131 pos = dentry_path_raw(dentry, buffer, buflen - 1); in tomoyo_get_dentry_path()
132 if (!IS_ERR(pos) && *pos == '/' && pos[1]) { in tomoyo_get_dentry_path()
141 return pos; in tomoyo_get_dentry_path()
157 char *pos = tomoyo_get_dentry_path(dentry, buffer, buflen); in tomoyo_get_local_path() local
159 if (IS_ERR(pos)) in tomoyo_get_local_path()
[all …]
/kernel/linux/linux-5.10/fs/romfs/
Dstorage.c23 static int romfs_mtd_read(struct super_block *sb, unsigned long pos, in romfs_mtd_read() argument
29 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf); in romfs_mtd_read()
37 unsigned long pos, size_t maxlen) in romfs_mtd_strnlen() argument
48 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strnlen()
55 pos += len; in romfs_mtd_strnlen()
66 static int romfs_mtd_strcmp(struct super_block *sb, unsigned long pos, in romfs_mtd_strcmp() argument
79 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strcmp()
87 pos += len; in romfs_mtd_strcmp()
103 static int romfs_blk_read(struct super_block *sb, unsigned long pos, in romfs_blk_read() argument
112 offset = pos & (ROMBSIZE - 1); in romfs_blk_read()
[all …]
/kernel/liteos_a/lib/libc/musl/src/
Dmemset.c38 char *pos = dest; in memset() local
56 if (((uintptr_t)(pos) & 7) != 0) { /* 7, Processed align */ in memset()
57 int unalignedCnt = 8 - ((uintptr_t)(pos) & 7); /* 7, 8, for calculate addr bits align */ in memset()
65 *pos = (char)c; in memset()
66 pos++; in memset()
72 *(uint64_t *)(pos) = c64; in memset()
73 *(uint64_t *)(pos + 8) = c64; /* 8, size of uint64_t */ in memset()
74 *(uint64_t *)(pos + 16) = c64; /* 16, size of two uint64_t data */ in memset()
75 *(uint64_t *)(pos + 24) = c64; /* 24, size of three uint64_t data */ in memset()
77 pos += 32; /* 32, size of four uint64_t data */ in memset()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/
Dtcm-sita.c36 static void free_slots(unsigned long pos, u16 w, u16 h, in free_slots() argument
41 for (i = 0; i < h; i++, pos += stride) in free_slots()
42 bitmap_clear(map, pos, w); in free_slots()
51 static int r2l_b2t_1d(u16 w, unsigned long *pos, unsigned long *map, in r2l_b2t_1d() argument
58 *pos = num_bits - w; in r2l_b2t_1d()
61 bit = find_next_bit(map, num_bits, *pos); in r2l_b2t_1d()
63 if (bit - *pos >= w) { in r2l_b2t_1d()
65 bitmap_set(map, *pos, w); in r2l_b2t_1d()
71 *pos = bit - w; in r2l_b2t_1d()
88 unsigned long *pos, unsigned long slot_bytes, in l2r_t2b() argument
[all …]
/kernel/linux/linux-5.10/fs/freevxfs/
Dvxfs_lookup.c88 loff_t pos = 0; in vxfs_find_entry() local
91 while (pos < limit) { in vxfs_find_entry()
94 int pg_ofs = pos & ~PAGE_MASK; in vxfs_find_entry()
96 pp = vxfs_get_page(ip->i_mapping, pos >> PAGE_SHIFT); in vxfs_find_entry()
101 while (pg_ofs < PAGE_SIZE && pos < limit) { in vxfs_find_entry()
104 if ((pos & (bsize - 1)) < 4) { in vxfs_find_entry()
107 (kaddr + (pos & ~PAGE_MASK)); in vxfs_find_entry()
110 pos += overhead; in vxfs_find_entry()
116 pos += bsize - 1; in vxfs_find_entry()
117 pos &= ~(bsize - 1); in vxfs_find_entry()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Ddebugfs.c79 int pos, budget; in iwl_dbgfs_ctdp_budget_read() local
95 pos = scnprintf(buf, sizeof(buf), "%d\n", budget); in iwl_dbgfs_ctdp_budget_read()
97 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read()
268 int pos; in iwl_dbgfs_set_nic_temperature_read() local
271 pos = scnprintf(buf , sizeof(buf), "disabled\n"); in iwl_dbgfs_set_nic_temperature_read()
273 pos = scnprintf(buf , sizeof(buf), "%d\n", mvm->temperature); in iwl_dbgfs_set_nic_temperature_read()
275 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read()
335 int pos, ret; in iwl_dbgfs_nic_temp_read() local
348 pos = scnprintf(buf , sizeof(buf), "%d\n", temp); in iwl_dbgfs_nic_temp_read()
350 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read()
[all …]
Ddebugfs-vif.c197 int pos; in iwl_dbgfs_tx_pwr_lmt_read() local
199 pos = scnprintf(buf, bufsz, "bss limit = %d\n", in iwl_dbgfs_tx_pwr_lmt_read()
202 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_tx_pwr_lmt_read()
214 int pos; in iwl_dbgfs_pm_params_read() local
216 pos = iwl_mvm_power_mac_dbgfs_read(mvm, vif, buf, bufsz); in iwl_dbgfs_pm_params_read()
218 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_pm_params_read()
232 int pos = 0; in iwl_dbgfs_mac_params_read() local
241 pos += scnprintf(buf+pos, bufsz-pos, "type: ibss\n"); in iwl_dbgfs_mac_params_read()
244 pos += scnprintf(buf+pos, bufsz-pos, "type: bss\n"); in iwl_dbgfs_mac_params_read()
247 pos += scnprintf(buf+pos, bufsz-pos, "type: ap\n"); in iwl_dbgfs_mac_params_read()
[all …]
/kernel/linux/linux-5.10/tools/perf/pmu-events/
Djsmn.c66 start = parser->pos; in jsmn_parse_primitive()
68 for (; parser->pos < len; parser->pos++) { in jsmn_parse_primitive()
69 switch (js[parser->pos]) { in jsmn_parse_primitive()
88 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive()
89 parser->pos = start; in jsmn_parse_primitive()
98 parser->pos = start; in jsmn_parse_primitive()
105 parser->pos = start; in jsmn_parse_primitive()
108 jsmn_fill_token(token, JSMN_PRIMITIVE, start, parser->pos); in jsmn_parse_primitive()
109 parser->pos--; /* parent sees closing brackets */ in jsmn_parse_primitive()
121 int start = parser->pos; in jsmn_parse_string()
[all …]
/kernel/linux/linux-5.10/drivers/tty/vt/
Dvc_screen.c249 unsigned int pos, unsigned int count, bool viewed) in vcs_read_buf_uni() argument
258 pos /= 4; in vcs_read_buf_uni()
259 row = pos / maxcol; in vcs_read_buf_uni()
260 col = pos % maxcol; in vcs_read_buf_uni()
277 unsigned int pos, unsigned int count, bool viewed) in vcs_read_buf_noattr() argument
282 org = screen_pos(vc, pos, viewed); in vcs_read_buf_noattr()
283 col = pos % maxcol; in vcs_read_buf_noattr()
284 pos += maxcol - col; in vcs_read_buf_noattr()
289 org = screen_pos(vc, pos, viewed); in vcs_read_buf_noattr()
291 pos += maxcol; in vcs_read_buf_noattr()
[all …]
/kernel/linux/linux-5.10/drivers/pci/
Dvc.c26 static void pci_vc_save_restore_dwords(struct pci_dev *dev, int pos, in pci_vc_save_restore_dwords() argument
33 pci_read_config_dword(dev, pos + (i * 4), buf); in pci_vc_save_restore_dwords()
35 pci_write_config_dword(dev, pos + (i * 4), *buf); in pci_vc_save_restore_dwords()
48 static void pci_vc_load_arb_table(struct pci_dev *dev, int pos) in pci_vc_load_arb_table() argument
52 pci_read_config_word(dev, pos + PCI_VC_PORT_CTRL, &ctrl); in pci_vc_load_arb_table()
53 pci_write_config_word(dev, pos + PCI_VC_PORT_CTRL, in pci_vc_load_arb_table()
55 if (pci_wait_for_pending(dev, pos + PCI_VC_PORT_STATUS, in pci_vc_load_arb_table()
72 static void pci_vc_load_port_arb_table(struct pci_dev *dev, int pos, int res) in pci_vc_load_port_arb_table() argument
77 ctrl_pos = pos + PCI_VC_RES_CTRL + (res * PCI_CAP_VC_PER_VC_SIZEOF); in pci_vc_load_port_arb_table()
78 status_pos = pos + PCI_VC_RES_STATUS + (res * PCI_CAP_VC_PER_VC_SIZEOF); in pci_vc_load_port_arb_table()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/nand/
Dcore.c22 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isbad() argument
28 entry = nanddev_bbt_pos_to_entry(nand, pos); in nanddev_isbad()
32 if (nand->ops->isbad(nand, pos)) in nanddev_isbad()
47 return nand->ops->isbad(nand, pos); in nanddev_isbad()
61 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_markbad() argument
67 if (nanddev_isbad(nand, pos)) in nanddev_markbad()
70 ret = nand->ops->markbad(nand, pos); in nanddev_markbad()
73 nanddev_pos_to_offs(nand, pos), ret); in nanddev_markbad()
78 entry = nanddev_bbt_pos_to_entry(nand, pos); in nanddev_markbad()
102 bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isreserved() argument
[all …]
/kernel/linux/linux-5.10/include/linux/mtd/
Dnand.h114 struct nand_pos pos; member
226 int (*erase)(struct nand_device *nand, const struct nand_pos *pos);
227 int (*markbad)(struct nand_device *nand, const struct nand_pos *pos);
228 bool (*isbad)(struct nand_device *nand, const struct nand_pos *pos);
630 struct nand_pos *pos) in nanddev_offs_to_pos() argument
636 pos->page = do_div(tmp, nand->memorg.pages_per_eraseblock); in nanddev_offs_to_pos()
637 pos->eraseblock = do_div(tmp, nand->memorg.eraseblocks_per_lun); in nanddev_offs_to_pos()
638 pos->plane = pos->eraseblock % nand->memorg.planes_per_lun; in nanddev_offs_to_pos()
639 pos->lun = do_div(tmp, nand->memorg.luns_per_target); in nanddev_offs_to_pos()
640 pos->target = tmp; in nanddev_offs_to_pos()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
Dutprint.c108 char *pos; in acpi_ut_put_number() local
110 pos = string; in acpi_ut_put_number()
114 *(pos++) = '0'; in acpi_ut_put_number()
119 *(pos++) = digits[digit_index]; in acpi_ut_put_number()
124 return (pos); in acpi_ut_put_number()
206 char *pos; in acpi_ut_format_number() local
254 pos = acpi_ut_put_number(reversed_string, number, base, upper); in acpi_ut_format_number()
255 i = (s32)ACPI_PTR_DIFF(pos, reversed_string); in acpi_ut_format_number()
326 char *pos; in vsnprintf() local
334 pos = string; in vsnprintf()
[all …]

12345678910>>...84