Searched refs:pos (Results 126 - 150 of 2291) sorted by relevance

1234567891011>>

/linux-master/include/linux/
H A Dregset.h105 * @pos: offset into the regset data to access, in bytes
111 * are usual failure returns. The @pos and @count values are in
119 unsigned int pos, unsigned int count,
180 * The @pos argument must be aligned according to @align; the @count
253 static inline int user_regset_copyin(unsigned int *pos, unsigned int *count, argument
260 BUG_ON(*pos < start_pos);
261 if (end_pos < 0 || *pos < end_pos) {
263 : min(*count, end_pos - *pos));
264 data += *pos - start_pos;
272 *pos
[all...]
/linux-master/net/wireless/
H A Dlib80211_crypt_ccmp.c97 u8 *pos, qc = 0; local
108 pos = (u8 *) & hdr->addr4;
110 pos += 6;
111 qc = *pos & 0x0f;
136 pos = (u8 *) hdr;
137 aad[0] = pos[0] & 0x8f;
138 aad[1] = pos[1] & 0xc7;
140 pos = (u8 *) & hdr->seq_ctrl;
141 aad[20] = pos[0] & 0x0f;
158 u8 *pos; local
257 u8 keyidx, *pos; local
[all...]
/linux-master/drivers/staging/rtl8192e/
H A Drtllib_crypt_ccmp.c89 u8 *pos, qc = 0; local
103 pos = (u8 *)&hdr->addr4;
105 pos += 6;
106 qc = *pos & 0x0f;
130 pos = (u8 *)hdr;
131 aad[0] = pos[0] & 0x8f;
132 aad[1] = pos[1] & 0xc7;
136 pos = (u8 *)&hdr->seq_ctrl;
137 aad[20] = pos[0] & 0x0f;
154 u8 *pos; local
221 u8 keyidx, *pos; local
[all...]
/linux-master/fs/xfs/libxfs/
H A Dxfs_iext_tree.c142 return &cur->leaf->recs[cur->pos];
150 if (cur->pos < 0 || cur->pos >= xfs_iext_max_recs(ifp))
201 cur->pos = 0;
214 cur->pos = 0;
222 cur->pos = i - 1;
231 ASSERT(cur->pos <= 0 || cur->pos >= RECS_PER_LEAF);
236 ASSERT(cur->pos >= 0);
237 ASSERT(cur->pos < xfs_iext_max_rec
458 xfs_iext_split_node( struct xfs_iext_node **nodep, int *pos, int *nr_entries) argument
507 int i, pos, nr_entries; local
689 xfs_iext_rebalance_node( struct xfs_iext_node *parent, int *pos, struct xfs_iext_node *node, int nr_entries) argument
746 int level = 2, pos, nr_entries, i; local
[all...]
/linux-master/drivers/s390/cio/
H A Dvfio_ccw_async.c19 loff_t pos = *ppos & VFIO_CCW_OFFSET_MASK; local
23 if (pos + count > sizeof(*region))
28 if (copy_to_user(buf, (void *)region + pos, count))
41 loff_t pos = *ppos & VFIO_CCW_OFFSET_MASK; local
45 if (pos + count > sizeof(*region))
52 if (copy_from_user((void *)region + pos, buf, count)) {
/linux-master/kernel/gcov/
H A Dclang.c371 size_t pos = 0; local
374 pos += store_gcov_u32(buffer, pos, GCOV_DATA_MAGIC);
375 pos += store_gcov_u32(buffer, pos, info->version);
376 pos += store_gcov_u32(buffer, pos, info->checksum);
381 pos += store_gcov_u32(buffer, pos, GCOV_TAG_FUNCTION);
382 pos
[all...]
/linux-master/arch/x86/lib/
H A Dcmdline.c34 int pos = 0, wstart = 0; local
46 * This 'pos' check ensures we do not overrun
49 while (pos < max_cmdline_size) {
51 pos++;
62 wstart = pos;
127 int pos = 0, len = -1; local
141 * This 'pos' check ensures we do not overrun
144 while (pos++ < max_cmdline_size) {
/linux-master/arch/hexagon/kernel/
H A Dsetup.c95 static void *c_start(struct seq_file *m, loff_t *pos) argument
97 return *pos < nr_cpu_ids ? (void *)((unsigned long) *pos + 1) : NULL;
100 static void *c_next(struct seq_file *m, void *v, loff_t *pos) argument
102 ++*pos;
103 return c_start(m, pos);
/linux-master/drivers/acpi/apei/
H A Deinj-cxl.c37 for (int pos = 0; pos < ARRAY_SIZE(einj_cxl_error_type_string); pos++) {
38 cxl_err = ACPI_EINJ_CXL_CACHE_CORRECTABLE << pos;
42 einj_cxl_error_type_string[pos].mask,
43 einj_cxl_error_type_string[pos].str);
/linux-master/net/sctp/
H A Dulpqueue.c270 struct sk_buff *pos; local
277 pos = skb_peek_tail(&ulpq->reasm);
278 if (!pos) {
284 cevent = sctp_skb2event(pos);
292 skb_queue_walk(&ulpq->reasm, pos) {
293 cevent = sctp_skb2event(pos);
300 /* Insert before pos. */
301 __skb_queue_before(&ulpq->reasm, pos, sctp_event2skb(event));
317 struct sk_buff *pos; local
325 pos
395 struct sk_buff *pos; local
503 struct sk_buff *pos, *last_frag, *first_frag; local
603 struct sk_buff *pos, *last_frag, *first_frag; local
681 struct sk_buff *pos, *tmp; local
743 struct sk_buff *pos, *tmp; local
784 struct sk_buff *pos; local
870 struct sk_buff *pos, *tmp; local
[all...]
/linux-master/sound/xen/
H A Dxen_snd_front.h46 unsigned long pos, unsigned long count);
49 unsigned long pos, unsigned long count);
/linux-master/drivers/media/common/
H A Dcypress_firmware.c42 struct hexline *hx, int *pos)
44 u8 *b = (u8 *) &fw->data[*pos];
47 if (*pos >= fw->size)
53 if ((*pos + hx->len + 4) >= fw->size)
67 *pos += hx->len + 5;
69 return *pos;
76 int ret, pos = 0; local
94 ret = cypress_get_hexline(fw, hx, &pos);
41 cypress_get_hexline(const struct firmware *fw, struct hexline *hx, int *pos) argument
/linux-master/net/appletalk/
H A Datalk_proc.c17 static __inline__ struct atalk_iface *atalk_get_interface_idx(loff_t pos) argument
21 for (i = atalk_interfaces; pos && i; i = i->next)
22 --pos;
27 static void *atalk_seq_interface_start(struct seq_file *seq, loff_t *pos)
30 loff_t l = *pos;
36 static void *atalk_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) argument
40 ++*pos;
78 static __inline__ struct atalk_route *atalk_get_route_idx(loff_t pos) argument
82 for (r = atalk_routes; pos && r; r = r->next)
83 --pos;
97 atalk_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) argument
152 atalk_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) argument
[all...]
/linux-master/arch/powerpc/platforms/powernv/
H A Dopal-msglog.c34 ssize_t memcons_copy(struct memcons *mc, char *to, loff_t pos, size_t count) argument
60 ret = memory_read_from_buffer(to, count, &pos,
69 pos -= avail;
81 ret = memory_read_from_buffer(to, count, &pos, conbuf, out_pos);
91 ssize_t opal_msglog_copy(char *to, loff_t pos, size_t count) argument
93 return memcons_copy(opal_memcons, to, pos, count);
98 loff_t pos, size_t count)
100 return opal_msglog_copy(to, pos, count);
96 opal_msglog_read(struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *to, loff_t pos, size_t count) argument
/linux-master/drivers/firmware/efi/libstub/
H A Dprintk.c78 size_t pos = 0, lim = ARRAY_SIZE(buf); local
84 buf[pos++] = L'\r';
88 buf[pos++] = c32;
94 buf[pos++] = (0xd800 - (0x10000 >> 10)) + (c32 >> 10);
95 buf[pos++] = 0xdc00 + (c32 & 0x3ff);
97 if (*s8 == '\0' || pos >= lim - 2) {
98 buf[pos] = L'\0';
100 pos = 0;
/linux-master/security/tomoyo/
H A Daudit.c30 unsigned long pos = bprm->p; local
31 int offset = pos % PAGE_SIZE;
46 if (!tomoyo_dump_page(bprm, pos, dump))
48 pos += PAGE_SIZE - offset;
157 int pos; local
165 pos = snprintf(buffer, tomoyo_buffer_len - 1,
196 pos += snprintf(buffer + pos,
197 tomoyo_buffer_len - 1 - pos,
206 pos
252 int pos; local
[all...]
/linux-master/drivers/video/fbdev/
H A Dcobalt_lcdfb.c129 unsigned long pos; local
135 pos = *ppos;
136 if (pos >= LCD_CHARS_MAX || count == 0)
142 if (pos + count > LCD_CHARS_MAX)
143 count = LCD_CHARS_MAX - pos;
150 lcd_write_control(info, LCD_TEXT_POS(pos));
157 if (pos == 0x0f)
158 pos = 0x40;
160 pos++;
178 unsigned long pos; local
[all...]
/linux-master/drivers/firmware/google/
H A Dcbmem.c33 struct bin_attribute *bin_attr, char *buf, loff_t pos,
38 return memory_read_from_buffer(buf, count, &pos, entry->mem_file_buf,
43 struct bin_attribute *bin_attr, char *buf, loff_t pos,
48 if (pos < 0 || pos >= entry->size)
50 if (count > entry->size - pos)
51 count = entry->size - pos;
53 memcpy(entry->mem_file_buf + pos, buf, count);
32 mem_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t count) argument
42 mem_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t count) argument
/linux-master/net/mptcp/
H A Dtoken.c58 struct hlist_nulls_node *pos; local
60 hlist_nulls_for_each_entry_rcu(req, pos, &t->req_chain, token_node)
70 struct hlist_nulls_node *pos; local
73 sk_nulls_for_each_rcu(sk, pos, &t->msk_chain)
194 struct mptcp_subflow_request_sock *pos; local
203 pos = __token_lookup_req(bucket, req->token);
204 if (!WARN_ON_ONCE(pos != req))
212 struct hlist_nulls_node *pos; local
221 sk_nulls_for_each_rcu(sk, pos, &bucket->msk_chain) {
226 if (get_nulls_value(pos) !
248 struct hlist_nulls_node *pos; local
301 struct hlist_nulls_node *pos; local
353 struct mptcp_subflow_request_sock *pos; local
379 struct mptcp_sock *pos; local
[all...]
/linux-master/fs/sysv/
H A Ddir.c31 static void dir_commit_chunk(struct page *page, loff_t pos, unsigned len) argument
36 block_write_end(NULL, mapping, pos, len, len, page, NULL);
37 if (pos+len > dir->i_size) {
38 i_size_write(dir, pos+len);
73 unsigned long pos = ctx->pos; local
80 ctx->pos = pos = (pos + SYSV_DIRSIZE-1) & ~(SYSV_DIRSIZE-1);
81 if (pos >
194 loff_t pos; local
241 loff_t pos = page_offset(page) + offset_in_page(de); local
338 loff_t pos = page_offset(page) + offset_in_page(de); local
[all...]
/linux-master/fs/iomap/
H A Dbuffered-io.c235 loff_t *pos, loff_t length, size_t *offp, size_t *lenp)
238 loff_t orig_pos = *pos;
242 size_t poff = offset_in_folio(folio, *pos);
259 *pos += block_size;
362 loff_t pos)
368 pos >= i_size_read(iter->inode);
375 loff_t pos = iter->pos + offset; local
379 loff_t orig_pos = pos;
388 iomap_adjust_read_range(iter->inode, folio, &pos, lengt
234 iomap_adjust_read_range(struct inode *inode, struct folio *folio, loff_t *pos, loff_t length, size_t *offp, size_t *lenp) argument
361 iomap_block_needs_zeroing(const struct iomap_iter *iter, loff_t pos) argument
587 iomap_get_folio(struct iomap_iter *iter, loff_t pos, size_t len) argument
646 iomap_write_failed(struct inode *inode, loff_t pos, unsigned len) argument
671 __iomap_write_begin(const struct iomap_iter *iter, loff_t pos, size_t len, struct folio *folio) argument
734 __iomap_get_folio(struct iomap_iter *iter, loff_t pos, size_t len) argument
745 __iomap_put_folio(struct iomap_iter *iter, loff_t pos, size_t ret, struct folio *folio) argument
767 iomap_write_begin(struct iomap_iter *iter, loff_t pos, size_t len, struct folio **foliop) argument
832 __iomap_write_end(struct inode *inode, loff_t pos, size_t len, size_t copied, struct folio *folio) argument
856 iomap_write_end_inline(const struct iomap_iter *iter, struct folio *folio, loff_t pos, size_t copied) argument
875 iomap_write_end(struct iomap_iter *iter, loff_t pos, size_t len, size_t copied, struct folio *folio) argument
913 loff_t pos = iter->pos; local
1270 iomap_file_buffered_write_punch_delalloc(struct inode *inode, struct iomap *iomap, loff_t pos, loff_t length, ssize_t written, iomap_punch_t punch) argument
1309 loff_t pos = iter->pos; local
1353 iomap_file_unshare(struct inode *inode, loff_t pos, loff_t len, const struct iomap_ops *ops) argument
1373 loff_t pos = iter->pos; local
1415 iomap_zero_range(struct inode *inode, loff_t pos, loff_t len, bool *did_zero, const struct iomap_ops *ops) argument
1433 iomap_truncate_page(struct inode *inode, loff_t pos, bool *did_zero, const struct iomap_ops *ops) argument
1681 iomap_alloc_ioend(struct iomap_writepage_ctx *wpc, struct writeback_control *wbc, struct inode *inode, loff_t pos) argument
1708 iomap_can_add_to_ioend(struct iomap_writepage_ctx *wpc, loff_t pos) argument
1741 iomap_add_to_ioend(struct iomap_writepage_ctx *wpc, struct writeback_control *wbc, struct folio *folio, struct inode *inode, loff_t pos, unsigned len) argument
1767 iomap_writepage_map_blocks(struct iomap_writepage_ctx *wpc, struct writeback_control *wbc, struct folio *folio, struct inode *inode, u64 pos, unsigned dirty_len, unsigned *count) argument
1881 u64 pos = folio_pos(folio); local
[all...]
/linux-master/security/apparmor/
H A Dpolicy_unpack.c47 if (ad->iface.pos)
48 audit_log_format(ab, " offset=%ld", ad->iface.pos);
69 ad.iface.pos = e->pos - e->start;
164 return (size <= e->end - e->pos);
178 void *pos = e->pos; local
182 size = le16_to_cpu(get_unaligned((__le16 *) e->pos));
183 e->pos += sizeof(__le16);
186 *chunk = e->pos;
229 void *pos = e->pos; local
257 void *pos = e->pos; local
275 void *pos = e->pos; local
294 void *pos = e->pos; local
333 void *pos = e->pos; local
351 void *pos = e->pos; local
376 void *pos = e->pos; local
399 void *pos = e->pos; local
485 int c, j, pos, size2 = aa_unpack_strdup(e, &str, NULL); local
536 void *pos = e->pos; local
567 void *pos = e->pos; local
613 void *pos = e->pos; local
669 void *pos = e->pos; local
713 void *pos = e->pos; local
[all...]
/linux-master/arch/s390/include/asm/
H A Dgmap.h83 #define gmap_for_each_rmap(pos, head) \
84 for (pos = (head); pos; pos = pos->next)
86 #define gmap_for_each_rmap_safe(pos, n, head) \
87 for (pos = (head); n = pos ? pos->next : NULL, pos; po
[all...]
/linux-master/drivers/staging/media/atomisp/pci/base/circbuf/src/
H A Dcircbuf.c128 u32 pos; local
157 pos = ia_css_circbuf_get_pos_at_offset(cb, cb->desc->start, offset);
160 val = ia_css_circbuf_elem_get_val(&cb->elems[pos]);
163 src_pos = ia_css_circbuf_get_pos_at_offset(cb, pos, -1);
164 dest_pos = pos;
176 int pos; local
178 pos = ia_css_circbuf_get_pos_at_offset(cb, cb->desc->end, offset);
181 return cb->elems[pos].val;
190 int pos; local
192 pos
[all...]
/linux-master/drivers/s390/char/
H A Dhmcdrv_dev.c58 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence);
60 size_t len, loff_t *pos);
62 size_t len, loff_t *pos);
160 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence) argument
164 pos += fp->f_pos; /* new position stored in 'pos' */
186 if (pos < 0)
189 if (fp->f_pos != pos)
192 fp->f_pos = pos;
193 return pos;
221 hmcdrv_dev_read(struct file *fp, char __user *ubuf, size_t len, loff_t *pos) argument
246 hmcdrv_dev_write(struct file *fp, const char __user *ubuf, size_t len, loff_t *pos) argument
[all...]

Completed in 244 milliseconds

1234567891011>>