/linux/drivers/media/dvb-core/ |
H A D | dvb_ringbuffer.c | 136 size_t split; in dvb_ringbuffer_read_user() local 138 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read_user() 139 if (split > 0) { in dvb_ringbuffer_read_user() 140 if (copy_to_user(buf, rbuf->data+rbuf->pread, split)) in dvb_ringbuffer_read_user() 142 buf += split; in dvb_ringbuffer_read_user() 143 todo -= split; in dvb_ringbuffer_read_user() 162 size_t split; in dvb_ringbuffer_read() local 164 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read() 165 if (split > 0) { in dvb_ringbuffer_read() 166 memcpy(buf, rbuf->data+rbuf->pread, split); in dvb_ringbuffer_read() [all …]
|
/linux/lib/ |
H A D | sg_split.c | 81 struct sg_splitter *split; in sg_split_phys() local 83 for (i = 0, split = splitters; i < nb_splits; i++, split++) { in sg_split_phys() 84 in_sg = split->in_sg0; in sg_split_phys() 85 out_sg = split->out_sg; in sg_split_phys() 86 for (j = 0; j < split->nents; j++, out_sg++) { in sg_split_phys() 89 out_sg->offset += split->skip_sg0; in sg_split_phys() 90 out_sg->length -= split->skip_sg0; in sg_split_phys() 98 out_sg[-1].length = split->length_last_sg; in sg_split_phys() 107 struct sg_splitter *split; in sg_split_mapped() local 109 for (i = 0, split = splitters; i < nb_splits; i++, split++) { in sg_split_mapped() [all …]
|
H A D | maple_tree.c | 1817 static inline bool mab_middle_node(struct maple_big_node *b_node, int split, in mab_middle_node() argument 1825 if (!b_node->slot[split] && (size >= 2 * slot_count - 1)) in mab_middle_node() 1840 unsigned char split, unsigned char slot_count) in mab_no_null_split() argument 1842 if (!b_node->slot[split]) { in mab_no_null_split() 1847 if ((split < slot_count - 1) && in mab_no_null_split() 1848 (b_node->b_end - split) > (mt_min_slots[b_node->type])) in mab_no_null_split() 1849 split++; in mab_no_null_split() 1851 split--; in mab_no_null_split() 1853 return split; in mab_no_null_split() 1869 int split = b_end / 2; /* Assume equal split. */ in mab_calc_split() local [all …]
|
/linux/fs/jfs/ |
H A D | jfs_xtree.c | 96 uint split; member 109 struct xtsplit * split, struct btstack * btstack); 111 static int xtSplitPage(tid_t tid, struct inode *ip, struct xtsplit * split, 115 struct xtsplit * split, struct metapage ** rmpp); 524 struct xtsplit split; /* split information */ in xtInsert() local 586 split.mp = mp; in xtInsert() 587 split.index = index; in xtInsert() 588 split.flag = xflag; in xtInsert() 589 split.off = xoff; in xtInsert() 590 split.len = xlen; in xtInsert() [all …]
|
/linux/tools/verification/dot2/ |
H A D | automata.py | 54 line = dot_lines[cursor].split() 64 while self.__dot_lines[cursor].split()[0] != "{node": 70 while self.__dot_lines[cursor].split()[0] != "{node": 72 while self.__dot_lines[cursor].split()[0] == "{node": 87 while self.__dot_lines[cursor].split()[0] == "{node": 88 line = self.__dot_lines[cursor].split() 127 if self.__dot_lines[cursor].split()[1] == "->": 128 line = self.__dot_lines[cursor].split() 136 for i in event.split(): 165 if self.__dot_lines[cursor].split()[1] == "->": [all …]
|
/linux/fs/btrfs/ |
H A D | extent_map.c | 803 struct extent_map *split; in btrfs_drop_extent_map_range() local 829 split = alloc_extent_map(); in btrfs_drop_extent_map_range() 877 if (!split) { in btrfs_drop_extent_map_range() 878 split = split2; in btrfs_drop_extent_map_range() 880 if (!split) in btrfs_drop_extent_map_range() 883 split->start = em->start; in btrfs_drop_extent_map_range() 884 split->len = start - em->start; in btrfs_drop_extent_map_range() 887 split->disk_bytenr = em->disk_bytenr; in btrfs_drop_extent_map_range() 888 split->disk_num_bytes = em->disk_num_bytes; in btrfs_drop_extent_map_range() 889 split->offset = em->offset; in btrfs_drop_extent_map_range() [all …]
|
/linux/drivers/virtio/ |
H A D | virtio_ring.c | 201 struct vring_virtqueue_split split; member 567 WARN_ON_ONCE(total_sg > vq->split.vring.num && !vq->indirect); in virtqueue_add_split() 579 desc = vq->split.vring.desc; in virtqueue_add_split() 580 extra = vq->split.desc_extra; in virtqueue_add_split() 637 vq->split.desc_extra[prev & (vq->split.vring.num - 1)].flags &= in virtqueue_add_split() 648 virtqueue_add_desc_split(_vq, vq->split.vring.desc, in virtqueue_add_split() 649 vq->split.desc_extra, in virtqueue_add_split() 660 vq->free_head = vq->split.desc_extra[head].next; in virtqueue_add_split() 665 vq->split.desc_state[head].data = data; in virtqueue_add_split() 667 vq->split.desc_state[head].indir_desc = desc; in virtqueue_add_split() [all …]
|
/linux/security/apparmor/ |
H A D | lib.c | 79 char *split = strnchr(&name[1], end - &name[1], ':'); in aa_split_fqname() 83 if (split) { in aa_split_fqname() 84 *ns_len = split - *ns_name; in aa_split_fqname() 87 split++; 88 if (end - split > 1 && strncmp(split, "//", 2) == 0) 89 split += 2; 90 name = skipn_spaces(split, end - split); 245 * TODO: split int in aa_audit_perm_names() 68 char *split = strchr(&name[1], ':'); aa_split_fqname() local 117 char *split = strnchr(&name[1], end - &name[1], ':'); aa_splitn_fqname() local [all...] |
H A D | policy_ns.c | 177 const char *split; in __aa_lookupn_ns() local 179 for (split = strnstr(hname, "//", n); split; in __aa_lookupn_ns() 180 split = strnstr(hname, "//", n)) { in __aa_lookupn_ns() 181 ns = __aa_findn_ns(&ns->sub_ns, hname, split - hname); in __aa_lookupn_ns() 185 n -= split + 2 - hname; in __aa_lookupn_ns() 186 hname = split + 2; in __aa_lookupn_ns()
|
H A D | policy.c | 447 char *split; in __lookup_parent() 451 for (split = strstr(hname, "//"); split;) { in __lookup_parent() 453 split - hname); in __lookup_parent() 457 hname = split + 2; in __lookup_parent() 458 split = strstr(hname, "//"); in __lookup_parent() 482 char *split; in __create_missing_ancestors() 489 for (split = strstr(hname, "//"); split;) { in __create_missing_ancestors() 492 split in __create_missing_ancestors() 448 char *split; __lookup_parent() local 483 char *split; __create_missing_ancestors() local 531 const char *split; __lookupn_profile() local [all...] |
/linux/arch/x86/kernel/cpu/ |
H A D | cacheinfo.c | 152 } split; member 161 } split; member 168 } split; member 298 eax->split.is_self_initializing = 1; in amd_cpuid4() 299 eax->split.type = types[leaf]; in amd_cpuid4() 300 eax->split.level = levels[leaf]; in amd_cpuid4() 301 eax->split.num_threads_sharing = 0; in amd_cpuid4() 302 eax->split.num_cores_on_die = topology_num_cores_per_package(); in amd_cpuid4() 306 eax->split.is_fully_associative = 1; in amd_cpuid4() 307 ebx->split.coherency_line_size = line_size - 1; in amd_cpuid4() [all …]
|
/linux/tools/testing/selftests/vDSO/ |
H A D | vdso_test_chacha.c | 98 for (unsigned int split = 0; split < BLOCKS; ++split) { in main() local 101 if (split) in main() 102 __arch_chacha20_blocks_nostack(output2, key, counter2, split); in main() 103 __arch_chacha20_blocks_nostack(output2 + split * BLOCK_SIZE, key, counter2, BLOCKS - split); in main() 105 ksft_exit_fail_msg("Main loop outputs do not match on trial %u, split %u\n", trial, split); in main() 107 ksft_exit_fail_msg("Main loop counters do not match on trial %u, split %u\n", trial, split); in main()
|
/linux/arch/x86/events/amd/ |
H A D | lbr.c | 46 } split; member 57 } split; member 179 if ((!entry.to.split.valid && !entry.to.split.spec) || in amd_pmu_lbr_read() 180 entry.to.split.reserved) in amd_pmu_lbr_read() 185 br[out].from = sign_ext_branch_ip(entry.from.split.ip); in amd_pmu_lbr_read() 186 br[out].to = sign_ext_branch_ip(entry.to.split.ip); in amd_pmu_lbr_read() 187 br[out].mispred = entry.from.split.mispredict; in amd_pmu_lbr_read() 206 idx = (entry.to.split.valid << 1) | entry.to.split.spec; in amd_pmu_lbr_read() 429 x86_pmu.lbr_nr = ebx.split.lbr_v2_stack_sz; in amd_pmu_lbr_init()
|
/linux/lib/zstd/compress/ |
H A D | zstd_ldm.c | 291 BYTE const* const split = ip + splits[n] - minMatchLength; in ZSTD_ldm_fillHashTable() local 292 U64 const xxhash = xxh64(split, minMatchLength, 0); in ZSTD_ldm_fillHashTable() 296 entry.offset = (U32)(split - base); in ZSTD_ldm_fillHashTable() 369 BYTE const* const split = ip + splits[n] - minMatchLength; in ZSTD_ldm_generateSequences_internal() local 370 U64 const xxhash = xxh64(split, minMatchLength, 0); in ZSTD_ldm_generateSequences_internal() 373 candidates[n].split = split; in ZSTD_ldm_generateSequences_internal() 384 BYTE const* const split = candidates[n].split; in ZSTD_ldm_generateSequences_internal() local 392 newEntry.offset = (U32)(split - base); in ZSTD_ldm_generateSequences_internal() 398 if (split < anchor) { in ZSTD_ldm_generateSequences_internal() 418 ZSTD_count_2segments(split, pMatch, iend, matchEnd, lowPrefixPtr); in ZSTD_ldm_generateSequences_internal() [all …]
|
/linux/drivers/thermal/intel/ |
H A D | intel_hfi.c | 64 } split; member 74 } split; member 337 info->index = edx.split.index; in init_hfi_cpu_index() 549 if (!edx.split.capabilities.split.performance) { in hfi_parse_features() 558 edx.split.capabilities.split.__reserved = 0; in hfi_parse_features() 559 nr_capabilities = hweight8(edx.split.capabilities.bits); in hfi_parse_features() 562 hfi_features.nr_table_pages = edx.split.table_pages + 1; in hfi_parse_features()
|
/linux/tools/hv/ |
H A D | vmbus_testing | 154 f_name = f_path.split("/")[-1] 169 .format(device.split("/")[5])) 172 .format(device.split("/")[5])) 209 .format(state_path.split("/")[5])) 213 .format(state_path.split("/")[5])) 238 interrupt.split("/")[5])) 241 message.split("/")[5])) 263 print("ALL testing now OFF for {}".format(device.split("/")[-1]))
|
H A D | lsvmbus | 72 chn_vp_mapping, key=lambda c: int(c.split(':')[0])) 76 (c.split(':')[0], c.split(':')[1]) for c in chn_vp_mapping
|
/linux/drivers/md/dm-vdo/indexer/ |
H A D | volume-index.c | 319 struct split_config *split) in split_configuration() argument 325 split->hook_config = *config; in split_configuration() 326 split->hook_geometry = *config->geometry; in split_configuration() 327 split->hook_config.geometry = &split->hook_geometry; in split_configuration() 328 split->non_hook_config = *config; in split_configuration() 329 split->non_hook_geometry = *config->geometry; in split_configuration() 330 split->non_hook_config.geometry = &split->non_hook_geometry; in split_configuration() 338 split->hook_geometry.records_per_chapter = sample_records; in split_configuration() 339 split->non_hook_geometry.records_per_chapter -= sample_records; in split_configuration() 342 split->hook_geometry.sparse_chapters_per_volume = 0; in split_configuration() [all …]
|
/linux/security/apparmor/include/ |
H A D | lib.h | 28 * split individual debug cases out in preparation for finer grained 160 char *split; in basename() 163 for (split = strstr(hname, "//"); split; split = strstr(hname, "//")) in basename() 164 hname = split + 2; in basename() 161 char *split; basename() local
|
/linux/scripts/ |
H A D | jobserver-exec | 23 opts = [x for x in flags.split(" ") if x.startswith("--jobserver")] 28 fds = opts[-1].split("=", 1)[1] 38 reader, writer = [int(x) for x in fds.split(",", 1)]
|
H A D | checkkconfigsymbols.py | 147 split = args.diff.split("..") 148 commit_a = split[0] 149 commit_b = split[1] 200 commit = commit.split(" ", 1) 241 return [x for x in commits.split("\n") if x] 447 line = line.split("#")[0] # ignore comments
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_distill.c | 541 struct btf *base = NULL, *split = NULL, *new_base = NULL, *new_split = NULL; in test_distilled_endianness() local 557 split = btf__new_empty_split(base); in test_distilled_endianness() 558 if (!ASSERT_OK_PTR(split, "empty_split_btf")) in test_distilled_endianness() 560 btf__add_ptr(split, 1); in test_distilled_endianness() 562 split, in test_distilled_endianness() 565 if (!ASSERT_EQ(0, btf__distill_base(split, &new_base, &new_split), in test_distilled_endianness() 600 btf__free(split); in test_distilled_endianness()
|
/linux/tools/testing/selftests/turbostat/ |
H A D | added_perf_counters.py | 157 actual_columns = proc_turbostat.stdout.split(b'\n')[0].split(b'\t') 176 actual_columns = proc_turbostat.stdout.split(b'\n')[0].split(b'\t')
|
/linux/Documentation/sphinx/ |
H A D | maintainers_include.py | 122 field, details = line.split(':', 1) 148 for separated in output.split('\n'): 163 for separated in field_content.split('\n'): 183 (path, tail) = os.path.split(path)
|
H A D | kerneldoc.py | 84 export_file_patterns = str(self.options.get('export')).split() 87 export_file_patterns = str(self.options.get('internal')).split() 91 identifiers = self.options.get('identifiers').split() 99 no_identifiers = self.options.get('no-identifiers').split()
|