Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 200 of 1668) sorted by relevance

123456789

/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
Ddebugfs.c106 int pos = 0; in iwl_dbgfs_sram_read() local
135 pos += scnprintf(buf + pos, bufsz - pos, "sram_len: 0x%x\n", in iwl_dbgfs_sram_read()
137 pos += scnprintf(buf + pos, bufsz - pos, "sram_offset: 0x%x\n", in iwl_dbgfs_sram_read()
150 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
154 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
157 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
170 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read()
172 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read()
174 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read()
178 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read()
[all …]
/linux-4.4.14/drivers/net/wireless/iwlegacy/
D4965-debug.c63 int pos = 0; in il4965_ucode_rx_stats_read() local
107 pos += il4965_stats_flag(il, buf, bufsz); in il4965_ucode_rx_stats_read()
108 pos += in il4965_ucode_rx_stats_read()
109 scnprintf(buf + pos, bufsz - pos, fmt_header, in il4965_ucode_rx_stats_read()
111 pos += in il4965_ucode_rx_stats_read()
112 scnprintf(buf + pos, bufsz - pos, fmt_table, "ina_cnt:", in il4965_ucode_rx_stats_read()
115 pos += in il4965_ucode_rx_stats_read()
116 scnprintf(buf + pos, bufsz - pos, fmt_table, "fina_cnt:", in il4965_ucode_rx_stats_read()
119 pos += in il4965_ucode_rx_stats_read()
120 scnprintf(buf + pos, bufsz - pos, fmt_table, "plcp_err:", in il4965_ucode_rx_stats_read()
[all …]
D3945-debug.c56 int pos = 0; in il3945_ucode_rx_stats_read() local
94 pos += il3945_stats_flag(il, buf, bufsz); in il3945_ucode_rx_stats_read()
95 pos += in il3945_ucode_rx_stats_read()
96 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
100 pos += in il3945_ucode_rx_stats_read()
101 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
105 pos += in il3945_ucode_rx_stats_read()
106 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
110 pos += in il3945_ucode_rx_stats_read()
111 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
[all …]
Ddebug.c237 int pos = 0; in il_dbgfs_tx_stats_read() local
246 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in il_dbgfs_tx_stats_read()
248 pos += in il_dbgfs_tx_stats_read()
249 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read()
252 pos += scnprintf(buf + pos, bufsz - pos, "Control\n"); in il_dbgfs_tx_stats_read()
254 pos += in il_dbgfs_tx_stats_read()
255 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read()
258 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n"); in il_dbgfs_tx_stats_read()
259 pos += in il_dbgfs_tx_stats_read()
260 scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in il_dbgfs_tx_stats_read()
[all …]
/linux-4.4.14/include/linux/
Dlist.h392 #define list_next_entry(pos, member) \ argument
393 list_entry((pos)->member.next, typeof(*(pos)), member)
400 #define list_prev_entry(pos, member) \ argument
401 list_entry((pos)->member.prev, typeof(*(pos)), member)
408 #define list_for_each(pos, head) \ argument
409 for (pos = (head)->next; pos != (head); pos = pos->next)
416 #define list_for_each_prev(pos, head) \ argument
417 for (pos = (head)->prev; pos != (head); pos = pos->prev)
425 #define list_for_each_safe(pos, n, head) \ argument
426 for (pos = (head)->next, n = pos->next; pos != (head); \
[all …]
Drculist.h302 #define list_for_each_entry_rcu(pos, head, member) \ argument
303 for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
304 &pos->member != (head); \
305 pos = list_entry_rcu(pos->member.next, typeof(*pos), member))
316 #define list_for_each_entry_continue_rcu(pos, head, member) \ argument
317 for (pos = list_entry_rcu(pos->member.next, typeof(*pos), member); \
318 &pos->member != (head); \
319 pos = list_entry_rcu(pos->member.next, typeof(*pos), member))
459 #define __hlist_for_each_rcu(pos, head) \ argument
460 for (pos = rcu_dereference(hlist_first_rcu(head)); \
[all …]
Dllist.h104 #define llist_for_each(pos, node) \ argument
105 for ((pos) = (node); pos; (pos) = (pos)->next)
122 #define llist_for_each_entry(pos, node, member) \ argument
123 for ((pos) = llist_entry((node), typeof(*(pos)), member); \
124 &(pos)->member != NULL; \
125 (pos) = llist_entry((pos)->member.next, typeof(*(pos)), member))
144 #define llist_for_each_entry_safe(pos, n, node, member) \ argument
145 for (pos = llist_entry((node), typeof(*pos), member); \
146 &pos->member != NULL && \
147 (n = llist_entry(pos->member.next, typeof(*n), member), true); \
[all …]
Dregset.h60 unsigned int pos, unsigned int count,
81 unsigned int pos, unsigned int count,
220 static inline int user_regset_copyout(unsigned int *pos, unsigned int *count, in user_regset_copyout() argument
227 BUG_ON(*pos < start_pos); in user_regset_copyout()
228 if (end_pos < 0 || *pos < end_pos) { in user_regset_copyout()
230 : min(*count, end_pos - *pos)); in user_regset_copyout()
231 data += *pos - start_pos; in user_regset_copyout()
239 *pos += copy; in user_regset_copyout()
245 static inline int user_regset_copyin(unsigned int *pos, unsigned int *count, in user_regset_copyin() argument
252 BUG_ON(*pos < start_pos); in user_regset_copyin()
[all …]
Dplist.h151 #define plist_for_each(pos, head) \ argument
152 list_for_each_entry(pos, &(head)->node_list, node_list)
161 #define plist_for_each_continue(pos, head) \ argument
162 list_for_each_entry_continue(pos, &(head)->node_list, node_list)
172 #define plist_for_each_safe(pos, n, head) \ argument
173 list_for_each_entry_safe(pos, n, &(head)->node_list, node_list)
181 #define plist_for_each_entry(pos, head, mem) \ argument
182 list_for_each_entry(pos, &(head)->node_list, mem.node_list)
193 #define plist_for_each_entry_continue(pos, head, m) \ argument
194 list_for_each_entry_continue(pos, &(head)->node_list, m.node_list)
[all …]
Drhashtable.h372 #define rht_entry(tpos, pos, member) \ argument
373 ({ tpos = container_of(pos, typeof(*tpos), member); 1; })
382 #define rht_for_each_continue(pos, head, tbl, hash) \ argument
383 for (pos = rht_dereference_bucket(head, tbl, hash); \
384 !rht_is_a_nulls(pos); \
385 pos = rht_dereference_bucket((pos)->next, tbl, hash))
393 #define rht_for_each(pos, tbl, hash) \ argument
394 rht_for_each_continue(pos, (tbl)->buckets[hash], tbl, hash)
405 #define rht_for_each_entry_continue(tpos, pos, head, tbl, hash, member) \ argument
406 for (pos = rht_dereference_bucket(head, tbl, hash); \
[all …]
Dlist_nulls.h99 #define hlist_nulls_for_each_entry(tpos, pos, head, member) \ argument
100 for (pos = (head)->first; \
101 (!is_a_nulls(pos)) && \
102 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1;}); \
103 pos = pos->next)
112 #define hlist_nulls_for_each_entry_from(tpos, pos, member) \ argument
113 for (; (!is_a_nulls(pos)) && \
114 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1;}); \
115 pos = pos->next)
Dlist_bl.h142 #define hlist_bl_for_each_entry(tpos, pos, head, member) \ argument
143 for (pos = hlist_bl_first(head); \
144 pos && \
145 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1;}); \
146 pos = pos->next)
156 #define hlist_bl_for_each_entry_safe(tpos, pos, n, head, member) \ argument
157 for (pos = hlist_bl_first(head); \
158 pos && ({ n = pos->next; 1; }) && \
159 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1;}); \
160 pos = n)
Dcgroup.h115 struct cgroup_subsys_state *css_next_child(struct cgroup_subsys_state *pos,
117 struct cgroup_subsys_state *css_next_descendant_pre(struct cgroup_subsys_state *pos,
119 struct cgroup_subsys_state *css_rightmost_descendant(struct cgroup_subsys_state *pos);
120 struct cgroup_subsys_state *css_next_descendant_post(struct cgroup_subsys_state *pos,
151 #define css_for_each_child(pos, parent) \ argument
152 for ((pos) = css_next_child(NULL, (parent)); (pos); \
153 (pos) = css_next_child((pos), (parent)))
211 #define css_for_each_descendant_pre(pos, css) \ argument
212 for ((pos) = css_next_descendant_pre(NULL, (css)); (pos); \
213 (pos) = css_next_descendant_pre((pos), (css)))
[all …]
Dif_tunnel.h13 #define for_each_ip_tunnel_rcu(pos, start) \ argument
14 for (pos = rcu_dereference(start); pos; pos = rcu_dereference(pos->next))
Drculist_nulls.h113 #define hlist_nulls_for_each_entry_rcu(tpos, pos, head, member) \ argument
115 pos = rcu_dereference_raw(hlist_nulls_first_rcu(head)); \
116 (!is_a_nulls(pos)) && \
117 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1; }); \
118 pos = rcu_dereference_raw(hlist_nulls_next_rcu(pos)))
Drculist_bl.h122 #define hlist_bl_for_each_entry_rcu(tpos, pos, head, member) \ argument
123 for (pos = hlist_bl_first_rcu(head); \
124 pos && \
125 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1; }); \
126 pos = rcu_dereference_raw(pos->next))
Drbtree.h120 #define rbtree_postorder_for_each_entry_safe(pos, n, root, field) \ argument
121 for (pos = rb_entry_safe(rb_first_postorder(root), typeof(*pos), field); \
122 pos && ({ n = rb_entry_safe(rb_next_postorder(&pos->field), \
123 typeof(*pos), field); 1; }); \
124 pos = n)
Dseq_file.h37 void * (*start) (struct seq_file *m, loff_t *pos);
39 void * (*next) (struct seq_file *m, void *v, loff_t *pos);
198 loff_t pos);
200 loff_t pos);
209 loff_t pos);
211 loff_t pos);
216 loff_t pos);
218 loff_t pos);
224 … struct hlist_node *seq_hlist_start_percpu(struct hlist_head __percpu *head, int *cpu, loff_t pos);
226 …list_node *seq_hlist_next_percpu(void *v, struct hlist_head __percpu *head, int *cpu, loff_t *pos);
/linux-4.4.14/net/ieee802154/
Dheader_ops.c26 int pos = 0; in ieee802154_hdr_push_addr() local
32 memcpy(buf + pos, &addr->pan_id, 2); in ieee802154_hdr_push_addr()
33 pos += 2; in ieee802154_hdr_push_addr()
38 memcpy(buf + pos, &addr->short_addr, 2); in ieee802154_hdr_push_addr()
39 pos += 2; in ieee802154_hdr_push_addr()
43 memcpy(buf + pos, &addr->extended_addr, IEEE802154_ADDR_LEN); in ieee802154_hdr_push_addr()
44 pos += IEEE802154_ADDR_LEN; in ieee802154_hdr_push_addr()
51 return pos; in ieee802154_hdr_push_addr()
57 int pos = 5; in ieee802154_hdr_push_sechdr() local
64 return pos; in ieee802154_hdr_push_sechdr()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvif/
Dlist.h314 #define list_for_each_entry(pos, head, member) \ argument
315 for (pos = __container_of((head)->next, pos, member); \
316 &pos->member != (head); \
317 pos = __container_of(pos->member.next, pos, member))
326 #define list_for_each_entry_safe(pos, tmp, head, member) \ argument
327 for (pos = __container_of((head)->next, pos, member), \
328 tmp = __container_of(pos->member.next, pos, member); \
329 &pos->member != (head); \
330 pos = tmp, tmp = __container_of(pos->member.next, tmp, member))
333 #define list_for_each_entry_reverse(pos, head, member) \ argument
[all …]
/linux-4.4.14/drivers/gpu/drm/radeon/
Dmkregtable.c371 #define list_for_each(pos, head) \ argument
372 for (pos = (head)->next; prefetch(pos->next), pos != (head); \
373 pos = pos->next)
380 #define list_for_each_prev(pos, head) \ argument
381 for (pos = (head)->prev; prefetch(pos->prev), pos != (head); \
382 pos = pos->prev)
390 #define list_for_each_safe(pos, n, head) \ argument
391 for (pos = (head)->next, n = pos->next; pos != (head); \
392 pos = n, n = pos->next)
400 #define list_for_each_prev_safe(pos, n, head) \ argument
[all …]
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Ddebugfs.c196 int pos; in iwl_dbgfs_set_nic_temperature_read() local
199 pos = scnprintf(buf , sizeof(buf), "disabled\n"); in iwl_dbgfs_set_nic_temperature_read()
201 pos = scnprintf(buf , sizeof(buf), "%d\n", mvm->temperature); in iwl_dbgfs_set_nic_temperature_read()
203 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read()
263 int pos, temp; in iwl_dbgfs_nic_temp_read() local
275 pos = scnprintf(buf , sizeof(buf), "%d\n", temp); in iwl_dbgfs_nic_temp_read()
277 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read()
286 int i, pos = 0, bufsz = sizeof(buf); in iwl_dbgfs_stations_read() local
291 pos += scnprintf(buf + pos, bufsz - pos, "%.2d: ", i); in iwl_dbgfs_stations_read()
295 pos += scnprintf(buf + pos, bufsz - pos, "N/A\n"); in iwl_dbgfs_stations_read()
[all …]
Ddebugfs-vif.c201 int pos; in iwl_dbgfs_tx_pwr_lmt_read() local
203 pos = scnprintf(buf, bufsz, "bss limit = %d\n", in iwl_dbgfs_tx_pwr_lmt_read()
206 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_tx_pwr_lmt_read()
218 int pos; in iwl_dbgfs_pm_params_read() local
220 pos = iwl_mvm_power_mac_dbgfs_read(mvm, vif, buf, bufsz); in iwl_dbgfs_pm_params_read()
222 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_pm_params_read()
236 int pos = 0; in iwl_dbgfs_mac_params_read() local
245 pos += scnprintf(buf+pos, bufsz-pos, "type: ibss\n"); in iwl_dbgfs_mac_params_read()
248 pos += scnprintf(buf+pos, bufsz-pos, "type: bss\n"); in iwl_dbgfs_mac_params_read()
251 pos += scnprintf(buf+pos, bufsz-pos, "type: ap\n"); in iwl_dbgfs_mac_params_read()
[all …]
Dpower.c715 int pos = 0; in iwl_mvm_power_mac_dbgfs_read() local
721 pos += scnprintf(buf+pos, bufsz-pos, "power_scheme = %d\n", in iwl_mvm_power_mac_dbgfs_read()
723 pos += scnprintf(buf+pos, bufsz-pos, "flags = 0x%x\n", in iwl_mvm_power_mac_dbgfs_read()
725 pos += scnprintf(buf+pos, bufsz-pos, "keep_alive = %d\n", in iwl_mvm_power_mac_dbgfs_read()
729 return pos; in iwl_mvm_power_mac_dbgfs_read()
731 pos += scnprintf(buf+pos, bufsz-pos, "skip_over_dtim = %d\n", in iwl_mvm_power_mac_dbgfs_read()
734 pos += scnprintf(buf+pos, bufsz-pos, "skip_dtim_periods = %d\n", in iwl_mvm_power_mac_dbgfs_read()
737 pos += scnprintf(buf+pos, bufsz-pos, "rx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read()
739 pos += scnprintf(buf+pos, bufsz-pos, "tx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read()
743 pos += scnprintf(buf+pos, bufsz-pos, in iwl_mvm_power_mac_dbgfs_read()
[all …]
/linux-4.4.14/drivers/pci/
Dats.c22 int pos; in pci_ats_init() local
24 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ATS); in pci_ats_init()
25 if (!pos) in pci_ats_init()
28 dev->ats_cap = pos; in pci_ats_init()
154 int pos; in pci_enable_pri() local
156 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_PRI); in pci_enable_pri()
157 if (!pos) in pci_enable_pri()
160 pci_read_config_word(pdev, pos + PCI_PRI_CTRL, &control); in pci_enable_pri()
161 pci_read_config_word(pdev, pos + PCI_PRI_STATUS, &status); in pci_enable_pri()
166 pci_read_config_dword(pdev, pos + PCI_PRI_MAX_REQ, &max_requests); in pci_enable_pri()
[all …]
Dvc.c27 static void pci_vc_save_restore_dwords(struct pci_dev *dev, int pos, in pci_vc_save_restore_dwords() argument
34 pci_read_config_dword(dev, pos + (i * 4), buf); in pci_vc_save_restore_dwords()
36 pci_write_config_dword(dev, pos + (i * 4), *buf); in pci_vc_save_restore_dwords()
49 static void pci_vc_load_arb_table(struct pci_dev *dev, int pos) in pci_vc_load_arb_table() argument
53 pci_read_config_word(dev, pos + PCI_VC_PORT_CTRL, &ctrl); in pci_vc_load_arb_table()
54 pci_write_config_word(dev, pos + PCI_VC_PORT_CTRL, in pci_vc_load_arb_table()
56 if (pci_wait_for_pending(dev, pos + PCI_VC_PORT_STATUS, in pci_vc_load_arb_table()
73 static void pci_vc_load_port_arb_table(struct pci_dev *dev, int pos, int res) in pci_vc_load_port_arb_table() argument
78 ctrl_pos = pos + PCI_VC_RES_CTRL + (res * PCI_CAP_VC_PER_VC_SIZEOF); in pci_vc_load_port_arb_table()
79 status_pos = pos + PCI_VC_RES_STATUS + (res * PCI_CAP_VC_PER_VC_SIZEOF); in pci_vc_load_port_arb_table()
[all …]
Daccess.c25 #define PCI_word_BAD (pos & 1)
26 #define PCI_dword_BAD (pos & 3)
30 (struct pci_bus *bus, unsigned int devfn, int pos, type *value) \
37 res = bus->ops->read(bus, devfn, pos, len, &data); \
45 (struct pci_bus *bus, unsigned int devfn, int pos, type value) \
51 res = bus->ops->write(bus, devfn, pos, len, value); \
185 ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf) in pci_read_vpd() argument
189 return dev->vpd->ops->read(dev, pos, count, buf); in pci_read_vpd()
201 ssize_t pci_write_vpd(struct pci_dev *dev, loff_t pos, size_t count, const void *buf) in pci_write_vpd() argument
205 return dev->vpd->ops->write(dev, pos, count, buf); in pci_write_vpd()
[all …]
Dproc.c30 unsigned int pos = *ppos; in proc_bus_pci_read() local
46 if (pos >= size) in proc_bus_pci_read()
50 if (pos + nbytes > size) in proc_bus_pci_read()
51 nbytes = size - pos; in proc_bus_pci_read()
59 if ((pos & 1) && cnt) { in proc_bus_pci_read()
61 pci_user_read_config_byte(dev, pos, &val); in proc_bus_pci_read()
64 pos++; in proc_bus_pci_read()
68 if ((pos & 3) && cnt > 2) { in proc_bus_pci_read()
70 pci_user_read_config_word(dev, pos, &val); in proc_bus_pci_read()
73 pos += 2; in proc_bus_pci_read()
[all …]
Dhtirq.c33 pci_write_config_byte(cfg->dev, cfg->pos + 2, cfg->idx); in write_ht_irq_msg()
34 pci_write_config_dword(cfg->dev, cfg->pos + 4, msg->address_lo); in write_ht_irq_msg()
37 pci_write_config_byte(cfg->dev, cfg->pos + 2, cfg->idx + 1); in write_ht_irq_msg()
38 pci_write_config_dword(cfg->dev, cfg->pos + 4, msg->address_hi); in write_ht_irq_msg()
81 int max_irq, pos, irq; in __ht_create_irq() local
85 pos = pci_find_ht_capability(dev, HT_CAPTYPE_IRQ); in __ht_create_irq()
86 if (!pos) in __ht_create_irq()
91 pci_write_config_byte(dev, pos + 2, 1); in __ht_create_irq()
92 pci_read_config_dword(dev, pos + 4, &data); in __ht_create_irq()
99 irq = arch_setup_ht_irq(idx, pos, dev, update); in __ht_create_irq()
Diov.c48 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, nr_virtfn); in pci_iov_set_numvfs()
49 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_OFFSET, &iov->offset); in pci_iov_set_numvfs()
50 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_STRIDE, &iov->stride); in pci_iov_set_numvfs()
138 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_DID, &virtfn->device); in virtfn_add()
256 pci_read_config_word(dev, iov->pos + PCI_SRIOV_INITIAL_VF, &initial); in sriov_enable()
309 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl); in sriov_enable()
342 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl); in sriov_enable()
368 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl); in sriov_disable()
379 static int sriov_init(struct pci_dev *dev, int pos) in sriov_init() argument
394 pci_read_config_word(dev, pos + PCI_SRIOV_CTRL, &ctrl); in sriov_init()
[all …]
Dprobe.c175 struct resource *res, unsigned int pos) in __pci_read_base() argument
195 pci_read_config_dword(dev, pos, &l); in __pci_read_base()
196 pci_write_config_dword(dev, pos, l | mask); in __pci_read_base()
197 pci_read_config_dword(dev, pos, &sz); in __pci_read_base()
198 pci_write_config_dword(dev, pos, l); in __pci_read_base()
236 pci_read_config_dword(dev, pos + 4, &l); in __pci_read_base()
237 pci_write_config_dword(dev, pos + 4, ~0); in __pci_read_base()
238 pci_read_config_dword(dev, pos + 4, &sz); in __pci_read_base()
239 pci_write_config_dword(dev, pos + 4, l); in __pci_read_base()
255 pos); in __pci_read_base()
[all …]
/linux-4.4.14/drivers/misc/mei/
Ddebugfs.c35 int pos = 0; in mei_dbgfs_read_meclients() local
52 pos += scnprintf(buf + pos, bufsz - pos, HDR); in mei_dbgfs_read_meclients()
61 pos += scnprintf(buf + pos, bufsz - pos, in mei_dbgfs_read_meclients()
77 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); in mei_dbgfs_read_meclients()
96 int pos = 0; in mei_dbgfs_read_active() local
106 pos += scnprintf(buf + pos, bufsz - pos, in mei_dbgfs_read_active()
117 pos += scnprintf(buf + pos, bufsz - pos, in mei_dbgfs_read_active()
125 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); in mei_dbgfs_read_active()
142 int pos = 0; in mei_dbgfs_read_devstate() local
148 pos += scnprintf(buf + pos, bufsz - pos, "dev: %s\n", in mei_dbgfs_read_devstate()
[all …]
/linux-4.4.14/security/tomoyo/
Drealpath.c95 char *pos = ERR_PTR(-ENOMEM); in tomoyo_get_absolute_path() local
98 pos = d_absolute_path(path, buffer, buflen - 1); in tomoyo_get_absolute_path()
99 if (!IS_ERR(pos) && *pos == '/' && pos[1]) { in tomoyo_get_absolute_path()
107 return pos; in tomoyo_get_absolute_path()
124 char *pos = ERR_PTR(-ENOMEM); in tomoyo_get_dentry_path() local
126 pos = dentry_path_raw(dentry, buffer, buflen - 1); in tomoyo_get_dentry_path()
127 if (!IS_ERR(pos) && *pos == '/' && pos[1]) { in tomoyo_get_dentry_path()
135 return pos; in tomoyo_get_dentry_path()
151 char *pos = tomoyo_get_dentry_path(dentry, buffer, buflen); in tomoyo_get_local_path() local
152 if (IS_ERR(pos)) in tomoyo_get_local_path()
[all …]
Daudit.c29 unsigned long pos = bprm->p; in tomoyo_print_bprm() local
30 int offset = pos % PAGE_SIZE; in tomoyo_print_bprm()
44 if (!tomoyo_dump_page(bprm, pos, dump)) in tomoyo_print_bprm()
46 pos += PAGE_SIZE - offset; in tomoyo_print_bprm()
154 int pos; in tomoyo_print_header() local
161 pos = snprintf(buffer, tomoyo_buffer_len - 1, in tomoyo_print_header()
193 pos += snprintf(buffer + pos, in tomoyo_print_header()
194 tomoyo_buffer_len - 1 - pos, in tomoyo_print_header()
203 pos += snprintf(buffer + pos, tomoyo_buffer_len - 1 - pos, in tomoyo_print_header()
213 pos += snprintf(buffer + pos, in tomoyo_print_header()
[all …]
/linux-4.4.14/fs/romfs/
Dstorage.c27 static int romfs_mtd_read(struct super_block *sb, unsigned long pos, in romfs_mtd_read() argument
33 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf); in romfs_mtd_read()
41 unsigned long pos, size_t maxlen) in romfs_mtd_strnlen() argument
52 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strnlen()
59 pos += len; in romfs_mtd_strnlen()
70 static int romfs_mtd_strcmp(struct super_block *sb, unsigned long pos, in romfs_mtd_strcmp() argument
83 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strcmp()
91 pos += len; in romfs_mtd_strcmp()
107 static int romfs_blk_read(struct super_block *sb, unsigned long pos, in romfs_blk_read() argument
116 offset = pos & (ROMBSIZE - 1); in romfs_blk_read()
[all …]
/linux-4.4.14/scripts/dtc/
Dsrcpos.c214 void srcpos_update(struct srcpos *pos, const char *text, int len) in srcpos_update() argument
218 pos->file = current_srcfile; in srcpos_update()
220 pos->first_line = current_srcfile->lineno; in srcpos_update()
221 pos->first_column = current_srcfile->colno; in srcpos_update()
234 pos->last_line = current_srcfile->lineno; in srcpos_update()
235 pos->last_column = current_srcfile->colno; in srcpos_update()
239 srcpos_copy(struct srcpos *pos) in srcpos_copy() argument
244 memcpy(pos_new, pos, sizeof(struct srcpos)); in srcpos_copy()
252 srcpos_dump(struct srcpos *pos) in srcpos_dump() argument
255 pos->file ? (char *) pos->file : "<no file>"); in srcpos_dump()
[all …]
Dsrcpos.h105 extern void srcpos_update(struct srcpos *pos, const char *text, int len);
106 extern struct srcpos *srcpos_copy(struct srcpos *pos);
107 extern char *srcpos_string(struct srcpos *pos);
108 extern void srcpos_dump(struct srcpos *pos);
110 extern void srcpos_verror(struct srcpos *pos, const char *prefix,
113 extern void srcpos_error(struct srcpos *pos, const char *prefix,
/linux-4.4.14/arch/metag/kernel/
Dptrace.c28 unsigned int pos, unsigned int count, in metag_gp_regs_copyout() argument
36 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
41 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
50 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
55 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
60 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
68 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
73 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
78 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
85 unsigned int pos, unsigned int count, in metag_gp_regs_copyin() argument
[all …]
/linux-4.4.14/drivers/acpi/acpica/
Dutprint.c147 char *pos; in acpi_ut_put_number() local
149 pos = string; in acpi_ut_put_number()
153 *(pos++) = '0'; in acpi_ut_put_number()
158 *(pos++) = digits[digit_index]; in acpi_ut_put_number()
163 return (pos); in acpi_ut_put_number()
245 char *pos; in acpi_ut_format_number() local
293 pos = acpi_ut_put_number(reversed_string, number, base, upper); in acpi_ut_format_number()
294 i = ACPI_PTR_DIFF(pos, reversed_string); in acpi_ut_format_number()
366 char *pos; in acpi_ut_vsnprintf() local
374 pos = string; in acpi_ut_vsnprintf()
[all …]
/linux-4.4.14/fs/
Dread_write.c380 loff_t pos; in rw_verify_area() local
386 pos = *ppos; in rw_verify_area()
387 if (unlikely(pos < 0)) { in rw_verify_area()
390 if (count >= -pos) /* both values are in 0..LLONG_MAX */ in rw_verify_area()
392 } else if (unlikely((loff_t) (pos + count) < 0)) { in rw_verify_area()
400 inode, file, pos, count); in rw_verify_area()
429 loff_t *pos) in __vfs_read() argument
432 return file->f_op->read(file, buf, count, pos); in __vfs_read()
434 return new_sync_read(file, buf, count, pos); in __vfs_read()
440 ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) in vfs_read() argument
[all …]
Dseq_file.c102 loff_t pos = 0, index; in traverse() local
132 if (pos + m->count > offset) { in traverse()
133 m->from = offset - pos; in traverse()
138 pos += m->count; in traverse()
140 if (pos == offset) { in traverse()
172 loff_t pos; in seq_read() local
231 pos = m->index; in seq_read()
232 p = m->op->start(m, &pos); in seq_read()
243 p = m->op->next(m, p, &pos); in seq_read()
244 m->index = pos; in seq_read()
[all …]
/linux-4.4.14/arch/sparc/kernel/
Dptrace_32.c50 unsigned int pos, unsigned int count, in genregs32_get() argument
62 pos /= sizeof(reg); in genregs32_get()
66 for (; count > 0 && pos < 16; count--) in genregs32_get()
67 *k++ = regs->u_regs[pos++]; in genregs32_get()
71 for (; count > 0 && pos < 32; count--) { in genregs32_get()
72 if (get_user(*k++, &reg_window[pos++])) in genregs32_get()
76 for (; count > 0 && pos < 16; count--) { in genregs32_get()
77 if (put_user(regs->u_regs[pos++], u++)) in genregs32_get()
83 for (; count > 0 && pos < 32; count--) { in genregs32_get()
84 if (get_user(reg, &reg_window[pos++]) || in genregs32_get()
[all …]
Dptrace_64.c209 unsigned int pos, unsigned int count, in genregs64_get() argument
218 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get()
221 if (!ret && count && pos < (32 * sizeof(u64))) { in genregs64_get()
226 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get()
234 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get()
243 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get()
250 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs64_get()
259 unsigned int pos, unsigned int count, in genregs64_set() argument
268 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set()
271 if (!ret && count && pos < (32 * sizeof(u64))) { in genregs64_set()
[all …]
/linux-4.4.14/scripts/
Dcleanfile21 my $pos = 0;
28 my $npos = ($pos+$nsp+8) & ~7;
29 my $ntab = ($npos >> 3) - ($pos >> 3);
31 $pos = $npos;
35 $pos += $nsp;
38 $pos = 0;
43 $pos += $nsp;
46 $pos++;
59 my $pos = 0;
65 $pos = ($pos+8) & ~7;
[all …]
Dcleanpatch21 my $pos = 0;
28 my $npos = ($pos+$nsp+8) & ~7;
29 my $ntab = ($npos >> 3) - ($pos >> 3);
31 $pos = $npos;
35 $pos += $nsp;
38 $pos = 0;
43 $pos += $nsp;
46 $pos++;
59 my $pos = 0;
65 $pos = ($pos+8) & ~7;
[all …]
Dextract-ikconfig19 if pos=`tr "$cf1\n$cf2" "\n$cf2=" < "$1" | grep -abo "^$cf2"`
21 pos=${pos%%:*}
22 tail -c+$(($pos+8)) "$1" | zcat > $tmp1 2> /dev/null
33 for pos in `tr "$1\n$2" "\n$2=" < "$img" | grep -abo "^$2"`
35 pos=${pos%%:*}
36 tail -c+$pos "$img" | $3 > $tmp2 2> /dev/null
/linux-4.4.14/fs/kernfs/
Ddir.c263 struct kernfs_node *pos; in kernfs_link_sibling() local
266 pos = rb_to_kn(*node); in kernfs_link_sibling()
268 result = kernfs_sd_compare(kn, pos); in kernfs_link_sibling()
270 node = &pos->rb.rb_left; in kernfs_link_sibling()
272 node = &pos->rb.rb_right; in kernfs_link_sibling()
961 static struct kernfs_node *kernfs_leftmost_descendant(struct kernfs_node *pos) in kernfs_leftmost_descendant() argument
968 last = pos; in kernfs_leftmost_descendant()
970 if (kernfs_type(pos) != KERNFS_DIR) in kernfs_leftmost_descendant()
973 rbn = rb_first(&pos->dir.children); in kernfs_leftmost_descendant()
977 pos = rb_to_kn(rbn); in kernfs_leftmost_descendant()
[all …]
/linux-4.4.14/drivers/video/fbdev/via/
Dvia_aux.c57 struct via_aux_drv *pos, *n; in via_aux_free() local
62 list_for_each_entry_safe(pos, n, &bus->drivers, chain) { in via_aux_free()
63 if (pos->cleanup) in via_aux_free()
64 pos->cleanup(pos); in via_aux_free()
66 list_del(&pos->chain); in via_aux_free()
67 kfree(pos->data); in via_aux_free()
68 kfree(pos); in via_aux_free()
76 struct via_aux_drv *pos; in via_aux_get_preferred_mode() local
82 list_for_each_entry(pos, &bus->drivers, chain) { in via_aux_get_preferred_mode()
83 if (pos->get_preferred_mode) in via_aux_get_preferred_mode()
[all …]
/linux-4.4.14/net/sctp/
Dulpqueue.c285 struct sk_buff *pos; in sctp_ulpq_store_reasm() local
292 pos = skb_peek_tail(&ulpq->reasm); in sctp_ulpq_store_reasm()
293 if (!pos) { in sctp_ulpq_store_reasm()
299 cevent = sctp_skb2event(pos); in sctp_ulpq_store_reasm()
307 skb_queue_walk(&ulpq->reasm, pos) { in sctp_ulpq_store_reasm()
308 cevent = sctp_skb2event(pos); in sctp_ulpq_store_reasm()
316 __skb_queue_before(&ulpq->reasm, pos, sctp_event2skb(event)); in sctp_ulpq_store_reasm()
331 struct sk_buff *pos; in sctp_make_reassembled_event() local
339 pos = NULL; in sctp_make_reassembled_event()
341 pos = f_frag->next; in sctp_make_reassembled_event()
[all …]
Dproc.c180 static void *sctp_eps_seq_start(struct seq_file *seq, loff_t *pos) in sctp_eps_seq_start() argument
182 if (*pos >= sctp_ep_hashsize) in sctp_eps_seq_start()
185 if (*pos < 0) in sctp_eps_seq_start()
186 *pos = 0; in sctp_eps_seq_start()
188 if (*pos == 0) in sctp_eps_seq_start()
191 return (void *)pos; in sctp_eps_seq_start()
199 static void *sctp_eps_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_eps_seq_next() argument
201 if (++*pos >= sctp_ep_hashsize) in sctp_eps_seq_next()
204 return pos; in sctp_eps_seq_next()
285 static void *sctp_assocs_seq_start(struct seq_file *seq, loff_t *pos) in sctp_assocs_seq_start() argument
[all …]
Dobjcnt.c91 static void *sctp_objcnt_seq_start(struct seq_file *seq, loff_t *pos) in sctp_objcnt_seq_start() argument
93 return (*pos >= ARRAY_SIZE(sctp_dbg_objcnt)) ? NULL : (void *)pos; in sctp_objcnt_seq_start()
100 static void *sctp_objcnt_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_objcnt_seq_next() argument
102 ++*pos; in sctp_objcnt_seq_next()
103 return (*pos >= ARRAY_SIZE(sctp_dbg_objcnt)) ? NULL : (void *)pos; in sctp_objcnt_seq_next()
/linux-4.4.14/fs/jffs2/
Dcompr_rtime.c38 int pos=0; in jffs2_rtime_compress() local
42 while (pos < (*sourcelen) && outpos <= (*dstlen)-2) { in jffs2_rtime_compress()
46 value = data_in[pos]; in jffs2_rtime_compress()
48 cpage_out[outpos++] = data_in[pos++]; in jffs2_rtime_compress()
51 positions[value]=pos; in jffs2_rtime_compress()
53 while ((backpos < pos) && (pos < (*sourcelen)) && in jffs2_rtime_compress()
54 (data_in[pos]==data_in[backpos++]) && (runlen<255)) { in jffs2_rtime_compress()
55 pos++; in jffs2_rtime_compress()
61 if (outpos >= pos) { in jffs2_rtime_compress()
67 *sourcelen = pos; in jffs2_rtime_compress()
[all …]
/linux-4.4.14/arch/x86/boot/
Dearly_serial_console.c45 int pos = 0; in parse_earlyprintk() local
53 pos += 6; in parse_earlyprintk()
56 if (arg[pos] == ',') in parse_earlyprintk()
57 pos++; in parse_earlyprintk()
65 if (pos == 7 && !strncmp(arg + pos, "0x", 2)) { in parse_earlyprintk()
66 port = simple_strtoull(arg + pos, &e, 16); in parse_earlyprintk()
67 if (port == 0 || arg + pos == e) in parse_earlyprintk()
70 pos = e - arg; in parse_earlyprintk()
71 } else if (!strncmp(arg + pos, "ttyS", 4)) { in parse_earlyprintk()
76 pos += 4; in parse_earlyprintk()
[all …]
/linux-4.4.14/kernel/
Dkallsyms.c156 static unsigned int get_symbol_offset(unsigned long pos) in get_symbol_offset() argument
165 name = &kallsyms_names[kallsyms_markers[pos >> 8]]; in get_symbol_offset()
173 for (i = 0; i < (pos & 0xFF); i++) in get_symbol_offset()
301 unsigned long pos; in kallsyms_lookup() local
303 pos = get_symbol_pos(addr, symbolsize, offset); in kallsyms_lookup()
305 kallsyms_expand_symbol(get_symbol_offset(pos), in kallsyms_lookup()
323 unsigned long pos; in lookup_symbol_name() local
325 pos = get_symbol_pos(addr, NULL, NULL); in lookup_symbol_name()
327 kallsyms_expand_symbol(get_symbol_offset(pos), in lookup_symbol_name()
342 unsigned long pos; in lookup_symbol_attrs() local
[all …]
Duser_namespace.c497 loff_t pos = *ppos; in m_start() local
499 if (pos < map->nr_extents) in m_start()
500 extent = &map->extent[pos]; in m_start()
526 static void *m_next(struct seq_file *seq, void *v, loff_t *pos) in m_next() argument
528 (*pos)++; in m_next()
529 return seq->op->start(seq, pos); in m_next()
606 char *kbuf, *pos, *next_line; in map_write() local
661 pos = kbuf; in map_write()
663 for (; pos; pos = next_line) { in map_write()
667 next_line = strchr(pos, '\n'); in map_write()
[all …]
Dcgroup_freezer.c247 struct cgroup_subsys_state *pos; in update_if_frozen() local
259 css_for_each_child(pos, css) { in update_if_frozen()
260 struct freezer *child = css_freezer(pos); in update_if_frozen()
293 struct cgroup_subsys_state *css = seq_css(m), *pos; in freezer_read() local
299 css_for_each_descendant_post(pos, css) { in freezer_read()
300 if (!css_tryget_online(pos)) in freezer_read()
304 update_if_frozen(pos); in freezer_read()
307 css_put(pos); in freezer_read()
387 struct cgroup_subsys_state *pos; in freezer_change_state() local
396 css_for_each_descendant_pre(pos, &freezer->css) { in freezer_change_state()
[all …]
/linux-4.4.14/kernel/gcov/
Dgcc_4_7.c364 loff_t pos; member
430 size_t pos = 0; in convert_to_gcda() local
433 pos += store_gcov_u32(buffer, pos, GCOV_DATA_MAGIC); in convert_to_gcda()
434 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda()
435 pos += store_gcov_u32(buffer, pos, info->stamp); in convert_to_gcda()
441 pos += store_gcov_u32(buffer, pos, GCOV_TAG_FUNCTION); in convert_to_gcda()
442 pos += store_gcov_u32(buffer, pos, GCOV_TAG_FUNCTION_LENGTH); in convert_to_gcda()
443 pos += store_gcov_u32(buffer, pos, fi_ptr->ident); in convert_to_gcda()
444 pos += store_gcov_u32(buffer, pos, fi_ptr->lineno_checksum); in convert_to_gcda()
445 pos += store_gcov_u32(buffer, pos, fi_ptr->cfg_checksum); in convert_to_gcda()
[all …]
/linux-4.4.14/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c114 u8 *pos, qc = 0; in ccmp_init_blocks() local
130 pos = (u8 *) &hdr->addr4; in ccmp_init_blocks()
132 pos += 6; in ccmp_init_blocks()
133 qc = *pos & 0x0f; in ccmp_init_blocks()
156 pos = (u8 *) hdr; in ccmp_init_blocks()
159 aad[2] = pos[0] & 0x8f; in ccmp_init_blocks()
160 aad[3] = pos[1] & 0xc7; in ccmp_init_blocks()
162 pos = (u8 *) &hdr->seq_ctl; in ccmp_init_blocks()
163 aad[22] = pos[0] & 0x0f; in ccmp_init_blocks()
190 u8 *pos; in rtllib_ccmp_encrypt() local
[all …]
Drtllib_crypt_wep.c99 u8 *pos; in prism2_wep_encrypt() local
114 pos = skb_push(skb, 4); in prism2_wep_encrypt()
115 memmove(pos, pos + 4, hdr_len); in prism2_wep_encrypt()
116 pos += hdr_len; in prism2_wep_encrypt()
134 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt()
135 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt()
136 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt()
137 *pos++ = wep->key_idx << 6; in prism2_wep_encrypt()
145 crc = ~crc32_le(~0, pos, len); in prism2_wep_encrypt()
152 sg_init_one(&sg, pos, len+4); in prism2_wep_encrypt()
[all …]
Drtllib_crypt_tkip.c300 u8 *pos; in rtllib_tkip_encrypt() local
329 pos = skb_push(skb, 8); in rtllib_tkip_encrypt()
330 memmove(pos, pos + 8, hdr_len); in rtllib_tkip_encrypt()
331 pos += hdr_len; in rtllib_tkip_encrypt()
334 *pos++ = Hi8(tkey->tx_iv16); in rtllib_tkip_encrypt()
335 *pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F; in rtllib_tkip_encrypt()
336 *pos++ = Lo8(tkey->tx_iv16); in rtllib_tkip_encrypt()
338 *pos++ = rc4key[0]; in rtllib_tkip_encrypt()
339 *pos++ = rc4key[1]; in rtllib_tkip_encrypt()
340 *pos++ = rc4key[2]; in rtllib_tkip_encrypt()
[all …]
/linux-4.4.14/net/core/
Dnet-procfs.c15 static inline struct net_device *dev_from_same_bucket(struct seq_file *seq, loff_t *pos) in dev_from_same_bucket() argument
20 unsigned int count = 0, offset = get_offset(*pos); in dev_from_same_bucket()
22 h = &net->dev_name_head[get_bucket(*pos)]; in dev_from_same_bucket()
31 static inline struct net_device *dev_from_bucket(struct seq_file *seq, loff_t *pos) in dev_from_bucket() argument
37 dev = dev_from_same_bucket(seq, pos); in dev_from_bucket()
41 bucket = get_bucket(*pos) + 1; in dev_from_bucket()
42 *pos = set_bucket_offset(bucket, 1); in dev_from_bucket()
52 static void *dev_seq_start(struct seq_file *seq, loff_t *pos) in dev_seq_start() argument
56 if (!*pos) in dev_seq_start()
59 if (get_bucket(*pos) >= NETDEV_HASHENTRIES) in dev_seq_start()
[all …]
/linux-4.4.14/drivers/cpufreq/
Dfreq_table.c23 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in policy_has_boost_freq() local
28 cpufreq_for_each_valid_entry(pos, table) in policy_has_boost_freq()
29 if (pos->flags & CPUFREQ_BOOST_FREQ) in policy_has_boost_freq()
39 struct cpufreq_frequency_table *pos; in cpufreq_frequency_table_cpuinfo() local
44 cpufreq_for_each_valid_entry(pos, table) { in cpufreq_frequency_table_cpuinfo()
45 freq = pos->frequency; in cpufreq_frequency_table_cpuinfo()
48 && (pos->flags & CPUFREQ_BOOST_FREQ)) in cpufreq_frequency_table_cpuinfo()
51 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); in cpufreq_frequency_table_cpuinfo()
72 struct cpufreq_frequency_table *pos; in cpufreq_frequency_table_verify() local
81 cpufreq_for_each_valid_entry(pos, table) { in cpufreq_frequency_table_verify()
[all …]
Ds3c2416-cpufreq.c269 struct cpufreq_frequency_table *pos; in s3c2416_cpufreq_cfg_regulator() local
281 cpufreq_for_each_valid_entry(pos, s3c_freq->freq_table) { in s3c2416_cpufreq_cfg_regulator()
282 dvfs = &s3c2416_dvfs_table[pos->driver_data]; in s3c2416_cpufreq_cfg_regulator()
294 pos->frequency); in s3c2416_cpufreq_cfg_regulator()
295 pos->frequency = CPUFREQ_ENTRY_INVALID; in s3c2416_cpufreq_cfg_regulator()
339 struct cpufreq_frequency_table *pos; in s3c2416_cpufreq_driver_init() local
428 cpufreq_for_each_entry(pos, s3c_freq->freq_table) { in s3c2416_cpufreq_driver_init()
430 if (pos->driver_data == 0) { in s3c2416_cpufreq_driver_init()
433 pos->frequency); in s3c2416_cpufreq_driver_init()
434 pos->frequency = CPUFREQ_ENTRY_INVALID; in s3c2416_cpufreq_driver_init()
[all …]
/linux-4.4.14/scripts/kconfig/
Dlist.h48 #define list_for_each_entry(pos, head, member) \ argument
49 for (pos = list_entry((head)->next, typeof(*pos), member); \
50 &pos->member != (head); \
51 pos = list_entry(pos->member.next, typeof(*pos), member))
60 #define list_for_each_entry_safe(pos, n, head, member) \ argument
61 for (pos = list_entry((head)->next, typeof(*pos), member), \
62 n = list_entry(pos->member.next, typeof(*pos), member); \
63 &pos->member != (head); \
64 pos = n, n = list_entry(n->member.next, typeof(*n), member))
Dmconf.c323 struct subtitle_list *pos, *tmp; in set_subtitle() local
325 for (pos = subtitles; pos != NULL; pos = tmp) { in set_subtitle()
326 tmp = pos->next; in set_subtitle()
327 free(pos); in set_subtitle()
333 if (pos) { in set_subtitle()
334 pos->next = xcalloc(1, sizeof(*pos)); in set_subtitle()
335 pos = pos->next; in set_subtitle()
337 subtitles = pos = xcalloc(1, sizeof(*pos)); in set_subtitle()
339 pos->text = sp->text; in set_subtitle()
348 struct subtitle_list *pos, *tmp; in reset_subtitle() local
[all …]
/linux-4.4.14/scripts/gdb/linux/
Ddmesg.py42 pos = 0
43 while pos < log_buf.__len__():
44 length = utils.read_u16(log_buf[pos + 8:pos + 10])
49 pos = log_buf_2nd_half
52 text_len = utils.read_u16(log_buf[pos + 10:pos + 12])
53 text = log_buf[pos + 16:pos + 16 + text_len]
54 time_stamp = utils.read_u64(log_buf[pos:pos + 8])
61 pos += length
/linux-4.4.14/security/apparmor/
Dpolicy_unpack.c65 void *pos; /* pointer to current position in the buffer */ member
78 if (sa->aad->iface.pos) in audit_cb()
79 audit_log_format(ab, " offset=%ld", sa->aad->iface.pos); in audit_cb()
101 aad.iface.pos = e->pos - e->start; in audit_iface()
114 return (size <= e->end - e->pos); in inbounds()
130 size = le16_to_cpu(get_unaligned((u16 *) e->pos)); in unpack_u16_chunk()
131 e->pos += sizeof(u16); in unpack_u16_chunk()
134 *chunk = e->pos; in unpack_u16_chunk()
135 e->pos += size; in unpack_u16_chunk()
144 if (*(u8 *) e->pos != code) in unpack_X()
[all …]
Dmatch.c307 unsigned int state = start, pos; in aa_dfa_match_len() local
318 pos = base_idx(base[state]) + equiv[(u8) *str++]; in aa_dfa_match_len()
319 if (check[pos] == state) in aa_dfa_match_len()
320 state = next[pos]; in aa_dfa_match_len()
327 pos = base_idx(base[state]) + (u8) *str++; in aa_dfa_match_len()
328 if (check[pos] == state) in aa_dfa_match_len()
329 state = next[pos]; in aa_dfa_match_len()
357 unsigned int state = start, pos; in aa_dfa_match() local
368 pos = base_idx(base[state]) + equiv[(u8) *str++]; in aa_dfa_match()
369 if (check[pos] == state) in aa_dfa_match()
[all …]
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c119 u8 *pos, qc = 0; in ccmp_init_blocks() local
138 pos = (u8 *) &hdr->addr4; in ccmp_init_blocks()
140 pos += 6; in ccmp_init_blocks()
141 qc = *pos & 0x0f; in ccmp_init_blocks()
164 pos = (u8 *) hdr; in ccmp_init_blocks()
167 aad[2] = pos[0] & 0x8f; in ccmp_init_blocks()
168 aad[3] = pos[1] & 0xc7; in ccmp_init_blocks()
170 pos = (u8 *) &hdr->seq_ctl; in ccmp_init_blocks()
171 aad[22] = pos[0] & 0x0f; in ccmp_init_blocks()
198 u8 *pos; in ieee80211_ccmp_encrypt() local
[all …]
Dieee80211_crypt_wep.c92 u8 *pos; in prism2_wep_encrypt() local
104 pos = skb_push(skb, 4); in prism2_wep_encrypt()
105 memmove(pos, pos + 4, hdr_len); in prism2_wep_encrypt()
106 pos += hdr_len; in prism2_wep_encrypt()
123 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt()
124 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt()
125 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt()
126 *pos++ = wep->key_idx << 6; in prism2_wep_encrypt()
133 crc = ~crc32_le(~0, pos, len); in prism2_wep_encrypt()
141 sg_init_one(&sg, pos, len+4); in prism2_wep_encrypt()
[all …]
Dieee80211_crypt_tkip.c312 u8 *pos; in ieee80211_tkip_encrypt() local
339 pos = skb_push(skb, 8); in ieee80211_tkip_encrypt()
340 memmove(pos, pos + 8, hdr_len); in ieee80211_tkip_encrypt()
341 pos += hdr_len; in ieee80211_tkip_encrypt()
344 *pos++ = Hi8(tkey->tx_iv16); in ieee80211_tkip_encrypt()
345 *pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F; in ieee80211_tkip_encrypt()
346 *pos++ = Lo8(tkey->tx_iv16); in ieee80211_tkip_encrypt()
348 *pos++ = rc4key[0]; in ieee80211_tkip_encrypt()
349 *pos++ = rc4key[1]; in ieee80211_tkip_encrypt()
350 *pos++ = rc4key[2]; in ieee80211_tkip_encrypt()
[all …]
/linux-4.4.14/net/wireless/
Dlib80211_crypt_ccmp.c115 u8 *pos, qc = 0; in ccmp_init_blocks() local
127 pos = (u8 *) & hdr->addr4; in ccmp_init_blocks()
129 pos += 6; in ccmp_init_blocks()
130 qc = *pos & 0x0f; in ccmp_init_blocks()
153 pos = (u8 *) hdr; in ccmp_init_blocks()
156 aad[2] = pos[0] & 0x8f; in ccmp_init_blocks()
157 aad[3] = pos[1] & 0xc7; in ccmp_init_blocks()
159 pos = (u8 *) & hdr->seq_ctrl; in ccmp_init_blocks()
160 aad[22] = pos[0] & 0x0f; in ccmp_init_blocks()
186 u8 *pos; in lib80211_ccmp_hdr() local
[all …]
Dlib80211_crypt_wep.c96 u8 *pos; in lib80211_wep_build_iv() local
101 pos = skb_push(skb, 4); in lib80211_wep_build_iv()
102 memmove(pos, pos + 4, hdr_len); in lib80211_wep_build_iv()
103 pos += hdr_len; in lib80211_wep_build_iv()
119 *pos++ = (wep->iv >> 16) & 0xff; in lib80211_wep_build_iv()
120 *pos++ = (wep->iv >> 8) & 0xff; in lib80211_wep_build_iv()
121 *pos++ = wep->iv & 0xff; in lib80211_wep_build_iv()
122 *pos++ = wep->key_idx << 6; in lib80211_wep_build_iv()
138 u8 *pos, *icv; in lib80211_wep_encrypt() local
157 pos = skb->data + hdr_len + 4; in lib80211_wep_encrypt()
[all …]
Dlib80211_crypt_tkip.c313 u8 *pos; in lib80211_tkip_hdr() local
331 pos = skb_push(skb, TKIP_HDR_LEN); in lib80211_tkip_hdr()
332 memmove(pos, pos + TKIP_HDR_LEN, hdr_len); in lib80211_tkip_hdr()
333 pos += hdr_len; in lib80211_tkip_hdr()
335 *pos++ = *rc4key; in lib80211_tkip_hdr()
336 *pos++ = *(rc4key + 1); in lib80211_tkip_hdr()
337 *pos++ = *(rc4key + 2); in lib80211_tkip_hdr()
338 *pos++ = (tkey->key_idx << 6) | (1 << 5) /* Ext IV included */ ; in lib80211_tkip_hdr()
339 *pos++ = tkey->tx_iv32 & 0xff; in lib80211_tkip_hdr()
340 *pos++ = (tkey->tx_iv32 >> 8) & 0xff; in lib80211_tkip_hdr()
[all …]
/linux-4.4.14/sound/pci/ctxfi/
Dctvmem.c36 struct list_head *pos; in get_vm_block() local
46 list_for_each(pos, &vm->unused) { in get_vm_block()
47 entry = list_entry(pos, struct ct_vm_block, list); in get_vm_block()
51 if (pos == &vm->unused) in get_vm_block()
81 struct list_head *pos, *pre; in put_vm_block() local
89 list_for_each(pos, &vm->unused) { in put_vm_block()
90 entry = list_entry(pos, struct ct_vm_block, list); in put_vm_block()
94 if (pos == &vm->unused) { in put_vm_block()
103 __list_add(&block->list, pos->prev, pos); in put_vm_block()
108 pos = &entry->list; in put_vm_block()
[all …]
Dctimap.c25 struct list_head *pos, *pre, *head; in input_mapper_add() local
37 list_for_each(pos, head) { in input_mapper_add()
38 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add()
45 if (pos != head) { in input_mapper_add()
46 pre = pos->prev; in input_mapper_add()
50 __list_add(&entry->list, pos->prev, pos); in input_mapper_add()
53 pos = head->next; in input_mapper_add()
58 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add()
103 struct list_head *pos; in free_input_mapper_list() local
106 pos = head->next; in free_input_mapper_list()
[all …]
/linux-4.4.14/fs/hpfs/
Dea.c16 unsigned pos = 0; in hpfs_ea_ext_remove() local
17 while (pos < len) { in hpfs_ea_ext_remove()
20 if (pos + 4 > len) { in hpfs_ea_ext_remove()
25 if (hpfs_ea_read(s, a, ano, pos, 4, ex)) return; in hpfs_ea_ext_remove()
29 ano ? "anode" : "sectors", a, pos); in hpfs_ea_ext_remove()
32 if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 9, ex+4)) in hpfs_ea_ext_remove()
36 pos += ea->namelen + ea_valuelen(ea) + 5; in hpfs_ea_ext_remove()
76 unsigned pos; in hpfs_read_ea() local
95 pos = 0; in hpfs_read_ea()
96 while (pos < len) { in hpfs_read_ea()
[all …]
Ddir.c26 loff_t pos; in hpfs_dir_lseek() local
41 pos = ((loff_t) hpfs_de_as_down_as_possible(s, hpfs_inode->i_dno) << 4) + 1; in hpfs_dir_lseek()
42 while (pos != new_off) { in hpfs_dir_lseek()
43 if (map_pos_dirent(i, &pos, &qbh)) hpfs_brelse4(&qbh); in hpfs_dir_lseek()
45 if (pos == 12) goto fail; in hpfs_dir_lseek()
108 if (ctx->pos == 12) { /* diff -r requires this (note, that diff -r */ in hpfs_readdir()
109 ctx->pos = 13; /* also fails on msdos filesystem in 2.0) */ in hpfs_readdir()
112 if (ctx->pos == 13) { in hpfs_readdir()
123 if (hpfs_stop_cycles(inode->i_sb, ctx->pos, &c1, &c2, "hpfs_readdir")) { in hpfs_readdir()
127 if (ctx->pos == 12) in hpfs_readdir()
[all …]
/linux-4.4.14/drivers/firmware/
Discsi_ibft_find.c60 unsigned long pos; in find_ibft_in_mem() local
65 for (pos = IBFT_START; pos < IBFT_END; pos += 16) { in find_ibft_in_mem()
68 if (pos == VGA_MEM) in find_ibft_in_mem()
69 pos += VGA_SIZE; in find_ibft_in_mem()
70 virt = isa_bus_to_virt(pos); in find_ibft_in_mem()
76 (unsigned long *)isa_bus_to_virt(pos + 4); in find_ibft_in_mem()
80 if (pos + len <= (IBFT_END-1)) { in find_ibft_in_mem()
82 pr_info("iBFT found at 0x%lx.\n", pos); in find_ibft_in_mem()
/linux-4.4.14/include/uapi/linux/netfilter/
Dx_tables.h173 #define xt_entry_foreach(pos, ehead, esize) \ argument
174 for ((pos) = (typeof(pos))(ehead); \
175 (pos) < (typeof(pos))((char *)(ehead) + (esize)); \
176 (pos) = (typeof(pos))((char *)(pos) + (pos)->next_offset))
179 #define xt_ematch_foreach(pos, entry) \ argument
180 for ((pos) = (struct xt_entry_match *)entry->elems; \
181 (pos) < (struct xt_entry_match *)((char *)(entry) + \
183 (pos) = (struct xt_entry_match *)((char *)(pos) + \
184 (pos)->u.match_size))
/linux-4.4.14/fs/ncpfs/
Dncpsign_kernel.c23 #define BVAL(buf,pos) (((const __u8 *)(buf))[pos]) argument
24 #define PVAL(buf,pos) ((unsigned)BVAL(buf,pos)) argument
25 #define BSET(buf,pos,val) (((__u8 *)(buf))[pos] = (val)) argument
28 WVAL_LH(const __u8 * buf, int pos) in WVAL_LH() argument
30 return PVAL(buf, pos) | PVAL(buf, pos + 1) << 8; in WVAL_LH()
33 DVAL_LH(const __u8 * buf, int pos) in DVAL_LH() argument
35 return WVAL_LH(buf, pos) | WVAL_LH(buf, pos + 2) << 16; in DVAL_LH()
38 WSET_LH(__u8 * buf, int pos, __u16 val) in WSET_LH() argument
40 BSET(buf, pos, val & 0xff); in WSET_LH()
41 BSET(buf, pos + 1, val >> 8); in WSET_LH()
[all …]
Dfile.c106 off_t pos = iocb->ki_pos; in ncp_file_read_iter() local
116 if (pos > inode->i_sb->s_maxbytes) in ncp_file_read_iter()
118 iov_iter_truncate(to, inode->i_sb->s_maxbytes - pos); in ncp_file_read_iter()
138 bufsize - (pos % bufsize), in ncp_file_read_iter()
143 pos, to_read, to, &read_this_time, in ncp_file_read_iter()
149 pos += read_this_time; in ncp_file_read_iter()
157 iocb->ki_pos = pos; in ncp_file_read_iter()
176 off_t pos; in ncp_file_write_iter() local
199 pos = iocb->ki_pos; in ncp_file_write_iter()
203 bufsize - (pos % bufsize), in ncp_file_write_iter()
[all …]
/linux-4.4.14/drivers/platform/goldfish/
Dpdev_bus.c62 struct pdev_bus_dev *pos, *n; in goldfish_pdev_worker() local
64 list_for_each_entry_safe(pos, n, &pdev_bus_removed_devices, list) { in goldfish_pdev_worker()
65 list_del(&pos->list); in goldfish_pdev_worker()
66 platform_device_unregister(&pos->pdev); in goldfish_pdev_worker()
67 kfree(pos); in goldfish_pdev_worker()
69 list_for_each_entry_safe(pos, n, &pdev_bus_new_devices, list) { in goldfish_pdev_worker()
70 list_del(&pos->list); in goldfish_pdev_worker()
71 ret = platform_device_register(&pos->pdev); in goldfish_pdev_worker()
74 pos->pdev.name); in goldfish_pdev_worker()
75 list_add_tail(&pos->list, &pdev_bus_registered_devices); in goldfish_pdev_worker()
[all …]
/linux-4.4.14/arch/blackfin/kernel/
Dcplbinfo.c30 loff_t pos; member
44 return cdata->pos >= MAX_CPLBS; in cplbinfo_nomore()
51 loff_t pos; in cplbinfo_show() local
54 pos = cdata->pos; in cplbinfo_show()
55 addr = cdata->tbl[pos].addr; in cplbinfo_show()
56 data = cdata->tbl[pos].data; in cplbinfo_show()
60 (int)pos, addr, data, strpage(data), in cplbinfo_show()
64 pos < cdata->switched ? 'N' : 'Y'); in cplbinfo_show()
82 static void *cplbinfo_start(struct seq_file *m, loff_t *pos) in cplbinfo_start() argument
86 if (!*pos) { in cplbinfo_start()
[all …]
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_debugfs.c79 static void *_opcode_stats_seq_start(struct seq_file *s, loff_t *pos) in _opcode_stats_seq_start() argument
83 if (*pos >= ARRAY_SIZE(opstats->stats)) in _opcode_stats_seq_start()
85 return pos; in _opcode_stats_seq_start()
88 static void *_opcode_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _opcode_stats_seq_next() argument
92 ++*pos; in _opcode_stats_seq_next()
93 if (*pos >= ARRAY_SIZE(opstats->stats)) in _opcode_stats_seq_next()
95 return pos; in _opcode_stats_seq_next()
129 static void *_ctx_stats_seq_start(struct seq_file *s, loff_t *pos) in DEBUGFS_FILE()
134 if (!*pos) in DEBUGFS_FILE()
136 if (*pos >= dd->first_user_ctxt) in DEBUGFS_FILE()
[all …]
Dqib_pcie.c196 static void qib_msix_setup(struct qib_devdata *dd, int pos, u32 *msixcnt, in qib_msix_setup() argument
250 static int qib_msi_setup(struct qib_devdata *dd, int pos) in qib_msi_setup() argument
263 pci_read_config_dword(pdev, pos + PCI_MSI_ADDRESS_LO, in qib_msi_setup()
265 pci_read_config_dword(pdev, pos + PCI_MSI_ADDRESS_HI, in qib_msi_setup()
267 pci_read_config_word(pdev, pos + PCI_MSI_FLAGS, &control); in qib_msi_setup()
269 pci_read_config_word(pdev, pos + ((control & PCI_MSI_FLAGS_64BIT) in qib_msi_setup()
279 int pos = 0, ret = 1; in qib_pcie_params() local
289 pos = dd->pcidev->msix_cap; in qib_pcie_params()
290 if (nent && *nent && pos) { in qib_pcie_params()
291 qib_msix_setup(dd, pos, nent, entry); in qib_pcie_params()
[all …]
/linux-4.4.14/drivers/pci/pcie/aer/
Daerdrv.c168 int pos; in aer_disable_rootport() local
176 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_ERR); in aer_disable_rootport()
178 pci_read_config_dword(pdev, pos + PCI_ERR_ROOT_COMMAND, &reg32); in aer_disable_rootport()
180 pci_write_config_dword(pdev, pos + PCI_ERR_ROOT_COMMAND, reg32); in aer_disable_rootport()
183 pci_read_config_dword(pdev, pos + PCI_ERR_ROOT_STATUS, &reg32); in aer_disable_rootport()
184 pci_write_config_dword(pdev, pos + PCI_ERR_ROOT_STATUS, reg32); in aer_disable_rootport()
201 int pos; in aer_irq() local
203 pos = pci_find_ext_capability(pdev->port, PCI_EXT_CAP_ID_ERR); in aer_irq()
211 pci_read_config_dword(pdev->port, pos + PCI_ERR_ROOT_STATUS, &status); in aer_irq()
218 pci_read_config_dword(pdev->port, pos + PCI_ERR_ROOT_ERR_SRC, &id); in aer_irq()
[all …]
Decrc.c51 int pos; in enable_ecrc_checking() local
57 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); in enable_ecrc_checking()
58 if (!pos) in enable_ecrc_checking()
61 pci_read_config_dword(dev, pos + PCI_ERR_CAP, &reg32); in enable_ecrc_checking()
66 pci_write_config_dword(dev, pos + PCI_ERR_CAP, reg32); in enable_ecrc_checking()
79 int pos; in disable_ecrc_checking() local
85 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); in disable_ecrc_checking()
86 if (!pos) in disable_ecrc_checking()
89 pci_read_config_dword(dev, pos + PCI_ERR_CAP, &reg32); in disable_ecrc_checking()
91 pci_write_config_dword(dev, pos + PCI_ERR_CAP, reg32); in disable_ecrc_checking()
Daerdrv_core.c62 int pos; in pci_cleanup_aer_uncorrect_error_status() local
65 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); in pci_cleanup_aer_uncorrect_error_status()
66 if (!pos) in pci_cleanup_aer_uncorrect_error_status()
69 pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, &status); in pci_cleanup_aer_uncorrect_error_status()
71 pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, status); in pci_cleanup_aer_uncorrect_error_status()
79 int pos; in pci_cleanup_aer_error_status_regs() local
86 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); in pci_cleanup_aer_error_status_regs()
87 if (!pos) in pci_cleanup_aer_error_status_regs()
92 pci_read_config_dword(dev, pos + PCI_ERR_ROOT_STATUS, &status); in pci_cleanup_aer_error_status_regs()
93 pci_write_config_dword(dev, pos + PCI_ERR_ROOT_STATUS, status); in pci_cleanup_aer_error_status_regs()
[all …]
/linux-4.4.14/drivers/staging/gdm72xx/
Dgdm_qos.c331 int i, index, pos; in gdm_recv_qos_hci_packet() local
365 pos = 6; in gdm_recv_qos_hci_packet()
366 sfid = ((buf[pos++]<<24)&0xff000000); in gdm_recv_qos_hci_packet()
367 sfid += ((buf[pos++]<<16)&0xff0000); in gdm_recv_qos_hci_packet()
368 sfid += ((buf[pos++]<<8)&0xff00); in gdm_recv_qos_hci_packet()
369 sfid += (buf[pos++]); in gdm_recv_qos_hci_packet()
385 qcb->csr[index].classifier_rule_en = ((buf[pos++]<<8)&0xff00); in gdm_recv_qos_hci_packet()
386 qcb->csr[index].classifier_rule_en += buf[pos++]; in gdm_recv_qos_hci_packet()
389 qcb->csr[index].ip2s_mask = buf[pos++]; in gdm_recv_qos_hci_packet()
390 qcb->csr[index].ip2s_lo = buf[pos++]; in gdm_recv_qos_hci_packet()
[all …]
Dusb_boot.c111 loff_t pos, u32 img_len, u32 magic_num) in download_image() argument
131 memcpy(tx_buf, firm->data + pos, size); in download_image()
138 pos += size; in download_image()
149 loff_t pos = 0; in usb_boot() local
191 pos = hdr.offset[i]; in usb_boot()
192 if (firm->size < sizeof(fw_info) + pos) { in usb_boot()
197 memcpy(&fw_info, firm->data + pos, sizeof(fw_info)); in usb_boot()
204 pos = hdr.offset[i] + fw_info.kernel_offset; in usb_boot()
205 if (firm->size < fw_info.kernel_len + pos) { in usb_boot()
210 ret = download_image(usbdev, firm, pos, fw_info.kernel_len, in usb_boot()
[all …]
/linux-4.4.14/drivers/char/agp/
Disoch.c25 struct list_head *pos; in agp_3_5_dev_list_insert() local
27 list_for_each(pos, head) { in agp_3_5_dev_list_insert()
28 cur = list_entry(pos, struct agp_3_5_dev, list); in agp_3_5_dev_list_insert()
32 list_add_tail(new, pos); in agp_3_5_dev_list_insert()
39 struct list_head *pos, *tmp, *head = &list->list, *start = head->next; in agp_3_5_dev_list_sort() local
44 for (pos=start; pos!=head; ) { in agp_3_5_dev_list_sort()
45 cur = list_entry(pos, struct agp_3_5_dev, list); in agp_3_5_dev_list_sort()
51 tmp = pos; in agp_3_5_dev_list_sort()
52 pos = pos->next; in agp_3_5_dev_list_sort()
80 struct list_head *head = &dev_list->list, *pos; in agp_3_5_isochronous_node_enable() local
[all …]
/linux-4.4.14/kernel/trace/
Dtrace_printk.c38 struct trace_bprintk_fmt *pos; in lookup_format() local
39 list_for_each_entry(pos, &trace_bprintk_fmt_list, list) { in lookup_format()
40 if (!strcmp(pos->fmt, fmt)) in lookup_format()
41 return pos; in lookup_format()
116 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) in find_next_mod_format() argument
129 if (!v || start_index == *pos) { in find_next_mod_format()
134 if (start_index == *pos) in find_next_mod_format()
173 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) in find_next_mod_format() argument
247 static const char **find_next(void *v, loff_t *pos) in find_next() argument
255 if (*pos < start_index) in find_next()
[all …]
/linux-4.4.14/drivers/parisc/
Deisa_enumerator.c325 unsigned int pos=0; in parse_slot_config() local
343 while ((pos < maxlen) && (num_func <= es->num_functions)) { in parse_slot_config()
344 pos+=configure_function(buf+pos, &function_len); in parse_slot_config()
350 p0 = pos; in parse_slot_config()
351 pos += configure_choise(buf+pos, &flags); in parse_slot_config()
355 pos = p0 + function_len; in parse_slot_config()
362 pos = p0 + function_len; in parse_slot_config()
375 pos += configure_type_string(buf+pos); in parse_slot_config()
380 pos += configure_memory(buf+pos, mem_parent, board); in parse_slot_config()
384 pos += configure_irq(buf+pos); in parse_slot_config()
[all …]
/linux-4.4.14/drivers/staging/rtl8188eu/core/
Drtw_ieee80211.c524 u8 *pos; in rtw_parse_wpa_ie() local
537 pos = wpa_ie; in rtw_parse_wpa_ie()
539 pos += 8; in rtw_parse_wpa_ie()
545 *group_cipher = rtw_get_wpa_cipher_suite(pos); in rtw_parse_wpa_ie()
546 pos += WPA_SELECTOR_LEN; in rtw_parse_wpa_ie()
555 count = get_unaligned_le16(pos); in rtw_parse_wpa_ie()
556 pos += 2; in rtw_parse_wpa_ie()
566 *pairwise_cipher |= rtw_get_wpa_cipher_suite(pos); in rtw_parse_wpa_ie()
568 pos += WPA_SELECTOR_LEN; in rtw_parse_wpa_ie()
578 pos += 2; in rtw_parse_wpa_ie()
[all …]
/linux-4.4.14/tools/usb/usbip/libsrc/
Dlist.h110 #define list_for_each(pos, head) \ argument
111 for (pos = (head)->next; pos != (head); pos = pos->next)
119 #define list_for_each_safe(pos, n, head) \ argument
120 for (pos = (head)->next, n = pos->next; pos != (head); \
121 pos = n, n = pos->next)
/linux-4.4.14/tools/lib/bpf/
Dlibbpf.h62 #define bpf_object__for_each_safe(pos, tmp) \ argument
63 for ((pos) = bpf_object__next(NULL), \
64 (tmp) = bpf_object__next(pos); \
65 (pos) != NULL; \
66 (pos) = (tmp), (tmp) = bpf_object__next(tmp))
73 #define bpf_object__for_each_program(pos, obj) \ argument
74 for ((pos) = bpf_program__next(NULL, (obj)); \
75 (pos) != NULL; \
76 (pos) = bpf_program__next((pos), (obj)))
/linux-4.4.14/tools/perf/util/
Dstrlist.h69 #define strlist__for_each(pos, slist) \ argument
70 for (pos = strlist__first(slist); pos; pos = strlist__next(pos))
79 #define strlist__for_each_safe(pos, n, slist) \ argument
80 for (pos = strlist__first(slist), n = strlist__next(pos); pos;\
81 pos = n, n = strlist__next(n))
Dintlist.h64 #define intlist__for_each(pos, ilist) \ argument
65 for (pos = intlist__first(ilist); pos; pos = intlist__next(pos))
74 #define intlist__for_each_safe(pos, n, ilist) \ argument
75 for (pos = intlist__first(ilist), n = intlist__next(pos); pos;\
76 pos = n, n = intlist__next(n))
Dbuild-id.c169 #define dsos__for_each_with_build_id(pos, head) \ argument
170 list_for_each_entry(pos, head, node) \
171 if (!pos->has_build_id) \
202 struct dso *pos; in machine__write_buildid_table() local
211 dsos__for_each_with_build_id(pos, &machine->dsos.head) { in machine__write_buildid_table()
215 if (!pos->hit) in machine__write_buildid_table()
218 if (dso__is_vdso(pos)) { in machine__write_buildid_table()
219 name = pos->short_name; in machine__write_buildid_table()
220 name_len = pos->short_name_len + 1; in machine__write_buildid_table()
221 } else if (dso__is_kcore(pos)) { in machine__write_buildid_table()
[all …]
Dstrbuf.c54 static void strbuf_splice(struct strbuf *sb, size_t pos, size_t len, in strbuf_splice() argument
57 if (pos + len < pos) in strbuf_splice()
59 if (pos > sb->len) in strbuf_splice()
61 if (pos + len > sb->len) in strbuf_splice()
66 memmove(sb->buf + pos + dlen, in strbuf_splice()
67 sb->buf + pos + len, in strbuf_splice()
68 sb->len - pos - len); in strbuf_splice()
69 memcpy(sb->buf + pos, data, dlen); in strbuf_splice()
73 void strbuf_remove(struct strbuf *sb, size_t pos, size_t len) in strbuf_remove() argument
75 strbuf_splice(sb, pos, len, NULL, 0); in strbuf_remove()
/linux-4.4.14/drivers/isdn/capi/
Dkcapi_proc.c38 static void *controller_start(struct seq_file *seq, loff_t *pos) in controller_start() argument
43 if (*pos < CAPI_MAXCONTR) in controller_start()
44 return &capi_controller[*pos]; in controller_start()
49 static void *controller_next(struct seq_file *seq, void *v, loff_t *pos) in controller_next() argument
51 ++*pos; in controller_next()
52 if (*pos < CAPI_MAXCONTR) in controller_next()
53 return &capi_controller[*pos]; in controller_next()
143 static void *applications_start(struct seq_file *seq, loff_t *pos) in applications_start() argument
148 if (*pos < CAPI_MAXAPPL) in applications_start()
149 return &capi_applications[*pos]; in applications_start()
[all …]
/linux-4.4.14/drivers/net/wireless/mwifiex/
Dtdls.c126 u8 rates[MWIFIEX_SUPPORTED_RATES], *pos; in mwifiex_tdls_append_rates_ie() local
140 pos = skb_put(skb, supp_rates_size + 2); in mwifiex_tdls_append_rates_ie()
141 *pos++ = WLAN_EID_SUPP_RATES; in mwifiex_tdls_append_rates_ie()
142 *pos++ = supp_rates_size; in mwifiex_tdls_append_rates_ie()
143 memcpy(pos, rates, supp_rates_size); in mwifiex_tdls_append_rates_ie()
147 pos = skb_put(skb, ext_rates_size + 2); in mwifiex_tdls_append_rates_ie()
148 *pos++ = WLAN_EID_EXT_SUPP_RATES; in mwifiex_tdls_append_rates_ie()
149 *pos++ = ext_rates_size; in mwifiex_tdls_append_rates_ie()
150 memcpy(pos, rates + MWIFIEX_TDLS_SUPPORTED_RATES, in mwifiex_tdls_append_rates_ie()
161 u8 *pos; in mwifiex_tdls_add_aid() local
[all …]
Djoin.c401 u8 *pos; in mwifiex_cmd_802_11_associate() local
404 pos = (u8 *) assoc; in mwifiex_cmd_802_11_associate()
413 pos += sizeof(assoc->peer_sta_addr); in mwifiex_cmd_802_11_associate()
420 pos += sizeof(assoc->cap_info_bitmap); in mwifiex_cmd_802_11_associate()
421 pos += sizeof(assoc->listen_interval); in mwifiex_cmd_802_11_associate()
422 pos += sizeof(assoc->beacon_period); in mwifiex_cmd_802_11_associate()
423 pos += sizeof(assoc->dtim_period); in mwifiex_cmd_802_11_associate()
425 ssid_tlv = (struct mwifiex_ie_types_ssid_param_set *) pos; in mwifiex_cmd_802_11_associate()
430 pos += sizeof(ssid_tlv->header) + le16_to_cpu(ssid_tlv->header.len); in mwifiex_cmd_802_11_associate()
432 phy_tlv = (struct mwifiex_ie_types_phy_param_set *) pos; in mwifiex_cmd_802_11_associate()
[all …]
/linux-4.4.14/net/mac80211/
Dutil.c770 const u8 *pos = start; in ieee802_11_parse_elems_crc() local
784 id = *pos++; in ieee802_11_parse_elems_crc()
785 elen = *pos++; in ieee802_11_parse_elems_crc()
834 pos += elen; in ieee802_11_parse_elems_crc()
841 crc = crc32_be(crc, pos - 2, elen + 2); in ieee802_11_parse_elems_crc()
851 elems->lnk_id = (void *)(pos - 2); in ieee802_11_parse_elems_crc()
858 elems->ch_sw_timing = (void *)pos; in ieee802_11_parse_elems_crc()
861 elems->ext_capab = pos; in ieee802_11_parse_elems_crc()
865 elems->ssid = pos; in ieee802_11_parse_elems_crc()
869 elems->supp_rates = pos; in ieee802_11_parse_elems_crc()
[all …]
Dmesh.c255 u8 *pos, neighbors; in mesh_add_meshconf_ie() local
261 pos = skb_put(skb, 2 + meshconf_len); in mesh_add_meshconf_ie()
262 *pos++ = WLAN_EID_MESH_CONFIG; in mesh_add_meshconf_ie()
263 *pos++ = meshconf_len; in mesh_add_meshconf_ie()
266 ifmsh->meshconf_offset = pos - skb->data; in mesh_add_meshconf_ie()
269 *pos++ = ifmsh->mesh_pp_id; in mesh_add_meshconf_ie()
271 *pos++ = ifmsh->mesh_pm_id; in mesh_add_meshconf_ie()
273 *pos++ = ifmsh->mesh_cc_id; in mesh_add_meshconf_ie()
275 *pos++ = ifmsh->mesh_sp_id; in mesh_add_meshconf_ie()
277 *pos++ = ifmsh->mesh_auth_id; in mesh_add_meshconf_ie()
[all …]
Daes_cmac.c43 const u8 *pos, *end; in aes_cmac_vector() local
54 pos = addr[0]; in aes_cmac_vector()
55 end = pos + len[0]; in aes_cmac_vector()
59 cbc[i] ^= *pos++; in aes_cmac_vector()
60 if (pos >= end) { in aes_cmac_vector()
62 pos = addr[e]; in aes_cmac_vector()
63 end = pos + len[e]; in aes_cmac_vector()
77 cbc[i] ^= *pos++; in aes_cmac_vector()
78 if (pos >= end) { in aes_cmac_vector()
80 pos = addr[e]; in aes_cmac_vector()
[all …]
Dtkip.c69 static u8 *write_tkip_iv(u8 *pos, u16 iv16) in write_tkip_iv() argument
71 *pos++ = iv16 >> 8; in write_tkip_iv()
72 *pos++ = ((iv16 >> 8) | 0x20) & 0x7f; in write_tkip_iv()
73 *pos++ = iv16 & 0xFF; in write_tkip_iv()
74 return pos; in write_tkip_iv()
145 u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key *key) in ieee80211_tkip_add_iv() argument
149 pos = write_tkip_iv(pos, key->u.tkip.tx.iv16); in ieee80211_tkip_add_iv()
150 *pos++ = (key->conf.keyidx << 6) | (1 << 5) /* Ext IV */; in ieee80211_tkip_add_iv()
151 put_unaligned_le32(key->u.tkip.tx.iv32, pos); in ieee80211_tkip_add_iv()
152 return pos + 4; in ieee80211_tkip_add_iv()
[all …]
Dtdls.c52 u8 *pos = (void *)skb_put(skb, 10); in ieee80211_tdls_add_ext_capab() local
54 *pos++ = WLAN_EID_EXT_CAPABILITY; in ieee80211_tdls_add_ext_capab()
55 *pos++ = 8; /* len */ in ieee80211_tdls_add_ext_capab()
56 *pos++ = 0x0; in ieee80211_tdls_add_ext_capab()
57 *pos++ = 0x0; in ieee80211_tdls_add_ext_capab()
58 *pos++ = 0x0; in ieee80211_tdls_add_ext_capab()
59 *pos++ = chan_switch ? WLAN_EXT_CAPA4_TDLS_CHAN_SWITCH : 0; in ieee80211_tdls_add_ext_capab()
60 *pos++ = WLAN_EXT_CAPA5_TDLS_ENABLED; in ieee80211_tdls_add_ext_capab()
61 *pos++ = 0; in ieee80211_tdls_add_ext_capab()
62 *pos++ = 0; in ieee80211_tdls_add_ext_capab()
[all …]
Dmesh_hwmp.c112 u8 *pos, ie_len; in mesh_path_sel_frame_tx() local
139 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
140 *pos++ = WLAN_EID_PREQ; in mesh_path_sel_frame_tx()
145 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
146 *pos++ = WLAN_EID_PREP; in mesh_path_sel_frame_tx()
151 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
152 *pos++ = WLAN_EID_RANN; in mesh_path_sel_frame_tx()
158 *pos++ = ie_len; in mesh_path_sel_frame_tx()
159 *pos++ = flags; in mesh_path_sel_frame_tx()
160 *pos++ = hop_count; in mesh_path_sel_frame_tx()
[all …]
Dstatus.c281 unsigned char *pos; in ieee80211_add_tx_radiotap_header() local
291 pos = (unsigned char *)(rthdr + 1); in ieee80211_add_tx_radiotap_header()
307 *pos = DIV_ROUND_UP(rate, 5 * (1 << shift)); in ieee80211_add_tx_radiotap_header()
309 pos += 2; in ieee80211_add_tx_radiotap_header()
323 put_unaligned_le16(txflags, pos); in ieee80211_add_tx_radiotap_header()
324 pos += 2; in ieee80211_add_tx_radiotap_header()
328 *pos = retry_count; in ieee80211_add_tx_radiotap_header()
329 pos++; in ieee80211_add_tx_radiotap_header()
338 pos[0] = IEEE80211_RADIOTAP_MCS_HAVE_MCS | in ieee80211_add_tx_radiotap_header()
342 pos[1] |= IEEE80211_RADIOTAP_MCS_SGI; in ieee80211_add_tx_radiotap_header()
[all …]
/linux-4.4.14/tools/power/cpupower/lib/
Dsysfs.c276 unsigned int pos, i; in sysfs_get_freq_available_governors() local
284 pos = 0; in sysfs_get_freq_available_governors()
287 if (i - pos < 2) in sysfs_get_freq_available_governors()
303 current->governor = malloc(i - pos + 1); in sysfs_get_freq_available_governors()
307 memcpy(current->governor, linebuf + pos, i - pos); in sysfs_get_freq_available_governors()
308 current->governor[i - pos] = '\0'; in sysfs_get_freq_available_governors()
309 pos = i + 1; in sysfs_get_freq_available_governors()
333 unsigned int pos, i; in sysfs_get_available_frequencies() local
341 pos = 0; in sysfs_get_available_frequencies()
344 if (i - pos < 2) in sysfs_get_available_frequencies()
[all …]
/linux-4.4.14/fs/ecryptfs/
Dread_write.c113 loff_t pos; in ecryptfs_write() local
122 pos = ecryptfs_file_size; in ecryptfs_write()
124 pos = offset; in ecryptfs_write()
125 while (pos < (offset + size)) { in ecryptfs_write()
126 pgoff_t ecryptfs_page_idx = (pos >> PAGE_CACHE_SHIFT); in ecryptfs_write()
127 size_t start_offset_in_page = (pos & ~PAGE_CACHE_MASK); in ecryptfs_write()
129 loff_t total_remaining_bytes = ((offset + size) - pos); in ecryptfs_write()
138 if (pos < offset) { in ecryptfs_write()
140 loff_t total_remaining_zeros = (offset - pos); in ecryptfs_write()
163 if (pos < offset || !start_offset_in_page) { in ecryptfs_write()
[all …]
/linux-4.4.14/arch/ia64/kernel/
Dptrace.c1265 unsigned int pos; member
1518 if (dst->count > 0 && dst->pos < ELF_GR_OFFSET(1)) { in do_gpregs_get()
1519 dst->ret = user_regset_copyout_zero(&dst->pos, &dst->count, in do_gpregs_get()
1528 if (dst->count > 0 && dst->pos < ELF_GR_OFFSET(16)) { in do_gpregs_get()
1529 index = (dst->pos - ELF_GR_OFFSET(1)) / sizeof(elf_greg_t); in do_gpregs_get()
1530 min_copy = ELF_GR_OFFSET(16) > (dst->pos + dst->count) ? in do_gpregs_get()
1531 (dst->pos + dst->count) : ELF_GR_OFFSET(16); in do_gpregs_get()
1532 for (i = dst->pos; i < min_copy; i += sizeof(elf_greg_t), in do_gpregs_get()
1539 dst->ret = user_regset_copyout(&dst->pos, &dst->count, in do_gpregs_get()
1547 if (dst->count > 0 && dst->pos < ELF_NAT_OFFSET) { in do_gpregs_get()
[all …]
/linux-4.4.14/drivers/zorro/
Dproc.c34 loff_t pos = *ppos; in proc_bus_zorro_read() local
36 if (pos >= sizeof(struct ConfigDev)) in proc_bus_zorro_read()
40 if (pos + nbytes > sizeof(struct ConfigDev)) in proc_bus_zorro_read()
41 nbytes = sizeof(struct ConfigDev) - pos; in proc_bus_zorro_read()
51 if (copy_to_user(buf, (void *)&cd + pos, nbytes)) in proc_bus_zorro_read()
64 static void * zorro_seq_start(struct seq_file *m, loff_t *pos) in zorro_seq_start() argument
66 return (*pos < zorro_num_autocon) ? pos : NULL; in zorro_seq_start()
69 static void * zorro_seq_next(struct seq_file *m, void *v, loff_t *pos) in zorro_seq_next() argument
71 (*pos)++; in zorro_seq_next()
72 return (*pos < zorro_num_autocon) ? pos : NULL; in zorro_seq_next()
/linux-4.4.14/lib/xz/
Dxz_dec_stream.c36 uint32_t pos; member
126 size_t pos; member
160 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp()
162 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp()
164 s->temp.pos += copy_size; in fill_temp()
166 if (s->temp.pos == s->temp.size) { in fill_temp()
167 s->temp.pos = 0; in fill_temp()
180 if (s->pos == 0) in dec_vli()
187 s->vli |= (vli_type)(byte & 0x7F) << s->pos; in dec_vli()
191 if (byte == 0 && s->pos != 0) in dec_vli()
[all …]
/linux-4.4.14/arch/frv/kernel/
Dptrace.c42 unsigned int pos, unsigned int count, in genregs_get() argument
48 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
53 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
62 unsigned int pos, unsigned int count, in genregs_set() argument
70 if (pos < offsetof(struct user_int_regs, psr) + sizeof(long) && in genregs_set()
71 pos + count > offsetof(struct user_int_regs, psr)) in genregs_set()
74 if (pos < offsetof(struct user_int_regs, __status) + sizeof(long) && in genregs_set()
75 pos + count > offsetof(struct user_int_regs, __status)) in genregs_set()
81 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
87 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
[all …]
/linux-4.4.14/drivers/s390/char/
Dhmcdrv_dev.c57 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence);
59 size_t len, loff_t *pos);
61 size_t len, loff_t *pos);
159 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence) in hmcdrv_dev_seek() argument
163 pos += fp->f_pos; /* new position stored in 'pos' */ in hmcdrv_dev_seek()
185 if (pos < 0) in hmcdrv_dev_seek()
188 if (fp->f_pos != pos) in hmcdrv_dev_seek()
191 fp->f_pos = pos; in hmcdrv_dev_seek()
192 return pos; in hmcdrv_dev_seek()
221 size_t len, loff_t *pos) in hmcdrv_dev_read() argument
[all …]
/linux-4.4.14/fs/logfs/
Ddir.c67 loff_t pos) in write_dir() argument
69 return logfs_inode_write(dir, dd, sizeof(*dd), pos, WF_LOCK, NULL); in write_dir()
77 static s64 dir_seek_data(struct inode *inode, s64 pos) in dir_seek_data() argument
79 s64 new_pos = logfs_seek_data(inode, pos); in dir_seek_data()
81 return max(pos, new_pos - 1); in dir_seek_data()
86 loff_t pos = bix << inode->i_sb->s_blocksize_bits; in beyond_eof() local
87 return pos >= i_size_read(inode); in beyond_eof()
287 loff_t pos; in logfs_readdir() local
291 if (ctx->pos < 0) in logfs_readdir()
297 pos = ctx->pos - 2; in logfs_readdir()
[all …]
/linux-4.4.14/arch/openrisc/kernel/
Dptrace.c53 unsigned int pos, unsigned int count, in genregs_get() argument
60 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 0, 4); in genregs_get()
63 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
66 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
69 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
72 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
83 unsigned int pos, unsigned int count, in genregs_set() argument
90 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, 4); in genregs_set()
93 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
97 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
[all …]
/linux-4.4.14/fs/ntfs/
Dbitmap.c55 int pos, len; in __ntfs_bitmap_set_bits_in_run() local
85 pos = (start_bit >> 3) & ~PAGE_CACHE_MASK; in __ntfs_bitmap_set_bits_in_run()
92 u8 *byte = kaddr + pos; in __ntfs_bitmap_set_bits_in_run()
105 pos++; in __ntfs_bitmap_set_bits_in_run()
111 len = min_t(s64, cnt >> 3, PAGE_CACHE_SIZE - pos); in __ntfs_bitmap_set_bits_in_run()
112 memset(kaddr + pos, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run()
117 len += pos; in __ntfs_bitmap_set_bits_in_run()
174 pos = __ntfs_bitmap_set_bits_in_run(vi, start_bit, count - cnt, in __ntfs_bitmap_set_bits_in_run()
177 pos = 0; in __ntfs_bitmap_set_bits_in_run()
178 if (!pos) { in __ntfs_bitmap_set_bits_in_run()
[all …]
Dlogfile.c52 RESTART_PAGE_HEADER *rp, s64 pos) in ntfs_check_restart_page_header() argument
77 if (pos && pos != logfile_system_page_size) { in ntfs_check_restart_page_header()
350 RESTART_PAGE_HEADER *rp, s64 pos, RESTART_PAGE_HEADER **wrp, in ntfs_check_and_load_restart_page() argument
359 if (!ntfs_check_restart_page_header(vi, rp, pos)) { in ntfs_check_and_load_restart_page()
384 size = PAGE_CACHE_SIZE - (pos & ~PAGE_CACHE_MASK); in ntfs_check_and_load_restart_page()
397 idx = (pos + size) >> PAGE_CACHE_SHIFT; in ntfs_check_and_load_restart_page()
398 BUG_ON((pos + size) & ~PAGE_CACHE_MASK); in ntfs_check_and_load_restart_page()
486 s64 size, pos; in ntfs_check_logfile() local
541 for (pos = 0; pos < size; pos <<= 1) { in ntfs_check_logfile()
542 pgoff_t idx = pos >> PAGE_CACHE_SHIFT; in ntfs_check_logfile()
[all …]
/linux-4.4.14/tools/perf/
Dbuiltin-buildid-cache.c217 struct str_node *pos; in build_id_cache__purge_path() local
224 strlist__for_each(pos, list) { in build_id_cache__purge_path()
225 err = build_id_cache__remove_s(pos->s); in build_id_cache__purge_path()
226 pr_debug("Removing %s %s: %s\n", pos->s, pathname, in build_id_cache__purge_path()
295 struct str_node *pos; in cmd_buildid_cache() local
358 strlist__for_each(pos, list) in cmd_buildid_cache()
359 if (build_id_cache__add_file(pos->s)) { in cmd_buildid_cache()
362 pos->s); in cmd_buildid_cache()
366 pos->s, strerror_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
376 strlist__for_each(pos, list) in cmd_buildid_cache()
[all …]
/linux-4.4.14/tools/perf/ui/browsers/
Dheader.c99 char *ptr, *pos; in tui__header_window() local
107 for (pos = ptr, argc = 0; (pos = strchr(pos, '\n')) != NULL; pos++) in tui__header_window()
114 argv[0] = pos = ptr; in tui__header_window()
115 for (i = 1; (pos = strchr(pos, '\n')) != NULL; i++) { in tui__header_window()
116 *pos++ = '\0'; in tui__header_window()
117 argv[i] = pos; in tui__header_window()
Dannotate.c340 struct disasm_line *pos, u32 idx) in annotate_browser__set_top() argument
349 pos = list_entry(pos->node.prev, struct disasm_line, node); in annotate_browser__set_top()
351 if (disasm_line__filter(&browser->b, &pos->node)) in annotate_browser__set_top()
358 browser->b.top = pos; in annotate_browser__set_top()
366 struct disasm_line *pos; in annotate_browser__set_rb_top() local
370 pos = ((struct disasm_line *)bpos) - 1; in annotate_browser__set_rb_top()
374 annotate_browser__set_top(browser, pos, idx); in annotate_browser__set_rb_top()
384 struct disasm_line *pos, *next; in annotate_browser__calc_percent() local
391 list_for_each_entry(pos, &notes->src->source, node) { in annotate_browser__calc_percent()
392 struct browser_disasm_line *bpos = disasm_line__browser(pos); in annotate_browser__calc_percent()
[all …]
/linux-4.4.14/net/appletalk/
Datalk_proc.c20 static __inline__ struct atalk_iface *atalk_get_interface_idx(loff_t pos) in atalk_get_interface_idx() argument
24 for (i = atalk_interfaces; pos && i; i = i->next) in atalk_get_interface_idx()
25 --pos; in atalk_get_interface_idx()
30 static void *atalk_seq_interface_start(struct seq_file *seq, loff_t *pos) in atalk_seq_interface_start() argument
33 loff_t l = *pos; in atalk_seq_interface_start()
39 static void *atalk_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_interface_next() argument
43 ++*pos; in atalk_seq_interface_next()
81 static __inline__ struct atalk_route *atalk_get_route_idx(loff_t pos) in atalk_get_route_idx() argument
85 for (r = atalk_routes; pos && r; r = r->next) in atalk_get_route_idx()
86 --pos; in atalk_get_route_idx()
[all …]
/linux-4.4.14/drivers/char/
Dps3flash.c106 size_t count, loff_t *pos) in ps3flash_read() argument
117 __func__, __LINE__, count, *pos, userbuf, kernelbuf); in ps3flash_read()
120 if (*pos >= size || !count) in ps3flash_read()
123 if (*pos + count > size) { in ps3flash_read()
126 __LINE__, count, size - *pos); in ps3flash_read()
127 count = size - *pos; in ps3flash_read()
130 sector = *pos / dev->bounce_size * priv->chunk_sectors; in ps3flash_read()
131 offset = *pos % dev->bounce_size; in ps3flash_read()
161 *pos += n; in ps3flash_read()
175 const void *kernelbuf, size_t count, loff_t *pos) in ps3flash_write() argument
[all …]
/linux-4.4.14/drivers/vfio/pci/
Dvfio_pci_config.c117 int (*readfn)(struct vfio_pci_device *vdev, int pos, int count,
119 int (*writefn)(struct vfio_pci_device *vdev, int pos, int count,
180 static int vfio_default_config_read(struct vfio_pci_device *vdev, int pos, in vfio_default_config_read() argument
186 memcpy(val, vdev->vconfig + pos, count); in vfio_default_config_read()
196 ret = vfio_user_config_read(pdev, pos, &phys_val, count); in vfio_default_config_read()
206 static int vfio_default_config_write(struct vfio_pci_device *vdev, int pos, in vfio_default_config_write() argument
223 memcpy(&virt_val, vdev->vconfig + pos, count); in vfio_default_config_write()
228 memcpy(vdev->vconfig + pos, &virt_val, count); in vfio_default_config_write()
237 ret = vfio_user_config_read(pdev, pos, &phys_val, count); in vfio_default_config_write()
244 ret = vfio_user_config_write(pdev, pos, phys_val, count); in vfio_default_config_write()
[all …]
Dvfio_pci_rdwr.c120 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK; in vfio_pci_bar_rw() local
132 if (pos >= end) in vfio_pci_bar_rw()
135 count = min(count, (size_t)(end - pos)); in vfio_pci_bar_rw()
169 done = do_io_rw(io, buf, pos, count, x_start, x_end, iswrite); in vfio_pci_bar_rw()
184 loff_t off, pos = *ppos & VFIO_PCI_OFFSET_MASK; in vfio_pci_vga_rw() local
193 switch (pos) { in vfio_pci_vga_rw()
195 count = min(count, (size_t)(0xc0000 - pos)); in vfio_pci_vga_rw()
197 off = pos - 0xa0000; in vfio_pci_vga_rw()
202 count = min(count, (size_t)(0x3bc - pos)); in vfio_pci_vga_rw()
204 off = pos - 0x3b0; in vfio_pci_vga_rw()
[all …]
/linux-4.4.14/fs/proc/
Dinterrupts.c11 static void *int_seq_start(struct seq_file *f, loff_t *pos) in int_seq_start() argument
13 return (*pos <= nr_irqs) ? pos : NULL; in int_seq_start()
16 static void *int_seq_next(struct seq_file *f, void *v, loff_t *pos) in int_seq_next() argument
18 (*pos)++; in int_seq_next()
19 if (*pos > nr_irqs) in int_seq_next()
21 return pos; in int_seq_next()
Ddevices.c26 static void *devinfo_start(struct seq_file *f, loff_t *pos) in devinfo_start() argument
28 if (*pos < (BLKDEV_MAJOR_HASH_SIZE + CHRDEV_MAJOR_HASH_SIZE)) in devinfo_start()
29 return pos; in devinfo_start()
33 static void *devinfo_next(struct seq_file *f, void *v, loff_t *pos) in devinfo_next() argument
35 (*pos)++; in devinfo_next()
36 if (*pos >= (BLKDEV_MAJOR_HASH_SIZE + CHRDEV_MAJOR_HASH_SIZE)) in devinfo_next()
38 return pos; in devinfo_next()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Ddebugfs.c109 static void *_opcode_stats_seq_start(struct seq_file *s, loff_t *pos) in _opcode_stats_seq_start() argument
115 if (*pos >= ARRAY_SIZE(opstats->stats)) in _opcode_stats_seq_start()
117 return pos; in _opcode_stats_seq_start()
120 static void *_opcode_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _opcode_stats_seq_next() argument
124 ++*pos; in _opcode_stats_seq_next()
125 if (*pos >= ARRAY_SIZE(opstats->stats)) in _opcode_stats_seq_next()
127 return pos; in _opcode_stats_seq_next()
164 static void *_ctx_stats_seq_start(struct seq_file *s, loff_t *pos) in _ctx_stats_seq_start() argument
169 if (!*pos) in _ctx_stats_seq_start()
171 if (*pos >= dd->first_user_ctxt) in _ctx_stats_seq_start()
[all …]
/linux-4.4.14/net/sunrpc/auth_gss/
Dgss_mech_switch.c152 struct gss_api_mech *pos, *gm = NULL; in _gss_mech_get_by_name() local
155 list_for_each_entry(pos, &registered_mechs, gm_list) { in _gss_mech_get_by_name()
156 if (0 == strcmp(name, pos->gm_name)) { in _gss_mech_get_by_name()
157 if (try_module_get(pos->gm_owner)) in _gss_mech_get_by_name()
158 gm = pos; in _gss_mech_get_by_name()
181 struct gss_api_mech *pos, *gm = NULL; in gss_mech_get_by_OID() local
190 list_for_each_entry(pos, &registered_mechs, gm_list) { in gss_mech_get_by_OID()
191 if (obj->len == pos->gm_oid.len) { in gss_mech_get_by_OID()
192 if (0 == memcmp(obj->data, pos->gm_oid.data, obj->len)) { in gss_mech_get_by_OID()
193 if (try_module_get(pos->gm_owner)) in gss_mech_get_by_OID()
[all …]
/linux-4.4.14/fs/ext4/
Ddir.c142 offset = ctx->pos & (sb->s_blocksize - 1); in ext4_readdir()
144 while (ctx->pos < inode->i_size) { in ext4_readdir()
147 map.m_lblk = ctx->pos >> EXT4_BLOCK_SIZE_BITS(sb); in ext4_readdir()
169 (unsigned long long) ctx->pos); in ext4_readdir()
173 if (ctx->pos > inode->i_blocks << 9) in ext4_readdir()
175 ctx->pos += sb->s_blocksize - offset; in ext4_readdir()
185 (unsigned long long)ctx->pos); in ext4_readdir()
186 ctx->pos += sb->s_blocksize - offset; in ext4_readdir()
214 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) in ext4_readdir()
219 while (ctx->pos < inode->i_size in ext4_readdir()
[all …]
/linux-4.4.14/arch/x86/include/asm/
Dpci_x86.h162 static inline unsigned char mmio_config_readb(void __iomem *pos) in mmio_config_readb() argument
165 asm volatile("movb (%1),%%al" : "=a" (val) : "r" (pos)); in mmio_config_readb()
169 static inline unsigned short mmio_config_readw(void __iomem *pos) in mmio_config_readw() argument
172 asm volatile("movw (%1),%%ax" : "=a" (val) : "r" (pos)); in mmio_config_readw()
176 static inline unsigned int mmio_config_readl(void __iomem *pos) in mmio_config_readl() argument
179 asm volatile("movl (%1),%%eax" : "=a" (val) : "r" (pos)); in mmio_config_readl()
183 static inline void mmio_config_writeb(void __iomem *pos, u8 val) in mmio_config_writeb() argument
185 asm volatile("movb %%al,(%1)" : : "a" (val), "r" (pos) : "memory"); in mmio_config_writeb()
188 static inline void mmio_config_writew(void __iomem *pos, u16 val) in mmio_config_writew() argument
190 asm volatile("movw %%ax,(%1)" : : "a" (val), "r" (pos) : "memory"); in mmio_config_writew()
[all …]
/linux-4.4.14/drivers/video/fbdev/
Dcobalt_lcdfb.c183 unsigned long pos; in cobalt_lcdfb_read() local
186 pos = *ppos; in cobalt_lcdfb_read()
187 if (pos >= LCD_CHARS_MAX || count == 0) in cobalt_lcdfb_read()
193 if (pos + count > LCD_CHARS_MAX) in cobalt_lcdfb_read()
194 count = LCD_CHARS_MAX - pos; in cobalt_lcdfb_read()
201 lcd_write_control(info, LCD_TEXT_POS(pos)); in cobalt_lcdfb_read()
208 if (pos == 0x0f) in cobalt_lcdfb_read()
209 pos = 0x40; in cobalt_lcdfb_read()
211 pos++; in cobalt_lcdfb_read()
229 unsigned long pos; in cobalt_lcdfb_write() local
[all …]
/linux-4.4.14/fs/sysv/
Ddir.c36 static int dir_commit_chunk(struct page *page, loff_t pos, unsigned len) in dir_commit_chunk() argument
42 block_write_end(NULL, mapping, pos, len, len, page, NULL); in dir_commit_chunk()
43 if (pos+len > dir->i_size) { in dir_commit_chunk()
44 i_size_write(dir, pos+len); in dir_commit_chunk()
65 unsigned long pos = ctx->pos; in sysv_readdir() local
72 ctx->pos = pos = (pos + SYSV_DIRSIZE-1) & ~(SYSV_DIRSIZE-1); in sysv_readdir()
73 if (pos >= inode->i_size) in sysv_readdir()
76 offset = pos & ~PAGE_CACHE_MASK; in sysv_readdir()
77 n = pos >> PAGE_CACHE_SHIFT; in sysv_readdir()
89 for ( ;(char*)de <= limit; de++, ctx->pos += sizeof(*de)) { in sysv_readdir()
[all …]
/linux-4.4.14/sound/core/oss/
Drate.c47 unsigned int pos; member
57 data->pos = 0; in rate_init()
69 unsigned int pos = 0; in resample_expand() local
80 pos = data->pos; in resample_expand()
99 if (pos & ~R_MASK) { in resample_expand()
100 pos &= R_MASK; in resample_expand()
107 val = S1 + ((S2 - S1) * (signed int)pos) / BITS; in resample_expand()
114 pos += data->pitch; in resample_expand()
120 data->pos = pos; in resample_expand()
128 unsigned int pos = 0; in resample_shrink() local
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dvvp_dev.c282 static void vvp_pgcache_id_unpack(loff_t pos, struct vvp_pgcache_id *id) in vvp_pgcache_id_unpack() argument
284 CLASSERT(sizeof(pos) == sizeof(__u64)); in vvp_pgcache_id_unpack()
286 id->vpi_index = pos & 0xffffffff; in vvp_pgcache_id_unpack()
287 id->vpi_depth = (pos >> PGC_DEPTH_SHIFT) & 0xf; in vvp_pgcache_id_unpack()
288 id->vpi_bucket = (unsigned long long)pos >> PGC_OBJ_SHIFT; in vvp_pgcache_id_unpack()
345 struct lu_device *dev, loff_t pos) in vvp_pgcache_find() argument
352 vvp_pgcache_id_unpack(pos, &id); in vvp_pgcache_find()
430 loff_t pos; in vvp_pgcache_show() local
442 pos = *(loff_t *) v; in vvp_pgcache_show()
443 vvp_pgcache_id_unpack(pos, &id); in vvp_pgcache_show()
[all …]
/linux-4.4.14/net/xfrm/
Dxfrm_ipcomp.c249 struct ipcomp_tfms *pos; in ipcomp_free_tfms() local
252 list_for_each_entry(pos, &ipcomp_tfms_list, list) { in ipcomp_free_tfms()
253 if (pos->tfms == tfms) in ipcomp_free_tfms()
257 WARN_ON(!pos); in ipcomp_free_tfms()
259 if (--pos->users) in ipcomp_free_tfms()
262 list_del(&pos->list); in ipcomp_free_tfms()
263 kfree(pos); in ipcomp_free_tfms()
277 struct ipcomp_tfms *pos; in ipcomp_alloc_tfms() local
282 list_for_each_entry(pos, &ipcomp_tfms_list, list) { in ipcomp_alloc_tfms()
286 tfm = __this_cpu_read(*pos->tfms); in ipcomp_alloc_tfms()
[all …]
Dxfrm_replay.c201 u32 pos; in xfrm_replay_check_bmp() local
219 pos = (replay_esn->seq - 1) % replay_esn->replay_window; in xfrm_replay_check_bmp()
221 if (pos >= diff) in xfrm_replay_check_bmp()
222 bitnr = (pos - diff) % replay_esn->replay_window; in xfrm_replay_check_bmp()
224 bitnr = replay_esn->replay_window - (diff - pos); in xfrm_replay_check_bmp()
246 u32 pos; in xfrm_replay_advance_bmp() local
251 pos = (replay_esn->seq - 1) % replay_esn->replay_window; in xfrm_replay_advance_bmp()
258 bitnr = (pos + i) % replay_esn->replay_window; in xfrm_replay_advance_bmp()
269 bitnr = (pos + diff) % replay_esn->replay_window; in xfrm_replay_advance_bmp()
274 if (pos >= diff) in xfrm_replay_advance_bmp()
[all …]
/linux-4.4.14/tools/perf/ui/
Dbrowser.c66 struct list_head *pos) in ui_browser__list_head_filter_entries() argument
69 if (!browser->filter || !browser->filter(browser, pos)) in ui_browser__list_head_filter_entries()
70 return pos; in ui_browser__list_head_filter_entries()
71 pos = pos->next; in ui_browser__list_head_filter_entries()
72 } while (pos != browser->entries); in ui_browser__list_head_filter_entries()
79 struct list_head *pos) in ui_browser__list_head_filter_prev_entries() argument
82 if (!browser->filter || !browser->filter(browser, pos)) in ui_browser__list_head_filter_prev_entries()
83 return pos; in ui_browser__list_head_filter_prev_entries()
84 pos = pos->prev; in ui_browser__list_head_filter_prev_entries()
85 } while (pos != browser->entries); in ui_browser__list_head_filter_prev_entries()
[all …]
/linux-4.4.14/drivers/mtd/
Dmtdblock.c64 static int erase_write (struct mtd_info *mtd, unsigned long pos, in erase_write() argument
80 erase.addr = pos; in erase_write()
93 pos, len, mtd->name); in erase_write()
104 ret = mtd_write(mtd, pos, len, &retlen, buf); in erase_write()
142 static int do_cached_write (struct mtdblk_dev *mtdblk, unsigned long pos, in do_cached_write() argument
151 mtd->name, pos, len); in do_cached_write()
154 return mtd_write(mtd, pos, len, &retlen, buf); in do_cached_write()
157 unsigned long sect_start = (pos/sect_size)*sect_size; in do_cached_write()
158 unsigned int offset = pos - sect_start; in do_cached_write()
169 ret = erase_write (mtd, pos, size, buf); in do_cached_write()
[all …]
/linux-4.4.14/drivers/net/wireless/hostap/
Dhostap_plx.c227 u16 *pos; in hfa384x_from_bap() local
230 pos = (u16 *) buf; in hfa384x_from_bap()
234 pos += len / 2; in hfa384x_from_bap()
237 *((char *) pos) = HFA384X_INB(d_off); in hfa384x_from_bap()
246 u16 *pos; in hfa384x_to_bap() local
249 pos = (u16 *) buf; in hfa384x_to_bap()
253 pos += len / 2; in hfa384x_to_bap()
256 HFA384X_OUTB(*((char *) pos), d_off); in hfa384x_to_bap()
343 int i, pos; in prism2_plx_check_cis() local
363 pos = 0; in prism2_plx_check_cis()
[all …]
/linux-4.4.14/arch/m68k/amiga/
Dpcmcia.c44 int cnt, pos, len; in pcmcia_copy_tuple() local
47 pos = 0; in pcmcia_copy_tuple()
49 id = gayle_attribute[pos]; in pcmcia_copy_tuple()
51 while((id != CISTPL_END) && (pos < 0x10000)) { in pcmcia_copy_tuple()
52 len = (int)gayle_attribute[pos+2] + 2; in pcmcia_copy_tuple()
56 *dest++ = gayle_attribute[pos+(cnt<<1)]; in pcmcia_copy_tuple()
61 pos += len<<1; in pcmcia_copy_tuple()
62 id = gayle_attribute[pos]; in pcmcia_copy_tuple()
/linux-4.4.14/fs/cifs/
Dcifs_dfs_ref.c70 char *pos; in cifs_build_devname() local
79 pos = nodename + unclen - 1; in cifs_build_devname()
82 while (*pos == '\\') { in cifs_build_devname()
83 --pos; in cifs_build_devname()
97 pos = dev; in cifs_build_devname()
99 *pos = '/'; in cifs_build_devname()
100 ++pos; in cifs_build_devname()
101 *pos = '/'; in cifs_build_devname()
102 ++pos; in cifs_build_devname()
105 memcpy(pos, nodename, unclen); in cifs_build_devname()
[all …]
/linux-4.4.14/drivers/pnp/
Dcard.c200 struct pnp_id *pos = card->id; in pnp_show_card_ids() local
202 while (pos) { in pnp_show_card_ids()
203 str += sprintf(str, "%s\n", pos->id); in pnp_show_card_ids()
204 pos = pos->next; in pnp_show_card_ids()
236 struct list_head *pos, *temp; in pnp_add_card() local
256 list_for_each(pos, &card->devices) { in pnp_add_card()
257 struct pnp_dev *dev = card_to_pnp_dev(pos); in pnp_add_card()
262 list_for_each_safe(pos, temp, &pnp_card_drivers) { in pnp_add_card()
264 list_entry(pos, struct pnp_card_driver, in pnp_add_card()
277 struct list_head *pos, *temp; in pnp_remove_card() local
[all …]
/linux-4.4.14/net/ipv4/netfilter/
Dnf_conntrack_l3proto_ipv4_compat.c67 static struct hlist_nulls_node *ct_get_idx(struct seq_file *seq, loff_t pos) in ct_get_idx() argument
72 while (pos && (head = ct_get_next(seq, head))) in ct_get_idx()
73 pos--; in ct_get_idx()
74 return pos ? NULL : head; in ct_get_idx()
77 static void *ct_seq_start(struct seq_file *seq, loff_t *pos) in ct_seq_start() argument
81 return ct_get_idx(seq, *pos); in ct_seq_start()
84 static void *ct_seq_next(struct seq_file *s, void *v, loff_t *pos) in ct_seq_next() argument
86 (*pos)++; in ct_seq_next()
252 static struct hlist_node *ct_expect_get_idx(struct seq_file *seq, loff_t pos) in ct_expect_get_idx() argument
257 while (pos && (head = ct_expect_get_next(seq, head))) in ct_expect_get_idx()
[all …]
/linux-4.4.14/arch/x86/kernel/fpu/
Dregset.c28 unsigned int pos, unsigned int count, in xfpregs_get() argument
39 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in xfpregs_get()
44 unsigned int pos, unsigned int count, in xfpregs_set() argument
56 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in xfpregs_set()
75 unsigned int pos, unsigned int count, in xstateregs_get() argument
99 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, xsave, 0, -1); in xstateregs_get()
104 unsigned int pos, unsigned int count, in xstateregs_set() argument
118 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, xsave, 0, -1); in xstateregs_set()
270 unsigned int pos, unsigned int count, in fpregs_get() argument
279 return fpregs_soft_get(target, regset, pos, count, kbuf, ubuf); in fpregs_get()
[all …]
/linux-4.4.14/arch/powerpc/kernel/
Dptrace.c265 unsigned int pos, unsigned int count, in gpr_get() argument
279 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get()
284 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &msr, in gpr_get()
294 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get()
299 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in gpr_get()
306 unsigned int pos, unsigned int count, in gpr_set() argument
317 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
322 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &reg, in gpr_set()
333 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
340 &pos, &count, &kbuf, &ubuf, in gpr_set()
[all …]
/linux-4.4.14/drivers/pnp/isapnp/
Dproc.c39 int pos = *ppos; in isapnp_proc_bus_read() local
42 if (pos >= size) in isapnp_proc_bus_read()
46 if (pos + nbytes > size) in isapnp_proc_bus_read()
47 nbytes = size - pos; in isapnp_proc_bus_read()
54 for (; pos < 256 && cnt > 0; pos++, buf++, cnt--) { in isapnp_proc_bus_read()
56 val = isapnp_read_byte(pos); in isapnp_proc_bus_read()
61 *ppos = pos; in isapnp_proc_bus_read()
/linux-4.4.14/arch/mn10300/kernel/
Dptrace.c83 unsigned int pos, unsigned int count, in genregs_get() argument
90 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
95 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
101 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
110 unsigned int pos, unsigned int count, in genregs_set() argument
118 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
123 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
131 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
143 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
150 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
[all …]
/linux-4.4.14/drivers/irqchip/
Dirq-renesas-h8s.c35 int pos; in h8s_disable_irq() local
41 pos = (ipr_table[irq - 16] & 0x0f) * 4; in h8s_disable_irq()
42 pri = ~(0x000f << pos); in h8s_disable_irq()
49 int pos; in h8s_enable_irq() local
55 pos = (ipr_table[irq - 16] & 0x0f) * 4; in h8s_enable_irq()
56 pri = ~(0x000f << pos); in h8s_enable_irq()
58 pri |= 1 << pos; in h8s_enable_irq()
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dadf_transport_debug.c57 static void *adf_ring_start(struct seq_file *sfile, loff_t *pos) in adf_ring_start() argument
62 if (*pos == 0) in adf_ring_start()
65 if (*pos >= (ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size) / in adf_ring_start()
70 (ADF_MSG_SIZE_TO_BYTES(ring->msg_size) * (*pos)++); in adf_ring_start()
73 static void *adf_ring_next(struct seq_file *sfile, void *v, loff_t *pos) in adf_ring_next() argument
77 if (*pos >= (ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size) / in adf_ring_next()
82 (ADF_MSG_SIZE_TO_BYTES(ring->msg_size) * (*pos)++); in adf_ring_next()
184 static void *adf_bank_start(struct seq_file *sfile, loff_t *pos) in adf_bank_start() argument
187 if (*pos == 0) in adf_bank_start()
190 if (*pos >= ADF_ETR_MAX_RINGS_PER_BANK) in adf_bank_start()
[all …]
/linux-4.4.14/fs/freevxfs/
Dvxfs_lookup.c237 loff_t pos; in vxfs_readdir() local
239 if (ctx->pos == 0) { in vxfs_readdir()
242 ctx->pos = 1; in vxfs_readdir()
244 if (ctx->pos == 1) { in vxfs_readdir()
247 ctx->pos = 2; in vxfs_readdir()
249 pos = ctx->pos - 2; in vxfs_readdir()
251 if (pos > VXFS_DIRROUND(ip->i_size)) in vxfs_readdir()
258 page = pos >> PAGE_CACHE_SHIFT; in vxfs_readdir()
259 offset = pos & ~PAGE_CACHE_MASK; in vxfs_readdir()
260 block = (u_long)(pos >> sbp->s_blocksize_bits) % pblocks; in vxfs_readdir()
[all …]
/linux-4.4.14/drivers/staging/rtl8712/
Dieee80211.c290 u8 *pos; in r8712_parse_wpa_ie() local
299 pos = wpa_ie; in r8712_parse_wpa_ie()
300 pos += 8; in r8712_parse_wpa_ie()
304 *group_cipher = r8712_get_wpa_cipher_suite(pos); in r8712_parse_wpa_ie()
305 pos += WPA_SELECTOR_LEN; in r8712_parse_wpa_ie()
312 count = le16_to_cpu(*(u16 *)pos); in r8712_parse_wpa_ie()
313 pos += 2; in r8712_parse_wpa_ie()
318 *pairwise_cipher |= r8712_get_wpa_cipher_suite(pos); in r8712_parse_wpa_ie()
319 pos += WPA_SELECTOR_LEN; in r8712_parse_wpa_ie()
333 u8 *pos; in r8712_parse_wpa2_ie() local
[all …]
/linux-4.4.14/drivers/thermal/
Dthermal_core.c69 struct thermal_governor *pos; in __find_governor() local
74 list_for_each_entry(pos, &thermal_governor_list, governor_list) in __find_governor()
75 if (!strncasecmp(name, pos->name, THERMAL_NAME_LENGTH)) in __find_governor()
76 return pos; in __find_governor()
137 struct thermal_zone_device *pos; in thermal_register_governor() local
155 list_for_each_entry(pos, &thermal_tz_list, node) { in thermal_register_governor()
160 if (pos->governor) in thermal_register_governor()
163 name = pos->tzp->governor_name; in thermal_register_governor()
168 ret = thermal_set_governor(pos, governor); in thermal_register_governor()
170 dev_err(&pos->device, in thermal_register_governor()
[all …]
/linux-4.4.14/fs/ceph/
Dfile.c419 u64 pos, this_len, left; in striped_read() local
430 pos = off; in striped_read()
439 page_align = (pos - io_align + buf_align) & ~PAGE_MASK; in striped_read()
441 page_align = pos & ~PAGE_MASK; in striped_read()
444 &ci->i_layout, pos, &this_len, in striped_read()
452 dout("striped_read %llu~%llu (read %u) got %d%s%s\n", pos, left, read, in striped_read()
457 if (was_short && (pos + ret < inode->i_size)) { in striped_read()
459 inode->i_size - pos - ret); in striped_read()
463 pos + ret, pos + ret + zlen); in striped_read()
469 pos += ret; in striped_read()
[all …]
/linux-4.4.14/net/x25/
Dx25_proc.c30 static void *x25_seq_route_start(struct seq_file *seq, loff_t *pos) in x25_seq_route_start() argument
34 return seq_list_start_head(&x25_route_list, *pos); in x25_seq_route_start()
37 static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_route_next() argument
39 return seq_list_next(v, &x25_route_list, pos); in x25_seq_route_next()
65 static void *x25_seq_socket_start(struct seq_file *seq, loff_t *pos) in x25_seq_socket_start() argument
69 return seq_hlist_start_head(&x25_list, *pos); in x25_seq_socket_start()
72 static void *x25_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_socket_next() argument
74 return seq_hlist_next(v, &x25_list, pos); in x25_seq_socket_next()
118 static void *x25_seq_forward_start(struct seq_file *seq, loff_t *pos) in x25_seq_forward_start() argument
122 return seq_list_start_head(&x25_forward_list, *pos); in x25_seq_forward_start()
[all …]
/linux-4.4.14/fs/minix/
Ddir.c48 static int dir_commit_chunk(struct page *page, loff_t pos, unsigned len) in dir_commit_chunk() argument
53 block_write_end(NULL, mapping, pos, len, len, page, NULL); in dir_commit_chunk()
55 if (pos+len > dir->i_size) { in dir_commit_chunk()
56 i_size_write(dir, pos+len); in dir_commit_chunk()
87 unsigned long pos = ctx->pos; in minix_readdir() local
91 ctx->pos = pos = ALIGN(pos, chunk_size); in minix_readdir()
92 if (pos >= inode->i_size) in minix_readdir()
95 offset = pos & ~PAGE_CACHE_MASK; in minix_readdir()
96 n = pos >> PAGE_CACHE_SHIFT; in minix_readdir()
127 ctx->pos += chunk_size; in minix_readdir()
[all …]
/linux-4.4.14/net/ipx/
Dipx_proc.c17 static void *ipx_seq_interface_start(struct seq_file *seq, loff_t *pos) in ipx_seq_interface_start() argument
20 return seq_list_start_head(&ipx_interfaces, *pos); in ipx_seq_interface_start()
23 static void *ipx_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in ipx_seq_interface_next() argument
25 return seq_list_next(v, &ipx_interfaces, pos); in ipx_seq_interface_next()
63 static void *ipx_seq_route_start(struct seq_file *seq, loff_t *pos) in ipx_seq_route_start() argument
66 return seq_list_start_head(&ipx_routes, *pos); in ipx_seq_route_start()
69 static void *ipx_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in ipx_seq_route_next() argument
71 return seq_list_next(v, &ipx_routes, pos); in ipx_seq_route_next()
103 static __inline__ struct sock *ipx_get_socket_idx(loff_t pos) in ipx_get_socket_idx() argument
111 if (!pos) in ipx_get_socket_idx()
[all …]
/linux-4.4.14/lib/
Ddecompress_inflate.c41 long *pos, in __gunzip() argument
93 if (pos) in __gunzip()
94 *pos = 0; in __gunzip()
167 if (pos) in __gunzip()
169 *pos = strm->next_in - zbuf+8; in __gunzip()
190 long *pos, in gunzip() argument
193 return __gunzip(buf, len, fill, flush, out_buf, 0, pos, error); in gunzip()
200 long *pos, in __decompress() argument
203 return __gunzip(buf, len, fill, flush, out_buf, out_len, pos, error); in __decompress()
Dbitmap.c638 static int bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigned int nbits) in bitmap_pos_to_ord() argument
640 if (pos >= nbits || !test_bit(pos, buf)) in bitmap_pos_to_ord()
643 return __bitmap_weight(buf, pos); in bitmap_pos_to_ord()
666 unsigned int pos; in bitmap_ord_to_pos() local
668 for (pos = find_first_bit(buf, nbits); in bitmap_ord_to_pos()
669 pos < nbits && ord; in bitmap_ord_to_pos()
670 pos = find_next_bit(buf, nbits, pos + 1)) in bitmap_ord_to_pos()
673 return pos; in bitmap_ord_to_pos()
946 static int __reg_op(unsigned long *bitmap, unsigned int pos, int order, int reg_op) in __reg_op() argument
962 index = pos / BITS_PER_LONG; in __reg_op()
[all …]
Ddynamic_debug.c511 int pos = 0; in dynamic_emit_prefix() local
517 pos += snprintf(buf + pos, remaining(pos), "<intr> "); in dynamic_emit_prefix()
519 pos += snprintf(buf + pos, remaining(pos), "[%d] ", in dynamic_emit_prefix()
522 pos_after_tid = pos; in dynamic_emit_prefix()
524 pos += snprintf(buf + pos, remaining(pos), "%s:", in dynamic_emit_prefix()
527 pos += snprintf(buf + pos, remaining(pos), "%s:", in dynamic_emit_prefix()
530 pos += snprintf(buf + pos, remaining(pos), "%d:", in dynamic_emit_prefix()
532 if (pos - pos_after_tid) in dynamic_emit_prefix()
533 pos += snprintf(buf + pos, remaining(pos), " "); in dynamic_emit_prefix()
534 if (pos >= PREFIX_SIZE) in dynamic_emit_prefix()
[all …]
/linux-4.4.14/drivers/media/usb/dvb-usb/
Ddvb-usb-firmware.c40 int ret,pos=0; in usb_cypress_load_firmware() local
47 while ((ret = dvb_usb_get_hexline(fw,&hx,&pos)) > 0) { in usb_cypress_load_firmware()
60 err("firmware download failed at %d with %d",pos,ret); in usb_cypress_load_firmware()
116 int *pos) in dvb_usb_get_hexline() argument
118 u8 *b = (u8 *) &fw->data[*pos]; in dvb_usb_get_hexline()
120 if (*pos >= fw->size) in dvb_usb_get_hexline()
127 if ((*pos + hx->len + 4) >= fw->size) in dvb_usb_get_hexline()
142 *pos += hx->len + 5; in dvb_usb_get_hexline()
144 return *pos; in dvb_usb_get_hexline()
/linux-4.4.14/arch/sh/kernel/
Dptrace_32.c140 unsigned int pos, unsigned int count, in genregs_get() argument
146 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
151 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
156 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
164 unsigned int pos, unsigned int count, in genregs_set() argument
170 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
174 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
179 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
188 unsigned int pos, unsigned int count, in fpregs_get() argument
198 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in fpregs_get()
[all …]
/linux-4.4.14/arch/x86/kernel/
Dtls.c211 unsigned int pos, unsigned int count, in regset_tls_get() argument
216 if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || in regset_tls_get()
217 (pos % sizeof(struct user_desc)) != 0 || in regset_tls_get()
221 pos /= sizeof(struct user_desc); in regset_tls_get()
224 tls = &target->thread.tls_array[pos]; in regset_tls_get()
229 fill_user_desc(info++, GDT_ENTRY_TLS_MIN + pos++, in regset_tls_get()
235 fill_user_desc(&info, GDT_ENTRY_TLS_MIN + pos++, tls++); in regset_tls_get()
245 unsigned int pos, unsigned int count, in regset_tls_set() argument
252 if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || in regset_tls_set()
253 (pos % sizeof(struct user_desc)) != 0 || in regset_tls_set()
[all …]
/linux-4.4.14/drivers/gpio/
Dgpio-adnp.c77 unsigned int pos = offset & 7; in adnp_gpio_get() local
85 return (value & BIT(pos)) ? 1 : 0; in adnp_gpio_get()
91 unsigned int pos = offset & 7; in __adnp_gpio_set() local
100 val |= BIT(pos); in __adnp_gpio_set()
102 val &= ~BIT(pos); in __adnp_gpio_set()
120 unsigned int pos = offset & 7; in adnp_gpio_direction_input() local
130 value &= ~BIT(pos); in adnp_gpio_direction_input()
140 if (err & BIT(pos)) in adnp_gpio_direction_input()
155 unsigned int pos = offset & 7; in adnp_gpio_direction_output() local
165 val |= BIT(pos); in adnp_gpio_direction_output()
[all …]
/linux-4.4.14/arch/metag/include/asm/
Dptrace.h36 unsigned int pos, unsigned int count,
40 unsigned int pos, unsigned int count,
44 unsigned int pos, unsigned int count,
48 unsigned int pos, unsigned int count,
52 unsigned int pos, unsigned int count,
56 unsigned int pos, unsigned int count,
Dmmu_context.h41 struct tcm_allocation *pos, *n; in destroy_context() local
43 list_for_each_entry_safe(pos, n, &mm->context.tcm, list) { in destroy_context()
44 tcm_free(pos->tag, pos->addr, pos->size); in destroy_context()
45 list_del(&pos->list); in destroy_context()
46 kfree(pos); in destroy_context()
/linux-4.4.14/drivers/media/common/
Dcypress_firmware.c41 struct hexline *hx, int *pos) in cypress_get_hexline() argument
43 u8 *b = (u8 *) &fw->data[*pos]; in cypress_get_hexline()
46 if (*pos >= fw->size) in cypress_get_hexline()
52 if ((*pos + hx->len + 4) >= fw->size) in cypress_get_hexline()
66 *pos += hx->len + 5; in cypress_get_hexline()
68 return *pos; in cypress_get_hexline()
75 int ret, pos = 0; in cypress_load_firmware() local
95 ret = cypress_get_hexline(fw, hx, &pos); in cypress_load_firmware()
/linux-4.4.14/arch/c6x/kernel/
Dptrace.c62 unsigned int pos, unsigned int count, in gpr_get() argument
67 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get()
74 unsigned int pos, unsigned int count, in gpr_set() argument
81 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
87 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set()
93 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
100 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set()
106 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
/linux-4.4.14/arch/nios2/kernel/
Dptrace.c23 unsigned int pos, unsigned int count, in genregs_get() argument
32 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, \ in genregs_get()
37 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ in genregs_get()
42 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ in genregs_get()
58 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
69 unsigned int pos, unsigned int count, in genregs_set() argument
78 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ in genregs_set()
83 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set()
88 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set()
104 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
/linux-4.4.14/drivers/staging/android/
Dsync_debug.c123 struct list_head *pos; in sync_print_obj() local
138 list_for_each(pos, &obj->child_list_head) { in sync_print_obj()
140 container_of(pos, struct sync_pt, child_list); in sync_print_obj()
148 wait_queue_t *pos; in sync_print_fence() local
164 list_for_each_entry(pos, &fence->wq.task_list, task_list) { in sync_print_fence()
167 if (pos->func != &sync_fence_wake_up_wq) in sync_print_fence()
170 waiter = container_of(pos, struct sync_fence_waiter, work); in sync_print_fence()
180 struct list_head *pos; in sync_debugfs_show() local
185 list_for_each(pos, &sync_timeline_list_head) { in sync_debugfs_show()
187 container_of(pos, struct sync_timeline, in sync_debugfs_show()
[all …]
/linux-4.4.14/scripts/kconfig/lxdialog/
Dinputbox.c49 int show_x, len, pos; in dialog_inputbox() local
102 pos = len; in dialog_inputbox()
130 if (pos) { in dialog_inputbox()
137 if (pos < len) { in dialog_inputbox()
138 for (i = pos - 1; i < len; i++) { in dialog_inputbox()
143 pos--; in dialog_inputbox()
159 if (pos > 0) { in dialog_inputbox()
174 pos--; in dialog_inputbox()
178 if (pos < len) { in dialog_inputbox()
193 pos++; in dialog_inputbox()
[all …]
/linux-4.4.14/arch/hexagon/kernel/
Dsetup.c108 static void *c_start(struct seq_file *m, loff_t *pos) in c_start() argument
110 return *pos < nr_cpu_ids ? (void *)((unsigned long) *pos + 1) : NULL; in c_start()
113 static void *c_next(struct seq_file *m, void *v, loff_t *pos) in c_next() argument
115 ++*pos; in c_next()
116 return c_start(m, pos); in c_next()
/linux-4.4.14/fs/isofs/
Ddir.c97 offset = ctx->pos & (bufsize - 1); in do_isofs_readdir()
98 block = ctx->pos >> bufbits; in do_isofs_readdir()
100 while (ctx->pos < inode->i_size) { in do_isofs_readdir()
122 ctx->pos = (ctx->pos + ISOFS_BLOCK_SIZE) & ~(ISOFS_BLOCK_SIZE - 1); in do_isofs_readdir()
123 block = ctx->pos >> bufbits; in do_isofs_readdir()
167 ctx->pos += de_len; in do_isofs_readdir()
176 ctx->pos += de_len; in do_isofs_readdir()
186 ctx->pos += de_len; in do_isofs_readdir()
200 ctx->pos += de_len; in do_isofs_readdir()
235 ctx->pos += de_len; in do_isofs_readdir()
/linux-4.4.14/drivers/gpu/drm/exynos/
Dexynos_drm_ipp.h18 #define for_each_ipp_ops(pos) \ argument
19 for (pos = 0; pos < EXYNOS_DRM_OPS_MAX; pos++)
20 #define for_each_ipp_planar(pos) \ argument
21 for (pos = 0; pos < EXYNOS_DRM_PLANAR_MAX; pos++)
132 struct drm_exynos_pos *pos, struct drm_exynos_sz *sz);
Dexynos_drm_gsc.c611 struct drm_exynos_pos *pos, struct drm_exynos_sz *sz) in gsc_src_set_size() argument
614 struct drm_exynos_pos img_pos = *pos; in gsc_src_set_size()
619 swap, pos->x, pos->y, pos->w, pos->h); in gsc_src_set_size()
622 img_pos.w = pos->h; in gsc_src_set_size()
623 img_pos.h = pos->w; in gsc_src_set_size()
651 DRM_DEBUG_KMS("width[%d]range[%d]\n", pos->w, sc->range); in gsc_src_set_size()
653 if (pos->w >= GSC_WIDTH_ITU_709) in gsc_src_set_size()
1037 struct drm_exynos_pos *pos, struct drm_exynos_sz *sz) in gsc_dst_set_size() argument
1040 struct drm_exynos_pos img_pos = *pos; in gsc_dst_set_size()
1045 swap, pos->x, pos->y, pos->w, pos->h); in gsc_dst_set_size()
[all …]
/linux-4.4.14/net/netfilter/
Dxt_u32.c25 u_int32_t pos; in u32_match_it() local
36 pos = ct->location[0].number; in u32_match_it()
38 if (skb->len < 4 || pos > skb->len - 4) in u32_match_it()
41 if (skb_copy_bits(skb, pos, &n, sizeof(n)) < 0) in u32_match_it()
63 pos = number; in u32_match_it()
65 pos > skb->len - at - 4) in u32_match_it()
68 if (skb_copy_bits(skb, at + pos, &n, in u32_match_it()
/linux-4.4.14/arch/arm64/kernel/
Dptrace.c374 unsigned int pos, unsigned int count, in hw_break_get() argument
387 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &info, 0, in hw_break_get()
394 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, offset, in hw_break_get()
406 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &addr, in hw_break_get()
415 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &ctrl, in hw_break_get()
421 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in hw_break_get()
435 unsigned int pos, unsigned int count, in hw_break_set() argument
445 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, offset); in hw_break_set()
452 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &addr, in hw_break_set()
461 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ctrl, in hw_break_set()
[all …]
/linux-4.4.14/arch/um/drivers/
Dslip_common.h15 static inline int slip_unesc(unsigned char c, unsigned char *buf, int *pos, in slip_unesc() argument
23 ret=*pos; in slip_unesc()
24 *pos=0; in slip_unesc()
42 buf[(*pos)++] = c; in slip_unesc()
87 int pos; member
96 slip->pos = 0; in slip_proto_init()
/linux-4.4.14/arch/arm64/lib/
Dmemcmp.S57 pos .req x11 label
148 csel pos, tmp1, tmp2, hi /*Choose the maximum.*/
150 sub limit, limit, pos
155 subs pos, pos, #1
158 cbnz pos, 1f /*diff occurred before the last byte.*/
189 neg pos, tmp3
199 ldr data1, [src1,pos]
200 ldr data2, [src2,pos]
230 clz pos, diff
231 lsl data1, data1, pos
[all …]
Dstrcmp.S61 pos .req x11 label
122 csel pos, tmp1, tmp2, hi /*Choose the maximum. */
126 subs pos, pos, #1
130 cbnz pos, 1f /*find the null or unequal...*/
157 neg pos, tmp3
168 ldr data1, [src1,pos]
169 ldr data2, [src2,pos]
218 clz pos, syndrome
225 lsl data1, data1, pos
226 lsl data2, data2, pos
/linux-4.4.14/arch/s390/kernel/
Dptrace.c878 unsigned int pos, unsigned int count, in s390_regs_get() argument
887 *k++ = __peek_user(target, pos); in s390_regs_get()
889 pos += sizeof(*k); in s390_regs_get()
894 if (__put_user(__peek_user(target, pos), u++)) in s390_regs_get()
897 pos += sizeof(*u); in s390_regs_get()
905 unsigned int pos, unsigned int count, in s390_regs_set() argument
916 rc = __poke_user(target, pos, *k++); in s390_regs_set()
918 pos += sizeof(*k); in s390_regs_set()
927 rc = __poke_user(target, pos, word); in s390_regs_set()
929 pos += sizeof(*u); in s390_regs_set()
[all …]
Dprocessor.c94 static void *c_start(struct seq_file *m, loff_t *pos) in c_start() argument
96 return *pos < nr_cpu_ids ? (void *)((unsigned long) *pos + 1) : NULL; in c_start()
99 static void *c_next(struct seq_file *m, void *v, loff_t *pos) in c_next() argument
101 ++*pos; in c_next()
102 return c_start(m, pos); in c_next()
/linux-4.4.14/fs/affs/
Ddir.c57 pr_debug("%s(ino=%lu,f_pos=%llx)\n", __func__, inode->i_ino, ctx->pos); in affs_readdir()
59 if (ctx->pos < 2) { in affs_readdir()
66 chain_pos = (ctx->pos - 2) & 0xffff; in affs_readdir()
67 hash_pos = (ctx->pos - 2) >> 16; in affs_readdir()
72 ctx->pos = ((hash_pos << 16) | chain_pos) + 2; in affs_readdir()
107 ctx->pos = (hash_pos << 16) + 2; in affs_readdir()
121 namelen, name, ino, hash_pos, ctx->pos); in affs_readdir()
125 ctx->pos++; in affs_readdir()
/linux-4.4.14/fs/nfs/
Dnfs4client.c482 struct nfs_client *pos, *prev = NULL; in nfs40_walk_client_list() local
490 list_for_each_entry(pos, &nn->nfs_client_list, cl_share_link) { in nfs40_walk_client_list()
492 if (pos->rpc_ops != new->rpc_ops) in nfs40_walk_client_list()
495 if (pos->cl_minorversion != new->cl_minorversion) in nfs40_walk_client_list()
500 if (pos->cl_cons_state > NFS_CS_READY) { in nfs40_walk_client_list()
501 atomic_inc(&pos->cl_count); in nfs40_walk_client_list()
505 prev = pos; in nfs40_walk_client_list()
507 status = nfs_wait_client_init_complete(pos); in nfs40_walk_client_list()
513 if (pos->cl_cons_state != NFS_CS_READY) in nfs40_walk_client_list()
516 if (pos->cl_clientid != new->cl_clientid) in nfs40_walk_client_list()
[all …]
/linux-4.4.14/tools/firewire/
Dlist.h58 #define list_for_each_entry(pos, list, member) \ argument
59 for (pos = list_head(list, typeof(*pos), member); \
60 &pos->member != (list); \
61 pos = list_next(pos, member))
/linux-4.4.14/sound/usb/caiaq/
Dcontrol.c38 int pos = kcontrol->private_value; in control_info() local
39 int is_intval = pos & CNT_INTVAL; in control_info()
43 pos &= ~CNT_INTVAL; in control_info()
48 if (pos == 0) { in control_info()
84 int pos = kcontrol->private_value; in control_get() local
86 if (pos & CNT_INTVAL) in control_get()
88 = cdev->control_state[pos & ~CNT_INTVAL]; in control_get()
91 = !!(cdev->control_state[pos / 8] & (1 << pos % 8)); in control_get()
101 int pos = kcontrol->private_value; in control_put() local
117 if (pos & CNT_INTVAL) { in control_put()
[all …]
/linux-4.4.14/drivers/gpu/drm/
Ddrm_context.c131 struct drm_ctx_list *pos, *tmp; in drm_legacy_ctxbitmap_flush() local
139 list_for_each_entry_safe(pos, tmp, &dev->ctxlist, head) { in drm_legacy_ctxbitmap_flush()
140 if (pos->tag == file && in drm_legacy_ctxbitmap_flush()
141 pos->handle != DRM_KERNEL_CONTEXT) { in drm_legacy_ctxbitmap_flush()
143 dev->driver->context_dtor(dev, pos->handle); in drm_legacy_ctxbitmap_flush()
145 drm_legacy_ctxbitmap_free(dev, pos->handle); in drm_legacy_ctxbitmap_flush()
146 list_del(&pos->head); in drm_legacy_ctxbitmap_flush()
147 kfree(pos); in drm_legacy_ctxbitmap_flush()
501 struct drm_ctx_list *pos, *n; in drm_legacy_rmctx() local
503 list_for_each_entry_safe(pos, n, &dev->ctxlist, head) { in drm_legacy_rmctx()
[all …]
/linux-4.4.14/arch/tile/kernel/
Dproc.c75 static void *c_start(struct seq_file *m, loff_t *pos) in c_start() argument
77 return *pos < nr_cpu_ids ? cpu_to_ptr(*pos) : NULL; in c_start()
79 static void *c_next(struct seq_file *m, void *v, loff_t *pos) in c_next() argument
81 ++*pos; in c_next()
82 return c_start(m, pos); in c_next()
/linux-4.4.14/fs/ext2/
Ddir.c88 static int ext2_commit_chunk(struct page *page, loff_t pos, unsigned len) in ext2_commit_chunk() argument
95 block_write_end(NULL, mapping, pos, len, len, page, NULL); in ext2_commit_chunk()
97 if (pos+len > dir->i_size) { in ext2_commit_chunk()
98 i_size_write(dir, pos+len); in ext2_commit_chunk()
287 loff_t pos = ctx->pos; in ext2_readdir() local
290 unsigned int offset = pos & ~PAGE_CACHE_MASK; in ext2_readdir()
291 unsigned long n = pos >> PAGE_CACHE_SHIFT; in ext2_readdir()
297 if (pos > inode->i_size - EXT2_DIR_REC_LEN(1)) in ext2_readdir()
312 ctx->pos += PAGE_CACHE_SIZE - offset; in ext2_readdir()
319 ctx->pos = (n<<PAGE_CACHE_SHIFT) + offset; in ext2_readdir()
[all …]
/linux-4.4.14/drivers/tty/vt/
Dvc_screen.c202 long pos; in vcs_read() local
213 pos = *ppos; in vcs_read()
227 if (pos < 0) in vcs_read()
238 long p = pos; in vcs_read()
251 if (pos >= size) in vcs_read()
253 if (count > size - pos) in vcs_read()
254 count = size - pos; in vcs_read()
360 pos += orig_count; in vcs_read()
379 long pos; in vcs_write() local
391 pos = *ppos; in vcs_write()
[all …]
/linux-4.4.14/fs/afs/
Dproc.c24 static void *afs_proc_cells_start(struct seq_file *p, loff_t *pos);
25 static void *afs_proc_cells_next(struct seq_file *p, void *v, loff_t *pos);
59 static void *afs_proc_cell_volumes_start(struct seq_file *p, loff_t *pos);
61 loff_t *pos);
81 static void *afs_proc_cell_vlservers_start(struct seq_file *p, loff_t *pos);
83 loff_t *pos);
102 static void *afs_proc_cell_servers_start(struct seq_file *p, loff_t *pos);
104 loff_t *pos);
187 static void *afs_proc_cells_next(struct seq_file *p, void *v, loff_t *pos) in afs_proc_cells_next() argument
189 return seq_list_next(v, &afs_proc_cells, pos); in afs_proc_cells_next()
[all …]
/linux-4.4.14/arch/powerpc/sysdev/
Dmpic_u3msi.c47 static u64 read_ht_magic_addr(struct pci_dev *pdev, unsigned int pos) in read_ht_magic_addr() argument
53 pci_read_config_byte(pdev, pos + HT_MSI_FLAGS, &flags); in read_ht_magic_addr()
58 pci_read_config_dword(pdev, pos + HT_MSI_ADDR_LO, &tmp); in read_ht_magic_addr()
60 pci_read_config_dword(pdev, pos + HT_MSI_ADDR_HI, &tmp); in read_ht_magic_addr()
69 unsigned int pos; in find_ht_magic_addr() local
72 pos = pci_find_ht_capability(bus->self, HT_CAPTYPE_MSI_MAPPING); in find_ht_magic_addr()
73 if (pos) in find_ht_magic_addr()
74 return read_ht_magic_addr(bus->self, pos); in find_ht_magic_addr()
/linux-4.4.14/drivers/ssb/
Dsprom.c26 int i, pos = 0; in sprom2hex() local
29 pos += snprintf(buf + pos, buf_len - pos - 1, in sprom2hex()
31 pos += snprintf(buf + pos, buf_len - pos - 1, "\n"); in sprom2hex()
33 return pos + 1; in sprom2hex()
/linux-4.4.14/fs/hfs/
Dbitmap.c142 u32 pos; in hfs_vbm_search_free() local
151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); in hfs_vbm_search_free()
152 if (pos >= HFS_SB(sb)->fs_ablocks) { in hfs_vbm_search_free()
154 pos = hfs_find_set_zero_bits(bitmap, goal, 0, num_bits); in hfs_vbm_search_free()
155 if (pos >= HFS_SB(sb)->fs_ablocks) { in hfs_vbm_search_free()
156 *num_bits = pos = 0; in hfs_vbm_search_free()
161 hfs_dbg(BITMAP, "alloc_bits: %u,%u\n", pos, *num_bits); in hfs_vbm_search_free()
166 return pos; in hfs_vbm_search_free()
/linux-4.4.14/arch/x86/kernel/cpu/
Dproc.c140 static void *c_start(struct seq_file *m, loff_t *pos) in c_start() argument
142 *pos = cpumask_next(*pos - 1, cpu_online_mask); in c_start()
143 if ((*pos) < nr_cpu_ids) in c_start()
144 return &cpu_data(*pos); in c_start()
148 static void *c_next(struct seq_file *m, void *v, loff_t *pos) in c_next() argument
150 (*pos)++; in c_next()
151 return c_start(m, pos); in c_next()
/linux-4.4.14/tools/include/linux/
Dlist.h28 #define list_for_each_from(pos, head) \ argument
29 for (; pos != (head); pos = pos->next)

123456789