Searched refs:pos (Results 101 - 125 of 2291) sorted by relevance

1234567891011>>

/linux-master/fs/ecryptfs/
H A Dread_write.c101 loff_t pos; local
106 * if we are writing beyond current size, then start pos
110 pos = ecryptfs_file_size;
112 pos = offset;
113 while (pos < (offset + size)) {
114 pgoff_t ecryptfs_page_idx = (pos >> PAGE_SHIFT);
115 size_t start_offset_in_page = (pos & ~PAGE_MASK);
117 loff_t total_remaining_bytes = ((offset + size) - pos);
126 if (pos < offset) {
128 loff_t total_remaining_zeros = (offset - pos);
[all...]
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/
H A Ddebugfs-vif.c142 int pos; local
144 pos = scnprintf(buf, bufsz, "bss limit = %d\n",
147 return simple_read_from_buffer(user_buf, count, ppos, buf, pos);
159 int pos; local
161 pos = iwl_mvm_power_mac_dbgfs_read(mvm, vif, buf, bufsz);
163 return simple_read_from_buffer(user_buf, count, ppos, buf, pos);
177 int pos = 0; local
186 pos += scnprintf(buf+pos, bufsz-pos, "typ
399 int pos = 0; local
453 int pos = 0; local
[all...]
/linux-master/scripts/dtc/
H A Dsrcpos.h87 extern void srcpos_update(struct srcpos *pos, const char *text, int len);
88 extern struct srcpos *srcpos_copy(struct srcpos *pos);
91 extern char *srcpos_string(struct srcpos *pos);
92 extern char *srcpos_string_first(struct srcpos *pos, int level);
93 extern char *srcpos_string_last(struct srcpos *pos, int level);
96 extern void PRINTF(3, 0) srcpos_verror(struct srcpos *pos, const char *prefix,
98 extern void PRINTF(3, 4) srcpos_error(struct srcpos *pos, const char *prefix,
/linux-master/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
H A Dchcr_common.h59 void *pos, int length)
61 int left = (void *)q->stat - pos;
65 memcpy(pos, src, length);
66 pos += length;
68 memcpy(pos, src, left);
70 pos = (void *)q->desc + (length - left);
73 p = PTR_ALIGN(pos, 8);
58 chcr_copy_to_txd(const void *src, const struct sge_txq *q, void *pos, int length) argument
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge_debugfs.c8 static void *mlx5_esw_bridge_debugfs_start(struct seq_file *seq, loff_t *pos);
9 static void *mlx5_esw_bridge_debugfs_next(struct seq_file *seq, void *v, loff_t *pos);
21 static void *mlx5_esw_bridge_debugfs_start(struct seq_file *seq, loff_t *pos) argument
26 return *pos ? seq_list_start(&bridge->fdb_list, *pos - 1) : SEQ_START_TOKEN;
29 static void *mlx5_esw_bridge_debugfs_next(struct seq_file *seq, void *v, loff_t *pos) argument
33 return seq_list_next(v == SEQ_START_TOKEN ? &bridge->fdb_list : v, &bridge->fdb_list, pos);
/linux-master/sound/soc/sof/
H A Dipc4-telemetry.c41 loff_t pos = *ppos; local
45 if (pos < 0)
48 if (pos >= SOF_IPC4_DEBUG_SLOT_SIZE - 4 || !count)
50 if (count > SOF_IPC4_DEBUG_SLOT_SIZE - 4 - pos)
51 count = SOF_IPC4_DEBUG_SLOT_SIZE - 4 - pos;
62 size_ret = copy_to_user(buffer, buf + pos, count);
68 *ppos = pos + count;
/linux-master/net/core/
H A Dnet-procfs.c10 static void *dev_seq_from_index(struct seq_file *seq, loff_t *pos) argument
12 unsigned long ifindex = *pos;
16 *pos = dev->ifindex;
22 static void *dev_seq_start(struct seq_file *seq, loff_t *pos)
26 if (!*pos)
29 return dev_seq_from_index(seq, pos);
32 static void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
34 ++*pos;
35 return dev_seq_from_index(seq, pos);
95 static struct softnet_data *softnet_get_online(loff_t *pos) argument
108 softnet_seq_start(struct seq_file *seq, loff_t *pos) argument
113 softnet_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
170 ptype_get_idx(struct seq_file *seq, loff_t pos) argument
210 ptype_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
[all...]
/linux-master/drivers/pci/
H A Dproc.c32 unsigned int pos = *ppos; local
48 if (pos >= size)
52 if (pos + nbytes > size)
53 nbytes = size - pos;
61 if ((pos & 1) && cnt) {
63 pci_user_read_config_byte(dev, pos, &val);
66 pos++;
70 if ((pos & 3) && cnt > 2) {
72 pci_user_read_config_word(dev, pos, &val);
75 pos
116 int pos = *ppos; local
338 pci_seq_start(struct seq_file *m, loff_t *pos) argument
350 pci_seq_next(struct seq_file *m, void *v, loff_t *pos) argument
[all...]
/linux-master/tools/include/nolibc/
H A Dstdlib.h204 signed char pos = (~0UL > 0xfffffffful) ? 60 : 28; local
209 dig = in >> pos;
210 in -= (uint64_t)dig << pos;
211 pos -= 4;
212 if (dig || digits || pos < 0) {
217 } while (pos >= 0);
246 int pos = (~0UL > 0xfffffffful) ? 19 : 9; local
250 for (dig = 0, lim = 1; dig < pos; dig++)
253 if (digits || in >= lim || !pos) {
258 } while (pos
336 signed char pos = 60; local
382 int pos = 19; /* start with the highest possible digit */ local
[all...]
/linux-master/include/linux/mtd/
H A Dnand.h98 * @pos: the position this I/O request is targeting
114 struct nand_pos pos; member in struct:nand_page_io_req
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);
740 * @pos: a NAND position object to fill in
744 * Return: the offset within the NAND page pointed by @pos.
748 struct nand_pos *pos)
754 pos->page = do_div(tmp, nand->memorg.pages_per_eraseblock);
755 pos
746 nanddev_offs_to_pos(struct nand_device *nand, loff_t offs, struct nand_pos *pos) argument
801 nanddev_pos_to_offs(struct nand_device *nand, const struct nand_pos *pos) argument
826 nanddev_pos_to_row(struct nand_device *nand, const struct nand_pos *pos) argument
842 nanddev_pos_next_target(struct nand_device *nand, struct nand_pos *pos) argument
860 nanddev_pos_next_lun(struct nand_device *nand, struct nand_pos *pos) argument
880 nanddev_pos_next_eraseblock(struct nand_device *nand, struct nand_pos *pos) argument
899 nanddev_pos_next_page(struct nand_device *nand, struct nand_pos *pos) argument
1042 nanddev_bbt_pos_to_entry(struct nand_device *nand, const struct nand_pos *pos) argument
[all...]
/linux-master/fs/udf/
H A Ddir.c46 if (ctx->pos == 0) {
49 ctx->pos = 1;
51 nf_pos = (ctx->pos - 1) << 2;
77 !ret && iter.pos < dir->i_size;
83 if (iter.pos < emit_pos)
88 ctx->pos = (iter.pos >> 2) + 1;
118 ctx->pos = (iter.pos >> 2) + 1;
/linux-master/drivers/infiniband/hw/qib/
H A Dqib_debugfs.c69 static void *_opcode_stats_seq_start(struct seq_file *s, loff_t *pos) argument
73 if (*pos >= ARRAY_SIZE(opstats->stats))
75 return pos;
78 static void *_opcode_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) argument
82 ++*pos;
83 if (*pos >= ARRAY_SIZE(opstats->stats))
85 return pos;
119 static void *_ctx_stats_seq_start(struct seq_file *s, loff_t *pos) argument
124 if (!*pos)
126 if (*pos >
131 _ctx_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) argument
[all...]
/linux-master/mm/kasan/
H A Dreport_tags.c33 u64 pos; local
44 pos = atomic64_read(&stack_ring.pos);
55 for (u64 i = pos - 1; i != pos - 1 - stack_ring.size; i--) {
/linux-master/fs/qnx4/
H A Ddir.c28 QNX4DEBUG((KERN_INFO "pos = %ld\n", (long) ctx->pos));
30 while (ctx->pos < inode->i_size) {
31 blknum = qnx4_block_map(inode, ctx->pos >> QNX4_BLOCK_SIZE_BITS);
37 ix = (ctx->pos >> QNX4_DIR_ENTRY_SIZE_BITS) % QNX4_INODES_PER_BLOCK;
38 for (; ix < QNX4_INODES_PER_BLOCK; ix++, ctx->pos += QNX4_DIR_ENTRY_SIZE) {
/linux-master/drivers/parisc/
H A Deisa_enumerator.c320 unsigned int pos=0; local
338 while ((pos < maxlen) && (num_func <= es->num_functions)) {
339 pos+=configure_function(buf+pos, &function_len);
345 p0 = pos;
346 pos += configure_choise(buf+pos, &flags);
350 pos = p0 + function_len;
357 pos = p0 + function_len;
370 pos
[all...]
/linux-master/tools/perf/util/
H A Ddsos.c79 struct dso *pos; local
82 list_for_each_entry(pos, head, node) {
83 if (with_hits && !pos->hit && !dso__is_vdso(pos))
85 if (pos->has_build_id) {
89 nsinfo__mountns_enter(pos->nsinfo, &nsc);
90 if (filename__read_build_id(pos->long_name, &pos->bid) > 0) {
92 pos->has_build_id = true;
93 } else if (errno == ENOENT && pos
221 struct dso *pos; local
309 struct dso *pos; local
325 struct dso *pos; local
[all...]
/linux-master/fs/hpfs/
H A Ddir.c27 loff_t pos; local
42 pos = ((loff_t) hpfs_de_as_down_as_possible(s, hpfs_inode->i_dno) << 4) + 1;
43 while (pos != new_off) {
44 if (map_pos_dirent(i, &pos, &qbh)) hpfs_brelse4(&qbh);
46 if (pos == 12) goto fail;
113 if (ctx->pos == 12) { /* diff -r requires this (note, that diff -r */
114 ctx->pos = 13; /* also fails on msdos filesystem in 2.0) */
117 if (ctx->pos == 13) {
128 if (hpfs_stop_cycles(inode->i_sb, ctx->pos, &c1, &c2, "hpfs_readdir")) {
132 if (ctx->pos
[all...]
/linux-master/net/sctp/
H A Dstream_interleave.c128 struct sk_buff *pos, *loc; local
130 pos = skb_peek_tail(&ulpq->reasm);
131 if (!pos) {
136 cevent = sctp_skb2event(pos);
155 skb_queue_walk(&ulpq->reasm, pos) {
156 cevent = sctp_skb2event(pos);
161 loc = pos;
169 loc = pos;
188 struct sk_buff *pos; local
194 skb_queue_walk(&ulpq->reasm, pos) {
262 struct sk_buff *pos, *first_frag = NULL; local
376 struct sk_buff *pos, *loc; local
422 struct sk_buff *pos, *tmp; local
513 struct sk_buff *pos; local
566 struct sk_buff *pos; local
644 struct sk_buff *pos, *first_frag = NULL; local
761 struct sk_buff *pos; local
867 struct sk_buff *pos; local
1007 struct sk_buff *pos, *tmp; local
1208 struct sk_buff *pos, *tmp; local
[all...]
/linux-master/fs/
H A Dread_write.c364 loff_t pos = *ppos; local
366 if (unlikely(pos < 0)) {
369 if (count >= -pos) /* both values are in 0..LLONG_MAX */
371 } else if (unlikely((loff_t) (pos + count) < 0)) {
410 ssize_t __kernel_read(struct file *file, void *buf, size_t count, loff_t *pos) argument
432 kiocb.ki_pos = pos ? *pos : 0;
436 if (pos)
437 *pos = kiocb.ki_pos;
445 ssize_t kernel_read(struct file *file, void *buf, size_t count, loff_t *pos) argument
456 vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) argument
505 __kernel_write_iter(struct file *file, struct iov_iter *from, loff_t *pos) argument
535 __kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos) argument
554 kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos) argument
570 vfs_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) argument
614 loff_t pos, *ppos = file_ppos(f.file); local
638 loff_t pos, *ppos = file_ppos(f.file); local
658 ksys_pread64(unsigned int fd, char __user *buf, size_t count, loff_t pos) argument
692 ksys_pwrite64(unsigned int fd, const char __user *buf, size_t count, loff_t pos) argument
904 vfs_readv(struct file *file, const struct iovec __user *vec, unsigned long vlen, loff_t *pos, rwf_t flags) argument
942 vfs_writev(struct file *file, const struct iovec __user *vec, unsigned long vlen, loff_t *pos, rwf_t flags) argument
989 loff_t pos, *ppos = file_ppos(f.file); local
1013 loff_t pos, *ppos = file_ppos(f.file); local
1036 do_preadv(unsigned long fd, const struct iovec __user *vec, unsigned long vlen, loff_t pos, rwf_t flags) argument
1059 do_pwritev(unsigned long fd, const struct iovec __user *vec, unsigned long vlen, loff_t pos, rwf_t flags) argument
1097 loff_t pos = pos_from_hilo(pos_h, pos_l); local
1106 loff_t pos = pos_from_hilo(pos_h, pos_l); local
1117 loff_t pos = pos_from_hilo(pos_h, pos_l); local
1126 loff_t pos = pos_from_hilo(pos_h, pos_l); local
1153 loff_t pos = ((loff_t)pos_high << 32) | pos_low; local
1174 loff_t pos = ((loff_t)pos_high << 32) | pos_low; local
1194 loff_t pos = ((loff_t)pos_high << 32) | pos_low; local
1214 loff_t pos = ((loff_t)pos_high << 32) | pos_low; local
1228 loff_t pos; local
1331 loff_t pos; local
1350 loff_t pos; local
1369 loff_t pos; local
1389 loff_t pos; local
1646 generic_write_check_limits(struct file *file, loff_t pos, loff_t *count) argument
[all...]
/linux-master/kernel/
H A Dsysctl-test.c39 loff_t pos; local
48 &pos));
57 &pos));
85 loff_t pos; local
94 &pos));
103 &pos));
131 loff_t pos; local
134 &len, &pos));
138 &len, &pos));
168 * pos i
170 loff_t pos = 1; local
195 loff_t pos = 0; local
226 loff_t pos = 0; local
256 loff_t pos = 0; local
286 loff_t pos = 0; local
317 loff_t pos = 0; local
355 loff_t pos = 0; local
[all...]
/linux-master/kernel/trace/
H A Dtrace_printk.c40 struct trace_bprintk_fmt *pos; local
45 list_for_each_entry(pos, &trace_bprintk_fmt_list, list) {
46 if (!strcmp(pos->fmt, fmt))
47 return pos;
123 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) argument
136 if (!v || start_index == *pos) {
141 if (start_index == *pos)
145 /* pos > index */
180 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) argument
265 static const char **find_next(void *v, loff_t *pos) argument
299 t_start(struct seq_file *m, loff_t *pos) argument
305 t_next(struct seq_file *m, void * v, loff_t *pos) argument
[all...]
/linux-master/arch/arm/mach-shmobile/
H A Dregulator-quirk-rcar-gen2.c76 struct regulator_quirk *pos, *tmp; local
102 list_for_each_entry(pos, &quirk_list, list) {
103 if (!pos->shared)
106 if (pos->np->parent != client->dev.parent->of_node)
110 pos->id->compatible, pos->i2c_msg.addr);
112 ret = i2c_transfer(client->adapter, &pos->i2c_msg, 1);
126 list_for_each_entry_safe(pos, tmp, &quirk_list, list) {
127 list_del(&pos->list);
128 of_node_put(pos
143 struct regulator_quirk *quirk, *pos, *tmp; local
[all...]
/linux-master/include/linux/
H A Dlist_bl.h164 * @pos: the &struct hlist_node to use as a loop cursor.
169 #define hlist_bl_for_each_entry(tpos, pos, head, member) \
170 for (pos = hlist_bl_first(head); \
171 pos && \
172 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1;}); \
173 pos = pos->next)
178 * @pos: the &struct hlist_node to use as a loop cursor.
183 #define hlist_bl_for_each_entry_safe(tpos, pos, n, head, member) \
184 for (pos
[all...]
/linux-master/drivers/net/wwan/iosm/
H A Diosm_ipc_task_queue.c86 unsigned int pos, nextpos; local
97 pos = ipc_task->q_wpos;
98 nextpos = (pos + 1) % IPC_THREAD_QUEUE_SIZE;
105 ipc_task->args[pos].arg = arg;
106 ipc_task->args[pos].msg = msg;
107 ipc_task->args[pos].func = func;
108 ipc_task->args[pos].ipc_imem = ipc_imem;
109 ipc_task->args[pos].size = size;
110 ipc_task->args[pos].is_copy = is_copy;
111 ipc_task->args[pos]
[all...]
/linux-master/net/x25/
H A Dx25_proc.c25 static void *x25_seq_route_start(struct seq_file *seq, loff_t *pos)
29 return seq_list_start_head(&x25_route_list, *pos);
32 static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) argument
34 return seq_list_next(v, &x25_route_list, pos);
60 static void *x25_seq_socket_start(struct seq_file *seq, loff_t *pos)
64 return seq_hlist_start_head(&x25_list, *pos);
67 static void *x25_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) argument
69 return seq_hlist_next(v, &x25_list, pos);
112 static void *x25_seq_forward_start(struct seq_file *seq, loff_t *pos)
116 return seq_list_start_head(&x25_forward_list, *pos);
119 x25_seq_forward_next(struct seq_file *seq, void *v, loff_t *pos) argument
[all...]

Completed in 466 milliseconds

1234567891011>>