Home
last modified time | relevance | path

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

12345678910>>...67

/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Ddebugfs.c62 int pos = 0; in iwl_dbgfs_sram_read() local
91 pos += scnprintf(buf + pos, bufsz - pos, "sram_len: 0x%x\n", in iwl_dbgfs_sram_read()
93 pos += scnprintf(buf + pos, bufsz - pos, "sram_offset: 0x%x\n", in iwl_dbgfs_sram_read()
106 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
110 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
113 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
126 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read()
128 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read()
130 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read()
134 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read()
[all …]
/linux/drivers/net/wireless/intel/iwlegacy/
H A 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 …]
H A 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 …]
H A 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 …]
/linux/include/linux/
H A Dlist_private.h58 #define list_private_next_entry(pos, member) \ argument
59 list_private_entry(ACCESS_PRIVATE(pos, member).next, typeof(*(pos)), member)
70 #define list_private_next_entry_circular(pos, head, member) \ argument
71 (list_is_last(&ACCESS_PRIVATE(pos, member), head) ? \
72 list_private_first_entry(head, typeof(*(pos)), member) : \
73 list_private_next_entry(pos, member))
80 #define list_private_prev_entry(pos, member) \ argument
81 list_private_entry(ACCESS_PRIVATE(pos, member).prev, typeof(*(pos)), member)
92 #define list_private_prev_entry_circular(pos, head, member) \ argument
93 (list_is_first(&ACCESS_PRIVATE(pos, member), head) ? \
[all …]
H A Dlist.h280 struct list_head *pos = entry2->prev; in list_swap() local
284 if (pos == entry1) in list_swap()
285 pos = entry2; in list_swap()
286 list_add(entry1, pos); in list_swap()
666 #define list_next_entry(pos, member) \ argument
667 list_entry((pos)->member.next, typeof(*(pos)), member)
678 #define list_next_entry_circular(pos, head, member) \ argument
679 (list_is_last(&(pos)->member, head) ? \
680 list_first_entry(head, typeof(*(pos)), member) : list_next_entry(pos, member))
687 #define list_prev_entry(pos, member) \ argument
[all …]
H A Drculist.h50 #define list_for_each_rcu(pos, head) \ argument
51 for (pos = rcu_dereference((head)->next); \
52 !list_is_head(pos, (head)); \
53 pos = rcu_dereference(pos->next))
446 #define list_for_each_entry_rcu(pos, head, member, cond...) \ argument
448 pos = list_entry_rcu((head)->next, typeof(*pos), member); \
449 &pos->member != (head); \
450 pos = list_entry_rcu(pos->member.next, typeof(*pos), member))
465 #define list_for_each_entry_srcu(pos, head, member, cond) \ argument
467 pos = list_entry_rcu((head)->next, typeof(*pos), member); \
[all …]
/linux/fs/ntfs3/
H A Dbitfunc.c35 size_t pos = bit & 7; in are_bits_clear() local
38 if (pos) { in are_bits_clear()
39 if (8 - pos >= nbits) in are_bits_clear()
40 return !nbits || !(*map & fill_mask[pos + nbits] & in are_bits_clear()
41 zero_mask[pos]); in are_bits_clear()
43 if (*map++ & zero_mask[pos]) in are_bits_clear()
45 nbits -= 8 - pos; in are_bits_clear()
48 pos = ((size_t)map) & (sizeof(size_t) - 1); in are_bits_clear()
49 if (pos) { in are_bits_clear()
50 pos = sizeof(size_t) - pos; in are_bits_clear()
[all …]
/linux/tools/include/linux/
H A Dlist.h413 #define list_next_entry(pos, member) \ argument
414 list_entry((pos)->member.next, typeof(*(pos)), member)
421 #define list_prev_entry(pos, member) \ argument
422 list_entry((pos)->member.prev, typeof(*(pos)), member)
429 #define list_for_each(pos, head) \ argument
430 for (pos = (head)->next; pos != (head); pos = pos->next)
437 #define list_for_each_prev(pos, head) \ argument
438 for (pos = (head)->prev; pos != (head); pos = pos->prev)
446 #define list_for_each_safe(pos, n, head) \ argument
447 for (pos = (head)->next, n = pos->next; pos != (head); \
[all …]
/linux/net/ieee802154/
H A 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 …]
/linux/scripts/dtc/
H A Dsrcpos.c256 void srcpos_update(struct srcpos *pos, const char *text, int len) in srcpos_update() argument
260 pos->file = current_srcfile; in srcpos_update()
262 pos->first_line = current_srcfile->lineno; in srcpos_update()
263 pos->first_column = current_srcfile->colno; in srcpos_update()
273 pos->last_line = current_srcfile->lineno; in srcpos_update()
274 pos->last_column = current_srcfile->colno; in srcpos_update()
278 srcpos_copy(struct srcpos *pos) in srcpos_copy() argument
283 if (!pos) in srcpos_copy()
287 assert(pos->next == NULL); in srcpos_copy()
288 memcpy(pos_new, pos, sizeof(struct srcpos)); in srcpos_copy()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Ddebugfs.c30 int pos, budget; in iwl_dbgfs_ctdp_budget_read() local
46 pos = scnprintf(buf, sizeof(buf), "%d\n", budget); in iwl_dbgfs_ctdp_budget_read()
48 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read()
228 int pos; in iwl_dbgfs_set_nic_temperature_read() local
231 pos = scnprintf(buf, sizeof(buf), "disabled\n"); in iwl_dbgfs_set_nic_temperature_read()
233 pos = scnprintf(buf, sizeof(buf), "%d\n", mvm->temperature); in iwl_dbgfs_set_nic_temperature_read()
235 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read()
295 int pos, ret; in iwl_dbgfs_nic_temp_read() local
308 pos = scnprintf(buf, sizeof(buf), "%d\n", temp); in iwl_dbgfs_nic_temp_read()
310 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read()
[all …]
/linux/security/tomoyo/
H A 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 …]
/linux/lib/tests/
H A Dlist-private-test.c31 struct list_test_struct *pos, *n; in list_private_compile_test() local
36 pos = &entry; in list_private_compile_test()
38 pos = list_private_entry(&ACCESS_PRIVATE(&entry, list), struct list_test_struct, list); in list_private_compile_test()
39 pos = list_private_first_entry(&head, struct list_test_struct, list); in list_private_compile_test()
40 pos = list_private_last_entry(&head, struct list_test_struct, list); in list_private_compile_test()
41 pos = list_private_next_entry(pos, list); in list_private_compile_test()
42 pos = list_private_prev_entry(pos, list); in list_private_compile_test()
43 pos = list_private_next_entry_circular(pos, &head, list); in list_private_compile_test()
44 pos = list_private_prev_entry_circular(pos, &head, list); in list_private_compile_test()
46 if (list_private_entry_is_head(pos, &head, list)) in list_private_compile_test()
[all …]
/linux/scripts/include/
H A Dlist.h258 #define list_next_entry(pos, member) \ argument
259 list_entry((pos)->member.next, typeof(*(pos)), member)
266 #define list_prev_entry(pos, member) \ argument
267 list_entry((pos)->member.prev, typeof(*(pos)), member)
275 #define list_entry_is_head(pos, head, member) \ argument
276 (&pos->member == (head))
284 #define list_for_each_entry(pos, head, member) \ argument
285 for (pos = list_first_entry(head, typeof(*pos), member); \
286 !list_entry_is_head(pos, head, member); \
287 pos = list_next_entry(pos, member))
[all …]
/linux/fs/romfs/
H A 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 …]
/linux/fs/iomap/
H A Dseek.c17 iter->pos, iter->pos + length, SEEK_HOLE); in iomap_seek_hole_iter()
18 if (*hole_pos == iter->pos + length) in iomap_seek_hole_iter()
22 *hole_pos = iter->pos; in iomap_seek_hole_iter()
30 iomap_seek_hole(struct inode *inode, loff_t pos, const struct iomap_ops *ops) in iomap_seek_hole() argument
35 .pos = pos, in iomap_seek_hole()
41 if (pos < 0 || pos >= size) in iomap_seek_hole()
44 iter.len = size - pos; in iomap_seek_hole()
46 iter.status = iomap_seek_hole_iter(&iter, &pos); in iomap_seek_hole()
50 return pos; in iomap_seek_hole()
65 iter->pos, iter->pos + length, SEEK_DATA); in iomap_seek_data_iter()
[all …]
/linux/drivers/gpu/drm/omapdrm/
H A Dtcm-sita.c28 static void free_slots(unsigned long pos, u16 w, u16 h, in free_slots() argument
33 for (i = 0; i < h; i++, pos += stride) in free_slots()
34 bitmap_clear(map, pos, w); in free_slots()
43 static int r2l_b2t_1d(u16 w, unsigned long *pos, unsigned long *map, in r2l_b2t_1d() argument
50 *pos = num_bits - w; in r2l_b2t_1d()
53 bit = find_next_bit(map, num_bits, *pos); in r2l_b2t_1d()
55 if (bit - *pos >= w) { in r2l_b2t_1d()
57 bitmap_set(map, *pos, w); in r2l_b2t_1d()
63 *pos = bit - w; in r2l_b2t_1d()
80 unsigned long *pos, unsigned long slot_bytes, in l2r_t2b() argument
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Ddebugfs.c238 ssize_t pos = 0; in iwl_mld_dump_tas_resp() local
241 pos += scnprintf(buf + pos, count - pos, in iwl_mld_dump_tas_resp()
244 return pos; in iwl_mld_dump_tas_resp()
247 pos += scnprintf(buf + pos, count - pos, "TAS Report\n"); in iwl_mld_dump_tas_resp()
250 pos += scnprintf(buf + pos, count - pos, in iwl_mld_dump_tas_resp()
254 pos += scnprintf(buf + pos, count - pos, in iwl_mld_dump_tas_resp()
258 pos += scnprintf(buf + pos, count - pos, in iwl_mld_dump_tas_resp()
262 pos += scnprintf(buf + pos, count - pos, in iwl_mld_dump_tas_resp()
268 pos += scnprintf(buf + pos, count - pos, in iwl_mld_dump_tas_resp()
272 pos += scnprintf(buf + pos, count - pos, "Current MCC: 0x%x\n", in iwl_mld_dump_tas_resp()
[all …]
/linux/fs/freevxfs/
H A Dvxfs_lookup.c66 loff_t pos = 0; in vxfs_find_entry() local
69 while (pos < limit) { in vxfs_find_entry()
72 int pg_ofs = pos & ~PAGE_MASK; in vxfs_find_entry()
74 pp = vxfs_get_page(ip->i_mapping, pos >> PAGE_SHIFT); in vxfs_find_entry()
79 while (pg_ofs < PAGE_SIZE && pos < limit) { in vxfs_find_entry()
82 if ((pos & (bsize - 1)) < 4) { in vxfs_find_entry()
85 (kaddr + (pos & ~PAGE_MASK)); in vxfs_find_entry()
88 pos += overhead; in vxfs_find_entry()
94 pos += bsize - 1; in vxfs_find_entry()
95 pos &= ~(bsize - 1); in vxfs_find_entry()
[all …]
/linux/drivers/tty/vt/
H A Dvc_screen.c248 unsigned int pos, unsigned int count, bool viewed) in vcs_read_buf_uni() argument
257 pos /= 4; in vcs_read_buf_uni()
258 row = pos / maxcol; in vcs_read_buf_uni()
259 col = pos % maxcol; in vcs_read_buf_uni()
276 unsigned int pos, unsigned int count, bool viewed) in vcs_read_buf_noattr() argument
281 org = screen_pos(vc, pos, viewed); in vcs_read_buf_noattr()
282 col = pos % maxcol; in vcs_read_buf_noattr()
283 pos += maxcol - col; in vcs_read_buf_noattr()
288 org = screen_pos(vc, pos, viewed); in vcs_read_buf_noattr()
290 pos += maxcol; in vcs_read_buf_noattr()
[all …]
/linux/drivers/pci/
H A Drebar.c70 unsigned int pos, nbars, i; in pci_rebar_find_pos() local
74 pos = pci_iov_vf_rebar_cap(pdev); in pci_rebar_find_pos()
77 pos = pdev->rebar_cap; in pci_rebar_find_pos()
80 if (!pos) in pci_rebar_find_pos()
83 pci_read_config_dword(pdev, pos + PCI_REBAR_CTRL, &ctrl); in pci_rebar_find_pos()
86 for (i = 0; i < nbars; i++, pos += 8) { in pci_rebar_find_pos()
89 pci_read_config_dword(pdev, pos + PCI_REBAR_CTRL, &ctrl); in pci_rebar_find_pos()
92 return pos; in pci_rebar_find_pos()
110 int pos; in pci_rebar_get_possible_sizes() local
113 pos = pci_rebar_find_pos(pdev, bar); in pci_rebar_get_possible_sizes()
[all …]
H A Dvc.c27 static void pci_vc_save_restore_dwords(struct pci_dev *dev, int pos, in pci_vc_save_restore_dwords() argument
34 pci_read_config_dword(dev, pos + (i * 4), buf); in pci_vc_save_restore_dwords()
36 pci_write_config_dword(dev, pos + (i * 4), *buf); in pci_vc_save_restore_dwords()
49 static void pci_vc_load_arb_table(struct pci_dev *dev, int pos) in pci_vc_load_arb_table() argument
53 pci_read_config_word(dev, pos + PCI_VC_PORT_CTRL, &ctrl); in pci_vc_load_arb_table()
54 pci_write_config_word(dev, pos + PCI_VC_PORT_CTRL, in pci_vc_load_arb_table()
56 if (pci_wait_for_pending(dev, pos + PCI_VC_PORT_STATUS, in pci_vc_load_arb_table()
73 static void pci_vc_load_port_arb_table(struct pci_dev *dev, int pos, int res) in pci_vc_load_port_arb_table() argument
78 ctrl_pos = pos + PCI_VC_RES_CTRL + (res * PCI_CAP_VC_PER_VC_SIZEOF); in pci_vc_load_port_arb_table()
79 status_pos = pos + PCI_VC_RES_STATUS + (res * PCI_CAP_VC_PER_VC_SIZEOF); in pci_vc_load_port_arb_table()
[all …]
/linux/tools/perf/dlfilters/
H A Ddlfilter-show-cycles.c49 __u32 pos = tid & MASK; in find_entry() local
52 e = &table[pos]; in find_entry()
56 if (++pos == TABLESZ) in find_entry()
57 pos = 0; in find_entry()
58 e = &table[pos]; in find_entry()
72 static void add_entry(__s32 tid, int pos, __u64 cnt) in add_entry() argument
77 e->cycles[pos] += cnt; in add_entry()
84 int pos; in filter_event_early() local
89 pos = event_entry(sample->event); in filter_event_early()
92 cycles[cpu][pos] += sample->cyc_cnt; in filter_event_early()
[all …]
/linux/drivers/vfio/pci/
H A Dvfio_pci_igd.c50 loff_t *pos, in igd_opregion_shift_copy() argument
58 *pos += bytes; in igd_opregion_shift_copy()
70 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK, off = 0; in vfio_pci_igd_rw() local
73 if (pos >= vdev->region[i].size || iswrite) in vfio_pci_igd_rw()
76 count = min_t(size_t, count, vdev->region[i].size - pos); in vfio_pci_igd_rw()
80 if (remaining && pos < OPREGION_VERSION) { in vfio_pci_igd_rw()
81 size_t bytes = min_t(size_t, remaining, OPREGION_VERSION - pos); in vfio_pci_igd_rw()
84 opregionvbt->opregion + pos, &pos, in vfio_pci_igd_rw()
90 if (remaining && pos < OPREGION_VERSION + sizeof(__le16)) { in vfio_pci_igd_rw()
92 OPREGION_VERSION + sizeof(__le16) - pos); in vfio_pci_igd_rw()
[all …]

12345678910>>...67