/drivers/net/wireless/iwlegacy/ |
H A D | 3945-debug.c | 56 int pos = 0; local 94 pos += il3945_stats_flag(il, buf, bufsz); 95 pos += 96 scnprintf(buf + pos, bufsz - pos, 100 pos += 101 scnprintf(buf + pos, bufsz - pos, 105 pos += 106 scnprintf(buf + pos, bufs 321 int pos = 0; local 411 int pos = 0; local [all...] |
H A D | 4965-debug.c | 63 int pos = 0; local 107 pos += il4965_stats_flag(il, buf, bufsz); 108 pos += 109 scnprintf(buf + pos, bufsz - pos, fmt_header, 111 pos += 112 scnprintf(buf + pos, bufsz - pos, fmt_table, "ina_cnt:", 115 pos += 116 scnprintf(buf + pos, bufs 475 int pos = 0; local 641 int pos = 0; local [all...] |
H A D | debug.c | 237 int pos = 0; local 246 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); 248 pos += 249 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", 252 pos += scnprintf(buf + pos, bufsz - pos, "Contro 298 int pos = 0; local 343 int pos = 0; local 427 int i, j, pos = 0; local 489 int pos = 0, ofs = 0, buf_size = 0; local 538 int pos = 0, i, bufsz = PAGE_SIZE; local 617 int pos = 0; local 677 int pos = 0; local 776 int pos = 0, i; local 828 int pos = 0; local 855 int pos = 0; local 901 int pos = 0; local 955 int pos = 0; local 1054 int pos = 0; local 1125 int pos = 0; local 1201 int pos = 0; local 1223 int pos = 0; local 1265 int pos = 0; local [all...] |
/drivers/gpu/drm/nouveau/nvif/ |
H A D | list.h | 298 * Loop through the list given by head and set pos to struct in the list. 309 * @param pos Iterator variable of the type of the list elements. 314 #define list_for_each_entry(pos, head, member) \ 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, tm [all...] |
/drivers/net/wireless/iwlwifi/dvm/ |
H A D | debugfs.c | 106 int pos = 0; local 135 pos += scnprintf(buf + pos, bufsz - pos, "sram_len: 0x%x\n", 137 pos += scnprintf(buf + pos, bufsz - pos, "sram_offset: 0x%x\n", 150 pos += scnprintf(buf + pos, bufsz - pos, 234 int i, j, pos = 0; local 290 int pos = 0, ofs = 0, buf_size = 0; local 332 int pos = 0, i, bufsz = PAGE_SIZE; local 397 int pos = 0; local 431 int pos = 0; local 482 int pos = 0, i; local 512 int pos = 0; local 565 int pos = 0; local 580 int pos = 0; local 636 int pos, value; local 654 int pos = 0, i; local 720 int pos = 0; local 1153 int pos = 0; local 1350 int pos = 0; local 1470 int pos = 0; local 1558 int pos = 0; local 1700 int pos = 0; local 1779 int pos = 0; local 1836 int pos = 0; local 1882 int pos = 0; local 1959 int pos = 0; local 2000 int pos = 0; local 2039 int pos = 0; local 2099 int pos = 0; local 2145 int pos = 0; local 2266 int pos = 0; local [all...] |
/drivers/video/fbdev/via/ |
H A D | via_aux.c | 57 struct via_aux_drv *pos, *n; local 62 list_for_each_entry_safe(pos, n, &bus->drivers, chain) { 63 if (pos->cleanup) 64 pos->cleanup(pos); 66 list_del(&pos->chain); 67 kfree(pos->data); 68 kfree(pos); 76 struct via_aux_drv *pos; local 82 list_for_each_entry(pos, [all...] |
/drivers/pci/ |
H A D | ats.c | 22 int pos; local 26 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ATS); 27 if (!pos) 34 ats->pos = pos; 36 pci_read_config_word(dev, pos + PCI_ATS_CAP, &cap); 92 pci_write_config_word(dev, dev->ats->pos + PCI_ATS_CTRL, ctrl); 110 pci_read_config_word(dev, dev->ats->pos + PCI_ATS_CTRL, &ctrl); 112 pci_write_config_word(dev, dev->ats->pos + PCI_ATS_CTRL, ctrl); 144 pci_write_config_word(dev, dev->ats->pos 162 int pos; local 193 int pos; local 225 int pos; local 247 int pos; local 279 int pos; local 313 int pos; local 336 int pos; local 362 int pos; local [all...] |
H A D | vc.c | 22 * @pos: starting config space position 27 static void pci_vc_save_restore_dwords(struct pci_dev *dev, int pos, argument 34 pci_read_config_dword(dev, pos + (i * 4), buf); 36 pci_write_config_dword(dev, pos + (i * 4), *buf); 43 * @pos: starting position of VC capability (VC/VC9/MFVC) 49 static void pci_vc_load_arb_table(struct pci_dev *dev, int pos) argument 53 pci_read_config_word(dev, pos + PCI_VC_PORT_CTRL, &ctrl); 54 pci_write_config_word(dev, pos + PCI_VC_PORT_CTRL, 56 if (pci_wait_for_pending(dev, pos + PCI_VC_PORT_STATUS, 66 * @pos 73 pci_vc_load_port_arb_table(struct pci_dev *dev, int pos, int res) argument 104 pci_vc_enable(struct pci_dev *dev, int pos, int res) argument 187 pci_vc_do_save_buffer(struct pci_dev *dev, int pos, struct pci_cap_saved_state *save_state, bool save) argument 361 int pos, ret; local 398 int pos; local 423 int len, pos = pci_find_ext_capability(dev, vc_caps[i].id); local [all...] |
H A D | access.c | 25 #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); \ 93 * @pos: offset in vpd space 98 ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf) argument 102 return dev->vpd->ops->read(dev, pos, count, buf); 109 * @pos 114 pci_write_vpd(struct pci_dev *dev, loff_t pos, size_t count, const void *buf) argument 244 pci_vpd_pci22_read(struct pci_dev *dev, loff_t pos, size_t count, void *arg) argument 296 pci_vpd_pci22_write(struct pci_dev *dev, loff_t pos, size_t count, const void *arg) argument 477 pcie_capability_reg_implemented(struct pci_dev *dev, int pos) argument 517 pcie_capability_read_word(struct pci_dev *dev, int pos, u16 *val) argument 553 pcie_capability_read_dword(struct pci_dev *dev, int pos, u32 *val) argument 582 pcie_capability_write_word(struct pci_dev *dev, int pos, u16 val) argument 594 pcie_capability_write_dword(struct pci_dev *dev, int pos, u32 val) argument 606 pcie_capability_clear_and_set_word(struct pci_dev *dev, int pos, u16 clear, u16 set) argument 623 pcie_capability_clear_and_set_dword(struct pci_dev *dev, int pos, u32 clear, u32 set) argument [all...] |
H A D | proc.c | 30 unsigned int pos = *ppos; local 46 if (pos >= size) 50 if (pos + nbytes > size) 51 nbytes = size - pos; 59 if ((pos & 1) && cnt) { 61 pci_user_read_config_byte(dev, pos, &val); 64 pos++; 68 if ((pos & 3) && cnt > 2) { 70 pci_user_read_config_word(dev, pos, &val); 73 pos 115 int pos = *ppos; local 299 pci_seq_start(struct seq_file *m, loff_t *pos) argument 311 pci_seq_next(struct seq_file *m, void *v, loff_t *pos) argument [all...] |
/drivers/firmware/ |
H A D | iscsi_ibft_find.c | 60 unsigned long pos; local 65 for (pos = IBFT_START; pos < IBFT_END; pos += 16) { 68 if (pos == VGA_MEM) 69 pos += VGA_SIZE; 70 virt = isa_bus_to_virt(pos); 76 (unsigned long *)isa_bus_to_virt(pos + 4); 80 if (pos + len <= (IBFT_END-1)) { 82 pr_info("iBFT found at 0x%lx.\n", pos); [all...] |
/drivers/pci/pcie/aer/ |
H A D | ecrc.c | 51 int pos; local 57 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); 58 if (!pos) 61 pci_read_config_dword(dev, pos + PCI_ERR_CAP, ®32); 66 pci_write_config_dword(dev, pos + PCI_ERR_CAP, reg32); 79 int pos; local 85 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); 86 if (!pos) 89 pci_read_config_dword(dev, pos + PCI_ERR_CAP, ®32); 91 pci_write_config_dword(dev, pos [all...] |
/drivers/gpu/drm/radeon/ |
H A D | mkregtable.c | 368 * @pos: the &struct list_head to use as a loop cursor. 371 #define list_for_each(pos, head) \ 372 for (pos = (head)->next; prefetch(pos->next), pos != (head); \ 373 pos = pos->next) 377 * @pos: the &struct list_head to use as a loop cursor. 380 #define list_for_each_prev(pos, head) \ 381 for (pos [all...] |
/drivers/net/wireless/iwlwifi/mvm/ |
H A D | debugfs.c | 268 int pos; local 271 pos = scnprintf(buf , sizeof(buf), "disabled\n"); 273 pos = scnprintf(buf , sizeof(buf), "%d\n", mvm->temperature); 275 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); 335 int pos, temp; local 347 pos = scnprintf(buf , sizeof(buf), "%d\n", temp); 349 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); 358 int i, pos = 0, bufsz = sizeof(buf); local 363 pos += scnprintf(buf + pos, bufs 388 int pos = 0; local 438 iwl_mvm_coex_dump_mbox(struct iwl_bt_coex_profile_notif *notif, char *buf, int pos, int bufsz) argument 497 iwl_mvm_coex_dump_mbox_old(struct iwl_bt_coex_profile_notif_old *notif, char *buf, int pos, int bufsz) argument 560 int ret, pos = 0, bufsz = sizeof(char) * 1024; local 621 int pos = 0; local 741 int pos = 0; local 873 char *buff, *pos, *endpos; local 981 int pos = 0; local 1027 int i, j, pos = 0; local 1075 int pos, next_pos; local 1132 int i, pos = 0; local 1216 int ofs, len, pos = 0; local 1267 int i, pos = 0; local 1348 int pos = 0; local [all...] |
H A D | debugfs-vif.c | 202 int pos; local 204 pos = iwl_mvm_power_mac_dbgfs_read(mvm, vif, buf, bufsz); 206 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); 220 int pos = 0; local 229 pos += scnprintf(buf+pos, bufsz-pos, "type: ibss\n"); 232 pos += scnprintf(buf+pos, bufsz-pos, "typ 443 int pos = 0; local [all...] |
/drivers/acpi/acpica/ |
H A D | utprint.c | 147 char *pos; local 149 pos = string; 153 *(pos++) = '0'; 158 *(pos++) = digits[digit_index]; 163 return (pos); 245 char *pos; local 293 pos = acpi_ut_put_number(reversed_string, number, base, upper); 294 i = ACPI_PTR_DIFF(pos, reversed_string); 366 char *pos; local 374 pos [all...] |
/drivers/misc/mei/ |
H A D | debugfs.c | 34 int pos = 0; local 51 pos += scnprintf(buf + pos, bufsz - pos, HDR); 63 pos += scnprintf(buf + pos, bufsz - pos, 74 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); 93 int pos = 0; local 103 pos 139 int pos = 0; local [all...] |
/drivers/pnp/isapnp/ |
H A D | proc.c | 39 int pos = *ppos; local 42 if (pos >= size) 46 if (pos + nbytes > size) 47 nbytes = size - pos; 54 for (; pos < 256 && cnt > 0; pos++, buf++, cnt--) { 56 val = isapnp_read_byte(pos); 61 *ppos = pos;
|
/drivers/net/wireless/mwifiex/ |
H A D | tdls.c | 125 u8 rates[MWIFIEX_SUPPORTED_RATES], *pos; local 139 pos = skb_put(skb, supp_rates_size + 2); 140 *pos++ = WLAN_EID_SUPP_RATES; 141 *pos++ = supp_rates_size; 142 memcpy(pos, rates, supp_rates_size); 146 pos = skb_put(skb, ext_rates_size + 2); 147 *pos++ = WLAN_EID_EXT_SUPP_RATES; 148 *pos++ = ext_rates_size; 149 memcpy(pos, rates + MWIFIEX_TDLS_SUPPORTED_RATES, 160 u8 *pos; local 175 u8 *pos; local 197 u8 *pos; local 240 u8 *pos, ap_supp_chwd_set, chan_bw; local 363 u8 *pos = (void *)skb_put(skb, 3); local 379 u8 radio, *pos; local 628 u8 radio, *pos; local 704 u8 *pos; local 782 u8 *peer, *pos, *end; local [all...] |
/drivers/staging/rtl8192e/ |
H A D | rtllib_crypt_ccmp.c | 115 u8 *pos, qc = 0; local 134 pos = (u8 *) &hdr->addr4; 136 pos += 6; 137 qc = *pos & 0x0f; 159 pos = (u8 *) hdr; 162 aad[2] = pos[0] & 0x8f; 163 aad[3] = pos[1] & 0xc7; 165 pos = (u8 *) &hdr->seq_ctl; 166 aad[22] = pos[0] & 0x0f; 193 u8 *pos; local 265 u8 keyidx, *pos; local [all...] |
H A D | rtllib_crypt_wep.c | 101 u8 *pos; local 117 pos = skb_push(skb, 4); 118 memmove(pos, pos + 4, hdr_len); 119 pos += hdr_len; 136 *pos++ = key[0] = (wep->iv >> 16) & 0xff; 137 *pos++ = key[1] = (wep->iv >> 8) & 0xff; 138 *pos++ = key[2] = wep->iv & 0xff; 139 *pos++ = wep->key_idx << 6; 147 crc = ~crc32_le(~0, pos, le 175 u8 keyidx, *pos; local [all...] |
/drivers/staging/rtl8192u/ieee80211/ |
H A D | ieee80211_crypt_ccmp.c | 120 u8 *pos, qc = 0; local 140 pos = (u8 *) &hdr->addr4; 142 pos += 6; 143 qc = *pos & 0x0f; 165 pos = (u8 *) hdr; 168 aad[2] = pos[0] & 0x8f; 169 aad[3] = pos[1] & 0xc7; 171 pos = (u8 *) &hdr->seq_ctl; 172 aad[22] = pos[0] & 0x0f; 199 u8 *pos; local 273 u8 keyidx, *pos; local [all...] |
H A D | ieee80211_crypt_wep.c | 107 u8 *pos; local 118 pos = skb_push(skb, 4); 119 memmove(pos, pos + 4, hdr_len); 120 pos += hdr_len; 136 *pos++ = key[0] = (wep->iv >> 16) & 0xff; 137 *pos++ = key[1] = (wep->iv >> 8) & 0xff; 138 *pos++ = key[2] = wep->iv & 0xff; 139 *pos++ = wep->key_idx << 6; 148 crc = ~crc32_le(~0, pos, le 177 u8 keyidx, *pos; local [all...] |
/drivers/cpufreq/ |
H A D | freq_table.c | 24 struct cpufreq_frequency_table *pos; local 29 cpufreq_for_each_valid_entry(pos, table) { 30 freq = pos->frequency; 33 && (pos->flags & CPUFREQ_BOOST_FREQ)) 36 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); 57 struct cpufreq_frequency_table *pos; local 66 cpufreq_for_each_valid_entry(pos, table) { 67 freq = pos->frequency; 119 struct cpufreq_frequency_table *pos; local 135 cpufreq_for_each_valid_entry(pos, tabl 200 struct cpufreq_frequency_table *pos, *table; local 223 struct cpufreq_frequency_table *pos, *table = policy->freq_table; local [all...] |
/drivers/infiniband/hw/qib/ |
H A D | qib_debugfs.c | 79 static void *_opcode_stats_seq_start(struct seq_file *s, loff_t *pos) argument 83 if (*pos >= ARRAY_SIZE(opstats->stats)) 85 return pos; 88 static void *_opcode_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) argument 92 ++*pos; 93 if (*pos >= ARRAY_SIZE(opstats->stats)) 95 return pos; 129 static void *_ctx_stats_seq_start(struct seq_file *s, loff_t *pos) argument 134 if (!*pos) 136 if (*pos > 141 _ctx_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) argument 191 _qp_stats_seq_start(struct seq_file *s, loff_t *pos) argument 211 _qp_stats_seq_next(struct seq_file *s, void *iter_ptr, loff_t *pos) argument [all...] |