/linux-3.4.99/drivers/net/wireless/iwlwifi/ |
D | iwl-debugfs.c | 120 int pos = 0; in iwl_dbgfs_tx_statistics_read() local 129 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in iwl_dbgfs_tx_statistics_read() 131 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_tx_statistics_read() 136 pos += scnprintf(buf + pos, bufsz - pos, "Control\n"); in iwl_dbgfs_tx_statistics_read() 138 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_tx_statistics_read() 143 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n"); in iwl_dbgfs_tx_statistics_read() 144 pos += scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in iwl_dbgfs_tx_statistics_read() 146 pos += scnprintf(buf + pos, bufsz - pos, "\tbytes: %llu\n", in iwl_dbgfs_tx_statistics_read() 148 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_tx_statistics_read() 179 int pos = 0; in iwl_dbgfs_rx_statistics_read() local [all …]
|
/linux-3.4.99/drivers/net/wireless/iwlegacy/ |
D | 4965-debug.c | 63 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 …]
|
D | 3945-debug.c | 56 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 …]
|
D | debug.c | 237 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-3.4.99/include/linux/ |
D | list.h | 369 #define list_next_entry(pos, member) \ argument 370 list_entry((pos)->member.next, typeof(*(pos)), member) 377 #define list_prev_entry(pos, member) \ argument 378 list_entry((pos)->member.prev, typeof(*(pos)), member) 385 #define list_for_each(pos, head) \ argument 386 for (pos = (head)->next; pos != (head); pos = pos->next) 396 #define __list_for_each(pos, head) \ argument 397 for (pos = (head)->next; pos != (head); pos = pos->next) 404 #define list_for_each_prev(pos, head) \ argument 405 for (pos = (head)->prev; pos != (head); pos = pos->prev) [all …]
|
D | rculist.h | 272 #define list_for_each_entry_rcu(pos, head, member) \ argument 273 for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \ 274 &pos->member != (head); \ 275 pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) 289 #define list_for_each_continue_rcu(pos, head) \ argument 290 for ((pos) = rcu_dereference_raw(list_next_rcu(pos)); \ 291 (pos) != (head); \ 292 (pos) = rcu_dereference_raw(list_next_rcu(pos))) 303 #define list_for_each_entry_continue_rcu(pos, head, member) \ argument 304 for (pos = list_entry_rcu(pos->member.next, typeof(*pos), member); \ [all …]
|
D | regset.h | 60 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 …]
|
/linux-3.4.99/drivers/pci/ |
D | ats.c | 22 int pos; in ats_alloc_one() local 26 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ATS); in ats_alloc_one() 27 if (!pos) in ats_alloc_one() 34 ats->pos = pos; in ats_alloc_one() 36 pci_read_config_word(dev, pos + PCI_ATS_CAP, &cap); in ats_alloc_one() 92 pci_write_config_word(dev, dev->ats->pos + PCI_ATS_CTRL, ctrl); in pci_enable_ats() 110 pci_read_config_word(dev, dev->ats->pos + PCI_ATS_CTRL, &ctrl); in pci_disable_ats() 112 pci_write_config_word(dev, dev->ats->pos + PCI_ATS_CTRL, ctrl); in pci_disable_ats() 144 pci_write_config_word(dev, dev->ats->pos + PCI_ATS_CTRL, ctrl); in pci_restore_ats_state() 162 int pos; in pci_ats_queue_depth() local [all …]
|
D | msi.c | 114 static void msi_set_enable(struct pci_dev *dev, int pos, int enable) in msi_set_enable() argument 118 BUG_ON(!pos); in msi_set_enable() 120 pci_read_config_word(dev, pos + PCI_MSI_FLAGS, &control); in msi_set_enable() 124 pci_write_config_word(dev, pos + PCI_MSI_FLAGS, control); in msi_set_enable() 129 int pos; in msix_set_enable() local 132 pos = pci_find_capability(dev, PCI_CAP_ID_MSIX); in msix_set_enable() 133 if (pos) { in msix_set_enable() 134 pci_read_config_word(dev, pos + PCI_MSIX_FLAGS, &control); in msix_set_enable() 138 pci_write_config_word(dev, pos + PCI_MSIX_FLAGS, control); in msix_set_enable() 246 int pos = entry->msi_attrib.pos; in __read_msi_msg() local [all …]
|
/linux-3.4.99/drivers/gpu/drm/radeon/ |
D | mkregtable.c | 371 #define list_for_each(pos, head) \ argument 372 for (pos = (head)->next; prefetch(pos->next), pos != (head); \ 373 pos = pos->next) 385 #define __list_for_each(pos, head) \ argument 386 for (pos = (head)->next; pos != (head); pos = pos->next) 393 #define list_for_each_prev(pos, head) \ argument 394 for (pos = (head)->prev; prefetch(pos->prev), pos != (head); \ 395 pos = pos->prev) 403 #define list_for_each_safe(pos, n, head) \ argument 404 for (pos = (head)->next, n = pos->next; pos != (head); \ [all …]
|
/linux-3.4.99/scripts/dtc/ |
D | srcpos.c | 136 void srcpos_update(struct srcpos *pos, const char *text, int len) in srcpos_update() argument 140 pos->file = current_srcfile; in srcpos_update() 142 pos->first_line = current_srcfile->lineno; in srcpos_update() 143 pos->first_column = current_srcfile->colno; in srcpos_update() 156 pos->last_line = current_srcfile->lineno; in srcpos_update() 157 pos->last_column = current_srcfile->colno; in srcpos_update() 161 srcpos_copy(struct srcpos *pos) in srcpos_copy() argument 166 memcpy(pos_new, pos, sizeof(struct srcpos)); in srcpos_copy() 174 srcpos_dump(struct srcpos *pos) in srcpos_dump() argument 177 pos->file ? (char *) pos->file : "<no file>"); in srcpos_dump() [all …]
|
/linux-3.4.99/security/tomoyo/ |
D | realpath.c | 95 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 …]
|
/linux-3.4.99/fs/romfs/ |
D | storage.c | 27 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-3.4.99/lib/ |
D | prio_heap.c | 30 int pos; in heap_insert() local 34 pos = heap->size++; in heap_insert() 35 while (pos > 0 && heap->gt(p, ptrs[(pos-1)/2])) { in heap_insert() 36 ptrs[pos] = ptrs[(pos-1)/2]; in heap_insert() 37 pos = (pos-1)/2; in heap_insert() 39 ptrs[pos] = p; in heap_insert() 52 pos = 0; in heap_insert() 55 int left = 2 * pos + 1; in heap_insert() 56 int right = 2 * pos + 2; in heap_insert() 57 int largest = pos; in heap_insert() [all …]
|
/linux-3.4.99/arch/sparc/kernel/ |
D | ptrace_32.c | 48 unsigned int pos, unsigned int count, in genregs32_get() argument 60 pos /= sizeof(reg); in genregs32_get() 64 for (; count > 0 && pos < 16; count--) in genregs32_get() 65 *k++ = regs->u_regs[pos++]; in genregs32_get() 69 for (; count > 0 && pos < 32; count--) { in genregs32_get() 70 if (get_user(*k++, ®_window[pos++])) in genregs32_get() 74 for (; count > 0 && pos < 16; count--) { in genregs32_get() 75 if (put_user(regs->u_regs[pos++], u++)) in genregs32_get() 81 for (; count > 0 && pos < 32; count--) { in genregs32_get() 82 if (get_user(reg, ®_window[pos++]) || in genregs32_get() [all …]
|
D | ptrace_64.c | 206 unsigned int pos, unsigned int count, in genregs64_get() argument 215 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 218 if (!ret && count && pos < (32 * sizeof(u64))) { in genregs64_get() 223 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 231 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 240 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 247 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs64_get() 256 unsigned int pos, unsigned int count, in genregs64_set() argument 265 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 268 if (!ret && count && pos < (32 * sizeof(u64))) { in genregs64_set() [all …]
|
/linux-3.4.99/net/sctp/ |
D | ulpqueue.c | 287 struct sk_buff *pos; in sctp_ulpq_store_reasm() local 294 pos = skb_peek_tail(&ulpq->reasm); in sctp_ulpq_store_reasm() 295 if (!pos) { in sctp_ulpq_store_reasm() 301 cevent = sctp_skb2event(pos); in sctp_ulpq_store_reasm() 309 skb_queue_walk(&ulpq->reasm, pos) { in sctp_ulpq_store_reasm() 310 cevent = sctp_skb2event(pos); in sctp_ulpq_store_reasm() 318 __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 …]
|
/linux-3.4.99/scripts/ |
D | cleanfile | 21 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 …]
|
/linux-3.4.99/drivers/video/via/ |
D | via_aux.c | 57 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-3.4.99/drivers/pci/pcie/aer/ |
D | aerdrv.c | 124 int pos, aer_pos; in aer_enable_rootport() local 128 pos = pci_pcie_cap(pdev); in aer_enable_rootport() 130 pci_read_config_word(pdev, pos+PCI_EXP_DEVSTA, ®16); in aer_enable_rootport() 131 pci_write_config_word(pdev, pos+PCI_EXP_DEVSTA, reg16); in aer_enable_rootport() 134 pci_read_config_word(pdev, pos + PCI_EXP_RTCTL, ®16); in aer_enable_rootport() 136 pci_write_config_word(pdev, pos + PCI_EXP_RTCTL, reg16); in aer_enable_rootport() 169 int pos; in aer_disable_rootport() local 177 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_ERR); in aer_disable_rootport() 179 pci_read_config_dword(pdev, pos + PCI_ERR_ROOT_COMMAND, ®32); in aer_disable_rootport() 181 pci_write_config_dword(pdev, pos + PCI_ERR_ROOT_COMMAND, reg32); in aer_disable_rootport() [all …]
|
/linux-3.4.99/fs/jffs2/ |
D | compr_rtime.c | 38 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-3.4.99/net/atm/ |
D | atm_sysfs.c | 23 char *pos = buf; in show_address() local 28 pos += sprintf(pos, "%02x:", adev->esi[i]); in show_address() 29 pos += sprintf(pos, "%02x\n", adev->esi[i]); in show_address() 31 return pos - buf; in show_address() 38 char *pos = buf; in show_atmaddress() local 48 pos += sprintf(pos, "."); in show_atmaddress() 52 pos += sprintf(pos, "%02x", in show_atmaddress() 55 pos += sprintf(pos, "\n"); in show_atmaddress() 59 return pos - buf; in show_atmaddress() 73 char *pos = buf; in show_carrier() local [all …]
|
/linux-3.4.99/arch/x86/boot/ |
D | early_serial_console.c | 47 int pos = 0; in parse_earlyprintk() local 55 pos += 6; in parse_earlyprintk() 58 if (arg[pos] == ',') in parse_earlyprintk() 59 pos++; in parse_earlyprintk() 67 if (pos == 7 && !strncmp(arg + pos, "0x", 2)) { in parse_earlyprintk() 68 port = simple_strtoull(arg + pos, &e, 16); in parse_earlyprintk() 69 if (port == 0 || arg + pos == e) in parse_earlyprintk() 72 pos = e - arg; in parse_earlyprintk() 73 } else if (!strncmp(arg + pos, "ttyS", 4)) { in parse_earlyprintk() 77 if (!strncmp(arg + pos, "ttyS", 4)) in parse_earlyprintk() [all …]
|
/linux-3.4.99/fs/ncpfs/ |
D | file.c | 104 off_t pos; in ncp_file_read() local 113 pos = *ppos; in ncp_file_read() 120 if (pos > inode->i_sb->s_maxbytes) in ncp_file_read() 122 if (pos + count > inode->i_sb->s_maxbytes) { in ncp_file_read() 123 count = inode->i_sb->s_maxbytes - pos; in ncp_file_read() 144 bufsize - (pos % bufsize), in ncp_file_read() 149 pos, to_read, buf, &read_this_time, in ncp_file_read() 155 pos += read_this_time; in ncp_file_read() 165 *ppos = pos; in ncp_file_read() 182 off_t pos; in ncp_file_write() local [all …]
|
/linux-3.4.99/kernel/ |
D | kallsyms.c | 148 static unsigned int get_symbol_offset(unsigned long pos) in get_symbol_offset() argument 157 name = &kallsyms_names[kallsyms_markers[pos >> 8]]; in get_symbol_offset() 165 for (i = 0; i < (pos & 0xFF); i++) in get_symbol_offset() 293 unsigned long pos; in kallsyms_lookup() local 295 pos = get_symbol_pos(addr, symbolsize, offset); in kallsyms_lookup() 297 kallsyms_expand_symbol(get_symbol_offset(pos), namebuf); in kallsyms_lookup() 314 unsigned long pos; in lookup_symbol_name() local 316 pos = get_symbol_pos(addr, NULL, NULL); in lookup_symbol_name() 318 kallsyms_expand_symbol(get_symbol_offset(pos), symname); in lookup_symbol_name() 332 unsigned long pos; in lookup_symbol_attrs() local [all …]
|