| /linux/drivers/net/wireless/intel/iwlegacy/ |
| H A D | 4965-debug.c | 45 int pos = 0; in il4965_ucode_rx_stats_read() local 89 pos += il4965_stats_flag(il, buf, bufsz); in il4965_ucode_rx_stats_read() 90 pos += in il4965_ucode_rx_stats_read() 91 scnprintf(buf + pos, bufsz - pos, fmt_header, in il4965_ucode_rx_stats_read() 93 pos += in il4965_ucode_rx_stats_read() 94 scnprintf(buf + pos, bufsz - pos, fmt_table, "ina_cnt:", in il4965_ucode_rx_stats_read() 97 pos += in il4965_ucode_rx_stats_read() 98 scnprintf(buf + pos, bufsz - pos, fmt_table, "fina_cnt:", in il4965_ucode_rx_stats_read() 101 pos += in il4965_ucode_rx_stats_read() 102 scnprintf(buf + pos, bufsz - pos, fmt_table, "plcp_err:", in il4965_ucode_rx_stats_read() [all …]
|
| H A D | debug.c | 206 int pos = 0; in il_dbgfs_tx_stats_read() local 215 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in il_dbgfs_tx_stats_read() 217 pos += in il_dbgfs_tx_stats_read() 218 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read() 221 pos += scnprintf(buf + pos, bufsz - pos, "Control\n"); in il_dbgfs_tx_stats_read() 223 pos += in il_dbgfs_tx_stats_read() 224 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read() 227 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n"); in il_dbgfs_tx_stats_read() 228 pos += in il_dbgfs_tx_stats_read() 229 scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in il_dbgfs_tx_stats_read() [all …]
|
| H A D | 3945-debug.c | 38 int pos = 0; in il3945_ucode_rx_stats_read() local 76 pos += il3945_stats_flag(il, buf, bufsz); in il3945_ucode_rx_stats_read() 77 pos += in il3945_ucode_rx_stats_read() 78 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() 82 pos += in il3945_ucode_rx_stats_read() 83 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() 87 pos += in il3945_ucode_rx_stats_read() 88 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() 92 pos += in il3945_ucode_rx_stats_read() 93 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() [all …]
|
| /linux/fs/ntfs3/ |
| H A D | bitfunc.c | 35 size_t pos = bit & 7; in are_bits_clear() local 38 if (pos) { in are_bits_clear() 39 if (8 - pos >= nbits) in are_bits_clear() 40 return !nbits || !(*map & fill_mask[pos + nbits] & in are_bits_clear() 41 zero_mask[pos]); in are_bits_clear() 43 if (*map++ & zero_mask[pos]) in are_bits_clear() 45 nbits -= 8 - pos; in are_bits_clear() 48 pos = ((size_t)map) & (sizeof(size_t) - 1); in are_bits_clear() 49 if (pos) { in are_bits_clear() 50 pos = sizeof(size_t) - pos; in are_bits_clear() [all …]
|
| /linux/drivers/gpu/drm/msm/registers/display/ |
| H A D | edp.xml | 23 <bitfield name="ENABLE" pos="0" type="boolean"/> 24 <bitfield name="RESET" pos="1" type="boolean"/> 28 <bitfield name="TRAIN_PATTERN_1" pos="0" type="boolean"/> 29 <bitfield name="TRAIN_PATTERN_2" pos="1" type="boolean"/> 30 <bitfield name="TRAIN_PATTERN_3" pos="2" type="boolean"/> 31 <bitfield name="SYMBOL_ERR_RATE_MEAS" pos="3" type="boolean"/> 32 <bitfield name="PRBS7" pos="4" type="boolean"/> 33 <bitfield name="CUSTOM_80_BIT_PATTERN" pos="5" type="boolean"/> 34 <bitfield name="SEND_VIDEO" pos="6" type="boolean"/> 35 <bitfield name="PUSH_IDLE" pos="7" type="boolean"/> [all …]
|
| H A D | mdp4.xml | 67 <bitfield name="PIPE0_MIXER1" pos="3" type="boolean"/> 69 <bitfield name="PIPE1_MIXER1" pos="7" type="boolean"/> 71 <bitfield name="PIPE2_MIXER1" pos="11" type="boolean"/> 73 <bitfield name="PIPE3_MIXER1" pos="15" type="boolean"/> 75 <bitfield name="PIPE4_MIXER1" pos="19" type="boolean"/> 77 <bitfield name="PIPE5_MIXER1" pos="23" type="boolean"/> 79 <bitfield name="PIPE6_MIXER1" pos="27" type="boolean"/> 81 <bitfield name="PIPE7_MIXER1" pos="31" type="boolean"/> 85 <bitfield name="OVERLAY0_DONE" pos="0" type="boolean"/> 86 <bitfield name="OVERLAY1_DONE" pos="1" type="boolean"/> [all …]
|
| /linux/tools/include/linux/ |
| H A D | list.h | 410 * @pos: the type * to cursor 413 #define list_next_entry(pos, member) \ argument 414 list_entry((pos)->member.next, typeof(*(pos)), member) 418 * @pos: the type * to cursor 421 #define list_prev_entry(pos, member) \ argument 422 list_entry((pos)->member.prev, typeof(*(pos)), member) 426 * @pos: the &struct list_head to use as a loop cursor. 429 #define list_for_each(pos, head) \ argument 430 for (pos = (head)->next; pos != (head); pos = pos->next) 434 * @pos: the &struct list_head to use as a loop cursor. [all …]
|
| /linux/include/linux/ |
| H A D | list.h | 303 struct list_head *pos = entry2->prev; in list_swap() local 307 if (pos == entry1) in list_swap() 308 pos = entry2; in list_swap() 309 list_add(entry1, pos); in list_swap() 700 * @pos: the type * to cursor 703 #define list_next_entry(pos, member) \ argument 704 list_entry((pos)->member.next, typeof(*(pos)), member) 708 * @pos: the type * to cursor. 712 * Wraparound if pos is the last element (return the first element). 715 #define list_next_entry_circular(pos, head, member) \ argument [all …]
|
| H A D | rculist.h | 47 * @pos: the &struct list_head to use as a loop cursor. 50 #define list_for_each_rcu(pos, head) \ argument 51 for (pos = rcu_dereference((head)->next); \ 52 !list_is_head(pos, (head)); \ 53 pos = rcu_dereference(pos->next)) 466 * @pos: the type * to use as a loop cursor. 475 #define list_for_each_entry_rcu(pos, head, member, cond...) \ argument 477 pos = list_entry_rcu((head)->next, typeof(*pos), member); \ 478 &pos->member != (head); \ 479 pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) [all …]
|
| /linux/fs/iomap/ |
| H A D | seek.c | 17 iter->pos, iter->pos + length, SEEK_HOLE); in iomap_seek_hole_iter() 18 if (*hole_pos == iter->pos + length) in iomap_seek_hole_iter() 22 *hole_pos = iter->pos; in iomap_seek_hole_iter() 30 iomap_seek_hole(struct inode *inode, loff_t pos, const struct iomap_ops *ops) in iomap_seek_hole() argument 35 .pos = pos, in iomap_seek_hole() 41 if (pos < 0 || pos >= size) in iomap_seek_hole() 44 iter.len = size - pos; in iomap_seek_hole() 46 iter.status = iomap_seek_hole_iter(&iter, &pos); in iomap_seek_hole() 50 return pos; in iomap_seek_hole() 65 iter->pos, iter->pos + length, SEEK_DATA); in iomap_seek_data_iter() [all …]
|
| /linux/drivers/gpu/drm/omapdrm/ |
| H A D | tcm-sita.c | 22 * pos position in bitmap 28 static void free_slots(unsigned long pos, u16 w, u16 h, in free_slots() argument 33 for (i = 0; i < h; i++, pos += stride) in free_slots() 34 bitmap_clear(map, pos, w); in free_slots() 39 * pos ptr to position 43 static int r2l_b2t_1d(u16 w, unsigned long *pos, unsigned long *map, in r2l_b2t_1d() argument 50 *pos = num_bits - w; in r2l_b2t_1d() 53 bit = find_next_bit(map, num_bits, *pos); in r2l_b2t_1d() 55 if (bit - *pos >= w) { in r2l_b2t_1d() 57 bitmap_set(map, *pos, w); in r2l_b2t_1d() [all …]
|
| /linux/fs/romfs/ |
| H A D | storage.c | 23 static int romfs_mtd_read(struct super_block *sb, unsigned long pos, in romfs_mtd_read() argument 29 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf); in romfs_mtd_read() 37 unsigned long pos, size_t maxlen) in romfs_mtd_strnlen() argument 48 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strnlen() 55 pos += len; in romfs_mtd_strnlen() 66 static int romfs_mtd_strcmp(struct super_block *sb, unsigned long pos, in romfs_mtd_strcmp() argument 79 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strcmp() 87 pos += len; in romfs_mtd_strcmp() 103 static int romfs_blk_read(struct super_block *sb, unsigned long pos, in romfs_blk_read() argument 112 offset = pos & (ROMBSIZE - 1); in romfs_blk_read() [all …]
|
| /linux/tools/perf/dlfilters/ |
| H A D | dlfilter-show-cycles.c | 49 __u32 pos = tid & MASK; in find_entry() local 52 e = &table[pos]; in find_entry() 56 if (++pos == TABLESZ) in find_entry() 57 pos = 0; in find_entry() 58 e = &table[pos]; in find_entry() 72 static void add_entry(__s32 tid, int pos, __u64 cnt) in add_entry() argument 77 e->cycles[pos] += cnt; in add_entry() 84 int pos; in filter_event_early() local 89 pos = event_entry(sample->event); in filter_event_early() 92 cycles[cpu][pos] += sample->cyc_cnt; in filter_event_early() [all …]
|
| /linux/tools/testing/cxl/test/ |
| H A D | cxl_translate.c | 56 * pos: devices position in interleave 64 static u64 to_hpa(u64 dpa_offset, int pos, u8 r_eiw, u16 r_eig, u8 hb_ways, in to_hpa() argument 70 hpa_offset = cxl_calculate_hpa_offset(dpa_offset, pos, r_eiw, r_eig); in to_hpa() 132 * @pos: expected position in region interleave 141 static int run_translation_test(u64 dpa, int pos, u8 r_eiw, u16 r_eig, in run_translation_test() argument 147 /* Test Device to Host translation: DPA + POS -> SPA */ in run_translation_test() 148 translated_spa = to_hpa(dpa, pos, r_eiw, r_eig, hb_ways, math); in run_translation_test() 163 /* Test Host to Device Position translation: SPA -> POS */ in run_translation_test() 165 if (reverse_pos != pos) { in run_translation_test() 166 pr_err("Position lookup failed: expected %d, got %d\n", pos, in run_translation_test() 188 parse_test_vector(const char * entry,u64 * dpa,int * pos,u8 * r_eiw,u16 * r_eig,u8 * hb_ways,int * math,u64 * expect_hpa) parse_test_vector() argument 249 int i, ways, pos, reverse_pos; test_random_params() local 293 int pos; global() member 403 int pos, math; cxl_translate_init() local [all...] |
| /linux/security/tomoyo/ |
| H A D | realpath.c | 97 char *pos = ERR_PTR(-ENOMEM); in tomoyo_get_absolute_path() local 101 pos = d_absolute_path(path, buffer, buflen - 1); in tomoyo_get_absolute_path() 102 if (!IS_ERR(pos) && *pos == '/' && pos[1]) { in tomoyo_get_absolute_path() 111 return pos; in tomoyo_get_absolute_path() 128 char *pos = ERR_PTR(-ENOMEM); in tomoyo_get_dentry_path() local 131 pos = dentry_path_raw(dentry, buffer, buflen - 1); in tomoyo_get_dentry_path() 132 if (!IS_ERR(pos) && *pos == '/' && pos[1]) { in tomoyo_get_dentry_path() 141 return pos; in tomoyo_get_dentry_path() 157 char *pos = tomoyo_get_dentry_path(dentry, buffer, buflen); in tomoyo_get_local_path() local 159 if (IS_ERR(pos)) in tomoyo_get_local_path() [all …]
|
| /linux/scripts/include/ |
| H A D | list.h | 255 * @pos: the type * to cursor 258 #define list_next_entry(pos, member) \ argument 259 list_entry((pos)->member.next, typeof(*(pos)), member) 263 * @pos: the type * to cursor 266 #define list_prev_entry(pos, member) \ argument 267 list_entry((pos)->member.prev, typeof(*(pos)), member) 271 * @pos: the type * to cursor 275 #define list_entry_is_head(pos, head, member) \ argument 276 (&pos->member == (head)) 280 * @pos: the type * to use as a loop cursor. [all …]
|
| /linux/drivers/pci/ |
| H A D | vc.c | 22 * @pos: starting config space position 27 static void pci_vc_save_restore_dwords(struct pci_dev *dev, int pos, 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() 43 * @pos: starting position of VC capability (VC/VC9/MFVC) 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() 66 * @pos: starting position of VC capability (VC/VC9/MFVC) [all …]
|
| /linux/drivers/vfio/pci/ |
| H A D | vfio_pci_igd.c | 38 * @pos: Increased by bytes on return. 40 * @bytes: Bytes to copy and adjust off, pos and remaining. 50 loff_t *pos, in igd_opregion_shift_copy() argument 58 *pos += bytes; in igd_opregion_shift_copy() 70 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK, off = 0; in vfio_pci_igd_rw() local 73 if (pos >= vdev->region[i].size || iswrite) in vfio_pci_igd_rw() 76 count = min_t(size_t, count, vdev->region[i].size - pos); in vfio_pci_igd_rw() 80 if (remaining && pos < OPREGION_VERSION) { in vfio_pci_igd_rw() 81 size_t bytes = min_t(size_t, remaining, OPREGION_VERSION - pos); in vfio_pci_igd_rw() 84 opregionvbt->opregion + pos, &pos, in vfio_pci_igd_rw() [all …]
|
| /linux/net/sctp/ |
| H A D | stream_interleave.c | 128 struct sk_buff *pos, *loc; in sctp_intl_store_reasm() local 130 pos = skb_peek_tail(&ulpq->reasm); in sctp_intl_store_reasm() 131 if (!pos) { in sctp_intl_store_reasm() 136 cevent = sctp_skb2event(pos); in sctp_intl_store_reasm() 155 skb_queue_walk(&ulpq->reasm, pos) { in sctp_intl_store_reasm() 156 cevent = sctp_skb2event(pos); in sctp_intl_store_reasm() 161 loc = pos; in sctp_intl_store_reasm() 169 loc = pos; in sctp_intl_store_reasm() 188 struct sk_buff *pos; in sctp_intl_retrieve_partial() local 194 skb_queue_walk(&ulpq->reasm, pos) { in sctp_intl_retrieve_partial() [all …]
|
| /linux/drivers/video/fbdev/via/ |
| H A D | via_aux.c | 42 struct via_aux_drv *pos, *n; in via_aux_free() local 47 list_for_each_entry_safe(pos, n, &bus->drivers, chain) { in via_aux_free() 48 if (pos->cleanup) in via_aux_free() 49 pos->cleanup(pos); in via_aux_free() 51 list_del(&pos->chain); in via_aux_free() 52 kfree(pos->data); in via_aux_free() 53 kfree(pos); in via_aux_free() 61 struct via_aux_drv *pos; in via_aux_get_preferred_mode() local 67 list_for_each_entry(pos, &bus->drivers, chain) { in via_aux_get_preferred_mode() 68 if (pos->get_preferred_mode) in via_aux_get_preferred_mode() [all …]
|
| /linux/fs/xfs/scrub/ |
| H A D | xfile.c | 112 loff_t pos) in xfile_load() argument 119 if (inode->i_sb->s_maxbytes - pos < count) in xfile_load() 122 trace_xfile_load(xf, pos, count); in xfile_load() 130 if (shmem_get_folio(inode, pos >> PAGE_SHIFT, 0, &folio, in xfile_load() 139 PAGE_SIZE - offset_in_page(pos)); in xfile_load() 148 offset = offset_in_folio(folio, pos); in xfile_load() 156 pos += len; in xfile_load() 175 loff_t pos) in xfile_store() argument 182 if (inode->i_sb->s_maxbytes - pos < count) in xfile_store() 185 trace_xfile_store(xf, pos, count); in xfile_store() [all …]
|
| /linux/security/apparmor/ |
| H A D | policy_unpack_test.c | 70 e->pos = e->start; in build_aa_ext_struct() 149 puf->e->pos += TEST_ARRAY_BUF_OFFSET; in policy_unpack_test_unpack_array_with_null_name() 153 KUNIT_EXPECT_PTR_EQ(test, puf->e->pos, in policy_unpack_test_unpack_array_with_null_name() 163 puf->e->pos += TEST_NAMED_ARRAY_BUF_OFFSET; in policy_unpack_test_unpack_array_with_name() 167 KUNIT_EXPECT_PTR_EQ(test, puf->e->pos, in policy_unpack_test_unpack_array_with_name() 177 puf->e->pos += TEST_NAMED_ARRAY_BUF_OFFSET; in policy_unpack_test_unpack_array_out_of_bounds() 181 KUNIT_EXPECT_PTR_EQ(test, puf->e->pos, in policy_unpack_test_unpack_array_out_of_bounds() 191 puf->e->pos += TEST_BLOB_BUF_OFFSET; in policy_unpack_test_unpack_blob_with_null_name() 205 puf->e->pos += TEST_NAMED_BLOB_BUF_OFFSET; in policy_unpack_test_unpack_blob_with_name() 220 puf->e->pos += TEST_NAMED_BLOB_BUF_OFFSET; in policy_unpack_test_unpack_blob_out_of_bounds() [all …]
|
| /linux/arch/riscv/kvm/ |
| H A D | tlb.c | 27 gpa_t pos; in kvm_riscv_local_hfence_gvma_vmid_gpa() local 36 for (pos = gpa; pos < (gpa + gpsz); pos += BIT(order)) in kvm_riscv_local_hfence_gvma_vmid_gpa() 38 : : "r" (pos >> 2), "r" (vmid) : "memory"); in kvm_riscv_local_hfence_gvma_vmid_gpa() 41 for (pos = gpa; pos < (gpa + gpsz); pos += BIT(order)) in kvm_riscv_local_hfence_gvma_vmid_gpa() 43 : : "r" (pos >> 2), "r" (vmid) : "memory"); in kvm_riscv_local_hfence_gvma_vmid_gpa() 55 gpa_t pos; in kvm_riscv_local_hfence_gvma_gpa() local 64 for (pos = gpa; pos < (gpa + gpsz); pos += BIT(order)) in kvm_riscv_local_hfence_gvma_gpa() 66 : : "r" (pos >> 2) : "memory"); in kvm_riscv_local_hfence_gvma_gpa() 69 for (pos = gpa; pos < (gpa + gpsz); pos += BIT(order)) in kvm_riscv_local_hfence_gvma_gpa() 71 : : "r" (pos >> 2) : "memory"); in kvm_riscv_local_hfence_gvma_gpa() [all …]
|
| /linux/tools/perf/util/hisi-ptt-decoder/ |
| H A D | hisi-ptt-pkt-decoder.c | 90 static void hisi_ptt_print_pkt(const unsigned char *buf, int pos, const char *desc) in hisi_ptt_print_pkt() argument 96 color_fprintf(stdout, color, " %08x: ", pos); in hisi_ptt_print_pkt() 98 color_fprintf(stdout, color, "%02x ", buf[pos + i]); in hisi_ptt_print_pkt() 104 static int hisi_ptt_8dw_kpt_desc(const unsigned char *buf, int pos) in hisi_ptt_8dw_kpt_desc() argument 111 pos += HISI_PTT_FIELD_LENTH; in hisi_ptt_8dw_kpt_desc() 115 hisi_ptt_print_pkt(buf, pos, hisi_ptt_8dw_pkt_field_name[i]); in hisi_ptt_8dw_kpt_desc() 116 pos += HISI_PTT_FIELD_LENTH; in hisi_ptt_8dw_kpt_desc() 122 static void hisi_ptt_4dw_print_dw0(const unsigned char *buf, int pos) in hisi_ptt_4dw_print_dw0() argument 128 dw0.value = *(uint32_t *)(buf + pos); in hisi_ptt_4dw_print_dw0() 130 color_fprintf(stdout, color, " %08x: ", pos); in hisi_ptt_4dw_print_dw0() [all …]
|
| /linux/sound/pci/ctxfi/ |
| H A D | ctvmem.c | 33 struct list_head *pos; in get_vm_block() local 43 list_for_each(pos, &vm->unused) { in get_vm_block() 44 entry = list_entry(pos, struct ct_vm_block, list); in get_vm_block() 48 if (pos == &vm->unused) in get_vm_block() 75 struct list_head *pos, *pre; in put_vm_block() local 83 list_for_each(pos, &vm->unused) { in put_vm_block() 84 entry = list_entry(pos, struct ct_vm_block, list); in put_vm_block() 88 if (pos == &vm->unused) { in put_vm_block() 97 __list_add(&block->list, pos->prev, pos); in put_vm_block() 102 pos = &entry->list; in put_vm_block() [all …]
|