/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | debugfs.c | 28 int pos, budget; local 44 pos = scnprintf(buf, sizeof(buf), "%d\n", budget); 46 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); 257 int pos; local 260 pos = scnprintf(buf, sizeof(buf), "disabled\n"); 262 pos = scnprintf(buf, sizeof(buf), "%d\n", mvm->temperature); 264 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); 324 int pos, ret; local 337 pos = scnprintf(buf, sizeof(buf), "%d\n", temp); 339 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); 349 int pos = 0; local 390 int err, pos; local 410 int i, pos = 0, bufsz = sizeof(buf); local 517 int pos; local 534 int pos = 0; local 572 iwl_mvm_coex_dump_mbox(struct iwl_bt_coex_profile_notif *notif, char *buf, int pos, int bufsz) argument 637 int ret, pos = 0, bufsz = sizeof(char) * 1024; local 682 int pos = 0; local 755 char *buff, *pos, *endpos; local 790 char *buff, *pos, *endpos; local 973 int pos; local 1002 int pos = 0; local 1196 char *buff, *pos, *endpos; local 1292 char *buff, *pos, *endpos; local 1413 int pos = 0; local 1664 int pos = 0; local 1886 int pos = 0; local 2037 unsigned int pos = 0; local 2121 int i, j, pos = 0; local [all...] |
/linux-master/include/linux/ |
H A D | list_nulls.h | 122 * @pos: the &struct hlist_node to use as a loop cursor. 127 #define hlist_nulls_for_each_entry(tpos, pos, head, member) \ 128 for (pos = (head)->first; \ 129 (!is_a_nulls(pos)) && \ 130 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1;}); \ 131 pos = pos->next) 136 * @pos: the &struct hlist_node to use as a loop cursor. 140 #define hlist_nulls_for_each_entry_from(tpos, pos, member) \ 141 for (; (!is_a_nulls(pos)) [all...] |
H A D | min_heap.h | 33 /* Sift the element at pos down the heap. */ 35 void min_heapify(struct min_heap *heap, int pos, argument 40 void *root = data + pos * func->elem_size; 41 int i = pos, j; 57 while (i != pos && func->less(root, data + i * func->elem_size)) 62 while (i != pos) { 116 int pos; local 122 pos = heap->nr; 123 memcpy(data + (pos * func->elem_size), element, func->elem_size); 126 /* Sift child at pos u [all...] |
/linux-master/tools/usb/usbip/libsrc/ |
H A D | list.h | 108 * @pos: the &struct list_head to use as a loop cursor. 111 #define list_for_each(pos, head) \ 112 for (pos = (head)->next; pos != (head); pos = pos->next) 116 * @pos: the &struct list_head to use as a loop cursor. 120 #define list_for_each_safe(pos, n, head) \ 121 for (pos = (head)->next, n = pos [all...] |
/linux-master/drivers/iio/position/ |
H A D | Makefile | 8 obj-$(CONFIG_IQS624_POS) += iqs624-pos.o
|
/linux-master/net/netfilter/ |
H A D | nf_flow_table_procfs.c | 6 static void *nf_flow_table_cpu_seq_start(struct seq_file *seq, loff_t *pos) argument 11 if (*pos == 0) 14 for (cpu = *pos - 1; cpu < nr_cpu_ids; ++cpu) { 17 *pos = cpu + 1; 24 static void *nf_flow_table_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument 29 for (cpu = *pos; cpu < nr_cpu_ids; ++cpu) { 32 *pos = cpu + 1; 35 (*pos)++;
|
/linux-master/fs/bcachefs/ |
H A D | btree_gc.h | 31 * mark with the gc pos seqlock held, and bch_mark_bucket checks against the gc 40 .pos = POS_MIN, 48 bpos_cmp(l.pos, r.pos) ?: 64 struct bpos pos, unsigned level) 68 .pos = pos, 94 static inline bool gc_visited(struct bch_fs *c, struct gc_pos pos) argument 101 ret = gc_pos_cmp(pos, c->gc_pos) <= 0; 63 gc_pos_btree(enum btree_id id, struct bpos pos, unsigned level) argument
|
/linux-master/fs/freevxfs/ |
H A D | vxfs_lookup.c | 64 loff_t pos = 0; local 67 while (pos < limit) { 70 int pg_ofs = pos & ~PAGE_MASK; 72 pp = vxfs_get_page(ip->i_mapping, pos >> PAGE_SHIFT); 77 while (pg_ofs < PAGE_SIZE && pos < limit) { 80 if ((pos & (bsize - 1)) < 4) { 83 (kaddr + (pos & ~PAGE_MASK)); 86 pos += overhead; 92 pos += bsize - 1; 93 pos 195 loff_t pos, limit; local [all...] |
/linux-master/drivers/vfio/pci/ |
H A D | vfio_pci_igd.c | 38 * @pos: Increased by bytes on return. 40 * @bytes: Bytes to copy and adjust off, pos and remaining. 50 loff_t *pos, 58 *pos += bytes; 70 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK, off = 0; local 73 if (pos >= vdev->region[i].size || iswrite) 76 count = min_t(size_t, count, vdev->region[i].size - pos); 80 if (remaining && pos < OPREGION_VERSION) { 81 size_t bytes = min_t(size_t, remaining, OPREGION_VERSION - pos); 84 opregionvbt->opregion + pos, 47 igd_opregion_shift_copy(char __user *dst, loff_t *off, void *src, loff_t *pos, size_t *remaining, size_t bytes) argument 287 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK; local [all...] |
/linux-master/arch/mips/loongson2ef/lemote-2f/ |
H A D | clock.c | 36 struct cpufreq_frequency_table *pos; local 39 cpufreq_for_each_valid_entry(pos, loongson2_clockmod_table) 40 if (rate_khz == pos->frequency) 42 if (rate_khz != pos->frequency) 46 regval = (regval & ~0x7) | (pos->driver_data - 1);
|
/linux-master/tools/perf/util/ |
H A D | strlist.h | 74 * @pos: the &struct str_node to use as a loop cursor. 77 #define strlist__for_each_entry(pos, slist) \ 78 for (pos = strlist__first(slist); pos; pos = strlist__next(pos)) 83 * @pos: the &struct str_node to use as a loop cursor. 87 #define strlist__for_each_entry_safe(pos, n, slist) \ 88 for (pos = strlist__first(slist), n = strlist__next(pos); po [all...] |
/linux-master/tools/perf/ui/browsers/ |
H A D | header.c | 100 char *ptr, *pos; local 108 for (pos = ptr, argc = 0; (pos = strchr(pos, '\n')) != NULL; pos++) 115 argv[0] = pos = ptr; 116 for (i = 1; (pos = strchr(pos, '\n')) != NULL; i++) { 117 *pos++ = '\0'; 118 argv[i] = pos; [all...] |
/linux-master/drivers/pci/ |
H A D | vc.c | 22 * @pos: starting config space position 27 static void pci_vc_save_restore_dwords(struct pci_dev *dev, int pos, argument 34 pci_read_config_dword(dev, pos + (i * 4), buf); 36 pci_write_config_dword(dev, pos + (i * 4), *buf); 43 * @pos: starting position of VC capability (VC/VC9/MFVC) 49 static void pci_vc_load_arb_table(struct pci_dev *dev, int pos) argument 53 pci_read_config_word(dev, pos + PCI_VC_PORT_CTRL, &ctrl); 54 pci_write_config_word(dev, pos + PCI_VC_PORT_CTRL, 56 if (pci_wait_for_pending(dev, pos + PCI_VC_PORT_STATUS, 66 * @pos 73 pci_vc_load_port_arb_table(struct pci_dev *dev, int pos, int res) argument 104 pci_vc_enable(struct pci_dev *dev, int pos, int res) argument 185 pci_vc_do_save_buffer(struct pci_dev *dev, int pos, struct pci_cap_saved_state *save_state, bool save) argument 358 int pos, ret; local 395 int pos; local 419 int len, pos = pci_find_ext_capability(dev, vc_caps[i].id); local [all...] |
/linux-master/sound/pci/ctxfi/ |
H A D | ctimap.c | 21 struct list_head *pos, *pre, *head; local 33 list_for_each(pos, head) { 34 pos_ent = list_entry(pos, struct imapper, list); 41 if (pos != head) { 42 pre = pos->prev; 46 __list_add(&entry->list, pos->prev, pos); 49 pos = head->next; 54 pos_ent = list_entry(pos, struct imapper, list); 99 struct list_head *pos; local [all...] |
/linux-master/drivers/acpi/acpica/ |
H A D | utprint.c | 108 char *pos; local 110 pos = string; 114 *(pos++) = '0'; 119 *(pos++) = digits[digit_index]; 124 return (pos); 206 char *pos; local 254 pos = acpi_ut_put_number(reversed_string, number, base, upper); 255 i = (s32)ACPI_PTR_DIFF(pos, reversed_string); 326 char *pos; local 334 pos [all...] |
/linux-master/net/sctp/ |
H A D | objcnt.c | 74 static void *sctp_objcnt_seq_start(struct seq_file *seq, loff_t *pos) argument 76 return (*pos >= ARRAY_SIZE(sctp_dbg_objcnt)) ? NULL : (void *)pos; 83 static void *sctp_objcnt_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument 85 ++*pos; 86 return (*pos >= ARRAY_SIZE(sctp_dbg_objcnt)) ? NULL : (void *)pos;
|
/linux-master/fs/proc/ |
H A D | devices.c | 29 static void *devinfo_start(struct seq_file *f, loff_t *pos) argument 31 if (*pos < (BLKDEV_MAJOR_MAX + CHRDEV_MAJOR_MAX)) 32 return pos; 36 static void *devinfo_next(struct seq_file *f, void *v, loff_t *pos) argument 38 (*pos)++; 39 if (*pos >= (BLKDEV_MAJOR_MAX + CHRDEV_MAJOR_MAX)) 41 return pos;
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | iters_css.c | 27 struct cgroup_subsys_state *root_css, *leaf_css, *pos; local 50 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_DESCENDANTS_POST) { 51 cur_cgrp = pos->cgroup; 56 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_DESCENDANTS_PRE) { 57 cur_cgrp = pos->cgroup; 63 bpf_for_each(css, pos, leaf_css, BPF_CGROUP_ITER_ANCESTORS_UP) 66 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_ANCESTORS_UP)
|
/linux-master/fs/smb/client/ |
H A D | smbencrypt.c | 30 #define CVAL(buf,pos) (((unsigned char *)(buf))[pos]) 31 #define SSVALX(buf,pos,val) (CVAL(buf,pos)=(val)&0xFF,CVAL(buf,pos+1)=(val)>>8) 32 #define SSVAL(buf,pos,val) SSVALX((buf),(pos),((__u16)(val)))
|
/linux-master/drivers/cpufreq/ |
H A D | freq_table.c | 19 struct cpufreq_frequency_table *pos, *table = policy->freq_table; local 24 cpufreq_for_each_valid_entry(pos, table) 25 if (pos->flags & CPUFREQ_BOOST_FREQ) 35 struct cpufreq_frequency_table *pos; local 40 cpufreq_for_each_valid_entry(pos, table) { 41 freq = pos->frequency; 44 && (pos->flags & CPUFREQ_BOOST_FREQ)) 47 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); 72 struct cpufreq_frequency_table *pos; local 81 cpufreq_for_each_valid_entry(pos, tabl 130 struct cpufreq_frequency_table *pos; local 214 struct cpufreq_frequency_table *pos, *table = policy->freq_table; local 237 struct cpufreq_frequency_table *pos, *table = policy->freq_table; local 301 struct cpufreq_frequency_table *pos, *table = policy->freq_table; local [all...] |
/linux-master/include/linux/sunrpc/ |
H A D | svc_rdma_pcl.h | 85 * @pos: the loop cursor 88 #define pcl_for_each_chunk(pos, pcl) \ 89 for (pos = list_first_entry(&(pcl)->cl_chunks, struct svc_rdma_chunk, ch_list); \ 90 &pos->ch_list != &(pcl)->cl_chunks; \ 91 pos = list_next_entry(pos, ch_list)) 95 * @pos: the loop cursor 98 #define pcl_for_each_segment(pos, chunk) \ 99 for (pos = &(chunk)->ch_segments[0]; \ 100 pos < [all...] |
/linux-master/arch/riscv/kvm/ |
H A D | tlb.c | 24 gpa_t pos; local 33 for (pos = gpa; pos < (gpa + gpsz); pos += BIT(order)) 35 : : "r" (pos >> 2), "r" (vmid) : "memory"); 38 for (pos = gpa; pos < (gpa + gpsz); pos += BIT(order)) 40 : : "r" (pos >> 2), "r" (vmid) : "memory"); 52 gpa_t pos; local 83 unsigned long pos, hgatp; local 123 unsigned long pos, hgatp; local [all...] |
/linux-master/fs/romfs/ |
H A D | internal.h | 38 extern int romfs_dev_read(struct super_block *sb, unsigned long pos, 41 unsigned long pos, size_t maxlen); 42 extern int romfs_dev_strcmp(struct super_block *sb, unsigned long pos,
|
/linux-master/drivers/zorro/ |
H A D | proc.c | 35 loff_t pos = *ppos; local 37 if (pos >= sizeof(struct ConfigDev)) 41 if (pos + nbytes > sizeof(struct ConfigDev)) 42 nbytes = sizeof(struct ConfigDev) - pos; 52 if (copy_to_user(buf, (void *)&cd + pos, nbytes)) 64 static void * zorro_seq_start(struct seq_file *m, loff_t *pos) argument 66 return (*pos < zorro_num_autocon) ? pos : NULL; 69 static void * zorro_seq_next(struct seq_file *m, void *v, loff_t *pos) argument 71 (*pos) [all...] |
/linux-master/drivers/mtd/nand/ |
H A D | core.c | 18 * @pos: position pointing to the block we want to check 22 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) argument 31 entry = nanddev_bbt_pos_to_entry(nand, pos); 35 if (nand->ops->isbad(nand, pos)) 50 return nand->ops->isbad(nand, pos); 57 * @pos: position of the block to mark bad 64 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) argument 70 if (nanddev_isbad(nand, pos)) 73 ret = nand->ops->markbad(nand, pos); 76 nanddev_pos_to_offs(nand, pos), re 105 nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) argument 129 nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) argument 158 struct nand_pos pos, last; local 194 struct nand_pos pos, end; local [all...] |