Home
last modified time | relevance | path

Searched full:pos (Results 1 – 25 of 1883) sorted by relevance

12345678910>>...76

/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 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 …]
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 …]
/linux/drivers/gpu/drm/msm/registers/display/
H A Ddsi.xml76 <bitfield name="CMD_DMA_DONE" pos="0" type="boolean"/>
77 <bitfield name="MASK_CMD_DMA_DONE" pos="1" type="boolean"/>
78 <bitfield name="CMD_MDP_DONE" pos="8" type="boolean"/>
79 <bitfield name="MASK_CMD_MDP_DONE" pos="9" type="boolean"/>
80 <bitfield name="VIDEO_DONE" pos="16" type="boolean"/>
81 <bitfield name="MASK_VIDEO_DONE" pos="17" type="boolean"/>
82 <bitfield name="BTA_DONE" pos="20" type="boolean"/>
83 <bitfield name="MASK_BTA_DONE" pos="21" type="boolean"/>
84 <bitfield name="ERROR" pos="24" type="boolean"/>
85 <bitfield name="MASK_ERROR" pos="25" type="boolean"/>
[all …]
H A Dedp.xml23 <bitfield name="ENABLE" pos="0" type="boolean"/>
24 <bitfield name="RESET" pos="1" type="boolean"/>
28 <bitfield name="TRAIN_PATTERN_1" pos="0" type="boolean"/>
29 <bitfield name="TRAIN_PATTERN_2" pos="1" type="boolean"/>
30 <bitfield name="TRAIN_PATTERN_3" pos="2" type="boolean"/>
31 <bitfield name="SYMBOL_ERR_RATE_MEAS" pos="3" type="boolean"/>
32 <bitfield name="PRBS7" pos="4" type="boolean"/>
33 <bitfield name="CUSTOM_80_BIT_PATTERN" pos="5" type="boolean"/>
34 <bitfield name="SEND_VIDEO" pos="6" type="boolean"/>
35 <bitfield name="PUSH_IDLE" pos="7" type="boolean"/>
[all …]
H A Dmdp4.xml67 <bitfield name="PIPE0_MIXER1" pos="3" type="boolean"/>
69 <bitfield name="PIPE1_MIXER1" pos="7" type="boolean"/>
71 <bitfield name="PIPE2_MIXER1" pos="11" type="boolean"/>
73 <bitfield name="PIPE3_MIXER1" pos="15" type="boolean"/>
75 <bitfield name="PIPE4_MIXER1" pos="19" type="boolean"/>
77 <bitfield name="PIPE5_MIXER1" pos="23" type="boolean"/>
79 <bitfield name="PIPE6_MIXER1" pos="27" type="boolean"/>
81 <bitfield name="PIPE7_MIXER1" pos="31" type="boolean"/>
85 <bitfield name="OVERLAY0_DONE" pos="0" type="boolean"/>
86 <bitfield name="OVERLAY1_DONE" pos="1" type="boolean"/>
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_debugfs.c733 char *pos = content; in hclge_dbg_fill_content() local
740 *pos++ = '\0'; in hclge_dbg_fill_content()
755 memcpy(pos, result[i], strlen(result[i])); in hclge_dbg_fill_content()
757 memcpy(pos, items[i].name, strlen(items[i].name)); in hclge_dbg_fill_content()
759 pos += item_len; in hclge_dbg_fill_content()
762 *pos++ = '\n'; in hclge_dbg_fill_content()
763 *pos++ = '\0'; in hclge_dbg_fill_content()
829 char *buf, int len, int *pos) in hclge_dbg_dump_reg_tqp() argument
849 *pos += scnprintf(buf + *pos, len - *pos, "item%u = %s\n", in hclge_dbg_dump_reg_tqp()
853 *pos += scnprintf(buf + *pos, len - *pos, "item%u\t", i); in hclge_dbg_dump_reg_tqp()
[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/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/tools/include/linux/
H A Dlist.h400 * @pos: the type * to cursor
403 #define list_next_entry(pos, member) \ argument
404 list_entry((pos)->member.next, typeof(*(pos)), member)
408 * @pos: the type * to cursor
411 #define list_prev_entry(pos, member) \ argument
412 list_entry((pos)->member.prev, typeof(*(pos)), member)
416 * @pos: the &struct list_head to use as a loop cursor.
419 #define list_for_each(pos, head) \ argument
420 for (pos = (head)->next; pos != (head); pos = pos->next)
424 * @pos: the &struct list_head to use as a loop cursor.
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Ddebugfs.c28 int pos, budget; in iwl_dbgfs_ctdp_budget_read() local
44 pos = scnprintf(buf, sizeof(buf), "%d\n", budget); in iwl_dbgfs_ctdp_budget_read()
46 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read()
226 int pos; in iwl_dbgfs_set_nic_temperature_read() local
229 pos = scnprintf(buf, sizeof(buf), "disabled\n"); in iwl_dbgfs_set_nic_temperature_read()
231 pos = scnprintf(buf, sizeof(buf), "%d\n", mvm->temperature); in iwl_dbgfs_set_nic_temperature_read()
233 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read()
293 int pos, ret; in iwl_dbgfs_nic_temp_read() local
306 pos = scnprintf(buf, sizeof(buf), "%d\n", temp); in iwl_dbgfs_nic_temp_read()
308 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read()
[all …]
/linux/include/linux/
H A Dlist.h272 struct list_head *pos = entry2->prev; in list_swap() local
276 if (pos == entry1) in list_swap()
277 pos = entry2; in list_swap()
278 list_add(entry1, pos); in list_swap()
641 * @pos: the type * to cursor
644 #define list_next_entry(pos, member) \ argument
645 list_entry((pos)->member.next, typeof(*(pos)), member)
649 * @pos: the type * to cursor.
653 * Wraparound if pos i
656 list_next_entry_circular(pos,head,member) global() argument
665 list_prev_entry(pos,member) global() argument
677 list_prev_entry_circular(pos,head,member) global() argument
686 list_for_each(pos,head) global() argument
694 list_for_each_reverse(pos,head) global() argument
702 list_for_each_rcu(pos,head) global() argument
714 list_for_each_continue(pos,head) global() argument
722 list_for_each_prev(pos,head) global() argument
731 list_for_each_safe(pos,n,head) global() argument
742 list_for_each_prev_safe(pos,n,head) global() argument
753 struct list_head *pos; list_count_nodes() local
768 list_entry_is_head(pos,head,member) global() argument
777 list_for_each_entry(pos,head,member) global() argument
788 list_for_each_entry_reverse(pos,head,member) global() argument
801 list_prepare_entry(pos,head,member) global() argument
813 list_for_each_entry_continue(pos,head,member) global() argument
827 list_for_each_entry_continue_reverse(pos,head,member) global() argument
840 list_for_each_entry_from(pos,head,member) global() argument
853 list_for_each_entry_from_reverse(pos,head,member) global() argument
864 list_for_each_entry_safe(pos,n,head,member) global() argument
880 list_for_each_entry_safe_continue(pos,n,head,member) global() argument
896 list_for_each_entry_safe_from(pos,n,head,member) global() argument
911 list_for_each_entry_safe_reverse(pos,n,head,member) global() argument
929 list_safe_reset_next(pos,n,member) global() argument
1144 hlist_for_each(pos,head) global() argument
1147 hlist_for_each_safe(pos,n,head) global() argument
1162 hlist_for_each_entry(pos,head,member) global() argument
1172 hlist_for_each_entry_continue(pos,member) global() argument
1182 hlist_for_each_entry_from(pos,member) global() argument
1193 hlist_for_each_entry_safe(pos,n,head,member) global() argument
1204 struct hlist_node *pos; hlist_count_nodes() local
[all...]
H A Drculist.h383 * @pos: the type * to use as a loop cursor.
392 #define list_for_each_entry_rcu(pos, head, member, cond...) \ argument
394 pos = list_entry_rcu((head)->next, typeof(*pos), member); \
395 &pos->member != (head); \
396 pos = list_entry_rcu(pos->member.next, typeof(*pos), member))
400 * @pos: the type * to use as a loop cursor.
411 #define list_for_each_entry_srcu(pos, head, member, cond) \ argument
413 pos = list_entry_rcu((head)->next, typeof(*pos), member); \
414 &pos->member != (head); \
415 pos = list_entry_rcu(pos->member.next, typeof(*pos), member))
[all …]
/linux/scripts/dtc/
H A Dsrcpos.c234 void srcpos_update(struct srcpos *pos, const char *text, int len) in srcpos_update() argument
238 pos->file = current_srcfile; in srcpos_update()
240 pos->first_line = current_srcfile->lineno; in srcpos_update()
241 pos->first_column = current_srcfile->colno; in srcpos_update()
251 pos->last_line = current_srcfile->lineno; in srcpos_update()
252 pos->last_column = current_srcfile->colno; in srcpos_update()
256 srcpos_copy(struct srcpos *pos) in srcpos_copy() argument
261 if (!pos) in srcpos_copy()
265 assert(pos->next == NULL); in srcpos_copy()
266 memcpy(pos_new, pos, sizeof(struct srcpos)); in srcpos_copy()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_debugfs.c448 char *pos = content; in hns3_dbg_fill_content() local
455 *pos++ = '\0'; in hns3_dbg_fill_content()
470 memcpy(pos, result[i], strlen(result[i])); in hns3_dbg_fill_content()
472 memcpy(pos, items[i].name, strlen(items[i].name)); in hns3_dbg_fill_content()
474 pos += item_len; in hns3_dbg_fill_content()
477 *pos++ = '\n'; in hns3_dbg_fill_content()
478 *pos++ = '\0'; in hns3_dbg_fill_content()
532 int *pos, bool is_tx) in hns3_dump_coal_info() argument
544 *pos += scnprintf(buf + *pos, len - *pos, in hns3_dump_coal_info()
549 *pos += scnprintf(buf + *pos, len - *pos, "%s", content); in hns3_dump_coal_info()
[all …]
/linux/fs/bcachefs/
H A Dbbpos.h11 return cmp_int(l.btree, r.btree) ?: bpos_cmp(l.pos, r.pos); in bbpos_cmp()
14 static inline struct bbpos bbpos_successor(struct bbpos pos) in bbpos_successor() argument
16 if (bpos_cmp(pos.pos, SPOS_MAX)) { in bbpos_successor()
17 pos.pos = bpos_successor(pos.pos); in bbpos_successor()
18 return pos; in bbpos_successor()
21 if (pos.btree != BTREE_ID_NR) { in bbpos_successor()
22 pos.btree++; in bbpos_successor()
23 pos.pos = POS_MIN; in bbpos_successor()
24 return pos; in bbpos_successor()
30 static inline void bch2_bbpos_to_text(struct printbuf *out, struct bbpos pos) in bch2_bbpos_to_text() argument
[all …]
H A Dprintbuf.c13 static inline unsigned __printbuf_linelen(struct printbuf *buf, unsigned pos) in __printbuf_linelen() argument
15 return pos - buf->last_newline; in __printbuf_linelen()
20 return __printbuf_linelen(buf, buf->pos); in printbuf_linelen()
38 if (out->pos + extra <= out->size) in bch2_printbuf_make_room()
74 out->pos += min(len, printbuf_remaining(out)); in printbuf_advance_pos()
77 static void printbuf_insert_spaces(struct printbuf *out, unsigned pos, unsigned nr) in printbuf_insert_spaces() argument
79 unsigned move = out->pos - pos; in printbuf_insert_spaces()
83 if (pos + nr < out->size) in printbuf_insert_spaces()
84 memmove(out->buf + pos + nr, in printbuf_insert_spaces()
85 out->buf + pos, in printbuf_insert_spaces()
[all …]
/linux/drivers/gpu/drm/omapdrm/
H A Dtcm-sita.c22 * pos position in bitmap
28 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()
39 * pos ptr to position
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()
[all …]
/linux/drivers/gpu/drm/msm/registers/adreno/
H A Da6xx_gmu.xml11 <bitfield name="BUSY_IGN_AHB" pos="23"/>
12 <bitfield name="CX_GX_CPU_BUSY_IGN_AHB" pos="30"/>
16 <bitfield name="BOOT_SLUMBER_SET_MASK" pos="22"/>
17 <bitfield name="BOOT_SLUMBER_CHECK_MASK" pos="30"/>
18 <bitfield name="BOOT_SLUMBER_CLEAR_MASK" pos="30"/>
19 <bitfield name="DCVS_SET_MASK" pos="23"/>
20 <bitfield name="DCVS_CHECK_MASK" pos="31"/>
21 <bitfield name="DCVS_CLEAR_MASK" pos="31"/>
22 <bitfield name="GPU_SET_MASK" pos="18"/>
23 <bitfield name="GPU_CHECK_MASK" pos="26"/>
[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.c21 iter->pos, iter->pos + length, SEEK_HOLE); in iomap_seek_hole_iter()
22 if (*hole_pos == iter->pos + length) in iomap_seek_hole_iter()
26 *hole_pos = iter->pos; in iomap_seek_hole_iter()
34 iomap_seek_hole(struct inode *inode, loff_t pos, const struct iomap_ops *ops) in iomap_seek_hole() argument
39 .pos = pos, in iomap_seek_hole()
45 if (pos < 0 || pos >= size) in iomap_seek_hole()
48 iter.len = size - pos; in iomap_seek_hole()
50 iter.processed = iomap_seek_hole_iter(&iter, &pos); in iomap_seek_hole()
54 return pos; in iomap_seek_hole()
69 iter->pos, iter->pos + length, SEEK_DATA); in iomap_seek_data_iter()
[all …]
/linux/fs/freevxfs/
H A Dvxfs_lookup.c64 loff_t pos = 0; in vxfs_find_entry() local
67 while (pos < limit) { in vxfs_find_entry()
70 int pg_ofs = pos & ~PAGE_MASK; in vxfs_find_entry()
72 pp = vxfs_get_page(ip->i_mapping, pos >> PAGE_SHIFT); in vxfs_find_entry()
77 while (pg_ofs < PAGE_SIZE && pos < limit) { in vxfs_find_entry()
80 if ((pos & (bsize - 1)) < 4) { in vxfs_find_entry()
83 (kaddr + (pos & ~PAGE_MASK)); in vxfs_find_entry()
86 pos += overhead; in vxfs_find_entry()
92 pos += bsize - 1; in vxfs_find_entry()
93 pos &= ~(bsize - 1); in vxfs_find_entry()
[all …]
/linux/drivers/vfio/pci/
H A Dvfio_pci_igd.c38 * @pos: Increased by bytes on return.
40 * @bytes: Bytes to copy and adjust off, pos and remaining.
50 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()
[all …]
/linux/drivers/tty/vt/
H A 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 …]

12345678910>>...76