Searched refs:pos (Results 276 - 300 of 2291) sorted by relevance

<<11121314151617181920>>

/linux-master/net/wireless/
H A Dwext-proc.c90 static void *wireless_dev_seq_start(struct seq_file *seq, loff_t *pos) argument
97 if (!*pos)
102 if (off++ == *pos)
107 static void *wireless_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
111 ++*pos;
/linux-master/drivers/net/wireless/ti/wlcore/
H A Ddebugfs.h81 int pos = 0; \
86 for (i = 0; i < len && pos < sizeof(buf); i++) \
87 pos += snprintf(buf + pos, sizeof(buf) - pos, \
/linux-master/drivers/gpu/drm/i915/gt/
H A Dintel_ring.h55 static inline u32 intel_ring_wrap(const struct intel_ring *ring, u32 pos) argument
57 return pos & (ring->size - 1);
70 unsigned int pos)
72 if (pos & -ring->size) /* must be strictly within the ring */
75 if (!IS_ALIGNED(pos, 8)) /* must be qword aligned */
69 intel_ring_offset_valid(const struct intel_ring *ring, unsigned int pos) argument
/linux-master/tools/lib/bpf/
H A Dnlattr.h70 * @arg pos loop counter, set to current attribute
75 #define libbpf_nla_for_each_attr(pos, head, len, rem) \
76 for (pos = head, rem = len; \
77 nla_ok(pos, rem); \
78 pos = nla_next(pos, &(rem)))
/linux-master/sound/soc/sof/amd/
H A Dacp-pcm.c97 snd_pcm_uframes_t pos; local
115 pos = spcm->stream[substream->stream].posn.host_posn;
116 pos = bytes_to_frames(substream->runtime, pos);
118 return pos;
/linux-master/arch/x86/crypto/
H A Daegis128-aesni-glue.c75 unsigned int pos = 0; local
84 if (pos + size >= AEGIS128_BLOCK_SIZE) {
85 if (pos > 0) {
86 unsigned int fill = AEGIS128_BLOCK_SIZE - pos;
87 memcpy(buf.bytes + pos, src, fill);
91 pos = 0;
102 memcpy(buf.bytes + pos, src, left);
103 pos += left;
111 if (pos > 0) {
112 memset(buf.bytes + pos,
[all...]
/linux-master/fs/adfs/
H A Ddir_f.c215 __adfs_dir_get(struct adfs_dir *dir, int pos, struct object_info *obj) argument
220 ret = adfs_dir_copyfrom(&de, dir, pos, 26);
238 dir->pos = 5 + fpos * 26;
247 ret = __adfs_dir_get(dir, dir->pos, obj);
249 dir->pos += 26;
257 int pos = 5 + (ctx->pos - 2) * 26; local
259 while (ctx->pos < 2 + ADFS_NUM_DIR_ENTRIES) {
260 if (__adfs_dir_get(dir, pos, &obj))
265 pos
[all...]
/linux-master/drivers/media/platform/allegro-dvt/
H A Dnal-rbsp.c27 rbsp->pos = 0;
81 shift = 7 - (rbsp->pos % 8);
82 ofs = rbsp->pos / 8;
88 rbsp->pos++;
91 (rbsp->num_consecutive_zeros < 7 && (rbsp->pos % 8 == 0)))
107 shift = 7 - (rbsp->pos % 8);
108 ofs = rbsp->pos / 8;
115 rbsp->pos++;
118 (rbsp->num_consecutive_zeros < 7 && (rbsp->pos % 8 == 0))) {
308 rbsp_bits(rbsp, round_up(rbsp->pos,
[all...]
/linux-master/fs/isofs/
H A Ddir.c98 offset = ctx->pos & (bufsize - 1);
99 block = ctx->pos >> bufbits;
101 while (ctx->pos < inode->i_size) {
123 ctx->pos = (ctx->pos + ISOFS_BLOCK_SIZE) & ~(ISOFS_BLOCK_SIZE - 1);
124 block = ctx->pos >> bufbits;
169 ctx->pos += de_len;
178 ctx->pos += de_len;
188 ctx->pos += de_len;
202 ctx->pos
[all...]
/linux-master/tools/include/nolibc/
H A Dstring.h37 size_t dir, pos; local
39 pos = len;
43 pos = -1;
48 pos += dir;
49 ((char *)dst)[pos] = ((const char *)src)[pos];
61 size_t pos = 0; local
63 while (pos < len) {
64 ((char *)dst)[pos] = ((const char *)src)[pos];
[all...]
/linux-master/net/8021q/
H A Dvlanproc.c37 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos);
38 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos);
166 static void *vlan_seq_from_index(struct seq_file *seq, loff_t *pos) argument
168 unsigned long ifindex = *pos;
174 *pos = dev->ifindex;
180 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos)
184 if (*pos == 0)
187 return vlan_seq_from_index(seq, pos);
190 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
192 ++*pos;
[all...]
/linux-master/drivers/net/ethernet/rocker/
H A Drocker_tlv.h45 #define rocker_tlv_for_each(pos, head, len, rem) \
46 for (pos = head, rem = len; \
47 rocker_tlv_ok(pos, rem); \
48 pos = rocker_tlv_next(pos, &(rem)))
50 #define rocker_tlv_for_each_nested(pos, tlv, rem) \
51 rocker_tlv_for_each(pos, rocker_tlv_data(tlv), \
/linux-master/arch/x86/kernel/
H A Dkdebugfs.c34 loff_t pos = *ppos; local
38 if (pos < 0)
41 if (pos >= node->len)
44 if (count > node->len - pos)
45 count = node->len - pos;
47 pa = node->paddr + pos;
64 *ppos = pos + count;
/linux-master/tools/lib/api/fd/
H A Darray.c78 int pos = fda->nr; local
88 return pos;
91 int fdarray__dup_entry_from(struct fdarray *fda, int pos, struct fdarray *from) argument
96 if (pos >= from->nr)
99 entry = &from->entries[pos];
101 npos = fdarray__add(fda, entry->fd, entry->events, from->priv[pos].flags);
103 fda->priv[npos] = from->priv[pos];
/linux-master/drivers/media/platform/amphion/
H A Dvpu_helpers.h41 static inline u32 vpu_helper_step_walk(struct vpu_buffer *stream_buffer, u32 pos, u32 step) argument
43 pos += step;
44 if (pos > stream_buffer->phys + stream_buffer->length)
45 pos -= stream_buffer->length;
47 return pos;
50 static inline u8 vpu_helper_read_byte(struct vpu_buffer *stream_buffer, u32 pos) argument
54 return pdata[pos % stream_buffer->length];
/linux-master/arch/openrisc/kernel/
H A Dptrace.c66 unsigned int pos, unsigned int count,
73 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, 4);
75 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
79 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
86 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 4*33, -1);
107 unsigned int pos, unsigned int count,
114 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
64 genregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user * ubuf) argument
105 fpregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument
/linux-master/net/netfilter/
H A Dxt_u32.c26 u_int32_t pos; local
37 pos = ct->location[0].number;
39 if (skb->len < 4 || pos > skb->len - 4)
42 if (skb_copy_bits(skb, pos, &n, sizeof(n)) < 0)
64 pos = number;
66 pos > skb->len - at - 4)
69 if (skb_copy_bits(skb, at + pos, &n,
/linux-master/drivers/vfio/pci/virtio/
H A Dmain.c34 loff_t pos, char __user *buf,
45 common = pos < VIRTIO_PCI_CONFIG_OFF(msix_enabled);
47 offset = common ? pos : pos - VIRTIO_PCI_CONFIG_OFF(msix_enabled);
52 count, bar0_buf + pos);
55 count, bar0_buf + pos);
58 if (copy_to_user(buf, bar0_buf + pos, count))
61 if (copy_from_user(bar0_buf + pos, buf, count)) {
68 count, bar0_buf + pos);
71 count, bar0_buf + pos);
33 virtiovf_issue_legacy_rw_cmd(struct virtiovf_pci_core_device *virtvdev, loff_t pos, char __user *buf, size_t count, bool read) argument
79 virtiovf_pci_bar0_rw(struct virtiovf_pci_core_device *virtvdev, loff_t pos, char __user *buf, size_t count, bool read) argument
141 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK; local
227 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK; local
247 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK; local
282 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK; local
[all...]
/linux-master/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
H A Dchcr_ipsec.c411 void *pos,
433 /* end of queue, reset pos to start of queue */
434 eoq = (void *)q->q.stat - pos;
436 pos = q->q.desc;
439 memset(pos, 0, len);
440 aadiv = (struct chcr_ipsec_aadiv *)pos;
453 sc_imm = (struct ulptx_idata *)(pos +
459 pos += len;
460 return pos;
465 void *pos,
409 copy_esn_pktxt(struct sk_buff *skb, struct net_device *dev, void *pos, struct ipsec_sa_entry *sa_entry) argument
463 copy_cpltx_pktxt(struct sk_buff *skb, struct net_device *dev, void *pos, struct ipsec_sa_entry *sa_entry) argument
507 copy_key_cpltx_pktxt(struct sk_buff *skb, struct net_device *dev, void *pos, struct ipsec_sa_entry *sa_entry) argument
555 ch_ipsec_crypto_wreq(struct sk_buff *skb, struct net_device *dev, void *pos, int credits, struct ipsec_sa_entry *sa_entry) argument
713 u64 *pos, *end, *before, *sgl; local
[all...]
/linux-master/include/linux/
H A Dcpufreq.h698 * @pos: the cpufreq_frequency_table * to use as a loop cursor.
702 #define cpufreq_for_each_entry(pos, table) \
703 for (pos = table; pos->frequency != CPUFREQ_TABLE_END; pos++)
708 * @pos: the cpufreq_frequency_table * to use as a loop cursor.
713 #define cpufreq_for_each_entry_idx(pos, table, idx) \
714 for (pos = table, idx = 0; pos->frequency != CPUFREQ_TABLE_END; \
715 pos
788 struct cpufreq_frequency_table *pos; local
810 struct cpufreq_frequency_table *pos; local
856 struct cpufreq_frequency_table *pos; local
887 struct cpufreq_frequency_table *pos; local
924 struct cpufreq_frequency_table *pos; local
959 struct cpufreq_frequency_table *pos; local
1059 struct cpufreq_frequency_table *pos; local
1085 struct cpufreq_frequency_table *pos; local
[all...]
/linux-master/fs/ext4/
H A Dverity.c42 loff_t pos)
48 folio = read_mapping_folio(inode->i_mapping, pos >> PAGE_SHIFT,
53 n = memcpy_from_file_folio(buf, folio, pos, count);
57 pos += n;
68 loff_t pos)
73 if (pos + count > inode->i_sb->s_maxbytes)
78 PAGE_SIZE - offset_in_page(pos));
83 res = aops->write_begin(NULL, mapping, pos, n, &page, &fsdata);
87 memcpy_to_page(page, offset_in_page(pos), buf, n);
89 res = aops->write_end(NULL, mapping, pos,
41 pagecache_read(struct inode *inode, void *buf, size_t count, loff_t pos) argument
67 pagecache_write(struct inode *inode, const void *buf, size_t count, loff_t pos) argument
383 ext4_write_merkle_tree_block(struct inode *inode, const void *buf, u64 pos, unsigned int size) argument
[all...]
/linux-master/drivers/gpu/drm/display/
H A Ddrm_dp_aux_dev.c149 loff_t pos = iocb->ki_pos; local
155 iov_iter_truncate(to, AUX_MAX_OFFSET - pos);
166 res = drm_dp_dpcd_read(aux_dev->aux, pos, buf, todo);
176 pos += res;
179 if (pos != iocb->ki_pos)
180 res = pos - iocb->ki_pos;
181 iocb->ki_pos = pos;
192 loff_t pos = iocb->ki_pos; local
198 iov_iter_truncate(from, AUX_MAX_OFFSET - pos);
214 res = drm_dp_dpcd_write(aux_dev->aux, pos, bu
[all...]
/linux-master/mm/kmsan/
H A Dcore.c255 size_t pos = 0; local
260 while (pos < size) {
261 chunk_size = min(size - pos,
262 PAGE_SIZE - ((addr64 + pos) % PAGE_SIZE));
263 shadow = kmsan_get_metadata((void *)(addr64 + pos),
273 cur_off_start, pos - 1, user_addr,
279 pos += chunk_size;
291 cur_off_start, pos + i - 1,
299 origin = kmsan_get_metadata((void *)(addr64 + pos + i),
311 cur_off_start, pos
[all...]
/linux-master/fs/orangefs/
H A Ddir.c43 * The position pointer (ctx->pos) encodes the part and offset on which
196 i = ctx->pos & ~PART_MASK;
232 ctx->pos = (ctx->pos & PART_MASK) | i;
245 count = ((ctx->pos & PART_MASK) >> PART_SHIFT) - 1;
271 ctx->pos = (ctx->pos & PART_MASK) +
311 if (ctx->pos == 0) {
314 ctx->pos++;
316 if (ctx->pos
[all...]
/linux-master/fs/btrfs/
H A Dzoned.h56 int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos,
101 static inline int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos, argument
276 static inline bool btrfs_dev_is_sequential(struct btrfs_device *device, u64 pos) argument
283 return test_bit(pos >> zone_info->zone_size_shift, zone_info->seq_zones);
286 static inline bool btrfs_dev_is_empty_zone(struct btrfs_device *device, u64 pos) argument
293 return test_bit(pos >> zone_info->zone_size_shift, zone_info->empty_zones);
297 u64 pos, bool set)
305 zno = pos >> zone_info->zone_size_shift;
312 static inline void btrfs_dev_set_zone_empty(struct btrfs_device *device, u64 pos) argument
314 btrfs_dev_set_empty_zone_bit(device, pos, tru
296 btrfs_dev_set_empty_zone_bit(struct btrfs_device *device, u64 pos, bool set) argument
317 btrfs_dev_clear_zone_empty(struct btrfs_device *device, u64 pos) argument
341 btrfs_check_super_location(struct btrfs_device *device, u64 pos) argument
[all...]

Completed in 268 milliseconds

<<11121314151617181920>>