ci 97 arch/arm64/kernel/pci.c static int pci_acpi_root_prepare_resources(struct acpi_pci_root_info *ci) ci 102 arch/arm64/kernel/pci.c status = acpi_pci_probe_root_resources(ci); ci 103 arch/arm64/kernel/pci.c resource_list_for_each_entry_safe(entry, tmp, &ci->resources) { ci 151 arch/arm64/kernel/pci.c static void pci_acpi_generic_release_info(struct acpi_pci_root_info *ci) ci 155 arch/arm64/kernel/pci.c ri = container_of(ci, struct acpi_pci_generic_root_info, common); ci 157 arch/arm64/kernel/pci.c kfree(ci->ops); ci 407 arch/ia64/include/asm/pal.h ci : 1, /* MC isolated */ ci 705 arch/ia64/include/asm/pal.h #define pmci_proc_machine_check_isolated pme_processor.ci ci 674 arch/ia64/kernel/mca_drv.c if (psp->us || psp->ci == 0) ci 234 arch/ia64/pci/pci.c static int pci_acpi_root_prepare_resources(struct acpi_pci_root_info *ci) ci 236 arch/ia64/pci/pci.c struct device *dev = &ci->bridge->dev; ci 242 arch/ia64/pci/pci.c status = acpi_pci_probe_root_resources(ci); ci 244 arch/ia64/pci/pci.c info = container_of(ci, struct pci_root_info, common); ci 245 arch/ia64/pci/pci.c resource_list_for_each_entry_safe(entry, tmp, &ci->resources) { ci 271 arch/ia64/pci/pci.c static void pci_acpi_root_release_info(struct acpi_pci_root_info *ci) ci 276 arch/ia64/pci/pci.c info = container_of(ci, struct pci_root_info, common); ci 96 arch/microblaze/include/asm/cpuinfo.h void set_cpuinfo_static(struct cpuinfo *ci, struct device_node *cpu); ci 97 arch/microblaze/include/asm/cpuinfo.h void set_cpuinfo_pvr_full(struct cpuinfo *ci, struct device_node *cpu); ci 23 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c #define CI(c, p) { ci->c = PVR_##p(pvr); } ci 33 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c void set_cpuinfo_pvr_full(struct cpuinfo *ci, struct device_node *cpu) ci 40 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c if (!ci->ver_code) { ci 47 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c if (ci->use_instr != temp) ci 49 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c ci->use_instr = temp; ci 52 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c if (ci->use_mult != temp) ci 54 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c ci->use_mult = temp; ci 57 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c if (ci->use_fpu != temp) ci 59 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c ci->use_fpu = temp; ci 61 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c ci->use_exc = PVR_OPCODE_0x0_ILLEGAL(pvr) | ci 80 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c ci->icache_line_length = PVR_ICACHE_LINE_LEN(pvr) << 2; ci 88 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c ci->dcache_line_length = PVR_DCACHE_LINE_LEN(pvr) << 2; ci 94 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c if (ci->dcache_wb != temp) ci 96 arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c ci->dcache_wb = temp; ci 23 arch/microblaze/kernel/cpu/cpuinfo-static.c void __init set_cpuinfo_static(struct cpuinfo *ci, struct device_node *cpu) ci 27 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->use_instr = ci 40 arch/microblaze/kernel/cpu/cpuinfo-static.c if (ci->use_instr != i) ci 43 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->use_mult = fcpu(cpu, "xlnx,use-hw-mul"); ci 44 arch/microblaze/kernel/cpu/cpuinfo-static.c if (ci->use_mult != CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL) ci 46 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->use_mult = ci 47 arch/microblaze/kernel/cpu/cpuinfo-static.c (ci->use_mult > 1 ? ci 49 arch/microblaze/kernel/cpu/cpuinfo-static.c (ci->use_mult == 1 ? PVR0_USE_HW_MUL_MASK : 0)); ci 51 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->use_fpu = fcpu(cpu, "xlnx,use-fpu"); ci 52 arch/microblaze/kernel/cpu/cpuinfo-static.c if (ci->use_fpu != CONFIG_XILINX_MICROBLAZE0_USE_FPU) ci 54 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->use_fpu = (ci->use_fpu > 1 ? ci 56 arch/microblaze/kernel/cpu/cpuinfo-static.c (ci->use_fpu == 1 ? PVR0_USE_FPU_MASK : 0)); ci 58 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->use_exc = ci 72 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->use_icache = fcpu(cpu, "xlnx,use-icache"); ci 73 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->icache_tagbits = fcpu(cpu, "xlnx,addr-tag-bits"); ci 74 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->icache_write = fcpu(cpu, "xlnx,allow-icache-wr"); ci 75 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->icache_line_length = fcpu(cpu, "xlnx,icache-line-len") << 2; ci 76 arch/microblaze/kernel/cpu/cpuinfo-static.c if (!ci->icache_line_length) { ci 78 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->icache_line_length = 4 << 2; ci 80 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->icache_line_length = 1 << 2; ci 82 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->icache_size = fcpu(cpu, "i-cache-size"); ci 83 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->icache_base = fcpu(cpu, "i-cache-baseaddr"); ci 84 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->icache_high = fcpu(cpu, "i-cache-highaddr"); ci 86 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->use_dcache = fcpu(cpu, "xlnx,use-dcache"); ci 87 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->dcache_tagbits = fcpu(cpu, "xlnx,dcache-addr-tag"); ci 88 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->dcache_write = fcpu(cpu, "xlnx,allow-dcache-wr"); ci 89 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->dcache_line_length = fcpu(cpu, "xlnx,dcache-line-len") << 2; ci 90 arch/microblaze/kernel/cpu/cpuinfo-static.c if (!ci->dcache_line_length) { ci 92 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->dcache_line_length = 4 << 2; ci 94 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->dcache_line_length = 1 << 2; ci 96 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->dcache_size = fcpu(cpu, "d-cache-size"); ci 97 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->dcache_base = fcpu(cpu, "d-cache-baseaddr"); ci 98 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->dcache_high = fcpu(cpu, "d-cache-highaddr"); ci 99 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->dcache_wb = fcpu(cpu, "xlnx,dcache-use-writeback"); ci 101 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->use_dopb = fcpu(cpu, "xlnx,d-opb"); ci 102 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->use_iopb = fcpu(cpu, "xlnx,i-opb"); ci 103 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->use_dlmb = fcpu(cpu, "xlnx,d-lmb"); ci 104 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->use_ilmb = fcpu(cpu, "xlnx,i-lmb"); ci 106 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->num_fsl = fcpu(cpu, "xlnx,fsl-links"); ci 107 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->irq_edge = fcpu(cpu, "xlnx,interrupt-is-edge"); ci 108 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->irq_positive = fcpu(cpu, "xlnx,edge-is-positive"); ci 109 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->area_optimised = 0; ci 111 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->hw_debug = fcpu(cpu, "xlnx,debug-enabled"); ci 112 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->num_pc_brk = fcpu(cpu, "xlnx,number-of-pc-brk"); ci 113 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->num_rd_brk = fcpu(cpu, "xlnx,number-of-rd-addr-brk"); ci 114 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->num_wr_brk = fcpu(cpu, "xlnx,number-of-wr-addr-brk"); ci 116 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->pvr_user1 = fcpu(cpu, "xlnx,pvr-user1"); ci 117 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->pvr_user2 = fcpu(cpu, "xlnx,pvr-user2"); ci 119 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->mmu = fcpu(cpu, "xlnx,use-mmu"); ci 120 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->mmu_privins = fcpu(cpu, "xlnx,mmu-privileged-instr"); ci 121 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->endian = fcpu(cpu, "xlnx,endianness"); ci 123 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->ver_code = 0; ci 124 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->fpga_family_code = 0; ci 131 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->ver_code = cpu_ver_lookup[i].k; ci 137 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->fpga_family_code = family_string_lookup[i].k; ci 142 arch/microblaze/kernel/cpu/cpuinfo-static.c if (ci->ver_code == 0x20 && ci->fpga_family_code != 0xf0) ci 144 arch/microblaze/kernel/cpu/cpuinfo-static.c ci->use_mult = 1; ci 694 arch/powerpc/include/asm/opal-api.h }ci; ci 1359 arch/powerpc/platforms/powernv/eeh-powernv.c data->ci.ciPort); ci 1361 arch/powerpc/platforms/powernv/eeh-powernv.c if (data->ci.ciPortStatus || data->ci.ciPortLdcp) ci 1363 arch/powerpc/platforms/powernv/eeh-powernv.c be64_to_cpu(data->ci.ciPortStatus), ci 1364 arch/powerpc/platforms/powernv/eeh-powernv.c be64_to_cpu(data->ci.ciPortLdcp)); ci 49 arch/s390/kernel/cache.c struct cache_info ci[CACHE_MAX_LEVEL]; ci 91 arch/s390/kernel/cache.c static inline enum cache_type get_cache_type(struct cache_info *ci, int level) ci 95 arch/s390/kernel/cache.c ci += level; ci 96 arch/s390/kernel/cache.c if (ci->scope != CACHE_SCOPE_SHARED && ci->scope != CACHE_SCOPE_PRIVATE) ci 98 arch/s390/kernel/cache.c return cache_type_map[ci->type]; ci 141 arch/s390/kernel/cache.c ctype = get_cache_type(&ct.ci[0], level); ci 167 arch/s390/kernel/cache.c pvt = (ct.ci[level].scope == CACHE_SCOPE_PRIVATE) ? 1 : 0; ci 168 arch/s390/kernel/cache.c ctype = get_cache_type(&ct.ci[0], level); ci 578 arch/s390/kernel/perf_cpum_cf_events.c struct cpumf_ctr_info ci; ci 582 arch/s390/kernel/perf_cpum_cf_events.c qctri(&ci); ci 583 arch/s390/kernel/perf_cpum_cf_events.c switch (ci.cfvn) { ci 595 arch/s390/kernel/perf_cpum_cf_events.c switch (ci.csvn) { ci 172 arch/s390/kernel/perf_event.c struct cpumf_ctr_info ci; ci 174 arch/s390/kernel/perf_event.c memset(&ci, 0, sizeof(ci)); ci 175 arch/s390/kernel/perf_event.c if (qctri(&ci)) ci 179 arch/s390/kernel/perf_event.c "authorization=%04x\n", ci.cfvn, ci.csvn, ci.auth_ctl); ci 351 arch/x86/kernel/cpu/resctrl/core.c struct cpu_cacheinfo *ci = get_cpu_cacheinfo(cpu); ci 354 arch/x86/kernel/cpu/resctrl/core.c for (i = 0; i < ci->num_leaves; i++) { ci 355 arch/x86/kernel/cpu/resctrl/core.c if (ci->info_list[i].level == level) ci 356 arch/x86/kernel/cpu/resctrl/core.c return ci->info_list[i].id; ci 277 arch/x86/kernel/cpu/resctrl/pseudo_lock.c struct cpu_cacheinfo *ci; ci 291 arch/x86/kernel/cpu/resctrl/pseudo_lock.c ci = get_cpu_cacheinfo(plr->cpu); ci 295 arch/x86/kernel/cpu/resctrl/pseudo_lock.c for (i = 0; i < ci->num_leaves; i++) { ci 296 arch/x86/kernel/cpu/resctrl/pseudo_lock.c if (ci->info_list[i].level == plr->r->cache_level) { ci 297 arch/x86/kernel/cpu/resctrl/pseudo_lock.c plr->line_size = ci->info_list[i].coherency_line_size; ci 1261 arch/x86/kernel/cpu/resctrl/rdtgroup.c struct cpu_cacheinfo *ci; ci 1266 arch/x86/kernel/cpu/resctrl/rdtgroup.c ci = get_cpu_cacheinfo(cpumask_any(&d->cpu_mask)); ci 1267 arch/x86/kernel/cpu/resctrl/rdtgroup.c for (i = 0; i < ci->num_leaves; i++) { ci 1268 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (ci->info_list[i].level == r->cache_level) { ci 1269 arch/x86/kernel/cpu/resctrl/rdtgroup.c size = ci->info_list[i].size / r->cache.cbm_len * num_b; ci 189 arch/x86/pci/acpi.c static int setup_mcfg_map(struct acpi_pci_root_info *ci) ci 193 arch/x86/pci/acpi.c struct acpi_pci_root *root = ci->root; ci 194 arch/x86/pci/acpi.c struct device *dev = &ci->bridge->dev; ci 196 arch/x86/pci/acpi.c info = container_of(ci, struct pci_root_info, common); ci 223 arch/x86/pci/acpi.c static void teardown_mcfg_map(struct acpi_pci_root_info *ci) ci 227 arch/x86/pci/acpi.c info = container_of(ci, struct pci_root_info, common); ci 235 arch/x86/pci/acpi.c static int setup_mcfg_map(struct acpi_pci_root_info *ci) ci 240 arch/x86/pci/acpi.c static void teardown_mcfg_map(struct acpi_pci_root_info *ci) ci 263 arch/x86/pci/acpi.c static int pci_acpi_root_init_info(struct acpi_pci_root_info *ci) ci 265 arch/x86/pci/acpi.c return setup_mcfg_map(ci); ci 268 arch/x86/pci/acpi.c static void pci_acpi_root_release_info(struct acpi_pci_root_info *ci) ci 270 arch/x86/pci/acpi.c teardown_mcfg_map(ci); ci 271 arch/x86/pci/acpi.c kfree(container_of(ci, struct pci_root_info, common)); ci 294 arch/x86/pci/acpi.c static int pci_acpi_root_prepare_resources(struct acpi_pci_root_info *ci) ci 296 arch/x86/pci/acpi.c struct acpi_device *device = ci->bridge; ci 297 arch/x86/pci/acpi.c int busnum = ci->root->secondary.start; ci 301 arch/x86/pci/acpi.c status = acpi_pci_probe_root_resources(ci); ci 303 arch/x86/pci/acpi.c resource_list_for_each_entry_safe(entry, tmp, &ci->resources) ci 309 arch/x86/pci/acpi.c resource_list_for_each_entry_safe(entry, tmp, &ci->resources) { ci 314 arch/x86/pci/acpi.c x86_pci_root_bus_resources(busnum, &ci->resources); ci 1011 drivers/ata/sata_sil24.c const struct sil24_cerr_info *ci = NULL; ci 1055 drivers/ata/sata_sil24.c ci = &sil24_cerr_db[cerr]; ci 1057 drivers/ata/sata_sil24.c if (ci && ci->desc) { ci 1058 drivers/ata/sata_sil24.c err_mask |= ci->err_mask; ci 1059 drivers/ata/sata_sil24.c action |= ci->action; ci 1062 drivers/ata/sata_sil24.c ata_ehi_push_desc(ehi, "%s", ci->desc); ci 159 drivers/atm/atmtcp.c struct atm_cirange ci; ci 165 drivers/atm/atmtcp.c if (copy_from_user(&ci, arg,sizeof(ci))) return -EFAULT; ci 166 drivers/atm/atmtcp.c if (ci.vpi_bits == ATM_CI_MAX) ci.vpi_bits = MAX_VPI_BITS; ci 167 drivers/atm/atmtcp.c if (ci.vci_bits == ATM_CI_MAX) ci.vci_bits = MAX_VCI_BITS; ci 168 drivers/atm/atmtcp.c if (ci.vpi_bits > MAX_VPI_BITS || ci.vpi_bits < 0 || ci 169 drivers/atm/atmtcp.c ci.vci_bits > MAX_VCI_BITS || ci.vci_bits < 0) return -EINVAL; ci 178 drivers/atm/atmtcp.c if ((vcc->vpi >> ci.vpi_bits) || ci 179 drivers/atm/atmtcp.c (vcc->vci >> ci.vci_bits)) { ci 186 drivers/atm/atmtcp.c dev->ci_range = ci; ci 2023 drivers/atm/eni.c struct atm_cirange ci; ci 2025 drivers/atm/eni.c if (copy_from_user(&ci, arg,sizeof(struct atm_cirange))) ci 2027 drivers/atm/eni.c if ((ci.vpi_bits == 0 || ci.vpi_bits == ATM_CI_MAX) && ci 2028 drivers/atm/eni.c (ci.vci_bits == NR_VCI_LD || ci.vpi_bits == ATM_CI_MAX)) ci 162 drivers/bcma/driver_pcie2.c struct bcma_chipinfo *ci = &bus->chipinfo; ci 179 drivers/bcma/driver_pcie2.c if (ci->id == BCMA_CHIP_ID_BCM4360 && ci->rev > 3) ci 292 drivers/clk/tegra/clk-dfll.c u32 ci; ci 1405 drivers/clk/tegra/clk-dfll.c (td->ci << DFLL_PARAMS_CI_PARAM_SHIFT) | ci 1852 drivers/clk/tegra/clk-dfll.c ok &= read_dt_param(td, "nvidia,ci", &td->ci); ci 304 drivers/cpufreq/cpufreq.c static void adjust_jiffies(unsigned long val, struct cpufreq_freqs *ci) ci 310 drivers/cpufreq/cpufreq.c if (ci->flags & CPUFREQ_CONST_LOOPS) ci 315 drivers/cpufreq/cpufreq.c l_p_j_ref_freq = ci->old; ci 319 drivers/cpufreq/cpufreq.c if (val == CPUFREQ_POSTCHANGE && ci->old != ci->new) { ci 321 drivers/cpufreq/cpufreq.c ci->new); ci 323 drivers/cpufreq/cpufreq.c loops_per_jiffy, ci->new); ci 46 drivers/crypto/nx/nx-842-powernv.c unsigned int ci; /* Coprocessor instance, used with icswx */ ci 906 drivers/crypto/nx/nx-842-powernv.c unsigned int ct, ci; ci 920 drivers/crypto/nx/nx-842-powernv.c if (of_property_read_u32(dn, "ibm,842-coprocessor-instance", &ci)) { ci 930 drivers/crypto/nx/nx-842-powernv.c coproc->ci = ci; ci 933 drivers/crypto/nx/nx-842-powernv.c pr_info("coprocessor found on chip %d, CT %d CI %d\n", chip_id, ct, ci); ci 34 drivers/firewire/core-device.c void fw_csr_iterator_init(struct fw_csr_iterator *ci, const u32 *p) ci 36 drivers/firewire/core-device.c ci->p = p + 1; ci 37 drivers/firewire/core-device.c ci->end = ci->p + (p[0] >> 16); ci 41 drivers/firewire/core-device.c int fw_csr_iterator_next(struct fw_csr_iterator *ci, int *key, int *value) ci 43 drivers/firewire/core-device.c *key = *ci->p >> 24; ci 44 drivers/firewire/core-device.c *value = *ci->p & 0xffffff; ci 46 drivers/firewire/core-device.c return ci->p++ < ci->end; ci 52 drivers/firewire/core-device.c struct fw_csr_iterator ci; ci 55 drivers/firewire/core-device.c fw_csr_iterator_init(&ci, directory); ci 56 drivers/firewire/core-device.c while (fw_csr_iterator_next(&ci, &key, &value)) { ci 59 drivers/firewire/core-device.c return ci.p - 1 + value; ci 122 drivers/firewire/core-device.c struct fw_csr_iterator ci; ci 125 drivers/firewire/core-device.c fw_csr_iterator_init(&ci, directory); ci 126 drivers/firewire/core-device.c while (fw_csr_iterator_next(&ci, &key, &value)) { ci 253 drivers/firewire/core-device.c struct fw_csr_iterator ci; ci 264 drivers/firewire/core-device.c fw_csr_iterator_init(&ci, dir); ci 265 drivers/firewire/core-device.c while (fw_csr_iterator_next(&ci, &key, &value)) ci 423 drivers/firewire/core-device.c struct fw_csr_iterator ci; ci 428 drivers/firewire/core-device.c fw_csr_iterator_init(&ci, directory); ci 429 drivers/firewire/core-device.c while (fw_csr_iterator_next(&ci, &key, &value)) { ci 447 drivers/firewire/core-device.c struct fw_csr_iterator ci; ci 451 drivers/firewire/core-device.c fw_csr_iterator_init(&ci, &device->config_rom[5]); ci 452 drivers/firewire/core-device.c while (fw_csr_iterator_next(&ci, &key, &value)) { ci 455 drivers/firewire/core-device.c i += units_sprintf(&buf[i], ci.p + value - 1); ci 691 drivers/firewire/core-device.c struct fw_csr_iterator ci; ci 696 drivers/firewire/core-device.c fw_csr_iterator_init(&ci, &device->config_rom[5]); ci 697 drivers/firewire/core-device.c while (fw_csr_iterator_next(&ci, &key, &value)) { ci 709 drivers/firewire/core-device.c unit->directory = ci.p + value - 1; ci 1006 drivers/firewire/sbp2.c struct fw_csr_iterator ci; ci 1009 drivers/firewire/sbp2.c fw_csr_iterator_init(&ci, directory); ci 1010 drivers/firewire/sbp2.c while (fw_csr_iterator_next(&ci, &key, &value)) ci 1020 drivers/firewire/sbp2.c struct fw_csr_iterator ci; ci 1023 drivers/firewire/sbp2.c fw_csr_iterator_init(&ci, directory); ci 1024 drivers/firewire/sbp2.c while (fw_csr_iterator_next(&ci, &key, &value)) { ci 1055 drivers/firewire/sbp2.c sbp2_get_unit_unique_id(tgt, ci.p - 1 + value); ci 1060 drivers/firewire/sbp2.c if (sbp2_scan_logical_unit_dir(tgt, ci.p - 1 + value) < 0) ci 75 drivers/firmware/arm_scmi/clock.c struct clock_info *ci) ci 90 drivers/firmware/arm_scmi/clock.c ci->num_clocks = le16_to_cpu(attr->num_clocks); ci 91 drivers/firmware/arm_scmi/clock.c ci->max_async_req = attr->max_async_req; ci 224 drivers/firmware/arm_scmi/clock.c struct clock_info *ci = handle->clk_priv; ci 231 drivers/firmware/arm_scmi/clock.c if (ci->max_async_req && ci 232 drivers/firmware/arm_scmi/clock.c atomic_inc_return(&ci->cur_async_req) < ci->max_async_req) ci 246 drivers/firmware/arm_scmi/clock.c if (ci->max_async_req) ci 247 drivers/firmware/arm_scmi/clock.c atomic_dec(&ci->cur_async_req); ci 287 drivers/firmware/arm_scmi/clock.c struct clock_info *ci = handle->clk_priv; ci 289 drivers/firmware/arm_scmi/clock.c return ci->num_clocks; ci 295 drivers/firmware/arm_scmi/clock.c struct clock_info *ci = handle->clk_priv; ci 296 drivers/firmware/arm_scmi/clock.c struct scmi_clock_info *clk = ci->clk + clk_id; ci 36 drivers/gpu/drm/amd/amdgpu/amdgpu_display.h #define amdgpu_display_add_connector(adev, ci, sd, ct, ib, coi, h, r) (adev)->mode_info.funcs->add_connector((adev), (ci), (sd), (ct), (ib), (coi), (h), (r)) ci 145 drivers/gpu/drm/i915/gem/i915_gem_context.c const struct i915_engine_class_instance *ci) ci 157 drivers/gpu/drm/i915/gem/i915_gem_context.c ci->engine_class, ci 158 drivers/gpu/drm/i915/gem/i915_gem_context.c ci->engine_instance); ci 164 drivers/gpu/drm/i915/gem/i915_gem_context.c idx = ci->engine_instance; ci 1417 drivers/gpu/drm/i915/gem/i915_gem_context.c struct i915_engine_class_instance ci; ci 1419 drivers/gpu/drm/i915/gem/i915_gem_context.c if (copy_from_user(&ci, &ext->engines[n], sizeof(ci))) { ci 1425 drivers/gpu/drm/i915/gem/i915_gem_context.c ci.engine_class, ci 1426 drivers/gpu/drm/i915/gem/i915_gem_context.c ci.engine_instance); ci 1429 drivers/gpu/drm/i915/gem/i915_gem_context.c n, ci.engine_class, ci.engine_instance); ci 1460 drivers/gpu/drm/i915/gem/i915_gem_context.c struct i915_engine_class_instance ci; ci 1492 drivers/gpu/drm/i915/gem/i915_gem_context.c if (copy_from_user(&ci, &ext->master, sizeof(ci))) ci 1496 drivers/gpu/drm/i915/gem/i915_gem_context.c ci.engine_class, ci.engine_instance); ci 1499 drivers/gpu/drm/i915/gem/i915_gem_context.c ci.engine_class, ci.engine_instance); ci 1509 drivers/gpu/drm/i915/gem/i915_gem_context.c if (copy_from_user(&ci, &ext->engines[n], sizeof(ci))) ci 1513 drivers/gpu/drm/i915/gem/i915_gem_context.c ci.engine_class, ci 1514 drivers/gpu/drm/i915/gem/i915_gem_context.c ci.engine_instance); ci 1517 drivers/gpu/drm/i915/gem/i915_gem_context.c n, ci.engine_class, ci.engine_instance); ci 1585 drivers/gpu/drm/i915/gem/i915_gem_context.c struct i915_engine_class_instance ci; ci 1589 drivers/gpu/drm/i915/gem/i915_gem_context.c if (copy_from_user(&ci, &user->engines[n], sizeof(ci))) { ci 1594 drivers/gpu/drm/i915/gem/i915_gem_context.c if (ci.engine_class == (u16)I915_ENGINE_CLASS_INVALID && ci 1595 drivers/gpu/drm/i915/gem/i915_gem_context.c ci.engine_instance == (u16)I915_ENGINE_CLASS_INVALID_NONE) { ci 1601 drivers/gpu/drm/i915/gem/i915_gem_context.c ci.engine_class, ci 1602 drivers/gpu/drm/i915/gem/i915_gem_context.c ci.engine_instance); ci 1605 drivers/gpu/drm/i915/gem/i915_gem_context.c n, ci.engine_class, ci.engine_instance); ci 1723 drivers/gpu/drm/i915/gem/i915_gem_context.c struct i915_engine_class_instance ci = { ci 1729 drivers/gpu/drm/i915/gem/i915_gem_context.c ci.engine_class = e->engines[n]->engine->uabi_class; ci 1730 drivers/gpu/drm/i915/gem/i915_gem_context.c ci.engine_instance = e->engines[n]->engine->uabi_instance; ci 1733 drivers/gpu/drm/i915/gem/i915_gem_context.c if (copy_to_user(&user->engines[n], &ci, sizeof(ci))) { ci 471 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c int i, ret, pi = 0, ci = 0; ci 522 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c cursor[ci++] = plane; ci 5443 drivers/gpu/drm/radeon/ci_dpm.c struct _ATOM_PPLIB_CI_CLOCK_INFO ci; ci 5484 drivers/gpu/drm/radeon/ci_dpm.c pl->sclk = le16_to_cpu(clock_info->ci.usEngineClockLow); ci 5485 drivers/gpu/drm/radeon/ci_dpm.c pl->sclk |= clock_info->ci.ucEngineClockHigh << 16; ci 5486 drivers/gpu/drm/radeon/ci_dpm.c pl->mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); ci 5487 drivers/gpu/drm/radeon/ci_dpm.c pl->mclk |= clock_info->ci.ucMemoryClockHigh << 16; ci 5492 drivers/gpu/drm/radeon/ci_dpm.c clock_info->ci.ucPCIEGen); ci 5495 drivers/gpu/drm/radeon/ci_dpm.c le16_to_cpu(clock_info->ci.usPCIELane)); ci 5624 drivers/gpu/drm/radeon/ci_dpm.c sclk = le16_to_cpu(clock_info->ci.usEngineClockLow); ci 5625 drivers/gpu/drm/radeon/ci_dpm.c sclk |= clock_info->ci.ucEngineClockHigh << 16; ci 5626 drivers/gpu/drm/radeon/ci_dpm.c mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); ci 5627 drivers/gpu/drm/radeon/ci_dpm.c mclk |= clock_info->ci.ucMemoryClockHigh << 16; ci 943 drivers/gpu/drm/radeon/radeon_atombios.c ATOM_CONNECTOR_INFO_I2C ci = ci 958 drivers/gpu/drm/radeon/radeon_atombios.c supported_devices_connector_convert[ci.sucConnectorInfo. ci 966 drivers/gpu/drm/radeon/radeon_atombios.c dac = ci.sucConnectorInfo.sbfAccess.bfAssociatedDAC; ci 969 drivers/gpu/drm/radeon/radeon_atombios.c ci.sucI2cId.ucAccess; ci 2045 drivers/gpu/drm/radeon/radeon_atombios.c struct _ATOM_PPLIB_CI_CLOCK_INFO ci; ci 2495 drivers/gpu/drm/radeon/radeon_atombios.c sclk = le16_to_cpu(clock_info->ci.usEngineClockLow); ci 2496 drivers/gpu/drm/radeon/radeon_atombios.c sclk |= clock_info->ci.ucEngineClockHigh << 16; ci 2497 drivers/gpu/drm/radeon/radeon_atombios.c mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); ci 2498 drivers/gpu/drm/radeon/radeon_atombios.c mclk |= clock_info->ci.ucMemoryClockHigh << 16; ci 193 drivers/gpu/drm/vmwgfx/vmwgfx_binding.h const struct vmw_ctx_bindinfo *ci, ci 300 drivers/iio/adc/max1363.c const struct max1363_chip_info *ci) ci 304 drivers/iio/adc/max1363.c for (i = 0; i < ci->num_modes; i++) ci 306 drivers/iio/adc/max1363.c max1363_mode_table[ci->mode_list[i]]. ci 309 drivers/iio/adc/max1363.c return &max1363_mode_table[ci->mode_list[i]]; ci 456 drivers/infiniband/hw/efa/efa_com.c u16 ci; ci 460 drivers/infiniband/hw/efa/efa_com.c ci = aq->cq.cc & queue_size_mask; ci 463 drivers/infiniband/hw/efa/efa_com.c cqe = &aq->cq.entries[ci]; ci 475 drivers/infiniband/hw/efa/efa_com.c ci++; ci 477 drivers/infiniband/hw/efa/efa_com.c if (ci == aq->depth) { ci 478 drivers/infiniband/hw/efa/efa_com.c ci = 0; ci 482 drivers/infiniband/hw/efa/efa_com.c cqe = &aq->cq.entries[ci]; ci 855 drivers/infiniband/hw/efa/efa_com.c u32 ci; ci 857 drivers/infiniband/hw/efa/efa_com.c ci = aenq->cc & (aenq->depth - 1); ci 859 drivers/infiniband/hw/efa/efa_com.c aenq_e = &aenq->entries[ci]; /* Get first entry */ ci 877 drivers/infiniband/hw/efa/efa_com.c ci++; ci 880 drivers/infiniband/hw/efa/efa_com.c if (ci == aenq->depth) { ci 881 drivers/infiniband/hw/efa/efa_com.c ci = 0; ci 884 drivers/infiniband/hw/efa/efa_com.c aenq_e = &aenq->entries[ci]; ci 173 drivers/infiniband/hw/mthca/mthca_eq.c static inline void tavor_set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) ci 184 drivers/infiniband/hw/mthca/mthca_eq.c mthca_write64(MTHCA_EQ_DB_SET_CI | eq->eqn, ci & (eq->nent - 1), ci 189 drivers/infiniband/hw/mthca/mthca_eq.c static inline void arbel_set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) ci 193 drivers/infiniband/hw/mthca/mthca_eq.c __raw_writel((__force u32) cpu_to_be32(ci), ci 199 drivers/infiniband/hw/mthca/mthca_eq.c static inline void set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) ci 202 drivers/infiniband/hw/mthca/mthca_eq.c arbel_set_eq_ci(dev, eq, ci); ci 204 drivers/infiniband/hw/mthca/mthca_eq.c tavor_set_eq_ci(dev, eq, ci); ci 4515 drivers/isdn/hardware/mISDN/hfcmulti.c int pt, ci, i = 0; ci 4519 drivers/isdn/hardware/mISDN/hfcmulti.c ci = dch->slot; ci 4520 drivers/isdn/hardware/mISDN/hfcmulti.c pt = hc->chan[ci].port; ci 4539 drivers/isdn/hardware/mISDN/hfcmulti.c hc->chan[ci].dch = NULL; ci 4581 drivers/isdn/hardware/mISDN/hfcmulti.c ~(1 << hc->chan[ci].port); ci 4585 drivers/isdn/hardware/mISDN/hfcmulti.c if (hc->chan[ci - 2].bch) { ci 4589 drivers/isdn/hardware/mISDN/hfcmulti.c __func__, hc->chan[ci - 2].port + 1, ci 4590 drivers/isdn/hardware/mISDN/hfcmulti.c ci - 2); ci 4591 drivers/isdn/hardware/mISDN/hfcmulti.c pb = hc->chan[ci - 2].bch; ci 4592 drivers/isdn/hardware/mISDN/hfcmulti.c hc->chan[ci - 2].bch = NULL; ci 4596 drivers/isdn/hardware/mISDN/hfcmulti.c kfree(hc->chan[ci - 2].coeff); ci 4599 drivers/isdn/hardware/mISDN/hfcmulti.c if (hc->chan[ci - 1].bch) { ci 4603 drivers/isdn/hardware/mISDN/hfcmulti.c __func__, hc->chan[ci - 1].port + 1, ci 4604 drivers/isdn/hardware/mISDN/hfcmulti.c ci - 1); ci 4605 drivers/isdn/hardware/mISDN/hfcmulti.c pb = hc->chan[ci - 1].bch; ci 4606 drivers/isdn/hardware/mISDN/hfcmulti.c hc->chan[ci - 1].bch = NULL; ci 4610 drivers/isdn/hardware/mISDN/hfcmulti.c kfree(hc->chan[ci - 1].coeff); ci 4619 drivers/isdn/hardware/mISDN/hfcmulti.c pt+1, ci); ci 95 drivers/isdn/hardware/mISDN/mISDNinfineon.c const struct inf_cinfo *ci; ci 392 drivers/isdn/hardware/mISDN/mISDNinfineon.c switch (hw->ci->typ) { ci 436 drivers/isdn/hardware/mISDN/mISDNinfineon.c switch (hw->ci->typ) { ci 489 drivers/isdn/hardware/mISDN/mISDNinfineon.c switch (hw->ci->typ) { ci 597 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (!hw->ci->irqfunc) ci 599 drivers/isdn/hardware/mISDN/mISDNinfineon.c ret = request_irq(hw->irq, hw->ci->irqfunc, IRQF_SHARED, hw->name, hw); ci 655 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (hw->ci->cfg_mode) { ci 656 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->cfg.start = pci_resource_start(hw->pdev, hw->ci->cfg_bar); ci 657 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->cfg.size = pci_resource_len(hw->pdev, hw->ci->cfg_bar); ci 658 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (hw->ci->cfg_mode == AM_MEMIO) { ci 673 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (hw->ci->cfg_mode == AM_MEMIO) ci 675 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->cfg.mode = hw->ci->cfg_mode; ci 679 drivers/isdn/hardware/mISDN/mISDNinfineon.c (ulong)hw->cfg.size, hw->ci->cfg_mode); ci 682 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (hw->ci->addr_mode) { ci 683 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->addr.start = pci_resource_start(hw->pdev, hw->ci->addr_bar); ci 684 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->addr.size = pci_resource_len(hw->pdev, hw->ci->addr_bar); ci 685 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (hw->ci->addr_mode == AM_MEMIO) { ci 700 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (hw->ci->addr_mode == AM_MEMIO) { ci 705 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->addr.mode = hw->ci->addr_mode; ci 709 drivers/isdn/hardware/mISDN/mISDNinfineon.c (ulong)hw->addr.size, hw->ci->addr_mode); ci 713 drivers/isdn/hardware/mISDN/mISDNinfineon.c switch (hw->ci->typ) { ci 867 drivers/isdn/hardware/mISDN/mISDNinfineon.c switch (card->ci->typ) { ci 894 drivers/isdn/hardware/mISDN/mISDNinfineon.c snprintf(card->name, MISDN_MAX_IDLEN - 1, "%s.%d", card->ci->name, ci 1055 drivers/isdn/hardware/mISDN/mISDNinfineon.c const struct inf_cinfo *ci = inf_card_info; ci 1057 drivers/isdn/hardware/mISDN/mISDNinfineon.c while (ci->typ != INF_NONE) { ci 1058 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (ci->typ == typ) ci 1059 drivers/isdn/hardware/mISDN/mISDNinfineon.c return ci; ci 1060 drivers/isdn/hardware/mISDN/mISDNinfineon.c ci++; ci 1082 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ci = get_card_info(ent->driver_data); ci 1083 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (!card->ci) { ci 1091 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ci->full, pci_name(pdev)); ci 1113 drivers/isdn/hardware/mISDN/mISDNinfineon.c sc->ci = card->ci + i; ci 597 drivers/md/dm.c static struct dm_target_io *alloc_tio(struct clone_info *ci, struct dm_target *ti, ci 602 drivers/md/dm.c if (!ci->io->tio.io) { ci 604 drivers/md/dm.c tio = &ci->io->tio; ci 606 drivers/md/dm.c struct bio *clone = bio_alloc_bioset(gfp_mask, 0, &ci->io->md->bs); ci 615 drivers/md/dm.c tio->io = ci->io; ci 1353 drivers/md/dm.c static void alloc_multiple_bios(struct bio_list *blist, struct clone_info *ci, ci 1363 drivers/md/dm.c tio = alloc_tio(ci, ti, 0, GFP_NOIO); ci 1373 drivers/md/dm.c mutex_lock(&ci->io->md->table_devices_lock); ci 1375 drivers/md/dm.c tio = alloc_tio(ci, ti, bio_nr, try ? GFP_NOIO : GFP_NOWAIT); ci 1382 drivers/md/dm.c mutex_unlock(&ci->io->md->table_devices_lock); ci 1393 drivers/md/dm.c static blk_qc_t __clone_and_map_simple_bio(struct clone_info *ci, ci 1400 drivers/md/dm.c __bio_clone_fast(clone, ci->bio); ci 1402 drivers/md/dm.c bio_setup_sector(clone, ci->sector, *len); ci 1407 drivers/md/dm.c static void __send_duplicate_bios(struct clone_info *ci, struct dm_target *ti, ci 1414 drivers/md/dm.c alloc_multiple_bios(&blist, ci, ti, num_bios); ci 1418 drivers/md/dm.c (void) __clone_and_map_simple_bio(ci, tio, len); ci 1422 drivers/md/dm.c static int __send_empty_flush(struct clone_info *ci) ci 1434 drivers/md/dm.c bio_set_dev(ci->bio, ci->io->md->bdev); ci 1436 drivers/md/dm.c BUG_ON(bio_has_data(ci->bio)); ci 1437 drivers/md/dm.c while ((ti = dm_table_get_target(ci->map, target_nr++))) ci 1438 drivers/md/dm.c __send_duplicate_bios(ci, ti, ti->num_flush_bios, NULL); ci 1440 drivers/md/dm.c bio_disassociate_blkg(ci->bio); ci 1445 drivers/md/dm.c static int __clone_and_map_data_bio(struct clone_info *ci, struct dm_target *ti, ci 1448 drivers/md/dm.c struct bio *bio = ci->bio; ci 1452 drivers/md/dm.c tio = alloc_tio(ci, ti, 0, GFP_NOIO); ci 1486 drivers/md/dm.c static int __send_changing_extent_only(struct clone_info *ci, struct dm_target *ti, ci 1500 drivers/md/dm.c len = min((sector_t)ci->sector_count, max_io_len_target_boundary(ci->sector, ti)); ci 1502 drivers/md/dm.c __send_duplicate_bios(ci, ti, num_bios, &len); ci 1504 drivers/md/dm.c ci->sector += len; ci 1505 drivers/md/dm.c ci->sector_count -= len; ci 1510 drivers/md/dm.c static int __send_discard(struct clone_info *ci, struct dm_target *ti) ci 1512 drivers/md/dm.c return __send_changing_extent_only(ci, ti, get_num_discard_bios(ti)); ci 1515 drivers/md/dm.c static int __send_secure_erase(struct clone_info *ci, struct dm_target *ti) ci 1517 drivers/md/dm.c return __send_changing_extent_only(ci, ti, get_num_secure_erase_bios(ti)); ci 1520 drivers/md/dm.c static int __send_write_same(struct clone_info *ci, struct dm_target *ti) ci 1522 drivers/md/dm.c return __send_changing_extent_only(ci, ti, get_num_write_same_bios(ti)); ci 1525 drivers/md/dm.c static int __send_write_zeroes(struct clone_info *ci, struct dm_target *ti) ci 1527 drivers/md/dm.c return __send_changing_extent_only(ci, ti, get_num_write_zeroes_bios(ti)); ci 1546 drivers/md/dm.c static bool __process_abnormal_io(struct clone_info *ci, struct dm_target *ti, ci 1549 drivers/md/dm.c struct bio *bio = ci->bio; ci 1552 drivers/md/dm.c *result = __send_discard(ci, ti); ci 1554 drivers/md/dm.c *result = __send_secure_erase(ci, ti); ci 1556 drivers/md/dm.c *result = __send_write_same(ci, ti); ci 1558 drivers/md/dm.c *result = __send_write_zeroes(ci, ti); ci 1568 drivers/md/dm.c static int __split_and_process_non_flush(struct clone_info *ci) ci 1574 drivers/md/dm.c ti = dm_table_find_target(ci->map, ci->sector); ci 1578 drivers/md/dm.c if (__process_abnormal_io(ci, ti, &r)) ci 1581 drivers/md/dm.c len = min_t(sector_t, max_io_len(ci->sector, ti), ci->sector_count); ci 1583 drivers/md/dm.c r = __clone_and_map_data_bio(ci, ti, ci->sector, &len); ci 1587 drivers/md/dm.c ci->sector += len; ci 1588 drivers/md/dm.c ci->sector_count -= len; ci 1593 drivers/md/dm.c static void init_clone_info(struct clone_info *ci, struct mapped_device *md, ci 1596 drivers/md/dm.c ci->map = map; ci 1597 drivers/md/dm.c ci->io = alloc_io(md, bio); ci 1598 drivers/md/dm.c ci->sector = bio->bi_iter.bi_sector; ci 1610 drivers/md/dm.c struct clone_info ci; ci 1614 drivers/md/dm.c init_clone_info(&ci, md, map, bio); ci 1626 drivers/md/dm.c ci.bio = &flush_bio; ci 1627 drivers/md/dm.c ci.sector_count = 0; ci 1628 drivers/md/dm.c error = __send_empty_flush(&ci); ci 1631 drivers/md/dm.c ci.bio = bio; ci 1632 drivers/md/dm.c ci.sector_count = 0; ci 1633 drivers/md/dm.c error = __split_and_process_non_flush(&ci); ci 1635 drivers/md/dm.c ci.bio = bio; ci 1636 drivers/md/dm.c ci.sector_count = bio_sectors(bio); ci 1637 drivers/md/dm.c while (ci.sector_count && !error) { ci 1638 drivers/md/dm.c error = __split_and_process_non_flush(&ci); ci 1639 drivers/md/dm.c if (current->bio_list && ci.sector_count && !error) { ci 1648 drivers/md/dm.c struct bio *b = bio_split(bio, bio_sectors(bio) - ci.sector_count, ci 1650 drivers/md/dm.c ci.io->orig_bio = b; ci 1661 drivers/md/dm.c sectors[op_stat_group(bio_op(bio))], ci.sector_count); ci 1673 drivers/md/dm.c dec_pending(ci.io, errno_to_blk_status(error)); ci 1684 drivers/md/dm.c struct clone_info ci; ci 1688 drivers/md/dm.c init_clone_info(&ci, md, map, bio); ci 1700 drivers/md/dm.c ci.bio = &flush_bio; ci 1701 drivers/md/dm.c ci.sector_count = 0; ci 1702 drivers/md/dm.c error = __send_empty_flush(&ci); ci 1707 drivers/md/dm.c ci.bio = bio; ci 1708 drivers/md/dm.c ci.sector_count = bio_sectors(bio); ci 1709 drivers/md/dm.c if (__process_abnormal_io(&ci, ti, &error)) ci 1712 drivers/md/dm.c tio = alloc_tio(&ci, ti, 0, GFP_NOIO); ci 1713 drivers/md/dm.c ret = __clone_and_map_simple_bio(&ci, tio, NULL); ci 1717 drivers/md/dm.c dec_pending(ci.io, errno_to_blk_status(error)); ci 62 drivers/media/dvb-frontends/cxd2099.c static int read_block(struct cxd *ci, u8 adr, u8 *data, u16 n) ci 66 drivers/media/dvb-frontends/cxd2099.c if (ci->lastaddress != adr) ci 67 drivers/media/dvb-frontends/cxd2099.c status = regmap_write(ci->regmap, 0, adr); ci 69 drivers/media/dvb-frontends/cxd2099.c ci->lastaddress = adr; ci 74 drivers/media/dvb-frontends/cxd2099.c if (ci->cfg.max_i2c && len > ci->cfg.max_i2c) ci 75 drivers/media/dvb-frontends/cxd2099.c len = ci->cfg.max_i2c; ci 76 drivers/media/dvb-frontends/cxd2099.c status = regmap_raw_read(ci->regmap, 1, data, len); ci 86 drivers/media/dvb-frontends/cxd2099.c static int read_reg(struct cxd *ci, u8 reg, u8 *val) ci 88 drivers/media/dvb-frontends/cxd2099.c return read_block(ci, reg, val, 1); ci 91 drivers/media/dvb-frontends/cxd2099.c static int read_pccard(struct cxd *ci, u16 address, u8 *data, u8 n) ci 96 drivers/media/dvb-frontends/cxd2099.c status = regmap_raw_write(ci->regmap, 2, addr, 2); ci 98 drivers/media/dvb-frontends/cxd2099.c status = regmap_raw_read(ci->regmap, 3, data, n); ci 102 drivers/media/dvb-frontends/cxd2099.c static int write_pccard(struct cxd *ci, u16 address, u8 *data, u8 n) ci 107 drivers/media/dvb-frontends/cxd2099.c status = regmap_raw_write(ci->regmap, 2, addr, 2); ci 112 drivers/media/dvb-frontends/cxd2099.c status = regmap_raw_write(ci->regmap, 3, buf, n); ci 117 drivers/media/dvb-frontends/cxd2099.c static int read_io(struct cxd *ci, u16 address, unsigned int *val) ci 122 drivers/media/dvb-frontends/cxd2099.c status = regmap_raw_write(ci->regmap, 2, addr, 2); ci 124 drivers/media/dvb-frontends/cxd2099.c status = regmap_read(ci->regmap, 3, val); ci 128 drivers/media/dvb-frontends/cxd2099.c static int write_io(struct cxd *ci, u16 address, u8 val) ci 133 drivers/media/dvb-frontends/cxd2099.c status = regmap_raw_write(ci->regmap, 2, addr, 2); ci 135 drivers/media/dvb-frontends/cxd2099.c status = regmap_write(ci->regmap, 3, val); ci 139 drivers/media/dvb-frontends/cxd2099.c static int write_regm(struct cxd *ci, u8 reg, u8 val, u8 mask) ci 144 drivers/media/dvb-frontends/cxd2099.c if (ci->lastaddress != reg) ci 145 drivers/media/dvb-frontends/cxd2099.c status = regmap_write(ci->regmap, 0, reg); ci 147 drivers/media/dvb-frontends/cxd2099.c status = regmap_read(ci->regmap, 1, ®val); ci 148 drivers/media/dvb-frontends/cxd2099.c ci->regs[reg] = regval; ci 150 drivers/media/dvb-frontends/cxd2099.c ci->lastaddress = reg; ci 151 drivers/media/dvb-frontends/cxd2099.c ci->regs[reg] = (ci->regs[reg] & (~mask)) | val; ci 153 drivers/media/dvb-frontends/cxd2099.c status = regmap_write(ci->regmap, 1, ci->regs[reg]); ci 155 drivers/media/dvb-frontends/cxd2099.c ci->regs[reg] &= 0x7f; ci 159 drivers/media/dvb-frontends/cxd2099.c static int write_reg(struct cxd *ci, u8 reg, u8 val) ci 161 drivers/media/dvb-frontends/cxd2099.c return write_regm(ci, reg, val, 0xff); ci 164 drivers/media/dvb-frontends/cxd2099.c static int write_block(struct cxd *ci, u8 adr, u8 *data, u16 n) ci 167 drivers/media/dvb-frontends/cxd2099.c u8 *buf = ci->wbuf; ci 169 drivers/media/dvb-frontends/cxd2099.c if (ci->lastaddress != adr) ci 170 drivers/media/dvb-frontends/cxd2099.c status = regmap_write(ci->regmap, 0, adr); ci 174 drivers/media/dvb-frontends/cxd2099.c ci->lastaddress = adr; ci 178 drivers/media/dvb-frontends/cxd2099.c if (ci->cfg.max_i2c && (len + 1 > ci->cfg.max_i2c)) ci 179 drivers/media/dvb-frontends/cxd2099.c len = ci->cfg.max_i2c - 1; ci 181 drivers/media/dvb-frontends/cxd2099.c status = regmap_raw_write(ci->regmap, 1, buf, len); ci 190 drivers/media/dvb-frontends/cxd2099.c static void set_mode(struct cxd *ci, int mode) ci 192 drivers/media/dvb-frontends/cxd2099.c if (mode == ci->mode) ci 197 drivers/media/dvb-frontends/cxd2099.c write_regm(ci, 0x06, 0x00, 0x07); ci 200 drivers/media/dvb-frontends/cxd2099.c write_regm(ci, 0x06, 0x02, 0x07); ci 205 drivers/media/dvb-frontends/cxd2099.c ci->mode = mode; ci 208 drivers/media/dvb-frontends/cxd2099.c static void cam_mode(struct cxd *ci, int mode) ci 212 drivers/media/dvb-frontends/cxd2099.c if (mode == ci->cammode) ci 217 drivers/media/dvb-frontends/cxd2099.c write_regm(ci, 0x20, 0x80, 0x80); ci 220 drivers/media/dvb-frontends/cxd2099.c if (!ci->en.read_data) ci 222 drivers/media/dvb-frontends/cxd2099.c ci->write_busy = 0; ci 223 drivers/media/dvb-frontends/cxd2099.c dev_info(&ci->client->dev, "enable cam buffer mode\n"); ci 224 drivers/media/dvb-frontends/cxd2099.c write_reg(ci, 0x0d, 0x00); ci 225 drivers/media/dvb-frontends/cxd2099.c write_reg(ci, 0x0e, 0x01); ci 226 drivers/media/dvb-frontends/cxd2099.c write_regm(ci, 0x08, 0x40, 0x40); ci 227 drivers/media/dvb-frontends/cxd2099.c read_reg(ci, 0x12, &dummy); ci 228 drivers/media/dvb-frontends/cxd2099.c write_regm(ci, 0x08, 0x80, 0x80); ci 233 drivers/media/dvb-frontends/cxd2099.c ci->cammode = mode; ci 236 drivers/media/dvb-frontends/cxd2099.c static int init(struct cxd *ci) ci 240 drivers/media/dvb-frontends/cxd2099.c mutex_lock(&ci->lock); ci 241 drivers/media/dvb-frontends/cxd2099.c ci->mode = -1; ci 243 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x00, 0x00); ci 246 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x01, 0x00); ci 249 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x02, 0x10); ci 252 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x03, 0x00); ci 255 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x05, 0xFF); ci 258 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x06, 0x1F); ci 261 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x07, 0x1F); ci 264 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x08, 0x28); ci 267 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x14, 0x20); ci 274 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x0A, 0xA7); ci 278 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x0B, 0x33); ci 281 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x0C, 0x33); ci 285 drivers/media/dvb-frontends/cxd2099.c status = write_regm(ci, 0x14, 0x00, 0x0F); ci 288 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x15, ci->clk_reg_b); ci 291 drivers/media/dvb-frontends/cxd2099.c status = write_regm(ci, 0x16, 0x00, 0x0F); ci 294 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x17, ci->clk_reg_f); ci 298 drivers/media/dvb-frontends/cxd2099.c if (ci->cfg.clock_mode == 2) { ci 300 drivers/media/dvb-frontends/cxd2099.c u32 reg = ((ci->cfg.bitrate << 13) + 71999) / 72000; ci 302 drivers/media/dvb-frontends/cxd2099.c if (ci->cfg.polarity) { ci 303 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x09, 0x6f); ci 307 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x09, 0x6d); ci 311 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x20, 0x08); ci 314 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x21, (reg >> 8) & 0xff); ci 317 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x22, reg & 0xff); ci 320 drivers/media/dvb-frontends/cxd2099.c } else if (ci->cfg.clock_mode == 1) { ci 321 drivers/media/dvb-frontends/cxd2099.c if (ci->cfg.polarity) { ci 322 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x09, 0x6f); /* D */ ci 326 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x09, 0x6d); ci 330 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x20, 0x68); ci 333 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x21, 0x00); ci 336 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x22, 0x02); ci 340 drivers/media/dvb-frontends/cxd2099.c if (ci->cfg.polarity) { ci 341 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x09, 0x4f); /* C */ ci 345 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x09, 0x4d); ci 349 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x20, 0x28); ci 352 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x21, 0x00); ci 355 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x22, 0x07); ci 360 drivers/media/dvb-frontends/cxd2099.c status = write_regm(ci, 0x20, 0x80, 0x80); ci 363 drivers/media/dvb-frontends/cxd2099.c status = write_regm(ci, 0x03, 0x02, 0x02); ci 366 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x01, 0x04); ci 369 drivers/media/dvb-frontends/cxd2099.c status = write_reg(ci, 0x00, 0x31); ci 374 drivers/media/dvb-frontends/cxd2099.c status = write_regm(ci, 0x09, 0x08, 0x08); ci 377 drivers/media/dvb-frontends/cxd2099.c ci->cammode = -1; ci 378 drivers/media/dvb-frontends/cxd2099.c cam_mode(ci, 0); ci 380 drivers/media/dvb-frontends/cxd2099.c mutex_unlock(&ci->lock); ci 388 drivers/media/dvb-frontends/cxd2099.c struct cxd *ci = ca->data; ci 391 drivers/media/dvb-frontends/cxd2099.c mutex_lock(&ci->lock); ci 392 drivers/media/dvb-frontends/cxd2099.c set_mode(ci, 1); ci 393 drivers/media/dvb-frontends/cxd2099.c read_pccard(ci, address, &val, 1); ci 394 drivers/media/dvb-frontends/cxd2099.c mutex_unlock(&ci->lock); ci 401 drivers/media/dvb-frontends/cxd2099.c struct cxd *ci = ca->data; ci 403 drivers/media/dvb-frontends/cxd2099.c mutex_lock(&ci->lock); ci 404 drivers/media/dvb-frontends/cxd2099.c set_mode(ci, 1); ci 405 drivers/media/dvb-frontends/cxd2099.c write_pccard(ci, address, &value, 1); ci 406 drivers/media/dvb-frontends/cxd2099.c mutex_unlock(&ci->lock); ci 413 drivers/media/dvb-frontends/cxd2099.c struct cxd *ci = ca->data; ci 416 drivers/media/dvb-frontends/cxd2099.c mutex_lock(&ci->lock); ci 417 drivers/media/dvb-frontends/cxd2099.c set_mode(ci, 0); ci 418 drivers/media/dvb-frontends/cxd2099.c read_io(ci, address, &val); ci 419 drivers/media/dvb-frontends/cxd2099.c mutex_unlock(&ci->lock); ci 426 drivers/media/dvb-frontends/cxd2099.c struct cxd *ci = ca->data; ci 428 drivers/media/dvb-frontends/cxd2099.c mutex_lock(&ci->lock); ci 429 drivers/media/dvb-frontends/cxd2099.c set_mode(ci, 0); ci 430 drivers/media/dvb-frontends/cxd2099.c write_io(ci, address, value); ci 431 drivers/media/dvb-frontends/cxd2099.c mutex_unlock(&ci->lock); ci 437 drivers/media/dvb-frontends/cxd2099.c struct cxd *ci = ca->data; ci 439 drivers/media/dvb-frontends/cxd2099.c if (ci->cammode) ci 440 drivers/media/dvb-frontends/cxd2099.c read_data(ca, slot, ci->rbuf, 0); ci 442 drivers/media/dvb-frontends/cxd2099.c mutex_lock(&ci->lock); ci 443 drivers/media/dvb-frontends/cxd2099.c cam_mode(ci, 0); ci 444 drivers/media/dvb-frontends/cxd2099.c write_reg(ci, 0x00, 0x21); ci 445 drivers/media/dvb-frontends/cxd2099.c write_reg(ci, 0x06, 0x1F); ci 446 drivers/media/dvb-frontends/cxd2099.c write_reg(ci, 0x00, 0x31); ci 447 drivers/media/dvb-frontends/cxd2099.c write_regm(ci, 0x20, 0x80, 0x80); ci 448 drivers/media/dvb-frontends/cxd2099.c write_reg(ci, 0x03, 0x02); ci 449 drivers/media/dvb-frontends/cxd2099.c ci->ready = 0; ci 450 drivers/media/dvb-frontends/cxd2099.c ci->mode = -1; ci 456 drivers/media/dvb-frontends/cxd2099.c if (ci->ready) ci 460 drivers/media/dvb-frontends/cxd2099.c mutex_unlock(&ci->lock); ci 466 drivers/media/dvb-frontends/cxd2099.c struct cxd *ci = ca->data; ci 468 drivers/media/dvb-frontends/cxd2099.c dev_dbg(&ci->client->dev, "%s\n", __func__); ci 469 drivers/media/dvb-frontends/cxd2099.c if (ci->cammode) ci 470 drivers/media/dvb-frontends/cxd2099.c read_data(ca, slot, ci->rbuf, 0); ci 471 drivers/media/dvb-frontends/cxd2099.c mutex_lock(&ci->lock); ci 472 drivers/media/dvb-frontends/cxd2099.c write_reg(ci, 0x00, 0x21); ci 473 drivers/media/dvb-frontends/cxd2099.c write_reg(ci, 0x06, 0x1F); ci 476 drivers/media/dvb-frontends/cxd2099.c write_regm(ci, 0x09, 0x08, 0x08); ci 477 drivers/media/dvb-frontends/cxd2099.c write_regm(ci, 0x20, 0x80, 0x80); /* Reset CAM Mode */ ci 478 drivers/media/dvb-frontends/cxd2099.c write_regm(ci, 0x06, 0x07, 0x07); /* Clear IO Mode */ ci 480 drivers/media/dvb-frontends/cxd2099.c ci->mode = -1; ci 481 drivers/media/dvb-frontends/cxd2099.c ci->write_busy = 0; ci 482 drivers/media/dvb-frontends/cxd2099.c mutex_unlock(&ci->lock); ci 488 drivers/media/dvb-frontends/cxd2099.c struct cxd *ci = ca->data; ci 490 drivers/media/dvb-frontends/cxd2099.c mutex_lock(&ci->lock); ci 491 drivers/media/dvb-frontends/cxd2099.c write_regm(ci, 0x09, 0x00, 0x08); ci 492 drivers/media/dvb-frontends/cxd2099.c set_mode(ci, 0); ci 493 drivers/media/dvb-frontends/cxd2099.c cam_mode(ci, 1); ci 494 drivers/media/dvb-frontends/cxd2099.c mutex_unlock(&ci->lock); ci 498 drivers/media/dvb-frontends/cxd2099.c static int campoll(struct cxd *ci) ci 502 drivers/media/dvb-frontends/cxd2099.c read_reg(ci, 0x04, &istat); ci 505 drivers/media/dvb-frontends/cxd2099.c write_reg(ci, 0x05, istat); ci 508 drivers/media/dvb-frontends/cxd2099.c ci->dr = 1; ci 510 drivers/media/dvb-frontends/cxd2099.c ci->write_busy = 0; ci 515 drivers/media/dvb-frontends/cxd2099.c read_reg(ci, 0x01, &slotstat); ci 517 drivers/media/dvb-frontends/cxd2099.c if (!ci->slot_stat) { ci 518 drivers/media/dvb-frontends/cxd2099.c ci->slot_stat |= ci 520 drivers/media/dvb-frontends/cxd2099.c write_regm(ci, 0x03, 0x08, 0x08); ci 524 drivers/media/dvb-frontends/cxd2099.c if (ci->slot_stat) { ci 525 drivers/media/dvb-frontends/cxd2099.c ci->slot_stat = 0; ci 526 drivers/media/dvb-frontends/cxd2099.c write_regm(ci, 0x03, 0x00, 0x08); ci 527 drivers/media/dvb-frontends/cxd2099.c dev_info(&ci->client->dev, "NO CAM\n"); ci 528 drivers/media/dvb-frontends/cxd2099.c ci->ready = 0; ci 532 drivers/media/dvb-frontends/cxd2099.c ci->slot_stat == DVB_CA_EN50221_POLL_CAM_PRESENT) { ci 533 drivers/media/dvb-frontends/cxd2099.c ci->ready = 1; ci 534 drivers/media/dvb-frontends/cxd2099.c ci->slot_stat |= DVB_CA_EN50221_POLL_CAM_READY; ci 542 drivers/media/dvb-frontends/cxd2099.c struct cxd *ci = ca->data; ci 545 drivers/media/dvb-frontends/cxd2099.c mutex_lock(&ci->lock); ci 546 drivers/media/dvb-frontends/cxd2099.c campoll(ci); ci 547 drivers/media/dvb-frontends/cxd2099.c read_reg(ci, 0x01, &slotstat); ci 548 drivers/media/dvb-frontends/cxd2099.c mutex_unlock(&ci->lock); ci 550 drivers/media/dvb-frontends/cxd2099.c return ci->slot_stat; ci 555 drivers/media/dvb-frontends/cxd2099.c struct cxd *ci = ca->data; ci 559 drivers/media/dvb-frontends/cxd2099.c mutex_lock(&ci->lock); ci 560 drivers/media/dvb-frontends/cxd2099.c campoll(ci); ci 561 drivers/media/dvb-frontends/cxd2099.c mutex_unlock(&ci->lock); ci 563 drivers/media/dvb-frontends/cxd2099.c if (!ci->dr) ci 566 drivers/media/dvb-frontends/cxd2099.c mutex_lock(&ci->lock); ci 567 drivers/media/dvb-frontends/cxd2099.c read_reg(ci, 0x0f, &msb); ci 568 drivers/media/dvb-frontends/cxd2099.c read_reg(ci, 0x10, &lsb); ci 572 drivers/media/dvb-frontends/cxd2099.c read_block(ci, 0x12, ci->rbuf, len); ci 573 drivers/media/dvb-frontends/cxd2099.c mutex_unlock(&ci->lock); ci 576 drivers/media/dvb-frontends/cxd2099.c read_block(ci, 0x12, ebuf, len); ci 577 drivers/media/dvb-frontends/cxd2099.c ci->dr = 0; ci 578 drivers/media/dvb-frontends/cxd2099.c mutex_unlock(&ci->lock); ci 584 drivers/media/dvb-frontends/cxd2099.c struct cxd *ci = ca->data; ci 586 drivers/media/dvb-frontends/cxd2099.c if (ci->write_busy) ci 588 drivers/media/dvb-frontends/cxd2099.c mutex_lock(&ci->lock); ci 589 drivers/media/dvb-frontends/cxd2099.c write_reg(ci, 0x0d, ecount >> 8); ci 590 drivers/media/dvb-frontends/cxd2099.c write_reg(ci, 0x0e, ecount & 0xff); ci 591 drivers/media/dvb-frontends/cxd2099.c write_block(ci, 0x11, ebuf, ecount); ci 592 drivers/media/dvb-frontends/cxd2099.c ci->write_busy = 1; ci 593 drivers/media/dvb-frontends/cxd2099.c mutex_unlock(&ci->lock); ci 613 drivers/media/dvb-frontends/cxd2099.c struct cxd *ci; ci 622 drivers/media/dvb-frontends/cxd2099.c ci = kzalloc(sizeof(*ci), GFP_KERNEL); ci 623 drivers/media/dvb-frontends/cxd2099.c if (!ci) { ci 628 drivers/media/dvb-frontends/cxd2099.c ci->client = client; ci 629 drivers/media/dvb-frontends/cxd2099.c memcpy(&ci->cfg, cfg, sizeof(ci->cfg)); ci 631 drivers/media/dvb-frontends/cxd2099.c ci->regmap = regmap_init_i2c(client, &rm_cfg); ci 632 drivers/media/dvb-frontends/cxd2099.c if (IS_ERR(ci->regmap)) { ci 633 drivers/media/dvb-frontends/cxd2099.c ret = PTR_ERR(ci->regmap); ci 637 drivers/media/dvb-frontends/cxd2099.c ret = regmap_read(ci->regmap, 0x00, &val); ci 644 drivers/media/dvb-frontends/cxd2099.c mutex_init(&ci->lock); ci 645 drivers/media/dvb-frontends/cxd2099.c ci->lastaddress = 0xff; ci 646 drivers/media/dvb-frontends/cxd2099.c ci->clk_reg_b = 0x4a; ci 647 drivers/media/dvb-frontends/cxd2099.c ci->clk_reg_f = 0x1b; ci 649 drivers/media/dvb-frontends/cxd2099.c ci->en = en_templ; ci 650 drivers/media/dvb-frontends/cxd2099.c ci->en.data = ci; ci 651 drivers/media/dvb-frontends/cxd2099.c init(ci); ci 654 drivers/media/dvb-frontends/cxd2099.c *cfg->en = &ci->en; ci 657 drivers/media/dvb-frontends/cxd2099.c ci->en.read_data = NULL; ci 658 drivers/media/dvb-frontends/cxd2099.c ci->en.write_data = NULL; ci 663 drivers/media/dvb-frontends/cxd2099.c i2c_set_clientdata(client, ci); ci 668 drivers/media/dvb-frontends/cxd2099.c regmap_exit(ci->regmap); ci 670 drivers/media/dvb-frontends/cxd2099.c kfree(ci); ci 678 drivers/media/dvb-frontends/cxd2099.c struct cxd *ci = i2c_get_clientdata(client); ci 680 drivers/media/dvb-frontends/cxd2099.c regmap_exit(ci->regmap); ci 681 drivers/media/dvb-frontends/cxd2099.c kfree(ci); ci 29 drivers/media/pci/ddbridge/ddbridge-ci.c static int wait_ci_ready(struct ddb_ci *ci) ci 35 drivers/media/pci/ddbridge/ddbridge-ci.c if (ddbreadl(ci->port->dev, ci 36 drivers/media/pci/ddbridge/ddbridge-ci.c CI_CONTROL(ci->nr)) & CI_READY) ci 48 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 53 drivers/media/pci/ddbridge/ddbridge-ci.c ddbwritel(ci->port->dev, CI_READ_CMD | (1 << 16) | address, ci 54 drivers/media/pci/ddbridge/ddbridge-ci.c CI_DO_READ_ATTRIBUTES(ci->nr)); ci 55 drivers/media/pci/ddbridge/ddbridge-ci.c wait_ci_ready(ci); ci 56 drivers/media/pci/ddbridge/ddbridge-ci.c val = 0xff & ddbreadl(ci->port->dev, CI_BUFFER(ci->nr) + off); ci 63 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 65 drivers/media/pci/ddbridge/ddbridge-ci.c ddbwritel(ci->port->dev, CI_WRITE_CMD | (value << 16) | address, ci 66 drivers/media/pci/ddbridge/ddbridge-ci.c CI_DO_ATTRIBUTE_RW(ci->nr)); ci 67 drivers/media/pci/ddbridge/ddbridge-ci.c wait_ci_ready(ci); ci 75 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 78 drivers/media/pci/ddbridge/ddbridge-ci.c ddbwritel(ci->port->dev, CI_READ_CMD | address, ci 79 drivers/media/pci/ddbridge/ddbridge-ci.c CI_DO_IO_RW(ci->nr)); ci 82 drivers/media/pci/ddbridge/ddbridge-ci.c res = ddbreadl(ci->port->dev, CI_READDATA(ci->nr)); ci 95 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 97 drivers/media/pci/ddbridge/ddbridge-ci.c ddbwritel(ci->port->dev, CI_WRITE_CMD | (value << 16) | address, ci 98 drivers/media/pci/ddbridge/ddbridge-ci.c CI_DO_IO_RW(ci->nr)); ci 99 drivers/media/pci/ddbridge/ddbridge-ci.c wait_ci_ready(ci); ci 105 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 107 drivers/media/pci/ddbridge/ddbridge-ci.c ddbwritel(ci->port->dev, CI_POWER_ON, ci 108 drivers/media/pci/ddbridge/ddbridge-ci.c CI_CONTROL(ci->nr)); ci 110 drivers/media/pci/ddbridge/ddbridge-ci.c ddbwritel(ci->port->dev, CI_POWER_ON | CI_RESET_CAM, ci 111 drivers/media/pci/ddbridge/ddbridge-ci.c CI_CONTROL(ci->nr)); ci 112 drivers/media/pci/ddbridge/ddbridge-ci.c ddbwritel(ci->port->dev, CI_ENABLE | CI_POWER_ON | CI_RESET_CAM, ci 113 drivers/media/pci/ddbridge/ddbridge-ci.c CI_CONTROL(ci->nr)); ci 115 drivers/media/pci/ddbridge/ddbridge-ci.c ddbwritel(ci->port->dev, CI_ENABLE | CI_POWER_ON, ci 116 drivers/media/pci/ddbridge/ddbridge-ci.c CI_CONTROL(ci->nr)); ci 122 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 124 drivers/media/pci/ddbridge/ddbridge-ci.c ddbwritel(ci->port->dev, 0, CI_CONTROL(ci->nr)); ci 131 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 132 drivers/media/pci/ddbridge/ddbridge-ci.c u32 val = ddbreadl(ci->port->dev, CI_CONTROL(ci->nr)); ci 134 drivers/media/pci/ddbridge/ddbridge-ci.c ddbwritel(ci->port->dev, val | CI_BYPASS_DISABLE, ci 135 drivers/media/pci/ddbridge/ddbridge-ci.c CI_CONTROL(ci->nr)); ci 141 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 142 drivers/media/pci/ddbridge/ddbridge-ci.c u32 val = ddbreadl(ci->port->dev, CI_CONTROL(ci->nr)); ci 165 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci; ci 167 drivers/media/pci/ddbridge/ddbridge-ci.c ci = kzalloc(sizeof(*ci), GFP_KERNEL); ci 168 drivers/media/pci/ddbridge/ddbridge-ci.c if (!ci) ci 170 drivers/media/pci/ddbridge/ddbridge-ci.c memcpy(&ci->en, &en_templ, sizeof(en_templ)); ci 171 drivers/media/pci/ddbridge/ddbridge-ci.c ci->en.data = ci; ci 172 drivers/media/pci/ddbridge/ddbridge-ci.c port->en = &ci->en; ci 174 drivers/media/pci/ddbridge/ddbridge-ci.c ci->port = port; ci 175 drivers/media/pci/ddbridge/ddbridge-ci.c ci->nr = port->nr - 2; ci 180 drivers/media/pci/ddbridge/ddbridge-ci.c static int write_creg(struct ddb_ci *ci, u8 data, u8 mask) ci 182 drivers/media/pci/ddbridge/ddbridge-ci.c struct i2c_adapter *i2c = &ci->port->i2c->adap; ci 183 drivers/media/pci/ddbridge/ddbridge-ci.c u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; ci 185 drivers/media/pci/ddbridge/ddbridge-ci.c ci->port->creg = (ci->port->creg & ~mask) | data; ci 186 drivers/media/pci/ddbridge/ddbridge-ci.c return i2c_write_reg(i2c, adr, 0x02, ci->port->creg); ci 192 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 193 drivers/media/pci/ddbridge/ddbridge-ci.c struct i2c_adapter *i2c = &ci->port->i2c->adap; ci 194 drivers/media/pci/ddbridge/ddbridge-ci.c u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; ci 205 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 206 drivers/media/pci/ddbridge/ddbridge-ci.c struct i2c_adapter *i2c = &ci->port->i2c->adap; ci 207 drivers/media/pci/ddbridge/ddbridge-ci.c u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; ci 215 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 216 drivers/media/pci/ddbridge/ddbridge-ci.c struct i2c_adapter *i2c = &ci->port->i2c->adap; ci 217 drivers/media/pci/ddbridge/ddbridge-ci.c u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; ci 228 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 229 drivers/media/pci/ddbridge/ddbridge-ci.c struct i2c_adapter *i2c = &ci->port->i2c->adap; ci 230 drivers/media/pci/ddbridge/ddbridge-ci.c u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; ci 237 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 239 drivers/media/pci/ddbridge/ddbridge-ci.c dev_dbg(ci->port->dev->dev, "%s\n", __func__); ci 240 drivers/media/pci/ddbridge/ddbridge-ci.c write_creg(ci, 0x01, 0x01); ci 241 drivers/media/pci/ddbridge/ddbridge-ci.c write_creg(ci, 0x04, 0x04); ci 243 drivers/media/pci/ddbridge/ddbridge-ci.c write_creg(ci, 0x02, 0x02); ci 244 drivers/media/pci/ddbridge/ddbridge-ci.c write_creg(ci, 0x00, 0x04); ci 245 drivers/media/pci/ddbridge/ddbridge-ci.c write_creg(ci, 0x18, 0x18); ci 251 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 253 drivers/media/pci/ddbridge/ddbridge-ci.c dev_dbg(ci->port->dev->dev, "%s\n", __func__); ci 254 drivers/media/pci/ddbridge/ddbridge-ci.c write_creg(ci, 0x10, 0xff); ci 255 drivers/media/pci/ddbridge/ddbridge-ci.c write_creg(ci, 0x08, 0x08); ci 261 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 263 drivers/media/pci/ddbridge/ddbridge-ci.c dev_dbg(ci->port->dev->dev, "%s\n", __func__); ci 264 drivers/media/pci/ddbridge/ddbridge-ci.c write_creg(ci, 0x00, 0x10); ci 270 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci = ca->data; ci 271 drivers/media/pci/ddbridge/ddbridge-ci.c struct i2c_adapter *i2c = &ci->port->i2c->adap; ci 272 drivers/media/pci/ddbridge/ddbridge-ci.c u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; ci 298 drivers/media/pci/ddbridge/ddbridge-ci.c struct ddb_ci *ci; ci 300 drivers/media/pci/ddbridge/ddbridge-ci.c ci = kzalloc(sizeof(*ci), GFP_KERNEL); ci 301 drivers/media/pci/ddbridge/ddbridge-ci.c if (!ci) ci 303 drivers/media/pci/ddbridge/ddbridge-ci.c memcpy(&ci->en, &en_xo2_templ, sizeof(en_xo2_templ)); ci 304 drivers/media/pci/ddbridge/ddbridge-ci.c ci->en.data = ci; ci 305 drivers/media/pci/ddbridge/ddbridge-ci.c port->en = &ci->en; ci 307 drivers/media/pci/ddbridge/ddbridge-ci.c ci->port = port; ci 308 drivers/media/pci/ddbridge/ddbridge-ci.c ci->nr = port->nr - 2; ci 309 drivers/media/pci/ddbridge/ddbridge-ci.c ci->port->creg = 0; ci 310 drivers/media/pci/ddbridge/ddbridge-ci.c write_creg(ci, 0x10, 0xff); ci 311 drivers/media/pci/ddbridge/ddbridge-ci.c write_creg(ci, 0x08, 0x08); ci 120 drivers/media/pci/netup_unidvb/netup_unidvb.h struct netup_ci_state ci[2]; ci 195 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c state = &dev->ci[num]; ci 236 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c state = &dev->ci[num]; ci 1294 drivers/media/pci/ngene/ngene-core.c dev->ci.en) ci 1468 drivers/media/pci/ngene/ngene-core.c if (!dev->ci.en && (io & NGENE_IO_TSOUT)) ci 1490 drivers/media/pci/ngene/ngene-core.c if (dev->ci.en && (io & NGENE_IO_TSOUT)) { ci 1491 drivers/media/pci/ngene/ngene-core.c dvb_ca_en50221_init(adapter, dev->ci.en, 0, 1); ci 1563 drivers/media/pci/ngene/ngene-core.c struct ngene_ci *ci = &dev->ci; ci 1581 drivers/media/pci/ngene/ngene-core.c cxd_cfg.en = &ci->en; ci 1588 drivers/media/pci/ngene/ngene-core.c ci->dev = dev; ci 1599 drivers/media/pci/ngene/ngene-core.c struct ngene_ci *ci = &dev->ci; ci 1601 drivers/media/pci/ngene/ngene-core.c dvb_ca_en50221_release(ci->en); ci 1605 drivers/media/pci/ngene/ngene-core.c ci->en = NULL; ci 1653 drivers/media/pci/ngene/ngene-core.c if (dev->ci.en) ci 169 drivers/media/pci/ngene/ngene-dvb.c if (dev->ci.en && chan->number == 2) { ci 819 drivers/media/pci/ngene/ngene.h struct ngene_ci ci; ci 1155 drivers/media/usb/dvb-usb-v2/anysee.c static int anysee_ci_read_attribute_mem(struct dvb_ca_en50221 *ci, int slot, ci 1158 drivers/media/usb/dvb-usb-v2/anysee.c struct dvb_usb_device *d = ci->data; ci 1170 drivers/media/usb/dvb-usb-v2/anysee.c static int anysee_ci_write_attribute_mem(struct dvb_ca_en50221 *ci, int slot, ci 1173 drivers/media/usb/dvb-usb-v2/anysee.c struct dvb_usb_device *d = ci->data; ci 1184 drivers/media/usb/dvb-usb-v2/anysee.c static int anysee_ci_read_cam_control(struct dvb_ca_en50221 *ci, int slot, ci 1187 drivers/media/usb/dvb-usb-v2/anysee.c struct dvb_usb_device *d = ci->data; ci 1199 drivers/media/usb/dvb-usb-v2/anysee.c static int anysee_ci_write_cam_control(struct dvb_ca_en50221 *ci, int slot, ci 1202 drivers/media/usb/dvb-usb-v2/anysee.c struct dvb_usb_device *d = ci->data; ci 1213 drivers/media/usb/dvb-usb-v2/anysee.c static int anysee_ci_slot_reset(struct dvb_ca_en50221 *ci, int slot) ci 1215 drivers/media/usb/dvb-usb-v2/anysee.c struct dvb_usb_device *d = ci->data; ci 1234 drivers/media/usb/dvb-usb-v2/anysee.c static int anysee_ci_slot_shutdown(struct dvb_ca_en50221 *ci, int slot) ci 1236 drivers/media/usb/dvb-usb-v2/anysee.c struct dvb_usb_device *d = ci->data; ci 1252 drivers/media/usb/dvb-usb-v2/anysee.c static int anysee_ci_slot_ts_enable(struct dvb_ca_en50221 *ci, int slot) ci 1254 drivers/media/usb/dvb-usb-v2/anysee.c struct dvb_usb_device *d = ci->data; ci 1264 drivers/media/usb/dvb-usb-v2/anysee.c static int anysee_ci_poll_slot_status(struct dvb_ca_en50221 *ci, int slot, ci 1267 drivers/media/usb/dvb-usb-v2/anysee.c struct dvb_usb_device *d = ci->data; ci 1290 drivers/media/usb/dvb-usb-v2/anysee.c state->ci.owner = THIS_MODULE; ci 1291 drivers/media/usb/dvb-usb-v2/anysee.c state->ci.read_attribute_mem = anysee_ci_read_attribute_mem; ci 1292 drivers/media/usb/dvb-usb-v2/anysee.c state->ci.write_attribute_mem = anysee_ci_write_attribute_mem; ci 1293 drivers/media/usb/dvb-usb-v2/anysee.c state->ci.read_cam_control = anysee_ci_read_cam_control; ci 1294 drivers/media/usb/dvb-usb-v2/anysee.c state->ci.write_cam_control = anysee_ci_write_cam_control; ci 1295 drivers/media/usb/dvb-usb-v2/anysee.c state->ci.slot_reset = anysee_ci_slot_reset; ci 1296 drivers/media/usb/dvb-usb-v2/anysee.c state->ci.slot_shutdown = anysee_ci_slot_shutdown; ci 1297 drivers/media/usb/dvb-usb-v2/anysee.c state->ci.slot_ts_enable = anysee_ci_slot_ts_enable; ci 1298 drivers/media/usb/dvb-usb-v2/anysee.c state->ci.poll_slot_status = anysee_ci_poll_slot_status; ci 1299 drivers/media/usb/dvb-usb-v2/anysee.c state->ci.data = d; ci 1313 drivers/media/usb/dvb-usb-v2/anysee.c ret = dvb_ca_en50221_init(&d->adapter[0].dvb_adap, &state->ci, 0, 1); ci 1328 drivers/media/usb/dvb-usb-v2/anysee.c dvb_ca_en50221_release(&state->ci); ci 51 drivers/media/usb/dvb-usb-v2/anysee.h struct dvb_ca_en50221 ci; ci 61 drivers/mfd/stmpe.c ret = stmpe->ci->read_byte(stmpe, reg); ci 76 drivers/mfd/stmpe.c ret = stmpe->ci->write_byte(stmpe, reg, val); ci 102 drivers/mfd/stmpe.c ret = stmpe->ci->read_block(stmpe, reg, length, values); ci 120 drivers/mfd/stmpe.c ret = stmpe->ci->write_block(stmpe, reg, length, values); ci 1378 drivers/mfd/stmpe.c int stmpe_probe(struct stmpe_client_info *ci, enum stmpe_partnum partnum) ci 1381 drivers/mfd/stmpe.c struct device_node *np = ci->dev->of_node; ci 1386 drivers/mfd/stmpe.c pdata = devm_kzalloc(ci->dev, sizeof(*pdata), GFP_KERNEL); ci 1393 drivers/mfd/stmpe.c ci->irq = -1; ci 1395 drivers/mfd/stmpe.c stmpe = devm_kzalloc(ci->dev, sizeof(struct stmpe), GFP_KERNEL); ci 1411 drivers/mfd/stmpe.c stmpe->dev = ci->dev; ci 1412 drivers/mfd/stmpe.c stmpe->client = ci->client; ci 1414 drivers/mfd/stmpe.c stmpe->ci = ci; ci 1419 drivers/mfd/stmpe.c stmpe->vcc = devm_regulator_get_optional(ci->dev, "vcc"); ci 1423 drivers/mfd/stmpe.c dev_warn(ci->dev, "failed to enable VCC supply\n"); ci 1425 drivers/mfd/stmpe.c stmpe->vio = devm_regulator_get_optional(ci->dev, "vio"); ci 1429 drivers/mfd/stmpe.c dev_warn(ci->dev, "failed to enable VIO supply\n"); ci 1433 drivers/mfd/stmpe.c if (ci->init) ci 1434 drivers/mfd/stmpe.c ci->init(stmpe); ci 1437 drivers/mfd/stmpe.c ret = devm_gpio_request_one(ci->dev, pdata->irq_gpio, ci 1447 drivers/mfd/stmpe.c stmpe->irq = ci->irq; ci 1475 drivers/mfd/stmpe.c ret = devm_request_threaded_irq(ci->dev, stmpe->irq, NULL, ci 100 drivers/mfd/stmpe.h int stmpe_probe(struct stmpe_client_info *ci, enum stmpe_partnum partnum); ci 353 drivers/misc/cardreader/rtsx_pcr.c ptr += pcr->ci; ci 354 drivers/misc/cardreader/rtsx_pcr.c if (pcr->ci < (HOST_CMDS_BUF_LEN / 4)) { ci 357 drivers/misc/cardreader/rtsx_pcr.c pcr->ci++; ci 369 drivers/misc/cardreader/rtsx_pcr.c val |= (u32)(pcr->ci * 4) & 0x00FFFFFF; ci 393 drivers/misc/cardreader/rtsx_pcr.c val |= (u32)(pcr->ci * 4) & 0x00FFFFFF; ci 349 drivers/misc/habanalabs/habanalabs.h u32 ci; ci 370 drivers/misc/habanalabs/habanalabs.h u32 ci; ci 386 drivers/misc/habanalabs/habanalabs.h u32 ci; ci 29 drivers/misc/habanalabs/hw_queue.c int delta = (q->pi - q->ci); ci 51 drivers/misc/habanalabs/hw_queue.c q->ci += cs->jobs_in_queue_cnt[i]; ci 52 drivers/misc/habanalabs/hw_queue.c q->ci &= ((q->int_queue_len << 1) - 1); ci 414 drivers/misc/habanalabs/hw_queue.c q->ci = hl_queue_inc_ptr(q->ci); ci 449 drivers/misc/habanalabs/hw_queue.c q->ci = 0; ci 483 drivers/misc/habanalabs/hw_queue.c q->ci = 0; ci 654 drivers/misc/habanalabs/hw_queue.c q->pi = q->ci = 0; ci 95 drivers/misc/habanalabs/irq.c bool entry_ready = ((le32_to_cpu(cq_base[cq->ci].data) & ci 102 drivers/misc/habanalabs/irq.c cq_entry = (struct hl_cq_entry *) &cq_base[cq->ci]; ci 129 drivers/misc/habanalabs/irq.c queue->ci = hl_queue_inc_ptr(queue->ci); ci 135 drivers/misc/habanalabs/irq.c cq->ci = hl_cq_inc_ptr(cq->ci); ci 163 drivers/misc/habanalabs/irq.c ((le32_to_cpu(eq_base[eq->ci].hdr.ctl) & ci 169 drivers/misc/habanalabs/irq.c eq_entry = &eq_base[eq->ci]; ci 200 drivers/misc/habanalabs/irq.c eq->ci = hl_eq_inc_ptr(eq->ci); ci 202 drivers/misc/habanalabs/irq.c hdev->asic_funcs->update_eq_ci(hdev, eq->ci); ci 232 drivers/misc/habanalabs/irq.c q->ci = 0; ci 256 drivers/misc/habanalabs/irq.c q->ci = 0; ci 294 drivers/misc/habanalabs/irq.c q->ci = 0; ci 318 drivers/misc/habanalabs/irq.c q->ci = 0; ci 71 drivers/net/arcnet/com20020-pci.c struct com20020_pci_card_info *ci; ci 76 drivers/net/arcnet/com20020-pci.c ci = priv->ci; ci 78 drivers/net/arcnet/com20020-pci.c outb(!!value, priv->misc + ci->leds[card->index].green); ci 86 drivers/net/arcnet/com20020-pci.c struct com20020_pci_card_info *ci; ci 91 drivers/net/arcnet/com20020-pci.c ci = priv->ci; ci 93 drivers/net/arcnet/com20020-pci.c outb(!!value, priv->misc + ci->leds[card->index].red); ci 122 drivers/net/arcnet/com20020-pci.c struct com20020_pci_card_info *ci; ci 138 drivers/net/arcnet/com20020-pci.c ci = (struct com20020_pci_card_info *)id->driver_data; ci 139 drivers/net/arcnet/com20020-pci.c priv->ci = ci; ci 140 drivers/net/arcnet/com20020-pci.c mm = &ci->misc_map; ci 156 drivers/net/arcnet/com20020-pci.c for (i = 0; i < ci->devcount; i++) { ci 157 drivers/net/arcnet/com20020-pci.c struct com20020_pci_channel_map *cm = &ci->chan_map_tbl[i]; ci 172 drivers/net/arcnet/com20020-pci.c arc_printk(D_NORMAL, dev, "%s Controls\n", ci->name); ci 197 drivers/net/arcnet/com20020-pci.c lp->card_flags = ci->flags; ci 206 drivers/net/arcnet/com20020-pci.c if (!strncmp(ci->name, "EAE PLX-PCI FB2", 15)) ci 210 drivers/net/arcnet/com20020-pci.c if (!strncmp(ci->name, "EAE PLX-PCI MA1", 15)) ci 212 drivers/net/arcnet/com20020-pci.c dev->dev_id = (inb(priv->misc + ci->rotary) >> 4) & dev_id_mask; ci 65 drivers/net/arcnet/com20020.h struct com20020_pci_card_info *ci; ci 629 drivers/net/can/sja1000/plx_pci.c struct plx_pci_card_info *ci; ci 634 drivers/net/can/sja1000/plx_pci.c ci = (struct plx_pci_card_info *)ent->driver_data; ci 642 drivers/net/can/sja1000/plx_pci.c ci->name, PCI_SLOT(pdev->devfn)); ci 656 drivers/net/can/sja1000/plx_pci.c addr = pci_iomap(pdev, ci->conf_map.bar, ci->conf_map.size); ci 660 drivers/net/can/sja1000/plx_pci.c "(BAR%d)\n", ci->conf_map.bar); ci 663 drivers/net/can/sja1000/plx_pci.c card->conf_addr = addr + ci->conf_map.offset; ci 665 drivers/net/can/sja1000/plx_pci.c ci->reset_func(pdev); ci 666 drivers/net/can/sja1000/plx_pci.c card->reset_func = ci->reset_func; ci 669 drivers/net/can/sja1000/plx_pci.c for (i = 0; i < ci->channel_count; i++) { ci 670 drivers/net/can/sja1000/plx_pci.c struct plx_pci_channel_map *cm = &ci->chan_map_tbl[i]; ci 702 drivers/net/can/sja1000/plx_pci.c priv->can.clock.freq = ci->can_clock; ci 703 drivers/net/can/sja1000/plx_pci.c priv->ocr = ci->ocr; ci 704 drivers/net/can/sja1000/plx_pci.c priv->cdr = ci->cdr; ci 132 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c struct bcma_chipinfo *ci = &bgmac->bcma.core->bus->chipinfo; ci 139 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c if (ci->id == BCMA_CHIP_ID_BCM5356) { ci 149 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c if ((ci->id == BCMA_CHIP_ID_BCM5357 && ci->pkg != 10) || ci 150 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c (ci->id == BCMA_CHIP_ID_BCM4749 && ci->pkg != 10) || ci 151 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c (ci->id == BCMA_CHIP_ID_BCM53572 && ci->pkg != 9)) { ci 114 drivers/net/ethernet/broadcom/bgmac-bcma.c struct bcma_chipinfo *ci = &core->bus->chipinfo; ci 186 drivers/net/ethernet/broadcom/bgmac-bcma.c !(ci->id == BCMA_CHIP_ID_BCM53573 && core->core_unit == 1)) { ci 197 drivers/net/ethernet/broadcom/bgmac-bcma.c if (ci->id == BCMA_CHIP_ID_BCM53573 && phydev && ci 216 drivers/net/ethernet/broadcom/bgmac-bcma.c switch (ci->id) { ci 231 drivers/net/ethernet/broadcom/bgmac-bcma.c if (ci->pkg == BCMA_PKG_ID_BCM47188 || ci 232 drivers/net/ethernet/broadcom/bgmac-bcma.c ci->pkg == BCMA_PKG_ID_BCM47186) { ci 236 drivers/net/ethernet/broadcom/bgmac-bcma.c if (ci->pkg == BCMA_PKG_ID_BCM5358) ci 242 drivers/net/ethernet/broadcom/bgmac-bcma.c if (ci->pkg == BCMA_PKG_ID_BCM47189) ci 246 drivers/net/ethernet/broadcom/bgmac-bcma.c if (ci->pkg == BCMA_PKG_ID_BCM47189) ci 259 drivers/net/ethernet/broadcom/bgmac-bcma.c if (ci->pkg == 10) { ci 642 drivers/net/ethernet/brocade/bna/bfa_msgq.c int ci; ci 645 drivers/net/ethernet/brocade/bna/bfa_msgq.c ci = rspq->consumer_index; ci 647 drivers/net/ethernet/brocade/bna/bfa_msgq.c src += (ci * BFI_MSGQ_RSP_ENTRY_SIZE); ci 656 drivers/net/ethernet/brocade/bna/bfa_msgq.c BFA_MSGQ_INDX_ADD(ci, 1, rspq->depth); ci 658 drivers/net/ethernet/brocade/bna/bfa_msgq.c src += (ci * BFI_MSGQ_RSP_ENTRY_SIZE); ci 504 drivers/net/ethernet/brocade/bna/bnad.c u32 ci, vec; ci 507 drivers/net/ethernet/brocade/bna/bnad.c for (vec = 0, ci = sop_ci; vec < nvecs; vec++) { ci 508 drivers/net/ethernet/brocade/bna/bnad.c unmap = &unmap_q->unmap[ci]; ci 509 drivers/net/ethernet/brocade/bna/bnad.c BNA_QE_INDX_INC(ci, rcb->q_depth); ci 525 drivers/net/ethernet/brocade/bna/bnad.c u32 ci, pi, totlen = 0; ci 534 drivers/net/ethernet/brocade/bna/bnad.c ci = rcb->consumer_index; ci 537 drivers/net/ethernet/brocade/bna/bnad.c prefetch(page_address(unmap_q->unmap[ci].page) + ci 538 drivers/net/ethernet/brocade/bna/bnad.c unmap_q->unmap[ci].page_offset); ci 544 drivers/net/ethernet/brocade/bna/bnad.c unmap = &unmap_q->unmap[ci]; ci 545 drivers/net/ethernet/brocade/bna/bnad.c BNA_QE_INDX_INC(ci, rcb->q_depth); ci 300 drivers/net/ethernet/freescale/enetc/enetc.c static int enetc_bd_ready_count(struct enetc_bdr *tx_ring, int ci) ci 304 drivers/net/ethernet/freescale/enetc/enetc.c return pi >= ci ? pi - ci : tx_ring->bd_count - ci + pi; ci 616 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c static int cmdq_cmd_ceq_handler(struct hinic_cmdq *cmdq, u16 ci, ci 631 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c cmdq_sync_cmd_handler(cmdq, ci, errcode); ci 652 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c u16 ci; ci 655 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c while ((hw_wqe = hinic_read_wqe(cmdq->wq, WQE_SCMD_SIZE, &ci))) { ci 671 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c hw_wqe = hinic_read_wqe(cmdq->wq, WQE_LCMD_SIZE, &ci); ci 675 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c if (cmdq_cmd_ceq_handler(cmdq, ci, &hw_wqe->cmdq_wqe)) ci 253 drivers/net/ethernet/huawei/hinic/hinic_rx.c u16 ci; ci 255 drivers/net/ethernet/huawei/hinic/hinic_rx.c while ((hw_wqe = hinic_read_wqe(rq->wq, HINIC_RQ_WQE_SIZE, &ci))) { ci 259 drivers/net/ethernet/huawei/hinic/hinic_rx.c hinic_rq_get_sge(rq, &hw_wqe->rq_wqe, ci, &sge); ci 263 drivers/net/ethernet/huawei/hinic/hinic_rx.c rx_free_skb(rxq, rq->saved_skb[ci], hinic_sge_to_dma(&sge)); ci 277 drivers/net/ethernet/huawei/hinic/hinic_rx.c unsigned int left_pkt_len, u16 ci) ci 287 drivers/net/ethernet/huawei/hinic/hinic_rx.c &skb, &ci); ci 291 drivers/net/ethernet/huawei/hinic/hinic_rx.c hinic_rq_get_sge(rxq->rq, rq_wqe, ci, &sge); ci 340 drivers/net/ethernet/huawei/hinic/hinic_rx.c u16 ci, num_lro; ci 349 drivers/net/ethernet/huawei/hinic/hinic_rx.c &ci); ci 356 drivers/net/ethernet/huawei/hinic/hinic_rx.c cqe = rq->cqe[ci]; ci 358 drivers/net/ethernet/huawei/hinic/hinic_rx.c hinic_rq_get_sge(rxq->rq, rq_wqe, ci, &sge); ci 373 drivers/net/ethernet/huawei/hinic/hinic_rx.c HINIC_RX_BUF_SZ, ci); ci 376 drivers/net/ethernet/huawei/hinic/hinic_rx.c hinic_rq_put_wqe(rq, ci, ci 583 drivers/net/ethernet/huawei/hinic/hinic_tx.c u16 ci; ci 585 drivers/net/ethernet/huawei/hinic/hinic_tx.c while ((sq_wqe = hinic_sq_read_wqebb(sq, &skb, &wqe_size, &ci))) { ci 586 drivers/net/ethernet/huawei/hinic/hinic_tx.c sq_wqe = hinic_sq_read_wqe(sq, &skb, wqe_size, &ci); ci 425 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c u16 ci; ci 428 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c ci = mlx5_wq_cyc_ctr2ix(&sq->wq, sqcc); ci 429 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c wi = &sq->db.wqe_info[ci]; ci 457 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c u16 ci; ci 459 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c ci = mlx5_wq_cyc_ctr2ix(&sq->wq, sq->cc); ci 460 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c wi = &sq->db.wqe_info[ci]; ci 61 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u32 ci = mlx5_cqwq_ctr2ix(wq, cqcc); ci 63 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c memcpy(data, mlx5_cqwq_get_wqe(wq, ci), sizeof(struct mlx5_cqe64)); ci 91 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u32 ci = mlx5_cqwq_ctr2ix(wq, cqcc); ci 93 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u32 ci_top = min_t(u32, wq_sz, ci + n); ci 95 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c for (; ci < ci_top; ci++, n--) { ci 96 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct mlx5_cqe64 *cqe = mlx5_cqwq_get_wqe(wq, ci); ci 101 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c if (unlikely(ci == wq_sz)) { ci 103 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c for (ci = 0; ci < n; ci++) { ci 104 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct mlx5_cqe64 *cqe = mlx5_cqwq_get_wqe(wq, ci); ci 627 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u16 ci; ci 631 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c ci = mlx5_wq_cyc_ctr2ix(&sq->wq, sqcc); ci 632 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c wi = &sq->db.ico_wqe[ci]; ci 1152 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u16 ci; ci 1154 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c ci = mlx5_wq_cyc_ctr2ix(wq, be16_to_cpu(cqe->wqe_counter)); ci 1155 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c wi = get_frag(rq, ci); ci 1199 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u16 ci; ci 1201 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c ci = mlx5_wq_cyc_ctr2ix(wq, be16_to_cpu(cqe->wqe_counter)); ci 1202 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c wi = get_frag(rq, ci); ci 1518 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u16 ci; ci 1520 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c ci = mlx5_wq_cyc_ctr2ix(wq, be16_to_cpu(cqe->wqe_counter)); ci 1521 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c wi = get_frag(rq, ci); ci 1558 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u16 ci; ci 1560 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c ci = mlx5_wq_cyc_ctr2ix(wq, be16_to_cpu(cqe->wqe_counter)); ci 1561 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c wi = get_frag(rq, ci); ci 407 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c u32 ci; ci 409 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c ci = mlx5_cqwq_ctr2ix(wq, wq->cc - 1); ci 413 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c sq->cq.mcq.cqn, ci, sq->sqn, ci 475 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c u16 ci; ci 480 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c ci = mlx5_wq_cyc_ctr2ix(&sq->wq, sqcc); ci 481 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c wi = &sq->db.wqe_info[ci]; ci 541 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c u16 ci, sqcc, npkts = 0; ci 549 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c ci = mlx5_wq_cyc_ctr2ix(&sq->wq, sqcc); ci 550 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c wi = &sq->db.wqe_info[ci]; ci 735 drivers/net/ethernet/mellanox/mlx5/core/eq.c u32 ci = eq->cons_index + cc; ci 738 drivers/net/ethernet/mellanox/mlx5/core/eq.c eqe = get_eqe(eq, ci & (eq->nent - 1)); ci 739 drivers/net/ethernet/mellanox/mlx5/core/eq.c eqe = ((eqe->owner & 1) ^ !!(ci & eq->nent)) ? NULL : eqe; ci 215 drivers/net/ethernet/mellanox/mlx5/core/wq.h u32 ci = mlx5_cqwq_get_ci(wq); ci 216 drivers/net/ethernet/mellanox/mlx5/core/wq.h struct mlx5_cqe64 *cqe = mlx5_cqwq_get_wqe(wq, ci); ci 1883 drivers/net/ethernet/realtek/r8169_main.c const struct rtl_coalesce_info *ci; ci 1886 drivers/net/ethernet/realtek/r8169_main.c ci = rtl_coalesce_info_8169; ci 1888 drivers/net/ethernet/realtek/r8169_main.c ci = rtl_coalesce_info_8168_8136; ci 1890 drivers/net/ethernet/realtek/r8169_main.c for (; ci->speed; ci++) { ci 1891 drivers/net/ethernet/realtek/r8169_main.c if (tp->phydev->speed == ci->speed) ci 1892 drivers/net/ethernet/realtek/r8169_main.c return ci; ci 1901 drivers/net/ethernet/realtek/r8169_main.c const struct rtl_coalesce_info *ci; ci 1919 drivers/net/ethernet/realtek/r8169_main.c ci = rtl_coalesce_info(dev); ci 1920 drivers/net/ethernet/realtek/r8169_main.c if (IS_ERR(ci)) ci 1921 drivers/net/ethernet/realtek/r8169_main.c return PTR_ERR(ci); ci 1923 drivers/net/ethernet/realtek/r8169_main.c scale = &ci->scalev[tp->cp_cmd & INTT_MASK]; ci 1951 drivers/net/ethernet/realtek/r8169_main.c const struct rtl_coalesce_info *ci; ci 1954 drivers/net/ethernet/realtek/r8169_main.c ci = rtl_coalesce_info(dev); ci 1955 drivers/net/ethernet/realtek/r8169_main.c if (IS_ERR(ci)) ci 1956 drivers/net/ethernet/realtek/r8169_main.c return ERR_CAST(ci); ci 1959 drivers/net/ethernet/realtek/r8169_main.c u32 rxtx_maxscale = max(ci->scalev[i].nsecs[0], ci 1960 drivers/net/ethernet/realtek/r8169_main.c ci->scalev[i].nsecs[1]); ci 1963 drivers/net/ethernet/realtek/r8169_main.c return &ci->scalev[i]; ci 34 drivers/net/ppp/ppp_mppe.h #define MPPE_OPTS_TO_CI(opts, ci) \ ci 36 drivers/net/ppp/ppp_mppe.h u_char *ptr = ci; /* u_char[4] */ \ ci 56 drivers/net/ppp/ppp_mppe.h #define MPPE_CI_TO_OPTS(ci, opts) \ ci 58 drivers/net/ppp/ppp_mppe.h u_char *ptr = ci; /* u_char[4] */ \ ci 253 drivers/net/vxlan.c struct nda_cacheinfo ci; ci 305 drivers/net/vxlan.c ci.ndm_used = jiffies_to_clock_t(now - fdb->used); ci 306 drivers/net/vxlan.c ci.ndm_confirmed = 0; ci 307 drivers/net/vxlan.c ci.ndm_updated = jiffies_to_clock_t(now - fdb->updated); ci 308 drivers/net/vxlan.c ci.ndm_refcnt = 0; ci 310 drivers/net/vxlan.c if (nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) ci 2667 drivers/net/wireless/ath/ath10k/wmi-tlv.c struct wmi_channel *ci; ci 2675 drivers/net/wireless/ath/ath10k/wmi-tlv.c chans_len = arg->n_channels * (sizeof(*tlv) + sizeof(*ci)); ci 2703 drivers/net/wireless/ath/ath10k/wmi-tlv.c tlv->len = __cpu_to_le16(sizeof(*ci)); ci 2704 drivers/net/wireless/ath/ath10k/wmi-tlv.c ci = (void *)tlv->value; ci 2706 drivers/net/wireless/ath/ath10k/wmi-tlv.c ath10k_wmi_put_wmi_channel(ci, ch); ci 2709 drivers/net/wireless/ath/ath10k/wmi-tlv.c chans += sizeof(*ci); ci 7447 drivers/net/wireless/ath/ath10k/wmi.c struct wmi_channel *ci; ci 7462 drivers/net/wireless/ath/ath10k/wmi.c ci = &cmd->chan_info[i]; ci 7464 drivers/net/wireless/ath/ath10k/wmi.c ath10k_wmi_put_wmi_channel(ci, ch); ci 238 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static void brcmf_chip_sb_corerev(struct brcmf_chip_priv *ci, ci 243 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c regdata = ci->ops->read32(ci->ctx, CORE_SB(core->base, sbidhigh)); ci 249 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c struct brcmf_chip_priv *ci; ci 253 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci = core->chip; ci 255 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c regdata = ci->ops->read32(ci->ctx, address); ci 263 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c struct brcmf_chip_priv *ci; ci 267 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci = core->chip; ci 268 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL); ci 271 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL); ci 280 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c struct brcmf_chip_priv *ci; ci 283 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci = core->chip; ci 285 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); ci 289 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); ci 295 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); ci 296 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, CORE_SB(base, sbtmstatelow), ci 299 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); ci 301 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c SPINWAIT((ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatehigh)) ci 304 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatehigh)); ci 308 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = ci->ops->read32(ci->ctx, CORE_SB(base, sbidlow)); ci 310 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = ci->ops->read32(ci->ctx, ci 313 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, ci 315 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = ci->ops->read32(ci->ctx, ci 318 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c SPINWAIT((ci->ops->read32(ci->ctx, ci 326 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, CORE_SB(base, sbtmstatelow), val); ci 327 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); ci 331 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = ci->ops->read32(ci->ctx, CORE_SB(base, sbidlow)); ci 333 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = ci->ops->read32(ci->ctx, ci 336 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, ci 342 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, CORE_SB(base, sbtmstatelow), ci 350 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c struct brcmf_chip_priv *ci; ci 353 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci = core->chip; ci 356 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL); ci 361 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, core->wrapbase + BCMA_IOCTL, ci 363 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL); ci 366 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, core->wrapbase + BCMA_RESET_CTL, ci 371 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c SPINWAIT(ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL) != ci 376 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, core->wrapbase + BCMA_IOCTL, ci 378 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL); ci 384 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c struct brcmf_chip_priv *ci; ci 388 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci = core->chip; ci 401 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, CORE_SB(base, sbtmstatelow), ci 404 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c regdata = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); ci 408 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c regdata = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatehigh)); ci 410 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, CORE_SB(base, sbtmstatehigh), 0); ci 412 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c regdata = ci->ops->read32(ci->ctx, CORE_SB(base, sbimstate)); ci 415 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, CORE_SB(base, sbimstate), regdata); ci 419 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, CORE_SB(base, sbtmstatelow), ci 421 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c regdata = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); ci 425 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, CORE_SB(base, sbtmstatelow), ci 427 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c regdata = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); ci 434 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c struct brcmf_chip_priv *ci; ci 437 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci = core->chip; ci 443 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c while (ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL) & ci 445 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, core->wrapbase + BCMA_RESET_CTL, 0); ci 452 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->write32(ci->ctx, core->wrapbase + BCMA_IOCTL, ci 454 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL); ci 466 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static struct brcmf_core *brcmf_chip_add_core(struct brcmf_chip_priv *ci, ci 478 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c core->chip = ci; ci 481 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c list_add_tail(&core->list, &ci->cores); ci 486 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static int brcmf_chip_cores_check(struct brcmf_chip_priv *ci) ci 494 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c list_for_each_entry(core, &ci->cores, list) { ci 666 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static u32 brcmf_chip_tcm_rambase(struct brcmf_chip_priv *ci) ci 668 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c switch (ci->pub.chip) { ci 693 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c brcmf_err("unknown chip: %s\n", ci->pub.name); ci 701 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c struct brcmf_chip_priv *ci = container_of(pub, struct brcmf_chip_priv, ci 706 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c mem = brcmf_chip_get_core(&ci->pub, BCMA_CORE_ARM_CR4); ci 709 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->pub.ramsize = brcmf_chip_tcm_ramsize(mem_core); ci 710 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->pub.rambase = brcmf_chip_tcm_rambase(ci); ci 711 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c if (!ci->pub.rambase) { ci 716 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c mem = brcmf_chip_get_core(&ci->pub, BCMA_CORE_SYS_MEM); ci 720 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->pub.ramsize = brcmf_chip_sysmem_ramsize(mem_core); ci 721 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->pub.rambase = brcmf_chip_tcm_rambase(ci); ci 722 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c if (!ci->pub.rambase) { ci 727 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c mem = brcmf_chip_get_core(&ci->pub, ci 735 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c brcmf_chip_socram_ramsize(mem_core, &ci->pub.ramsize, ci 736 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c &ci->pub.srsize); ci 740 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->pub.rambase, ci->pub.ramsize, ci->pub.ramsize, ci 741 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->pub.srsize, ci->pub.srsize); ci 743 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c if (!ci->pub.ramsize) { ci 748 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c if (ci->pub.ramsize > BRCMF_CHIP_MAX_MEMSIZE) { ci 756 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static u32 brcmf_chip_dmp_get_desc(struct brcmf_chip_priv *ci, u32 *eromaddr, ci 762 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = ci->ops->read32(ci->ctx, *eromaddr); ci 776 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static int brcmf_chip_dmp_get_regaddr(struct brcmf_chip_priv *ci, u32 *eromaddr, ci 787 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = brcmf_chip_dmp_get_desc(ci, eromaddr, &desc); ci 803 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = brcmf_chip_dmp_get_desc(ci, eromaddr, &desc); ci 820 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c brcmf_chip_dmp_get_desc(ci, eromaddr, NULL); ci 826 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c szdesc = brcmf_chip_dmp_get_desc(ci, eromaddr, NULL); ci 829 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c brcmf_chip_dmp_get_desc(ci, eromaddr, NULL); ci 850 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c int brcmf_chip_dmp_erom_scan(struct brcmf_chip_priv *ci) ci 861 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c eromaddr = ci->ops->read32(ci->ctx, CORE_CC_REG(SI_ENUM_BASE, eromptr)); ci 864 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = brcmf_chip_dmp_get_desc(ci, &eromaddr, &desc_type); ci 878 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c val = brcmf_chip_dmp_get_desc(ci, &eromaddr, &desc_type); ci 896 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c err = brcmf_chip_dmp_get_regaddr(ci, &eromaddr, &base, &wrap); ci 901 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c core = brcmf_chip_add_core(ci, id, base, wrap); ci 911 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static int brcmf_chip_recognition(struct brcmf_chip_priv *ci) ci 923 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c regdata = ci->ops->read32(ci->ctx, CORE_CC_REG(SI_ENUM_BASE, chipid)); ci 924 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->pub.chip = regdata & CID_ID_MASK; ci 925 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->pub.chiprev = (regdata & CID_REV_MASK) >> CID_REV_SHIFT; ci 928 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c brcmf_chip_name(ci->pub.chip, ci->pub.chiprev, ci 929 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->pub.name, sizeof(ci->pub.name)); ci 931 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c socitype == SOCI_SB ? "SB" : "AXI", ci->pub.name); ci 934 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c if (ci->pub.chip != BRCM_CC_4329_CHIP_ID) { ci 938 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->iscoreup = brcmf_chip_sb_iscoreup; ci 939 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->coredisable = brcmf_chip_sb_coredisable; ci 940 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->resetcore = brcmf_chip_sb_resetcore; ci 942 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c core = brcmf_chip_add_core(ci, BCMA_CORE_CHIPCOMMON, ci 944 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c brcmf_chip_sb_corerev(ci, core); ci 945 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c core = brcmf_chip_add_core(ci, BCMA_CORE_SDIO_DEV, ci 947 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c brcmf_chip_sb_corerev(ci, core); ci 948 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c core = brcmf_chip_add_core(ci, BCMA_CORE_INTERNAL_MEM, ci 950 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c brcmf_chip_sb_corerev(ci, core); ci 951 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c core = brcmf_chip_add_core(ci, BCMA_CORE_ARM_CM3, ci 953 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c brcmf_chip_sb_corerev(ci, core); ci 955 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c core = brcmf_chip_add_core(ci, BCMA_CORE_80211, 0x18001000, 0); ci 956 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c brcmf_chip_sb_corerev(ci, core); ci 958 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->iscoreup = brcmf_chip_ai_iscoreup; ci 959 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->coredisable = brcmf_chip_ai_coredisable; ci 960 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->resetcore = brcmf_chip_ai_resetcore; ci 962 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c brcmf_chip_dmp_erom_scan(ci); ci 969 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ret = brcmf_chip_cores_check(ci); ci 974 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c brcmf_chip_set_passive(&ci->pub); ci 979 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c if (ci->ops->reset) { ci 980 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c ci->ops->reset(ci->ctx, &ci->pub); ci 981 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c brcmf_chip_set_passive(&ci->pub); ci 984 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c return brcmf_chip_get_raminfo(&ci->pub); ci 83 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.h void brcmf_chip_set_passive(struct brcmf_chip *ci); ci 84 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.h bool brcmf_chip_set_active(struct brcmf_chip *ci, u32 rstvec); ci 257 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_chip *ci; ci 431 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void __iomem *addr = devinfo->tcm + devinfo->ci->rambase + mem_offset; ci 441 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void __iomem *addr = devinfo->tcm + devinfo->ci->rambase + mem_offset; ci 541 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c core = brcmf_chip_get_core(devinfo->ci, coreid); ci 578 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (!devinfo->ci) ci 599 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c core = brcmf_chip_get_core(devinfo->ci, BCMA_CORE_PCIE2); ci 633 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->ci->chip == BRCM_CC_43602_CHIP_ID) { ci 653 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->ci->chip == BRCM_CC_43602_CHIP_ID) { ci 654 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c core = brcmf_chip_get_core(devinfo->ci, BCMA_CORE_INTERNAL_MEM); ci 658 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (!brcmf_chip_set_active(devinfo->ci, resetintr)) ci 694 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c core = brcmf_chip_get_core(devinfo->ci, BCMA_CORE_PCIE2); ci 1387 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c return devinfo->ci->ramsize - devinfo->ci->srsize; ci 1397 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_dbg(PCIE, "dump at 0x%08X: len=%zu\n", devinfo->ci->rambase, len); ci 1398 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_copy_dev_tomem(devinfo, devinfo->ci->rambase, data, len); ci 1487 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci->ramsize = newsize; ci 1564 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_copy_mem_todev(devinfo, devinfo->ci->rambase, ci 1573 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_ram32(devinfo, devinfo->ci->ramsize - 4, 0); ci 1577 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c address = devinfo->ci->rambase + devinfo->ci->ramsize - ci 1587 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci->ramsize - ci 1600 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci->ramsize - ci 1608 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (sharedram_addr < devinfo->ci->rambase || ci 1609 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c sharedram_addr >= devinfo->ci->rambase + devinfo->ci->ramsize) { ci 1718 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci = chip; ci 1775 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ret = brcmf_chip_get_raminfo(devinfo->ci); ci 1851 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c fwreq = brcmf_fw_alloc_request(devinfo->ci->chip, devinfo->ci->chiprev, ci 1887 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci = brcmf_chip_attach(devinfo, &brcmf_pcie_buscore_ops); ci 1888 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (IS_ERR(devinfo->ci)) { ci 1889 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ret = PTR_ERR(devinfo->ci); ci 1890 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci = NULL; ci 1902 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci->chip, ci 1903 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci->chiprev); ci 1955 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->ci) ci 1956 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_chip_detach(devinfo->ci); ci 1980 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->ci) ci 1997 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->ci) ci 1998 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_chip_detach(devinfo->ci); ci 2067 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_chip_detach(devinfo->ci); ci 2068 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci = NULL; ci 434 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_chip *ci; /* Chip info struct */ ci 685 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!on && bus->ci->chip == CY_CC_43012_CHIP_ID) ci 1005 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c shaddr = bus->ci->rambase + bus->ci->ramsize - 4; ci 1006 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->ci->rambase && brcmf_chip_sr_capable(bus->ci)) ci 1007 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c shaddr -= bus->ci->srsize; ci 2421 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static bool brcmf_chip_is_ulp(struct brcmf_chip *ci) ci 2423 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (ci->chip == CY_CC_43012_CHIP_ID) ci 2465 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bpreq |= brcmf_chip_is_ulp(bus->ci) ? ci 3308 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c err = brcmf_sdiod_ramrw(bus->sdiodev, true, bus->ci->rambase, ci 3312 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c err, (int)fw->size, bus->ci->rambase); ci 3313 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c else if (!brcmf_sdio_verifymemory(bus->sdiodev, bus->ci->rambase, ci 3328 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c address = bus->ci->ramsize - varsz + bus->ci->rambase; ci 3368 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!brcmf_chip_set_active(bus->ci, rstvec)) { ci 3381 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->ci->chip == CY_CC_43012_CHIP_ID) ci 3397 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (brcmf_chip_is_ulp(bus->ci)) { ci 3547 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c return bus->ci->ramsize - bus->ci->srsize; ci 3561 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_dbg(INFO, "dump at 0x%08x: size=%zu\n", bus->ci->rambase, ci 3564 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c address = bus->ci->rambase; ci 3723 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_chip *ci, u32 drivestrength) ci 3733 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!(ci->cc_caps & CC_CAP_PMU)) ci 3736 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c switch (SDIOD_DRVSTR_KEY(ci->chip, ci->pmurev)) { ci 3756 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ci->name, drivestrength); ci 3765 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ci->name, ci->chiprev, ci->pmurev); ci 3770 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_core *pmu = brcmf_chip_get_pmu(ci); ci 3927 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ci = brcmf_chip_attach(sdiodev, &brcmf_sdio_buscore_ops); ci 3928 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (IS_ERR(bus->ci)) { ci 3930 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ci = NULL; ci 3935 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdio_core = brcmf_chip_get_core(bus->ci, BCMA_CORE_SDIO_DEV); ci 3940 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdiodev->cc_core = brcmf_chip_get_core(bus->ci, BCMA_CORE_CHIPCOMMON); ci 3946 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ci->chip, ci 3947 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ci->chiprev); ci 3987 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_drivestrengthinit(sdiodev, bus->ci, drivestrength); ci 4001 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c reg_addr = CORE_CC_REG(brcmf_chip_get_pmu(bus->ci)->base, pmucontrol); ci 4160 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bpreq |= brcmf_chip_is_ulp(bus->ci) ? ci 4222 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (brcmf_chip_sr_capable(bus->ci)) { ci 4234 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdiod->bus_if->chip = bus->ci->chip; ci 4235 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdiod->bus_if->chiprev = bus->ci->chiprev; ci 4292 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c fwreq = brcmf_fw_alloc_request(bus->ci->chip, bus->ci->chiprev, ci 4437 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->ci) { ci 4447 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_chip_set_passive(bus->ci); ci 4451 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_chip_detach(bus->ci); ci 1664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c const struct chan_info_2064_lcnphy *ci; ci 1675 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c ci = &chan_info_2064_lcnphy[0]; ci 1697 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c ci = &chan_info_2064_lcnphy[i]; ci 1700 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG02A, ci->logen_buftune); ci 1702 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG030, 0x3, ci->logen_rccr_tx); ci 1704 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG091, 0x3, ci->txrf_mix_tune_ctrl); ci 1706 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG038, 0xf, ci->pa_input_tune_g); ci 1709 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (ci->logen_rccr_rx) << 2); ci 1711 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG05E, 0xf, ci->pa_rxrf_lna1_freq_tune); ci 1714 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (ci->pa_rxrf_lna2_freq_tune) << 4); ci 1716 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG06C, ci->rxrf_rxrf_spare1); ci 1738 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c fvco3 = (ci->freq * 3); ci 1756 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c setCount = f16 * 3 * (ci->freq) / 32 - 1; ci 20424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c const struct chan_info_nphy_2055 *ci) ci 20427 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PLL_REF, ci->RF_pll_ref); ci 20428 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_RF_PLL_MOD0, ci->RF_rf_pll_mod0); ci 20429 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_RF_PLL_MOD1, ci->RF_rf_pll_mod1); ci 20430 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_VCO_CAP_TAIL, ci->RF_vco_cap_tail); ci 20434 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_VCO_CAL1, ci->RF_vco_cal1); ci 20435 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_VCO_CAL2, ci->RF_vco_cal2); ci 20436 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PLL_LF_C1, ci->RF_pll_lf_c1); ci 20437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PLL_LF_R1, ci->RF_pll_lf_r1); ci 20441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PLL_LF_C2, ci->RF_pll_lf_c2); ci 20442 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_LGBUF_CEN_BUF, ci->RF_lgbuf_cen_buf); ci 20443 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_LGEN_TUNE1, ci->RF_lgen_tune1); ci 20444 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_LGEN_TUNE2, ci->RF_lgen_tune2); ci 20449 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_core1_lgbuf_a_tune); ci 20451 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_core1_lgbuf_g_tune); ci 20452 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_RXRF_REG1, ci->RF_core1_rxrf_reg1); ci 20454 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_core1_tx_pga_pad_tn); ci 20459 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_core1_tx_mx_bgtrim); ci 20461 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_core2_lgbuf_a_tune); ci 20463 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_core2_lgbuf_g_tune); ci 20464 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_RXRF_REG1, ci->RF_core2_rxrf_reg1); ci 20469 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_core2_tx_pga_pad_tn); ci 20471 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_core2_tx_mx_bgtrim); ci 20487 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c const struct chan_info_nphy_radio205x *ci) ci 20493 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_pll_vcocal1); ci 20495 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_pll_vcocal2); ci 20497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_pll_refdiv); ci 20499 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_pll_mmd2); ci 20501 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_pll_mmd1); ci 20503 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_pll_loopfilter1); ci 20505 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_pll_loopfilter2); ci 20507 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_pll_loopfilter3); ci 20509 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_pll_loopfilter4); ci 20511 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_pll_loopfilter5); ci 20513 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_reserved_addr27); ci 20515 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_reserved_addr28); ci 20517 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_reserved_addr29); ci 20519 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_logen_VCOBUF1); ci 20521 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_logen_MIXER2); ci 20523 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_logen_BUF3); ci 20525 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_SYN_logen_BUF4); ci 20529 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_RX0_lnaa_tune); ci 20531 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_RX0_lnag_tune); ci 20533 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX0_intpaa_boost_tune); ci 20535 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX0_intpag_boost_tune); ci 20537 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX0_pada_boost_tune); ci 20539 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX0_padg_boost_tune); ci 20541 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX0_pgaa_boost_tune); ci 20543 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX0_pgag_boost_tune); ci 20545 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX0_mixa_boost_tune); ci 20547 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX0_mixg_boost_tune); ci 20551 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_RX1_lnaa_tune); ci 20553 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_RX1_lnag_tune); ci 20555 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX1_intpaa_boost_tune); ci 20557 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX1_intpag_boost_tune); ci 20559 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX1_pada_boost_tune); ci 20561 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX1_padg_boost_tune); ci 20563 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX1_pgaa_boost_tune); ci 20565 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX1_pgag_boost_tune); ci 20567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX1_mixa_boost_tune); ci 20569 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_TX1_mixg_boost_tune); ci 20838 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c const struct chan_info_nphy_radio2057 *ci, ci 20895 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_vcocal_countval0); ci 20897 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_vcocal_countval1); ci 20899 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_rfpll_refmaster_sparextalsize); ci 20901 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_rfpll_loopfilter_r1); ci 20903 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_rfpll_loopfilter_c2); ci 20905 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_rfpll_loopfilter_c1); ci 20906 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_CP_KPD_IDAC, ci->RF_cp_kpd_idac); ci 20907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_MMD0, ci->RF_rfpll_mmd0); ci 20908 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_MMD1, ci->RF_rfpll_mmd1); ci 20909 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_VCOBUF_TUNE, ci->RF_vcobuf_tune); ci 20912 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_logen_mx2g_tune); ci 20914 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_logen_mx5g_tune); ci 20916 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_logen_indbuf2g_tune); ci 20918 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_logen_indbuf5g_tune); ci 20922 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_txmix2g_tune_boost_pu_core0); ci 20925 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_pad2g_tune_pus_core0); ci 20927 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_pga_boost_tune_core0); ci 20929 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_txmix5g_boost_tune_core0); ci 20931 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_pad5g_tune_misc_pus_core0); ci 20933 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_lna2g_tune_core0); ci 20935 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_lna5g_tune_core0); ci 20939 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_txmix2g_tune_boost_pu_core1); ci 20942 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_pad2g_tune_pus_core1); ci 20944 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_pga_boost_tune_core1); ci 20946 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_txmix5g_boost_tune_core1); ci 20948 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_pad5g_tune_misc_pus_core1); ci 20950 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_lna2g_tune_core1); ci 20952 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ci->RF_lna5g_tune_core1); ci 21034 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c const struct nphy_sfo_cfg *ci) ci 21065 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ce, ci->PHY_BW1a); ci 21066 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1cf, ci->PHY_BW2); ci 21067 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1d0, ci->PHY_BW3); ci 21069 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1d1, ci->PHY_BW4); ci 21070 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1d2, ci->PHY_BW5); ci 21071 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1d3, ci->PHY_BW6); ci 191 drivers/net/wireless/intel/iwlwifi/fw/api/phy-ctxt.h struct iwl_fw_channel_info ci; ci 140 drivers/net/wireless/intel/iwlwifi/fw/api/tdls.h struct iwl_fw_channel_info ci; ci 2088 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h struct iwl_fw_channel_info *ci) ci 2090 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h return (u8 *)ci + (iwl_mvm_has_ultra_hb_channel(mvm) ? ci 2103 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h struct iwl_fw_channel_info *ci, ci 2108 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h ci->channel = cpu_to_le32(chan); ci 2109 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h ci->band = band; ci 2110 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h ci->width = width; ci 2111 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h ci->ctrl_pos = ctrl_pos; ci 2114 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h (struct iwl_fw_channel_info_v1 *)ci; ci 2125 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h struct iwl_fw_channel_info *ci, ci 2128 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h iwl_mvm_set_chan_info(mvm, ci, chandef->chan->hw_value, ci 148 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c iwl_mvm_chan_info_cmd_tail(mvm, &cmd->ci); ci 151 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c iwl_mvm_set_chan_info_chandef(mvm, &cmd->ci, chandef); ci 393 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c iwl_mvm_chan_info_cmd_tail(mvm, &cmd.ci); ci 445 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c iwl_mvm_set_chan_info_chandef(mvm, &cmd.ci, chandef); ci 560 drivers/parisc/ccio-dma.c register unsigned long ci; /* coherent index */ ci 584 drivers/parisc/ccio-dma.c asm volatile ("extrd,u %1,15,4,%0" : "=r" (ci) : "r" (pa)); ci 586 drivers/parisc/ccio-dma.c asm volatile ("depd %1,35,4,%0" : "+r" (pa) : "r" (ci)); ci 595 drivers/parisc/ccio-dma.c asm volatile ("lci %%r0(%1), %0" : "=r" (ci) : "r" (vba)); ci 596 drivers/parisc/ccio-dma.c asm volatile ("extru %1,19,12,%0" : "+r" (ci) : "r" (ci)); ci 597 drivers/parisc/ccio-dma.c asm volatile ("depw %1,15,12,%0" : "+r" (pa) : "r" (ci)); ci 570 drivers/parisc/sba_iommu.c register unsigned ci; /* coherent index */ ci 575 drivers/parisc/sba_iommu.c asm("lci 0(%1), %0" : "=r" (ci) : "r" (vba)); ci 576 drivers/parisc/sba_iommu.c pa |= (ci >> PAGE_SHIFT) & 0xff; /* move CI (8 bits) into lowest byte */ ci 646 drivers/s390/cio/chsc_sch.c struct chsc_conf_info *ci; ci 666 drivers/s390/cio/chsc_sch.c ci = kzalloc(sizeof(*ci), GFP_KERNEL); ci 667 drivers/s390/cio/chsc_sch.c if (!ci) { ci 671 drivers/s390/cio/chsc_sch.c if (copy_from_user(ci, user_ci, sizeof(*ci))) { ci 677 drivers/s390/cio/chsc_sch.c sci_area->m = ci->id.m; ci 678 drivers/s390/cio/chsc_sch.c sci_area->fmt1 = ci->fmt; ci 679 drivers/s390/cio/chsc_sch.c sci_area->cssid = ci->id.cssid; ci 680 drivers/s390/cio/chsc_sch.c sci_area->ssid = ci->id.ssid; ci 693 drivers/s390/cio/chsc_sch.c memcpy(&ci->scid, &sci_area->response, sci_area->response.length); ci 694 drivers/s390/cio/chsc_sch.c if (copy_to_user(user_ci, ci, sizeof(*ci))) ci 699 drivers/s390/cio/chsc_sch.c kfree(ci); ci 1413 drivers/s390/crypto/zcrypt_ccamisc.c static int cca_info_cache_fetch(u16 cardnr, u16 domain, struct cca_info *ci) ci 1421 drivers/s390/crypto/zcrypt_ccamisc.c memcpy(ci, &ptr->info, sizeof(*ci)); ci 1432 drivers/s390/crypto/zcrypt_ccamisc.c const struct cca_info *ci) ci 1441 drivers/s390/crypto/zcrypt_ccamisc.c memcpy(&ptr->info, ci, sizeof(*ci)); ci 1454 drivers/s390/crypto/zcrypt_ccamisc.c memcpy(&ptr->info, ci, sizeof(*ci)); ci 1491 drivers/s390/crypto/zcrypt_ccamisc.c static int fetch_cca_info(u16 cardnr, u16 domain, struct cca_info *ci) ci 1498 drivers/s390/crypto/zcrypt_ccamisc.c memset(ci, 0, sizeof(*ci)); ci 1504 drivers/s390/crypto/zcrypt_ccamisc.c ci->hwtype = devstat.hwtype; ci 1518 drivers/s390/crypto/zcrypt_ccamisc.c memcpy(ci->serial, rarray, 8); ci 1519 drivers/s390/crypto/zcrypt_ccamisc.c ci->new_mk_state = (char) rarray[7*8]; ci 1520 drivers/s390/crypto/zcrypt_ccamisc.c ci->cur_mk_state = (char) rarray[8*8]; ci 1521 drivers/s390/crypto/zcrypt_ccamisc.c ci->old_mk_state = (char) rarray[9*8]; ci 1522 drivers/s390/crypto/zcrypt_ccamisc.c if (ci->old_mk_state == '2') ci 1523 drivers/s390/crypto/zcrypt_ccamisc.c memcpy(&ci->old_mkvp, varray + 172, 8); ci 1524 drivers/s390/crypto/zcrypt_ccamisc.c if (ci->cur_mk_state == '2') ci 1525 drivers/s390/crypto/zcrypt_ccamisc.c memcpy(&ci->cur_mkvp, varray + 184, 8); ci 1526 drivers/s390/crypto/zcrypt_ccamisc.c if (ci->new_mk_state == '3') ci 1527 drivers/s390/crypto/zcrypt_ccamisc.c memcpy(&ci->new_mkvp, varray + 196, 8); ci 1539 drivers/s390/crypto/zcrypt_ccamisc.c int cca_get_info(u16 card, u16 dom, struct cca_info *ci, int verify) ci 1543 drivers/s390/crypto/zcrypt_ccamisc.c rc = cca_info_cache_fetch(card, dom, ci); ci 1545 drivers/s390/crypto/zcrypt_ccamisc.c rc = fetch_cca_info(card, dom, ci); ci 1547 drivers/s390/crypto/zcrypt_ccamisc.c cca_info_cache_update(card, dom, ci); ci 1563 drivers/s390/crypto/zcrypt_ccamisc.c struct cca_info ci; ci 1585 drivers/s390/crypto/zcrypt_ccamisc.c if (cca_info_cache_fetch(card, dom, &ci) == 0 && ci 1586 drivers/s390/crypto/zcrypt_ccamisc.c ci.hwtype >= minhwtype && ci 1587 drivers/s390/crypto/zcrypt_ccamisc.c ci.cur_mk_state == '2' && ci 1588 drivers/s390/crypto/zcrypt_ccamisc.c ci.cur_mkvp == mkvp) { ci 1592 drivers/s390/crypto/zcrypt_ccamisc.c if (fetch_cca_info(card, dom, &ci) == 0) { ci 1593 drivers/s390/crypto/zcrypt_ccamisc.c cca_info_cache_update(card, dom, &ci); ci 1594 drivers/s390/crypto/zcrypt_ccamisc.c if (ci.hwtype >= minhwtype && ci 1595 drivers/s390/crypto/zcrypt_ccamisc.c ci.cur_mk_state == '2' && ci 1596 drivers/s390/crypto/zcrypt_ccamisc.c ci.cur_mkvp == mkvp) ci 1615 drivers/s390/crypto/zcrypt_ccamisc.c if (fetch_cca_info(card, dom, &ci) == 0) { ci 1616 drivers/s390/crypto/zcrypt_ccamisc.c cca_info_cache_update(card, dom, &ci); ci 1617 drivers/s390/crypto/zcrypt_ccamisc.c if (ci.hwtype >= minhwtype && ci 1618 drivers/s390/crypto/zcrypt_ccamisc.c ci.cur_mk_state == '2' && ci 1619 drivers/s390/crypto/zcrypt_ccamisc.c ci.cur_mkvp == mkvp) ci 1621 drivers/s390/crypto/zcrypt_ccamisc.c if (ci.hwtype >= minhwtype && ci 1622 drivers/s390/crypto/zcrypt_ccamisc.c ci.old_mk_state == '2' && ci 1623 drivers/s390/crypto/zcrypt_ccamisc.c ci.old_mkvp == mkvp && ci 1681 drivers/s390/crypto/zcrypt_ccamisc.c struct cca_info ci; ci 1714 drivers/s390/crypto/zcrypt_ccamisc.c if (cca_get_info(card, dom, &ci, verify)) ci 1717 drivers/s390/crypto/zcrypt_ccamisc.c if (ci.cur_mk_state != '2') ci 1720 drivers/s390/crypto/zcrypt_ccamisc.c if (minhwtype > 0 && minhwtype > ci.hwtype) ci 1725 drivers/s390/crypto/zcrypt_ccamisc.c if (cur_mkvp && cur_mkvp == ci.cur_mkvp) ci 1727 drivers/s390/crypto/zcrypt_ccamisc.c if (old_mkvp && ci.old_mk_state == '2' && ci 1728 drivers/s390/crypto/zcrypt_ccamisc.c old_mkvp == ci.old_mkvp) ci 213 drivers/s390/crypto/zcrypt_ccamisc.h int cca_get_info(u16 card, u16 dom, struct cca_info *ci, int verify); ci 80 drivers/s390/crypto/zcrypt_cex4.c struct cca_info ci; ci 84 drivers/s390/crypto/zcrypt_cex4.c memset(&ci, 0, sizeof(ci)); ci 87 drivers/s390/crypto/zcrypt_cex4.c cca_get_info(ac->id, ap_domain_index, &ci, zc->online); ci 89 drivers/s390/crypto/zcrypt_cex4.c return snprintf(buf, PAGE_SIZE, "%s\n", ci.serial); ci 110 drivers/s390/crypto/zcrypt_cex4.c struct cca_info ci; ci 115 drivers/s390/crypto/zcrypt_cex4.c memset(&ci, 0, sizeof(ci)); ci 119 drivers/s390/crypto/zcrypt_cex4.c &ci, zq->online); ci 121 drivers/s390/crypto/zcrypt_cex4.c if (ci.new_mk_state >= '1' && ci.new_mk_state <= '3') ci 123 drivers/s390/crypto/zcrypt_cex4.c new_state[ci.new_mk_state - '1'], ci.new_mkvp); ci 127 drivers/s390/crypto/zcrypt_cex4.c if (ci.cur_mk_state >= '1' && ci.cur_mk_state <= '2') ci 129 drivers/s390/crypto/zcrypt_cex4.c cao_state[ci.cur_mk_state - '1'], ci.cur_mkvp); ci 133 drivers/s390/crypto/zcrypt_cex4.c if (ci.old_mk_state >= '1' && ci.old_mk_state <= '2') ci 135 drivers/s390/crypto/zcrypt_cex4.c cao_state[ci.old_mk_state - '1'], ci.old_mkvp); ci 1487 drivers/scsi/be2iscsi/be_main.c u16 cid, code, ci, cri; ci 1504 drivers/scsi/be2iscsi/be_main.c ci = AMAP_GET_BITS(struct amap_i_t_dpdu_cqe, ci 1511 drivers/scsi/be2iscsi/be_main.c ci = AMAP_GET_BITS(struct amap_i_t_dpdu_cqe_v2, ci 1530 drivers/scsi/be2iscsi/be_main.c pasync_handle = pasync_ctx->async_entry[ci].header; ci 1537 drivers/scsi/be2iscsi/be_main.c pasync_handle = pasync_ctx->async_entry[ci].data; ci 1545 drivers/scsi/be2iscsi/be_main.c pasync_handle->index != ci) { ci 1553 drivers/scsi/be2iscsi/be_main.c phys_addr.u.a64.address, ci); ci 1569 drivers/scsi/be2iscsi/be_main.c cid, code, ci, phys_addr.u.a64.address); ci 179 drivers/scsi/bfa/bfa.h void (*hw_rspq_ack)(struct bfa_s *bfa, int rspq, u32 ci); ci 313 drivers/scsi/bfa/bfa.h void bfa_hwcb_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci); ci 326 drivers/scsi/bfa/bfa.h void bfa_hwct_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci); ci 327 drivers/scsi/bfa/bfa.h void bfa_hwct2_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci); ci 715 drivers/scsi/bfa/bfa_core.c u32 pi, ci; ci 719 drivers/scsi/bfa/bfa_core.c ci = bfa_rspq_ci(bfa, qid); ci 722 drivers/scsi/bfa/bfa_core.c ret = (ci != pi); ci 724 drivers/scsi/bfa/bfa_core.c while (ci != pi) { ci 725 drivers/scsi/bfa/bfa_core.c m = bfa_rspq_elem(bfa, qid, ci); ci 729 drivers/scsi/bfa/bfa_core.c CQ_INCR(ci, bfa->iocfc.cfg.drvcfg.num_rspq_elems); ci 735 drivers/scsi/bfa/bfa_core.c bfa_isr_rspq_ack(bfa, qid, ci); ci 46 drivers/scsi/bfa/bfa_hw_cb.c bfa_hwcb_rspq_ack_msix(struct bfa_s *bfa, int rspq, u32 ci) ci 51 drivers/scsi/bfa/bfa_hw_cb.c if (bfa_rspq_ci(bfa, rspq) == ci) ci 54 drivers/scsi/bfa/bfa_hw_cb.c bfa_rspq_ci(bfa, rspq) = ci; ci 55 drivers/scsi/bfa/bfa_hw_cb.c writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); ci 59 drivers/scsi/bfa/bfa_hw_cb.c bfa_hwcb_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci) ci 61 drivers/scsi/bfa/bfa_hw_cb.c if (bfa_rspq_ci(bfa, rspq) == ci) ci 64 drivers/scsi/bfa/bfa_hw_cb.c bfa_rspq_ci(bfa, rspq) = ci; ci 65 drivers/scsi/bfa/bfa_hw_cb.c writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); ci 67 drivers/scsi/bfa/bfa_hw_ct.c bfa_hwct_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci) ci 74 drivers/scsi/bfa/bfa_hw_ct.c bfa_rspq_ci(bfa, rspq) = ci; ci 75 drivers/scsi/bfa/bfa_hw_ct.c writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); ci 84 drivers/scsi/bfa/bfa_hw_ct.c bfa_hwct2_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci) ci 86 drivers/scsi/bfa/bfa_hw_ct.c bfa_rspq_ci(bfa, rspq) = ci; ci 87 drivers/scsi/bfa/bfa_hw_ct.c writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); ci 538 drivers/scsi/bfa/bfi.h #define BFI_MSGQ_FULL(_q) (((_q->pi + 1) % _q->q_depth) == _q->ci) ci 539 drivers/scsi/bfa/bfi.h #define BFI_MSGQ_EMPTY(_q) (_q->pi == _q->ci) ci 540 drivers/scsi/bfa/bfi.h #define BFI_MSGQ_UPDATE_CI(_q) (_q->ci = (_q->ci + 1) % _q->q_depth) ci 544 drivers/scsi/bfa/bfi.h #define BFI_MSGQ_FREE_CNT(_q) ((_q->ci - _q->pi - 1) & (_q->q_depth - 1)) ci 1172 drivers/scsi/esas2r/esas2r_init.c struct atto_vda_cfg_init *ci; ci 1186 drivers/scsi/esas2r/esas2r_init.c ci = (struct atto_vda_cfg_init *)&rq->vrq->cfg.data.init; ci 1187 drivers/scsi/esas2r/esas2r_init.c ci->sgl_page_size = cpu_to_le32(sgl_page_size); ci 1189 drivers/scsi/esas2r/esas2r_init.c ci->epoch_time = cpu_to_le32(ktime_get_real_seconds()); ci 1243 drivers/scsi/esas2r/esas2r_init.c ci = (struct atto_vda_cfg_init *)rq->data_buf; ci 1246 drivers/scsi/esas2r/esas2r_init.c le32_to_cpu(ci->num_targets_backend); ci 1248 drivers/scsi/esas2r/esas2r_init.c le32_to_cpu(ci->ioctl_tunnel); ci 342 drivers/scsi/esas2r/esas2r_ioctl.c union atto_ioctl_csmi *ci, ci 363 drivers/scsi/esas2r/esas2r_ioctl.c rq->aux_req_cx = ci; ci 394 drivers/scsi/esas2r/esas2r_ioctl.c struct atto_csmi *ci = (struct atto_csmi *)context; ci 404 drivers/scsi/esas2r/esas2r_ioctl.c if (ci->control_code == CSMI_CC_GET_DEV_ADDR) { ci 405 drivers/scsi/esas2r/esas2r_ioctl.c struct atto_csmi_get_dev_addr *gda = &ci->data.dev_addr; ci 410 drivers/scsi/esas2r/esas2r_ioctl.c } else if (ci->control_code == CSMI_CC_TASK_MGT) { ci 411 drivers/scsi/esas2r/esas2r_ioctl.c struct atto_csmi_task_mgmt *tm = &ci->data.tsk_mgt; ci 427 drivers/scsi/esas2r/esas2r_ioctl.c switch (ci->control_code) { ci 515 drivers/scsi/esas2r/esas2r_ioctl.c ci->control_code, ci 586 drivers/scsi/esas2r/esas2r_ioctl.c ci->control_code, ci 609 drivers/scsi/esas2r/esas2r_ioctl.c struct atto_csmi *ci = (struct atto_csmi *)context; ci 613 drivers/scsi/esas2r/esas2r_ioctl.c switch (ci->control_code) { ci 642 drivers/scsi/esas2r/esas2r_ioctl.c ci->status = le32_to_cpu(rq->func_rsp.ioctl_rsp.csmi.csmi_status); ci 646 drivers/scsi/esas2r/esas2r_ioctl.c static u8 handle_csmi_ioctl(struct esas2r_adapter *a, struct atto_csmi *ci) ci 653 drivers/scsi/esas2r/esas2r_ioctl.c bi.ioctl = &ci->data; ci 657 drivers/scsi/esas2r/esas2r_ioctl.c bi.context = ci; ci 659 drivers/scsi/esas2r/esas2r_ioctl.c bi.done_context = ci; ci 1424 drivers/scsi/esas2r/esas2r_main.c struct atto_vda_cfg_init *ci; ci 1431 drivers/scsi/esas2r/esas2r_main.c ci = (struct atto_vda_cfg_init *)data; ci 1433 drivers/scsi/esas2r/esas2r_main.c ci->date_time.year = le16_to_cpu(ci->date_time.year); ci 1434 drivers/scsi/esas2r/esas2r_main.c ci->sgl_page_size = le32_to_cpu(ci->sgl_page_size); ci 1435 drivers/scsi/esas2r/esas2r_main.c ci->vda_version = le32_to_cpu(ci->vda_version); ci 1436 drivers/scsi/esas2r/esas2r_main.c ci->epoch_time = le32_to_cpu(ci->epoch_time); ci 1437 drivers/scsi/esas2r/esas2r_main.c ci->ioctl_tunnel = le32_to_cpu(ci->ioctl_tunnel); ci 1438 drivers/scsi/esas2r/esas2r_main.c ci->num_targets_backend = le32_to_cpu(ci->num_targets_backend); ci 2292 drivers/scsi/lpfc/lpfc_hw.h uint32_t ci:1; ci 2302 drivers/scsi/lpfc/lpfc_hw.h uint32_t ci:1; ci 2413 drivers/scsi/lpfc/lpfc_hw.h uint32_t ci:1; ci 2423 drivers/scsi/lpfc/lpfc_hw.h uint32_t ci:1; ci 367 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.ci = 1; ci 4494 drivers/scsi/megaraid/megaraid_sas_base.c struct MR_PD_LIST *ci; ci 4503 drivers/scsi/megaraid/megaraid_sas_base.c ci = instance->pd_list_buf; ci 4514 drivers/scsi/megaraid/megaraid_sas_base.c memset(ci, 0, sizeof(*ci)); ci 4575 drivers/scsi/megaraid/megaraid_sas_base.c pd_addr = ci->addr; ci 4578 drivers/scsi/megaraid/megaraid_sas_base.c __func__, le32_to_cpu(ci->count)); ci 4580 drivers/scsi/megaraid/megaraid_sas_base.c if ((le32_to_cpu(ci->count) > ci 4587 drivers/scsi/megaraid/megaraid_sas_base.c for (pd_index = 0; pd_index < le32_to_cpu(ci->count); pd_index++) { ci 4629 drivers/scsi/megaraid/megaraid_sas_base.c struct MR_LD_LIST *ci; ci 4633 drivers/scsi/megaraid/megaraid_sas_base.c ci = instance->ld_list_buf; ci 4645 drivers/scsi/megaraid/megaraid_sas_base.c memset(ci, 0, sizeof(*ci)); ci 4669 drivers/scsi/megaraid/megaraid_sas_base.c ld_count = le32_to_cpu(ci->ldCount); ci 4712 drivers/scsi/megaraid/megaraid_sas_base.c if (ci->ldList[ld_index].state != 0) { ci 4713 drivers/scsi/megaraid/megaraid_sas_base.c ids = ci->ldList[ld_index].ref.targetId; ci 4714 drivers/scsi/megaraid/megaraid_sas_base.c instance->ld_ids[ids] = ci->ldList[ld_index].ref.targetId; ci 4746 drivers/scsi/megaraid/megaraid_sas_base.c struct MR_LD_TARGETID_LIST *ci; ci 4750 drivers/scsi/megaraid/megaraid_sas_base.c ci = instance->ld_targetid_list_buf; ci 4763 drivers/scsi/megaraid/megaraid_sas_base.c memset(ci, 0, sizeof(*ci)); ci 4820 drivers/scsi/megaraid/megaraid_sas_base.c tgtid_count = le32_to_cpu(ci->count); ci 4831 drivers/scsi/megaraid/megaraid_sas_base.c ids = ci->targetId[ld_index]; ci 4832 drivers/scsi/megaraid/megaraid_sas_base.c instance->ld_ids[ids] = ci->targetId[ld_index]; ci 4835 drivers/scsi/megaraid/megaraid_sas_base.c ld_index, ci->targetId[ld_index]); ci 4867 drivers/scsi/megaraid/megaraid_sas_base.c struct MR_HOST_DEVICE_LIST *ci; ci 4871 drivers/scsi/megaraid/megaraid_sas_base.c ci = instance->host_device_list_buf; ci 4885 drivers/scsi/megaraid/megaraid_sas_base.c memset(ci, 0, sizeof(*ci)); ci 4913 drivers/scsi/megaraid/megaraid_sas_base.c count = le32_to_cpu(ci->count); ci 4926 drivers/scsi/megaraid/megaraid_sas_base.c target_id = le16_to_cpu(ci->host_device_list[i].target_id); ci 4927 drivers/scsi/megaraid/megaraid_sas_base.c if (ci->host_device_list[i].flags.u.bits.is_sys_pd) { ci 4930 drivers/scsi/megaraid/megaraid_sas_base.c ci->host_device_list[i].scsi_type; ci 4936 drivers/scsi/megaraid/megaraid_sas_base.c i, target_id, ci->host_device_list[i].scsi_type); ci 5053 drivers/scsi/megaraid/megaraid_sas_base.c struct MR_SNAPDUMP_PROPERTIES *ci; ci 5056 drivers/scsi/megaraid/megaraid_sas_base.c ci = instance->snapdump_prop; ci 5059 drivers/scsi/megaraid/megaraid_sas_base.c if (!ci) ci 5071 drivers/scsi/megaraid/megaraid_sas_base.c memset(ci, 0, sizeof(*ci)); ci 5097 drivers/scsi/megaraid/megaraid_sas_base.c min_t(u8, ci->trigger_min_num_sec_before_ocr, ci 5138 drivers/scsi/megaraid/megaraid_sas_base.c struct megasas_ctrl_info *ci; ci 5141 drivers/scsi/megaraid/megaraid_sas_base.c ci = instance->ctrl_info_buf; ci 5153 drivers/scsi/megaraid/megaraid_sas_base.c memset(ci, 0, sizeof(*ci)); ci 5182 drivers/scsi/megaraid/megaraid_sas_base.c le32_to_cpus((u32 *)&ci->properties.OnOffProperties); ci 5183 drivers/scsi/megaraid/megaraid_sas_base.c le16_to_cpus((u16 *)&ci->properties.on_off_properties2); ci 5184 drivers/scsi/megaraid/megaraid_sas_base.c le32_to_cpus((u32 *)&ci->adapterOperations2); ci 5185 drivers/scsi/megaraid/megaraid_sas_base.c le32_to_cpus((u32 *)&ci->adapterOperations3); ci 5186 drivers/scsi/megaraid/megaraid_sas_base.c le16_to_cpus((u16 *)&ci->adapter_operations4); ci 5187 drivers/scsi/megaraid/megaraid_sas_base.c le32_to_cpus((u32 *)&ci->adapter_operations5); ci 5196 drivers/scsi/megaraid/megaraid_sas_base.c ci->adapterOperations3.useSeqNumJbodFP; ci 5198 drivers/scsi/megaraid/megaraid_sas_base.c ci->adapter_operations4.support_pd_map_target_id; ci 5200 drivers/scsi/megaraid/megaraid_sas_base.c ci->adapter_operations4.support_nvme_passthru; ci 5202 drivers/scsi/megaraid/megaraid_sas_base.c ci->adapter_operations5.support_pci_lane_margining; ci 5203 drivers/scsi/megaraid/megaraid_sas_base.c instance->task_abort_tmo = ci->TaskAbortTO; ci 5204 drivers/scsi/megaraid/megaraid_sas_base.c instance->max_reset_tmo = ci->MaxResetTO; ci 5207 drivers/scsi/megaraid/megaraid_sas_base.c instance->is_imr = (ci->memory_size ? 0 : 1); ci 5210 drivers/scsi/megaraid/megaraid_sas_base.c (ci->properties.on_off_properties2.enable_snap_dump ? ci 5214 drivers/scsi/megaraid/megaraid_sas_base.c ci->properties.on_off_properties2.enable_fw_dev_list; ci 5219 drivers/scsi/megaraid/megaraid_sas_base.c le16_to_cpu(ci->memory_size)); ci 5222 drivers/scsi/megaraid/megaraid_sas_base.c ci->properties.OnOffProperties.disableOnlineCtrlReset; ci 5224 drivers/scsi/megaraid/megaraid_sas_base.c ci->adapterOperations3.supportSecurityonJBOD; ci 1346 drivers/scsi/megaraid/megaraid_sas_fusion.c void *ci; ci 1369 drivers/scsi/megaraid/megaraid_sas_fusion.c ci = (void *) fusion->ld_map[(instance->map_id & 1)]; ci 1372 drivers/scsi/megaraid/megaraid_sas_fusion.c if (!ci) { ci 1378 drivers/scsi/megaraid/megaraid_sas_fusion.c memset(ci, 0, fusion->max_map_sz); ci 1436 drivers/scsi/megaraid/megaraid_sas_fusion.c struct MR_LD_TARGET_SYNC *ci = NULL; ci 1465 drivers/scsi/megaraid/megaraid_sas_fusion.c ci = (struct MR_LD_TARGET_SYNC *) ci 1467 drivers/scsi/megaraid/megaraid_sas_fusion.c memset(ci, 0, fusion->max_map_sz); ci 1471 drivers/scsi/megaraid/megaraid_sas_fusion.c ld_sync = (struct MR_LD_TARGET_SYNC *)ci; ci 2992 drivers/scsi/smartpqi/smartpqi_init.c unsigned int ci, unsigned int elements_in_queue) ci 2996 drivers/scsi/smartpqi/smartpqi_init.c if (pi >= ci) ci 2997 drivers/scsi/smartpqi/smartpqi_init.c num_elements_used = pi - ci; ci 2999 drivers/scsi/smartpqi/smartpqi_init.c num_elements_used = elements_in_queue - ci + pi; ci 1656 drivers/scsi/stex.c const struct st_card_info *ci = NULL; ci 1706 drivers/scsi/stex.c ci = &stex_card_info[hba->cardtype]; ci 1726 drivers/scsi/stex.c sts_offset = scratch_offset = (ci->rq_count+1) * ci->rq_size; ci 1728 drivers/scsi/stex.c sts_offset += (ci->sts_count+1) * sizeof(u32); ci 1729 drivers/scsi/stex.c cp_offset = sts_offset + (ci->sts_count+1) * sizeof(struct status_msg); ci 1759 drivers/scsi/stex.c hba->ccb = kcalloc(ci->rq_count, sizeof(struct st_ccb), GFP_KERNEL); ci 1771 drivers/scsi/stex.c hba->rq_count = ci->rq_count; ci 1772 drivers/scsi/stex.c hba->rq_size = ci->rq_size; ci 1773 drivers/scsi/stex.c hba->sts_count = ci->sts_count; ci 1774 drivers/scsi/stex.c hba->alloc_rq = ci->alloc_rq; ci 1775 drivers/scsi/stex.c hba->map_sg = ci->map_sg; ci 1776 drivers/scsi/stex.c hba->send = ci->send; ci 1784 drivers/scsi/stex.c host->can_queue = ci->rq_count; ci 1785 drivers/scsi/stex.c host->cmd_per_lun = ci->rq_count; ci 1786 drivers/scsi/stex.c host->max_id = ci->max_id; ci 1787 drivers/scsi/stex.c host->max_lun = ci->max_lun; ci 1788 drivers/scsi/stex.c host->max_channel = ci->max_channel; ci 124 drivers/soc/fsl/qbman/bman.c u8 ci, available, ithresh, vbit; ci 181 drivers/soc/fsl/qbman/bman.c void __iomem *ci; /* cache-inhibited */ ci 193 drivers/soc/fsl/qbman/bman.c return ioread32be(p->addr.ci + offset); ci 198 drivers/soc/fsl/qbman/bman.c iowrite32be(val, p->addr.ci + offset); ci 337 drivers/soc/fsl/qbman/bman.c u8 diff, old_ci = rcr->ci; ci 340 drivers/soc/fsl/qbman/bman.c rcr->ci = bm_ce_in(portal, BM_CL_RCR_CI_CENA) & (BM_RCR_SIZE - 1); ci 342 drivers/soc/fsl/qbman/bman.c diff = dpaa_cyc_diff(BM_RCR_SIZE, old_ci, rcr->ci); ci 388 drivers/soc/fsl/qbman/bman.c rcr->ci = bm_in(portal, BM_REG_RCR_CI_CINH) & (BM_RCR_SIZE - 1); ci 394 drivers/soc/fsl/qbman/bman.c - dpaa_cyc_diff(BM_RCR_SIZE, rcr->ci, pi); ci 420 drivers/soc/fsl/qbman/bman.c if (i != rcr->ci) ci 422 drivers/soc/fsl/qbman/bman.c if (rcr->ci != rcr_ptr2idx(rcr->cursor)) ci 540 drivers/soc/fsl/qbman/bman.c p->addr.ci = c->addr_virt_ci; ci 199 drivers/soc/fsl/qbman/qman.c u8 ci, available, ithresh, vbit; ci 208 drivers/soc/fsl/qbman/qman.c u8 pi, ci, fill, ithresh, vbit; ci 218 drivers/soc/fsl/qbman/qman.c u8 pi, ci, fill, ithresh, vbit; ci 345 drivers/soc/fsl/qbman/qman.c void __iomem *ci; /* cache-inhibited */ ci 365 drivers/soc/fsl/qbman/qman.c return ioread32be(p->addr.ci + offset); ci 370 drivers/soc/fsl/qbman/qman.c iowrite32be(val, p->addr.ci + offset); ci 431 drivers/soc/fsl/qbman/qman.c eqcr->ci = qm_in(portal, QM_REG_EQCR_CI_CINH) & (QM_EQCR_SIZE - 1); ci 438 drivers/soc/fsl/qbman/qman.c dpaa_cyc_diff(QM_EQCR_SIZE, eqcr->ci, pi); ci 461 drivers/soc/fsl/qbman/qman.c u8 ci = qm_in(portal, QM_REG_EQCR_CI_CINH) & (QM_EQCR_SIZE - 1); ci 466 drivers/soc/fsl/qbman/qman.c if (ci != eqcr->ci) ci 468 drivers/soc/fsl/qbman/qman.c if (eqcr->ci != eqcr_ptr2idx(eqcr->cursor)) ci 496 drivers/soc/fsl/qbman/qman.c old_ci = eqcr->ci; ci 497 drivers/soc/fsl/qbman/qman.c eqcr->ci = qm_ce_in(portal, QM_CL_EQCR_CI_CENA) & ci 499 drivers/soc/fsl/qbman/qman.c diff = dpaa_cyc_diff(QM_EQCR_SIZE, old_ci, eqcr->ci); ci 544 drivers/soc/fsl/qbman/qman.c u8 diff, old_ci = eqcr->ci; ci 546 drivers/soc/fsl/qbman/qman.c eqcr->ci = qm_ce_in(portal, QM_CL_EQCR_CI_CENA) & (QM_EQCR_SIZE - 1); ci 548 drivers/soc/fsl/qbman/qman.c diff = dpaa_cyc_diff(QM_EQCR_SIZE, old_ci, eqcr->ci); ci 621 drivers/soc/fsl/qbman/qman.c dqrr->ci = qm_in(portal, QM_REG_DQRR_CI_CINH) & (QM_DQRR_SIZE - 1); ci 622 drivers/soc/fsl/qbman/qman.c dqrr->cursor = dqrr->ring + dqrr->ci; ci 623 drivers/soc/fsl/qbman/qman.c dqrr->fill = dpaa_cyc_diff(QM_DQRR_SIZE, dqrr->ci, dqrr->pi); ci 653 drivers/soc/fsl/qbman/qman.c dqrr->ci != dqrr_ptr2idx(dqrr->cursor)) ci 775 drivers/soc/fsl/qbman/qman.c mr->ci = qm_in(portal, QM_REG_MR_CI_CINH) & (QM_MR_SIZE - 1); ci 776 drivers/soc/fsl/qbman/qman.c mr->cursor = mr->ring + mr->ci; ci 777 drivers/soc/fsl/qbman/qman.c mr->fill = dpaa_cyc_diff(QM_MR_SIZE, mr->ci, mr->pi); ci 795 drivers/soc/fsl/qbman/qman.c if (mr->ci != mr_ptr2idx(mr->cursor)) ci 839 drivers/soc/fsl/qbman/qman.c mr->ci = (mr->ci + num) & (QM_MR_SIZE - 1); ci 840 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_MR_CI_CINH, mr->ci); ci 848 drivers/soc/fsl/qbman/qman.c mr->ci = mr_ptr2idx(mr->cursor); ci 849 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_MR_CI_CINH, mr->ci); ci 1251 drivers/soc/fsl/qbman/qman.c p->addr.ci = c->addr_virt_ci; ci 1999 drivers/staging/fwserial/fwserial.c struct fw_csr_iterator ci; ci 2023 drivers/staging/fwserial/fwserial.c fw_csr_iterator_init(&ci, unit->directory); ci 2024 drivers/staging/fwserial/fwserial.c while (fw_csr_iterator_next(&ci, &key, &val)) { ci 648 drivers/staging/media/ipu3/include/intel-ipu3.h __u32 ci:5; ci 702 drivers/staging/rts5208/rtsx_chip.h int ci; /* Command Index */ ci 207 drivers/staging/rts5208/rtsx_transport.c if (chip->ci < (HOST_CMDS_BUF_LEN / 4)) ci 208 drivers/staging/rts5208/rtsx_transport.c cb[(chip->ci)++] = cpu_to_le32(val); ci 219 drivers/staging/rts5208/rtsx_transport.c val |= (u32)(chip->ci * 4) & 0x00FFFFFF; ci 252 drivers/staging/rts5208/rtsx_transport.c val |= (u32)(chip->ci * 4) & 0x00FFFFFF; ci 32 drivers/staging/rts5208/rtsx_transport.h #define rtsx_init_cmd(chip) ((chip)->ci = 0) ci 17 drivers/staging/uwb/allocator.c struct uwb_rsv_col_info *ci = ai->ci; ci 20 drivers/staging/uwb/allocator.c for (col = ci->csi.start_col; col < UWB_NUM_ZONES; col += ci->csi.interval) { ci 22 drivers/staging/uwb/allocator.c safe_mas = ci->csi.safe_mas_per_col; ci 23 drivers/staging/uwb/allocator.c unsafe_mas = ci->csi.unsafe_mas_per_col; ci 129 drivers/staging/uwb/allocator.c struct uwb_rsv_col_info *ci = ai->ci; ci 130 drivers/staging/uwb/allocator.c struct uwb_rsv_col_set_info *csi = &ci->csi; ci 151 drivers/staging/uwb/allocator.c if (ci[col].max_avail_safe >= num_safe_mas && ci 152 drivers/staging/uwb/allocator.c ci[col].max_avail_unsafe >= n_mas) { ci 153 drivers/staging/uwb/allocator.c if (ci[col].highest_mas[n_mas] > max_mas_in_set) ci 154 drivers/staging/uwb/allocator.c max_mas_in_set = ci[col].highest_mas[n_mas]; ci 252 drivers/staging/uwb/allocator.c struct uwb_rsv_col_info *ci = ai->ci; ci 256 drivers/staging/uwb/allocator.c uwb_rsv_fill_column_info(bm, col, &ci[col]); ci 149 drivers/staging/uwb/uwb-internal.h struct uwb_rsv_col_info ci[UWB_NUM_ZONES]; ci 1577 drivers/target/target_core_alua.c struct config_item *ci; ci 1583 drivers/target/target_core_alua.c ci = &lu_gp->lu_gp_group.cg_item; ci 1584 drivers/target/target_core_alua.c if (!strcmp(config_item_name(ci), name)) { ci 1800 drivers/target/target_core_alua.c struct config_item *ci; ci 1807 drivers/target/target_core_alua.c ci = &tg_pt_gp->tg_pt_gp_group.cg_item; ci 1808 drivers/target/target_core_alua.c if (!strcmp(config_item_name(ci), name)) { ci 100 drivers/usb/chipidea/ci.h struct ci_hdrc *ci; ci 261 drivers/usb/chipidea/ci.h static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) ci 263 drivers/usb/chipidea/ci.h BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); ci 264 drivers/usb/chipidea/ci.h return ci->roles[ci->role]; ci 267 drivers/usb/chipidea/ci.h static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) ci 274 drivers/usb/chipidea/ci.h if (!ci->roles[role]) ci 277 drivers/usb/chipidea/ci.h ret = ci->roles[role]->start(ci); ci 279 drivers/usb/chipidea/ci.h ci->role = role; ci 283 drivers/usb/chipidea/ci.h static inline void ci_role_stop(struct ci_hdrc *ci) ci 285 drivers/usb/chipidea/ci.h enum ci_role role = ci->role; ci 290 drivers/usb/chipidea/ci.h ci->role = CI_ROLE_END; ci 292 drivers/usb/chipidea/ci.h ci->roles[role]->stop(ci); ci 295 drivers/usb/chipidea/ci.h static inline enum usb_role ci_role_to_usb_role(struct ci_hdrc *ci) ci 297 drivers/usb/chipidea/ci.h if (ci->role == CI_ROLE_HOST) ci 299 drivers/usb/chipidea/ci.h else if (ci->role == CI_ROLE_GADGET && ci->vbus_active) ci 313 drivers/usb/chipidea/ci.h static inline u32 hw_read_id_reg(struct ci_hdrc *ci, u32 offset, u32 mask) ci 315 drivers/usb/chipidea/ci.h return ioread32(ci->hw_bank.abs + offset) & mask; ci 325 drivers/usb/chipidea/ci.h static inline void hw_write_id_reg(struct ci_hdrc *ci, u32 offset, ci 329 drivers/usb/chipidea/ci.h data = (ioread32(ci->hw_bank.abs + offset) & ~mask) ci 332 drivers/usb/chipidea/ci.h iowrite32(data, ci->hw_bank.abs + offset); ci 343 drivers/usb/chipidea/ci.h static inline u32 hw_read(struct ci_hdrc *ci, enum ci_hw_regs reg, u32 mask) ci 345 drivers/usb/chipidea/ci.h return ioread32(ci->hw_bank.regmap[reg]) & mask; ci 359 drivers/usb/chipidea/ci.h static inline void __hw_write(struct ci_hdrc *ci, u32 val, ci 362 drivers/usb/chipidea/ci.h if (ci->imx28_write_fix) ci 375 drivers/usb/chipidea/ci.h static inline void hw_write(struct ci_hdrc *ci, enum ci_hw_regs reg, ci 379 drivers/usb/chipidea/ci.h data = (ioread32(ci->hw_bank.regmap[reg]) & ~mask) ci 382 drivers/usb/chipidea/ci.h __hw_write(ci, data, ci->hw_bank.regmap[reg]); ci 393 drivers/usb/chipidea/ci.h static inline u32 hw_test_and_clear(struct ci_hdrc *ci, enum ci_hw_regs reg, ci 396 drivers/usb/chipidea/ci.h u32 val = ioread32(ci->hw_bank.regmap[reg]) & mask; ci 398 drivers/usb/chipidea/ci.h __hw_write(ci, val, ci->hw_bank.regmap[reg]); ci 411 drivers/usb/chipidea/ci.h static inline u32 hw_test_and_write(struct ci_hdrc *ci, enum ci_hw_regs reg, ci 414 drivers/usb/chipidea/ci.h u32 val = hw_read(ci, reg, ~0); ci 416 drivers/usb/chipidea/ci.h hw_write(ci, reg, mask, data); ci 426 drivers/usb/chipidea/ci.h static inline bool ci_otg_is_fsm_mode(struct ci_hdrc *ci) ci 429 drivers/usb/chipidea/ci.h struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; ci 431 drivers/usb/chipidea/ci.h return ci->is_otg && ci->roles[CI_ROLE_HOST] && ci 432 drivers/usb/chipidea/ci.h ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support || ci 439 drivers/usb/chipidea/ci.h int ci_ulpi_init(struct ci_hdrc *ci); ci 440 drivers/usb/chipidea/ci.h void ci_ulpi_exit(struct ci_hdrc *ci); ci 441 drivers/usb/chipidea/ci.h int ci_ulpi_resume(struct ci_hdrc *ci); ci 443 drivers/usb/chipidea/ci.h u32 hw_read_intr_enable(struct ci_hdrc *ci); ci 445 drivers/usb/chipidea/ci.h u32 hw_read_intr_status(struct ci_hdrc *ci); ci 447 drivers/usb/chipidea/ci.h int hw_device_reset(struct ci_hdrc *ci); ci 449 drivers/usb/chipidea/ci.h int hw_port_test_set(struct ci_hdrc *ci, u8 mode); ci 451 drivers/usb/chipidea/ci.h u8 hw_port_test_get(struct ci_hdrc *ci); ci 453 drivers/usb/chipidea/ci.h void hw_phymode_configure(struct ci_hdrc *ci); ci 455 drivers/usb/chipidea/ci.h void ci_platform_configure(struct ci_hdrc *ci); ci 457 drivers/usb/chipidea/ci.h void dbg_create_files(struct ci_hdrc *ci); ci 459 drivers/usb/chipidea/ci.h void dbg_remove_files(struct ci_hdrc *ci); ci 269 drivers/usb/chipidea/ci_hdrc_imx.c static int ci_hdrc_imx_notify_event(struct ci_hdrc *ci, unsigned int event) ci 271 drivers/usb/chipidea/ci_hdrc_imx.c struct device *dev = ci->dev->parent; ci 37 drivers/usb/chipidea/ci_hdrc_msm.c struct platform_device *ci; ci 79 drivers/usb/chipidea/ci_hdrc_msm.c static int ci_hdrc_msm_notify_event(struct ci_hdrc *ci, unsigned event) ci 81 drivers/usb/chipidea/ci_hdrc_msm.c struct device *dev = ci->dev->parent; ci 89 drivers/usb/chipidea/ci_hdrc_msm.c hw_phymode_configure(ci); ci 96 drivers/usb/chipidea/ci_hdrc_msm.c ret = phy_init(ci->phy); ci 100 drivers/usb/chipidea/ci_hdrc_msm.c ret = phy_power_on(ci->phy); ci 102 drivers/usb/chipidea/ci_hdrc_msm.c phy_exit(ci->phy); ci 107 drivers/usb/chipidea/ci_hdrc_msm.c hw_write_id_reg(ci, HS_PHY_AHB_MODE, 0xffffffff, 0x8); ci 110 drivers/usb/chipidea/ci_hdrc_msm.c hw_write_id_reg(ci, HS_PHY_GENCONFIG, ci 114 drivers/usb/chipidea/ci_hdrc_msm.c hw_write_id_reg(ci, HS_PHY_GENCONFIG_2, ci 117 drivers/usb/chipidea/ci_hdrc_msm.c if (!IS_ERR(ci->platdata->vbus_extcon.edev) || ci->role_switch) { ci 118 drivers/usb/chipidea/ci_hdrc_msm.c hw_write_id_reg(ci, HS_PHY_GENCONFIG_2, ci 121 drivers/usb/chipidea/ci_hdrc_msm.c hw_write(ci, OP_USBCMD, HSPHY_SESS_VLD_CTRL, ci 128 drivers/usb/chipidea/ci_hdrc_msm.c phy_power_off(ci->phy); ci 129 drivers/usb/chipidea/ci_hdrc_msm.c phy_exit(ci->phy); ci 139 drivers/usb/chipidea/ci_hdrc_msm.c static int ci_hdrc_msm_mux_phy(struct ci_hdrc_msm *ci, ci 162 drivers/usb/chipidea/ci_hdrc_msm.c ci->secondary_phy = !!args.args[1]; ci 163 drivers/usb/chipidea/ci_hdrc_msm.c if (ci->secondary_phy) { ci 164 drivers/usb/chipidea/ci_hdrc_msm.c val = readl_relaxed(ci->base + HS_PHY_SEC_CTRL); ci 166 drivers/usb/chipidea/ci_hdrc_msm.c writel_relaxed(val, ci->base + HS_PHY_SEC_CTRL); ci 174 drivers/usb/chipidea/ci_hdrc_msm.c struct ci_hdrc_msm *ci; ci 183 drivers/usb/chipidea/ci_hdrc_msm.c ci = devm_kzalloc(&pdev->dev, sizeof(*ci), GFP_KERNEL); ci 184 drivers/usb/chipidea/ci_hdrc_msm.c if (!ci) ci 186 drivers/usb/chipidea/ci_hdrc_msm.c platform_set_drvdata(pdev, ci); ci 188 drivers/usb/chipidea/ci_hdrc_msm.c ci->pdata.name = "ci_hdrc_msm"; ci 189 drivers/usb/chipidea/ci_hdrc_msm.c ci->pdata.capoffset = DEF_CAPOFFSET; ci 190 drivers/usb/chipidea/ci_hdrc_msm.c ci->pdata.flags = CI_HDRC_REGS_SHARED | CI_HDRC_DISABLE_STREAMING | ci 193 drivers/usb/chipidea/ci_hdrc_msm.c ci->pdata.notify_event = ci_hdrc_msm_notify_event; ci 199 drivers/usb/chipidea/ci_hdrc_msm.c ci->core_clk = clk = devm_clk_get(&pdev->dev, "core"); ci 203 drivers/usb/chipidea/ci_hdrc_msm.c ci->iface_clk = clk = devm_clk_get(&pdev->dev, "iface"); ci 207 drivers/usb/chipidea/ci_hdrc_msm.c ci->fs_clk = clk = devm_clk_get_optional(&pdev->dev, "fs"); ci 211 drivers/usb/chipidea/ci_hdrc_msm.c ci->base = devm_platform_ioremap_resource(pdev, 1); ci 212 drivers/usb/chipidea/ci_hdrc_msm.c if (IS_ERR(ci->base)) ci 213 drivers/usb/chipidea/ci_hdrc_msm.c return PTR_ERR(ci->base); ci 215 drivers/usb/chipidea/ci_hdrc_msm.c ci->rcdev.owner = THIS_MODULE; ci 216 drivers/usb/chipidea/ci_hdrc_msm.c ci->rcdev.ops = &ci_hdrc_msm_reset_ops; ci 217 drivers/usb/chipidea/ci_hdrc_msm.c ci->rcdev.of_node = pdev->dev.of_node; ci 218 drivers/usb/chipidea/ci_hdrc_msm.c ci->rcdev.nr_resets = 2; ci 219 drivers/usb/chipidea/ci_hdrc_msm.c ret = devm_reset_controller_register(&pdev->dev, &ci->rcdev); ci 223 drivers/usb/chipidea/ci_hdrc_msm.c ret = clk_prepare_enable(ci->fs_clk); ci 231 drivers/usb/chipidea/ci_hdrc_msm.c clk_disable_unprepare(ci->fs_clk); ci 233 drivers/usb/chipidea/ci_hdrc_msm.c ret = clk_prepare_enable(ci->core_clk); ci 237 drivers/usb/chipidea/ci_hdrc_msm.c ret = clk_prepare_enable(ci->iface_clk); ci 241 drivers/usb/chipidea/ci_hdrc_msm.c ret = ci_hdrc_msm_mux_phy(ci, pdev); ci 248 drivers/usb/chipidea/ci_hdrc_msm.c ci->hsic = of_device_is_compatible(phy_node, "qcom,usb-hsic-phy"); ci 254 drivers/usb/chipidea/ci_hdrc_msm.c pdev->num_resources, &ci->pdata); ci 262 drivers/usb/chipidea/ci_hdrc_msm.c ci->ci = plat_ci; ci 271 drivers/usb/chipidea/ci_hdrc_msm.c clk_disable_unprepare(ci->iface_clk); ci 273 drivers/usb/chipidea/ci_hdrc_msm.c clk_disable_unprepare(ci->core_clk); ci 279 drivers/usb/chipidea/ci_hdrc_msm.c struct ci_hdrc_msm *ci = platform_get_drvdata(pdev); ci 282 drivers/usb/chipidea/ci_hdrc_msm.c ci_hdrc_remove_device(ci->ci); ci 283 drivers/usb/chipidea/ci_hdrc_msm.c clk_disable_unprepare(ci->iface_clk); ci 284 drivers/usb/chipidea/ci_hdrc_msm.c clk_disable_unprepare(ci->core_clk); ci 22 drivers/usb/chipidea/ci_hdrc_pci.c struct platform_device *ci; ci 58 drivers/usb/chipidea/ci_hdrc_pci.c struct ci_hdrc_pci *ci; ci 67 drivers/usb/chipidea/ci_hdrc_pci.c ci = devm_kzalloc(&pdev->dev, sizeof(*ci), GFP_KERNEL); ci 68 drivers/usb/chipidea/ci_hdrc_pci.c if (!ci) ci 84 drivers/usb/chipidea/ci_hdrc_pci.c ci->phy = usb_phy_generic_register(); ci 85 drivers/usb/chipidea/ci_hdrc_pci.c if (IS_ERR(ci->phy)) ci 86 drivers/usb/chipidea/ci_hdrc_pci.c return PTR_ERR(ci->phy); ci 95 drivers/usb/chipidea/ci_hdrc_pci.c ci->ci = ci_hdrc_add_device(&pdev->dev, res, nres, platdata); ci 96 drivers/usb/chipidea/ci_hdrc_pci.c if (IS_ERR(ci->ci)) { ci 98 drivers/usb/chipidea/ci_hdrc_pci.c usb_phy_generic_unregister(ci->phy); ci 99 drivers/usb/chipidea/ci_hdrc_pci.c return PTR_ERR(ci->ci); ci 102 drivers/usb/chipidea/ci_hdrc_pci.c pci_set_drvdata(pdev, ci); ci 117 drivers/usb/chipidea/ci_hdrc_pci.c struct ci_hdrc_pci *ci = pci_get_drvdata(pdev); ci 119 drivers/usb/chipidea/ci_hdrc_pci.c ci_hdrc_remove_device(ci->ci); ci 120 drivers/usb/chipidea/ci_hdrc_pci.c usb_phy_generic_unregister(ci->phy); ci 124 drivers/usb/chipidea/core.c static void hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) ci 129 drivers/usb/chipidea/core.c ci->hw_bank.regmap[i] = ci 130 drivers/usb/chipidea/core.c (i <= CAP_LAST ? ci->hw_bank.cap : ci->hw_bank.op) + ci 134 drivers/usb/chipidea/core.c ci->hw_bank.regmap[i] = ci->hw_bank.op + ci 142 drivers/usb/chipidea/core.c static enum ci_revision ci_get_revision(struct ci_hdrc *ci) ci 144 drivers/usb/chipidea/core.c int ver = hw_read_id_reg(ci, ID_ID, VERSION) >> __ffs(VERSION); ci 148 drivers/usb/chipidea/core.c rev = hw_read_id_reg(ci, ID_ID, REVISION) ci 165 drivers/usb/chipidea/core.c u32 hw_read_intr_enable(struct ci_hdrc *ci) ci 167 drivers/usb/chipidea/core.c return hw_read(ci, OP_USBINTR, ~0); ci 177 drivers/usb/chipidea/core.c u32 hw_read_intr_status(struct ci_hdrc *ci) ci 179 drivers/usb/chipidea/core.c return hw_read(ci, OP_USBSTS, ~0); ci 188 drivers/usb/chipidea/core.c int hw_port_test_set(struct ci_hdrc *ci, u8 mode) ci 195 drivers/usb/chipidea/core.c hw_write(ci, OP_PORTSC, PORTSC_PTC, mode << __ffs(PORTSC_PTC)); ci 206 drivers/usb/chipidea/core.c u8 hw_port_test_get(struct ci_hdrc *ci) ci 208 drivers/usb/chipidea/core.c return hw_read(ci, OP_PORTSC, PORTSC_PTC) >> __ffs(PORTSC_PTC); ci 223 drivers/usb/chipidea/core.c static void ci_hdrc_enter_lpm(struct ci_hdrc *ci, bool enable) ci 225 drivers/usb/chipidea/core.c enum ci_hw_regs reg = ci->hw_bank.lpm ? OP_DEVLC : OP_PORTSC; ci 226 drivers/usb/chipidea/core.c bool lpm = !!(hw_read(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm))); ci 229 drivers/usb/chipidea/core.c hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), ci 230 drivers/usb/chipidea/core.c PORTSC_PHCD(ci->hw_bank.lpm)); ci 232 drivers/usb/chipidea/core.c hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), ci 236 drivers/usb/chipidea/core.c static int hw_device_init(struct ci_hdrc *ci, void __iomem *base) ci 241 drivers/usb/chipidea/core.c ci->hw_bank.abs = base; ci 243 drivers/usb/chipidea/core.c ci->hw_bank.cap = ci->hw_bank.abs; ci 244 drivers/usb/chipidea/core.c ci->hw_bank.cap += ci->platdata->capoffset; ci 245 drivers/usb/chipidea/core.c ci->hw_bank.op = ci->hw_bank.cap + (ioread32(ci->hw_bank.cap) & 0xff); ci 247 drivers/usb/chipidea/core.c hw_alloc_regmap(ci, false); ci 248 drivers/usb/chipidea/core.c reg = hw_read(ci, CAP_HCCPARAMS, HCCPARAMS_LEN) >> ci 250 drivers/usb/chipidea/core.c ci->hw_bank.lpm = reg; ci 252 drivers/usb/chipidea/core.c hw_alloc_regmap(ci, !!reg); ci 253 drivers/usb/chipidea/core.c ci->hw_bank.size = ci->hw_bank.op - ci->hw_bank.abs; ci 254 drivers/usb/chipidea/core.c ci->hw_bank.size += OP_LAST; ci 255 drivers/usb/chipidea/core.c ci->hw_bank.size /= sizeof(u32); ci 257 drivers/usb/chipidea/core.c reg = hw_read(ci, CAP_DCCPARAMS, DCCPARAMS_DEN) >> ci 259 drivers/usb/chipidea/core.c ci->hw_ep_max = reg * 2; /* cache hw ENDPT_MAX */ ci 261 drivers/usb/chipidea/core.c if (ci->hw_ep_max > ENDPT_MAX) ci 264 drivers/usb/chipidea/core.c ci_hdrc_enter_lpm(ci, false); ci 267 drivers/usb/chipidea/core.c hw_write(ci, OP_USBINTR, 0xffffffff, 0); ci 270 drivers/usb/chipidea/core.c hw_write(ci, OP_USBSTS, 0xffffffff, 0xffffffff); ci 272 drivers/usb/chipidea/core.c ci->rev = ci_get_revision(ci); ci 274 drivers/usb/chipidea/core.c dev_dbg(ci->dev, ci 276 drivers/usb/chipidea/core.c ci->rev, ci->hw_bank.lpm, ci->hw_bank.cap, ci->hw_bank.op); ci 287 drivers/usb/chipidea/core.c void hw_phymode_configure(struct ci_hdrc *ci) ci 291 drivers/usb/chipidea/core.c switch (ci->platdata->phy_mode) { ci 317 drivers/usb/chipidea/core.c if (ci->hw_bank.lpm) { ci 318 drivers/usb/chipidea/core.c hw_write(ci, OP_DEVLC, DEVLC_PTS(7) | DEVLC_PTW, lpm); ci 320 drivers/usb/chipidea/core.c hw_write(ci, OP_DEVLC, DEVLC_STS, DEVLC_STS); ci 322 drivers/usb/chipidea/core.c hw_write(ci, OP_PORTSC, PORTSC_PTS(7) | PORTSC_PTW, portsc); ci 324 drivers/usb/chipidea/core.c hw_write(ci, OP_PORTSC, PORTSC_STS, PORTSC_STS); ci 336 drivers/usb/chipidea/core.c static int _ci_usb_phy_init(struct ci_hdrc *ci) ci 340 drivers/usb/chipidea/core.c if (ci->phy) { ci 341 drivers/usb/chipidea/core.c ret = phy_init(ci->phy); ci 345 drivers/usb/chipidea/core.c ret = phy_power_on(ci->phy); ci 347 drivers/usb/chipidea/core.c phy_exit(ci->phy); ci 351 drivers/usb/chipidea/core.c ret = usb_phy_init(ci->usb_phy); ci 362 drivers/usb/chipidea/core.c static void ci_usb_phy_exit(struct ci_hdrc *ci) ci 364 drivers/usb/chipidea/core.c if (ci->platdata->flags & CI_HDRC_OVERRIDE_PHY_CONTROL) ci 367 drivers/usb/chipidea/core.c if (ci->phy) { ci 368 drivers/usb/chipidea/core.c phy_power_off(ci->phy); ci 369 drivers/usb/chipidea/core.c phy_exit(ci->phy); ci 371 drivers/usb/chipidea/core.c usb_phy_shutdown(ci->usb_phy); ci 381 drivers/usb/chipidea/core.c static int ci_usb_phy_init(struct ci_hdrc *ci) ci 385 drivers/usb/chipidea/core.c if (ci->platdata->flags & CI_HDRC_OVERRIDE_PHY_CONTROL) ci 388 drivers/usb/chipidea/core.c switch (ci->platdata->phy_mode) { ci 392 drivers/usb/chipidea/core.c ret = _ci_usb_phy_init(ci); ci 397 drivers/usb/chipidea/core.c hw_phymode_configure(ci); ci 401 drivers/usb/chipidea/core.c hw_phymode_configure(ci); ci 402 drivers/usb/chipidea/core.c ret = _ci_usb_phy_init(ci); ci 407 drivers/usb/chipidea/core.c ret = _ci_usb_phy_init(ci); ci 421 drivers/usb/chipidea/core.c void ci_platform_configure(struct ci_hdrc *ci) ci 425 drivers/usb/chipidea/core.c is_device_mode = hw_read(ci, OP_USBMODE, USBMODE_CM) == USBMODE_CM_DC; ci 426 drivers/usb/chipidea/core.c is_host_mode = hw_read(ci, OP_USBMODE, USBMODE_CM) == USBMODE_CM_HC; ci 429 drivers/usb/chipidea/core.c phy_set_mode(ci->phy, PHY_MODE_USB_DEVICE); ci 431 drivers/usb/chipidea/core.c if (ci->platdata->flags & CI_HDRC_DISABLE_DEVICE_STREAMING) ci 432 drivers/usb/chipidea/core.c hw_write(ci, OP_USBMODE, USBMODE_CI_SDIS, ci 437 drivers/usb/chipidea/core.c phy_set_mode(ci->phy, PHY_MODE_USB_HOST); ci 439 drivers/usb/chipidea/core.c if (ci->platdata->flags & CI_HDRC_DISABLE_HOST_STREAMING) ci 440 drivers/usb/chipidea/core.c hw_write(ci, OP_USBMODE, USBMODE_CI_SDIS, ci 444 drivers/usb/chipidea/core.c if (ci->platdata->flags & CI_HDRC_FORCE_FULLSPEED) { ci 445 drivers/usb/chipidea/core.c if (ci->hw_bank.lpm) ci 446 drivers/usb/chipidea/core.c hw_write(ci, OP_DEVLC, DEVLC_PFSC, DEVLC_PFSC); ci 448 drivers/usb/chipidea/core.c hw_write(ci, OP_PORTSC, PORTSC_PFSC, PORTSC_PFSC); ci 451 drivers/usb/chipidea/core.c if (ci->platdata->flags & CI_HDRC_SET_NON_ZERO_TTHA) ci 452 drivers/usb/chipidea/core.c hw_write(ci, OP_TTCTRL, TTCTRL_TTHA_MASK, TTCTRL_TTHA); ci 454 drivers/usb/chipidea/core.c hw_write(ci, OP_USBCMD, 0xff0000, ci->platdata->itc_setting << 16); ci 456 drivers/usb/chipidea/core.c if (ci->platdata->flags & CI_HDRC_OVERRIDE_AHB_BURST) ci 457 drivers/usb/chipidea/core.c hw_write_id_reg(ci, ID_SBUSCFG, AHBBRST_MASK, ci 458 drivers/usb/chipidea/core.c ci->platdata->ahb_burst_config); ci 461 drivers/usb/chipidea/core.c if (!hw_read_id_reg(ci, ID_SBUSCFG, AHBBRST_MASK)) { ci 462 drivers/usb/chipidea/core.c if (ci->platdata->flags & CI_HDRC_OVERRIDE_TX_BURST) ci 463 drivers/usb/chipidea/core.c hw_write(ci, OP_BURSTSIZE, TX_BURST_MASK, ci 464 drivers/usb/chipidea/core.c ci->platdata->tx_burst_size << __ffs(TX_BURST_MASK)); ci 466 drivers/usb/chipidea/core.c if (ci->platdata->flags & CI_HDRC_OVERRIDE_RX_BURST) ci 467 drivers/usb/chipidea/core.c hw_write(ci, OP_BURSTSIZE, RX_BURST_MASK, ci 468 drivers/usb/chipidea/core.c ci->platdata->rx_burst_size); ci 478 drivers/usb/chipidea/core.c static int hw_controller_reset(struct ci_hdrc *ci) ci 482 drivers/usb/chipidea/core.c hw_write(ci, OP_USBCMD, USBCMD_RST, USBCMD_RST); ci 483 drivers/usb/chipidea/core.c while (hw_read(ci, OP_USBCMD, USBCMD_RST)) { ci 498 drivers/usb/chipidea/core.c int hw_device_reset(struct ci_hdrc *ci) ci 503 drivers/usb/chipidea/core.c hw_write(ci, OP_ENDPTFLUSH, ~0, ~0); ci 504 drivers/usb/chipidea/core.c hw_write(ci, OP_USBCMD, USBCMD_RS, 0); ci 506 drivers/usb/chipidea/core.c ret = hw_controller_reset(ci); ci 508 drivers/usb/chipidea/core.c dev_err(ci->dev, "error resetting controller, ret=%d\n", ret); ci 512 drivers/usb/chipidea/core.c if (ci->platdata->notify_event) { ci 513 drivers/usb/chipidea/core.c ret = ci->platdata->notify_event(ci, ci 520 drivers/usb/chipidea/core.c hw_write(ci, OP_USBMODE, USBMODE_CM, USBMODE_CM_IDLE); ci 521 drivers/usb/chipidea/core.c hw_write(ci, OP_USBMODE, USBMODE_CM, USBMODE_CM_DC); ci 523 drivers/usb/chipidea/core.c hw_write(ci, OP_USBMODE, USBMODE_SLOM, USBMODE_SLOM); ci 525 drivers/usb/chipidea/core.c if (hw_read(ci, OP_USBMODE, USBMODE_CM) != USBMODE_CM_DC) { ci 526 drivers/usb/chipidea/core.c dev_err(ci->dev, "cannot enter in %s device mode\n", ci 527 drivers/usb/chipidea/core.c ci_role(ci)->name); ci 528 drivers/usb/chipidea/core.c dev_err(ci->dev, "lpm = %i\n", ci->hw_bank.lpm); ci 532 drivers/usb/chipidea/core.c ci_platform_configure(ci); ci 539 drivers/usb/chipidea/core.c struct ci_hdrc *ci = data; ci 543 drivers/usb/chipidea/core.c if (ci->in_lpm) { ci 545 drivers/usb/chipidea/core.c ci->wakeup_int = true; ci 546 drivers/usb/chipidea/core.c pm_runtime_get(ci->dev); ci 550 drivers/usb/chipidea/core.c if (ci->is_otg) { ci 551 drivers/usb/chipidea/core.c otgsc = hw_read_otgsc(ci, ~0); ci 552 drivers/usb/chipidea/core.c if (ci_otg_is_fsm_mode(ci)) { ci 553 drivers/usb/chipidea/core.c ret = ci_otg_fsm_irq(ci); ci 563 drivers/usb/chipidea/core.c if (ci->is_otg && (otgsc & OTGSC_IDIE) && (otgsc & OTGSC_IDIS)) { ci 564 drivers/usb/chipidea/core.c ci->id_event = true; ci 566 drivers/usb/chipidea/core.c hw_write_otgsc(ci, OTGSC_IDIS, OTGSC_IDIS); ci 567 drivers/usb/chipidea/core.c ci_otg_queue_work(ci); ci 575 drivers/usb/chipidea/core.c if (ci->is_otg && (otgsc & OTGSC_BSVIE) && (otgsc & OTGSC_BSVIS)) { ci 576 drivers/usb/chipidea/core.c ci->b_sess_valid_event = true; ci 578 drivers/usb/chipidea/core.c hw_write_otgsc(ci, OTGSC_BSVIS, OTGSC_BSVIS); ci 579 drivers/usb/chipidea/core.c ci_otg_queue_work(ci); ci 584 drivers/usb/chipidea/core.c if (ci->role != CI_ROLE_END) ci 585 drivers/usb/chipidea/core.c ret = ci_role(ci)->irq(ci); ci 594 drivers/usb/chipidea/core.c struct ci_hdrc *ci = cbl->ci; ci 599 drivers/usb/chipidea/core.c ci_irq(ci->irq, ci); ci 605 drivers/usb/chipidea/core.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 609 drivers/usb/chipidea/core.c spin_lock_irqsave(&ci->lock, flags); ci 610 drivers/usb/chipidea/core.c role = ci_role_to_usb_role(ci); ci 611 drivers/usb/chipidea/core.c spin_unlock_irqrestore(&ci->lock, flags); ci 618 drivers/usb/chipidea/core.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 620 drivers/usb/chipidea/core.c enum usb_role current_role = ci_role_to_usb_role(ci); ci 626 drivers/usb/chipidea/core.c pm_runtime_get_sync(ci->dev); ci 628 drivers/usb/chipidea/core.c spin_lock_irqsave(&ci->lock, flags); ci 630 drivers/usb/chipidea/core.c cable = &ci->platdata->vbus_extcon; ci 632 drivers/usb/chipidea/core.c cable = &ci->platdata->id_extcon; ci 637 drivers/usb/chipidea/core.c ci_irq(ci->irq, ci); ci 638 drivers/usb/chipidea/core.c spin_unlock_irqrestore(&ci->lock, flags); ci 639 drivers/usb/chipidea/core.c if (ci->wq && role != USB_ROLE_NONE) ci 640 drivers/usb/chipidea/core.c flush_workqueue(ci->wq); ci 641 drivers/usb/chipidea/core.c spin_lock_irqsave(&ci->lock, flags); ci 648 drivers/usb/chipidea/core.c cable = &ci->platdata->vbus_extcon; ci 650 drivers/usb/chipidea/core.c cable = &ci->platdata->id_extcon; ci 655 drivers/usb/chipidea/core.c ci_irq(ci->irq, ci); ci 657 drivers/usb/chipidea/core.c spin_unlock_irqrestore(&ci->lock, flags); ci 658 drivers/usb/chipidea/core.c pm_runtime_put_sync(ci->dev); ci 817 drivers/usb/chipidea/core.c static int ci_extcon_register(struct ci_hdrc *ci) ci 822 drivers/usb/chipidea/core.c id = &ci->platdata->id_extcon; ci 823 drivers/usb/chipidea/core.c id->ci = ci; ci 825 drivers/usb/chipidea/core.c ret = devm_extcon_register_notifier(ci->dev, id->edev, ci 828 drivers/usb/chipidea/core.c dev_err(ci->dev, "register ID failed\n"); ci 833 drivers/usb/chipidea/core.c vbus = &ci->platdata->vbus_extcon; ci 834 drivers/usb/chipidea/core.c vbus->ci = ci; ci 836 drivers/usb/chipidea/core.c ret = devm_extcon_register_notifier(ci->dev, vbus->edev, ci 839 drivers/usb/chipidea/core.c dev_err(ci->dev, "register VBUS failed\n"); ci 902 drivers/usb/chipidea/core.c static inline void ci_role_destroy(struct ci_hdrc *ci) ci 904 drivers/usb/chipidea/core.c ci_hdrc_gadget_destroy(ci); ci 905 drivers/usb/chipidea/core.c ci_hdrc_host_destroy(ci); ci 906 drivers/usb/chipidea/core.c if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) ci 907 drivers/usb/chipidea/core.c ci_hdrc_otg_destroy(ci); ci 910 drivers/usb/chipidea/core.c static void ci_get_otg_capable(struct ci_hdrc *ci) ci 912 drivers/usb/chipidea/core.c if (ci->platdata->flags & CI_HDRC_DUAL_ROLE_NOT_OTG) ci 913 drivers/usb/chipidea/core.c ci->is_otg = false; ci 915 drivers/usb/chipidea/core.c ci->is_otg = (hw_read(ci, CAP_DCCPARAMS, ci 918 drivers/usb/chipidea/core.c if (ci->is_otg) { ci 919 drivers/usb/chipidea/core.c dev_dbg(ci->dev, "It is OTG capable controller\n"); ci 921 drivers/usb/chipidea/core.c hw_write_otgsc(ci, OTGSC_INT_EN_BITS | OTGSC_INT_STATUS_BITS, ci 929 drivers/usb/chipidea/core.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 931 drivers/usb/chipidea/core.c if (ci->role != CI_ROLE_END) ci 932 drivers/usb/chipidea/core.c return sprintf(buf, "%s\n", ci_role(ci)->name); ci 940 drivers/usb/chipidea/core.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 944 drivers/usb/chipidea/core.c if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { ci 950 drivers/usb/chipidea/core.c if (!strncmp(buf, ci->roles[role]->name, ci 951 drivers/usb/chipidea/core.c strlen(ci->roles[role]->name))) ci 954 drivers/usb/chipidea/core.c if (role == CI_ROLE_END || role == ci->role) ci 958 drivers/usb/chipidea/core.c disable_irq(ci->irq); ci 959 drivers/usb/chipidea/core.c ci_role_stop(ci); ci 960 drivers/usb/chipidea/core.c ret = ci_role_start(ci, role); ci 961 drivers/usb/chipidea/core.c if (!ret && ci->role == CI_ROLE_GADGET) ci 962 drivers/usb/chipidea/core.c ci_handle_vbus_change(ci); ci 963 drivers/usb/chipidea/core.c enable_irq(ci->irq); ci 974 drivers/usb/chipidea/core.c ATTRIBUTE_GROUPS(ci); ci 979 drivers/usb/chipidea/core.c struct ci_hdrc *ci; ci 995 drivers/usb/chipidea/core.c ci = devm_kzalloc(dev, sizeof(*ci), GFP_KERNEL); ci 996 drivers/usb/chipidea/core.c if (!ci) ci 999 drivers/usb/chipidea/core.c spin_lock_init(&ci->lock); ci 1000 drivers/usb/chipidea/core.c ci->dev = dev; ci 1001 drivers/usb/chipidea/core.c ci->platdata = dev_get_platdata(dev); ci 1002 drivers/usb/chipidea/core.c ci->imx28_write_fix = !!(ci->platdata->flags & ci 1004 drivers/usb/chipidea/core.c ci->supports_runtime_pm = !!(ci->platdata->flags & ci 1006 drivers/usb/chipidea/core.c platform_set_drvdata(pdev, ci); ci 1008 drivers/usb/chipidea/core.c ret = hw_device_init(ci, base); ci 1014 drivers/usb/chipidea/core.c ret = ci_ulpi_init(ci); ci 1018 drivers/usb/chipidea/core.c if (ci->platdata->phy) { ci 1019 drivers/usb/chipidea/core.c ci->phy = ci->platdata->phy; ci 1020 drivers/usb/chipidea/core.c } else if (ci->platdata->usb_phy) { ci 1021 drivers/usb/chipidea/core.c ci->usb_phy = ci->platdata->usb_phy; ci 1024 drivers/usb/chipidea/core.c ci->phy = devm_phy_get(dev->parent, "usb-phy"); ci 1026 drivers/usb/chipidea/core.c if (PTR_ERR(ci->phy) == -EPROBE_DEFER) { ci 1029 drivers/usb/chipidea/core.c } else if (IS_ERR(ci->phy)) { ci 1030 drivers/usb/chipidea/core.c ci->phy = NULL; ci 1034 drivers/usb/chipidea/core.c if (!ci->phy) { ci 1035 drivers/usb/chipidea/core.c ci->usb_phy = devm_usb_get_phy_by_phandle(dev->parent, ci 1038 drivers/usb/chipidea/core.c if (PTR_ERR(ci->usb_phy) == -EPROBE_DEFER) { ci 1041 drivers/usb/chipidea/core.c } else if (IS_ERR(ci->usb_phy)) { ci 1042 drivers/usb/chipidea/core.c ci->usb_phy = NULL; ci 1047 drivers/usb/chipidea/core.c if (!ci->phy && !ci->usb_phy) { ci 1048 drivers/usb/chipidea/core.c ci->usb_phy = devm_usb_get_phy(dev->parent, ci 1051 drivers/usb/chipidea/core.c if (PTR_ERR(ci->usb_phy) == -EPROBE_DEFER) { ci 1054 drivers/usb/chipidea/core.c } else if (IS_ERR(ci->usb_phy)) { ci 1055 drivers/usb/chipidea/core.c ci->usb_phy = NULL; ci 1060 drivers/usb/chipidea/core.c if (!ci->phy && !ci->usb_phy) { ci 1066 drivers/usb/chipidea/core.c ret = ci_usb_phy_init(ci); ci 1072 drivers/usb/chipidea/core.c ci->hw_bank.phys = res->start; ci 1074 drivers/usb/chipidea/core.c ci->irq = platform_get_irq(pdev, 0); ci 1075 drivers/usb/chipidea/core.c if (ci->irq < 0) { ci 1076 drivers/usb/chipidea/core.c ret = ci->irq; ci 1080 drivers/usb/chipidea/core.c ci_get_otg_capable(ci); ci 1082 drivers/usb/chipidea/core.c dr_mode = ci->platdata->dr_mode; ci 1085 drivers/usb/chipidea/core.c ret = ci_hdrc_host_init(ci); ci 1095 drivers/usb/chipidea/core.c ret = ci_hdrc_gadget_init(ci); ci 1104 drivers/usb/chipidea/core.c if (!ci->roles[CI_ROLE_HOST] && !ci->roles[CI_ROLE_GADGET]) { ci 1110 drivers/usb/chipidea/core.c if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) { ci 1111 drivers/usb/chipidea/core.c ret = ci_hdrc_otg_init(ci); ci 1119 drivers/usb/chipidea/core.c ci->role_switch = usb_role_switch_register(dev, ci 1121 drivers/usb/chipidea/core.c if (IS_ERR(ci->role_switch)) { ci 1122 drivers/usb/chipidea/core.c ret = PTR_ERR(ci->role_switch); ci 1127 drivers/usb/chipidea/core.c if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) { ci 1128 drivers/usb/chipidea/core.c if (ci->is_otg) { ci 1129 drivers/usb/chipidea/core.c ci->role = ci_otg_role(ci); ci 1131 drivers/usb/chipidea/core.c hw_write_otgsc(ci, OTGSC_IDIE, OTGSC_IDIE); ci 1138 drivers/usb/chipidea/core.c ci->role = CI_ROLE_GADGET; ci 1141 drivers/usb/chipidea/core.c ci->role = ci->roles[CI_ROLE_HOST] ci 1146 drivers/usb/chipidea/core.c if (!ci_otg_is_fsm_mode(ci)) { ci 1148 drivers/usb/chipidea/core.c if (ci->role == CI_ROLE_GADGET) ci 1149 drivers/usb/chipidea/core.c ci_handle_vbus_change(ci); ci 1151 drivers/usb/chipidea/core.c ret = ci_role_start(ci, ci->role); ci 1154 drivers/usb/chipidea/core.c ci_role(ci)->name); ci 1159 drivers/usb/chipidea/core.c ret = devm_request_irq(dev, ci->irq, ci_irq, IRQF_SHARED, ci 1160 drivers/usb/chipidea/core.c ci->platdata->name, ci); ci 1164 drivers/usb/chipidea/core.c ret = ci_extcon_register(ci); ci 1168 drivers/usb/chipidea/core.c if (ci->supports_runtime_pm) { ci 1172 drivers/usb/chipidea/core.c pm_runtime_mark_last_busy(ci->dev); ci 1176 drivers/usb/chipidea/core.c if (ci_otg_is_fsm_mode(ci)) ci 1177 drivers/usb/chipidea/core.c ci_hdrc_otg_fsm_start(ci); ci 1180 drivers/usb/chipidea/core.c dbg_create_files(ci); ci 1185 drivers/usb/chipidea/core.c if (ci->role_switch) ci 1186 drivers/usb/chipidea/core.c usb_role_switch_unregister(ci->role_switch); ci 1188 drivers/usb/chipidea/core.c if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) ci 1189 drivers/usb/chipidea/core.c ci_hdrc_otg_destroy(ci); ci 1191 drivers/usb/chipidea/core.c ci_hdrc_gadget_destroy(ci); ci 1193 drivers/usb/chipidea/core.c ci_hdrc_host_destroy(ci); ci 1195 drivers/usb/chipidea/core.c ci_usb_phy_exit(ci); ci 1197 drivers/usb/chipidea/core.c ci_ulpi_exit(ci); ci 1204 drivers/usb/chipidea/core.c struct ci_hdrc *ci = platform_get_drvdata(pdev); ci 1206 drivers/usb/chipidea/core.c if (ci->role_switch) ci 1207 drivers/usb/chipidea/core.c usb_role_switch_unregister(ci->role_switch); ci 1209 drivers/usb/chipidea/core.c if (ci->supports_runtime_pm) { ci 1215 drivers/usb/chipidea/core.c dbg_remove_files(ci); ci 1216 drivers/usb/chipidea/core.c ci_role_destroy(ci); ci 1217 drivers/usb/chipidea/core.c ci_hdrc_enter_lpm(ci, true); ci 1218 drivers/usb/chipidea/core.c ci_usb_phy_exit(ci); ci 1219 drivers/usb/chipidea/core.c ci_ulpi_exit(ci); ci 1226 drivers/usb/chipidea/core.c static void ci_otg_fsm_suspend_for_srp(struct ci_hdrc *ci) ci 1228 drivers/usb/chipidea/core.c if ((ci->fsm.otg->state == OTG_STATE_A_IDLE) && ci 1229 drivers/usb/chipidea/core.c !hw_read_otgsc(ci, OTGSC_ID)) { ci 1230 drivers/usb/chipidea/core.c hw_write(ci, OP_PORTSC, PORTSC_W1C_BITS | PORTSC_PP, ci 1232 drivers/usb/chipidea/core.c hw_write(ci, OP_PORTSC, PORTSC_W1C_BITS | PORTSC_WKCN, ci 1238 drivers/usb/chipidea/core.c static void ci_otg_fsm_wakeup_by_srp(struct ci_hdrc *ci) ci 1240 drivers/usb/chipidea/core.c if ((ci->fsm.otg->state == OTG_STATE_A_IDLE) && ci 1241 drivers/usb/chipidea/core.c (ci->fsm.a_bus_drop == 1) && (ci->fsm.a_bus_req == 0)) { ci 1242 drivers/usb/chipidea/core.c if (!hw_read_otgsc(ci, OTGSC_ID)) { ci 1243 drivers/usb/chipidea/core.c ci->fsm.a_srp_det = 1; ci 1244 drivers/usb/chipidea/core.c ci->fsm.a_bus_drop = 0; ci 1246 drivers/usb/chipidea/core.c ci->fsm.id = 1; ci 1248 drivers/usb/chipidea/core.c ci_otg_queue_work(ci); ci 1252 drivers/usb/chipidea/core.c static void ci_controller_suspend(struct ci_hdrc *ci) ci 1254 drivers/usb/chipidea/core.c disable_irq(ci->irq); ci 1255 drivers/usb/chipidea/core.c ci_hdrc_enter_lpm(ci, true); ci 1256 drivers/usb/chipidea/core.c if (ci->platdata->phy_clkgate_delay_us) ci 1257 drivers/usb/chipidea/core.c usleep_range(ci->platdata->phy_clkgate_delay_us, ci 1258 drivers/usb/chipidea/core.c ci->platdata->phy_clkgate_delay_us + 50); ci 1259 drivers/usb/chipidea/core.c usb_phy_set_suspend(ci->usb_phy, 1); ci 1260 drivers/usb/chipidea/core.c ci->in_lpm = true; ci 1261 drivers/usb/chipidea/core.c enable_irq(ci->irq); ci 1266 drivers/usb/chipidea/core.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 1271 drivers/usb/chipidea/core.c if (!ci->in_lpm) { ci 1276 drivers/usb/chipidea/core.c ci_hdrc_enter_lpm(ci, false); ci 1278 drivers/usb/chipidea/core.c ret = ci_ulpi_resume(ci); ci 1282 drivers/usb/chipidea/core.c if (ci->usb_phy) { ci 1283 drivers/usb/chipidea/core.c usb_phy_set_suspend(ci->usb_phy, 0); ci 1284 drivers/usb/chipidea/core.c usb_phy_set_wakeup(ci->usb_phy, false); ci 1288 drivers/usb/chipidea/core.c ci->in_lpm = false; ci 1289 drivers/usb/chipidea/core.c if (ci->wakeup_int) { ci 1290 drivers/usb/chipidea/core.c ci->wakeup_int = false; ci 1291 drivers/usb/chipidea/core.c pm_runtime_mark_last_busy(ci->dev); ci 1292 drivers/usb/chipidea/core.c pm_runtime_put_autosuspend(ci->dev); ci 1293 drivers/usb/chipidea/core.c enable_irq(ci->irq); ci 1294 drivers/usb/chipidea/core.c if (ci_otg_is_fsm_mode(ci)) ci 1295 drivers/usb/chipidea/core.c ci_otg_fsm_wakeup_by_srp(ci); ci 1304 drivers/usb/chipidea/core.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 1306 drivers/usb/chipidea/core.c if (ci->wq) ci 1307 drivers/usb/chipidea/core.c flush_workqueue(ci->wq); ci 1314 drivers/usb/chipidea/core.c if (ci->in_lpm) ci 1317 drivers/usb/chipidea/core.c if (ci->in_lpm) { ci 1323 drivers/usb/chipidea/core.c if (ci_otg_is_fsm_mode(ci)) ci 1324 drivers/usb/chipidea/core.c ci_otg_fsm_suspend_for_srp(ci); ci 1326 drivers/usb/chipidea/core.c usb_phy_set_wakeup(ci->usb_phy, true); ci 1327 drivers/usb/chipidea/core.c enable_irq_wake(ci->irq); ci 1330 drivers/usb/chipidea/core.c ci_controller_suspend(ci); ci 1337 drivers/usb/chipidea/core.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 1341 drivers/usb/chipidea/core.c disable_irq_wake(ci->irq); ci 1347 drivers/usb/chipidea/core.c if (ci->supports_runtime_pm) { ci 1359 drivers/usb/chipidea/core.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 1363 drivers/usb/chipidea/core.c if (ci->in_lpm) { ci 1368 drivers/usb/chipidea/core.c if (ci_otg_is_fsm_mode(ci)) ci 1369 drivers/usb/chipidea/core.c ci_otg_fsm_suspend_for_srp(ci); ci 1371 drivers/usb/chipidea/core.c usb_phy_set_wakeup(ci->usb_phy, true); ci 1372 drivers/usb/chipidea/core.c ci_controller_suspend(ci); ci 26 drivers/usb/chipidea/debug.c struct ci_hdrc *ci = s->private; ci 27 drivers/usb/chipidea/debug.c struct usb_gadget *gadget = &ci->gadget; ci 39 drivers/usb/chipidea/debug.c if (!ci->driver) ci 43 drivers/usb/chipidea/debug.c (ci->driver->function ? ci->driver->function : "")); ci 44 drivers/usb/chipidea/debug.c seq_printf(s, "gadget max speed = %d\n", ci->driver->max_speed); ci 55 drivers/usb/chipidea/debug.c struct ci_hdrc *ci = s->private; ci 59 drivers/usb/chipidea/debug.c pm_runtime_get_sync(ci->dev); ci 60 drivers/usb/chipidea/debug.c spin_lock_irqsave(&ci->lock, flags); ci 61 drivers/usb/chipidea/debug.c mode = hw_port_test_get(ci); ci 62 drivers/usb/chipidea/debug.c spin_unlock_irqrestore(&ci->lock, flags); ci 63 drivers/usb/chipidea/debug.c pm_runtime_put_sync(ci->dev); ci 77 drivers/usb/chipidea/debug.c struct ci_hdrc *ci = s->private; ci 96 drivers/usb/chipidea/debug.c pm_runtime_get_sync(ci->dev); ci 97 drivers/usb/chipidea/debug.c spin_lock_irqsave(&ci->lock, flags); ci 98 drivers/usb/chipidea/debug.c ret = hw_port_test_set(ci, mode); ci 99 drivers/usb/chipidea/debug.c spin_unlock_irqrestore(&ci->lock, flags); ci 100 drivers/usb/chipidea/debug.c pm_runtime_put_sync(ci->dev); ci 123 drivers/usb/chipidea/debug.c struct ci_hdrc *ci = s->private; ci 127 drivers/usb/chipidea/debug.c if (ci->role != CI_ROLE_GADGET) { ci 132 drivers/usb/chipidea/debug.c spin_lock_irqsave(&ci->lock, flags); ci 133 drivers/usb/chipidea/debug.c for (i = 0; i < ci->hw_ep_max/2; i++) { ci 134 drivers/usb/chipidea/debug.c struct ci_hw_ep *hweprx = &ci->ci_hw_ep[i]; ci 136 drivers/usb/chipidea/debug.c &ci->ci_hw_ep[i + ci->hw_ep_max/2]; ci 144 drivers/usb/chipidea/debug.c spin_unlock_irqrestore(&ci->lock, flags); ci 155 drivers/usb/chipidea/debug.c struct ci_hdrc *ci = s->private; ci 161 drivers/usb/chipidea/debug.c if (ci->role != CI_ROLE_GADGET) { ci 166 drivers/usb/chipidea/debug.c spin_lock_irqsave(&ci->lock, flags); ci 167 drivers/usb/chipidea/debug.c for (i = 0; i < ci->hw_ep_max; i++) ci 168 drivers/usb/chipidea/debug.c list_for_each_entry(req, &ci->ci_hw_ep[i].qh.queue, queue) { ci 171 drivers/usb/chipidea/debug.c i % (ci->hw_ep_max / 2), ci 173 drivers/usb/chipidea/debug.c ((i < ci->hw_ep_max/2) ? ci 181 drivers/usb/chipidea/debug.c spin_unlock_irqrestore(&ci->lock, flags); ci 189 drivers/usb/chipidea/debug.c struct ci_hdrc *ci = s->private; ci 192 drivers/usb/chipidea/debug.c if (!ci || !ci_otg_is_fsm_mode(ci)) ci 195 drivers/usb/chipidea/debug.c fsm = &ci->fsm; ci 199 drivers/usb/chipidea/debug.c usb_otg_state_string(ci->otg.state)); ci 252 drivers/usb/chipidea/debug.c struct ci_hdrc *ci = s->private; ci 254 drivers/usb/chipidea/debug.c if (ci->role != CI_ROLE_END) ci 255 drivers/usb/chipidea/debug.c seq_printf(s, "%s\n", ci_role(ci)->name); ci 264 drivers/usb/chipidea/debug.c struct ci_hdrc *ci = s->private; ci 273 drivers/usb/chipidea/debug.c if (ci->roles[role] && ci 274 drivers/usb/chipidea/debug.c !strncmp(buf, ci->roles[role]->name, ci 275 drivers/usb/chipidea/debug.c strlen(ci->roles[role]->name))) ci 278 drivers/usb/chipidea/debug.c if (role == CI_ROLE_END || role == ci->role) ci 281 drivers/usb/chipidea/debug.c pm_runtime_get_sync(ci->dev); ci 282 drivers/usb/chipidea/debug.c disable_irq(ci->irq); ci 283 drivers/usb/chipidea/debug.c ci_role_stop(ci); ci 284 drivers/usb/chipidea/debug.c ret = ci_role_start(ci, role); ci 285 drivers/usb/chipidea/debug.c enable_irq(ci->irq); ci 286 drivers/usb/chipidea/debug.c pm_runtime_put_sync(ci->dev); ci 306 drivers/usb/chipidea/debug.c struct ci_hdrc *ci = s->private; ci 309 drivers/usb/chipidea/debug.c if (!ci || ci->in_lpm) ci 313 drivers/usb/chipidea/debug.c tmp_reg = hw_read_intr_enable(ci); ci 316 drivers/usb/chipidea/debug.c tmp_reg = hw_read_intr_status(ci); ci 319 drivers/usb/chipidea/debug.c tmp_reg = hw_read(ci, OP_USBMODE, ~0); ci 322 drivers/usb/chipidea/debug.c tmp_reg = hw_read(ci, OP_USBCMD, ~0); ci 325 drivers/usb/chipidea/debug.c tmp_reg = hw_read(ci, OP_PORTSC, ~0); ci 328 drivers/usb/chipidea/debug.c if (ci->is_otg) { ci 329 drivers/usb/chipidea/debug.c tmp_reg = hw_read_otgsc(ci, ~0); ci 343 drivers/usb/chipidea/debug.c void dbg_create_files(struct ci_hdrc *ci) ci 345 drivers/usb/chipidea/debug.c ci->debugfs = debugfs_create_dir(dev_name(ci->dev), NULL); ci 347 drivers/usb/chipidea/debug.c debugfs_create_file("device", S_IRUGO, ci->debugfs, ci, ci 349 drivers/usb/chipidea/debug.c debugfs_create_file("port_test", S_IRUGO | S_IWUSR, ci->debugfs, ci, ci 351 drivers/usb/chipidea/debug.c debugfs_create_file("qheads", S_IRUGO, ci->debugfs, ci, ci 353 drivers/usb/chipidea/debug.c debugfs_create_file("requests", S_IRUGO, ci->debugfs, ci, ci 356 drivers/usb/chipidea/debug.c if (ci_otg_is_fsm_mode(ci)) { ci 357 drivers/usb/chipidea/debug.c debugfs_create_file("otg", S_IRUGO, ci->debugfs, ci, ci 361 drivers/usb/chipidea/debug.c debugfs_create_file("role", S_IRUGO | S_IWUSR, ci->debugfs, ci, ci 363 drivers/usb/chipidea/debug.c debugfs_create_file("registers", S_IRUGO, ci->debugfs, ci, ci 371 drivers/usb/chipidea/debug.c void dbg_remove_files(struct ci_hdrc *ci) ci 373 drivers/usb/chipidea/debug.c debugfs_remove_recursive(ci->debugfs); ci 37 drivers/usb/chipidea/host.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 60 drivers/usb/chipidea/host.c if (enable && (ci->platdata->phy_mode == USBPHY_INTERFACE_MODE_HSIC)) { ci 65 drivers/usb/chipidea/host.c hw_port_test_set(ci, 5); ci 66 drivers/usb/chipidea/host.c hw_port_test_set(ci, 0); ci 74 drivers/usb/chipidea/host.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 84 drivers/usb/chipidea/host.c if (ci->platdata->notify_event) { ci 85 drivers/usb/chipidea/host.c ret = ci->platdata->notify_event(ci, ci 91 drivers/usb/chipidea/host.c ci_platform_configure(ci); ci 102 drivers/usb/chipidea/host.c static irqreturn_t host_irq(struct ci_hdrc *ci) ci 104 drivers/usb/chipidea/host.c return usb_hcd_irq(ci->irq, ci->hcd); ci 107 drivers/usb/chipidea/host.c static int host_start(struct ci_hdrc *ci) ci 117 drivers/usb/chipidea/host.c hcd = __usb_create_hcd(&ci_ehci_hc_driver, ci->dev->parent, ci 118 drivers/usb/chipidea/host.c ci->dev, dev_name(ci->dev), NULL); ci 122 drivers/usb/chipidea/host.c dev_set_drvdata(ci->dev, ci); ci 123 drivers/usb/chipidea/host.c hcd->rsrc_start = ci->hw_bank.phys; ci 124 drivers/usb/chipidea/host.c hcd->rsrc_len = ci->hw_bank.size; ci 125 drivers/usb/chipidea/host.c hcd->regs = ci->hw_bank.abs; ci 128 drivers/usb/chipidea/host.c hcd->power_budget = ci->platdata->power_budget; ci 129 drivers/usb/chipidea/host.c hcd->tpl_support = ci->platdata->tpl_support; ci 130 drivers/usb/chipidea/host.c if (ci->phy || ci->usb_phy) { ci 132 drivers/usb/chipidea/host.c if (ci->usb_phy) ci 133 drivers/usb/chipidea/host.c hcd->usb_phy = ci->usb_phy; ci 137 drivers/usb/chipidea/host.c ehci->caps = ci->hw_bank.cap; ci 138 drivers/usb/chipidea/host.c ehci->has_hostpc = ci->hw_bank.lpm; ci 139 drivers/usb/chipidea/host.c ehci->has_tdi_phy_lpm = ci->hw_bank.lpm; ci 140 drivers/usb/chipidea/host.c ehci->imx28_write_fix = ci->imx28_write_fix; ci 145 drivers/usb/chipidea/host.c if (ci->platdata->reg_vbus && !ci_otg_is_fsm_mode(ci)) { ci 146 drivers/usb/chipidea/host.c if (ci->platdata->flags & CI_HDRC_TURN_VBUS_EARLY_ON) { ci 147 drivers/usb/chipidea/host.c ret = regulator_enable(ci->platdata->reg_vbus); ci 149 drivers/usb/chipidea/host.c dev_err(ci->dev, ci 155 drivers/usb/chipidea/host.c priv->reg_vbus = ci->platdata->reg_vbus; ci 159 drivers/usb/chipidea/host.c if (ci->platdata->pins_host) ci 160 drivers/usb/chipidea/host.c pinctrl_select_state(ci->platdata->pctl, ci 161 drivers/usb/chipidea/host.c ci->platdata->pins_host); ci 167 drivers/usb/chipidea/host.c struct usb_otg *otg = &ci->otg; ci 169 drivers/usb/chipidea/host.c ci->hcd = hcd; ci 171 drivers/usb/chipidea/host.c if (ci_otg_is_fsm_mode(ci)) { ci 176 drivers/usb/chipidea/host.c if (ci->platdata->notify_event && ci 177 drivers/usb/chipidea/host.c (ci->platdata->flags & CI_HDRC_IMX_IS_HSIC)) ci 178 drivers/usb/chipidea/host.c ci->platdata->notify_event ci 179 drivers/usb/chipidea/host.c (ci, CI_HDRC_IMX_HSIC_ACTIVE_EVENT); ci 185 drivers/usb/chipidea/host.c if (ci->platdata->reg_vbus && !ci_otg_is_fsm_mode(ci) && ci 186 drivers/usb/chipidea/host.c (ci->platdata->flags & CI_HDRC_TURN_VBUS_EARLY_ON)) ci 187 drivers/usb/chipidea/host.c regulator_disable(ci->platdata->reg_vbus); ci 194 drivers/usb/chipidea/host.c static void host_stop(struct ci_hdrc *ci) ci 196 drivers/usb/chipidea/host.c struct usb_hcd *hcd = ci->hcd; ci 199 drivers/usb/chipidea/host.c if (ci->platdata->notify_event) ci 200 drivers/usb/chipidea/host.c ci->platdata->notify_event(ci, ci 203 drivers/usb/chipidea/host.c ci->role = CI_ROLE_END; ci 204 drivers/usb/chipidea/host.c synchronize_irq(ci->irq); ci 206 drivers/usb/chipidea/host.c if (ci->platdata->reg_vbus && !ci_otg_is_fsm_mode(ci) && ci 207 drivers/usb/chipidea/host.c (ci->platdata->flags & CI_HDRC_TURN_VBUS_EARLY_ON)) ci 208 drivers/usb/chipidea/host.c regulator_disable(ci->platdata->reg_vbus); ci 210 drivers/usb/chipidea/host.c ci->hcd = NULL; ci 211 drivers/usb/chipidea/host.c ci->otg.host = NULL; ci 213 drivers/usb/chipidea/host.c if (ci->platdata->pins_host && ci->platdata->pins_default) ci 214 drivers/usb/chipidea/host.c pinctrl_select_state(ci->platdata->pctl, ci 215 drivers/usb/chipidea/host.c ci->platdata->pins_default); ci 219 drivers/usb/chipidea/host.c void ci_hdrc_host_destroy(struct ci_hdrc *ci) ci 221 drivers/usb/chipidea/host.c if (ci->role == CI_ROLE_HOST && ci->hcd) ci 222 drivers/usb/chipidea/host.c host_stop(ci); ci 241 drivers/usb/chipidea/host.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 266 drivers/usb/chipidea/host.c if (ci->platdata->flags & CI_HDRC_IMX_IS_HSIC) { ci 267 drivers/usb/chipidea/host.c if (ci->platdata->notify_event) ci 268 drivers/usb/chipidea/host.c ci->platdata->notify_event(ci, ci 303 drivers/usb/chipidea/host.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 339 drivers/usb/chipidea/host.c if (ci->platdata->flags & CI_HDRC_IMX_IS_HSIC) { ci 352 drivers/usb/chipidea/host.c int ci_hdrc_host_init(struct ci_hdrc *ci) ci 356 drivers/usb/chipidea/host.c if (!hw_read(ci, CAP_DCCPARAMS, DCCPARAMS_HC)) ci 359 drivers/usb/chipidea/host.c rdrv = devm_kzalloc(ci->dev, sizeof(struct ci_role_driver), GFP_KERNEL); ci 367 drivers/usb/chipidea/host.c ci->roles[CI_ROLE_HOST] = rdrv; ci 7 drivers/usb/chipidea/host.h int ci_hdrc_host_init(struct ci_hdrc *ci); ci 8 drivers/usb/chipidea/host.h void ci_hdrc_host_destroy(struct ci_hdrc *ci); ci 13 drivers/usb/chipidea/host.h static inline int ci_hdrc_host_init(struct ci_hdrc *ci) ci 18 drivers/usb/chipidea/host.h static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci) ci 28 drivers/usb/chipidea/otg.c u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask) ci 31 drivers/usb/chipidea/otg.c u32 val = hw_read(ci, OP_OTGSC, mask); ci 37 drivers/usb/chipidea/otg.c cable = &ci->platdata->vbus_extcon; ci 38 drivers/usb/chipidea/otg.c if (!IS_ERR(cable->edev) || ci->role_switch) { ci 55 drivers/usb/chipidea/otg.c cable = &ci->platdata->id_extcon; ci 56 drivers/usb/chipidea/otg.c if (!IS_ERR(cable->edev) || ci->role_switch) { ci 81 drivers/usb/chipidea/otg.c void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data) ci 85 drivers/usb/chipidea/otg.c cable = &ci->platdata->vbus_extcon; ci 86 drivers/usb/chipidea/otg.c if (!IS_ERR(cable->edev) || ci->role_switch) { ci 99 drivers/usb/chipidea/otg.c cable = &ci->platdata->id_extcon; ci 100 drivers/usb/chipidea/otg.c if (!IS_ERR(cable->edev) || ci->role_switch) { ci 113 drivers/usb/chipidea/otg.c hw_write(ci, OP_OTGSC, mask | OTGSC_INT_STATUS_BITS, data); ci 120 drivers/usb/chipidea/otg.c enum ci_role ci_otg_role(struct ci_hdrc *ci) ci 122 drivers/usb/chipidea/otg.c enum ci_role role = hw_read_otgsc(ci, OTGSC_ID) ci 129 drivers/usb/chipidea/otg.c void ci_handle_vbus_change(struct ci_hdrc *ci) ci 131 drivers/usb/chipidea/otg.c if (!ci->is_otg) ci 134 drivers/usb/chipidea/otg.c if (hw_read_otgsc(ci, OTGSC_BSV) && !ci->vbus_active) ci 135 drivers/usb/chipidea/otg.c usb_gadget_vbus_connect(&ci->gadget); ci 136 drivers/usb/chipidea/otg.c else if (!hw_read_otgsc(ci, OTGSC_BSV) && ci->vbus_active) ci 137 drivers/usb/chipidea/otg.c usb_gadget_vbus_disconnect(&ci->gadget); ci 148 drivers/usb/chipidea/otg.c static int hw_wait_vbus_lower_bsv(struct ci_hdrc *ci) ci 153 drivers/usb/chipidea/otg.c while (hw_read_otgsc(ci, mask)) { ci 155 drivers/usb/chipidea/otg.c dev_err(ci->dev, "timeout waiting for %08x in OTGSC\n", ci 165 drivers/usb/chipidea/otg.c static void ci_handle_id_switch(struct ci_hdrc *ci) ci 167 drivers/usb/chipidea/otg.c enum ci_role role = ci_otg_role(ci); ci 169 drivers/usb/chipidea/otg.c if (role != ci->role) { ci 170 drivers/usb/chipidea/otg.c dev_dbg(ci->dev, "switching from %s to %s\n", ci 171 drivers/usb/chipidea/otg.c ci_role(ci)->name, ci->roles[role]->name); ci 173 drivers/usb/chipidea/otg.c ci_role_stop(ci); ci 176 drivers/usb/chipidea/otg.c IS_ERR(ci->platdata->vbus_extcon.edev)) ci 184 drivers/usb/chipidea/otg.c hw_wait_vbus_lower_bsv(ci); ci 186 drivers/usb/chipidea/otg.c ci_role_start(ci, role); ci 189 drivers/usb/chipidea/otg.c ci_handle_vbus_change(ci); ci 198 drivers/usb/chipidea/otg.c struct ci_hdrc *ci = container_of(work, struct ci_hdrc, work); ci 200 drivers/usb/chipidea/otg.c if (ci_otg_is_fsm_mode(ci) && !ci_otg_fsm_work(ci)) { ci 201 drivers/usb/chipidea/otg.c enable_irq(ci->irq); ci 205 drivers/usb/chipidea/otg.c pm_runtime_get_sync(ci->dev); ci 207 drivers/usb/chipidea/otg.c if (ci->id_event) { ci 208 drivers/usb/chipidea/otg.c ci->id_event = false; ci 209 drivers/usb/chipidea/otg.c ci_handle_id_switch(ci); ci 212 drivers/usb/chipidea/otg.c if (ci->b_sess_valid_event) { ci 213 drivers/usb/chipidea/otg.c ci->b_sess_valid_event = false; ci 214 drivers/usb/chipidea/otg.c ci_handle_vbus_change(ci); ci 217 drivers/usb/chipidea/otg.c pm_runtime_put_sync(ci->dev); ci 219 drivers/usb/chipidea/otg.c enable_irq(ci->irq); ci 227 drivers/usb/chipidea/otg.c int ci_hdrc_otg_init(struct ci_hdrc *ci) ci 229 drivers/usb/chipidea/otg.c INIT_WORK(&ci->work, ci_otg_work); ci 230 drivers/usb/chipidea/otg.c ci->wq = create_freezable_workqueue("ci_otg"); ci 231 drivers/usb/chipidea/otg.c if (!ci->wq) { ci 232 drivers/usb/chipidea/otg.c dev_err(ci->dev, "can't create workqueue\n"); ci 236 drivers/usb/chipidea/otg.c if (ci_otg_is_fsm_mode(ci)) ci 237 drivers/usb/chipidea/otg.c return ci_hdrc_otg_fsm_init(ci); ci 246 drivers/usb/chipidea/otg.c void ci_hdrc_otg_destroy(struct ci_hdrc *ci) ci 248 drivers/usb/chipidea/otg.c if (ci->wq) { ci 249 drivers/usb/chipidea/otg.c flush_workqueue(ci->wq); ci 250 drivers/usb/chipidea/otg.c destroy_workqueue(ci->wq); ci 253 drivers/usb/chipidea/otg.c hw_write_otgsc(ci, OTGSC_INT_EN_BITS | OTGSC_INT_STATUS_BITS, ci 255 drivers/usb/chipidea/otg.c if (ci_otg_is_fsm_mode(ci)) ci 256 drivers/usb/chipidea/otg.c ci_hdrc_otg_fsm_remove(ci); ci 11 drivers/usb/chipidea/otg.h u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask); ci 12 drivers/usb/chipidea/otg.h void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data); ci 13 drivers/usb/chipidea/otg.h int ci_hdrc_otg_init(struct ci_hdrc *ci); ci 14 drivers/usb/chipidea/otg.h void ci_hdrc_otg_destroy(struct ci_hdrc *ci); ci 15 drivers/usb/chipidea/otg.h enum ci_role ci_otg_role(struct ci_hdrc *ci); ci 16 drivers/usb/chipidea/otg.h void ci_handle_vbus_change(struct ci_hdrc *ci); ci 17 drivers/usb/chipidea/otg.h static inline void ci_otg_queue_work(struct ci_hdrc *ci) ci 19 drivers/usb/chipidea/otg.h disable_irq_nosync(ci->irq); ci 20 drivers/usb/chipidea/otg.h if (queue_work(ci->wq, &ci->work) == false) ci 21 drivers/usb/chipidea/otg.h enable_irq(ci->irq); ci 36 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 40 drivers/usb/chipidea/otg_fsm.c t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_req); ci 51 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 56 drivers/usb/chipidea/otg_fsm.c mutex_lock(&ci->fsm.lock); ci 58 drivers/usb/chipidea/otg_fsm.c ci->fsm.a_bus_req = 0; ci 61 drivers/usb/chipidea/otg_fsm.c if (ci->fsm.a_bus_drop) { ci 62 drivers/usb/chipidea/otg_fsm.c mutex_unlock(&ci->fsm.lock); ci 65 drivers/usb/chipidea/otg_fsm.c ci->fsm.a_bus_req = 1; ci 66 drivers/usb/chipidea/otg_fsm.c if (ci->fsm.otg->state == OTG_STATE_A_PERIPHERAL) { ci 67 drivers/usb/chipidea/otg_fsm.c ci->gadget.host_request_flag = 1; ci 68 drivers/usb/chipidea/otg_fsm.c mutex_unlock(&ci->fsm.lock); ci 73 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 74 drivers/usb/chipidea/otg_fsm.c mutex_unlock(&ci->fsm.lock); ci 85 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 89 drivers/usb/chipidea/otg_fsm.c t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_drop); ci 100 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 105 drivers/usb/chipidea/otg_fsm.c mutex_lock(&ci->fsm.lock); ci 107 drivers/usb/chipidea/otg_fsm.c ci->fsm.a_bus_drop = 0; ci 109 drivers/usb/chipidea/otg_fsm.c ci->fsm.a_bus_drop = 1; ci 110 drivers/usb/chipidea/otg_fsm.c ci->fsm.a_bus_req = 0; ci 113 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 114 drivers/usb/chipidea/otg_fsm.c mutex_unlock(&ci->fsm.lock); ci 125 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 129 drivers/usb/chipidea/otg_fsm.c t = scnprintf(next, size, "%d\n", ci->fsm.b_bus_req); ci 140 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 145 drivers/usb/chipidea/otg_fsm.c mutex_lock(&ci->fsm.lock); ci 147 drivers/usb/chipidea/otg_fsm.c ci->fsm.b_bus_req = 0; ci 149 drivers/usb/chipidea/otg_fsm.c ci->fsm.b_bus_req = 1; ci 150 drivers/usb/chipidea/otg_fsm.c if (ci->fsm.otg->state == OTG_STATE_B_PERIPHERAL) { ci 151 drivers/usb/chipidea/otg_fsm.c ci->gadget.host_request_flag = 1; ci 152 drivers/usb/chipidea/otg_fsm.c mutex_unlock(&ci->fsm.lock); ci 157 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 158 drivers/usb/chipidea/otg_fsm.c mutex_unlock(&ci->fsm.lock); ci 168 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 173 drivers/usb/chipidea/otg_fsm.c mutex_lock(&ci->fsm.lock); ci 175 drivers/usb/chipidea/otg_fsm.c ci->fsm.a_clr_err = 1; ci 177 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 178 drivers/usb/chipidea/otg_fsm.c mutex_unlock(&ci->fsm.lock); ci 219 drivers/usb/chipidea/otg_fsm.c static void ci_otg_add_timer(struct ci_hdrc *ci, enum otg_fsm_timer t) ci 226 drivers/usb/chipidea/otg_fsm.c spin_lock_irqsave(&ci->lock, flags); ci 229 drivers/usb/chipidea/otg_fsm.c ci->hr_timeouts[t] = ktime_add(ktime_get(), ci 231 drivers/usb/chipidea/otg_fsm.c ci->enabled_otg_timer_bits |= (1 << t); ci 232 drivers/usb/chipidea/otg_fsm.c if ((ci->next_otg_timer == NUM_OTG_FSM_TIMERS) || ci 233 drivers/usb/chipidea/otg_fsm.c ktime_after(ci->hr_timeouts[ci->next_otg_timer], ci 234 drivers/usb/chipidea/otg_fsm.c ci->hr_timeouts[t])) { ci 235 drivers/usb/chipidea/otg_fsm.c ci->next_otg_timer = t; ci 236 drivers/usb/chipidea/otg_fsm.c hrtimer_start_range_ns(&ci->otg_fsm_hrtimer, ci 237 drivers/usb/chipidea/otg_fsm.c ci->hr_timeouts[t], NSEC_PER_MSEC, ci 240 drivers/usb/chipidea/otg_fsm.c spin_unlock_irqrestore(&ci->lock, flags); ci 246 drivers/usb/chipidea/otg_fsm.c static void ci_otg_del_timer(struct ci_hdrc *ci, enum otg_fsm_timer t) ci 252 drivers/usb/chipidea/otg_fsm.c !(ci->enabled_otg_timer_bits & (1 << t))) ci 255 drivers/usb/chipidea/otg_fsm.c spin_lock_irqsave(&ci->lock, flags); ci 256 drivers/usb/chipidea/otg_fsm.c ci->enabled_otg_timer_bits &= ~(1 << t); ci 257 drivers/usb/chipidea/otg_fsm.c if (ci->next_otg_timer == t) { ci 258 drivers/usb/chipidea/otg_fsm.c if (ci->enabled_otg_timer_bits == 0) { ci 260 drivers/usb/chipidea/otg_fsm.c hrtimer_cancel(&ci->otg_fsm_hrtimer); ci 261 drivers/usb/chipidea/otg_fsm.c ci->next_otg_timer = NUM_OTG_FSM_TIMERS; ci 264 drivers/usb/chipidea/otg_fsm.c enabled_timer_bits = ci->enabled_otg_timer_bits; ci 268 drivers/usb/chipidea/otg_fsm.c ktime_before(ci->hr_timeouts[next_timer], ci 269 drivers/usb/chipidea/otg_fsm.c ci->hr_timeouts[cur_timer])) ci 275 drivers/usb/chipidea/otg_fsm.c ci->next_otg_timer = next_timer; ci 276 drivers/usb/chipidea/otg_fsm.c hrtimer_start_range_ns(&ci->otg_fsm_hrtimer, ci 277 drivers/usb/chipidea/otg_fsm.c ci->hr_timeouts[next_timer], NSEC_PER_MSEC, ci 280 drivers/usb/chipidea/otg_fsm.c spin_unlock_irqrestore(&ci->lock, flags); ci 284 drivers/usb/chipidea/otg_fsm.c static int a_wait_vrise_tmout(struct ci_hdrc *ci) ci 286 drivers/usb/chipidea/otg_fsm.c ci->fsm.a_wait_vrise_tmout = 1; ci 290 drivers/usb/chipidea/otg_fsm.c static int a_wait_vfall_tmout(struct ci_hdrc *ci) ci 292 drivers/usb/chipidea/otg_fsm.c ci->fsm.a_wait_vfall_tmout = 1; ci 296 drivers/usb/chipidea/otg_fsm.c static int a_wait_bcon_tmout(struct ci_hdrc *ci) ci 298 drivers/usb/chipidea/otg_fsm.c ci->fsm.a_wait_bcon_tmout = 1; ci 302 drivers/usb/chipidea/otg_fsm.c static int a_aidl_bdis_tmout(struct ci_hdrc *ci) ci 304 drivers/usb/chipidea/otg_fsm.c ci->fsm.a_aidl_bdis_tmout = 1; ci 308 drivers/usb/chipidea/otg_fsm.c static int b_ase0_brst_tmout(struct ci_hdrc *ci) ci 310 drivers/usb/chipidea/otg_fsm.c ci->fsm.b_ase0_brst_tmout = 1; ci 314 drivers/usb/chipidea/otg_fsm.c static int a_bidl_adis_tmout(struct ci_hdrc *ci) ci 316 drivers/usb/chipidea/otg_fsm.c ci->fsm.a_bidl_adis_tmout = 1; ci 320 drivers/usb/chipidea/otg_fsm.c static int b_aidl_bdis_tmout(struct ci_hdrc *ci) ci 322 drivers/usb/chipidea/otg_fsm.c ci->fsm.a_bus_suspend = 1; ci 326 drivers/usb/chipidea/otg_fsm.c static int b_se0_srp_tmout(struct ci_hdrc *ci) ci 328 drivers/usb/chipidea/otg_fsm.c ci->fsm.b_se0_srp = 1; ci 332 drivers/usb/chipidea/otg_fsm.c static int b_srp_fail_tmout(struct ci_hdrc *ci) ci 334 drivers/usb/chipidea/otg_fsm.c ci->fsm.b_srp_done = 1; ci 338 drivers/usb/chipidea/otg_fsm.c static int b_data_pls_tmout(struct ci_hdrc *ci) ci 340 drivers/usb/chipidea/otg_fsm.c ci->fsm.b_srp_done = 1; ci 341 drivers/usb/chipidea/otg_fsm.c ci->fsm.b_bus_req = 0; ci 342 drivers/usb/chipidea/otg_fsm.c if (ci->fsm.power_up) ci 343 drivers/usb/chipidea/otg_fsm.c ci->fsm.power_up = 0; ci 344 drivers/usb/chipidea/otg_fsm.c hw_write_otgsc(ci, OTGSC_HABA, 0); ci 345 drivers/usb/chipidea/otg_fsm.c pm_runtime_put(ci->dev); ci 349 drivers/usb/chipidea/otg_fsm.c static int b_ssend_srp_tmout(struct ci_hdrc *ci) ci 351 drivers/usb/chipidea/otg_fsm.c ci->fsm.b_ssend_srp = 1; ci 353 drivers/usb/chipidea/otg_fsm.c if (ci->fsm.otg->state == OTG_STATE_B_IDLE) ci 383 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = container_of(t, struct ci_hdrc, otg_fsm_hrtimer); ci 390 drivers/usb/chipidea/otg_fsm.c spin_lock_irqsave(&ci->lock, flags); ci 391 drivers/usb/chipidea/otg_fsm.c enabled_timer_bits = ci->enabled_otg_timer_bits; ci 392 drivers/usb/chipidea/otg_fsm.c ci->next_otg_timer = NUM_OTG_FSM_TIMERS; ci 396 drivers/usb/chipidea/otg_fsm.c if (ktime_compare(now, ci->hr_timeouts[cur_timer]) >= 0) { ci 397 drivers/usb/chipidea/otg_fsm.c ci->enabled_otg_timer_bits &= ~(1 << cur_timer); ci 399 drivers/usb/chipidea/otg_fsm.c ret = otg_timer_handlers[cur_timer](ci); ci 402 drivers/usb/chipidea/otg_fsm.c ktime_before(ci->hr_timeouts[cur_timer], ci 403 drivers/usb/chipidea/otg_fsm.c ci->hr_timeouts[next_timer])) ci 409 drivers/usb/chipidea/otg_fsm.c timeout = &ci->hr_timeouts[next_timer]; ci 410 drivers/usb/chipidea/otg_fsm.c hrtimer_start_range_ns(&ci->otg_fsm_hrtimer, *timeout, ci 412 drivers/usb/chipidea/otg_fsm.c ci->next_otg_timer = next_timer; ci 414 drivers/usb/chipidea/otg_fsm.c spin_unlock_irqrestore(&ci->lock, flags); ci 417 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 423 drivers/usb/chipidea/otg_fsm.c static int ci_otg_init_timers(struct ci_hdrc *ci) ci 425 drivers/usb/chipidea/otg_fsm.c hrtimer_init(&ci->otg_fsm_hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); ci 426 drivers/usb/chipidea/otg_fsm.c ci->otg_fsm_hrtimer.function = ci_otg_hrtimer_func; ci 436 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); ci 439 drivers/usb/chipidea/otg_fsm.c ci_otg_add_timer(ci, t); ci 445 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); ci 448 drivers/usb/chipidea/otg_fsm.c ci_otg_del_timer(ci, t); ci 459 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); ci 463 drivers/usb/chipidea/otg_fsm.c hw_write(ci, OP_PORTSC, PORTSC_W1C_BITS | PORTSC_PP, ci 465 drivers/usb/chipidea/otg_fsm.c if (ci->platdata->reg_vbus) { ci 466 drivers/usb/chipidea/otg_fsm.c ret = regulator_enable(ci->platdata->reg_vbus); ci 468 drivers/usb/chipidea/otg_fsm.c dev_err(ci->dev, ci 475 drivers/usb/chipidea/otg_fsm.c hw_write_otgsc(ci, OTGSC_DPIE, 0); ci 480 drivers/usb/chipidea/otg_fsm.c if (ci->platdata->reg_vbus) ci 481 drivers/usb/chipidea/otg_fsm.c regulator_disable(ci->platdata->reg_vbus); ci 493 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); ci 496 drivers/usb/chipidea/otg_fsm.c hw_write(ci, OP_USBCMD, USBCMD_RS, USBCMD_RS); ci 498 drivers/usb/chipidea/otg_fsm.c hw_write(ci, OP_USBCMD, USBCMD_RS, 0); ci 535 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); ci 538 drivers/usb/chipidea/otg_fsm.c hw_write_otgsc(ci, OTGSC_HADP, OTGSC_HADP); ci 540 drivers/usb/chipidea/otg_fsm.c pm_runtime_get(ci->dev); ci 541 drivers/usb/chipidea/otg_fsm.c ci_otg_add_timer(ci, B_DATA_PLS); ci 546 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); ci 549 drivers/usb/chipidea/otg_fsm.c ci_role_stop(ci); ci 550 drivers/usb/chipidea/otg_fsm.c ci_role_start(ci, CI_ROLE_HOST); ci 552 drivers/usb/chipidea/otg_fsm.c ci_role_stop(ci); ci 553 drivers/usb/chipidea/otg_fsm.c ci_role_start(ci, CI_ROLE_GADGET); ci 560 drivers/usb/chipidea/otg_fsm.c struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); ci 563 drivers/usb/chipidea/otg_fsm.c usb_gadget_vbus_connect(&ci->gadget); ci 565 drivers/usb/chipidea/otg_fsm.c usb_gadget_vbus_disconnect(&ci->gadget); ci 581 drivers/usb/chipidea/otg_fsm.c int ci_otg_fsm_work(struct ci_hdrc *ci) ci 587 drivers/usb/chipidea/otg_fsm.c if (ci->fsm.id && !(ci->driver) && ci 588 drivers/usb/chipidea/otg_fsm.c ci->fsm.otg->state < OTG_STATE_A_IDLE) ci 591 drivers/usb/chipidea/otg_fsm.c pm_runtime_get_sync(ci->dev); ci 592 drivers/usb/chipidea/otg_fsm.c if (otg_statemachine(&ci->fsm)) { ci 593 drivers/usb/chipidea/otg_fsm.c if (ci->fsm.otg->state == OTG_STATE_A_IDLE) { ci 602 drivers/usb/chipidea/otg_fsm.c if ((ci->fsm.id) || (ci->id_event) || ci 603 drivers/usb/chipidea/otg_fsm.c (ci->fsm.power_up)) { ci 604 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 607 drivers/usb/chipidea/otg_fsm.c hw_write(ci, OP_PORTSC, PORTSC_W1C_BITS | ci 609 drivers/usb/chipidea/otg_fsm.c hw_write_otgsc(ci, OTGSC_DPIS, OTGSC_DPIS); ci 610 drivers/usb/chipidea/otg_fsm.c hw_write_otgsc(ci, OTGSC_DPIE, OTGSC_DPIE); ci 612 drivers/usb/chipidea/otg_fsm.c if (ci->id_event) ci 613 drivers/usb/chipidea/otg_fsm.c ci->id_event = false; ci 614 drivers/usb/chipidea/otg_fsm.c } else if (ci->fsm.otg->state == OTG_STATE_B_IDLE) { ci 615 drivers/usb/chipidea/otg_fsm.c if (ci->fsm.b_sess_vld) { ci 616 drivers/usb/chipidea/otg_fsm.c ci->fsm.power_up = 0; ci 621 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 623 drivers/usb/chipidea/otg_fsm.c } else if (ci->fsm.otg->state == OTG_STATE_A_HOST) { ci 624 drivers/usb/chipidea/otg_fsm.c pm_runtime_mark_last_busy(ci->dev); ci 625 drivers/usb/chipidea/otg_fsm.c pm_runtime_put_autosuspend(ci->dev); ci 629 drivers/usb/chipidea/otg_fsm.c pm_runtime_put_sync(ci->dev); ci 637 drivers/usb/chipidea/otg_fsm.c static void ci_otg_fsm_event(struct ci_hdrc *ci) ci 640 drivers/usb/chipidea/otg_fsm.c struct otg_fsm *fsm = &ci->fsm; ci 642 drivers/usb/chipidea/otg_fsm.c intr_sts = hw_read_intr_status(ci); ci 643 drivers/usb/chipidea/otg_fsm.c otg_bsess_vld = hw_read_otgsc(ci, OTGSC_BSV); ci 644 drivers/usb/chipidea/otg_fsm.c port_conn = hw_read(ci, OP_PORTSC, PORTSC_CCS); ci 646 drivers/usb/chipidea/otg_fsm.c switch (ci->fsm.otg->state) { ci 651 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 657 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 662 drivers/usb/chipidea/otg_fsm.c ci_otg_add_timer(ci, B_AIDL_BDIS); ci 664 drivers/usb/chipidea/otg_fsm.c ci_otg_del_timer(ci, B_AIDL_BDIS); ci 673 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 684 drivers/usb/chipidea/otg_fsm.c ci_otg_add_timer(ci, A_BIDL_ADIS); ci 688 drivers/usb/chipidea/otg_fsm.c ci_otg_del_timer(ci, A_BIDL_ADIS); ci 692 drivers/usb/chipidea/otg_fsm.c ci_otg_del_timer(ci, A_BIDL_ADIS); ci 702 drivers/usb/chipidea/otg_fsm.c if (ci->driver) { ci 704 drivers/usb/chipidea/otg_fsm.c ci->gadget.is_a_peripheral = 1; ci 706 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 712 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 718 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 732 drivers/usb/chipidea/otg_fsm.c irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci) ci 736 drivers/usb/chipidea/otg_fsm.c struct otg_fsm *fsm = &ci->fsm; ci 738 drivers/usb/chipidea/otg_fsm.c otgsc = hw_read_otgsc(ci, ~0); ci 744 drivers/usb/chipidea/otg_fsm.c hw_write_otgsc(ci, OTGSC_DPIS, OTGSC_DPIS); ci 748 drivers/usb/chipidea/otg_fsm.c hw_write_otgsc(ci, OTGSC_IDIS, OTGSC_IDIS); ci 752 drivers/usb/chipidea/otg_fsm.c ci->id_event = true; ci 755 drivers/usb/chipidea/otg_fsm.c hw_write_otgsc(ci, OTGSC_BSVIS, OTGSC_BSVIS); ci 758 drivers/usb/chipidea/otg_fsm.c ci_otg_del_timer(ci, B_SSEND_SRP); ci 759 drivers/usb/chipidea/otg_fsm.c ci_otg_del_timer(ci, B_SRP_FAIL); ci 764 drivers/usb/chipidea/otg_fsm.c ci_otg_add_timer(ci, B_SSEND_SRP); ci 767 drivers/usb/chipidea/otg_fsm.c hw_write_otgsc(ci, OTGSC_AVVIS, OTGSC_AVVIS); ci 775 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 779 drivers/usb/chipidea/otg_fsm.c ci_otg_fsm_event(ci); ci 784 drivers/usb/chipidea/otg_fsm.c void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci) ci 786 drivers/usb/chipidea/otg_fsm.c ci_otg_queue_work(ci); ci 789 drivers/usb/chipidea/otg_fsm.c int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci) ci 793 drivers/usb/chipidea/otg_fsm.c if (ci->phy) ci 794 drivers/usb/chipidea/otg_fsm.c ci->otg.phy = ci->phy; ci 796 drivers/usb/chipidea/otg_fsm.c ci->otg.usb_phy = ci->usb_phy; ci 798 drivers/usb/chipidea/otg_fsm.c ci->otg.gadget = &ci->gadget; ci 799 drivers/usb/chipidea/otg_fsm.c ci->fsm.otg = &ci->otg; ci 800 drivers/usb/chipidea/otg_fsm.c ci->fsm.power_up = 1; ci 801 drivers/usb/chipidea/otg_fsm.c ci->fsm.id = hw_read_otgsc(ci, OTGSC_ID) ? 1 : 0; ci 802 drivers/usb/chipidea/otg_fsm.c ci->fsm.otg->state = OTG_STATE_UNDEFINED; ci 803 drivers/usb/chipidea/otg_fsm.c ci->fsm.ops = &ci_otg_ops; ci 804 drivers/usb/chipidea/otg_fsm.c ci->gadget.hnp_polling_support = 1; ci 805 drivers/usb/chipidea/otg_fsm.c ci->fsm.host_req_flag = devm_kzalloc(ci->dev, 1, GFP_KERNEL); ci 806 drivers/usb/chipidea/otg_fsm.c if (!ci->fsm.host_req_flag) ci 809 drivers/usb/chipidea/otg_fsm.c mutex_init(&ci->fsm.lock); ci 811 drivers/usb/chipidea/otg_fsm.c retval = ci_otg_init_timers(ci); ci 813 drivers/usb/chipidea/otg_fsm.c dev_err(ci->dev, "Couldn't init OTG timers\n"); ci 816 drivers/usb/chipidea/otg_fsm.c ci->enabled_otg_timer_bits = 0; ci 817 drivers/usb/chipidea/otg_fsm.c ci->next_otg_timer = NUM_OTG_FSM_TIMERS; ci 819 drivers/usb/chipidea/otg_fsm.c retval = sysfs_create_group(&ci->dev->kobj, &inputs_attr_group); ci 821 drivers/usb/chipidea/otg_fsm.c dev_dbg(ci->dev, ci 827 drivers/usb/chipidea/otg_fsm.c hw_write_otgsc(ci, OTGSC_AVVIE, OTGSC_AVVIE); ci 829 drivers/usb/chipidea/otg_fsm.c if (ci->fsm.id) { ci 830 drivers/usb/chipidea/otg_fsm.c ci->fsm.b_ssend_srp = ci 831 drivers/usb/chipidea/otg_fsm.c hw_read_otgsc(ci, OTGSC_BSV) ? 0 : 1; ci 832 drivers/usb/chipidea/otg_fsm.c ci->fsm.b_sess_vld = ci 833 drivers/usb/chipidea/otg_fsm.c hw_read_otgsc(ci, OTGSC_BSV) ? 1 : 0; ci 835 drivers/usb/chipidea/otg_fsm.c hw_write_otgsc(ci, OTGSC_BSVIE, OTGSC_BSVIE); ci 841 drivers/usb/chipidea/otg_fsm.c void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci) ci 843 drivers/usb/chipidea/otg_fsm.c sysfs_remove_group(&ci->dev->kobj, &inputs_attr_group); ci 66 drivers/usb/chipidea/otg_fsm.h int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci); ci 67 drivers/usb/chipidea/otg_fsm.h int ci_otg_fsm_work(struct ci_hdrc *ci); ci 68 drivers/usb/chipidea/otg_fsm.h irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci); ci 69 drivers/usb/chipidea/otg_fsm.h void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci); ci 70 drivers/usb/chipidea/otg_fsm.h void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci); ci 74 drivers/usb/chipidea/otg_fsm.h static inline int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci) ci 79 drivers/usb/chipidea/otg_fsm.h static inline int ci_otg_fsm_work(struct ci_hdrc *ci) ci 84 drivers/usb/chipidea/otg_fsm.h static inline irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci) ci 89 drivers/usb/chipidea/otg_fsm.h static inline void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci) ci 94 drivers/usb/chipidea/otg_fsm.h static inline void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci) ci 63 drivers/usb/chipidea/udc.c static inline int ep_to_bit(struct ci_hdrc *ci, int n) ci 65 drivers/usb/chipidea/udc.c int fill = 16 - ci->hw_ep_max / 2; ci 67 drivers/usb/chipidea/udc.c if (n >= ci->hw_ep_max / 2) ci 79 drivers/usb/chipidea/udc.c static int hw_device_state(struct ci_hdrc *ci, u32 dma) ci 82 drivers/usb/chipidea/udc.c hw_write(ci, OP_ENDPTLISTADDR, ~0, dma); ci 84 drivers/usb/chipidea/udc.c hw_write(ci, OP_USBINTR, ~0, ci 87 drivers/usb/chipidea/udc.c hw_write(ci, OP_USBINTR, ~0, 0); ci 99 drivers/usb/chipidea/udc.c static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) ci 105 drivers/usb/chipidea/udc.c hw_write(ci, OP_ENDPTFLUSH, ~0, BIT(n)); ci 106 drivers/usb/chipidea/udc.c while (hw_read(ci, OP_ENDPTFLUSH, BIT(n))) ci 108 drivers/usb/chipidea/udc.c } while (hw_read(ci, OP_ENDPTSTAT, BIT(n))); ci 120 drivers/usb/chipidea/udc.c static int hw_ep_disable(struct ci_hdrc *ci, int num, int dir) ci 122 drivers/usb/chipidea/udc.c hw_write(ci, OP_ENDPTCTRL + num, ci 135 drivers/usb/chipidea/udc.c static int hw_ep_enable(struct ci_hdrc *ci, int num, int dir, int type) ci 158 drivers/usb/chipidea/udc.c hw_write(ci, OP_ENDPTCTRL + num, mask, data); ci 169 drivers/usb/chipidea/udc.c static int hw_ep_get_halt(struct ci_hdrc *ci, int num, int dir) ci 173 drivers/usb/chipidea/udc.c return hw_read(ci, OP_ENDPTCTRL + num, mask) ? 1 : 0; ci 184 drivers/usb/chipidea/udc.c static int hw_ep_prime(struct ci_hdrc *ci, int num, int dir, int is_ctrl) ci 191 drivers/usb/chipidea/udc.c if (is_ctrl && dir == RX && hw_read(ci, OP_ENDPTSETUPSTAT, BIT(num))) ci 194 drivers/usb/chipidea/udc.c hw_write(ci, OP_ENDPTPRIME, ~0, BIT(n)); ci 196 drivers/usb/chipidea/udc.c while (hw_read(ci, OP_ENDPTPRIME, BIT(n))) ci 198 drivers/usb/chipidea/udc.c if (is_ctrl && dir == RX && hw_read(ci, OP_ENDPTSETUPSTAT, BIT(num))) ci 214 drivers/usb/chipidea/udc.c static int hw_ep_set_halt(struct ci_hdrc *ci, int num, int dir, int value) ci 225 drivers/usb/chipidea/udc.c hw_write(ci, reg, mask_xs|mask_xr, ci 227 drivers/usb/chipidea/udc.c } while (value != hw_ep_get_halt(ci, num, dir)); ci 237 drivers/usb/chipidea/udc.c static int hw_port_is_high_speed(struct ci_hdrc *ci) ci 239 drivers/usb/chipidea/udc.c return ci->hw_bank.lpm ? hw_read(ci, OP_DEVLC, DEVLC_PSPD) : ci 240 drivers/usb/chipidea/udc.c hw_read(ci, OP_PORTSC, PORTSC_HSP); ci 250 drivers/usb/chipidea/udc.c static int hw_test_and_clear_complete(struct ci_hdrc *ci, int n) ci 252 drivers/usb/chipidea/udc.c n = ep_to_bit(ci, n); ci 253 drivers/usb/chipidea/udc.c return hw_test_and_clear(ci, OP_ENDPTCOMPLETE, BIT(n)); ci 262 drivers/usb/chipidea/udc.c static u32 hw_test_and_clear_intr_active(struct ci_hdrc *ci) ci 264 drivers/usb/chipidea/udc.c u32 reg = hw_read_intr_status(ci) & hw_read_intr_enable(ci); ci 266 drivers/usb/chipidea/udc.c hw_write(ci, OP_USBSTS, ~0, reg); ci 276 drivers/usb/chipidea/udc.c static int hw_test_and_clear_setup_guard(struct ci_hdrc *ci) ci 278 drivers/usb/chipidea/udc.c return hw_test_and_write(ci, OP_USBCMD, USBCMD_SUTW, 0); ci 287 drivers/usb/chipidea/udc.c static int hw_test_and_set_setup_guard(struct ci_hdrc *ci) ci 289 drivers/usb/chipidea/udc.c return hw_test_and_write(ci, OP_USBCMD, USBCMD_SUTW, USBCMD_SUTW); ci 299 drivers/usb/chipidea/udc.c static void hw_usb_set_address(struct ci_hdrc *ci, u8 value) ci 301 drivers/usb/chipidea/udc.c hw_write(ci, OP_DEVICEADDR, DEVICEADDR_USBADR, ci 311 drivers/usb/chipidea/udc.c static int hw_usb_reset(struct ci_hdrc *ci) ci 313 drivers/usb/chipidea/udc.c hw_usb_set_address(ci, 0); ci 316 drivers/usb/chipidea/udc.c hw_write(ci, OP_ENDPTFLUSH, ~0, ~0); ci 319 drivers/usb/chipidea/udc.c hw_write(ci, OP_ENDPTSETUPSTAT, 0, 0); ci 322 drivers/usb/chipidea/udc.c hw_write(ci, OP_ENDPTCOMPLETE, 0, 0); ci 325 drivers/usb/chipidea/udc.c while (hw_read(ci, OP_ENDPTPRIME, ~0)) ci 412 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = hwep->ci; ci 424 drivers/usb/chipidea/udc.c ret = usb_gadget_map_request_by_dev(ci->dev->parent, ci 484 drivers/usb/chipidea/udc.c if (hw_read(ci, OP_ENDPTPRIME, BIT(n))) ci 487 drivers/usb/chipidea/udc.c hw_write(ci, OP_USBCMD, USBCMD_ATDTW, USBCMD_ATDTW); ci 488 drivers/usb/chipidea/udc.c tmp_stat = hw_read(ci, OP_ENDPTSTAT, BIT(n)); ci 489 drivers/usb/chipidea/udc.c } while (!hw_read(ci, OP_USBCMD, USBCMD_ATDTW)); ci 490 drivers/usb/chipidea/udc.c hw_write(ci, OP_USBCMD, USBCMD_ATDTW, 0); ci 509 drivers/usb/chipidea/udc.c ret = hw_ep_prime(ci, hwep->num, hwep->dir, ci 528 drivers/usb/chipidea/udc.c static int reprime_dtd(struct ci_hdrc *ci, struct ci_hw_ep *hwep, ci 535 drivers/usb/chipidea/udc.c return hw_ep_prime(ci, hwep->num, hwep->dir, ci 552 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = hwep->ci; ci 564 drivers/usb/chipidea/udc.c if (ci->rev == CI_REVISION_24) ci 565 drivers/usb/chipidea/udc.c if (!hw_read(ci, OP_ENDPTSTAT, BIT(n))) ci 566 drivers/usb/chipidea/udc.c reprime_dtd(ci, hwep, node); ci 605 drivers/usb/chipidea/udc.c usb_gadget_unmap_request_by_dev(hwep->ci->dev->parent, ci 631 drivers/usb/chipidea/udc.c hw_ep_flush(hwep->ci, hwep->num, hwep->dir); ci 685 drivers/usb/chipidea/udc.c retval |= hw_ep_set_halt(hwep->ci, hwep->num, hwep->dir, value); ci 709 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(gadget, struct ci_hdrc, gadget); ci 716 drivers/usb/chipidea/udc.c usb_ep_fifo_flush(&ci->ep0out->ep); ci 717 drivers/usb/chipidea/udc.c usb_ep_fifo_flush(&ci->ep0in->ep); ci 724 drivers/usb/chipidea/udc.c if (ci->status != NULL) { ci 725 drivers/usb/chipidea/udc.c usb_ep_free_request(&ci->ep0in->ep, ci->status); ci 726 drivers/usb/chipidea/udc.c ci->status = NULL; ci 729 drivers/usb/chipidea/udc.c spin_lock_irqsave(&ci->lock, flags); ci 730 drivers/usb/chipidea/udc.c ci->gadget.speed = USB_SPEED_UNKNOWN; ci 731 drivers/usb/chipidea/udc.c ci->remote_wakeup = 0; ci 732 drivers/usb/chipidea/udc.c ci->suspended = 0; ci 733 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(&ci->lock, flags); ci 747 drivers/usb/chipidea/udc.c static void isr_reset_handler(struct ci_hdrc *ci) ci 748 drivers/usb/chipidea/udc.c __releases(ci->lock) ci 749 drivers/usb/chipidea/udc.c __acquires(ci->lock) ci 753 drivers/usb/chipidea/udc.c spin_unlock(&ci->lock); ci 754 drivers/usb/chipidea/udc.c if (ci->gadget.speed != USB_SPEED_UNKNOWN) ci 755 drivers/usb/chipidea/udc.c usb_gadget_udc_reset(&ci->gadget, ci->driver); ci 757 drivers/usb/chipidea/udc.c retval = _gadget_stop_activity(&ci->gadget); ci 761 drivers/usb/chipidea/udc.c retval = hw_usb_reset(ci); ci 765 drivers/usb/chipidea/udc.c ci->status = usb_ep_alloc_request(&ci->ep0in->ep, GFP_ATOMIC); ci 766 drivers/usb/chipidea/udc.c if (ci->status == NULL) ci 770 drivers/usb/chipidea/udc.c spin_lock(&ci->lock); ci 773 drivers/usb/chipidea/udc.c dev_err(ci->dev, "error: %i\n", retval); ci 806 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = hwep->ci; ci 814 drivers/usb/chipidea/udc.c hwep = (ci->ep0_dir == RX) ? ci 815 drivers/usb/chipidea/udc.c ci->ep0out : ci->ep0in; ci 818 drivers/usb/chipidea/udc.c dev_warn(hwep->ci->dev, "endpoint ctrl %X nuked\n", ci 825 drivers/usb/chipidea/udc.c dev_err(hwep->ci->dev, "request length too big for isochronous\n"); ci 831 drivers/usb/chipidea/udc.c dev_err(hwep->ci->dev, "request already in queue\n"); ci 856 drivers/usb/chipidea/udc.c static int isr_get_status_response(struct ci_hdrc *ci, ci 861 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = ci->ep0in; ci 884 drivers/usb/chipidea/udc.c *(u16 *)req->buf = (ci->remote_wakeup << 1) | ci 885 drivers/usb/chipidea/udc.c ci->gadget.is_selfpowered; ci 891 drivers/usb/chipidea/udc.c *(u16 *)req->buf = hw_ep_get_halt(ci, num, dir); ci 921 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = req->context; ci 924 drivers/usb/chipidea/udc.c if (ci->setaddr) { ci 925 drivers/usb/chipidea/udc.c hw_usb_set_address(ci, ci->address); ci 926 drivers/usb/chipidea/udc.c ci->setaddr = false; ci 927 drivers/usb/chipidea/udc.c if (ci->address) ci 928 drivers/usb/chipidea/udc.c usb_gadget_set_state(&ci->gadget, USB_STATE_ADDRESS); ci 931 drivers/usb/chipidea/udc.c spin_lock_irqsave(&ci->lock, flags); ci 932 drivers/usb/chipidea/udc.c if (ci->test_mode) ci 933 drivers/usb/chipidea/udc.c hw_port_test_set(ci, ci->test_mode); ci 934 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(&ci->lock, flags); ci 943 drivers/usb/chipidea/udc.c static int isr_setup_status_phase(struct ci_hdrc *ci) ci 953 drivers/usb/chipidea/udc.c if (WARN_ON_ONCE(!ci->status)) ci 956 drivers/usb/chipidea/udc.c hwep = (ci->ep0_dir == TX) ? ci->ep0out : ci->ep0in; ci 957 drivers/usb/chipidea/udc.c ci->status->context = ci; ci 958 drivers/usb/chipidea/udc.c ci->status->complete = isr_setup_status_complete; ci 960 drivers/usb/chipidea/udc.c return _ep_queue(&hwep->ep, ci->status, GFP_ATOMIC); ci 988 drivers/usb/chipidea/udc.c hweptemp = hwep->ci->ep0in; ci 1000 drivers/usb/chipidea/udc.c static int otg_a_alt_hnp_support(struct ci_hdrc *ci) ci 1002 drivers/usb/chipidea/udc.c dev_warn(&ci->gadget.dev, ci 1004 drivers/usb/chipidea/udc.c return isr_setup_status_phase(ci); ci 1013 drivers/usb/chipidea/udc.c static void isr_setup_packet_handler(struct ci_hdrc *ci) ci 1014 drivers/usb/chipidea/udc.c __releases(ci->lock) ci 1015 drivers/usb/chipidea/udc.c __acquires(ci->lock) ci 1017 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = &ci->ci_hw_ep[0]; ci 1026 drivers/usb/chipidea/udc.c _ep_nuke(ci->ep0out); ci 1027 drivers/usb/chipidea/udc.c _ep_nuke(ci->ep0in); ci 1031 drivers/usb/chipidea/udc.c hw_test_and_set_setup_guard(ci); ci 1033 drivers/usb/chipidea/udc.c } while (!hw_test_and_clear_setup_guard(ci)); ci 1037 drivers/usb/chipidea/udc.c ci->ep0_dir = (type & USB_DIR_IN) ? TX : RX; ci 1050 drivers/usb/chipidea/udc.c num += ci->hw_ep_max / 2; ci 1051 drivers/usb/chipidea/udc.c if (!ci->ci_hw_ep[num].wedge) { ci 1052 drivers/usb/chipidea/udc.c spin_unlock(&ci->lock); ci 1054 drivers/usb/chipidea/udc.c &ci->ci_hw_ep[num].ep); ci 1055 drivers/usb/chipidea/udc.c spin_lock(&ci->lock); ci 1059 drivers/usb/chipidea/udc.c err = isr_setup_status_phase(ci); ci 1065 drivers/usb/chipidea/udc.c ci->remote_wakeup = 0; ci 1066 drivers/usb/chipidea/udc.c err = isr_setup_status_phase(ci); ci 1080 drivers/usb/chipidea/udc.c err = isr_get_status_response(ci, &req); ci 1088 drivers/usb/chipidea/udc.c ci->address = (u8)le16_to_cpu(req.wValue); ci 1089 drivers/usb/chipidea/udc.c ci->setaddr = true; ci 1090 drivers/usb/chipidea/udc.c err = isr_setup_status_phase(ci); ci 1102 drivers/usb/chipidea/udc.c num += ci->hw_ep_max / 2; ci 1104 drivers/usb/chipidea/udc.c spin_unlock(&ci->lock); ci 1105 drivers/usb/chipidea/udc.c err = _ep_set_halt(&ci->ci_hw_ep[num].ep, 1, false); ci 1106 drivers/usb/chipidea/udc.c spin_lock(&ci->lock); ci 1108 drivers/usb/chipidea/udc.c isr_setup_status_phase(ci); ci 1114 drivers/usb/chipidea/udc.c ci->remote_wakeup = 1; ci 1115 drivers/usb/chipidea/udc.c err = isr_setup_status_phase(ci); ci 1125 drivers/usb/chipidea/udc.c ci->test_mode = tmode; ci 1127 drivers/usb/chipidea/udc.c ci); ci 1134 drivers/usb/chipidea/udc.c if (ci_otg_is_fsm_mode(ci)) { ci 1135 drivers/usb/chipidea/udc.c ci->gadget.b_hnp_enable = 1; ci 1137 drivers/usb/chipidea/udc.c ci); ci 1141 drivers/usb/chipidea/udc.c if (ci_otg_is_fsm_mode(ci)) ci 1142 drivers/usb/chipidea/udc.c err = otg_a_alt_hnp_support(ci); ci 1145 drivers/usb/chipidea/udc.c if (ci_otg_is_fsm_mode(ci)) { ci 1146 drivers/usb/chipidea/udc.c ci->gadget.a_hnp_support = 1; ci 1148 drivers/usb/chipidea/udc.c ci); ci 1161 drivers/usb/chipidea/udc.c ci->ep0_dir = TX; ci 1163 drivers/usb/chipidea/udc.c spin_unlock(&ci->lock); ci 1164 drivers/usb/chipidea/udc.c err = ci->driver->setup(&ci->gadget, &req); ci 1165 drivers/usb/chipidea/udc.c spin_lock(&ci->lock); ci 1170 drivers/usb/chipidea/udc.c spin_unlock(&ci->lock); ci 1172 drivers/usb/chipidea/udc.c dev_err(ci->dev, "error: _ep_set_halt\n"); ci 1173 drivers/usb/chipidea/udc.c spin_lock(&ci->lock); ci 1183 drivers/usb/chipidea/udc.c static void isr_tr_complete_handler(struct ci_hdrc *ci) ci 1184 drivers/usb/chipidea/udc.c __releases(ci->lock) ci 1185 drivers/usb/chipidea/udc.c __acquires(ci->lock) ci 1190 drivers/usb/chipidea/udc.c for (i = 0; i < ci->hw_ep_max; i++) { ci 1191 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = &ci->ci_hw_ep[i]; ci 1196 drivers/usb/chipidea/udc.c if (hw_test_and_clear_complete(ci, i)) { ci 1200 drivers/usb/chipidea/udc.c err = isr_setup_status_phase(ci); ci 1202 drivers/usb/chipidea/udc.c spin_unlock(&ci->lock); ci 1204 drivers/usb/chipidea/udc.c dev_err(ci->dev, ci 1206 drivers/usb/chipidea/udc.c spin_lock(&ci->lock); ci 1213 drivers/usb/chipidea/udc.c hw_test_and_clear(ci, OP_ENDPTSETUPSTAT, BIT(0))) ci 1214 drivers/usb/chipidea/udc.c isr_setup_packet_handler(ci); ci 1242 drivers/usb/chipidea/udc.c dev_warn(hwep->ci->dev, "enabling a non-empty endpoint!\n"); ci 1273 drivers/usb/chipidea/udc.c dev_err(hwep->ci->dev, "Set control xfer at non-ep0\n"); ci 1282 drivers/usb/chipidea/udc.c retval |= hw_ep_enable(hwep->ci, hwep->num, hwep->dir, ci 1306 drivers/usb/chipidea/udc.c if (hwep->ci->gadget.speed == USB_SPEED_UNKNOWN) { ci 1316 drivers/usb/chipidea/udc.c retval |= hw_ep_disable(hwep->ci, hwep->num, hwep->dir); ci 1365 drivers/usb/chipidea/udc.c dev_err(hwep->ci->dev, "freeing queued request\n"); ci 1399 drivers/usb/chipidea/udc.c if (hwep->ci->gadget.speed == USB_SPEED_UNKNOWN) { ci 1426 drivers/usb/chipidea/udc.c if (hwep->ci->gadget.speed != USB_SPEED_UNKNOWN) ci 1427 drivers/usb/chipidea/udc.c hw_ep_flush(hwep->ci, hwep->num, hwep->dir); ci 1438 drivers/usb/chipidea/udc.c usb_gadget_unmap_request(&hwep->ci->gadget, req, hwep->dir); ci 1493 drivers/usb/chipidea/udc.c dev_err(hwep->ci->dev, "%02X: -EINVAL\n", _usb_addr(hwep)); ci 1498 drivers/usb/chipidea/udc.c if (hwep->ci->gadget.speed == USB_SPEED_UNKNOWN) { ci 1503 drivers/usb/chipidea/udc.c hw_ep_flush(hwep->ci, hwep->num, hwep->dir); ci 1529 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); ci 1533 drivers/usb/chipidea/udc.c spin_lock_irqsave(&ci->lock, flags); ci 1534 drivers/usb/chipidea/udc.c ci->vbus_active = is_active; ci 1535 drivers/usb/chipidea/udc.c if (ci->driver) ci 1537 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(&ci->lock, flags); ci 1539 drivers/usb/chipidea/udc.c if (ci->usb_phy) ci 1540 drivers/usb/chipidea/udc.c usb_phy_set_charger_state(ci->usb_phy, is_active ? ci 1546 drivers/usb/chipidea/udc.c hw_device_reset(ci); ci 1547 drivers/usb/chipidea/udc.c hw_device_state(ci, ci->ep0out->qh.dma); ci 1552 drivers/usb/chipidea/udc.c if (ci->driver) ci 1553 drivers/usb/chipidea/udc.c ci->driver->disconnect(&ci->gadget); ci 1554 drivers/usb/chipidea/udc.c hw_device_state(ci, 0); ci 1555 drivers/usb/chipidea/udc.c if (ci->platdata->notify_event) ci 1556 drivers/usb/chipidea/udc.c ci->platdata->notify_event(ci, ci 1558 drivers/usb/chipidea/udc.c _gadget_stop_activity(&ci->gadget); ci 1569 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); ci 1573 drivers/usb/chipidea/udc.c spin_lock_irqsave(&ci->lock, flags); ci 1574 drivers/usb/chipidea/udc.c if (ci->gadget.speed == USB_SPEED_UNKNOWN) { ci 1575 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(&ci->lock, flags); ci 1578 drivers/usb/chipidea/udc.c if (!ci->remote_wakeup) { ci 1582 drivers/usb/chipidea/udc.c if (!hw_read(ci, OP_PORTSC, PORTSC_SUSP)) { ci 1586 drivers/usb/chipidea/udc.c hw_write(ci, OP_PORTSC, PORTSC_FPR, PORTSC_FPR); ci 1588 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(&ci->lock, flags); ci 1594 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); ci 1596 drivers/usb/chipidea/udc.c if (ci->usb_phy) ci 1597 drivers/usb/chipidea/udc.c return usb_phy_set_power(ci->usb_phy, ma); ci 1603 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); ci 1604 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = ci->ep0in; ci 1619 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); ci 1625 drivers/usb/chipidea/udc.c if (ci_otg_is_fsm_mode(ci) || ci->role == CI_ROLE_HOST) ci 1628 drivers/usb/chipidea/udc.c pm_runtime_get_sync(&ci->gadget.dev); ci 1630 drivers/usb/chipidea/udc.c hw_write(ci, OP_USBCMD, USBCMD_RS, USBCMD_RS); ci 1632 drivers/usb/chipidea/udc.c hw_write(ci, OP_USBCMD, USBCMD_RS, 0); ci 1633 drivers/usb/chipidea/udc.c pm_runtime_put_sync(&ci->gadget.dev); ci 1647 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(gadget, struct ci_hdrc, gadget); ci 1651 drivers/usb/chipidea/udc.c list_for_each_entry_reverse(ep, &ci->gadget.ep_list, ep_list) { ci 1676 drivers/usb/chipidea/udc.c static int init_eps(struct ci_hdrc *ci) ci 1680 drivers/usb/chipidea/udc.c for (i = 0; i < ci->hw_ep_max/2; i++) ci 1682 drivers/usb/chipidea/udc.c int k = i + j * ci->hw_ep_max/2; ci 1683 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = &ci->ci_hw_ep[k]; ci 1688 drivers/usb/chipidea/udc.c hwep->ci = ci; ci 1689 drivers/usb/chipidea/udc.c hwep->lock = &ci->lock; ci 1690 drivers/usb/chipidea/udc.c hwep->td_pool = ci->td_pool; ci 1716 drivers/usb/chipidea/udc.c hwep->qh.ptr = dma_pool_zalloc(ci->qh_pool, GFP_KERNEL, ci 1727 drivers/usb/chipidea/udc.c ci->ep0out = hwep; ci 1729 drivers/usb/chipidea/udc.c ci->ep0in = hwep; ci 1735 drivers/usb/chipidea/udc.c list_add_tail(&hwep->ep.ep_list, &ci->gadget.ep_list); ci 1741 drivers/usb/chipidea/udc.c static void destroy_eps(struct ci_hdrc *ci) ci 1745 drivers/usb/chipidea/udc.c for (i = 0; i < ci->hw_ep_max; i++) { ci 1746 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = &ci->ci_hw_ep[i]; ci 1750 drivers/usb/chipidea/udc.c dma_pool_free(ci->qh_pool, hwep->qh.ptr, hwep->qh.dma); ci 1764 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(gadget, struct ci_hdrc, gadget); ci 1770 drivers/usb/chipidea/udc.c ci->ep0out->ep.desc = &ctrl_endpt_out_desc; ci 1771 drivers/usb/chipidea/udc.c retval = usb_ep_enable(&ci->ep0out->ep); ci 1775 drivers/usb/chipidea/udc.c ci->ep0in->ep.desc = &ctrl_endpt_in_desc; ci 1776 drivers/usb/chipidea/udc.c retval = usb_ep_enable(&ci->ep0in->ep); ci 1780 drivers/usb/chipidea/udc.c ci->driver = driver; ci 1783 drivers/usb/chipidea/udc.c if (ci_otg_is_fsm_mode(ci) && ci->fsm.id) { ci 1784 drivers/usb/chipidea/udc.c ci_hdrc_otg_fsm_start(ci); ci 1788 drivers/usb/chipidea/udc.c pm_runtime_get_sync(&ci->gadget.dev); ci 1789 drivers/usb/chipidea/udc.c if (ci->vbus_active) { ci 1790 drivers/usb/chipidea/udc.c hw_device_reset(ci); ci 1792 drivers/usb/chipidea/udc.c usb_udc_vbus_handler(&ci->gadget, false); ci 1793 drivers/usb/chipidea/udc.c pm_runtime_put_sync(&ci->gadget.dev); ci 1797 drivers/usb/chipidea/udc.c retval = hw_device_state(ci, ci->ep0out->qh.dma); ci 1799 drivers/usb/chipidea/udc.c pm_runtime_put_sync(&ci->gadget.dev); ci 1804 drivers/usb/chipidea/udc.c static void ci_udc_stop_for_otg_fsm(struct ci_hdrc *ci) ci 1806 drivers/usb/chipidea/udc.c if (!ci_otg_is_fsm_mode(ci)) ci 1809 drivers/usb/chipidea/udc.c mutex_lock(&ci->fsm.lock); ci 1810 drivers/usb/chipidea/udc.c if (ci->fsm.otg->state == OTG_STATE_A_PERIPHERAL) { ci 1811 drivers/usb/chipidea/udc.c ci->fsm.a_bidl_adis_tmout = 1; ci 1812 drivers/usb/chipidea/udc.c ci_hdrc_otg_fsm_start(ci); ci 1813 drivers/usb/chipidea/udc.c } else if (ci->fsm.otg->state == OTG_STATE_B_PERIPHERAL) { ci 1814 drivers/usb/chipidea/udc.c ci->fsm.protocol = PROTO_UNDEF; ci 1815 drivers/usb/chipidea/udc.c ci->fsm.otg->state = OTG_STATE_UNDEFINED; ci 1817 drivers/usb/chipidea/udc.c mutex_unlock(&ci->fsm.lock); ci 1825 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(gadget, struct ci_hdrc, gadget); ci 1828 drivers/usb/chipidea/udc.c spin_lock_irqsave(&ci->lock, flags); ci 1830 drivers/usb/chipidea/udc.c if (ci->vbus_active) { ci 1831 drivers/usb/chipidea/udc.c hw_device_state(ci, 0); ci 1832 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(&ci->lock, flags); ci 1833 drivers/usb/chipidea/udc.c if (ci->platdata->notify_event) ci 1834 drivers/usb/chipidea/udc.c ci->platdata->notify_event(ci, ci 1836 drivers/usb/chipidea/udc.c _gadget_stop_activity(&ci->gadget); ci 1837 drivers/usb/chipidea/udc.c spin_lock_irqsave(&ci->lock, flags); ci 1838 drivers/usb/chipidea/udc.c pm_runtime_put(&ci->gadget.dev); ci 1841 drivers/usb/chipidea/udc.c ci->driver = NULL; ci 1842 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(&ci->lock, flags); ci 1844 drivers/usb/chipidea/udc.c ci_udc_stop_for_otg_fsm(ci); ci 1857 drivers/usb/chipidea/udc.c static irqreturn_t udc_irq(struct ci_hdrc *ci) ci 1862 drivers/usb/chipidea/udc.c if (ci == NULL) ci 1865 drivers/usb/chipidea/udc.c spin_lock(&ci->lock); ci 1867 drivers/usb/chipidea/udc.c if (ci->platdata->flags & CI_HDRC_REGS_SHARED) { ci 1868 drivers/usb/chipidea/udc.c if (hw_read(ci, OP_USBMODE, USBMODE_CM) != ci 1870 drivers/usb/chipidea/udc.c spin_unlock(&ci->lock); ci 1874 drivers/usb/chipidea/udc.c intr = hw_test_and_clear_intr_active(ci); ci 1879 drivers/usb/chipidea/udc.c isr_reset_handler(ci); ci 1882 drivers/usb/chipidea/udc.c ci->gadget.speed = hw_port_is_high_speed(ci) ? ci 1884 drivers/usb/chipidea/udc.c if (ci->suspended) { ci 1885 drivers/usb/chipidea/udc.c if (ci->driver->resume) { ci 1886 drivers/usb/chipidea/udc.c spin_unlock(&ci->lock); ci 1887 drivers/usb/chipidea/udc.c ci->driver->resume(&ci->gadget); ci 1888 drivers/usb/chipidea/udc.c spin_lock(&ci->lock); ci 1890 drivers/usb/chipidea/udc.c ci->suspended = 0; ci 1891 drivers/usb/chipidea/udc.c usb_gadget_set_state(&ci->gadget, ci 1892 drivers/usb/chipidea/udc.c ci->resume_state); ci 1897 drivers/usb/chipidea/udc.c isr_tr_complete_handler(ci); ci 1899 drivers/usb/chipidea/udc.c if ((USBi_SLI & intr) && !(ci->suspended)) { ci 1900 drivers/usb/chipidea/udc.c ci->suspended = 1; ci 1901 drivers/usb/chipidea/udc.c ci->resume_state = ci->gadget.state; ci 1902 drivers/usb/chipidea/udc.c if (ci->gadget.speed != USB_SPEED_UNKNOWN && ci 1903 drivers/usb/chipidea/udc.c ci->driver->suspend) { ci 1904 drivers/usb/chipidea/udc.c spin_unlock(&ci->lock); ci 1905 drivers/usb/chipidea/udc.c ci->driver->suspend(&ci->gadget); ci 1906 drivers/usb/chipidea/udc.c spin_lock(&ci->lock); ci 1908 drivers/usb/chipidea/udc.c usb_gadget_set_state(&ci->gadget, ci 1915 drivers/usb/chipidea/udc.c spin_unlock(&ci->lock); ci 1924 drivers/usb/chipidea/udc.c static int udc_start(struct ci_hdrc *ci) ci 1926 drivers/usb/chipidea/udc.c struct device *dev = ci->dev; ci 1927 drivers/usb/chipidea/udc.c struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; ci 1930 drivers/usb/chipidea/udc.c ci->gadget.ops = &usb_gadget_ops; ci 1931 drivers/usb/chipidea/udc.c ci->gadget.speed = USB_SPEED_UNKNOWN; ci 1932 drivers/usb/chipidea/udc.c ci->gadget.max_speed = USB_SPEED_HIGH; ci 1933 drivers/usb/chipidea/udc.c ci->gadget.name = ci->platdata->name; ci 1934 drivers/usb/chipidea/udc.c ci->gadget.otg_caps = otg_caps; ci 1936 drivers/usb/chipidea/udc.c if (ci->platdata->flags & CI_HDRC_REQUIRES_ALIGNED_DMA) ci 1937 drivers/usb/chipidea/udc.c ci->gadget.quirk_avoids_skb_reserve = 1; ci 1939 drivers/usb/chipidea/udc.c if (ci->is_otg && (otg_caps->hnp_support || otg_caps->srp_support || ci 1941 drivers/usb/chipidea/udc.c ci->gadget.is_otg = 1; ci 1943 drivers/usb/chipidea/udc.c INIT_LIST_HEAD(&ci->gadget.ep_list); ci 1946 drivers/usb/chipidea/udc.c ci->qh_pool = dma_pool_create("ci_hw_qh", dev->parent, ci 1949 drivers/usb/chipidea/udc.c if (ci->qh_pool == NULL) ci 1952 drivers/usb/chipidea/udc.c ci->td_pool = dma_pool_create("ci_hw_td", dev->parent, ci 1955 drivers/usb/chipidea/udc.c if (ci->td_pool == NULL) { ci 1960 drivers/usb/chipidea/udc.c retval = init_eps(ci); ci 1964 drivers/usb/chipidea/udc.c ci->gadget.ep0 = &ci->ep0in->ep; ci 1966 drivers/usb/chipidea/udc.c retval = usb_add_gadget_udc(dev, &ci->gadget); ci 1970 drivers/usb/chipidea/udc.c pm_runtime_no_callbacks(&ci->gadget.dev); ci 1971 drivers/usb/chipidea/udc.c pm_runtime_enable(&ci->gadget.dev); ci 1976 drivers/usb/chipidea/udc.c destroy_eps(ci); ci 1978 drivers/usb/chipidea/udc.c dma_pool_destroy(ci->td_pool); ci 1980 drivers/usb/chipidea/udc.c dma_pool_destroy(ci->qh_pool); ci 1989 drivers/usb/chipidea/udc.c void ci_hdrc_gadget_destroy(struct ci_hdrc *ci) ci 1991 drivers/usb/chipidea/udc.c if (!ci->roles[CI_ROLE_GADGET]) ci 1994 drivers/usb/chipidea/udc.c usb_del_gadget_udc(&ci->gadget); ci 1996 drivers/usb/chipidea/udc.c destroy_eps(ci); ci 1998 drivers/usb/chipidea/udc.c dma_pool_destroy(ci->td_pool); ci 1999 drivers/usb/chipidea/udc.c dma_pool_destroy(ci->qh_pool); ci 2002 drivers/usb/chipidea/udc.c static int udc_id_switch_for_device(struct ci_hdrc *ci) ci 2004 drivers/usb/chipidea/udc.c if (ci->platdata->pins_device) ci 2005 drivers/usb/chipidea/udc.c pinctrl_select_state(ci->platdata->pctl, ci 2006 drivers/usb/chipidea/udc.c ci->platdata->pins_device); ci 2008 drivers/usb/chipidea/udc.c if (ci->is_otg) ci 2010 drivers/usb/chipidea/udc.c hw_write_otgsc(ci, OTGSC_BSVIS | OTGSC_BSVIE, ci 2016 drivers/usb/chipidea/udc.c static void udc_id_switch_for_host(struct ci_hdrc *ci) ci 2022 drivers/usb/chipidea/udc.c if (ci->is_otg) ci 2023 drivers/usb/chipidea/udc.c hw_write_otgsc(ci, OTGSC_BSVIE | OTGSC_BSVIS, OTGSC_BSVIS); ci 2025 drivers/usb/chipidea/udc.c ci->vbus_active = 0; ci 2027 drivers/usb/chipidea/udc.c if (ci->platdata->pins_device && ci->platdata->pins_default) ci 2028 drivers/usb/chipidea/udc.c pinctrl_select_state(ci->platdata->pctl, ci 2029 drivers/usb/chipidea/udc.c ci->platdata->pins_default); ci 2038 drivers/usb/chipidea/udc.c int ci_hdrc_gadget_init(struct ci_hdrc *ci) ci 2043 drivers/usb/chipidea/udc.c if (!hw_read(ci, CAP_DCCPARAMS, DCCPARAMS_DC)) ci 2046 drivers/usb/chipidea/udc.c rdrv = devm_kzalloc(ci->dev, sizeof(*rdrv), GFP_KERNEL); ci 2055 drivers/usb/chipidea/udc.c ret = udc_start(ci); ci 2057 drivers/usb/chipidea/udc.c ci->roles[CI_ROLE_GADGET] = rdrv; ci 83 drivers/usb/chipidea/udc.h int ci_hdrc_gadget_init(struct ci_hdrc *ci); ci 84 drivers/usb/chipidea/udc.h void ci_hdrc_gadget_destroy(struct ci_hdrc *ci); ci 88 drivers/usb/chipidea/udc.h static inline int ci_hdrc_gadget_init(struct ci_hdrc *ci) ci 93 drivers/usb/chipidea/udc.h static inline void ci_hdrc_gadget_destroy(struct ci_hdrc *ci) ci 19 drivers/usb/chipidea/ulpi.c static int ci_ulpi_wait(struct ci_hdrc *ci, u32 mask) ci 24 drivers/usb/chipidea/ulpi.c if (!hw_read(ci, OP_ULPI_VIEWPORT, mask)) ci 35 drivers/usb/chipidea/ulpi.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 38 drivers/usb/chipidea/ulpi.c hw_write(ci, OP_ULPI_VIEWPORT, 0xffffffff, ULPI_WRITE | ULPI_WAKEUP); ci 39 drivers/usb/chipidea/ulpi.c ret = ci_ulpi_wait(ci, ULPI_WAKEUP); ci 43 drivers/usb/chipidea/ulpi.c hw_write(ci, OP_ULPI_VIEWPORT, 0xffffffff, ULPI_RUN | ULPI_ADDR(addr)); ci 44 drivers/usb/chipidea/ulpi.c ret = ci_ulpi_wait(ci, ULPI_RUN); ci 48 drivers/usb/chipidea/ulpi.c return hw_read(ci, OP_ULPI_VIEWPORT, GENMASK(15, 8)) >> 8; ci 53 drivers/usb/chipidea/ulpi.c struct ci_hdrc *ci = dev_get_drvdata(dev); ci 56 drivers/usb/chipidea/ulpi.c hw_write(ci, OP_ULPI_VIEWPORT, 0xffffffff, ULPI_WRITE | ULPI_WAKEUP); ci 57 drivers/usb/chipidea/ulpi.c ret = ci_ulpi_wait(ci, ULPI_WAKEUP); ci 61 drivers/usb/chipidea/ulpi.c hw_write(ci, OP_ULPI_VIEWPORT, 0xffffffff, ci 63 drivers/usb/chipidea/ulpi.c return ci_ulpi_wait(ci, ULPI_RUN); ci 66 drivers/usb/chipidea/ulpi.c int ci_ulpi_init(struct ci_hdrc *ci) ci 68 drivers/usb/chipidea/ulpi.c if (ci->platdata->phy_mode != USBPHY_INTERFACE_MODE_ULPI) ci 75 drivers/usb/chipidea/ulpi.c hw_phymode_configure(ci); ci 77 drivers/usb/chipidea/ulpi.c ci->ulpi_ops.read = ci_ulpi_read; ci 78 drivers/usb/chipidea/ulpi.c ci->ulpi_ops.write = ci_ulpi_write; ci 79 drivers/usb/chipidea/ulpi.c ci->ulpi = ulpi_register_interface(ci->dev, &ci->ulpi_ops); ci 80 drivers/usb/chipidea/ulpi.c if (IS_ERR(ci->ulpi)) ci 81 drivers/usb/chipidea/ulpi.c dev_err(ci->dev, "failed to register ULPI interface"); ci 83 drivers/usb/chipidea/ulpi.c return PTR_ERR_OR_ZERO(ci->ulpi); ci 86 drivers/usb/chipidea/ulpi.c void ci_ulpi_exit(struct ci_hdrc *ci) ci 88 drivers/usb/chipidea/ulpi.c if (ci->ulpi) { ci 89 drivers/usb/chipidea/ulpi.c ulpi_unregister_interface(ci->ulpi); ci 90 drivers/usb/chipidea/ulpi.c ci->ulpi = NULL; ci 94 drivers/usb/chipidea/ulpi.c int ci_ulpi_resume(struct ci_hdrc *ci) ci 98 drivers/usb/chipidea/ulpi.c if (ci->platdata->phy_mode != USBPHY_INTERFACE_MODE_ULPI) ci 102 drivers/usb/chipidea/ulpi.c if (hw_read(ci, OP_ULPI_VIEWPORT, ULPI_SYNC_STATE)) ci 1342 drivers/usb/core/devio.c struct usbdevfs_connectinfo ci; ci 1344 drivers/usb/core/devio.c memset(&ci, 0, sizeof(ci)); ci 1345 drivers/usb/core/devio.c ci.devnum = ps->dev->devnum; ci 1346 drivers/usb/core/devio.c ci.slow = ps->dev->speed == USB_SPEED_LOW; ci 1348 drivers/usb/core/devio.c if (copy_to_user(arg, &ci, sizeof(ci))) ci 1356 drivers/usb/core/devio.c struct usbdevfs_conninfo_ex ci; ci 1359 drivers/usb/core/devio.c if (size < sizeof(ci.size)) ci 1362 drivers/usb/core/devio.c memset(&ci, 0, sizeof(ci)); ci 1363 drivers/usb/core/devio.c ci.size = sizeof(ci); ci 1364 drivers/usb/core/devio.c ci.busnum = udev->bus->busnum; ci 1365 drivers/usb/core/devio.c ci.devnum = udev->devnum; ci 1366 drivers/usb/core/devio.c ci.speed = udev->speed; ci 1369 drivers/usb/core/devio.c if (++ci.num_ports <= ARRAY_SIZE(ci.ports)) ci 1370 drivers/usb/core/devio.c ci.ports[ARRAY_SIZE(ci.ports) - ci.num_ports] = ci 1375 drivers/usb/core/devio.c if (ci.num_ports < ARRAY_SIZE(ci.ports)) ci 1376 drivers/usb/core/devio.c memmove(&ci.ports[0], ci 1377 drivers/usb/core/devio.c &ci.ports[ARRAY_SIZE(ci.ports) - ci.num_ports], ci 1378 drivers/usb/core/devio.c ci.num_ports); ci 1380 drivers/usb/core/devio.c if (copy_to_user(arg, &ci, min(sizeof(ci), size))) ci 3791 drivers/usb/gadget/function/f_fs.c struct config_item *ci; ci 3816 drivers/usb/gadget/function/f_fs.c ci = opts->func_inst.group.cg_item.ci_parent->ci_parent; ci 3820 drivers/usb/gadget/function/f_fs.c unregister_gadget_item(ci); ci 1410 drivers/usb/gadget/function/uvc_configfs.c struct config_item *ci; ci 1413 drivers/usb/gadget/function/uvc_configfs.c list_for_each_entry(ci, &fmt->cg_children, ci_entry) { ci 1416 drivers/usb/gadget/function/uvc_configfs.c if (ci->ci_type != &uvcg_frame_type) ci 1419 drivers/usb/gadget/function/uvc_configfs.c frm = to_uvcg_frame(ci); ci 270 drivers/usb/host/bcma-hcd.c struct bcma_chipinfo *ci = &core->bus->chipinfo; ci 275 drivers/usb/host/bcma-hcd.c if (ci->id == BCMA_CHIP_ID_BCM4707 || ci 276 drivers/usb/host/bcma-hcd.c ci->id == BCMA_CHIP_ID_BCM53018) ci 203 drivers/usb/storage/uas.c struct uas_cmd_info *ci = (void *)&cmnd->SCp; ci 212 drivers/usb/storage/uas.c (ci->state & SUBMIT_STATUS_URB) ? " s-st" : "", ci 213 drivers/usb/storage/uas.c (ci->state & ALLOC_DATA_IN_URB) ? " a-in" : "", ci 214 drivers/usb/storage/uas.c (ci->state & SUBMIT_DATA_IN_URB) ? " s-in" : "", ci 215 drivers/usb/storage/uas.c (ci->state & ALLOC_DATA_OUT_URB) ? " a-out" : "", ci 216 drivers/usb/storage/uas.c (ci->state & SUBMIT_DATA_OUT_URB) ? " s-out" : "", ci 217 drivers/usb/storage/uas.c (ci->state & ALLOC_CMD_URB) ? " a-cmd" : "", ci 218 drivers/usb/storage/uas.c (ci->state & SUBMIT_CMD_URB) ? " s-cmd" : "", ci 219 drivers/usb/storage/uas.c (ci->state & COMMAND_INFLIGHT) ? " CMD" : "", ci 220 drivers/usb/storage/uas.c (ci->state & DATA_IN_URB_INFLIGHT) ? " IN" : "", ci 221 drivers/usb/storage/uas.c (ci->state & DATA_OUT_URB_INFLIGHT) ? " OUT" : "", ci 222 drivers/usb/storage/uas.c (ci->state & COMMAND_ABORTED) ? " abort" : "", ci 223 drivers/usb/storage/uas.c (ci->state & IS_IN_WORK_LIST) ? " work" : ""); ci 73 drivers/video/console/newport_con.c int xend, int yend, int ci) ci 80 drivers/video/console/newport_con.c npregs->set.colori = ci; ci 136 drivers/video/console/newport_con.c int yend, int ci) ci 146 drivers/video/console/newport_con.c npregs->set.colori = ci; ci 151 drivers/video/console/newport_con.c static inline void newport_clear_lines(int ystart, int yend, int ci) ci 155 drivers/video/console/newport_con.c newport_clear_screen(0, ystart, 1280 + 63, yend, ci); ci 300 drivers/video/fbdev/matrox/g450_pll.c static void g450_addcache(struct matrox_pll_cache* ci, unsigned int mnp_key, unsigned int mnp_value) { ci 301 drivers/video/fbdev/matrox/g450_pll.c if (++ci->valid > ARRAY_SIZE(ci->data)) { ci 302 drivers/video/fbdev/matrox/g450_pll.c ci->valid = ARRAY_SIZE(ci->data); ci 304 drivers/video/fbdev/matrox/g450_pll.c memmove(ci->data + 1, ci->data, (ci->valid - 1) * sizeof(*ci->data)); ci 305 drivers/video/fbdev/matrox/g450_pll.c ci->data[0].mnp_key = mnp_key & G450_MNP_FREQBITS; ci 306 drivers/video/fbdev/matrox/g450_pll.c ci->data[0].mnp_value = mnp_value; ci 310 drivers/video/fbdev/matrox/g450_pll.c struct matrox_pll_cache *ci, unsigned int mnp_key) ci 315 drivers/video/fbdev/matrox/g450_pll.c for (i = 0; i < ci->valid; i++) { ci 316 drivers/video/fbdev/matrox/g450_pll.c if (ci->data[i].mnp_key == mnp_key) { ci 319 drivers/video/fbdev/matrox/g450_pll.c mnp = ci->data[i].mnp_value; ci 321 drivers/video/fbdev/matrox/g450_pll.c memmove(ci->data + 1, ci->data, i * sizeof(*ci->data)); ci 322 drivers/video/fbdev/matrox/g450_pll.c ci->data[0].mnp_key = mnp_key; ci 323 drivers/video/fbdev/matrox/g450_pll.c ci->data[0].mnp_value = mnp; ci 338 drivers/video/fbdev/matrox/g450_pll.c struct matrox_pll_cache* ci; ci 395 drivers/video/fbdev/matrox/g450_pll.c ci = &minfo->cache.pixel; ci 407 drivers/video/fbdev/matrox/g450_pll.c ci = &minfo->cache.system; ci 427 drivers/video/fbdev/matrox/g450_pll.c ci = &minfo->cache.video; ci 499 drivers/video/fbdev/matrox/g450_pll.c mnp = g450_checkcache(minfo, ci, mnparray[0]); ci 504 drivers/video/fbdev/matrox/g450_pll.c g450_addcache(ci, mnparray[0], mnp); ci 22 fs/ceph/acl.c struct ceph_inode_info *ci = ceph_inode(inode); ci 24 fs/ceph/acl.c spin_lock(&ci->i_ceph_lock); ci 25 fs/ceph/acl.c if (__ceph_caps_issued_mask(ci, CEPH_CAP_XATTR_SHARED, 0)) ci 29 fs/ceph/acl.c spin_unlock(&ci->i_ceph_lock); ci 77 fs/ceph/addr.c struct ceph_inode_info *ci; ci 92 fs/ceph/addr.c ci = ceph_inode(inode); ci 95 fs/ceph/addr.c spin_lock(&ci->i_ceph_lock); ci 96 fs/ceph/addr.c BUG_ON(ci->i_wr_ref == 0); // caller should hold Fw reference ci 97 fs/ceph/addr.c if (__ceph_have_pending_cap_snap(ci)) { ci 99 fs/ceph/addr.c list_last_entry(&ci->i_cap_snaps, ci 105 fs/ceph/addr.c BUG_ON(!ci->i_head_snapc); ci 106 fs/ceph/addr.c snapc = ceph_get_snap_context(ci->i_head_snapc); ci 107 fs/ceph/addr.c ++ci->i_wrbuffer_ref_head; ci 109 fs/ceph/addr.c if (ci->i_wrbuffer_ref == 0) ci 111 fs/ceph/addr.c ++ci->i_wrbuffer_ref; ci 115 fs/ceph/addr.c ci->i_wrbuffer_ref-1, ci->i_wrbuffer_ref_head-1, ci 116 fs/ceph/addr.c ci->i_wrbuffer_ref, ci->i_wrbuffer_ref_head, ci 118 fs/ceph/addr.c spin_unlock(&ci->i_ceph_lock); ci 144 fs/ceph/addr.c struct ceph_inode_info *ci; ci 148 fs/ceph/addr.c ci = ceph_inode(inode); ci 167 fs/ceph/addr.c ceph_put_wrbuffer_cap_refs(ci, 1, snapc); ci 191 fs/ceph/addr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 203 fs/ceph/addr.c if (ci->i_inline_version != CEPH_INLINE_NONE) { ci 222 fs/ceph/addr.c &ci->i_layout, off, &len, ci 223 fs/ceph/addr.c ci->i_truncate_seq, ci->i_truncate_size, ci 312 fs/ceph/addr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 339 fs/ceph/addr.c ceph_put_cap_refs(ci, got); ci 365 fs/ceph/addr.c req = ceph_osdc_new_request(osdc, &ci->i_layout, vino, off, &len, ci 368 fs/ceph/addr.c ci->i_truncate_seq, ci->i_truncate_size, ci 418 fs/ceph/addr.c ceph_put_cap_refs(ci, got); ci 432 fs/ceph/addr.c ceph_put_cap_refs(ci, got); ci 493 fs/ceph/addr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 497 fs/ceph/addr.c spin_lock(&ci->i_ceph_lock); ci 498 fs/ceph/addr.c list_for_each_entry(capsnap, &ci->i_cap_snaps, ci_item) { ci 530 fs/ceph/addr.c if (!snapc && ci->i_wrbuffer_ref_head) { ci 531 fs/ceph/addr.c snapc = ceph_get_snap_context(ci->i_head_snapc); ci 533 fs/ceph/addr.c snapc, ci->i_wrbuffer_ref_head); ci 536 fs/ceph/addr.c ctl->truncate_size = ci->i_truncate_size; ci 537 fs/ceph/addr.c ctl->truncate_seq = ci->i_truncate_seq; ci 542 fs/ceph/addr.c spin_unlock(&ci->i_ceph_lock); ci 549 fs/ceph/addr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 554 fs/ceph/addr.c if (snapc != ci->i_head_snapc) { ci 556 fs/ceph/addr.c spin_lock(&ci->i_ceph_lock); ci 557 fs/ceph/addr.c list_for_each_entry(capsnap, &ci->i_cap_snaps, ci_item) { ci 565 fs/ceph/addr.c spin_unlock(&ci->i_ceph_lock); ci 582 fs/ceph/addr.c struct ceph_inode_info *ci; ci 592 fs/ceph/addr.c ci = ceph_inode(inode); ci 632 fs/ceph/addr.c &ci->i_layout, snapc, page_off, len, ci 660 fs/ceph/addr.c ceph_put_wrbuffer_cap_refs(ci, 1, snapc); ci 696 fs/ceph/addr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 710 fs/ceph/addr.c ceph_set_error_write(ci); ci 714 fs/ceph/addr.c ceph_clear_error_write(ci); ci 723 fs/ceph/addr.c remove_page = !(ceph_caps_issued(ci) & ci 765 fs/ceph/addr.c ceph_put_wrbuffer_cap_refs(ci, total_pages, snapc); ci 783 fs/ceph/addr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 801 fs/ceph/addr.c if (ci->i_wrbuffer_ref > 0) { ci 948 fs/ceph/addr.c ceph_calc_file_object_mapping(&ci->i_layout, ci 1030 fs/ceph/addr.c &ci->i_layout, vino, ci 1037 fs/ceph/addr.c &ci->i_layout, vino, ci 1221 fs/ceph/addr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1240 fs/ceph/addr.c if (snapc && snapc != ci->i_head_snapc) { ci 1257 fs/ceph/addr.c r = wait_event_killable(ci->i_cap_wq, ci 1427 fs/ceph/addr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1454 fs/ceph/addr.c ci->i_inline_version == CEPH_INLINE_NONE) { ci 1467 fs/ceph/addr.c ceph_put_cap_refs(ci, got); ci 1519 fs/ceph/addr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1537 fs/ceph/addr.c if (ci->i_inline_version != CEPH_INLINE_NONE) { ci 1593 fs/ceph/addr.c ci->i_inline_version != CEPH_INLINE_NONE) { ci 1595 fs/ceph/addr.c spin_lock(&ci->i_ceph_lock); ci 1596 fs/ceph/addr.c ci->i_inline_version = CEPH_INLINE_NONE; ci 1597 fs/ceph/addr.c dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, ci 1599 fs/ceph/addr.c spin_unlock(&ci->i_ceph_lock); ci 1606 fs/ceph/addr.c ceph_put_cap_refs(ci, got); ci 1663 fs/ceph/addr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1671 fs/ceph/addr.c spin_lock(&ci->i_ceph_lock); ci 1672 fs/ceph/addr.c inline_version = ci->i_inline_version; ci 1673 fs/ceph/addr.c spin_unlock(&ci->i_ceph_lock); ci 1685 fs/ceph/addr.c } else if (ceph_caps_issued(ci) & ci 1720 fs/ceph/addr.c req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, ci 1737 fs/ceph/addr.c req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, ci 1740 fs/ceph/addr.c NULL, ci->i_truncate_seq, ci 1741 fs/ceph/addr.c ci->i_truncate_size, false); ci 1814 fs/ceph/addr.c static int __ceph_pool_perm_get(struct ceph_inode_info *ci, ci 1817 fs/ceph/addr.c struct ceph_fs_client *fsc = ceph_inode_to_client(&ci->vfs_inode); ci 1899 fs/ceph/addr.c ceph_oid_printf(&rd_req->r_base_oid, "%llx.00000000", ci->i_vino.ino); ci 1932 fs/ceph/addr.c wr_req->r_mtime = ci->vfs_inode.i_mtime; ci 1992 fs/ceph/addr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1997 fs/ceph/addr.c if (ci->i_vino.snap != CEPH_NOSNAP) { ci 2010 fs/ceph/addr.c spin_lock(&ci->i_ceph_lock); ci 2011 fs/ceph/addr.c flags = ci->i_ceph_flags; ci 2012 fs/ceph/addr.c pool = ci->i_layout.pool_id; ci 2013 fs/ceph/addr.c spin_unlock(&ci->i_ceph_lock); ci 2029 fs/ceph/addr.c pool_ns = ceph_try_get_string(ci->i_layout.pool_ns); ci 2030 fs/ceph/addr.c ret = __ceph_pool_perm_get(ci, pool, pool_ns); ci 2041 fs/ceph/addr.c spin_lock(&ci->i_ceph_lock); ci 2042 fs/ceph/addr.c if (pool == ci->i_layout.pool_id && ci 2043 fs/ceph/addr.c pool_ns == rcu_dereference_raw(ci->i_layout.pool_ns)) { ci 2044 fs/ceph/addr.c ci->i_ceph_flags |= flags; ci 2046 fs/ceph/addr.c pool = ci->i_layout.pool_id; ci 2047 fs/ceph/addr.c flags = ci->i_ceph_flags; ci 2049 fs/ceph/addr.c spin_unlock(&ci->i_ceph_lock); ci 112 fs/ceph/cache.c struct ceph_inode_info* ci = cookie_netfs_data; ci 113 fs/ceph/cache.c struct inode* inode = &ci->vfs_inode; ci 120 fs/ceph/cache.c aux.version = ci->i_version; ci 127 fs/ceph/cache.c dout("ceph inode 0x%p cached okay\n", ci); ci 139 fs/ceph/cache.c struct ceph_inode_info *ci = ceph_inode(inode); ci 152 fs/ceph/cache.c if (!ci->fscache) { ci 154 fs/ceph/cache.c aux.version = ci->i_version; ci 157 fs/ceph/cache.c ci->fscache = fscache_acquire_cookie(fsc->fscache, ci 159 fs/ceph/cache.c &ci->i_vino, sizeof(ci->i_vino), ci 161 fs/ceph/cache.c ci, i_size_read(inode), false); ci 166 fs/ceph/cache.c void ceph_fscache_unregister_inode_cookie(struct ceph_inode_info* ci) ci 170 fs/ceph/cache.c if ((cookie = ci->fscache) == NULL) ci 173 fs/ceph/cache.c ci->fscache = NULL; ci 175 fs/ceph/cache.c fscache_uncache_all_inode_pages(cookie, &ci->vfs_inode); ci 176 fs/ceph/cache.c fscache_relinquish_cookie(cookie, &ci->i_vino, false); ci 187 fs/ceph/cache.c struct ceph_inode_info *ci = ceph_inode(inode); ci 189 fs/ceph/cache.c if (!fscache_cookie_valid(ci->fscache)) ci 195 fs/ceph/cache.c fscache_disable_cookie(ci->fscache, &ci->i_vino, false); ci 196 fs/ceph/cache.c fscache_uncache_all_inode_pages(ci->fscache, inode); ci 198 fs/ceph/cache.c fscache_enable_cookie(ci->fscache, &ci->i_vino, i_size_read(inode), ci 200 fs/ceph/cache.c if (fscache_cookie_enabled(ci->fscache)) { ci 215 fs/ceph/cache.c static inline bool cache_valid(struct ceph_inode_info *ci) ci 217 fs/ceph/cache.c return ci->i_fscache_gen == ci->i_rdcache_gen; ci 228 fs/ceph/cache.c struct ceph_inode_info *ci = ceph_inode(inode); ci 231 fs/ceph/cache.c if (!cache_valid(ci)) ci 234 fs/ceph/cache.c ret = fscache_read_or_alloc_page(ci->fscache, page, ci 257 fs/ceph/cache.c struct ceph_inode_info *ci = ceph_inode(inode); ci 260 fs/ceph/cache.c if (!cache_valid(ci)) ci 263 fs/ceph/cache.c ret = fscache_read_or_alloc_pages(ci->fscache, mapping, pages, nr_pages, ci 283 fs/ceph/cache.c struct ceph_inode_info *ci = ceph_inode(inode); ci 289 fs/ceph/cache.c if (!cache_valid(ci)) ci 292 fs/ceph/cache.c ret = fscache_write_page(ci->fscache, page, i_size_read(inode), ci 295 fs/ceph/cache.c fscache_uncache_page(ci->fscache, page); ci 300 fs/ceph/cache.c struct ceph_inode_info *ci = ceph_inode(inode); ci 305 fs/ceph/cache.c fscache_wait_on_page_write(ci->fscache, page); ci 306 fs/ceph/cache.c fscache_uncache_page(ci->fscache, page); ci 335 fs/ceph/cache.c void ceph_fscache_revalidate_cookie(struct ceph_inode_info *ci) ci 337 fs/ceph/cache.c if (cache_valid(ci)) ci 342 fs/ceph/cache.c mutex_lock(&ci->i_truncate_mutex); ci 343 fs/ceph/cache.c if (!cache_valid(ci)) { ci 344 fs/ceph/cache.c if (fscache_check_consistency(ci->fscache, &ci->i_vino)) ci 345 fs/ceph/cache.c fscache_invalidate(ci->fscache); ci 346 fs/ceph/cache.c spin_lock(&ci->i_ceph_lock); ci 347 fs/ceph/cache.c ci->i_fscache_gen = ci->i_rdcache_gen; ci 348 fs/ceph/cache.c spin_unlock(&ci->i_ceph_lock); ci 350 fs/ceph/cache.c mutex_unlock(&ci->i_truncate_mutex); ci 23 fs/ceph/cache.h void ceph_fscache_unregister_inode_cookie(struct ceph_inode_info* ci); ci 25 fs/ceph/cache.h void ceph_fscache_revalidate_cookie(struct ceph_inode_info *ci); ci 35 fs/ceph/cache.h static inline void ceph_fscache_inode_init(struct ceph_inode_info *ci) ci 37 fs/ceph/cache.h ci->fscache = NULL; ci 38 fs/ceph/cache.h ci->i_fscache_gen = 0; ci 49 fs/ceph/cache.h struct ceph_inode_info *ci = ceph_inode(inode); ci 50 fs/ceph/cache.h return fscache_uncache_page(ci->fscache, page); ci 56 fs/ceph/cache.h struct ceph_inode_info *ci = ceph_inode(inode); ci 57 fs/ceph/cache.h return fscache_maybe_release_page(ci->fscache, page, gfp); ci 63 fs/ceph/cache.h struct ceph_inode_info *ci = ceph_inode(inode); ci 64 fs/ceph/cache.h if (fscache_cookie_valid(ci->fscache) && PageFsCache(page)) ci 65 fs/ceph/cache.h __fscache_uncache_page(ci->fscache, page); ci 71 fs/ceph/cache.h struct ceph_inode_info *ci = ceph_inode(inode); ci 72 fs/ceph/cache.h return fscache_readpages_cancel(ci->fscache, pages); ci 75 fs/ceph/cache.h static inline void ceph_disable_fscache_readpage(struct ceph_inode_info *ci) ci 77 fs/ceph/cache.h ci->i_fscache_gen = ci->i_rdcache_gen - 1; ci 100 fs/ceph/cache.h static inline void ceph_fscache_inode_init(struct ceph_inode_info *ci) ci 108 fs/ceph/cache.h static inline void ceph_fscache_unregister_inode_cookie(struct ceph_inode_info* ci) ci 117 fs/ceph/cache.h static inline void ceph_fscache_revalidate_cookie(struct ceph_inode_info *ci) ci 169 fs/ceph/cache.h static inline void ceph_disable_fscache_readpage(struct ceph_inode_info *ci) ci 48 fs/ceph/caps.c struct ceph_inode_info *ci, ci 433 fs/ceph/caps.c static struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds) ci 436 fs/ceph/caps.c struct rb_node *n = ci->i_caps.rb_node; ci 450 fs/ceph/caps.c struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) ci 454 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 455 fs/ceph/caps.c cap = __get_cap_for_mds(ci, mds); ci 456 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 463 fs/ceph/caps.c static void __insert_cap_node(struct ceph_inode_info *ci, ci 466 fs/ceph/caps.c struct rb_node **p = &ci->i_caps.rb_node; ci 482 fs/ceph/caps.c rb_insert_color(&new->ci_node, &ci->i_caps); ci 490 fs/ceph/caps.c struct ceph_inode_info *ci) ci 494 fs/ceph/caps.c ci->i_hold_caps_min = round_jiffies(jiffies + ci 496 fs/ceph/caps.c ci->i_hold_caps_max = round_jiffies(jiffies + ci 498 fs/ceph/caps.c dout("__cap_set_timeouts %p min %lu max %lu\n", &ci->vfs_inode, ci 499 fs/ceph/caps.c ci->i_hold_caps_min - jiffies, ci->i_hold_caps_max - jiffies); ci 511 fs/ceph/caps.c struct ceph_inode_info *ci, ci 514 fs/ceph/caps.c dout("__cap_delay_requeue %p flags %d at %lu\n", &ci->vfs_inode, ci 515 fs/ceph/caps.c ci->i_ceph_flags, ci->i_hold_caps_max); ci 518 fs/ceph/caps.c if (!list_empty(&ci->i_cap_delay_list)) { ci 519 fs/ceph/caps.c if (ci->i_ceph_flags & CEPH_I_FLUSH) ci 521 fs/ceph/caps.c list_del_init(&ci->i_cap_delay_list); ci 524 fs/ceph/caps.c __cap_set_timeouts(mdsc, ci); ci 525 fs/ceph/caps.c list_add_tail(&ci->i_cap_delay_list, &mdsc->cap_delay_list); ci 537 fs/ceph/caps.c struct ceph_inode_info *ci) ci 539 fs/ceph/caps.c dout("__cap_delay_requeue_front %p\n", &ci->vfs_inode); ci 541 fs/ceph/caps.c ci->i_ceph_flags |= CEPH_I_FLUSH; ci 542 fs/ceph/caps.c if (!list_empty(&ci->i_cap_delay_list)) ci 543 fs/ceph/caps.c list_del_init(&ci->i_cap_delay_list); ci 544 fs/ceph/caps.c list_add(&ci->i_cap_delay_list, &mdsc->cap_delay_list); ci 554 fs/ceph/caps.c struct ceph_inode_info *ci) ci 556 fs/ceph/caps.c dout("__cap_delay_cancel %p\n", &ci->vfs_inode); ci 557 fs/ceph/caps.c if (list_empty(&ci->i_cap_delay_list)) ci 560 fs/ceph/caps.c list_del_init(&ci->i_cap_delay_list); ci 567 fs/ceph/caps.c static void __check_cap_issue(struct ceph_inode_info *ci, struct ceph_cap *cap, ci 570 fs/ceph/caps.c unsigned had = __ceph_caps_issued(ci, NULL); ci 578 fs/ceph/caps.c ci->i_rdcache_gen++; ci 589 fs/ceph/caps.c atomic_inc(&ci->i_shared_gen); ci 590 fs/ceph/caps.c if (S_ISDIR(ci->vfs_inode.i_mode)) { ci 591 fs/ceph/caps.c dout(" marking %p NOT complete\n", &ci->vfs_inode); ci 592 fs/ceph/caps.c __ceph_dir_clear_complete(ci); ci 613 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 619 fs/ceph/caps.c lockdep_assert_held(&ci->i_ceph_lock); ci 635 fs/ceph/caps.c cap = __get_cap_for_mds(ci, mds); ci 646 fs/ceph/caps.c cap->ci = ci; ci 647 fs/ceph/caps.c __insert_cap_node(ci, cap); ci 673 fs/ceph/caps.c WARN_ON(cap != ci->i_auth_cap); ci 682 fs/ceph/caps.c if (!ci->i_snap_realm || ci 684 fs/ceph/caps.c realmino != (u64)-1 && ci->i_snap_realm->ino != realmino)) { ci 691 fs/ceph/caps.c struct ceph_snap_realm *oldrealm = ci->i_snap_realm; ci 694 fs/ceph/caps.c list_del_init(&ci->i_snap_realm_item); ci 699 fs/ceph/caps.c list_add(&ci->i_snap_realm_item, ci 701 fs/ceph/caps.c ci->i_snap_realm = realm; ci 702 fs/ceph/caps.c if (realm->ino == ci->i_vino.ino) ci 715 fs/ceph/caps.c __check_cap_issue(ci, cap, issued); ci 722 fs/ceph/caps.c actual_wanted = __ceph_caps_wanted(ci); ci 728 fs/ceph/caps.c __cap_delay_requeue(mdsc, ci, true); ci 732 fs/ceph/caps.c if (!ci->i_auth_cap || ci 733 fs/ceph/caps.c ceph_seq_cmp(ci->i_auth_cap->mseq, mseq) < 0) { ci 734 fs/ceph/caps.c ci->i_auth_cap = cap; ci 738 fs/ceph/caps.c WARN_ON(ci->i_auth_cap == cap); ci 757 fs/ceph/caps.c __ceph_get_fmode(ci, fmode); ci 777 fs/ceph/caps.c "but STALE (gen %u vs %u)\n", &cap->ci->vfs_inode, ci 790 fs/ceph/caps.c int __ceph_caps_issued(struct ceph_inode_info *ci, int *implemented) ci 792 fs/ceph/caps.c int have = ci->i_snap_caps; ci 798 fs/ceph/caps.c for (p = rb_first(&ci->i_caps); p; p = rb_next(p)) { ci 803 fs/ceph/caps.c &ci->vfs_inode, cap, ceph_cap_string(cap->issued)); ci 813 fs/ceph/caps.c if (ci->i_auth_cap) { ci 814 fs/ceph/caps.c cap = ci->i_auth_cap; ci 823 fs/ceph/caps.c int __ceph_caps_issued_other(struct ceph_inode_info *ci, struct ceph_cap *ocap) ci 825 fs/ceph/caps.c int have = ci->i_snap_caps; ci 829 fs/ceph/caps.c for (p = rb_first(&ci->i_caps); p; p = rb_next(p)) { ci 850 fs/ceph/caps.c dout("__touch_cap %p cap %p mds%d\n", &cap->ci->vfs_inode, cap, ci 855 fs/ceph/caps.c &cap->ci->vfs_inode, cap, s->s_mds); ci 865 fs/ceph/caps.c int __ceph_caps_issued_mask(struct ceph_inode_info *ci, int mask, int touch) ci 869 fs/ceph/caps.c int have = ci->i_snap_caps; ci 873 fs/ceph/caps.c " (mask %s)\n", ci->vfs_inode.i_ino, ci 879 fs/ceph/caps.c for (p = rb_first(&ci->i_caps); p; p = rb_next(p)) { ci 885 fs/ceph/caps.c " (mask %s)\n", ci->vfs_inode.i_ino, cap, ci 897 fs/ceph/caps.c " (mask %s)\n", ci->vfs_inode.i_ino, ci 905 fs/ceph/caps.c for (q = rb_first(&ci->i_caps); q != p; ci 924 fs/ceph/caps.c int __ceph_caps_revoking_other(struct ceph_inode_info *ci, ci 930 fs/ceph/caps.c for (p = rb_first(&ci->i_caps); p; p = rb_next(p)) { ci 939 fs/ceph/caps.c int ceph_caps_revoking(struct ceph_inode_info *ci, int mask) ci 941 fs/ceph/caps.c struct inode *inode = &ci->vfs_inode; ci 944 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 945 fs/ceph/caps.c ret = __ceph_caps_revoking_other(ci, NULL, mask); ci 946 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 952 fs/ceph/caps.c int __ceph_caps_used(struct ceph_inode_info *ci) ci 955 fs/ceph/caps.c if (ci->i_pin_ref) ci 957 fs/ceph/caps.c if (ci->i_rd_ref) ci 959 fs/ceph/caps.c if (ci->i_rdcache_ref || ci 960 fs/ceph/caps.c (!S_ISDIR(ci->vfs_inode.i_mode) && /* ignore readdir cache */ ci 961 fs/ceph/caps.c ci->vfs_inode.i_data.nrpages)) ci 963 fs/ceph/caps.c if (ci->i_wr_ref) ci 965 fs/ceph/caps.c if (ci->i_wb_ref || ci->i_wrbuffer_ref) ci 973 fs/ceph/caps.c int __ceph_caps_file_wanted(struct ceph_inode_info *ci) ci 977 fs/ceph/caps.c if (ci->i_nr_by_mode[i]) ci 988 fs/ceph/caps.c int __ceph_caps_mds_wanted(struct ceph_inode_info *ci, bool check) ci 994 fs/ceph/caps.c for (p = rb_first(&ci->i_caps); p; p = rb_next(p)) { ci 998 fs/ceph/caps.c if (cap == ci->i_auth_cap) ci 1009 fs/ceph/caps.c static int __ceph_is_single_caps(struct ceph_inode_info *ci) ci 1011 fs/ceph/caps.c return rb_first(&ci->i_caps) == rb_last(&ci->i_caps); ci 1014 fs/ceph/caps.c static int __ceph_is_any_caps(struct ceph_inode_info *ci) ci 1016 fs/ceph/caps.c return !RB_EMPTY_ROOT(&ci->i_caps); ci 1021 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1024 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 1025 fs/ceph/caps.c ret = __ceph_is_any_caps(ci); ci 1026 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 1031 fs/ceph/caps.c static void drop_inode_snap_realm(struct ceph_inode_info *ci) ci 1033 fs/ceph/caps.c struct ceph_snap_realm *realm = ci->i_snap_realm; ci 1035 fs/ceph/caps.c list_del_init(&ci->i_snap_realm_item); ci 1036 fs/ceph/caps.c ci->i_snap_realm_counter++; ci 1037 fs/ceph/caps.c ci->i_snap_realm = NULL; ci 1038 fs/ceph/caps.c if (realm->ino == ci->i_vino.ino) ci 1041 fs/ceph/caps.c ceph_put_snap_realm(ceph_sb_to_client(ci->vfs_inode.i_sb)->mdsc, ci 1054 fs/ceph/caps.c struct ceph_inode_info *ci = cap->ci; ci 1056 fs/ceph/caps.c ceph_sb_to_client(ci->vfs_inode.i_sb)->mdsc; ci 1059 fs/ceph/caps.c dout("__ceph_remove_cap %p from %p\n", cap, &ci->vfs_inode); ci 1062 fs/ceph/caps.c rb_erase(&cap->ci_node, &ci->i_caps); ci 1063 fs/ceph/caps.c if (ci->i_auth_cap == cap) ci 1064 fs/ceph/caps.c ci->i_auth_cap = NULL; ci 1079 fs/ceph/caps.c cap->ci = NULL; ci 1095 fs/ceph/caps.c cap->cap_ino = ci->i_vino.ino; ci 1106 fs/ceph/caps.c if (!__ceph_is_any_caps(ci) && ci->i_wr_ref == 0 && ci->i_snap_realm) ci 1107 fs/ceph/caps.c drop_inode_snap_realm(ci); ci 1109 fs/ceph/caps.c if (!__ceph_is_any_real_caps(ci)) ci 1110 fs/ceph/caps.c __cap_delay_cancel(mdsc, ci); ci 1240 fs/ceph/caps.c void __ceph_remove_caps(struct ceph_inode_info *ci) ci 1246 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 1247 fs/ceph/caps.c p = rb_first(&ci->i_caps); ci 1253 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 1272 fs/ceph/caps.c __releases(cap->ci->i_ceph_lock) ci 1274 fs/ceph/caps.c struct ceph_inode_info *ci = cap->ci; ci 1275 fs/ceph/caps.c struct inode *inode = &ci->vfs_inode; ci 1296 fs/ceph/caps.c if ((ci->i_ceph_flags & CEPH_I_NODELAY) == 0 && ci 1297 fs/ceph/caps.c time_before(jiffies, ci->i_hold_caps_min)) { ci 1307 fs/ceph/caps.c ci->i_ceph_flags &= ~(CEPH_I_NODELAY | CEPH_I_FLUSH); ci 1313 fs/ceph/caps.c __cap_set_timeouts(mdsc, ci); ci 1331 fs/ceph/caps.c arg.follows = flushing ? ci->i_head_snapc->seq : 0; ci 1336 fs/ceph/caps.c ci->i_reported_size = arg.size; ci 1337 fs/ceph/caps.c arg.max_size = ci->i_wanted_max_size; ci 1338 fs/ceph/caps.c ci->i_requested_max_size = arg.max_size; ci 1341 fs/ceph/caps.c old_blob = __ceph_build_xattrs_blob(ci); ci 1342 fs/ceph/caps.c arg.xattr_version = ci->i_xattrs.version; ci 1343 fs/ceph/caps.c arg.xattr_buf = ci->i_xattrs.blob; ci 1351 fs/ceph/caps.c arg.btime = ci->i_btime; ci 1362 fs/ceph/caps.c arg.time_warp_seq = ci->i_time_warp_seq; ci 1368 fs/ceph/caps.c arg.inline_data = ci->i_inline_version != CEPH_INLINE_NONE; ci 1370 fs/ceph/caps.c !list_empty(&ci->i_cap_snaps)) { ci 1372 fs/ceph/caps.c list_for_each_entry_reverse(capsnap, &ci->i_cap_snaps, ci_item) { ci 1383 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 1394 fs/ceph/caps.c wake_up_all(&ci->i_cap_wq); ci 1453 fs/ceph/caps.c static void __ceph_flush_snaps(struct ceph_inode_info *ci, ci 1455 fs/ceph/caps.c __releases(ci->i_ceph_lock) ci 1456 fs/ceph/caps.c __acquires(ci->i_ceph_lock) ci 1458 fs/ceph/caps.c struct inode *inode = &ci->vfs_inode; ci 1466 fs/ceph/caps.c list_for_each_entry(capsnap, &ci->i_cap_snaps, ci_item) { ci 1489 fs/ceph/caps.c if (list_empty(&ci->i_flushing_item)) { ci 1490 fs/ceph/caps.c list_add_tail(&ci->i_flushing_item, ci 1496 fs/ceph/caps.c &ci->i_cap_flush_list); ci 1503 fs/ceph/caps.c ci->i_ceph_flags &= ~CEPH_I_FLUSH_SNAPS; ci 1506 fs/ceph/caps.c struct ceph_cap *cap = ci->i_auth_cap; ci 1517 fs/ceph/caps.c list_for_each_entry(cf, &ci->i_cap_flush_list, i_list) { ci 1530 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 1544 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 1548 fs/ceph/caps.c void ceph_flush_snaps(struct ceph_inode_info *ci, ci 1551 fs/ceph/caps.c struct inode *inode = &ci->vfs_inode; ci 1560 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 1561 fs/ceph/caps.c if (!(ci->i_ceph_flags & CEPH_I_FLUSH_SNAPS)) { ci 1565 fs/ceph/caps.c if (!ci->i_auth_cap) { ci 1570 fs/ceph/caps.c mds = ci->i_auth_cap->session->s_mds; ci 1578 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 1590 fs/ceph/caps.c if (ci->i_ceph_flags & CEPH_I_KICK_FLUSH) ci 1591 fs/ceph/caps.c __kick_flushing_caps(mdsc, session, ci, 0); ci 1593 fs/ceph/caps.c __ceph_flush_snaps(ci, session); ci 1595 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 1605 fs/ceph/caps.c list_del_init(&ci->i_snap_flush_item); ci 1614 fs/ceph/caps.c int __ceph_mark_dirty_caps(struct ceph_inode_info *ci, int mask, ci 1618 fs/ceph/caps.c ceph_sb_to_client(ci->vfs_inode.i_sb)->mdsc; ci 1619 fs/ceph/caps.c struct inode *inode = &ci->vfs_inode; ci 1620 fs/ceph/caps.c int was = ci->i_dirty_caps; ci 1623 fs/ceph/caps.c if (!ci->i_auth_cap) { ci 1630 fs/ceph/caps.c dout("__mark_dirty_caps %p %s dirty %s -> %s\n", &ci->vfs_inode, ci 1633 fs/ceph/caps.c ci->i_dirty_caps |= mask; ci 1635 fs/ceph/caps.c WARN_ON_ONCE(ci->i_prealloc_cap_flush); ci 1636 fs/ceph/caps.c swap(ci->i_prealloc_cap_flush, *pcf); ci 1638 fs/ceph/caps.c if (!ci->i_head_snapc) { ci 1640 fs/ceph/caps.c ci->i_head_snapc = ceph_get_snap_context( ci 1641 fs/ceph/caps.c ci->i_snap_realm->cached_context); ci 1644 fs/ceph/caps.c &ci->vfs_inode, ci->i_head_snapc, ci->i_auth_cap); ci 1645 fs/ceph/caps.c BUG_ON(!list_empty(&ci->i_dirty_item)); ci 1647 fs/ceph/caps.c list_add(&ci->i_dirty_item, &mdsc->cap_dirty); ci 1649 fs/ceph/caps.c if (ci->i_flushing_caps == 0) { ci 1654 fs/ceph/caps.c WARN_ON_ONCE(!ci->i_prealloc_cap_flush); ci 1656 fs/ceph/caps.c BUG_ON(list_empty(&ci->i_dirty_item)); ci 1657 fs/ceph/caps.c if (((was | ci->i_flushing_caps) & CEPH_CAP_FILE_BUFFER) && ci 1660 fs/ceph/caps.c __cap_delay_requeue(mdsc, ci, true); ci 1691 fs/ceph/caps.c struct ceph_inode_info *ci, ci 1704 fs/ceph/caps.c } else if (ci) { ci 1705 fs/ceph/caps.c if (wake && cf->i_list.prev != &ci->i_cap_flush_list) { ci 1728 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1732 fs/ceph/caps.c BUG_ON(ci->i_dirty_caps == 0); ci 1733 fs/ceph/caps.c BUG_ON(list_empty(&ci->i_dirty_item)); ci 1734 fs/ceph/caps.c BUG_ON(!ci->i_prealloc_cap_flush); ci 1736 fs/ceph/caps.c flushing = ci->i_dirty_caps; ci 1739 fs/ceph/caps.c ceph_cap_string(ci->i_flushing_caps), ci 1740 fs/ceph/caps.c ceph_cap_string(ci->i_flushing_caps | flushing)); ci 1741 fs/ceph/caps.c ci->i_flushing_caps |= flushing; ci 1742 fs/ceph/caps.c ci->i_dirty_caps = 0; ci 1745 fs/ceph/caps.c swap(cf, ci->i_prealloc_cap_flush); ci 1750 fs/ceph/caps.c list_del_init(&ci->i_dirty_item); ci 1756 fs/ceph/caps.c if (list_empty(&ci->i_flushing_item)) { ci 1757 fs/ceph/caps.c list_add_tail(&ci->i_flushing_item, &session->s_cap_flushing); ci 1762 fs/ceph/caps.c list_add_tail(&cf->i_list, &ci->i_cap_flush_list); ci 1772 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1773 fs/ceph/caps.c u32 invalidating_gen = ci->i_rdcache_gen; ci 1775 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 1777 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 1780 fs/ceph/caps.c invalidating_gen == ci->i_rdcache_gen) { ci 1784 fs/ceph/caps.c ci->i_rdcache_revoking = ci->i_rdcache_gen - 1; ci 1791 fs/ceph/caps.c bool __ceph_should_report_size(struct ceph_inode_info *ci) ci 1793 fs/ceph/caps.c loff_t size = ci->vfs_inode.i_size; ci 1795 fs/ceph/caps.c if (ci->i_flushing_caps & CEPH_CAP_FILE_WR) ci 1797 fs/ceph/caps.c if (size >= ci->i_max_size) ci 1800 fs/ceph/caps.c if (ci->i_max_size > ci->i_reported_size && ci 1801 fs/ceph/caps.c (size << 1) >= ci->i_max_size + ci->i_reported_size) ci 1817 fs/ceph/caps.c void ceph_check_caps(struct ceph_inode_info *ci, int flags, ci 1820 fs/ceph/caps.c struct ceph_fs_client *fsc = ceph_inode_to_client(&ci->vfs_inode); ci 1822 fs/ceph/caps.c struct inode *inode = &ci->vfs_inode; ci 1840 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 1842 fs/ceph/caps.c if (ci->i_ceph_flags & CEPH_I_FLUSH) ci 1846 fs/ceph/caps.c (ci->i_auth_cap && __ceph_is_single_caps(ci))) ci 1847 fs/ceph/caps.c __cap_delay_cancel(mdsc, ci); ci 1851 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 1853 fs/ceph/caps.c file_wanted = __ceph_caps_file_wanted(ci); ci 1854 fs/ceph/caps.c used = __ceph_caps_used(ci); ci 1855 fs/ceph/caps.c issued = __ceph_caps_issued(ci, &implemented); ci 1865 fs/ceph/caps.c __ceph_dir_is_complete(ci)) { ci 1885 fs/ceph/caps.c if (ci->i_max_size == 0) ci 1893 fs/ceph/caps.c ceph_cap_string(used), ceph_cap_string(ci->i_dirty_caps), ci 1894 fs/ceph/caps.c ceph_cap_string(ci->i_flushing_caps), ci 1908 fs/ceph/caps.c !(ci->i_wb_ref || ci->i_wrbuffer_ref) && /* no dirty pages... */ ci 1917 fs/ceph/caps.c ci->i_rdcache_revoking = ci->i_rdcache_gen; ci 1923 fs/ceph/caps.c for (p = rb_first(&ci->i_caps); p; p = rb_next(p)) { ci 1928 fs/ceph/caps.c ((flags & CHECK_CAPS_AUTHONLY) && cap != ci->i_auth_cap)) ci 1934 fs/ceph/caps.c if (ci->i_auth_cap && cap != ci->i_auth_cap) ci 1935 fs/ceph/caps.c cap_used &= ~ci->i_auth_cap->issued; ci 1944 fs/ceph/caps.c if (cap == ci->i_auth_cap && ci 1947 fs/ceph/caps.c if (ci->i_wanted_max_size > ci->i_max_size && ci 1948 fs/ceph/caps.c ci->i_wanted_max_size > ci->i_requested_max_size) { ci 1954 fs/ceph/caps.c if (__ceph_should_report_size(ci)) { ci 1960 fs/ceph/caps.c if (cap == ci->i_auth_cap) { ci 1961 fs/ceph/caps.c if ((flags & CHECK_CAPS_FLUSH) && ci->i_dirty_caps) { ci 1965 fs/ceph/caps.c if (ci->i_ceph_flags & CEPH_I_FLUSH_SNAPS) { ci 1994 fs/ceph/caps.c if ((ci->i_ceph_flags & CEPH_I_NODELAY) == 0 && ci 1995 fs/ceph/caps.c time_before(jiffies, ci->i_hold_caps_max)) { ci 2016 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2028 fs/ceph/caps.c if (cap == ci->i_auth_cap && ci 2029 fs/ceph/caps.c (ci->i_ceph_flags & ci 2031 fs/ceph/caps.c if (ci->i_ceph_flags & CEPH_I_KICK_FLUSH) ci 2032 fs/ceph/caps.c __kick_flushing_caps(mdsc, session, ci, 0); ci 2033 fs/ceph/caps.c if (ci->i_ceph_flags & CEPH_I_FLUSH_SNAPS) ci 2034 fs/ceph/caps.c __ceph_flush_snaps(ci, session); ci 2044 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2052 fs/ceph/caps.c if (cap == ci->i_auth_cap && ci->i_dirty_caps) { ci 2053 fs/ceph/caps.c flushing = ci->i_dirty_caps; ci 2076 fs/ceph/caps.c __cap_delay_requeue(mdsc, ci, false); ci 2078 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2095 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 2101 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 2103 fs/ceph/caps.c if (ci->i_dirty_caps && ci->i_auth_cap) { ci 2104 fs/ceph/caps.c struct ceph_cap *cap = ci->i_auth_cap; ci 2108 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2116 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2120 fs/ceph/caps.c if (ci->i_ceph_flags & ci 2122 fs/ceph/caps.c if (ci->i_ceph_flags & CEPH_I_KICK_FLUSH) ci 2123 fs/ceph/caps.c __kick_flushing_caps(mdsc, session, ci, 0); ci 2124 fs/ceph/caps.c if (ci->i_ceph_flags & CEPH_I_FLUSH_SNAPS) ci 2125 fs/ceph/caps.c __ceph_flush_snaps(ci, session); ci 2129 fs/ceph/caps.c flushing = ci->i_dirty_caps; ci 2136 fs/ceph/caps.c __ceph_caps_used(ci), ci 2137 fs/ceph/caps.c __ceph_caps_wanted(ci), ci 2142 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 2143 fs/ceph/caps.c __cap_delay_requeue(mdsc, ci, true); ci 2144 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2147 fs/ceph/caps.c if (!list_empty(&ci->i_cap_flush_list)) { ci 2149 fs/ceph/caps.c list_last_entry(&ci->i_cap_flush_list, ci 2154 fs/ceph/caps.c flushing = ci->i_flushing_caps; ci 2155 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2170 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 2173 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 2174 fs/ceph/caps.c if (!list_empty(&ci->i_cap_flush_list)) { ci 2176 fs/ceph/caps.c list_first_entry(&ci->i_cap_flush_list, ci 2181 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2190 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 2194 fs/ceph/caps.c spin_lock(&ci->i_unsafe_lock); ci 2195 fs/ceph/caps.c if (S_ISDIR(inode->i_mode) && !list_empty(&ci->i_unsafe_dirops)) { ci 2196 fs/ceph/caps.c req1 = list_last_entry(&ci->i_unsafe_dirops, ci 2201 fs/ceph/caps.c if (!list_empty(&ci->i_unsafe_iops)) { ci 2202 fs/ceph/caps.c req2 = list_last_entry(&ci->i_unsafe_iops, ci 2207 fs/ceph/caps.c spin_unlock(&ci->i_unsafe_lock); ci 2232 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 2254 fs/ceph/caps.c err = wait_event_interruptible(ci->i_cap_wq, ci 2261 fs/ceph/caps.c if (errseq_check(&ci->i_meta_err, READ_ONCE(fi->meta_err))) { ci 2263 fs/ceph/caps.c err = errseq_check_and_advance(&ci->i_meta_err, ci 2282 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 2292 fs/ceph/caps.c err = wait_event_interruptible(ci->i_cap_wq, ci 2298 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 2299 fs/ceph/caps.c if (__ceph_caps_dirty(ci)) ci 2300 fs/ceph/caps.c __cap_delay_requeue_front(mdsc, ci); ci 2301 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2308 fs/ceph/caps.c struct ceph_inode_info *ci, ci 2310 fs/ceph/caps.c __releases(ci->i_ceph_lock) ci 2311 fs/ceph/caps.c __acquires(ci->i_ceph_lock) ci 2313 fs/ceph/caps.c struct inode *inode = &ci->vfs_inode; ci 2320 fs/ceph/caps.c ci->i_ceph_flags &= ~CEPH_I_KICK_FLUSH; ci 2322 fs/ceph/caps.c list_for_each_entry_reverse(cf, &ci->i_cap_flush_list, i_list) { ci 2329 fs/ceph/caps.c list_for_each_entry(cf, &ci->i_cap_flush_list, i_list) { ci 2333 fs/ceph/caps.c cap = ci->i_auth_cap; ci 2345 fs/ceph/caps.c ci->i_ceph_flags |= CEPH_I_NODELAY; ci 2350 fs/ceph/caps.c __ceph_caps_used(ci), ci 2351 fs/ceph/caps.c __ceph_caps_wanted(ci), ci 2370 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2385 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 2392 fs/ceph/caps.c struct ceph_inode_info *ci; ci 2402 fs/ceph/caps.c list_for_each_entry(ci, &session->s_cap_flushing, i_flushing_item) { ci 2403 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 2404 fs/ceph/caps.c cap = ci->i_auth_cap; ci 2407 fs/ceph/caps.c &ci->vfs_inode, cap, session->s_mds); ci 2408 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2419 fs/ceph/caps.c if ((cap->issued & ci->i_flushing_caps) != ci 2420 fs/ceph/caps.c ci->i_flushing_caps) { ci 2427 fs/ceph/caps.c __kick_flushing_caps(mdsc, session, ci, ci 2430 fs/ceph/caps.c ci->i_ceph_flags |= CEPH_I_KICK_FLUSH; ci 2433 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2440 fs/ceph/caps.c struct ceph_inode_info *ci; ci 2450 fs/ceph/caps.c list_for_each_entry(ci, &session->s_cap_flushing, i_flushing_item) { ci 2451 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 2452 fs/ceph/caps.c cap = ci->i_auth_cap; ci 2455 fs/ceph/caps.c &ci->vfs_inode, cap, session->s_mds); ci 2456 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2459 fs/ceph/caps.c if (ci->i_ceph_flags & CEPH_I_KICK_FLUSH) { ci 2460 fs/ceph/caps.c __kick_flushing_caps(mdsc, session, ci, ci 2463 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2470 fs/ceph/caps.c __releases(ci->i_ceph_lock) ci 2472 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 2475 fs/ceph/caps.c cap = ci->i_auth_cap; ci 2477 fs/ceph/caps.c ceph_cap_string(ci->i_flushing_caps)); ci 2479 fs/ceph/caps.c if (!list_empty(&ci->i_cap_flush_list)) { ci 2482 fs/ceph/caps.c list_move_tail(&ci->i_flushing_item, ci 2487 fs/ceph/caps.c __kick_flushing_caps(mdsc, session, ci, oldest_flush_tid); ci 2488 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2490 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2501 fs/ceph/caps.c static void __take_cap_refs(struct ceph_inode_info *ci, int got, ci 2505 fs/ceph/caps.c ci->i_pin_ref++; ci 2507 fs/ceph/caps.c ci->i_rd_ref++; ci 2509 fs/ceph/caps.c ci->i_rdcache_ref++; ci 2511 fs/ceph/caps.c if (ci->i_wr_ref == 0 && !ci->i_head_snapc) { ci 2513 fs/ceph/caps.c ci->i_head_snapc = ceph_get_snap_context( ci 2514 fs/ceph/caps.c ci->i_snap_realm->cached_context); ci 2516 fs/ceph/caps.c ci->i_wr_ref++; ci 2519 fs/ceph/caps.c if (ci->i_wb_ref == 0) ci 2520 fs/ceph/caps.c ihold(&ci->vfs_inode); ci 2521 fs/ceph/caps.c ci->i_wb_ref++; ci 2523 fs/ceph/caps.c &ci->vfs_inode, ci->i_wb_ref-1, ci->i_wb_ref); ci 2547 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 2558 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 2561 fs/ceph/caps.c (ci->i_ceph_flags & CEPH_I_ERROR_FILELOCK)) { ci 2568 fs/ceph/caps.c file_wanted = __ceph_caps_file_wanted(ci); ci 2577 fs/ceph/caps.c while (ci->i_truncate_pending) { ci 2578 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2584 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 2587 fs/ceph/caps.c have = __ceph_caps_issued(ci, &implemented); ci 2590 fs/ceph/caps.c if (endoff >= 0 && endoff > (loff_t)ci->i_max_size) { ci 2592 fs/ceph/caps.c inode, endoff, ci->i_max_size); ci 2593 fs/ceph/caps.c if (endoff > ci->i_requested_max_size) ci 2601 fs/ceph/caps.c if (__ceph_have_pending_cap_snap(ci)) { ci 2621 fs/ceph/caps.c !ci->i_head_snapc && ci 2633 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2643 fs/ceph/caps.c ceph_disable_fscache_readpage(ci); ci 2644 fs/ceph/caps.c __take_cap_refs(ci, *got, true); ci 2649 fs/ceph/caps.c if ((need & CEPH_CAP_FILE_WR) && ci->i_auth_cap) { ci 2650 fs/ceph/caps.c struct ceph_mds_session *s = ci->i_auth_cap->session; ci 2657 fs/ceph/caps.c inode, ceph_cap_string(need), ci->i_auth_cap->mds); ci 2662 fs/ceph/caps.c if (ci->i_ceph_flags & CEPH_I_CAP_DROPPED) { ci 2670 fs/ceph/caps.c mds_wanted = __ceph_caps_mds_wanted(ci, false); ci 2678 fs/ceph/caps.c ci->i_ceph_flags &= ~CEPH_I_CAP_DROPPED; ci 2685 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2701 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 2705 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 2706 fs/ceph/caps.c if (endoff >= ci->i_max_size && endoff > ci->i_wanted_max_size) { ci 2709 fs/ceph/caps.c ci->i_wanted_max_size = endoff; ci 2712 fs/ceph/caps.c if (ci->i_auth_cap && ci 2713 fs/ceph/caps.c (ci->i_auth_cap->issued & CEPH_CAP_FILE_WR) && ci 2714 fs/ceph/caps.c ci->i_wanted_max_size > ci->i_max_size && ci 2715 fs/ceph/caps.c ci->i_wanted_max_size > ci->i_requested_max_size) ci 2717 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2719 fs/ceph/caps.c ceph_check_caps(ci, CHECK_CAPS_AUTHONLY, NULL); ci 2748 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 2772 fs/ceph/caps.c add_wait_queue(&ci->i_cap_wq, &wait); ci 2784 fs/ceph/caps.c remove_wait_queue(&ci->i_cap_wq, &wait); ci 2792 fs/ceph/caps.c ceph_put_cap_refs(ci, _got); ci 2806 fs/ceph/caps.c if (ci->i_inline_version != CEPH_INLINE_NONE && ci 2822 fs/ceph/caps.c ceph_put_cap_refs(ci, _got); ci 2840 fs/ceph/caps.c ceph_fscache_revalidate_cookie(ci); ci 2850 fs/ceph/caps.c void ceph_get_cap_refs(struct ceph_inode_info *ci, int caps) ci 2852 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 2853 fs/ceph/caps.c __take_cap_refs(ci, caps, false); ci 2854 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2862 fs/ceph/caps.c static int ceph_try_drop_cap_snap(struct ceph_inode_info *ci, ci 2871 fs/ceph/caps.c if (!list_is_last(&capsnap->ci_item, &ci->i_cap_snaps)) ci 2872 fs/ceph/caps.c ci->i_ceph_flags |= CEPH_I_FLUSH_SNAPS; ci 2890 fs/ceph/caps.c void ceph_put_cap_refs(struct ceph_inode_info *ci, int had) ci 2892 fs/ceph/caps.c struct inode *inode = &ci->vfs_inode; ci 2895 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 2897 fs/ceph/caps.c --ci->i_pin_ref; ci 2899 fs/ceph/caps.c if (--ci->i_rd_ref == 0) ci 2902 fs/ceph/caps.c if (--ci->i_rdcache_ref == 0) ci 2905 fs/ceph/caps.c if (--ci->i_wb_ref == 0) { ci 2910 fs/ceph/caps.c inode, ci->i_wb_ref+1, ci->i_wb_ref); ci 2913 fs/ceph/caps.c if (--ci->i_wr_ref == 0) { ci 2915 fs/ceph/caps.c if (__ceph_have_pending_cap_snap(ci)) { ci 2917 fs/ceph/caps.c list_last_entry(&ci->i_cap_snaps, ci 2921 fs/ceph/caps.c if (ceph_try_drop_cap_snap(ci, capsnap)) ci 2923 fs/ceph/caps.c else if (__ceph_finish_cap_snap(ci, capsnap)) ci 2927 fs/ceph/caps.c if (ci->i_wrbuffer_ref_head == 0 && ci 2928 fs/ceph/caps.c ci->i_dirty_caps == 0 && ci 2929 fs/ceph/caps.c ci->i_flushing_caps == 0) { ci 2930 fs/ceph/caps.c BUG_ON(!ci->i_head_snapc); ci 2931 fs/ceph/caps.c ceph_put_snap_context(ci->i_head_snapc); ci 2932 fs/ceph/caps.c ci->i_head_snapc = NULL; ci 2935 fs/ceph/caps.c if (!__ceph_is_any_caps(ci) && ci->i_snap_realm) ci 2936 fs/ceph/caps.c drop_inode_snap_realm(ci); ci 2938 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 2944 fs/ceph/caps.c ceph_check_caps(ci, 0, NULL); ci 2946 fs/ceph/caps.c ceph_flush_snaps(ci, NULL); ci 2948 fs/ceph/caps.c wake_up_all(&ci->i_cap_wq); ci 2960 fs/ceph/caps.c void ceph_put_wrbuffer_cap_refs(struct ceph_inode_info *ci, int nr, ci 2963 fs/ceph/caps.c struct inode *inode = &ci->vfs_inode; ci 2971 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 2972 fs/ceph/caps.c ci->i_wrbuffer_ref -= nr; ci 2973 fs/ceph/caps.c if (ci->i_wrbuffer_ref == 0) { ci 2978 fs/ceph/caps.c if (ci->i_head_snapc == snapc) { ci 2979 fs/ceph/caps.c ci->i_wrbuffer_ref_head -= nr; ci 2980 fs/ceph/caps.c if (ci->i_wrbuffer_ref_head == 0 && ci 2981 fs/ceph/caps.c ci->i_wr_ref == 0 && ci 2982 fs/ceph/caps.c ci->i_dirty_caps == 0 && ci 2983 fs/ceph/caps.c ci->i_flushing_caps == 0) { ci 2984 fs/ceph/caps.c BUG_ON(!ci->i_head_snapc); ci 2985 fs/ceph/caps.c ceph_put_snap_context(ci->i_head_snapc); ci 2986 fs/ceph/caps.c ci->i_head_snapc = NULL; ci 2990 fs/ceph/caps.c ci->i_wrbuffer_ref+nr, ci->i_wrbuffer_ref_head+nr, ci 2991 fs/ceph/caps.c ci->i_wrbuffer_ref, ci->i_wrbuffer_ref_head, ci 2994 fs/ceph/caps.c list_for_each_entry(capsnap, &ci->i_cap_snaps, ci_item) { ci 3005 fs/ceph/caps.c if (ceph_try_drop_cap_snap(ci, capsnap)) { ci 3008 fs/ceph/caps.c ci->i_ceph_flags |= CEPH_I_FLUSH_SNAPS; ci 3016 fs/ceph/caps.c ci->i_wrbuffer_ref+nr, capsnap->dirty_pages + nr, ci 3017 fs/ceph/caps.c ci->i_wrbuffer_ref, capsnap->dirty_pages, ci 3022 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 3025 fs/ceph/caps.c ceph_check_caps(ci, CHECK_CAPS_AUTHONLY, NULL); ci 3027 fs/ceph/caps.c ceph_flush_snaps(ci, NULL); ci 3030 fs/ceph/caps.c wake_up_all(&ci->i_cap_wq); ci 3097 fs/ceph/caps.c __releases(ci->i_ceph_lock) ci 3100 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 3129 fs/ceph/caps.c !(ci->i_wrbuffer_ref || ci->i_wb_ref)) { ci 3133 fs/ceph/caps.c if (ci->i_rdcache_revoking != ci->i_rdcache_gen) { ci 3135 fs/ceph/caps.c ci->i_rdcache_revoking = ci->i_rdcache_gen; ci 3152 fs/ceph/caps.c WARN_ON(cap != ci->i_auth_cap); ci 3162 fs/ceph/caps.c __check_cap_issue(ci, cap, newcaps); ci 3171 fs/ceph/caps.c ci->i_btime = extra_info->btime; ci 3190 fs/ceph/caps.c if (version > ci->i_xattrs.version) { ci 3193 fs/ceph/caps.c if (ci->i_xattrs.blob) ci 3194 fs/ceph/caps.c ceph_buffer_put(ci->i_xattrs.blob); ci 3195 fs/ceph/caps.c ci->i_xattrs.blob = ceph_buffer_get(xattr_buf); ci 3196 fs/ceph/caps.c ci->i_xattrs.version = version; ci 3214 fs/ceph/caps.c ci->i_files = extra_info->nfiles; ci 3215 fs/ceph/caps.c ci->i_subdirs = extra_info->nsubdirs; ci 3220 fs/ceph/caps.c s64 old_pool = ci->i_layout.pool_id; ci 3223 fs/ceph/caps.c ceph_file_layout_from_legacy(&ci->i_layout, &grant->layout); ci 3224 fs/ceph/caps.c old_ns = rcu_dereference_protected(ci->i_layout.pool_ns, ci 3225 fs/ceph/caps.c lockdep_is_held(&ci->i_ceph_lock)); ci 3226 fs/ceph/caps.c rcu_assign_pointer(ci->i_layout.pool_ns, extra_info->pool_ns); ci 3228 fs/ceph/caps.c if (ci->i_layout.pool_id != old_pool || ci 3230 fs/ceph/caps.c ci->i_ceph_flags &= ~CEPH_I_POOL_PERM; ci 3241 fs/ceph/caps.c if (ci->i_auth_cap == cap && (newcaps & CEPH_CAP_ANY_FILE_WR)) { ci 3242 fs/ceph/caps.c if (max_size != ci->i_max_size) { ci 3244 fs/ceph/caps.c ci->i_max_size, max_size); ci 3245 fs/ceph/caps.c ci->i_max_size = max_size; ci 3246 fs/ceph/caps.c if (max_size >= ci->i_wanted_max_size) { ci 3247 fs/ceph/caps.c ci->i_wanted_max_size = 0; /* reset */ ci 3248 fs/ceph/caps.c ci->i_requested_max_size = 0; ci 3251 fs/ceph/caps.c } else if (ci->i_wanted_max_size > ci->i_max_size && ci 3252 fs/ceph/caps.c ci->i_wanted_max_size > ci->i_requested_max_size) { ci 3259 fs/ceph/caps.c wanted = __ceph_caps_wanted(ci); ci 3260 fs/ceph/caps.c used = __ceph_caps_used(ci); ci 3261 fs/ceph/caps.c dirty = __ceph_caps_dirty(ci); ci 3296 fs/ceph/caps.c else if (cap == ci->i_auth_cap) ci 3309 fs/ceph/caps.c if (cap == ci->i_auth_cap && ci 3310 fs/ceph/caps.c __ceph_caps_revoking_other(ci, cap, newcaps)) ci 3322 fs/ceph/caps.c extra_info->inline_version >= ci->i_inline_version) { ci 3323 fs/ceph/caps.c ci->i_inline_version = extra_info->inline_version; ci 3324 fs/ceph/caps.c if (ci->i_inline_version != CEPH_INLINE_NONE && ci 3335 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 3357 fs/ceph/caps.c wake_up_all(&ci->i_cap_wq); ci 3360 fs/ceph/caps.c ceph_check_caps(ci, CHECK_CAPS_NODELAY|CHECK_CAPS_AUTHONLY, ci 3363 fs/ceph/caps.c ceph_check_caps(ci, CHECK_CAPS_NODELAY, session); ci 3376 fs/ceph/caps.c __releases(ci->i_ceph_lock) ci 3378 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 3389 fs/ceph/caps.c list_for_each_entry_safe(cf, tmp_cf, &ci->i_cap_flush_list, i_list) { ci 3395 fs/ceph/caps.c if (__finish_cap_flush(NULL, ci, cf)) ci 3408 fs/ceph/caps.c ceph_cap_string(cleaned), ceph_cap_string(ci->i_flushing_caps), ci 3409 fs/ceph/caps.c ceph_cap_string(ci->i_flushing_caps & ~cleaned)); ci 3414 fs/ceph/caps.c ci->i_flushing_caps &= ~cleaned; ci 3423 fs/ceph/caps.c if (ci->i_flushing_caps == 0) { ci 3424 fs/ceph/caps.c if (list_empty(&ci->i_cap_flush_list)) { ci 3425 fs/ceph/caps.c list_del_init(&ci->i_flushing_item); ci 3437 fs/ceph/caps.c if (ci->i_dirty_caps == 0) { ci 3439 fs/ceph/caps.c BUG_ON(!list_empty(&ci->i_dirty_item)); ci 3441 fs/ceph/caps.c if (ci->i_wr_ref == 0 && ci 3442 fs/ceph/caps.c ci->i_wrbuffer_ref_head == 0) { ci 3443 fs/ceph/caps.c BUG_ON(!ci->i_head_snapc); ci 3444 fs/ceph/caps.c ceph_put_snap_context(ci->i_head_snapc); ci 3445 fs/ceph/caps.c ci->i_head_snapc = NULL; ci 3448 fs/ceph/caps.c BUG_ON(list_empty(&ci->i_dirty_item)); ci 3454 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 3464 fs/ceph/caps.c wake_up_all(&ci->i_cap_wq); ci 3481 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 3490 fs/ceph/caps.c inode, ci, session->s_mds, follows); ci 3492 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 3493 fs/ceph/caps.c list_for_each_entry(capsnap, &ci->i_cap_snaps, ci_item) { ci 3513 fs/ceph/caps.c if (__finish_cap_flush(NULL, ci, &capsnap->cap_flush)) ci 3518 fs/ceph/caps.c if (list_empty(&ci->i_cap_flush_list)) ci 3519 fs/ceph/caps.c list_del_init(&ci->i_flushing_item); ci 3526 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 3531 fs/ceph/caps.c wake_up_all(&ci->i_cap_wq); ci 3546 fs/ceph/caps.c __releases(ci->i_ceph_lock) ci 3548 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 3555 fs/ceph/caps.c int dirty = __ceph_caps_dirty(ci); ci 3565 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 3586 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 3604 fs/ceph/caps.c inode, ci, mds, mseq, target); ci 3606 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 3607 fs/ceph/caps.c cap = __get_cap_for_mds(ci, mds); ci 3613 fs/ceph/caps.c ci->i_ceph_flags |= CEPH_I_CAP_DROPPED; ci 3633 fs/ceph/caps.c tcap = __get_cap_for_mds(ci, target); ci 3644 fs/ceph/caps.c if (cap == ci->i_auth_cap) ci 3645 fs/ceph/caps.c ci->i_auth_cap = tcap; ci 3647 fs/ceph/caps.c if (!list_empty(&ci->i_cap_flush_list) && ci 3648 fs/ceph/caps.c ci->i_auth_cap == tcap) { ci 3650 fs/ceph/caps.c list_move_tail(&ci->i_flushing_item, ci 3659 fs/ceph/caps.c int flag = (cap == ci->i_auth_cap) ? CEPH_CAP_FLAG_AUTH : 0; ci 3664 fs/ceph/caps.c if (!list_empty(&ci->i_cap_flush_list) && ci 3665 fs/ceph/caps.c ci->i_auth_cap == tcap) { ci 3667 fs/ceph/caps.c list_move_tail(&ci->i_flushing_item, ci 3676 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 3701 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 3721 fs/ceph/caps.c __acquires(ci->i_ceph_lock) ci 3723 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 3745 fs/ceph/caps.c inode, ci, mds, mseq, peer); ci 3748 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 3749 fs/ceph/caps.c cap = __get_cap_for_mds(ci, mds); ci 3752 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 3764 fs/ceph/caps.c __ceph_caps_issued(ci, &issued); ci 3765 fs/ceph/caps.c issued |= __ceph_caps_dirty(ci); ci 3770 fs/ceph/caps.c ocap = peer >= 0 ? __get_cap_for_mds(ci, peer) : NULL; ci 3789 fs/ceph/caps.c ci->i_requested_max_size = 0; ci 3806 fs/ceph/caps.c struct ceph_inode_info *ci; ci 3917 fs/ceph/caps.c ci = ceph_inode(inode); ci 3976 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 3982 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 3990 fs/ceph/caps.c __ceph_caps_issued(ci, &extra_info.issued); ci 3991 fs/ceph/caps.c extra_info.issued |= __ceph_caps_dirty(ci); ci 4006 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 4040 fs/ceph/caps.c struct ceph_inode_info *ci; ci 4048 fs/ceph/caps.c ci = list_first_entry(&mdsc->cap_delay_list, ci 4051 fs/ceph/caps.c if ((ci->i_ceph_flags & CEPH_I_FLUSH) == 0 && ci 4052 fs/ceph/caps.c time_before(jiffies, ci->i_hold_caps_max)) ci 4054 fs/ceph/caps.c list_del_init(&ci->i_cap_delay_list); ci 4056 fs/ceph/caps.c inode = igrab(&ci->vfs_inode); ci 4061 fs/ceph/caps.c ceph_check_caps(ci, flags, NULL); ci 4074 fs/ceph/caps.c struct ceph_inode_info *ci; ci 4080 fs/ceph/caps.c ci = list_first_entry(&mdsc->cap_dirty, struct ceph_inode_info, ci 4082 fs/ceph/caps.c inode = &ci->vfs_inode; ci 4086 fs/ceph/caps.c ceph_check_caps(ci, CHECK_CAPS_NODELAY|CHECK_CAPS_FLUSH, NULL); ci 4094 fs/ceph/caps.c void __ceph_get_fmode(struct ceph_inode_info *ci, int fmode) ci 4100 fs/ceph/caps.c ci->i_nr_by_mode[i]++; ci 4109 fs/ceph/caps.c void ceph_put_fmode(struct ceph_inode_info *ci, int fmode) ci 4113 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 4116 fs/ceph/caps.c BUG_ON(ci->i_nr_by_mode[i] == 0); ci 4117 fs/ceph/caps.c if (--ci->i_nr_by_mode[i] == 0) ci 4122 fs/ceph/caps.c &ci->vfs_inode, fmode, ci 4123 fs/ceph/caps.c ci->i_nr_by_mode[0], ci->i_nr_by_mode[1], ci 4124 fs/ceph/caps.c ci->i_nr_by_mode[2], ci->i_nr_by_mode[3]); ci 4125 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 4127 fs/ceph/caps.c if (last && ci->i_vino.snap == CEPH_NOSNAP) ci 4128 fs/ceph/caps.c ceph_check_caps(ci, 0, NULL); ci 4139 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 4142 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 4144 fs/ceph/caps.c drop |= ~(__ceph_caps_wanted(ci) | CEPH_CAP_PIN); ci 4146 fs/ceph/caps.c ci->i_ceph_flags |= CEPH_I_NODELAY; ci 4147 fs/ceph/caps.c if (__ceph_caps_dirty(ci)) { ci 4150 fs/ceph/caps.c __cap_delay_requeue_front(mdsc, ci); ci 4153 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 4168 fs/ceph/caps.c struct ceph_inode_info *ci = ceph_inode(inode); ci 4174 fs/ceph/caps.c spin_lock(&ci->i_ceph_lock); ci 4175 fs/ceph/caps.c used = __ceph_caps_used(ci); ci 4176 fs/ceph/caps.c dirty = __ceph_caps_dirty(ci); ci 4185 fs/ceph/caps.c cap = __get_cap_for_mds(ci, mds); ci 4201 fs/ceph/caps.c int wanted = __ceph_caps_wanted(ci); ci 4202 fs/ceph/caps.c if ((ci->i_ceph_flags & CEPH_I_NODELAY) == 0) ci 4236 fs/ceph/caps.c spin_unlock(&ci->i_ceph_lock); ci 307 fs/ceph/dir.c struct ceph_inode_info *ci = ceph_inode(inode); ci 339 fs/ceph/dir.c spin_lock(&ci->i_ceph_lock); ci 343 fs/ceph/dir.c __ceph_dir_is_complete_ordered(ci) && ci 344 fs/ceph/dir.c __ceph_caps_issued_mask(ci, CEPH_CAP_FILE_SHARED, 1)) { ci 345 fs/ceph/dir.c int shared_gen = atomic_read(&ci->i_shared_gen); ci 346 fs/ceph/dir.c spin_unlock(&ci->i_ceph_lock); ci 351 fs/ceph/dir.c spin_unlock(&ci->i_ceph_lock); ci 372 fs/ceph/dir.c frag = ceph_choose_frag(ci, fpos_hash(ctx->pos), ci 559 fs/ceph/dir.c if (atomic64_read(&ci->i_release_count) == ci 561 fs/ceph/dir.c spin_lock(&ci->i_ceph_lock); ci 563 fs/ceph/dir.c atomic64_read(&ci->i_ordered_count)) { ci 573 fs/ceph/dir.c __ceph_dir_set_complete(ci, dfi->dir_release_count, ci 575 fs/ceph/dir.c spin_unlock(&ci->i_ceph_lock); ci 751 fs/ceph/dir.c struct ceph_inode_info *ci = ceph_inode(dir); ci 754 fs/ceph/dir.c spin_lock(&ci->i_ceph_lock); ci 755 fs/ceph/dir.c dout(" dir %p flags are %d\n", dir, ci->i_ceph_flags); ci 761 fs/ceph/dir.c __ceph_dir_is_complete(ci) && ci 762 fs/ceph/dir.c (__ceph_caps_issued_mask(ci, CEPH_CAP_FILE_SHARED, 1))) { ci 763 fs/ceph/dir.c spin_unlock(&ci->i_ceph_lock); ci 766 fs/ceph/dir.c di->lease_shared_gen = atomic_read(&ci->i_shared_gen); ci 769 fs/ceph/dir.c spin_unlock(&ci->i_ceph_lock); ci 1495 fs/ceph/dir.c struct ceph_inode_info *ci; ci 1504 fs/ceph/dir.c ci = ceph_inode(dir); ci 1506 fs/ceph/dir.c if (spin_trylock(&ci->i_ceph_lock)) { ci 1507 fs/ceph/dir.c if (atomic_read(&ci->i_shared_gen) == di->lease_shared_gen && ci 1508 fs/ceph/dir.c __ceph_caps_issued_mask(ci, CEPH_CAP_FILE_SHARED, 0)) ci 1510 fs/ceph/dir.c spin_unlock(&ci->i_ceph_lock); ci 1525 fs/ceph/dir.c struct ceph_inode_info *ci = ceph_inode(dir); ci 1529 fs/ceph/dir.c spin_lock(&ci->i_ceph_lock); ci 1530 fs/ceph/dir.c valid = __ceph_caps_issued_mask(ci, CEPH_CAP_FILE_SHARED, 1); ci 1531 fs/ceph/dir.c shared_gen = atomic_read(&ci->i_shared_gen); ci 1532 fs/ceph/dir.c spin_unlock(&ci->i_ceph_lock); ci 1545 fs/ceph/dir.c dir, (unsigned)atomic_read(&ci->i_shared_gen), dentry, valid); ci 1738 fs/ceph/dir.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1759 fs/ceph/dir.c ci->i_files + ci->i_subdirs, ci 1760 fs/ceph/dir.c ci->i_files, ci 1761 fs/ceph/dir.c ci->i_subdirs, ci 1762 fs/ceph/dir.c ci->i_rfiles + ci->i_rsubdirs, ci 1763 fs/ceph/dir.c ci->i_rfiles, ci 1764 fs/ceph/dir.c ci->i_rsubdirs, ci 1765 fs/ceph/dir.c ci->i_rbytes, ci 1766 fs/ceph/dir.c ci->i_rctime.tv_sec, ci 1767 fs/ceph/dir.c ci->i_rctime.tv_nsec); ci 205 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 216 fs/ceph/file.c ceph_put_fmode(ci, fmode); /* clean up */ ci 227 fs/ceph/file.c ceph_put_fmode(ci, fmode); /* clean up */ ci 237 fs/ceph/file.c fi->meta_err = errseq_sample(&ci->i_meta_err); ci 291 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 295 fs/ceph/file.c spin_lock(&ci->i_ceph_lock); ci 296 fs/ceph/file.c wanted = __ceph_caps_file_wanted(ci); ci 297 fs/ceph/file.c if (__ceph_is_any_real_caps(ci) && ci 298 fs/ceph/file.c (!(wanted & CEPH_CAP_ANY_WR) || ci->i_auth_cap)) { ci 299 fs/ceph/file.c int issued = __ceph_caps_issued(ci, NULL); ci 300 fs/ceph/file.c spin_unlock(&ci->i_ceph_lock); ci 303 fs/ceph/file.c ceph_check_caps(ci, 0, NULL); ci 306 fs/ceph/file.c spin_unlock(&ci->i_ceph_lock); ci 346 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 375 fs/ceph/file.c spin_lock(&ci->i_ceph_lock); ci 376 fs/ceph/file.c __ceph_get_fmode(ci, fmode); ci 377 fs/ceph/file.c spin_unlock(&ci->i_ceph_lock); ci 386 fs/ceph/file.c spin_lock(&ci->i_ceph_lock); ci 387 fs/ceph/file.c if (__ceph_is_any_real_caps(ci) && ci 388 fs/ceph/file.c (((fmode & CEPH_FILE_MODE_WR) == 0) || ci->i_auth_cap)) { ci 389 fs/ceph/file.c int mds_wanted = __ceph_caps_mds_wanted(ci, true); ci 390 fs/ceph/file.c int issued = __ceph_caps_issued(ci, NULL); ci 395 fs/ceph/file.c __ceph_get_fmode(ci, fmode); ci 396 fs/ceph/file.c spin_unlock(&ci->i_ceph_lock); ci 402 fs/ceph/file.c ceph_check_caps(ci, 0, NULL); ci 406 fs/ceph/file.c (ci->i_snap_caps & wanted) == wanted) { ci 407 fs/ceph/file.c __ceph_get_fmode(ci, fmode); ci 408 fs/ceph/file.c spin_unlock(&ci->i_ceph_lock); ci 412 fs/ceph/file.c spin_unlock(&ci->i_ceph_lock); ci 538 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 545 fs/ceph/file.c ceph_put_fmode(ci, dfi->file_info.fmode); ci 557 fs/ceph/file.c ceph_put_fmode(ci, fi->fmode); ci 562 fs/ceph/file.c wake_up_all(&ci->i_cap_wq); ci 587 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 619 fs/ceph/file.c req = ceph_osdc_new_request(osdc, &ci->i_layout, ci 620 fs/ceph/file.c ci->i_vino, off, &len, 0, 1, ci 622 fs/ceph/file.c NULL, ci->i_truncate_seq, ci 623 fs/ceph/file.c ci->i_truncate_size, false); ci 750 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 771 fs/ceph/file.c ceph_check_caps(ci, CHECK_CAPS_AUTHONLY, NULL); ci 774 fs/ceph/file.c spin_lock(&ci->i_ceph_lock); ci 775 fs/ceph/file.c ci->i_inline_version = CEPH_INLINE_NONE; ci 776 fs/ceph/file.c dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, ci 778 fs/ceph/file.c spin_unlock(&ci->i_ceph_lock); ci 784 fs/ceph/file.c ceph_put_cap_refs(ci, (aio_req->write ? CEPH_CAP_FILE_WR : ci 866 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 871 fs/ceph/file.c spin_lock(&ci->i_ceph_lock); ci 872 fs/ceph/file.c if (__ceph_have_pending_cap_snap(ci)) { ci 874 fs/ceph/file.c list_last_entry(&ci->i_cap_snaps, ci 879 fs/ceph/file.c BUG_ON(!ci->i_head_snapc); ci 880 fs/ceph/file.c snapc = ceph_get_snap_context(ci->i_head_snapc); ci 882 fs/ceph/file.c spin_unlock(&ci->i_ceph_lock); ci 932 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 976 fs/ceph/file.c req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, ci 982 fs/ceph/file.c ci->i_truncate_seq, ci 983 fs/ceph/file.c ci->i_truncate_size, ci 1093 fs/ceph/file.c ceph_get_cap_refs(ci, write ? CEPH_CAP_FILE_WR : ci 1134 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1172 fs/ceph/file.c req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, ci 1175 fs/ceph/file.c ci->i_truncate_seq, ci 1176 fs/ceph/file.c ci->i_truncate_size, ci 1224 fs/ceph/file.c ceph_set_error_write(ci); ci 1228 fs/ceph/file.c ceph_clear_error_write(ci); ci 1261 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1298 fs/ceph/file.c if (ci->i_inline_version == CEPH_INLINE_NONE) { ci 1326 fs/ceph/file.c ceph_put_cap_refs(ci, got); ci 1416 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1481 fs/ceph/file.c if (ci->i_inline_version != CEPH_INLINE_NONE) { ci 1489 fs/ceph/file.c pool_flags = ceph_pg_pool_flags(osdc->osdmap, ci->i_layout.pool_id); ci 1514 fs/ceph/file.c (ci->i_ceph_flags & CEPH_I_ERROR_WRITE)) { ci 1518 fs/ceph/file.c spin_lock(&ci->i_ceph_lock); ci 1519 fs/ceph/file.c if (__ceph_have_pending_cap_snap(ci)) { ci 1521 fs/ceph/file.c list_last_entry(&ci->i_cap_snaps, ci 1526 fs/ceph/file.c BUG_ON(!ci->i_head_snapc); ci 1527 fs/ceph/file.c snapc = ceph_get_snap_context(ci->i_head_snapc); ci 1529 fs/ceph/file.c spin_unlock(&ci->i_ceph_lock); ci 1562 fs/ceph/file.c spin_lock(&ci->i_ceph_lock); ci 1563 fs/ceph/file.c ci->i_inline_version = CEPH_INLINE_NONE; ci 1564 fs/ceph/file.c dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, ci 1566 fs/ceph/file.c spin_unlock(&ci->i_ceph_lock); ci 1570 fs/ceph/file.c ceph_check_caps(ci, CHECK_CAPS_NODELAY, NULL); ci 1576 fs/ceph/file.c ceph_put_cap_refs(ci, got); ci 1701 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1715 fs/ceph/file.c req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, ci 1742 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1743 fs/ceph/file.c s32 stripe_unit = ci->i_layout.stripe_unit; ci 1744 fs/ceph/file.c s32 stripe_count = ci->i_layout.stripe_count; ci 1745 fs/ceph/file.c s32 object_size = ci->i_layout.object_size; ci 1790 fs/ceph/file.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1815 fs/ceph/file.c if (ci->i_inline_version != CEPH_INLINE_NONE) { ci 1842 fs/ceph/file.c spin_lock(&ci->i_ceph_lock); ci 1843 fs/ceph/file.c ci->i_inline_version = CEPH_INLINE_NONE; ci 1844 fs/ceph/file.c dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, ci 1846 fs/ceph/file.c spin_unlock(&ci->i_ceph_lock); ci 1851 fs/ceph/file.c ceph_put_cap_refs(ci, got); ci 79 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 89 fs/ceph/inode.c ci->i_snap_caps = CEPH_CAP_PIN; /* so we can open */ ci 90 fs/ceph/inode.c ci->i_rbytes = 0; ci 115 fs/ceph/inode.c static struct ceph_inode_frag *__get_or_create_frag(struct ceph_inode_info *ci, ci 123 fs/ceph/inode.c p = &ci->i_fragtree.rb_node; ci 146 fs/ceph/inode.c rb_insert_color(&frag->node, &ci->i_fragtree); ci 149 fs/ceph/inode.c ceph_vinop(&ci->vfs_inode), f); ci 156 fs/ceph/inode.c struct ceph_inode_frag *__ceph_find_frag(struct ceph_inode_info *ci, u32 f) ci 158 fs/ceph/inode.c struct rb_node *n = ci->i_fragtree.rb_node; ci 179 fs/ceph/inode.c static u32 __ceph_choose_frag(struct ceph_inode_info *ci, u32 v, ci 192 fs/ceph/inode.c frag = __ceph_find_frag(ci, t); ci 221 fs/ceph/inode.c u32 ceph_choose_frag(struct ceph_inode_info *ci, u32 v, ci 225 fs/ceph/inode.c mutex_lock(&ci->i_fragtree_mutex); ci 226 fs/ceph/inode.c ret = __ceph_choose_frag(ci, v, pfrag, found); ci 227 fs/ceph/inode.c mutex_unlock(&ci->i_fragtree_mutex); ci 239 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 248 fs/ceph/inode.c spin_lock(&ci->i_ceph_lock); ci 249 fs/ceph/inode.c if (ci->i_auth_cap) ci 250 fs/ceph/inode.c diri_auth = ci->i_auth_cap->mds; ci 251 fs/ceph/inode.c spin_unlock(&ci->i_ceph_lock); ci 256 fs/ceph/inode.c mutex_lock(&ci->i_fragtree_mutex); ci 259 fs/ceph/inode.c frag = __ceph_find_frag(ci, id); ci 266 fs/ceph/inode.c rb_erase(&frag->node, &ci->i_fragtree); ci 280 fs/ceph/inode.c frag = __get_or_create_frag(ci, id); ci 298 fs/ceph/inode.c mutex_unlock(&ci->i_fragtree_mutex); ci 323 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 330 fs/ceph/inode.c mutex_lock(&ci->i_fragtree_mutex); ci 332 fs/ceph/inode.c if (nsplits != ci->i_fragtree_nsplits) { ci 337 fs/ceph/inode.c if (!__ceph_find_frag(ci, id)) ci 339 fs/ceph/inode.c } else if (!RB_EMPTY_ROOT(&ci->i_fragtree)) { ci 340 fs/ceph/inode.c rb_node = rb_first(&ci->i_fragtree); ci 347 fs/ceph/inode.c if (id != __ceph_choose_frag(ci, id, NULL, NULL)) ci 359 fs/ceph/inode.c rb_node = rb_first(&ci->i_fragtree); ci 383 fs/ceph/inode.c rb_erase(&frag->node, &ci->i_fragtree); ci 385 fs/ceph/inode.c ci->i_fragtree_nsplits--; ci 391 fs/ceph/inode.c frag = __get_or_create_frag(ci, id); ci 396 fs/ceph/inode.c ci->i_fragtree_nsplits++; ci 407 fs/ceph/inode.c rb_erase(&frag->node, &ci->i_fragtree); ci 409 fs/ceph/inode.c ci->i_fragtree_nsplits--; ci 414 fs/ceph/inode.c mutex_unlock(&ci->i_fragtree_mutex); ci 423 fs/ceph/inode.c struct ceph_inode_info *ci; ci 426 fs/ceph/inode.c ci = kmem_cache_alloc(ceph_inode_cachep, GFP_NOFS); ci 427 fs/ceph/inode.c if (!ci) ci 430 fs/ceph/inode.c dout("alloc_inode %p\n", &ci->vfs_inode); ci 432 fs/ceph/inode.c spin_lock_init(&ci->i_ceph_lock); ci 434 fs/ceph/inode.c ci->i_version = 0; ci 435 fs/ceph/inode.c ci->i_inline_version = 0; ci 436 fs/ceph/inode.c ci->i_time_warp_seq = 0; ci 437 fs/ceph/inode.c ci->i_ceph_flags = 0; ci 438 fs/ceph/inode.c atomic64_set(&ci->i_ordered_count, 1); ci 439 fs/ceph/inode.c atomic64_set(&ci->i_release_count, 1); ci 440 fs/ceph/inode.c atomic64_set(&ci->i_complete_seq[0], 0); ci 441 fs/ceph/inode.c atomic64_set(&ci->i_complete_seq[1], 0); ci 442 fs/ceph/inode.c ci->i_symlink = NULL; ci 444 fs/ceph/inode.c ci->i_max_bytes = 0; ci 445 fs/ceph/inode.c ci->i_max_files = 0; ci 447 fs/ceph/inode.c memset(&ci->i_dir_layout, 0, sizeof(ci->i_dir_layout)); ci 448 fs/ceph/inode.c RCU_INIT_POINTER(ci->i_layout.pool_ns, NULL); ci 450 fs/ceph/inode.c ci->i_fragtree = RB_ROOT; ci 451 fs/ceph/inode.c mutex_init(&ci->i_fragtree_mutex); ci 453 fs/ceph/inode.c ci->i_xattrs.blob = NULL; ci 454 fs/ceph/inode.c ci->i_xattrs.prealloc_blob = NULL; ci 455 fs/ceph/inode.c ci->i_xattrs.dirty = false; ci 456 fs/ceph/inode.c ci->i_xattrs.index = RB_ROOT; ci 457 fs/ceph/inode.c ci->i_xattrs.count = 0; ci 458 fs/ceph/inode.c ci->i_xattrs.names_size = 0; ci 459 fs/ceph/inode.c ci->i_xattrs.vals_size = 0; ci 460 fs/ceph/inode.c ci->i_xattrs.version = 0; ci 461 fs/ceph/inode.c ci->i_xattrs.index_version = 0; ci 463 fs/ceph/inode.c ci->i_caps = RB_ROOT; ci 464 fs/ceph/inode.c ci->i_auth_cap = NULL; ci 465 fs/ceph/inode.c ci->i_dirty_caps = 0; ci 466 fs/ceph/inode.c ci->i_flushing_caps = 0; ci 467 fs/ceph/inode.c INIT_LIST_HEAD(&ci->i_dirty_item); ci 468 fs/ceph/inode.c INIT_LIST_HEAD(&ci->i_flushing_item); ci 469 fs/ceph/inode.c ci->i_prealloc_cap_flush = NULL; ci 470 fs/ceph/inode.c INIT_LIST_HEAD(&ci->i_cap_flush_list); ci 471 fs/ceph/inode.c init_waitqueue_head(&ci->i_cap_wq); ci 472 fs/ceph/inode.c ci->i_hold_caps_min = 0; ci 473 fs/ceph/inode.c ci->i_hold_caps_max = 0; ci 474 fs/ceph/inode.c INIT_LIST_HEAD(&ci->i_cap_delay_list); ci 475 fs/ceph/inode.c INIT_LIST_HEAD(&ci->i_cap_snaps); ci 476 fs/ceph/inode.c ci->i_head_snapc = NULL; ci 477 fs/ceph/inode.c ci->i_snap_caps = 0; ci 480 fs/ceph/inode.c ci->i_nr_by_mode[i] = 0; ci 482 fs/ceph/inode.c mutex_init(&ci->i_truncate_mutex); ci 483 fs/ceph/inode.c ci->i_truncate_seq = 0; ci 484 fs/ceph/inode.c ci->i_truncate_size = 0; ci 485 fs/ceph/inode.c ci->i_truncate_pending = 0; ci 487 fs/ceph/inode.c ci->i_max_size = 0; ci 488 fs/ceph/inode.c ci->i_reported_size = 0; ci 489 fs/ceph/inode.c ci->i_wanted_max_size = 0; ci 490 fs/ceph/inode.c ci->i_requested_max_size = 0; ci 492 fs/ceph/inode.c ci->i_pin_ref = 0; ci 493 fs/ceph/inode.c ci->i_rd_ref = 0; ci 494 fs/ceph/inode.c ci->i_rdcache_ref = 0; ci 495 fs/ceph/inode.c ci->i_wr_ref = 0; ci 496 fs/ceph/inode.c ci->i_wb_ref = 0; ci 497 fs/ceph/inode.c ci->i_wrbuffer_ref = 0; ci 498 fs/ceph/inode.c ci->i_wrbuffer_ref_head = 0; ci 499 fs/ceph/inode.c atomic_set(&ci->i_filelock_ref, 0); ci 500 fs/ceph/inode.c atomic_set(&ci->i_shared_gen, 1); ci 501 fs/ceph/inode.c ci->i_rdcache_gen = 0; ci 502 fs/ceph/inode.c ci->i_rdcache_revoking = 0; ci 504 fs/ceph/inode.c INIT_LIST_HEAD(&ci->i_unsafe_dirops); ci 505 fs/ceph/inode.c INIT_LIST_HEAD(&ci->i_unsafe_iops); ci 506 fs/ceph/inode.c spin_lock_init(&ci->i_unsafe_lock); ci 508 fs/ceph/inode.c ci->i_snap_realm = NULL; ci 509 fs/ceph/inode.c INIT_LIST_HEAD(&ci->i_snap_realm_item); ci 510 fs/ceph/inode.c INIT_LIST_HEAD(&ci->i_snap_flush_item); ci 512 fs/ceph/inode.c INIT_WORK(&ci->i_work, ceph_inode_work); ci 513 fs/ceph/inode.c ci->i_work_mask = 0; ci 514 fs/ceph/inode.c memset(&ci->i_btime, '\0', sizeof(ci->i_btime)); ci 516 fs/ceph/inode.c ceph_fscache_inode_init(ci); ci 518 fs/ceph/inode.c ci->i_meta_err = 0; ci 520 fs/ceph/inode.c return &ci->vfs_inode; ci 525 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 527 fs/ceph/inode.c kfree(ci->i_symlink); ci 528 fs/ceph/inode.c kmem_cache_free(ceph_inode_cachep, ci); ci 533 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 542 fs/ceph/inode.c ceph_fscache_unregister_inode_cookie(ci); ci 544 fs/ceph/inode.c __ceph_remove_caps(ci); ci 546 fs/ceph/inode.c if (__ceph_has_any_quota(ci)) ci 553 fs/ceph/inode.c if (ci->i_snap_realm) { ci 557 fs/ceph/inode.c struct ceph_snap_realm *realm = ci->i_snap_realm; ci 561 fs/ceph/inode.c list_del_init(&ci->i_snap_realm_item); ci 562 fs/ceph/inode.c ci->i_snap_realm = NULL; ci 563 fs/ceph/inode.c if (realm->ino == ci->i_vino.ino) ci 568 fs/ceph/inode.c ceph_put_snapid_map(mdsc, ci->i_snapid_map); ci 569 fs/ceph/inode.c ci->i_snap_realm = NULL; ci 573 fs/ceph/inode.c while ((n = rb_first(&ci->i_fragtree)) != NULL) { ci 575 fs/ceph/inode.c rb_erase(n, &ci->i_fragtree); ci 578 fs/ceph/inode.c ci->i_fragtree_nsplits = 0; ci 580 fs/ceph/inode.c __ceph_destroy_xattrs(ci); ci 581 fs/ceph/inode.c if (ci->i_xattrs.blob) ci 582 fs/ceph/inode.c ceph_buffer_put(ci->i_xattrs.blob); ci 583 fs/ceph/inode.c if (ci->i_xattrs.prealloc_blob) ci 584 fs/ceph/inode.c ceph_buffer_put(ci->i_xattrs.prealloc_blob); ci 586 fs/ceph/inode.c ceph_put_string(rcu_dereference_raw(ci->i_layout.pool_ns)); ci 605 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 608 fs/ceph/inode.c if (ceph_seq_cmp(truncate_seq, ci->i_truncate_seq) > 0 || ci 609 fs/ceph/inode.c (truncate_seq == ci->i_truncate_seq && size > inode->i_size)) { ci 617 fs/ceph/inode.c ci->i_reported_size = size; ci 618 fs/ceph/inode.c if (truncate_seq != ci->i_truncate_seq) { ci 620 fs/ceph/inode.c ci->i_truncate_seq, truncate_seq); ci 621 fs/ceph/inode.c ci->i_truncate_seq = truncate_seq; ci 637 fs/ceph/inode.c __ceph_caps_file_wanted(ci)) { ci 638 fs/ceph/inode.c ci->i_truncate_pending++; ci 643 fs/ceph/inode.c if (ceph_seq_cmp(truncate_seq, ci->i_truncate_seq) >= 0 && ci 644 fs/ceph/inode.c ci->i_truncate_size != truncate_size) { ci 645 fs/ceph/inode.c dout("truncate_size %lld -> %llu\n", ci->i_truncate_size, ci 647 fs/ceph/inode.c ci->i_truncate_size = truncate_size; ci 660 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 668 fs/ceph/inode.c if (ci->i_version == 0 || ci 675 fs/ceph/inode.c if (ci->i_version == 0 || ci 676 fs/ceph/inode.c ceph_seq_cmp(time_warp_seq, ci->i_time_warp_seq) > 0) { ci 682 fs/ceph/inode.c ci->i_time_warp_seq, (int)time_warp_seq); ci 686 fs/ceph/inode.c ci->i_time_warp_seq = time_warp_seq; ci 687 fs/ceph/inode.c } else if (time_warp_seq == ci->i_time_warp_seq) { ci 710 fs/ceph/inode.c if (ceph_seq_cmp(time_warp_seq, ci->i_time_warp_seq) >= 0) { ci 714 fs/ceph/inode.c ci->i_time_warp_seq = time_warp_seq; ci 721 fs/ceph/inode.c inode, time_warp_seq, ci->i_time_warp_seq); ci 737 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 752 fs/ceph/inode.c ci->i_version); ci 776 fs/ceph/inode.c if (ceph_snap(inode) != CEPH_NOSNAP && !ci->i_snapid_map) ci 777 fs/ceph/inode.c ci->i_snapid_map = ceph_get_snapid_map(mdsc, ceph_snap(inode)); ci 779 fs/ceph/inode.c spin_lock(&ci->i_ceph_lock); ci 792 fs/ceph/inode.c if (ci->i_version == 0 || ci 794 fs/ceph/inode.c le64_to_cpu(info->version) > (ci->i_version & ~1))) ci 800 fs/ceph/inode.c __ceph_caps_issued(ci, &issued); ci 801 fs/ceph/inode.c issued |= __ceph_caps_dirty(ci); ci 813 fs/ceph/inode.c __ceph_update_quota(ci, iinfo->max_bytes, iinfo->max_files); ci 823 fs/ceph/inode.c ceph_decode_timespec64(&ci->i_btime, &iinfo->btime); ci 824 fs/ceph/inode.c ceph_decode_timespec64(&ci->i_snap_btime, &iinfo->snap_btime); ci 842 fs/ceph/inode.c ci->i_files = le64_to_cpu(info->files); ci 843 fs/ceph/inode.c ci->i_subdirs = le64_to_cpu(info->subdirs); ci 848 fs/ceph/inode.c s64 old_pool = ci->i_layout.pool_id; ci 851 fs/ceph/inode.c ceph_file_layout_from_legacy(&ci->i_layout, &info->layout); ci 852 fs/ceph/inode.c old_ns = rcu_dereference_protected(ci->i_layout.pool_ns, ci 853 fs/ceph/inode.c lockdep_is_held(&ci->i_ceph_lock)); ci 854 fs/ceph/inode.c rcu_assign_pointer(ci->i_layout.pool_ns, pool_ns); ci 856 fs/ceph/inode.c if (ci->i_layout.pool_id != old_pool || pool_ns != old_ns) ci 857 fs/ceph/inode.c ci->i_ceph_flags &= ~CEPH_I_POOL_PERM; ci 867 fs/ceph/inode.c ci->i_max_size != le64_to_cpu(info->max_size)) { ci 868 fs/ceph/inode.c dout("max_size %lld -> %llu\n", ci->i_max_size, ci 870 fs/ceph/inode.c ci->i_max_size = le64_to_cpu(info->max_size); ci 878 fs/ceph/inode.c ci->i_dir_layout = iinfo->dir_layout; ci 879 fs/ceph/inode.c ci->i_rbytes = le64_to_cpu(info->rbytes); ci 880 fs/ceph/inode.c ci->i_rfiles = le64_to_cpu(info->rfiles); ci 881 fs/ceph/inode.c ci->i_rsubdirs = le64_to_cpu(info->rsubdirs); ci 882 fs/ceph/inode.c ci->i_dir_pin = iinfo->dir_pin; ci 883 fs/ceph/inode.c ceph_decode_timespec64(&ci->i_rctime, &info->rctime); ci 889 fs/ceph/inode.c if ((ci->i_xattrs.version == 0 || !(issued & CEPH_CAP_XATTR_EXCL)) && ci 890 fs/ceph/inode.c le64_to_cpu(info->xattr_version) > ci->i_xattrs.version) { ci 891 fs/ceph/inode.c if (ci->i_xattrs.blob) ci 892 fs/ceph/inode.c old_blob = ci->i_xattrs.blob; ci 893 fs/ceph/inode.c ci->i_xattrs.blob = xattr_blob; ci 895 fs/ceph/inode.c memcpy(ci->i_xattrs.blob->vec.iov_base, ci 897 fs/ceph/inode.c ci->i_xattrs.version = le64_to_cpu(info->xattr_version); ci 904 fs/ceph/inode.c if (le64_to_cpu(info->version) > ci->i_version) ci 905 fs/ceph/inode.c ci->i_version = le64_to_cpu(info->version); ci 924 fs/ceph/inode.c if (!ci->i_symlink) { ci 928 fs/ceph/inode.c spin_unlock(&ci->i_ceph_lock); ci 943 fs/ceph/inode.c spin_lock(&ci->i_ceph_lock); ci 944 fs/ceph/inode.c if (!ci->i_symlink) ci 945 fs/ceph/inode.c ci->i_symlink = sym; ci 949 fs/ceph/inode.c inode->i_link = ci->i_symlink; ci 974 fs/ceph/inode.c ci->i_files == 0 && ci->i_subdirs == 0 && ci 977 fs/ceph/inode.c !__ceph_dir_is_complete(ci)) { ci 980 fs/ceph/inode.c __ceph_dir_set_complete(ci, ci 981 fs/ceph/inode.c atomic64_read(&ci->i_release_count), ci 982 fs/ceph/inode.c atomic64_read(&ci->i_ordered_count)); ci 989 fs/ceph/inode.c ci->i_snap_caps |= info_caps; ci 991 fs/ceph/inode.c __ceph_get_fmode(ci, cap_fmode); ci 996 fs/ceph/inode.c __ceph_get_fmode(ci, cap_fmode); ci 1000 fs/ceph/inode.c iinfo->inline_version >= ci->i_inline_version) { ci 1002 fs/ceph/inode.c ci->i_inline_version = iinfo->inline_version; ci 1003 fs/ceph/inode.c if (ci->i_inline_version != CEPH_INLINE_NONE && ci 1008 fs/ceph/inode.c spin_unlock(&ci->i_ceph_lock); ci 1015 fs/ceph/inode.c wake_up_all(&ci->i_cap_wq); ci 1522 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(dir); ci 1545 fs/ceph/inode.c if (req->r_dir_release_cnt == atomic64_read(&ci->i_release_count) && ci 1546 fs/ceph/inode.c req->r_dir_ordered_cnt == atomic64_read(&ci->i_ordered_count)) { ci 1561 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(d_inode(parent)); ci 1578 fs/ceph/inode.c last_hash = ceph_str_hash(ci->i_dir_layout.dl_dir_hash, ci 1613 fs/ceph/inode.c atomic64_read(&ci->i_release_count); ci 1615 fs/ceph/inode.c atomic64_read(&ci->i_ordered_count); ci 1636 fs/ceph/inode.c u32 hash = ceph_str_hash(ci->i_dir_layout.dl_dir_hash, ci 1671 fs/ceph/inode.c atomic_read(&ci->i_shared_gen)) { ci 1672 fs/ceph/inode.c __ceph_dir_clear_ordered(ci); ci 1752 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1755 fs/ceph/inode.c spin_lock(&ci->i_ceph_lock); ci 1760 fs/ceph/inode.c ret = __ceph_should_report_size(ci); ci 1762 fs/ceph/inode.c spin_unlock(&ci->i_ceph_lock); ci 1791 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1792 fs/ceph/inode.c set_bit(CEPH_I_WORK_WRITEBACK, &ci->i_work_mask); ci 1796 fs/ceph/inode.c &ci->i_work)) { ci 1800 fs/ceph/inode.c inode, ci->i_work_mask); ci 1810 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1811 fs/ceph/inode.c set_bit(CEPH_I_WORK_INVALIDATE_PAGES, &ci->i_work_mask); ci 1819 fs/ceph/inode.c inode, ci->i_work_mask); ci 1830 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1831 fs/ceph/inode.c set_bit(CEPH_I_WORK_VMTRUNCATE, &ci->i_work_mask); ci 1835 fs/ceph/inode.c &ci->i_work)) { ci 1839 fs/ceph/inode.c inode, ci->i_work_mask); ci 1846 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1851 fs/ceph/inode.c mutex_lock(&ci->i_truncate_mutex); ci 1858 fs/ceph/inode.c mutex_unlock(&ci->i_truncate_mutex); ci 1862 fs/ceph/inode.c spin_lock(&ci->i_ceph_lock); ci 1864 fs/ceph/inode.c ci->i_rdcache_gen, ci->i_rdcache_revoking); ci 1865 fs/ceph/inode.c if (ci->i_rdcache_revoking != ci->i_rdcache_gen) { ci 1866 fs/ceph/inode.c if (__ceph_caps_revoking_other(ci, NULL, CEPH_CAP_FILE_CACHE)) ci 1868 fs/ceph/inode.c spin_unlock(&ci->i_ceph_lock); ci 1869 fs/ceph/inode.c mutex_unlock(&ci->i_truncate_mutex); ci 1872 fs/ceph/inode.c orig_gen = ci->i_rdcache_gen; ci 1873 fs/ceph/inode.c spin_unlock(&ci->i_ceph_lock); ci 1879 fs/ceph/inode.c spin_lock(&ci->i_ceph_lock); ci 1880 fs/ceph/inode.c if (orig_gen == ci->i_rdcache_gen && ci 1881 fs/ceph/inode.c orig_gen == ci->i_rdcache_revoking) { ci 1883 fs/ceph/inode.c ci->i_rdcache_gen); ci 1884 fs/ceph/inode.c ci->i_rdcache_revoking--; ci 1888 fs/ceph/inode.c inode, orig_gen, ci->i_rdcache_gen, ci 1889 fs/ceph/inode.c ci->i_rdcache_revoking); ci 1890 fs/ceph/inode.c if (__ceph_caps_revoking_other(ci, NULL, CEPH_CAP_FILE_CACHE)) ci 1893 fs/ceph/inode.c spin_unlock(&ci->i_ceph_lock); ci 1894 fs/ceph/inode.c mutex_unlock(&ci->i_truncate_mutex); ci 1897 fs/ceph/inode.c ceph_check_caps(ci, 0, NULL); ci 1906 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1910 fs/ceph/inode.c mutex_lock(&ci->i_truncate_mutex); ci 1912 fs/ceph/inode.c spin_lock(&ci->i_ceph_lock); ci 1913 fs/ceph/inode.c if (ci->i_truncate_pending == 0) { ci 1915 fs/ceph/inode.c spin_unlock(&ci->i_ceph_lock); ci 1916 fs/ceph/inode.c mutex_unlock(&ci->i_truncate_mutex); ci 1924 fs/ceph/inode.c if (ci->i_wrbuffer_ref_head < ci->i_wrbuffer_ref) { ci 1925 fs/ceph/inode.c spin_unlock(&ci->i_ceph_lock); ci 1934 fs/ceph/inode.c WARN_ON_ONCE(ci->i_rd_ref || ci->i_wr_ref); ci 1936 fs/ceph/inode.c to = ci->i_truncate_size; ci 1937 fs/ceph/inode.c wrbuffer_refs = ci->i_wrbuffer_ref; ci 1939 fs/ceph/inode.c ci->i_truncate_pending, to); ci 1940 fs/ceph/inode.c spin_unlock(&ci->i_ceph_lock); ci 1944 fs/ceph/inode.c spin_lock(&ci->i_ceph_lock); ci 1945 fs/ceph/inode.c if (to == ci->i_truncate_size) { ci 1946 fs/ceph/inode.c ci->i_truncate_pending = 0; ci 1949 fs/ceph/inode.c spin_unlock(&ci->i_ceph_lock); ci 1953 fs/ceph/inode.c mutex_unlock(&ci->i_truncate_mutex); ci 1956 fs/ceph/inode.c ceph_check_caps(ci, CHECK_CAPS_AUTHONLY, NULL); ci 1958 fs/ceph/inode.c wake_up_all(&ci->i_cap_wq); ci 1963 fs/ceph/inode.c struct ceph_inode_info *ci = container_of(work, struct ceph_inode_info, ci 1965 fs/ceph/inode.c struct inode *inode = &ci->vfs_inode; ci 1967 fs/ceph/inode.c if (test_and_clear_bit(CEPH_I_WORK_WRITEBACK, &ci->i_work_mask)) { ci 1971 fs/ceph/inode.c if (test_and_clear_bit(CEPH_I_WORK_INVALIDATE_PAGES, &ci->i_work_mask)) ci 1974 fs/ceph/inode.c if (test_and_clear_bit(CEPH_I_WORK_VMTRUNCATE, &ci->i_work_mask)) ci 1992 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 2015 fs/ceph/inode.c spin_lock(&ci->i_ceph_lock); ci 2016 fs/ceph/inode.c issued = __ceph_caps_issued(ci, NULL); ci 2018 fs/ceph/inode.c if (!ci->i_head_snapc && ci 2022 fs/ceph/inode.c spin_unlock(&ci->i_ceph_lock); ci 2024 fs/ceph/inode.c spin_lock(&ci->i_ceph_lock); ci 2025 fs/ceph/inode.c issued = __ceph_caps_issued(ci, NULL); ci 2081 fs/ceph/inode.c ci->i_time_warp_seq++; ci 2105 fs/ceph/inode.c ci->i_reported_size = attr->ia_size; ci 2123 fs/ceph/inode.c ci->i_time_warp_seq++; ci 2169 fs/ceph/inode.c inode_dirty_flags = __ceph_mark_dirty_caps(ci, dirtied, ci 2175 fs/ceph/inode.c spin_unlock(&ci->i_ceph_lock); ci 2333 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(inode); ci 2352 fs/ceph/inode.c if (ci->i_btime.tv_sec || ci->i_btime.tv_nsec) { ci 2353 fs/ceph/inode.c stat->btime = ci->i_btime; ci 2360 fs/ceph/inode.c stat->dev = ci->i_snapid_map ? ci->i_snapid_map->dev : 0; ci 2365 fs/ceph/inode.c stat->size = ci->i_rbytes; ci 2367 fs/ceph/inode.c stat->size = ci->i_files + ci->i_subdirs; ci 2377 fs/ceph/inode.c stat->nlink = 1 + 1 + ci->i_subdirs; ci 22 fs/ceph/io.c static void ceph_block_o_direct(struct ceph_inode_info *ci, struct inode *inode) ci 26 fs/ceph/io.c if (READ_ONCE(ci->i_ceph_flags) & CEPH_I_ODIRECT) { ci 27 fs/ceph/io.c spin_lock(&ci->i_ceph_lock); ci 28 fs/ceph/io.c ci->i_ceph_flags &= ~CEPH_I_ODIRECT; ci 29 fs/ceph/io.c spin_unlock(&ci->i_ceph_lock); ci 53 fs/ceph/io.c struct ceph_inode_info *ci = ceph_inode(inode); ci 57 fs/ceph/io.c if (!(READ_ONCE(ci->i_ceph_flags) & CEPH_I_ODIRECT)) ci 62 fs/ceph/io.c ceph_block_o_direct(ci, inode); ci 107 fs/ceph/io.c static void ceph_block_buffered(struct ceph_inode_info *ci, struct inode *inode) ci 111 fs/ceph/io.c if (!(READ_ONCE(ci->i_ceph_flags) & CEPH_I_ODIRECT)) { ci 112 fs/ceph/io.c spin_lock(&ci->i_ceph_lock); ci 113 fs/ceph/io.c ci->i_ceph_flags |= CEPH_I_ODIRECT; ci 114 fs/ceph/io.c spin_unlock(&ci->i_ceph_lock); ci 139 fs/ceph/io.c struct ceph_inode_info *ci = ceph_inode(inode); ci 143 fs/ceph/io.c if (READ_ONCE(ci->i_ceph_flags) & CEPH_I_ODIRECT) ci 148 fs/ceph/io.c ceph_block_buffered(ci, inode); ci 19 fs/ceph/ioctl.c struct ceph_inode_info *ci = ceph_inode(file_inode(file)); ci 25 fs/ceph/ioctl.c l.stripe_unit = ci->i_layout.stripe_unit; ci 26 fs/ceph/ioctl.c l.stripe_count = ci->i_layout.stripe_count; ci 27 fs/ceph/ioctl.c l.object_size = ci->i_layout.object_size; ci 28 fs/ceph/ioctl.c l.data_pool = ci->i_layout.pool_id; ci 70 fs/ceph/ioctl.c struct ceph_inode_info *ci = ceph_inode(file_inode(file)); ci 86 fs/ceph/ioctl.c nl.stripe_count = ci->i_layout.stripe_count; ci 90 fs/ceph/ioctl.c nl.stripe_unit = ci->i_layout.stripe_unit; ci 94 fs/ceph/ioctl.c nl.object_size = ci->i_layout.object_size; ci 98 fs/ceph/ioctl.c nl.data_pool = ci->i_layout.pool_id; ci 183 fs/ceph/ioctl.c struct ceph_inode_info *ci = ceph_inode(inode); ci 198 fs/ceph/ioctl.c ceph_calc_file_object_mapping(&ci->i_layout, dl.file_offset, 1, ci 201 fs/ceph/ioctl.c dl.object_size = ci->i_layout.object_size; ci 202 fs/ceph/ioctl.c dl.block_size = ci->i_layout.stripe_unit; ci 211 fs/ceph/ioctl.c oloc.pool = ci->i_layout.pool_id; ci 212 fs/ceph/ioctl.c oloc.pool_ns = ceph_try_get_string(ci->i_layout.pool_ns); ci 245 fs/ceph/ioctl.c struct ceph_inode_info *ci = ceph_inode(inode); ci 248 fs/ceph/ioctl.c spin_lock(&ci->i_ceph_lock); ci 250 fs/ceph/ioctl.c ci->i_nr_by_mode[ffs(CEPH_FILE_MODE_LAZY)]++; ci 251 fs/ceph/ioctl.c spin_unlock(&ci->i_ceph_lock); ci 254 fs/ceph/ioctl.c ceph_check_caps(ci, 0, NULL); ci 45 fs/ceph/locks.c struct ceph_inode_info *ci = ceph_inode(inode); ci 47 fs/ceph/locks.c if (atomic_dec_and_test(&ci->i_filelock_ref)) { ci 49 fs/ceph/locks.c spin_lock(&ci->i_ceph_lock); ci 50 fs/ceph/locks.c ci->i_ceph_flags &= ~CEPH_I_ERROR_FILELOCK; ci 51 fs/ceph/locks.c spin_unlock(&ci->i_ceph_lock); ci 220 fs/ceph/locks.c struct ceph_inode_info *ci = ceph_inode(inode); ci 240 fs/ceph/locks.c spin_lock(&ci->i_ceph_lock); ci 241 fs/ceph/locks.c if (ci->i_ceph_flags & CEPH_I_ERROR_FILELOCK) { ci 244 fs/ceph/locks.c spin_unlock(&ci->i_ceph_lock); ci 280 fs/ceph/locks.c struct ceph_inode_info *ci = ceph_inode(inode); ci 293 fs/ceph/locks.c spin_lock(&ci->i_ceph_lock); ci 294 fs/ceph/locks.c if (ci->i_ceph_flags & CEPH_I_ERROR_FILELOCK) { ci 297 fs/ceph/locks.c spin_unlock(&ci->i_ceph_lock); ci 826 fs/ceph/mds_client.c struct ceph_inode_info *ci = ceph_inode(req->r_unsafe_dir); ci 827 fs/ceph/mds_client.c spin_lock(&ci->i_unsafe_lock); ci 829 fs/ceph/mds_client.c spin_unlock(&ci->i_unsafe_lock); ci 833 fs/ceph/mds_client.c struct ceph_inode_info *ci = ceph_inode(req->r_target_inode); ci 834 fs/ceph/mds_client.c spin_lock(&ci->i_unsafe_lock); ci 836 fs/ceph/mds_client.c spin_unlock(&ci->i_unsafe_lock); ci 884 fs/ceph/mds_client.c struct ceph_inode_info *ci; ci 956 fs/ceph/mds_client.c ci = ceph_inode(inode); ci 962 fs/ceph/mds_client.c ceph_choose_frag(ci, hash, &frag, &found); ci 998 fs/ceph/mds_client.c spin_lock(&ci->i_ceph_lock); ci 1001 fs/ceph/mds_client.c cap = ci->i_auth_cap; ci 1002 fs/ceph/mds_client.c if (!cap && !RB_EMPTY_ROOT(&ci->i_caps)) ci 1003 fs/ceph/mds_client.c cap = rb_entry(rb_first(&ci->i_caps), struct ceph_cap, ci_node); ci 1005 fs/ceph/mds_client.c spin_unlock(&ci->i_ceph_lock); ci 1012 fs/ceph/mds_client.c cap == ci->i_auth_cap ? "auth " : "", cap); ci 1013 fs/ceph/mds_client.c spin_unlock(&ci->i_ceph_lock); ci 1275 fs/ceph/mds_client.c struct ceph_inode_info *ci; ci 1286 fs/ceph/mds_client.c ci = ceph_inode(req->r_target_inode); ci 1287 fs/ceph/mds_client.c errseq_set(&ci->i_meta_err, -EIO); ci 1291 fs/ceph/mds_client.c ci = ceph_inode(req->r_unsafe_dir); ci 1292 fs/ceph/mds_client.c errseq_set(&ci->i_meta_err, -EIO); ci 1329 fs/ceph/mds_client.c inode = igrab(&cap->ci->vfs_inode); ci 1353 fs/ceph/mds_client.c if (!cap->ci) { ci 1384 fs/ceph/mds_client.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1390 fs/ceph/mds_client.c cap, ci, &ci->vfs_inode); ci 1391 fs/ceph/mds_client.c spin_lock(&ci->i_ceph_lock); ci 1393 fs/ceph/mds_client.c ci->i_ceph_flags |= CEPH_I_CAP_DROPPED; ci 1395 fs/ceph/mds_client.c if (!ci->i_auth_cap) { ci 1402 fs/ceph/mds_client.c if (ci->i_wrbuffer_ref > 0) ci 1406 fs/ceph/mds_client.c while (!list_empty(&ci->i_cap_flush_list)) { ci 1407 fs/ceph/mds_client.c cf = list_first_entry(&ci->i_cap_flush_list, ci 1417 fs/ceph/mds_client.c if (!list_empty(&ci->i_dirty_item)) { ci 1420 fs/ceph/mds_client.c ceph_cap_string(ci->i_dirty_caps), ci 1422 fs/ceph/mds_client.c ci->i_dirty_caps = 0; ci 1423 fs/ceph/mds_client.c list_del_init(&ci->i_dirty_item); ci 1426 fs/ceph/mds_client.c if (!list_empty(&ci->i_flushing_item)) { ci 1429 fs/ceph/mds_client.c ceph_cap_string(ci->i_flushing_caps), ci 1431 fs/ceph/mds_client.c ci->i_flushing_caps = 0; ci 1432 fs/ceph/mds_client.c list_del_init(&ci->i_flushing_item); ci 1439 fs/ceph/mds_client.c errseq_set(&ci->i_meta_err, -EIO); ci 1441 fs/ceph/mds_client.c if (ci->i_wrbuffer_ref_head == 0 && ci 1442 fs/ceph/mds_client.c ci->i_wr_ref == 0 && ci 1443 fs/ceph/mds_client.c ci->i_dirty_caps == 0 && ci 1444 fs/ceph/mds_client.c ci->i_flushing_caps == 0) { ci 1445 fs/ceph/mds_client.c ceph_put_snap_context(ci->i_head_snapc); ci 1446 fs/ceph/mds_client.c ci->i_head_snapc = NULL; ci 1450 fs/ceph/mds_client.c if (atomic_read(&ci->i_filelock_ref) > 0) { ci 1452 fs/ceph/mds_client.c ci->i_ceph_flags |= CEPH_I_ERROR_FILELOCK; ci 1457 fs/ceph/mds_client.c if (!ci->i_dirty_caps && ci->i_prealloc_cap_flush) { ci 1458 fs/ceph/mds_client.c list_add(&ci->i_prealloc_cap_flush->i_list, &to_remove); ci 1459 fs/ceph/mds_client.c ci->i_prealloc_cap_flush = NULL; ci 1462 fs/ceph/mds_client.c spin_unlock(&ci->i_ceph_lock); ci 1471 fs/ceph/mds_client.c wake_up_all(&ci->i_cap_wq); ci 1511 fs/ceph/mds_client.c vino = cap->ci->i_vino; ci 1546 fs/ceph/mds_client.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1550 fs/ceph/mds_client.c spin_lock(&ci->i_ceph_lock); ci 1551 fs/ceph/mds_client.c ci->i_wanted_max_size = 0; ci 1552 fs/ceph/mds_client.c ci->i_requested_max_size = 0; ci 1553 fs/ceph/mds_client.c spin_unlock(&ci->i_ceph_lock); ci 1557 fs/ceph/mds_client.c spin_lock(&ci->i_ceph_lock); ci 1560 fs/ceph/mds_client.c if (__ceph_caps_file_wanted(ci) & ~cap->mds_wanted) ci 1561 fs/ceph/mds_client.c ci->i_ceph_flags |= CEPH_I_CAP_DROPPED; ci 1562 fs/ceph/mds_client.c spin_unlock(&ci->i_ceph_lock); ci 1566 fs/ceph/mds_client.c wake_up_all(&ci->i_cap_wq); ci 1728 fs/ceph/mds_client.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1734 fs/ceph/mds_client.c spin_lock(&ci->i_ceph_lock); ci 1736 fs/ceph/mds_client.c used = __ceph_caps_used(ci); ci 1737 fs/ceph/mds_client.c wanted = __ceph_caps_file_wanted(ci); ci 1738 fs/ceph/mds_client.c oissued = __ceph_caps_issued_other(ci, cap); ci 1743 fs/ceph/mds_client.c if (cap == ci->i_auth_cap) { ci 1744 fs/ceph/mds_client.c if (ci->i_dirty_caps || ci->i_flushing_caps || ci 1745 fs/ceph/mds_client.c !list_empty(&ci->i_cap_snaps)) ci 1752 fs/ceph/mds_client.c if (atomic_read(&ci->i_filelock_ref) > 0) ci 1772 fs/ceph/mds_client.c spin_unlock(&ci->i_ceph_lock); ci 1790 fs/ceph/mds_client.c spin_unlock(&ci->i_ceph_lock); ci 2033 fs/ceph/mds_client.c struct ceph_inode_info *ci = ceph_inode(dir); ci 2039 fs/ceph/mds_client.c spin_lock(&ci->i_ceph_lock); ci 2040 fs/ceph/mds_client.c num_entries = ci->i_files + ci->i_subdirs; ci 2041 fs/ceph/mds_client.c spin_unlock(&ci->i_ceph_lock); ci 2895 fs/ceph/mds_client.c struct ceph_inode_info *ci = ci 2897 fs/ceph/mds_client.c spin_lock(&ci->i_unsafe_lock); ci 2899 fs/ceph/mds_client.c &ci->i_unsafe_dirops); ci 2900 fs/ceph/mds_client.c spin_unlock(&ci->i_unsafe_lock); ci 2951 fs/ceph/mds_client.c struct ceph_inode_info *ci = ci 2953 fs/ceph/mds_client.c spin_lock(&ci->i_unsafe_lock); ci 2955 fs/ceph/mds_client.c &ci->i_unsafe_iops); ci 2956 fs/ceph/mds_client.c spin_unlock(&ci->i_unsafe_lock); ci 3338 fs/ceph/mds_client.c struct ceph_inode_info *ci = cap->ci; ci 3348 fs/ceph/mds_client.c spin_lock(&ci->i_ceph_lock); ci 3356 fs/ceph/mds_client.c rec.v2.wanted = cpu_to_le32(__ceph_caps_wanted(ci)); ci 3358 fs/ceph/mds_client.c rec.v2.snaprealm = cpu_to_le64(ci->i_snap_realm->ino); ci 3361 fs/ceph/mds_client.c ((ci->i_ceph_flags & CEPH_I_ERROR_FILELOCK) ? 0 : 1); ci 3364 fs/ceph/mds_client.c rec.v1.wanted = cpu_to_le32(__ceph_caps_wanted(ci)); ci 3369 fs/ceph/mds_client.c rec.v1.snaprealm = cpu_to_le64(ci->i_snap_realm->ino); ci 3373 fs/ceph/mds_client.c if (list_empty(&ci->i_cap_snaps)) { ci 3374 fs/ceph/mds_client.c snap_follows = ci->i_head_snapc ? ci->i_head_snapc->seq : 0; ci 3377 fs/ceph/mds_client.c list_first_entry(&ci->i_cap_snaps, ci 3381 fs/ceph/mds_client.c spin_unlock(&ci->i_ceph_lock); ci 45 fs/ceph/quota.c struct ceph_inode_info *ci; ci 67 fs/ceph/quota.c ci = ceph_inode(inode); ci 69 fs/ceph/quota.c spin_lock(&ci->i_ceph_lock); ci 70 fs/ceph/quota.c ci->i_rbytes = le64_to_cpu(h->rbytes); ci 71 fs/ceph/quota.c ci->i_rfiles = le64_to_cpu(h->rfiles); ci 72 fs/ceph/quota.c ci->i_rsubdirs = le64_to_cpu(h->rsubdirs); ci 73 fs/ceph/quota.c __ceph_update_quota(ci, le64_to_cpu(h->max_bytes), ci 75 fs/ceph/quota.c spin_unlock(&ci->i_ceph_lock); ci 212 fs/ceph/quota.c struct ceph_inode_info *ci = NULL; ci 248 fs/ceph/quota.c ci = ceph_inode(in); ci 249 fs/ceph/quota.c has_quota = __ceph_has_any_quota(ci); ci 317 fs/ceph/quota.c struct ceph_inode_info *ci; ci 352 fs/ceph/quota.c ci = ceph_inode(in); ci 353 fs/ceph/quota.c spin_lock(&ci->i_ceph_lock); ci 355 fs/ceph/quota.c max = ci->i_max_files; ci 356 fs/ceph/quota.c rvalue = ci->i_rfiles + ci->i_rsubdirs; ci 358 fs/ceph/quota.c max = ci->i_max_bytes; ci 359 fs/ceph/quota.c rvalue = ci->i_rbytes; ci 361 fs/ceph/quota.c spin_unlock(&ci->i_ceph_lock); ci 481 fs/ceph/quota.c struct ceph_inode_info *ci; ci 497 fs/ceph/quota.c ci = ceph_inode(in); ci 498 fs/ceph/quota.c spin_lock(&ci->i_ceph_lock); ci 499 fs/ceph/quota.c if (ci->i_max_bytes) { ci 500 fs/ceph/quota.c total = ci->i_max_bytes >> CEPH_BLOCK_SHIFT; ci 501 fs/ceph/quota.c used = ci->i_rbytes >> CEPH_BLOCK_SHIFT; ci 507 fs/ceph/quota.c spin_unlock(&ci->i_ceph_lock); ci 463 fs/ceph/snap.c void ceph_queue_cap_snap(struct ceph_inode_info *ci) ci 465 fs/ceph/snap.c struct inode *inode = &ci->vfs_inode; ci 477 fs/ceph/snap.c spin_lock(&ci->i_ceph_lock); ci 478 fs/ceph/snap.c used = __ceph_caps_used(ci); ci 479 fs/ceph/snap.c dirty = __ceph_caps_dirty(ci); ci 481 fs/ceph/snap.c old_snapc = ci->i_head_snapc; ci 482 fs/ceph/snap.c new_snapc = ci->i_snap_realm->cached_context; ci 492 fs/ceph/snap.c if (__ceph_have_pending_cap_snap(ci)) { ci 500 fs/ceph/snap.c if (ci->i_wrbuffer_ref_head == 0 && ci 521 fs/ceph/snap.c ci->i_wrbuffer_ref_head == 0) { ci 537 fs/ceph/snap.c capsnap->issued = __ceph_caps_issued(ci, NULL); ci 545 fs/ceph/snap.c old_blob = __ceph_build_xattrs_blob(ci); ci 547 fs/ceph/snap.c ceph_buffer_get(ci->i_xattrs.blob); ci 548 fs/ceph/snap.c capsnap->xattr_version = ci->i_xattrs.version; ci 554 fs/ceph/snap.c capsnap->inline_data = ci->i_inline_version != CEPH_INLINE_NONE; ci 559 fs/ceph/snap.c capsnap->dirty_pages = ci->i_wrbuffer_ref_head; ci 560 fs/ceph/snap.c ci->i_wrbuffer_ref_head = 0; ci 562 fs/ceph/snap.c list_add_tail(&capsnap->ci_item, &ci->i_cap_snaps); ci 571 fs/ceph/snap.c __ceph_finish_cap_snap(ci, capsnap); ci 577 fs/ceph/snap.c if (ci->i_wrbuffer_ref_head == 0 && ci 578 fs/ceph/snap.c ci->i_wr_ref == 0 && ci 579 fs/ceph/snap.c ci->i_dirty_caps == 0 && ci 580 fs/ceph/snap.c ci->i_flushing_caps == 0) { ci 581 fs/ceph/snap.c ci->i_head_snapc = NULL; ci 583 fs/ceph/snap.c ci->i_head_snapc = ceph_get_snap_context(new_snapc); ci 586 fs/ceph/snap.c spin_unlock(&ci->i_ceph_lock); ci 601 fs/ceph/snap.c int __ceph_finish_cap_snap(struct ceph_inode_info *ci, ci 604 fs/ceph/snap.c struct inode *inode = &ci->vfs_inode; ci 612 fs/ceph/snap.c capsnap->btime = ci->i_btime; ci 614 fs/ceph/snap.c capsnap->time_warp_seq = ci->i_time_warp_seq; ci 615 fs/ceph/snap.c capsnap->truncate_size = ci->i_truncate_size; ci 616 fs/ceph/snap.c capsnap->truncate_seq = ci->i_truncate_seq; ci 626 fs/ceph/snap.c ci->i_ceph_flags |= CEPH_I_FLUSH_SNAPS; ci 633 fs/ceph/snap.c if (list_empty(&ci->i_snap_flush_item)) ci 634 fs/ceph/snap.c list_add_tail(&ci->i_snap_flush_item, &mdsc->snap_flush_list); ci 645 fs/ceph/snap.c struct ceph_inode_info *ci; ci 651 fs/ceph/snap.c list_for_each_entry(ci, &realm->inodes_with_caps, i_snap_realm_item) { ci 652 fs/ceph/snap.c struct inode *inode = igrab(&ci->vfs_inode); ci 660 fs/ceph/snap.c ceph_queue_cap_snap(ci); ci 803 fs/ceph/snap.c struct ceph_inode_info *ci; ci 810 fs/ceph/snap.c ci = list_first_entry(&mdsc->snap_flush_list, ci 812 fs/ceph/snap.c inode = &ci->vfs_inode; ci 815 fs/ceph/snap.c ceph_flush_snaps(ci, &session); ci 915 fs/ceph/snap.c struct ceph_inode_info *ci; ci 920 fs/ceph/snap.c ci = ceph_inode(inode); ci 922 fs/ceph/snap.c spin_lock(&ci->i_ceph_lock); ci 923 fs/ceph/snap.c if (!ci->i_snap_realm) ci 932 fs/ceph/snap.c if (ci->i_snap_realm->created > ci 935 fs/ceph/snap.c inode, ci->i_snap_realm->ino, ci 936 fs/ceph/snap.c ci->i_snap_realm); ci 944 fs/ceph/snap.c oldrealm = ci->i_snap_realm; ci 946 fs/ceph/snap.c list_del_init(&ci->i_snap_realm_item); ci 950 fs/ceph/snap.c list_add(&ci->i_snap_realm_item, ci 952 fs/ceph/snap.c ci->i_snap_realm = realm; ci 953 fs/ceph/snap.c if (realm->ino == ci->i_vino.ino) ci 957 fs/ceph/snap.c spin_unlock(&ci->i_ceph_lock); ci 968 fs/ceph/snap.c spin_unlock(&ci->i_ceph_lock); ci 795 fs/ceph/super.c struct ceph_inode_info *ci = foo; ci 796 fs/ceph/super.c inode_init_once(&ci->vfs_inode); ci 147 fs/ceph/super.h struct ceph_inode_info *ci; ci 492 fs/ceph/super.h struct ceph_inode_info *ci = ceph_inode(inode); ci 493 fs/ceph/super.h return ci->i_vino.ino == pvino->ino && ci 494 fs/ceph/super.h ci->i_vino.snap == pvino->snap; ci 536 fs/ceph/super.h static inline void ceph_set_error_write(struct ceph_inode_info *ci) ci 538 fs/ceph/super.h if (!(READ_ONCE(ci->i_ceph_flags) & CEPH_I_ERROR_WRITE)) { ci 539 fs/ceph/super.h spin_lock(&ci->i_ceph_lock); ci 540 fs/ceph/super.h ci->i_ceph_flags |= CEPH_I_ERROR_WRITE; ci 541 fs/ceph/super.h spin_unlock(&ci->i_ceph_lock); ci 545 fs/ceph/super.h static inline void ceph_clear_error_write(struct ceph_inode_info *ci) ci 547 fs/ceph/super.h if (READ_ONCE(ci->i_ceph_flags) & CEPH_I_ERROR_WRITE) { ci 548 fs/ceph/super.h spin_lock(&ci->i_ceph_lock); ci 549 fs/ceph/super.h ci->i_ceph_flags &= ~CEPH_I_ERROR_WRITE; ci 550 fs/ceph/super.h spin_unlock(&ci->i_ceph_lock); ci 554 fs/ceph/super.h static inline void __ceph_dir_set_complete(struct ceph_inode_info *ci, ci 564 fs/ceph/super.h atomic64_set(&ci->i_complete_seq[0], release_count); ci 565 fs/ceph/super.h atomic64_set(&ci->i_complete_seq[1], ordered_count); ci 568 fs/ceph/super.h static inline void __ceph_dir_clear_complete(struct ceph_inode_info *ci) ci 570 fs/ceph/super.h atomic64_inc(&ci->i_release_count); ci 573 fs/ceph/super.h static inline void __ceph_dir_clear_ordered(struct ceph_inode_info *ci) ci 575 fs/ceph/super.h atomic64_inc(&ci->i_ordered_count); ci 578 fs/ceph/super.h static inline bool __ceph_dir_is_complete(struct ceph_inode_info *ci) ci 580 fs/ceph/super.h return atomic64_read(&ci->i_complete_seq[0]) == ci 581 fs/ceph/super.h atomic64_read(&ci->i_release_count); ci 584 fs/ceph/super.h static inline bool __ceph_dir_is_complete_ordered(struct ceph_inode_info *ci) ci 586 fs/ceph/super.h return atomic64_read(&ci->i_complete_seq[0]) == ci 587 fs/ceph/super.h atomic64_read(&ci->i_release_count) && ci 588 fs/ceph/super.h atomic64_read(&ci->i_complete_seq[1]) == ci 589 fs/ceph/super.h atomic64_read(&ci->i_ordered_count); ci 610 fs/ceph/super.h extern struct ceph_inode_frag *__ceph_find_frag(struct ceph_inode_info *ci, ci 617 fs/ceph/super.h extern u32 ceph_choose_frag(struct ceph_inode_info *ci, u32 v, ci 629 fs/ceph/super.h static inline bool __ceph_is_any_real_caps(struct ceph_inode_info *ci) ci 631 fs/ceph/super.h return !RB_EMPTY_ROOT(&ci->i_caps); ci 634 fs/ceph/super.h extern int __ceph_caps_issued(struct ceph_inode_info *ci, int *implemented); ci 635 fs/ceph/super.h extern int __ceph_caps_issued_mask(struct ceph_inode_info *ci, int mask, int t); ci 636 fs/ceph/super.h extern int __ceph_caps_issued_other(struct ceph_inode_info *ci, ci 639 fs/ceph/super.h static inline int ceph_caps_issued(struct ceph_inode_info *ci) ci 642 fs/ceph/super.h spin_lock(&ci->i_ceph_lock); ci 643 fs/ceph/super.h issued = __ceph_caps_issued(ci, NULL); ci 644 fs/ceph/super.h spin_unlock(&ci->i_ceph_lock); ci 648 fs/ceph/super.h static inline int ceph_caps_issued_mask(struct ceph_inode_info *ci, int mask, ci 652 fs/ceph/super.h spin_lock(&ci->i_ceph_lock); ci 653 fs/ceph/super.h r = __ceph_caps_issued_mask(ci, mask, touch); ci 654 fs/ceph/super.h spin_unlock(&ci->i_ceph_lock); ci 658 fs/ceph/super.h static inline int __ceph_caps_dirty(struct ceph_inode_info *ci) ci 660 fs/ceph/super.h return ci->i_dirty_caps | ci->i_flushing_caps; ci 664 fs/ceph/super.h extern int __ceph_mark_dirty_caps(struct ceph_inode_info *ci, int mask, ci 667 fs/ceph/super.h extern int __ceph_caps_revoking_other(struct ceph_inode_info *ci, ci 669 fs/ceph/super.h extern int ceph_caps_revoking(struct ceph_inode_info *ci, int mask); ci 670 fs/ceph/super.h extern int __ceph_caps_used(struct ceph_inode_info *ci); ci 672 fs/ceph/super.h extern int __ceph_caps_file_wanted(struct ceph_inode_info *ci); ci 677 fs/ceph/super.h static inline int __ceph_caps_wanted(struct ceph_inode_info *ci) ci 679 fs/ceph/super.h int w = __ceph_caps_file_wanted(ci) | __ceph_caps_used(ci); ci 686 fs/ceph/super.h extern int __ceph_caps_mds_wanted(struct ceph_inode_info *ci, bool check); ci 872 fs/ceph/super.h extern void ceph_queue_cap_snap(struct ceph_inode_info *ci); ci 873 fs/ceph/super.h extern int __ceph_finish_cap_snap(struct ceph_inode_info *ci, ci 889 fs/ceph/super.h static inline bool __ceph_have_pending_cap_snap(struct ceph_inode_info *ci) ci 891 fs/ceph/super.h return !list_empty(&ci->i_cap_snaps) && ci 892 fs/ceph/super.h list_last_entry(&ci->i_cap_snaps, struct ceph_cap_snap, ci 942 fs/ceph/super.h extern struct ceph_buffer *__ceph_build_xattrs_blob(struct ceph_inode_info *ci); ci 943 fs/ceph/super.h extern void __ceph_destroy_xattrs(struct ceph_inode_info *ci); ci 1044 fs/ceph/super.h extern void __ceph_remove_caps(struct ceph_inode_info *ci); ci 1056 fs/ceph/super.h extern struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, ci 1058 fs/ceph/super.h extern void ceph_get_cap_refs(struct ceph_inode_info *ci, int caps); ci 1059 fs/ceph/super.h extern void ceph_put_cap_refs(struct ceph_inode_info *ci, int had); ci 1060 fs/ceph/super.h extern void ceph_put_wrbuffer_cap_refs(struct ceph_inode_info *ci, int nr, ci 1062 fs/ceph/super.h extern void ceph_flush_snaps(struct ceph_inode_info *ci, ci 1064 fs/ceph/super.h extern bool __ceph_should_report_size(struct ceph_inode_info *ci); ci 1065 fs/ceph/super.h extern void ceph_check_caps(struct ceph_inode_info *ci, int flags, ci 1082 fs/ceph/super.h extern void __ceph_get_fmode(struct ceph_inode_info *ci, int mode); ci 1083 fs/ceph/super.h extern void ceph_put_fmode(struct ceph_inode_info *ci, int mode); ci 1149 fs/ceph/super.h static inline bool __ceph_has_any_quota(struct ceph_inode_info *ci) ci 1151 fs/ceph/super.h return ci->i_max_files || ci->i_max_bytes; ci 1156 fs/ceph/super.h static inline void __ceph_update_quota(struct ceph_inode_info *ci, ci 1160 fs/ceph/super.h had_quota = __ceph_has_any_quota(ci); ci 1161 fs/ceph/super.h ci->i_max_bytes = max_bytes; ci 1162 fs/ceph/super.h ci->i_max_files = max_files; ci 1163 fs/ceph/super.h has_quota = __ceph_has_any_quota(ci); ci 1166 fs/ceph/super.h ceph_adjust_quota_realms_count(&ci->vfs_inode, has_quota); ci 18 fs/ceph/xattr.c static int __remove_xattr(struct ceph_inode_info *ci, ci 36 fs/ceph/xattr.c ssize_t (*getxattr_cb)(struct ceph_inode_info *ci, char *val, ci 38 fs/ceph/xattr.c bool (*exists_cb)(struct ceph_inode_info *ci); ci 48 fs/ceph/xattr.c static bool ceph_vxattrcb_layout_exists(struct ceph_inode_info *ci) ci 50 fs/ceph/xattr.c struct ceph_file_layout *fl = &ci->i_layout; ci 56 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_layout(struct ceph_inode_info *ci, char *val, ci 59 fs/ceph/xattr.c struct ceph_fs_client *fsc = ceph_sb_to_client(ci->vfs_inode.i_sb); ci 62 fs/ceph/xattr.c s64 pool = ci->i_layout.pool_id; ci 69 fs/ceph/xattr.c pool_ns = ceph_try_get_string(ci->i_layout.pool_ns); ci 71 fs/ceph/xattr.c dout("ceph_vxattrcb_layout %p\n", &ci->vfs_inode); ci 77 fs/ceph/xattr.c ci->i_layout.stripe_unit, ci->i_layout.stripe_count, ci 78 fs/ceph/xattr.c ci->i_layout.object_size); ci 83 fs/ceph/xattr.c ci->i_layout.stripe_unit, ci->i_layout.stripe_count, ci 84 fs/ceph/xattr.c ci->i_layout.object_size, pool); ci 140 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_layout_stripe_unit(struct ceph_inode_info *ci, ci 143 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%u", ci->i_layout.stripe_unit); ci 146 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_layout_stripe_count(struct ceph_inode_info *ci, ci 149 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%u", ci->i_layout.stripe_count); ci 152 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_layout_object_size(struct ceph_inode_info *ci, ci 155 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%u", ci->i_layout.object_size); ci 158 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_layout_pool(struct ceph_inode_info *ci, ci 162 fs/ceph/xattr.c struct ceph_fs_client *fsc = ceph_sb_to_client(ci->vfs_inode.i_sb); ci 164 fs/ceph/xattr.c s64 pool = ci->i_layout.pool_id; ci 180 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_layout_pool_namespace(struct ceph_inode_info *ci, ci 184 fs/ceph/xattr.c struct ceph_string *ns = ceph_try_get_string(ci->i_layout.pool_ns); ci 197 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_dir_entries(struct ceph_inode_info *ci, char *val, ci 200 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%lld", ci->i_files + ci->i_subdirs); ci 203 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_dir_files(struct ceph_inode_info *ci, char *val, ci 206 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%lld", ci->i_files); ci 209 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_dir_subdirs(struct ceph_inode_info *ci, char *val, ci 212 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%lld", ci->i_subdirs); ci 215 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_dir_rentries(struct ceph_inode_info *ci, char *val, ci 219 fs/ceph/xattr.c ci->i_rfiles + ci->i_rsubdirs); ci 222 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_dir_rfiles(struct ceph_inode_info *ci, char *val, ci 225 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%lld", ci->i_rfiles); ci 228 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_dir_rsubdirs(struct ceph_inode_info *ci, char *val, ci 231 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%lld", ci->i_rsubdirs); ci 234 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_dir_rbytes(struct ceph_inode_info *ci, char *val, ci 237 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%lld", ci->i_rbytes); ci 240 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_dir_rctime(struct ceph_inode_info *ci, char *val, ci 243 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%lld.%09ld", ci->i_rctime.tv_sec, ci 244 fs/ceph/xattr.c ci->i_rctime.tv_nsec); ci 248 fs/ceph/xattr.c static bool ceph_vxattrcb_dir_pin_exists(struct ceph_inode_info *ci) ci 250 fs/ceph/xattr.c return ci->i_dir_pin != -ENODATA; ci 253 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_dir_pin(struct ceph_inode_info *ci, char *val, ci 256 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%d", (int)ci->i_dir_pin); ci 260 fs/ceph/xattr.c static bool ceph_vxattrcb_quota_exists(struct ceph_inode_info *ci) ci 263 fs/ceph/xattr.c spin_lock(&ci->i_ceph_lock); ci 264 fs/ceph/xattr.c if ((ci->i_max_files || ci->i_max_bytes) && ci 265 fs/ceph/xattr.c ci->i_vino.snap == CEPH_NOSNAP && ci 266 fs/ceph/xattr.c ci->i_snap_realm && ci 267 fs/ceph/xattr.c ci->i_snap_realm->ino == ci->i_vino.ino) ci 269 fs/ceph/xattr.c spin_unlock(&ci->i_ceph_lock); ci 273 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_quota(struct ceph_inode_info *ci, char *val, ci 277 fs/ceph/xattr.c ci->i_max_bytes, ci->i_max_files); ci 280 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_quota_max_bytes(struct ceph_inode_info *ci, ci 283 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%llu", ci->i_max_bytes); ci 286 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_quota_max_files(struct ceph_inode_info *ci, ci 289 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%llu", ci->i_max_files); ci 293 fs/ceph/xattr.c static bool ceph_vxattrcb_snap_btime_exists(struct ceph_inode_info *ci) ci 295 fs/ceph/xattr.c return (ci->i_snap_btime.tv_sec != 0 || ci->i_snap_btime.tv_nsec != 0); ci 298 fs/ceph/xattr.c static ssize_t ceph_vxattrcb_snap_btime(struct ceph_inode_info *ci, char *val, ci 301 fs/ceph/xattr.c return ceph_fmt_xattr(val, size, "%lld.%09ld", ci->i_snap_btime.tv_sec, ci 302 fs/ceph/xattr.c ci->i_snap_btime.tv_nsec); ci 433 fs/ceph/xattr.c static int __set_xattr(struct ceph_inode_info *ci, ci 445 fs/ceph/xattr.c p = &ci->i_xattrs.index.rb_node; ci 480 fs/ceph/xattr.c __remove_xattr(ci, xattr); ci 494 fs/ceph/xattr.c ci->i_xattrs.count++; ci 495 fs/ceph/xattr.c dout("__set_xattr count=%d\n", ci->i_xattrs.count); ci 506 fs/ceph/xattr.c ci->i_xattrs.names_size -= xattr->name_len; ci 507 fs/ceph/xattr.c ci->i_xattrs.vals_size -= xattr->val_len; ci 509 fs/ceph/xattr.c ci->i_xattrs.names_size += name_len; ci 510 fs/ceph/xattr.c ci->i_xattrs.vals_size += val_len; ci 522 fs/ceph/xattr.c rb_insert_color(&xattr->node, &ci->i_xattrs.index); ci 527 fs/ceph/xattr.c ceph_vinop(&ci->vfs_inode), xattr, name_len, name, val_len, val); ci 532 fs/ceph/xattr.c static struct ceph_inode_xattr *__get_xattr(struct ceph_inode_info *ci, ci 541 fs/ceph/xattr.c p = &ci->i_xattrs.index.rb_node; ci 576 fs/ceph/xattr.c static int __remove_xattr(struct ceph_inode_info *ci, ci 582 fs/ceph/xattr.c rb_erase(&xattr->node, &ci->i_xattrs.index); ci 589 fs/ceph/xattr.c ci->i_xattrs.names_size -= xattr->name_len; ci 590 fs/ceph/xattr.c ci->i_xattrs.vals_size -= xattr->val_len; ci 591 fs/ceph/xattr.c ci->i_xattrs.count--; ci 597 fs/ceph/xattr.c static char *__copy_xattr_names(struct ceph_inode_info *ci, ci 603 fs/ceph/xattr.c p = rb_first(&ci->i_xattrs.index); ci 604 fs/ceph/xattr.c dout("__copy_xattr_names count=%d\n", ci->i_xattrs.count); ci 612 fs/ceph/xattr.c xattr->name_len, ci->i_xattrs.names_size); ci 621 fs/ceph/xattr.c void __ceph_destroy_xattrs(struct ceph_inode_info *ci) ci 626 fs/ceph/xattr.c p = rb_first(&ci->i_xattrs.index); ci 636 fs/ceph/xattr.c rb_erase(tmp, &ci->i_xattrs.index); ci 641 fs/ceph/xattr.c ci->i_xattrs.names_size = 0; ci 642 fs/ceph/xattr.c ci->i_xattrs.vals_size = 0; ci 643 fs/ceph/xattr.c ci->i_xattrs.index_version = 0; ci 644 fs/ceph/xattr.c ci->i_xattrs.count = 0; ci 645 fs/ceph/xattr.c ci->i_xattrs.index = RB_ROOT; ci 649 fs/ceph/xattr.c __releases(ci->i_ceph_lock) ci 650 fs/ceph/xattr.c __acquires(ci->i_ceph_lock) ci 657 fs/ceph/xattr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 664 fs/ceph/xattr.c ci->i_xattrs.blob ? (int)ci->i_xattrs.blob->vec.iov_len : 0); ci 666 fs/ceph/xattr.c if (ci->i_xattrs.index_version >= ci->i_xattrs.version) ci 669 fs/ceph/xattr.c __ceph_destroy_xattrs(ci); ci 673 fs/ceph/xattr.c if (ci->i_xattrs.blob && ci->i_xattrs.blob->vec.iov_len > 4) { ci 674 fs/ceph/xattr.c p = ci->i_xattrs.blob->vec.iov_base; ci 675 fs/ceph/xattr.c end = p + ci->i_xattrs.blob->vec.iov_len; ci 677 fs/ceph/xattr.c xattr_version = ci->i_xattrs.version; ci 678 fs/ceph/xattr.c spin_unlock(&ci->i_ceph_lock); ci 693 fs/ceph/xattr.c spin_lock(&ci->i_ceph_lock); ci 694 fs/ceph/xattr.c if (ci->i_xattrs.version != xattr_version) { ci 712 fs/ceph/xattr.c err = __set_xattr(ci, name, namelen, val, len, ci 720 fs/ceph/xattr.c ci->i_xattrs.index_version = ci->i_xattrs.version; ci 721 fs/ceph/xattr.c ci->i_xattrs.dirty = false; ci 725 fs/ceph/xattr.c spin_lock(&ci->i_ceph_lock); ci 732 fs/ceph/xattr.c ci->i_xattrs.names_size = 0; ci 736 fs/ceph/xattr.c static int __get_required_blob_size(struct ceph_inode_info *ci, int name_size, ci 743 fs/ceph/xattr.c int size = 4 + ci->i_xattrs.count*(4 + 4) + ci 744 fs/ceph/xattr.c ci->i_xattrs.names_size + ci 745 fs/ceph/xattr.c ci->i_xattrs.vals_size; ci 747 fs/ceph/xattr.c ci->i_xattrs.count, ci->i_xattrs.names_size, ci 748 fs/ceph/xattr.c ci->i_xattrs.vals_size); ci 762 fs/ceph/xattr.c struct ceph_buffer *__ceph_build_xattrs_blob(struct ceph_inode_info *ci) ci 769 fs/ceph/xattr.c dout("__build_xattrs_blob %p\n", &ci->vfs_inode); ci 770 fs/ceph/xattr.c if (ci->i_xattrs.dirty) { ci 771 fs/ceph/xattr.c int need = __get_required_blob_size(ci, 0, 0); ci 773 fs/ceph/xattr.c BUG_ON(need > ci->i_xattrs.prealloc_blob->alloc_len); ci 775 fs/ceph/xattr.c p = rb_first(&ci->i_xattrs.index); ci 776 fs/ceph/xattr.c dest = ci->i_xattrs.prealloc_blob->vec.iov_base; ci 778 fs/ceph/xattr.c ceph_encode_32(&dest, ci->i_xattrs.count); ci 793 fs/ceph/xattr.c ci->i_xattrs.prealloc_blob->vec.iov_len = ci 794 fs/ceph/xattr.c dest - ci->i_xattrs.prealloc_blob->vec.iov_base; ci 796 fs/ceph/xattr.c if (ci->i_xattrs.blob) ci 797 fs/ceph/xattr.c old_blob = ci->i_xattrs.blob; ci 798 fs/ceph/xattr.c ci->i_xattrs.blob = ci->i_xattrs.prealloc_blob; ci 799 fs/ceph/xattr.c ci->i_xattrs.prealloc_blob = NULL; ci 800 fs/ceph/xattr.c ci->i_xattrs.dirty = false; ci 801 fs/ceph/xattr.c ci->i_xattrs.version++; ci 827 fs/ceph/xattr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 843 fs/ceph/xattr.c if (!(vxattr->exists_cb && !vxattr->exists_cb(ci))) { ci 844 fs/ceph/xattr.c err = vxattr->getxattr_cb(ci, value, size); ci 853 fs/ceph/xattr.c spin_lock(&ci->i_ceph_lock); ci 855 fs/ceph/xattr.c ci->i_xattrs.version, ci->i_xattrs.index_version); ci 857 fs/ceph/xattr.c if (ci->i_xattrs.version == 0 || ci 859 fs/ceph/xattr.c __ceph_caps_issued_mask(ci, CEPH_CAP_XATTR_SHARED, 1))) { ci 860 fs/ceph/xattr.c spin_unlock(&ci->i_ceph_lock); ci 873 fs/ceph/xattr.c spin_lock(&ci->i_ceph_lock); ci 881 fs/ceph/xattr.c xattr = __get_xattr(ci, name); ci 898 fs/ceph/xattr.c ci->i_ceph_flags |= CEPH_I_SEC_INITED; ci 900 fs/ceph/xattr.c spin_unlock(&ci->i_ceph_lock); ci 907 fs/ceph/xattr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 912 fs/ceph/xattr.c spin_lock(&ci->i_ceph_lock); ci 914 fs/ceph/xattr.c ci->i_xattrs.version, ci->i_xattrs.index_version); ci 916 fs/ceph/xattr.c if (ci->i_xattrs.version == 0 || ci 917 fs/ceph/xattr.c !__ceph_caps_issued_mask(ci, CEPH_CAP_XATTR_SHARED, 1)) { ci 918 fs/ceph/xattr.c spin_unlock(&ci->i_ceph_lock); ci 922 fs/ceph/xattr.c spin_lock(&ci->i_ceph_lock); ci 930 fs/ceph/xattr.c namelen = ci->i_xattrs.names_size + ci->i_xattrs.count; ci 936 fs/ceph/xattr.c names = __copy_xattr_names(ci, names); ci 941 fs/ceph/xattr.c spin_unlock(&ci->i_ceph_lock); ci 949 fs/ceph/xattr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 999 fs/ceph/xattr.c dout("xattr.ver (before): %lld\n", ci->i_xattrs.version); ci 1002 fs/ceph/xattr.c dout("xattr.ver (after): %lld\n", ci->i_xattrs.version); ci 1014 fs/ceph/xattr.c struct ceph_inode_info *ci = ceph_inode(inode); ci 1065 fs/ceph/xattr.c spin_lock(&ci->i_ceph_lock); ci 1067 fs/ceph/xattr.c issued = __ceph_caps_issued(ci, NULL); ci 1068 fs/ceph/xattr.c if (ci->i_xattrs.version == 0 || !(issued & CEPH_CAP_XATTR_EXCL)) ci 1071 fs/ceph/xattr.c if (!lock_snap_rwsem && !ci->i_head_snapc) { ci 1074 fs/ceph/xattr.c spin_unlock(&ci->i_ceph_lock); ci 1076 fs/ceph/xattr.c spin_lock(&ci->i_ceph_lock); ci 1084 fs/ceph/xattr.c required_blob_size = __get_required_blob_size(ci, name_len, val_len); ci 1086 fs/ceph/xattr.c if (!ci->i_xattrs.prealloc_blob || ci 1087 fs/ceph/xattr.c required_blob_size > ci->i_xattrs.prealloc_blob->alloc_len) { ci 1090 fs/ceph/xattr.c spin_unlock(&ci->i_ceph_lock); ci 1096 fs/ceph/xattr.c spin_lock(&ci->i_ceph_lock); ci 1098 fs/ceph/xattr.c if (ci->i_xattrs.prealloc_blob) ci 1099 fs/ceph/xattr.c old_blob = ci->i_xattrs.prealloc_blob; ci 1100 fs/ceph/xattr.c ci->i_xattrs.prealloc_blob = blob; ci 1104 fs/ceph/xattr.c err = __set_xattr(ci, newname, name_len, newval, val_len, ci 1108 fs/ceph/xattr.c dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_XATTR_EXCL, ci 1110 fs/ceph/xattr.c ci->i_xattrs.dirty = true; ci 1114 fs/ceph/xattr.c spin_unlock(&ci->i_ceph_lock); ci 1124 fs/ceph/xattr.c spin_unlock(&ci->i_ceph_lock); ci 1138 fs/ceph/xattr.c spin_lock(&ci->i_ceph_lock); ci 1139 fs/ceph/xattr.c if ((ci->i_max_files || ci->i_max_bytes) && ci 1140 fs/ceph/xattr.c !(ci->i_snap_realm && ci 1141 fs/ceph/xattr.c ci->i_snap_realm->ino == ci->i_vino.ino)) ci 1143 fs/ceph/xattr.c spin_unlock(&ci->i_ceph_lock); ci 1187 fs/ceph/xattr.c struct ceph_inode_info *ci; ci 1191 fs/ceph/xattr.c ci = ceph_inode(in); ci 1192 fs/ceph/xattr.c spin_lock(&ci->i_ceph_lock); ci 1193 fs/ceph/xattr.c ret = !(ci->i_ceph_flags & CEPH_I_SEC_INITED) && ci 1194 fs/ceph/xattr.c !(ci->i_xattrs.version > 0 && ci 1195 fs/ceph/xattr.c __ceph_caps_issued_mask(ci, CEPH_CAP_XATTR_SHARED, 0)); ci 1196 fs/ceph/xattr.c spin_unlock(&ci->i_ceph_lock); ci 139 fs/crypto/crypto.c const struct fscrypt_info *ci) ci 141 fs/crypto/crypto.c memset(iv, 0, ci->ci_mode->ivsize); ci 144 fs/crypto/crypto.c if (fscrypt_is_direct_key_policy(&ci->ci_policy)) ci 145 fs/crypto/crypto.c memcpy(iv->nonce, ci->ci_nonce, FS_KEY_DERIVATION_NONCE_SIZE); ci 147 fs/crypto/crypto.c if (ci->ci_essiv_tfm != NULL) ci 148 fs/crypto/crypto.c crypto_cipher_encrypt_one(ci->ci_essiv_tfm, iv->raw, iv->raw); ci 161 fs/crypto/crypto.c struct fscrypt_info *ci = inode->i_crypt_info; ci 162 fs/crypto/crypto.c struct crypto_skcipher *tfm = ci->ci_ctfm; ci 170 fs/crypto/crypto.c fscrypt_generate_iv(&iv, lblk_num, ci); ci 42 fs/crypto/fname.c struct fscrypt_info *ci = inode->i_crypt_info; ci 43 fs/crypto/fname.c struct crypto_skcipher *tfm = ci->ci_ctfm; ci 58 fs/crypto/fname.c fscrypt_generate_iv(&iv, 0, ci); ci 95 fs/crypto/fname.c struct fscrypt_info *ci = inode->i_crypt_info; ci 96 fs/crypto/fname.c struct crypto_skcipher *tfm = ci->ci_ctfm; ci 109 fs/crypto/fname.c fscrypt_generate_iv(&iv, 0, ci); ci 184 fs/crypto/fname.c const struct fscrypt_info *ci = inode->i_crypt_info; ci 185 fs/crypto/fname.c int padding = 4 << (fscrypt_policy_flags(&ci->ci_policy) & ci 265 fs/crypto/fscrypt_private.h const struct fscrypt_info *ci); ci 460 fs/crypto/fscrypt_private.h extern int fscrypt_set_derived_key(struct fscrypt_info *ci, ci 467 fs/crypto/fscrypt_private.h extern int fscrypt_setup_v1_file_key(struct fscrypt_info *ci, ci 471 fs/crypto/fscrypt_private.h struct fscrypt_info *ci); ci 633 fs/crypto/keyring.c struct fscrypt_info *ci; ci 639 fs/crypto/keyring.c list_for_each_entry(ci, &mk->mk_decrypted_inodes, ci_master_key_link) { ci 640 fs/crypto/keyring.c inode = ci->ci_inode; ci 149 fs/crypto/keysetup.c static int init_essiv_generator(struct fscrypt_info *ci, const u8 *raw_key, ci 156 fs/crypto/keysetup.c if (WARN_ON(ci->ci_mode->ivsize != AES_BLOCK_SIZE)) ci 163 fs/crypto/keysetup.c ci->ci_essiv_tfm = essiv_tfm; ci 184 fs/crypto/keysetup.c int fscrypt_set_derived_key(struct fscrypt_info *ci, const u8 *derived_key) ci 186 fs/crypto/keysetup.c struct fscrypt_mode *mode = ci->ci_mode; ci 190 fs/crypto/keysetup.c ctfm = fscrypt_allocate_skcipher(mode, derived_key, ci->ci_inode); ci 194 fs/crypto/keysetup.c ci->ci_ctfm = ctfm; ci 197 fs/crypto/keysetup.c err = init_essiv_generator(ci, derived_key, mode->keysize); ci 199 fs/crypto/keysetup.c fscrypt_warn(ci->ci_inode, ci 208 fs/crypto/keysetup.c static int setup_per_mode_key(struct fscrypt_info *ci, ci 211 fs/crypto/keysetup.c struct fscrypt_mode *mode = ci->ci_mode; ci 232 fs/crypto/keysetup.c tfm = fscrypt_allocate_skcipher(mode, mode_key, ci->ci_inode); ci 244 fs/crypto/keysetup.c ci->ci_ctfm = tfm; ci 248 fs/crypto/keysetup.c static int fscrypt_setup_v2_file_key(struct fscrypt_info *ci, ci 254 fs/crypto/keysetup.c if (ci->ci_policy.v2.flags & FSCRYPT_POLICY_FLAG_DIRECT_KEY) { ci 263 fs/crypto/keysetup.c if (!fscrypt_mode_supports_direct_key(ci->ci_mode)) { ci 264 fs/crypto/keysetup.c fscrypt_warn(ci->ci_inode, ci 266 fs/crypto/keysetup.c ci->ci_mode->friendly_name); ci 269 fs/crypto/keysetup.c return setup_per_mode_key(ci, mk); ci 274 fs/crypto/keysetup.c ci->ci_nonce, FS_KEY_DERIVATION_NONCE_SIZE, ci 275 fs/crypto/keysetup.c derived_key, ci->ci_mode->keysize); ci 279 fs/crypto/keysetup.c err = fscrypt_set_derived_key(ci, derived_key); ci 280 fs/crypto/keysetup.c memzero_explicit(derived_key, ci->ci_mode->keysize); ci 294 fs/crypto/keysetup.c static int setup_file_encryption_key(struct fscrypt_info *ci, ci 302 fs/crypto/keysetup.c switch (ci->ci_policy.version) { ci 306 fs/crypto/keysetup.c ci->ci_policy.v1.master_key_descriptor, ci 312 fs/crypto/keysetup.c ci->ci_policy.v2.master_key_identifier, ci 320 fs/crypto/keysetup.c key = fscrypt_find_master_key(ci->ci_inode->i_sb, &mk_spec); ci 323 fs/crypto/keysetup.c ci->ci_policy.version != FSCRYPT_POLICY_V1) ci 332 fs/crypto/keysetup.c return fscrypt_setup_v1_file_key_via_subscribed_keyrings(ci); ci 350 fs/crypto/keysetup.c if (mk->mk_secret.size < ci->ci_mode->keysize) { ci 355 fs/crypto/keysetup.c mk->mk_secret.size, ci->ci_mode->keysize); ci 360 fs/crypto/keysetup.c switch (ci->ci_policy.version) { ci 362 fs/crypto/keysetup.c err = fscrypt_setup_v1_file_key(ci, mk->mk_secret.raw); ci 365 fs/crypto/keysetup.c err = fscrypt_setup_v2_file_key(ci, mk); ci 384 fs/crypto/keysetup.c static void put_crypt_info(struct fscrypt_info *ci) ci 388 fs/crypto/keysetup.c if (!ci) ci 391 fs/crypto/keysetup.c if (ci->ci_direct_key) { ci 392 fs/crypto/keysetup.c fscrypt_put_direct_key(ci->ci_direct_key); ci 393 fs/crypto/keysetup.c } else if ((ci->ci_ctfm != NULL || ci->ci_essiv_tfm != NULL) && ci 394 fs/crypto/keysetup.c !fscrypt_is_direct_key_policy(&ci->ci_policy)) { ci 395 fs/crypto/keysetup.c crypto_free_skcipher(ci->ci_ctfm); ci 396 fs/crypto/keysetup.c crypto_free_cipher(ci->ci_essiv_tfm); ci 399 fs/crypto/keysetup.c key = ci->ci_master_key; ci 412 fs/crypto/keysetup.c list_del(&ci->ci_master_key_link); ci 418 fs/crypto/keysetup.c kmem_cache_free(fscrypt_info_cachep, ci); ci 568 fs/crypto/keysetup.c const struct fscrypt_info *ci = READ_ONCE(inode->i_crypt_info); ci 577 fs/crypto/keysetup.c if (!ci || !ci->ci_master_key) ci 579 fs/crypto/keysetup.c mk = ci->ci_master_key->payload.data[0]; ci 180 fs/crypto/keysetup_v1.c const u8 *raw_key, const struct fscrypt_info *ci) ci 192 fs/crypto/keysetup_v1.c memcpy(&hash_key, ci->ci_policy.v1.master_key_descriptor, ci 197 fs/crypto/keysetup_v1.c if (memcmp(ci->ci_policy.v1.master_key_descriptor, ci 200 fs/crypto/keysetup_v1.c if (ci->ci_mode != dk->dk_mode) ci 202 fs/crypto/keysetup_v1.c if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) ci 218 fs/crypto/keysetup_v1.c fscrypt_get_direct_key(const struct fscrypt_info *ci, const u8 *raw_key) ci 224 fs/crypto/keysetup_v1.c dk = find_or_insert_direct_key(NULL, raw_key, ci); ci 233 fs/crypto/keysetup_v1.c dk->dk_mode = ci->ci_mode; ci 234 fs/crypto/keysetup_v1.c dk->dk_ctfm = fscrypt_allocate_skcipher(ci->ci_mode, raw_key, ci 235 fs/crypto/keysetup_v1.c ci->ci_inode); ci 241 fs/crypto/keysetup_v1.c memcpy(dk->dk_descriptor, ci->ci_policy.v1.master_key_descriptor, ci 243 fs/crypto/keysetup_v1.c memcpy(dk->dk_raw, raw_key, ci->ci_mode->keysize); ci 245 fs/crypto/keysetup_v1.c return find_or_insert_direct_key(dk, raw_key, ci); ci 253 fs/crypto/keysetup_v1.c static int setup_v1_file_key_direct(struct fscrypt_info *ci, ci 256 fs/crypto/keysetup_v1.c const struct fscrypt_mode *mode = ci->ci_mode; ci 260 fs/crypto/keysetup_v1.c fscrypt_warn(ci->ci_inode, ci 266 fs/crypto/keysetup_v1.c if (ci->ci_policy.v1.contents_encryption_mode != ci 267 fs/crypto/keysetup_v1.c ci->ci_policy.v1.filenames_encryption_mode) { ci 268 fs/crypto/keysetup_v1.c fscrypt_warn(ci->ci_inode, ci 277 fs/crypto/keysetup_v1.c dk = fscrypt_get_direct_key(ci, raw_master_key); ci 280 fs/crypto/keysetup_v1.c ci->ci_direct_key = dk; ci 281 fs/crypto/keysetup_v1.c ci->ci_ctfm = dk->dk_ctfm; ci 286 fs/crypto/keysetup_v1.c static int setup_v1_file_key_derived(struct fscrypt_info *ci, ci 296 fs/crypto/keysetup_v1.c derived_key = kmalloc(ci->ci_mode->keysize, GFP_NOFS); ci 300 fs/crypto/keysetup_v1.c err = derive_key_aes(raw_master_key, ci->ci_nonce, ci 301 fs/crypto/keysetup_v1.c derived_key, ci->ci_mode->keysize); ci 305 fs/crypto/keysetup_v1.c err = fscrypt_set_derived_key(ci, derived_key); ci 311 fs/crypto/keysetup_v1.c int fscrypt_setup_v1_file_key(struct fscrypt_info *ci, const u8 *raw_master_key) ci 313 fs/crypto/keysetup_v1.c if (ci->ci_policy.v1.flags & FSCRYPT_POLICY_FLAG_DIRECT_KEY) ci 314 fs/crypto/keysetup_v1.c return setup_v1_file_key_direct(ci, raw_master_key); ci 316 fs/crypto/keysetup_v1.c return setup_v1_file_key_derived(ci, raw_master_key); ci 319 fs/crypto/keysetup_v1.c int fscrypt_setup_v1_file_key_via_subscribed_keyrings(struct fscrypt_info *ci) ci 326 fs/crypto/keysetup_v1.c ci->ci_policy.v1.master_key_descriptor, ci 327 fs/crypto/keysetup_v1.c ci->ci_mode->keysize, &payload); ci 328 fs/crypto/keysetup_v1.c if (key == ERR_PTR(-ENOKEY) && ci->ci_inode->i_sb->s_cop->key_prefix) { ci 329 fs/crypto/keysetup_v1.c key = find_and_lock_process_key(ci->ci_inode->i_sb->s_cop->key_prefix, ci 330 fs/crypto/keysetup_v1.c ci->ci_policy.v1.master_key_descriptor, ci 331 fs/crypto/keysetup_v1.c ci->ci_mode->keysize, &payload); ci 336 fs/crypto/keysetup_v1.c err = fscrypt_setup_v1_file_key(ci, payload->raw); ci 210 fs/crypto/policy.c const struct fscrypt_info *ci; ci 214 fs/crypto/policy.c ci = READ_ONCE(inode->i_crypt_info); ci 215 fs/crypto/policy.c if (ci) { ci 217 fs/crypto/policy.c *policy = ci->ci_policy; ci 474 fs/crypto/policy.c struct fscrypt_info *ci; ci 481 fs/crypto/policy.c ci = READ_ONCE(parent->i_crypt_info); ci 482 fs/crypto/policy.c if (ci == NULL) ci 485 fs/crypto/policy.c ctxsize = fscrypt_new_context_from_policy(&ctx, &ci->ci_policy); ci 205 fs/isofs/inode.c const struct qstr *name, int ms, int ci) ci 219 fs/isofs/inode.c if (ci) { ci 814 fs/nfsd/nfs4recover.c const struct cld_clntinfo __user *ci; ci 816 fs/nfsd/nfs4recover.c ci = &cmsg->cm_u.cm_clntinfo; ci 817 fs/nfsd/nfs4recover.c if (get_user(namelen, &ci->cc_name.cn_len)) ci 819 fs/nfsd/nfs4recover.c name.data = memdup_user(&ci->cc_name.cn_id, namelen); ci 823 fs/nfsd/nfs4recover.c get_user(princhashlen, &ci->cc_princhash.cp_len); ci 826 fs/nfsd/nfs4recover.c &ci->cc_princhash.cp_data, ci 412 fs/nilfs2/cpfile.c struct nilfs_cpinfo *ci) ci 414 fs/nilfs2/cpfile.c ci->ci_flags = le32_to_cpu(cp->cp_flags); ci 415 fs/nilfs2/cpfile.c ci->ci_cno = le64_to_cpu(cp->cp_cno); ci 416 fs/nilfs2/cpfile.c ci->ci_create = le64_to_cpu(cp->cp_create); ci 417 fs/nilfs2/cpfile.c ci->ci_nblk_inc = le64_to_cpu(cp->cp_nblk_inc); ci 418 fs/nilfs2/cpfile.c ci->ci_inodes_count = le64_to_cpu(cp->cp_inodes_count); ci 419 fs/nilfs2/cpfile.c ci->ci_blocks_count = le64_to_cpu(cp->cp_blocks_count); ci 420 fs/nilfs2/cpfile.c ci->ci_next = le64_to_cpu(cp->cp_snapshot_list.ssl_next); ci 428 fs/nilfs2/cpfile.c struct nilfs_cpinfo *ci = buf; ci 455 fs/nilfs2/cpfile.c ci); ci 456 fs/nilfs2/cpfile.c ci = (void *)ci + cisz; ci 466 fs/nilfs2/cpfile.c ci = (void *)ci - cisz; ci 467 fs/nilfs2/cpfile.c *cnop = ci->ci_cno + 1; ci 482 fs/nilfs2/cpfile.c struct nilfs_cpinfo *ci = buf; ci 522 fs/nilfs2/cpfile.c nilfs_cpfile_checkpoint_to_cpinfo(cpfile, cp, ci); ci 523 fs/nilfs2/cpfile.c ci = (void *)ci + cisz; ci 582 fs/nilfs2/cpfile.c struct nilfs_cpinfo ci; ci 586 fs/nilfs2/cpfile.c nci = nilfs_cpfile_do_get_cpinfo(cpfile, &tcno, &ci, sizeof(ci), 1); ci 589 fs/nilfs2/cpfile.c else if (nci == 0 || ci.ci_cno != cno) ci 591 fs/nilfs2/cpfile.c else if (nilfs_cpinfo_snapshot(&ci)) ci 431 fs/ocfs2/alloc.c struct ocfs2_caching_info *ci, ci 439 fs/ocfs2/alloc.c et->et_ci = ci; ci 454 fs/ocfs2/alloc.c struct ocfs2_caching_info *ci, ci 457 fs/ocfs2/alloc.c __ocfs2_init_extent_tree(et, ci, bh, ocfs2_journal_access_di, ci 462 fs/ocfs2/alloc.c struct ocfs2_caching_info *ci, ci 465 fs/ocfs2/alloc.c __ocfs2_init_extent_tree(et, ci, bh, ocfs2_journal_access_xb, ci 470 fs/ocfs2/alloc.c struct ocfs2_caching_info *ci, ci 473 fs/ocfs2/alloc.c __ocfs2_init_extent_tree(et, ci, vb->vb_bh, vb->vb_access, vb, ci 478 fs/ocfs2/alloc.c struct ocfs2_caching_info *ci, ci 481 fs/ocfs2/alloc.c __ocfs2_init_extent_tree(et, ci, bh, ocfs2_journal_access_dr, ci 486 fs/ocfs2/alloc.c struct ocfs2_caching_info *ci, ci 489 fs/ocfs2/alloc.c __ocfs2_init_extent_tree(et, ci, bh, ocfs2_journal_access_rb, ci 722 fs/ocfs2/alloc.c struct ocfs2_caching_info *ci, ci 734 fs/ocfs2/alloc.c return access(handle, ci, path->p_node[idx].bh, ci 741 fs/ocfs2/alloc.c int ocfs2_journal_access_path(struct ocfs2_caching_info *ci, ci 751 fs/ocfs2/alloc.c ret = ocfs2_path_bh_journal_access(handle, ci, path, i); ci 930 fs/ocfs2/alloc.c int ocfs2_read_extent_block(struct ocfs2_caching_info *ci, u64 eb_blkno, ci 936 fs/ocfs2/alloc.c rc = ocfs2_read_block(ci, eb_blkno, &tmp, ci 1788 fs/ocfs2/alloc.c static int __ocfs2_find_path(struct ocfs2_caching_info *ci, ci 1803 fs/ocfs2/alloc.c ocfs2_error(ocfs2_metadata_cache_get_super(ci), ci 1805 fs/ocfs2/alloc.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 1828 fs/ocfs2/alloc.c ocfs2_error(ocfs2_metadata_cache_get_super(ci), ci 1830 fs/ocfs2/alloc.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 1838 fs/ocfs2/alloc.c ret = ocfs2_read_extent_block(ci, blkno, &bh); ci 1849 fs/ocfs2/alloc.c ocfs2_error(ocfs2_metadata_cache_get_super(ci), ci 1851 fs/ocfs2/alloc.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 1895 fs/ocfs2/alloc.c int ocfs2_find_path(struct ocfs2_caching_info *ci, ci 1902 fs/ocfs2/alloc.c return __ocfs2_find_path(ci, path_root_el(path), cpos, ci 1927 fs/ocfs2/alloc.c int ocfs2_find_leaf(struct ocfs2_caching_info *ci, ci 1934 fs/ocfs2/alloc.c ret = __ocfs2_find_path(ci, root_el, cpos, find_leaf_ins, &bh); ci 58 fs/ocfs2/alloc.h struct ocfs2_caching_info *ci, ci 61 fs/ocfs2/alloc.h struct ocfs2_caching_info *ci, ci 65 fs/ocfs2/alloc.h struct ocfs2_caching_info *ci, ci 68 fs/ocfs2/alloc.h struct ocfs2_caching_info *ci, ci 71 fs/ocfs2/alloc.h struct ocfs2_caching_info *ci, ci 79 fs/ocfs2/alloc.h int ocfs2_read_extent_block(struct ocfs2_caching_info *ci, u64 eb_blkno, ci 225 fs/ocfs2/alloc.h int ocfs2_find_leaf(struct ocfs2_caching_info *ci, ci 293 fs/ocfs2/alloc.h int ocfs2_find_path(struct ocfs2_caching_info *ci, ci 299 fs/ocfs2/alloc.h struct ocfs2_caching_info *ci, ci 302 fs/ocfs2/alloc.h int ocfs2_journal_access_path(struct ocfs2_caching_info *ci, ci 41 fs/ocfs2/buffer_head_io.c struct ocfs2_caching_info *ci) ci 45 fs/ocfs2/buffer_head_io.c trace_ocfs2_write_block((unsigned long long)bh->b_blocknr, ci); ci 59 fs/ocfs2/buffer_head_io.c ocfs2_metadata_cache_io_lock(ci); ci 74 fs/ocfs2/buffer_head_io.c ocfs2_set_buffer_uptodate(ci, bh); ci 83 fs/ocfs2/buffer_head_io.c ocfs2_metadata_cache_io_unlock(ci); ci 195 fs/ocfs2/buffer_head_io.c int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr, ci 203 fs/ocfs2/buffer_head_io.c struct super_block *sb = ocfs2_metadata_cache_get_super(ci); ci 206 fs/ocfs2/buffer_head_io.c trace_ocfs2_read_blocks_begin(ci, (unsigned long long)block, nr, flags); ci 208 fs/ocfs2/buffer_head_io.c BUG_ON(!ci); ci 235 fs/ocfs2/buffer_head_io.c ocfs2_metadata_cache_io_lock(ci); ci 240 fs/ocfs2/buffer_head_io.c ocfs2_metadata_cache_io_unlock(ci); ci 274 fs/ocfs2/buffer_head_io.c if (!ignore_cache && !ocfs2_buffer_uptodate(ci, bh)) { ci 277 fs/ocfs2/buffer_head_io.c (unsigned long long)ocfs2_metadata_cache_owner(ci)); ci 302 fs/ocfs2/buffer_head_io.c && ocfs2_buffer_read_ahead(ci, bh)) ci 324 fs/ocfs2/buffer_head_io.c && ocfs2_buffer_uptodate(ci, bh)) { ci 394 fs/ocfs2/buffer_head_io.c ocfs2_set_buffer_uptodate(ci, bh); ci 396 fs/ocfs2/buffer_head_io.c ocfs2_metadata_cache_io_unlock(ci); ci 19 fs/ocfs2/buffer_head_io.h struct ocfs2_caching_info *ci); ci 30 fs/ocfs2/buffer_head_io.h int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr, ci 41 fs/ocfs2/buffer_head_io.h static inline int ocfs2_read_block(struct ocfs2_caching_info *ci, u64 off, ci 54 fs/ocfs2/buffer_head_io.h status = ocfs2_read_blocks(ci, off, 1, bh, 0, validate); ci 3952 fs/ocfs2/dlmglue.c static int ocfs2_ci_checkpointed(struct ocfs2_caching_info *ci, ci 3956 fs/ocfs2/dlmglue.c int checkpointed = ocfs2_ci_fully_checkpointed(ci); ci 3964 fs/ocfs2/dlmglue.c ocfs2_start_checkpoint(OCFS2_SB(ocfs2_metadata_cache_get_super(ci))); ci 345 fs/ocfs2/extent_map.c int ocfs2_figure_hole_clusters(struct ocfs2_caching_info *ci, ci 367 fs/ocfs2/extent_map.c ret = ocfs2_read_extent_block(ci, ci 57 fs/ocfs2/extent_map.h int ocfs2_figure_hole_clusters(struct ocfs2_caching_info *ci, ci 1611 fs/ocfs2/inode.c static u64 ocfs2_inode_cache_owner(struct ocfs2_caching_info *ci) ci 1613 fs/ocfs2/inode.c struct ocfs2_inode_info *oi = cache_info_to_inode(ci); ci 1618 fs/ocfs2/inode.c static struct super_block *ocfs2_inode_cache_get_super(struct ocfs2_caching_info *ci) ci 1620 fs/ocfs2/inode.c struct ocfs2_inode_info *oi = cache_info_to_inode(ci); ci 1625 fs/ocfs2/inode.c static void ocfs2_inode_cache_lock(struct ocfs2_caching_info *ci) ci 1627 fs/ocfs2/inode.c struct ocfs2_inode_info *oi = cache_info_to_inode(ci); ci 1632 fs/ocfs2/inode.c static void ocfs2_inode_cache_unlock(struct ocfs2_caching_info *ci) ci 1634 fs/ocfs2/inode.c struct ocfs2_inode_info *oi = cache_info_to_inode(ci); ci 1639 fs/ocfs2/inode.c static void ocfs2_inode_cache_io_lock(struct ocfs2_caching_info *ci) ci 1641 fs/ocfs2/inode.c struct ocfs2_inode_info *oi = cache_info_to_inode(ci); ci 1646 fs/ocfs2/inode.c static void ocfs2_inode_cache_io_unlock(struct ocfs2_caching_info *ci) ci 1648 fs/ocfs2/inode.c struct ocfs2_inode_info *oi = cache_info_to_inode(ci); ci 165 fs/ocfs2/inode.h static inline struct ocfs2_inode_info *cache_info_to_inode(struct ocfs2_caching_info *ci) ci 167 fs/ocfs2/inode.h return container_of(ci, struct ocfs2_inode_info, ip_metadata_cache); ci 636 fs/ocfs2/journal.c struct ocfs2_caching_info *ci, ci 643 fs/ocfs2/journal.c OCFS2_SB(ocfs2_metadata_cache_get_super(ci)); ci 645 fs/ocfs2/journal.c BUG_ON(!ci || !ci->ci_ops); ci 650 fs/ocfs2/journal.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 684 fs/ocfs2/journal.c ocfs2_set_ci_lock_trans(osb->journal, ci); ci 686 fs/ocfs2/journal.c ocfs2_metadata_cache_io_lock(ci); ci 703 fs/ocfs2/journal.c ocfs2_metadata_cache_io_unlock(ci); ci 712 fs/ocfs2/journal.c int ocfs2_journal_access_di(handle_t *handle, struct ocfs2_caching_info *ci, ci 715 fs/ocfs2/journal.c return __ocfs2_journal_access(handle, ci, bh, &di_triggers, type); ci 718 fs/ocfs2/journal.c int ocfs2_journal_access_eb(handle_t *handle, struct ocfs2_caching_info *ci, ci 721 fs/ocfs2/journal.c return __ocfs2_journal_access(handle, ci, bh, &eb_triggers, type); ci 724 fs/ocfs2/journal.c int ocfs2_journal_access_rb(handle_t *handle, struct ocfs2_caching_info *ci, ci 727 fs/ocfs2/journal.c return __ocfs2_journal_access(handle, ci, bh, &rb_triggers, ci 731 fs/ocfs2/journal.c int ocfs2_journal_access_gd(handle_t *handle, struct ocfs2_caching_info *ci, ci 734 fs/ocfs2/journal.c return __ocfs2_journal_access(handle, ci, bh, &gd_triggers, type); ci 737 fs/ocfs2/journal.c int ocfs2_journal_access_db(handle_t *handle, struct ocfs2_caching_info *ci, ci 740 fs/ocfs2/journal.c return __ocfs2_journal_access(handle, ci, bh, &db_triggers, type); ci 743 fs/ocfs2/journal.c int ocfs2_journal_access_xb(handle_t *handle, struct ocfs2_caching_info *ci, ci 746 fs/ocfs2/journal.c return __ocfs2_journal_access(handle, ci, bh, &xb_triggers, type); ci 749 fs/ocfs2/journal.c int ocfs2_journal_access_dq(handle_t *handle, struct ocfs2_caching_info *ci, ci 752 fs/ocfs2/journal.c return __ocfs2_journal_access(handle, ci, bh, &dq_triggers, type); ci 755 fs/ocfs2/journal.c int ocfs2_journal_access_dr(handle_t *handle, struct ocfs2_caching_info *ci, ci 758 fs/ocfs2/journal.c return __ocfs2_journal_access(handle, ci, bh, &dr_triggers, type); ci 761 fs/ocfs2/journal.c int ocfs2_journal_access_dl(handle_t *handle, struct ocfs2_caching_info *ci, ci 764 fs/ocfs2/journal.c return __ocfs2_journal_access(handle, ci, bh, &dl_triggers, type); ci 767 fs/ocfs2/journal.c int ocfs2_journal_access(handle_t *handle, struct ocfs2_caching_info *ci, ci 770 fs/ocfs2/journal.c return __ocfs2_journal_access(handle, ci, bh, NULL, type); ci 81 fs/ocfs2/journal.h struct ocfs2_caching_info *ci) ci 84 fs/ocfs2/journal.h ci->ci_last_trans = journal->j_trans_id; ci 93 fs/ocfs2/journal.h static inline int ocfs2_ci_fully_checkpointed(struct ocfs2_caching_info *ci) ci 97 fs/ocfs2/journal.h OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; ci 100 fs/ocfs2/journal.h ret = time_after(journal->j_trans_id, ci->ci_last_trans); ci 109 fs/ocfs2/journal.h static inline int ocfs2_ci_is_new(struct ocfs2_caching_info *ci) ci 113 fs/ocfs2/journal.h OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; ci 116 fs/ocfs2/journal.h ret = !(time_after(journal->j_trans_id, ci->ci_created_trans)); ci 118 fs/ocfs2/journal.h ci->ci_created_trans = 0; ci 136 fs/ocfs2/journal.h struct ocfs2_caching_info *ci) ci 139 fs/ocfs2/journal.h ci->ci_created_trans = osb->journal->j_trans_id; ci 275 fs/ocfs2/journal.h int ocfs2_journal_access_di(handle_t *handle, struct ocfs2_caching_info *ci, ci 278 fs/ocfs2/journal.h int ocfs2_journal_access_eb(handle_t *handle, struct ocfs2_caching_info *ci, ci 281 fs/ocfs2/journal.h int ocfs2_journal_access_rb(handle_t *handle, struct ocfs2_caching_info *ci, ci 284 fs/ocfs2/journal.h int ocfs2_journal_access_gd(handle_t *handle, struct ocfs2_caching_info *ci, ci 287 fs/ocfs2/journal.h int ocfs2_journal_access_xb(handle_t *handle, struct ocfs2_caching_info *ci, ci 290 fs/ocfs2/journal.h int ocfs2_journal_access_dq(handle_t *handle, struct ocfs2_caching_info *ci, ci 293 fs/ocfs2/journal.h int ocfs2_journal_access_db(handle_t *handle, struct ocfs2_caching_info *ci, ci 296 fs/ocfs2/journal.h int ocfs2_journal_access_dr(handle_t *handle, struct ocfs2_caching_info *ci, ci 299 fs/ocfs2/journal.h int ocfs2_journal_access_dl(handle_t *handle, struct ocfs2_caching_info *ci, ci 302 fs/ocfs2/journal.h int ocfs2_journal_access(handle_t *handle, struct ocfs2_caching_info *ci, ci 84 fs/ocfs2/ocfs2.h struct super_block *ocfs2_metadata_cache_get_super(struct ocfs2_caching_info *ci); ci 477 fs/ocfs2/ocfs2.h struct ocfs2_caching_info *ci, ci 2687 fs/ocfs2/ocfs2_trace.h TP_PROTO(unsigned long long block, void *ci), ci 2688 fs/ocfs2/ocfs2_trace.h TP_ARGS(block, ci), ci 2691 fs/ocfs2/ocfs2_trace.h __field(void *, ci) ci 2695 fs/ocfs2/ocfs2_trace.h __entry->ci = ci; ci 2697 fs/ocfs2/ocfs2_trace.h TP_printk("%llu %p", __entry->block, __entry->ci) ci 2701 fs/ocfs2/ocfs2_trace.h TP_PROTO(void *ci, unsigned long long block, ci 2703 fs/ocfs2/ocfs2_trace.h TP_ARGS(ci, block, nr, flags), ci 2705 fs/ocfs2/ocfs2_trace.h __field(void *, ci) ci 2711 fs/ocfs2/ocfs2_trace.h __entry->ci = ci; ci 2716 fs/ocfs2/ocfs2_trace.h TP_printk("%p %llu %u %d", __entry->ci, __entry->block, ci 68 fs/ocfs2/refcounttree.c cache_info_to_refcount(struct ocfs2_caching_info *ci) ci 70 fs/ocfs2/refcounttree.c return container_of(ci, struct ocfs2_refcount_tree, rf_ci); ci 124 fs/ocfs2/refcounttree.c static int ocfs2_read_refcount_block(struct ocfs2_caching_info *ci, ci 131 fs/ocfs2/refcounttree.c rc = ocfs2_read_block(ci, rb_blkno, &tmp, ci 141 fs/ocfs2/refcounttree.c static u64 ocfs2_refcount_cache_owner(struct ocfs2_caching_info *ci) ci 143 fs/ocfs2/refcounttree.c struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); ci 149 fs/ocfs2/refcounttree.c ocfs2_refcount_cache_get_super(struct ocfs2_caching_info *ci) ci 151 fs/ocfs2/refcounttree.c struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); ci 156 fs/ocfs2/refcounttree.c static void ocfs2_refcount_cache_lock(struct ocfs2_caching_info *ci) ci 158 fs/ocfs2/refcounttree.c struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); ci 163 fs/ocfs2/refcounttree.c static void ocfs2_refcount_cache_unlock(struct ocfs2_caching_info *ci) ci 165 fs/ocfs2/refcounttree.c struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); ci 170 fs/ocfs2/refcounttree.c static void ocfs2_refcount_cache_io_lock(struct ocfs2_caching_info *ci) ci 172 fs/ocfs2/refcounttree.c struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); ci 177 fs/ocfs2/refcounttree.c static void ocfs2_refcount_cache_io_unlock(struct ocfs2_caching_info *ci) ci 179 fs/ocfs2/refcounttree.c struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); ci 874 fs/ocfs2/refcounttree.c static void ocfs2_find_refcount_rec_in_rl(struct ocfs2_caching_info *ci, ci 956 fs/ocfs2/refcounttree.c static int ocfs2_get_refcount_cpos_end(struct ocfs2_caching_info *ci, ci 965 fs/ocfs2/refcounttree.c struct super_block *sb = ocfs2_metadata_cache_get_super(ci); ci 994 fs/ocfs2/refcounttree.c ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); ci 1004 fs/ocfs2/refcounttree.c ret = ocfs2_find_path(ci, left_path, cpos); ci 1023 fs/ocfs2/refcounttree.c ret = ocfs2_find_path(ci, right_path, cpos); ci 1056 fs/ocfs2/refcounttree.c static int ocfs2_get_refcount_rec(struct ocfs2_caching_info *ci, ci 1069 fs/ocfs2/refcounttree.c struct super_block *sb = ocfs2_metadata_cache_get_super(ci); ci 1074 fs/ocfs2/refcounttree.c ocfs2_find_refcount_rec_in_rl(ci, ref_root_bh, cpos, len, ci 1085 fs/ocfs2/refcounttree.c ret = ocfs2_find_leaf(ci, el, low_cpos, &eb_bh); ci 1097 fs/ocfs2/refcounttree.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 1114 fs/ocfs2/refcounttree.c ret = ocfs2_get_refcount_cpos_end(ci, ref_root_bh, ci 1125 fs/ocfs2/refcounttree.c ret = ocfs2_read_refcount_block(ci, le64_to_cpu(rec->e_blkno), ci 1132 fs/ocfs2/refcounttree.c ocfs2_find_refcount_rec_in_rl(ci, ref_leaf_bh, cpos, len, ci 1234 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci, ci 1244 fs/ocfs2/refcounttree.c ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, ci 1252 fs/ocfs2/refcounttree.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 1275 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci, ci 1284 fs/ocfs2/refcounttree.c struct super_block *sb = ocfs2_metadata_cache_get_super(ci); ci 1290 fs/ocfs2/refcounttree.c ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, ci 1311 fs/ocfs2/refcounttree.c ocfs2_set_new_buffer_uptodate(ci, new_bh); ci 1313 fs/ocfs2/refcounttree.c ret = ocfs2_journal_access_rb(handle, ci, new_bh, ci 1513 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci, ci 1522 fs/ocfs2/refcounttree.c struct super_block *sb = ocfs2_metadata_cache_get_super(ci); ci 1531 fs/ocfs2/refcounttree.c ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, ci 1538 fs/ocfs2/refcounttree.c ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, ci 1559 fs/ocfs2/refcounttree.c ocfs2_set_new_buffer_uptodate(ci, new_bh); ci 1561 fs/ocfs2/refcounttree.c ret = ocfs2_journal_access_rb(handle, ci, new_bh, ci 1592 fs/ocfs2/refcounttree.c ocfs2_init_refcount_extent_tree(&ref_et, ci, ref_root_bh); ci 1609 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci, ci 1622 fs/ocfs2/refcounttree.c ret = ocfs2_expand_inline_ref_root(handle, ci, ref_root_bh, ci 1635 fs/ocfs2/refcounttree.c ret = ocfs2_new_leaf_refcount_block(handle, ci, ref_root_bh, ci 1651 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci, ci 1673 fs/ocfs2/refcounttree.c ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); ci 1682 fs/ocfs2/refcounttree.c ret = ocfs2_find_path(ci, path, old_cpos); ci 1698 fs/ocfs2/refcounttree.c ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, ci 1705 fs/ocfs2/refcounttree.c ret = ocfs2_journal_access_eb(handle, ci, path_leaf_bh(path), ci 1735 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci, ci 1754 fs/ocfs2/refcounttree.c ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, ci 1761 fs/ocfs2/refcounttree.c ret = ocfs2_get_refcount_rec(ci, ref_root_bh, ci 1774 fs/ocfs2/refcounttree.c ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, ci 1802 fs/ocfs2/refcounttree.c ret = ocfs2_adjust_refcount_rec(handle, ci, ci 1823 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci, ci 1880 fs/ocfs2/refcounttree.c ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, ci 1891 fs/ocfs2/refcounttree.c ret = ocfs2_get_refcount_rec(ci, ref_root_bh, ci 1905 fs/ocfs2/refcounttree.c ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, ci 1979 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci, ci 1991 fs/ocfs2/refcounttree.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 1995 fs/ocfs2/refcounttree.c ret = ocfs2_get_refcount_rec(ci, ref_root_bh, ci 2020 fs/ocfs2/refcounttree.c ret = ocfs2_change_refcount_rec(handle, ci, ci 2033 fs/ocfs2/refcounttree.c ret = ocfs2_insert_refcount_rec(handle, ci, ref_root_bh, ci 2051 fs/ocfs2/refcounttree.c ret = ocfs2_split_refcount_rec(handle, ci, ci 2073 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci, ci 2080 fs/ocfs2/refcounttree.c struct super_block *sb = ocfs2_metadata_cache_get_super(ci); ci 2088 fs/ocfs2/refcounttree.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 2092 fs/ocfs2/refcounttree.c ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); ci 2100 fs/ocfs2/refcounttree.c ocfs2_remove_from_cache(ci, ref_leaf_bh); ci 2116 fs/ocfs2/refcounttree.c ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, ci 2153 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci, ci 2159 fs/ocfs2/refcounttree.c return __ocfs2_increase_refcount(handle, ci, ref_root_bh, ci 2165 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci, ci 2182 fs/ocfs2/refcounttree.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 2187 fs/ocfs2/refcounttree.c ret = ocfs2_change_refcount_rec(handle, ci, ci 2196 fs/ocfs2/refcounttree.c ret = ocfs2_split_refcount_rec(handle, ci, ci 2209 fs/ocfs2/refcounttree.c ret = ocfs2_remove_refcount_extent(handle, ci, ref_root_bh, ci 2221 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci, ci 2231 fs/ocfs2/refcounttree.c struct super_block *sb = ocfs2_metadata_cache_get_super(ci); ci 2235 fs/ocfs2/refcounttree.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 2239 fs/ocfs2/refcounttree.c ret = ocfs2_get_refcount_rec(ci, ref_root_bh, ci 2255 fs/ocfs2/refcounttree.c ret = ocfs2_decrease_refcount_rec(handle, ci, ref_root_bh, ci 2369 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci, ci 2384 fs/ocfs2/refcounttree.c ret = ocfs2_get_refcount_rec(ci, ref_root_bh, ci 2488 fs/ocfs2/refcounttree.c ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); ci 3005 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci = INODE_CACHE(inode); ci 3024 fs/ocfs2/refcounttree.c ocfs2_set_new_buffer_uptodate(ci, new_bh); ci 3026 fs/ocfs2/refcounttree.c ret = ocfs2_read_block(ci, old_block, &old_bh, NULL); ci 3032 fs/ocfs2/refcounttree.c ret = ocfs2_journal_access(handle, ci, new_bh, ci 3118 fs/ocfs2/refcounttree.c struct ocfs2_caching_info *ci = context->data_et.et_ci; ci 3119 fs/ocfs2/refcounttree.c u64 ino = ocfs2_metadata_cache_owner(ci); ci 101 fs/ocfs2/refcounttree.h struct ocfs2_caching_info *ci, ci 58 fs/ocfs2/uptodate.c u64 ocfs2_metadata_cache_owner(struct ocfs2_caching_info *ci) ci 60 fs/ocfs2/uptodate.c BUG_ON(!ci || !ci->ci_ops); ci 62 fs/ocfs2/uptodate.c return ci->ci_ops->co_owner(ci); ci 65 fs/ocfs2/uptodate.c struct super_block *ocfs2_metadata_cache_get_super(struct ocfs2_caching_info *ci) ci 67 fs/ocfs2/uptodate.c BUG_ON(!ci || !ci->ci_ops); ci 69 fs/ocfs2/uptodate.c return ci->ci_ops->co_get_super(ci); ci 72 fs/ocfs2/uptodate.c static void ocfs2_metadata_cache_lock(struct ocfs2_caching_info *ci) ci 74 fs/ocfs2/uptodate.c BUG_ON(!ci || !ci->ci_ops); ci 76 fs/ocfs2/uptodate.c ci->ci_ops->co_cache_lock(ci); ci 79 fs/ocfs2/uptodate.c static void ocfs2_metadata_cache_unlock(struct ocfs2_caching_info *ci) ci 81 fs/ocfs2/uptodate.c BUG_ON(!ci || !ci->ci_ops); ci 83 fs/ocfs2/uptodate.c ci->ci_ops->co_cache_unlock(ci); ci 86 fs/ocfs2/uptodate.c void ocfs2_metadata_cache_io_lock(struct ocfs2_caching_info *ci) ci 88 fs/ocfs2/uptodate.c BUG_ON(!ci || !ci->ci_ops); ci 90 fs/ocfs2/uptodate.c ci->ci_ops->co_io_lock(ci); ci 93 fs/ocfs2/uptodate.c void ocfs2_metadata_cache_io_unlock(struct ocfs2_caching_info *ci) ci 95 fs/ocfs2/uptodate.c BUG_ON(!ci || !ci->ci_ops); ci 97 fs/ocfs2/uptodate.c ci->ci_ops->co_io_unlock(ci); ci 101 fs/ocfs2/uptodate.c static void ocfs2_metadata_cache_reset(struct ocfs2_caching_info *ci, ci 104 fs/ocfs2/uptodate.c ci->ci_flags |= OCFS2_CACHE_FL_INLINE; ci 105 fs/ocfs2/uptodate.c ci->ci_num_cached = 0; ci 108 fs/ocfs2/uptodate.c ci->ci_created_trans = 0; ci 109 fs/ocfs2/uptodate.c ci->ci_last_trans = 0; ci 113 fs/ocfs2/uptodate.c void ocfs2_metadata_cache_init(struct ocfs2_caching_info *ci, ci 118 fs/ocfs2/uptodate.c ci->ci_ops = ops; ci 119 fs/ocfs2/uptodate.c ocfs2_metadata_cache_reset(ci, 1); ci 122 fs/ocfs2/uptodate.c void ocfs2_metadata_cache_exit(struct ocfs2_caching_info *ci) ci 124 fs/ocfs2/uptodate.c ocfs2_metadata_cache_purge(ci); ci 125 fs/ocfs2/uptodate.c ocfs2_metadata_cache_reset(ci, 1); ci 157 fs/ocfs2/uptodate.c void ocfs2_metadata_cache_purge(struct ocfs2_caching_info *ci) ci 162 fs/ocfs2/uptodate.c BUG_ON(!ci || !ci->ci_ops); ci 164 fs/ocfs2/uptodate.c ocfs2_metadata_cache_lock(ci); ci 165 fs/ocfs2/uptodate.c tree = !(ci->ci_flags & OCFS2_CACHE_FL_INLINE); ci 166 fs/ocfs2/uptodate.c to_purge = ci->ci_num_cached; ci 169 fs/ocfs2/uptodate.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 176 fs/ocfs2/uptodate.c root = ci->ci_cache.ci_tree; ci 178 fs/ocfs2/uptodate.c ocfs2_metadata_cache_reset(ci, 0); ci 179 fs/ocfs2/uptodate.c ocfs2_metadata_cache_unlock(ci); ci 187 fs/ocfs2/uptodate.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 193 fs/ocfs2/uptodate.c static int ocfs2_search_cache_array(struct ocfs2_caching_info *ci, ci 198 fs/ocfs2/uptodate.c for (i = 0; i < ci->ci_num_cached; i++) { ci 199 fs/ocfs2/uptodate.c if (item == ci->ci_cache.ci_array[i]) ci 209 fs/ocfs2/uptodate.c ocfs2_search_cache_tree(struct ocfs2_caching_info *ci, ci 212 fs/ocfs2/uptodate.c struct rb_node * n = ci->ci_cache.ci_tree.rb_node; ci 229 fs/ocfs2/uptodate.c static int ocfs2_buffer_cached(struct ocfs2_caching_info *ci, ci 235 fs/ocfs2/uptodate.c ocfs2_metadata_cache_lock(ci); ci 238 fs/ocfs2/uptodate.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 240 fs/ocfs2/uptodate.c !!(ci->ci_flags & OCFS2_CACHE_FL_INLINE)); ci 242 fs/ocfs2/uptodate.c if (ci->ci_flags & OCFS2_CACHE_FL_INLINE) ci 243 fs/ocfs2/uptodate.c index = ocfs2_search_cache_array(ci, bh->b_blocknr); ci 245 fs/ocfs2/uptodate.c item = ocfs2_search_cache_tree(ci, bh->b_blocknr); ci 247 fs/ocfs2/uptodate.c ocfs2_metadata_cache_unlock(ci); ci 259 fs/ocfs2/uptodate.c int ocfs2_buffer_uptodate(struct ocfs2_caching_info *ci, ci 275 fs/ocfs2/uptodate.c return ocfs2_buffer_cached(ci, bh); ci 282 fs/ocfs2/uptodate.c int ocfs2_buffer_read_ahead(struct ocfs2_caching_info *ci, ci 285 fs/ocfs2/uptodate.c return buffer_locked(bh) && ocfs2_buffer_cached(ci, bh); ci 289 fs/ocfs2/uptodate.c static void ocfs2_append_cache_array(struct ocfs2_caching_info *ci, ci 292 fs/ocfs2/uptodate.c BUG_ON(ci->ci_num_cached >= OCFS2_CACHE_INFO_MAX_ARRAY); ci 295 fs/ocfs2/uptodate.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 296 fs/ocfs2/uptodate.c (unsigned long long)block, ci->ci_num_cached); ci 298 fs/ocfs2/uptodate.c ci->ci_cache.ci_array[ci->ci_num_cached] = block; ci 299 fs/ocfs2/uptodate.c ci->ci_num_cached++; ci 305 fs/ocfs2/uptodate.c static void __ocfs2_insert_cache_tree(struct ocfs2_caching_info *ci, ci 310 fs/ocfs2/uptodate.c struct rb_node **p = &ci->ci_cache.ci_tree.rb_node; ci 314 fs/ocfs2/uptodate.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 315 fs/ocfs2/uptodate.c (unsigned long long)block, ci->ci_num_cached); ci 335 fs/ocfs2/uptodate.c rb_insert_color(&new->c_node, &ci->ci_cache.ci_tree); ci 336 fs/ocfs2/uptodate.c ci->ci_num_cached++; ci 340 fs/ocfs2/uptodate.c static inline int ocfs2_insert_can_use_array(struct ocfs2_caching_info *ci) ci 342 fs/ocfs2/uptodate.c return (ci->ci_flags & OCFS2_CACHE_FL_INLINE) && ci 343 fs/ocfs2/uptodate.c (ci->ci_num_cached < OCFS2_CACHE_INFO_MAX_ARRAY); ci 351 fs/ocfs2/uptodate.c static void ocfs2_expand_cache(struct ocfs2_caching_info *ci, ci 356 fs/ocfs2/uptodate.c mlog_bug_on_msg(ci->ci_num_cached != OCFS2_CACHE_INFO_MAX_ARRAY, ci 358 fs/ocfs2/uptodate.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 359 fs/ocfs2/uptodate.c ci->ci_num_cached, OCFS2_CACHE_INFO_MAX_ARRAY); ci 360 fs/ocfs2/uptodate.c mlog_bug_on_msg(!(ci->ci_flags & OCFS2_CACHE_FL_INLINE), ci 362 fs/ocfs2/uptodate.c (unsigned long long)ocfs2_metadata_cache_owner(ci)); ci 367 fs/ocfs2/uptodate.c tree[i]->c_block = ci->ci_cache.ci_array[i]; ci 369 fs/ocfs2/uptodate.c ci->ci_flags &= ~OCFS2_CACHE_FL_INLINE; ci 370 fs/ocfs2/uptodate.c ci->ci_cache.ci_tree = RB_ROOT; ci 372 fs/ocfs2/uptodate.c ci->ci_num_cached = 0; ci 375 fs/ocfs2/uptodate.c __ocfs2_insert_cache_tree(ci, tree[i]); ci 380 fs/ocfs2/uptodate.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 381 fs/ocfs2/uptodate.c ci->ci_flags, ci->ci_num_cached); ci 386 fs/ocfs2/uptodate.c static void __ocfs2_set_buffer_uptodate(struct ocfs2_caching_info *ci, ci 396 fs/ocfs2/uptodate.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 421 fs/ocfs2/uptodate.c ocfs2_metadata_cache_lock(ci); ci 422 fs/ocfs2/uptodate.c if (ocfs2_insert_can_use_array(ci)) { ci 425 fs/ocfs2/uptodate.c ocfs2_append_cache_array(ci, block); ci 426 fs/ocfs2/uptodate.c ocfs2_metadata_cache_unlock(ci); ci 431 fs/ocfs2/uptodate.c ocfs2_expand_cache(ci, tree); ci 433 fs/ocfs2/uptodate.c __ocfs2_insert_cache_tree(ci, new); ci 434 fs/ocfs2/uptodate.c ocfs2_metadata_cache_unlock(ci); ci 469 fs/ocfs2/uptodate.c void ocfs2_set_buffer_uptodate(struct ocfs2_caching_info *ci, ci 476 fs/ocfs2/uptodate.c if (ocfs2_buffer_cached(ci, bh)) ci 480 fs/ocfs2/uptodate.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 485 fs/ocfs2/uptodate.c ocfs2_metadata_cache_lock(ci); ci 486 fs/ocfs2/uptodate.c if (ocfs2_insert_can_use_array(ci)) { ci 489 fs/ocfs2/uptodate.c ocfs2_append_cache_array(ci, bh->b_blocknr); ci 490 fs/ocfs2/uptodate.c ocfs2_metadata_cache_unlock(ci); ci 495 fs/ocfs2/uptodate.c if (ci->ci_flags & OCFS2_CACHE_FL_INLINE) { ci 499 fs/ocfs2/uptodate.c ocfs2_metadata_cache_unlock(ci); ci 501 fs/ocfs2/uptodate.c __ocfs2_set_buffer_uptodate(ci, bh->b_blocknr, expand); ci 507 fs/ocfs2/uptodate.c void ocfs2_set_new_buffer_uptodate(struct ocfs2_caching_info *ci, ci 511 fs/ocfs2/uptodate.c BUG_ON(ocfs2_buffer_cached(ci, bh)); ci 515 fs/ocfs2/uptodate.c ocfs2_metadata_cache_io_lock(ci); ci 516 fs/ocfs2/uptodate.c ocfs2_set_buffer_uptodate(ci, bh); ci 517 fs/ocfs2/uptodate.c ocfs2_metadata_cache_io_unlock(ci); ci 521 fs/ocfs2/uptodate.c static void ocfs2_remove_metadata_array(struct ocfs2_caching_info *ci, ci 524 fs/ocfs2/uptodate.c sector_t *array = ci->ci_cache.ci_array; ci 528 fs/ocfs2/uptodate.c BUG_ON(index >= ci->ci_num_cached); ci 529 fs/ocfs2/uptodate.c BUG_ON(!ci->ci_num_cached); ci 532 fs/ocfs2/uptodate.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 533 fs/ocfs2/uptodate.c index, ci->ci_num_cached); ci 535 fs/ocfs2/uptodate.c ci->ci_num_cached--; ci 539 fs/ocfs2/uptodate.c if (ci->ci_num_cached && index < ci->ci_num_cached) { ci 540 fs/ocfs2/uptodate.c bytes = sizeof(sector_t) * (ci->ci_num_cached - index); ci 546 fs/ocfs2/uptodate.c static void ocfs2_remove_metadata_tree(struct ocfs2_caching_info *ci, ci 550 fs/ocfs2/uptodate.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 553 fs/ocfs2/uptodate.c rb_erase(&item->c_node, &ci->ci_cache.ci_tree); ci 554 fs/ocfs2/uptodate.c ci->ci_num_cached--; ci 557 fs/ocfs2/uptodate.c static void ocfs2_remove_block_from_cache(struct ocfs2_caching_info *ci, ci 563 fs/ocfs2/uptodate.c ocfs2_metadata_cache_lock(ci); ci 565 fs/ocfs2/uptodate.c (unsigned long long)ocfs2_metadata_cache_owner(ci), ci 566 fs/ocfs2/uptodate.c (unsigned long long) block, ci->ci_num_cached, ci 567 fs/ocfs2/uptodate.c ci->ci_flags); ci 569 fs/ocfs2/uptodate.c if (ci->ci_flags & OCFS2_CACHE_FL_INLINE) { ci 570 fs/ocfs2/uptodate.c index = ocfs2_search_cache_array(ci, block); ci 572 fs/ocfs2/uptodate.c ocfs2_remove_metadata_array(ci, index); ci 574 fs/ocfs2/uptodate.c item = ocfs2_search_cache_tree(ci, block); ci 576 fs/ocfs2/uptodate.c ocfs2_remove_metadata_tree(ci, item); ci 578 fs/ocfs2/uptodate.c ocfs2_metadata_cache_unlock(ci); ci 589 fs/ocfs2/uptodate.c void ocfs2_remove_from_cache(struct ocfs2_caching_info *ci, ci 594 fs/ocfs2/uptodate.c ocfs2_remove_block_from_cache(ci, block); ci 598 fs/ocfs2/uptodate.c void ocfs2_remove_xattr_clusters_from_cache(struct ocfs2_caching_info *ci, ci 602 fs/ocfs2/uptodate.c struct super_block *sb = ocfs2_metadata_cache_get_super(ci); ci 606 fs/ocfs2/uptodate.c ocfs2_remove_block_from_cache(ci, block); ci 25 fs/ocfs2/uptodate.h u64 (*co_owner)(struct ocfs2_caching_info *ci); ci 28 fs/ocfs2/uptodate.h struct super_block *(*co_get_super)(struct ocfs2_caching_info *ci); ci 33 fs/ocfs2/uptodate.h void (*co_cache_lock)(struct ocfs2_caching_info *ci); ci 34 fs/ocfs2/uptodate.h void (*co_cache_unlock)(struct ocfs2_caching_info *ci); ci 40 fs/ocfs2/uptodate.h void (*co_io_lock)(struct ocfs2_caching_info *ci); ci 41 fs/ocfs2/uptodate.h void (*co_io_unlock)(struct ocfs2_caching_info *ci); ci 47 fs/ocfs2/uptodate.h void ocfs2_metadata_cache_init(struct ocfs2_caching_info *ci, ci 49 fs/ocfs2/uptodate.h void ocfs2_metadata_cache_purge(struct ocfs2_caching_info *ci); ci 50 fs/ocfs2/uptodate.h void ocfs2_metadata_cache_exit(struct ocfs2_caching_info *ci); ci 52 fs/ocfs2/uptodate.h u64 ocfs2_metadata_cache_owner(struct ocfs2_caching_info *ci); ci 53 fs/ocfs2/uptodate.h void ocfs2_metadata_cache_io_lock(struct ocfs2_caching_info *ci); ci 54 fs/ocfs2/uptodate.h void ocfs2_metadata_cache_io_unlock(struct ocfs2_caching_info *ci); ci 56 fs/ocfs2/uptodate.h int ocfs2_buffer_uptodate(struct ocfs2_caching_info *ci, ci 58 fs/ocfs2/uptodate.h void ocfs2_set_buffer_uptodate(struct ocfs2_caching_info *ci, ci 60 fs/ocfs2/uptodate.h void ocfs2_set_new_buffer_uptodate(struct ocfs2_caching_info *ci, ci 62 fs/ocfs2/uptodate.h void ocfs2_remove_from_cache(struct ocfs2_caching_info *ci, ci 64 fs/ocfs2/uptodate.h void ocfs2_remove_xattr_clusters_from_cache(struct ocfs2_caching_info *ci, ci 67 fs/ocfs2/uptodate.h int ocfs2_buffer_read_ahead(struct ocfs2_caching_info *ci, ci 913 fs/ubifs/orphan.c struct check_info *ci = priv; ci 918 fs/ubifs/orphan.c if (inum != ci->last_ino) { ci 923 fs/ubifs/orphan.c ci->last_ino = inum; ci 924 fs/ubifs/orphan.c ci->tot_inos += 1; ci 925 fs/ubifs/orphan.c err = ubifs_tnc_read_node(c, zbr, ci->node); ci 930 fs/ubifs/orphan.c if (ci->node->nlink == 0) ci 932 fs/ubifs/orphan.c if (!dbg_find_check_orphan(&ci->root, inum) && ci 936 fs/ubifs/orphan.c ci->missing += 1; ci 939 fs/ubifs/orphan.c ci->leaf_cnt += 1; ci 943 fs/ubifs/orphan.c static int dbg_read_orphans(struct check_info *ci, struct ubifs_scan_leb *sleb) ci 958 fs/ubifs/orphan.c err = dbg_ins_check_orphan(&ci->root, inum); ci 966 fs/ubifs/orphan.c static int dbg_scan_orphans(struct ubifs_info *c, struct check_info *ci) ci 990 fs/ubifs/orphan.c err = dbg_read_orphans(ci, sleb); ci 1002 fs/ubifs/orphan.c struct check_info ci; ci 1008 fs/ubifs/orphan.c ci.last_ino = 0; ci 1009 fs/ubifs/orphan.c ci.tot_inos = 0; ci 1010 fs/ubifs/orphan.c ci.missing = 0; ci 1011 fs/ubifs/orphan.c ci.leaf_cnt = 0; ci 1012 fs/ubifs/orphan.c ci.root = RB_ROOT; ci 1013 fs/ubifs/orphan.c ci.node = kmalloc(UBIFS_MAX_INO_NODE_SZ, GFP_NOFS); ci 1014 fs/ubifs/orphan.c if (!ci.node) { ci 1019 fs/ubifs/orphan.c err = dbg_scan_orphans(c, &ci); ci 1023 fs/ubifs/orphan.c err = dbg_walk_index(c, &dbg_orphan_check, NULL, &ci); ci 1029 fs/ubifs/orphan.c if (ci.missing) { ci 1030 fs/ubifs/orphan.c ubifs_err(c, "%lu missing orphan(s)", ci.missing); ci 1035 fs/ubifs/orphan.c dbg_cmt("last inode number is %lu", ci.last_ino); ci 1036 fs/ubifs/orphan.c dbg_cmt("total number of inodes is %lu", ci.tot_inos); ci 1037 fs/ubifs/orphan.c dbg_cmt("total number of leaf nodes is %llu", ci.leaf_cnt); ci 1040 fs/ubifs/orphan.c dbg_free_check_tree(&ci.root); ci 1041 fs/ubifs/orphan.c kfree(ci.node); ci 2717 fs/xfs/libxfs/xfs_ialloc.c struct xfs_ialloc_count_inodes *ci = priv; ci 2720 fs/xfs/libxfs/xfs_ialloc.c ci->count += irec.ir_count; ci 2721 fs/xfs/libxfs/xfs_ialloc.c ci->freecount += irec.ir_freecount; ci 2733 fs/xfs/libxfs/xfs_ialloc.c struct xfs_ialloc_count_inodes ci = {0}; ci 2737 fs/xfs/libxfs/xfs_ialloc.c error = xfs_btree_query_all(cur, xfs_ialloc_count_inodes_rec, &ci); ci 2741 fs/xfs/libxfs/xfs_ialloc.c *count = ci.count; ci 2742 fs/xfs/libxfs/xfs_ialloc.c *freecount = ci.freecount; ci 74 include/linux/firewire.h void fw_csr_iterator_init(struct fw_csr_iterator *ci, const u32 *p); ci 75 include/linux/firewire.h int fw_csr_iterator_next(struct fw_csr_iterator *ci, int *key, int *value); ci 130 include/linux/mfd/stmpe.h struct stmpe_client_info *ci; ci 148 include/linux/mlx4/cq.h u32 ci; ci 151 include/linux/mlx4/cq.h ci = cq->cons_index & 0xffffff; ci 153 include/linux/mlx4/cq.h *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci); ci 162 include/linux/mlx4/cq.h doorbell[1] = cpu_to_be32(ci); ci 158 include/linux/mlx5/cq.h u32 ci; ci 161 include/linux/mlx5/cq.h ci = cons_index & 0xffffff; ci 163 include/linux/mlx5/cq.h *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci); ci 170 include/linux/mlx5/cq.h doorbell[0] = cpu_to_be32(sn << 28 | cmd | ci); ci 1052 include/linux/rtsx_pci.h #define rtsx_pci_init_cmd(pcr) ((pcr)->ci = 0) ci 1189 include/linux/rtsx_pci.h int ci; ci 29 include/linux/usb/chipidea.h struct ci_hdrc *ci; ci 70 include/linux/usb/chipidea.h int (*notify_event) (struct ci_hdrc *ci, unsigned event); ci 341 mm/swapfile.c struct swap_cluster_info *ci; ci 343 mm/swapfile.c ci = si->cluster_info; ci 344 mm/swapfile.c if (ci) { ci 345 mm/swapfile.c ci += offset / SWAPFILE_CLUSTER; ci 346 mm/swapfile.c spin_lock(&ci->lock); ci 348 mm/swapfile.c return ci; ci 351 mm/swapfile.c static inline void unlock_cluster(struct swap_cluster_info *ci) ci 353 mm/swapfile.c if (ci) ci 354 mm/swapfile.c spin_unlock(&ci->lock); ci 364 mm/swapfile.c struct swap_cluster_info *ci; ci 367 mm/swapfile.c ci = lock_cluster(si, offset); ci 369 mm/swapfile.c if (!ci) ci 372 mm/swapfile.c return ci; ci 376 mm/swapfile.c struct swap_cluster_info *ci) ci 378 mm/swapfile.c if (ci) ci 379 mm/swapfile.c unlock_cluster(ci); ci 401 mm/swapfile.c struct swap_cluster_info *ci, ci 415 mm/swapfile.c ci_tail = ci + tail; ci 424 mm/swapfile.c struct swap_cluster_info *ci) ci 434 mm/swapfile.c cluster_next(&ci[idx]), 0); ci 459 mm/swapfile.c struct swap_cluster_info *ci = si->cluster_info; ci 461 mm/swapfile.c cluster_set_flag(ci + idx, CLUSTER_FLAG_FREE); ci 462 mm/swapfile.c cluster_list_add_tail(&si->free_clusters, ci, idx); ci 471 mm/swapfile.c struct swap_cluster_info *info, *ci; ci 484 mm/swapfile.c ci = lock_cluster(si, idx * SWAPFILE_CLUSTER); ci 488 mm/swapfile.c unlock_cluster(ci); ci 505 mm/swapfile.c struct swap_cluster_info *ci = si->cluster_info; ci 508 mm/swapfile.c cluster_list_del_first(&si->free_clusters, ci); ci 509 mm/swapfile.c cluster_set_count_flag(ci + idx, 0, 0); ci 514 mm/swapfile.c struct swap_cluster_info *ci = si->cluster_info + idx; ci 516 mm/swapfile.c VM_BUG_ON(cluster_count(ci) != 0); ci 603 mm/swapfile.c struct swap_cluster_info *ci; ci 639 mm/swapfile.c ci = lock_cluster(si, tmp); ci 647 mm/swapfile.c unlock_cluster(ci); ci 736 mm/swapfile.c struct swap_cluster_info *ci; ci 825 mm/swapfile.c ci = lock_cluster(si, offset); ci 829 mm/swapfile.c unlock_cluster(ci); ci 840 mm/swapfile.c unlock_cluster(ci); ci 848 mm/swapfile.c unlock_cluster(ci); ci 932 mm/swapfile.c struct swap_cluster_info *ci; ci 950 mm/swapfile.c ci = lock_cluster(si, offset); ci 952 mm/swapfile.c cluster_set_count_flag(ci, SWAPFILE_CLUSTER, CLUSTER_FLAG_HUGE); ci 957 mm/swapfile.c unlock_cluster(ci); ci 967 mm/swapfile.c struct swap_cluster_info *ci; ci 969 mm/swapfile.c ci = lock_cluster(si, offset); ci 971 mm/swapfile.c cluster_set_count_flag(ci, 0, 0); ci 973 mm/swapfile.c unlock_cluster(ci); ci 1280 mm/swapfile.c struct swap_cluster_info *ci; ci 1283 mm/swapfile.c ci = lock_cluster_or_swap_info(p, offset); ci 1285 mm/swapfile.c unlock_cluster_or_swap_info(p, ci); ci 1294 mm/swapfile.c struct swap_cluster_info *ci; ci 1298 mm/swapfile.c ci = lock_cluster(p, offset); ci 1303 mm/swapfile.c unlock_cluster(ci); ci 1329 mm/swapfile.c struct swap_cluster_info *ci; ci 1340 mm/swapfile.c ci = lock_cluster_or_swap_info(si, offset); ci 1342 mm/swapfile.c VM_BUG_ON(!cluster_is_huge(ci)); ci 1350 mm/swapfile.c cluster_clear_huge(ci); ci 1352 mm/swapfile.c unlock_cluster_or_swap_info(si, ci); ci 1362 mm/swapfile.c unlock_cluster_or_swap_info(si, ci); ci 1369 mm/swapfile.c unlock_cluster_or_swap_info(si, ci); ci 1376 mm/swapfile.c struct swap_cluster_info *ci; ci 1382 mm/swapfile.c ci = lock_cluster(si, offset); ci 1383 mm/swapfile.c cluster_clear_huge(ci); ci 1384 mm/swapfile.c unlock_cluster(ci); ci 1433 mm/swapfile.c struct swap_cluster_info *ci; ci 1441 mm/swapfile.c ci = lock_cluster_or_swap_info(p, offset); ci 1443 mm/swapfile.c unlock_cluster_or_swap_info(p, ci); ci 1466 mm/swapfile.c struct swap_cluster_info *ci; ci 1468 mm/swapfile.c ci = lock_cluster_or_swap_info(si, offset); ci 1470 mm/swapfile.c unlock_cluster_or_swap_info(si, ci); ci 1500 mm/swapfile.c struct swap_cluster_info *ci; ci 1511 mm/swapfile.c ci = lock_cluster_or_swap_info(p, offset); ci 1534 mm/swapfile.c unlock_cluster_or_swap_info(p, ci); ci 1541 mm/swapfile.c struct swap_cluster_info *ci; ci 1548 mm/swapfile.c ci = lock_cluster_or_swap_info(si, offset); ci 1549 mm/swapfile.c if (!ci || !cluster_is_huge(ci)) { ci 1561 mm/swapfile.c unlock_cluster_or_swap_info(si, ci); ci 1587 mm/swapfile.c struct swap_cluster_info *ci = NULL; ci 1617 mm/swapfile.c ci = lock_cluster(si, offset); ci 1627 mm/swapfile.c unlock_cluster(ci); ci 3194 mm/swapfile.c unsigned long ci, nr_cluster; ci 3211 mm/swapfile.c for (ci = 0; ci < nr_cluster; ci++) ci 3212 mm/swapfile.c spin_lock_init(&((cluster_info + ci)->lock)); ci 3380 mm/swapfile.c struct swap_cluster_info *ci; ci 3391 mm/swapfile.c ci = lock_cluster_or_swap_info(p, offset); ci 3434 mm/swapfile.c unlock_cluster_or_swap_info(p, ci); ci 3524 mm/swapfile.c struct swap_cluster_info *ci; ci 3550 mm/swapfile.c ci = lock_cluster(si, offset); ci 3615 mm/swapfile.c unlock_cluster(ci); ci 616 net/6lowpan/iphc.c struct lowpan_iphc_ctx *ci; ci 661 net/6lowpan/iphc.c ci = lowpan_iphc_ctx_get_by_id(dev, LOWPAN_IPHC_CID_SCI(cid)); ci 662 net/6lowpan/iphc.c if (!ci) { ci 668 net/6lowpan/iphc.c err = lowpan_iphc_uncompress_ctx_addr(skb, dev, ci, &hdr.saddr, ci 689 net/6lowpan/iphc.c ci = lowpan_iphc_ctx_get_by_id(dev, LOWPAN_IPHC_CID_DCI(cid)); ci 690 net/6lowpan/iphc.c if (!ci) { ci 697 net/6lowpan/iphc.c err = lowpan_uncompress_multicast_ctx_daddr(skb, ci, ci 713 net/6lowpan/iphc.c ci = lowpan_iphc_ctx_get_by_id(dev, LOWPAN_IPHC_CID_DCI(cid)); ci 714 net/6lowpan/iphc.c if (!ci) { ci 721 net/6lowpan/iphc.c err = lowpan_iphc_uncompress_ctx_addr(skb, dev, ci, &hdr.daddr, ci 131 net/bluetooth/bnep/bnep.h struct bnep_conninfo __user *ci; ci 142 net/bluetooth/bnep/bnep.h int bnep_get_conninfo(struct bnep_conninfo *ci); ci 674 net/bluetooth/bnep/core.c static void __bnep_copy_ci(struct bnep_conninfo *ci, struct bnep_session *s) ci 678 net/bluetooth/bnep/core.c memset(ci, 0, sizeof(*ci)); ci 679 net/bluetooth/bnep/core.c memcpy(ci->dst, s->eh.h_source, ETH_ALEN); ci 680 net/bluetooth/bnep/core.c strcpy(ci->device, s->dev->name); ci 681 net/bluetooth/bnep/core.c ci->flags = s->flags & valid_flags; ci 682 net/bluetooth/bnep/core.c ci->state = s->state; ci 683 net/bluetooth/bnep/core.c ci->role = s->role; ci 694 net/bluetooth/bnep/core.c struct bnep_conninfo ci; ci 696 net/bluetooth/bnep/core.c __bnep_copy_ci(&ci, s); ci 698 net/bluetooth/bnep/core.c if (copy_to_user(req->ci, &ci, sizeof(ci))) { ci 706 net/bluetooth/bnep/core.c req->ci++; ci 714 net/bluetooth/bnep/core.c int bnep_get_conninfo(struct bnep_conninfo *ci) ci 721 net/bluetooth/bnep/core.c s = __bnep_get_session(ci->dst); ci 723 net/bluetooth/bnep/core.c __bnep_copy_ci(ci, s); ci 57 net/bluetooth/bnep/sock.c struct bnep_conninfo ci; ci 114 net/bluetooth/bnep/sock.c if (copy_from_user(&ci, argp, sizeof(ci))) ci 117 net/bluetooth/bnep/sock.c err = bnep_get_conninfo(&ci); ci 118 net/bluetooth/bnep/sock.c if (!err && copy_to_user(argp, &ci, sizeof(ci))) ci 154 net/bluetooth/bnep/sock.c cl.ci = compat_ptr(uci); ci 58 net/bluetooth/cmtp/cmtp.h struct cmtp_conninfo __user *ci; ci 64 net/bluetooth/cmtp/cmtp.h int cmtp_get_conninfo(struct cmtp_conninfo *ci); ci 76 net/bluetooth/cmtp/core.c static void __cmtp_copy_session(struct cmtp_session *session, struct cmtp_conninfo *ci) ci 79 net/bluetooth/cmtp/core.c memset(ci, 0, sizeof(*ci)); ci 80 net/bluetooth/cmtp/core.c bacpy(&ci->bdaddr, &session->bdaddr); ci 82 net/bluetooth/cmtp/core.c ci->flags = session->flags & valid_flags; ci 83 net/bluetooth/cmtp/core.c ci->state = session->state; ci 85 net/bluetooth/cmtp/core.c ci->num = session->num; ci 457 net/bluetooth/cmtp/core.c struct cmtp_conninfo ci; ci 459 net/bluetooth/cmtp/core.c __cmtp_copy_session(session, &ci); ci 461 net/bluetooth/cmtp/core.c if (copy_to_user(req->ci, &ci, sizeof(ci))) { ci 469 net/bluetooth/cmtp/core.c req->ci++; ci 477 net/bluetooth/cmtp/core.c int cmtp_get_conninfo(struct cmtp_conninfo *ci) ci 484 net/bluetooth/cmtp/core.c session = __cmtp_get_session(&ci->bdaddr); ci 486 net/bluetooth/cmtp/core.c __cmtp_copy_session(session, ci); ci 71 net/bluetooth/cmtp/sock.c struct cmtp_conninfo ci; ci 126 net/bluetooth/cmtp/sock.c if (copy_from_user(&ci, argp, sizeof(ci))) ci 129 net/bluetooth/cmtp/sock.c err = cmtp_get_conninfo(&ci); ci 130 net/bluetooth/cmtp/sock.c if (!err && copy_to_user(argp, &ci, sizeof(ci))) ci 157 net/bluetooth/cmtp/sock.c cl.ci = compat_ptr(uci); ci 1545 net/bluetooth/hci_conn.c struct hci_conn_info *ci; ci 1552 net/bluetooth/hci_conn.c if (!req.conn_num || req.conn_num > (PAGE_SIZE * 2) / sizeof(*ci)) ci 1555 net/bluetooth/hci_conn.c size = sizeof(req) + req.conn_num * sizeof(*ci); ci 1567 net/bluetooth/hci_conn.c ci = cl->conn_info; ci 1571 net/bluetooth/hci_conn.c bacpy(&(ci + n)->bdaddr, &c->dst); ci 1572 net/bluetooth/hci_conn.c (ci + n)->handle = c->handle; ci 1573 net/bluetooth/hci_conn.c (ci + n)->type = c->type; ci 1574 net/bluetooth/hci_conn.c (ci + n)->out = c->out; ci 1575 net/bluetooth/hci_conn.c (ci + n)->state = c->state; ci 1576 net/bluetooth/hci_conn.c (ci + n)->link_mode = get_link_mode(c); ci 1584 net/bluetooth/hci_conn.c size = sizeof(req) + n * sizeof(*ci); ci 1597 net/bluetooth/hci_conn.c struct hci_conn_info ci; ci 1607 net/bluetooth/hci_conn.c bacpy(&ci.bdaddr, &conn->dst); ci 1608 net/bluetooth/hci_conn.c ci.handle = conn->handle; ci 1609 net/bluetooth/hci_conn.c ci.type = conn->type; ci 1610 net/bluetooth/hci_conn.c ci.out = conn->out; ci 1611 net/bluetooth/hci_conn.c ci.state = conn->state; ci 1612 net/bluetooth/hci_conn.c ci.link_mode = get_link_mode(conn); ci 1619 net/bluetooth/hci_conn.c return copy_to_user(ptr, &ci, sizeof(ci)) ? -EFAULT : 0; ci 72 net/bluetooth/hidp/core.c static void hidp_copy_session(struct hidp_session *session, struct hidp_conninfo *ci) ci 75 net/bluetooth/hidp/core.c memset(ci, 0, sizeof(*ci)); ci 76 net/bluetooth/hidp/core.c bacpy(&ci->bdaddr, &session->bdaddr); ci 78 net/bluetooth/hidp/core.c ci->flags = session->flags & valid_flags; ci 79 net/bluetooth/hidp/core.c ci->state = BT_CONNECTED; ci 82 net/bluetooth/hidp/core.c ci->vendor = session->input->id.vendor; ci 83 net/bluetooth/hidp/core.c ci->product = session->input->id.product; ci 84 net/bluetooth/hidp/core.c ci->version = session->input->id.version; ci 86 net/bluetooth/hidp/core.c strlcpy(ci->name, session->input->name, 128); ci 88 net/bluetooth/hidp/core.c strlcpy(ci->name, "HID Boot Device", 128); ci 90 net/bluetooth/hidp/core.c ci->vendor = session->hid->vendor; ci 91 net/bluetooth/hidp/core.c ci->product = session->hid->product; ci 92 net/bluetooth/hidp/core.c ci->version = session->hid->version; ci 93 net/bluetooth/hidp/core.c strlcpy(ci->name, session->hid->name, 128); ci 1427 net/bluetooth/hidp/core.c struct hidp_conninfo ci; ci 1429 net/bluetooth/hidp/core.c hidp_copy_session(session, &ci); ci 1431 net/bluetooth/hidp/core.c if (copy_to_user(req->ci, &ci, sizeof(ci))) { ci 1439 net/bluetooth/hidp/core.c req->ci++; ci 1447 net/bluetooth/hidp/core.c int hidp_get_conninfo(struct hidp_conninfo *ci) ci 1451 net/bluetooth/hidp/core.c session = hidp_session_find(&ci->bdaddr); ci 1453 net/bluetooth/hidp/core.c hidp_copy_session(session, ci); ci 122 net/bluetooth/hidp/hidp.h struct hidp_conninfo __user *ci; ci 128 net/bluetooth/hidp/hidp.h int hidp_get_conninfo(struct hidp_conninfo *ci); ci 54 net/bluetooth/hidp/sock.c struct hidp_conninfo ci; ci 112 net/bluetooth/hidp/sock.c if (copy_from_user(&ci, argp, sizeof(ci))) ci 115 net/bluetooth/hidp/sock.c err = hidp_get_conninfo(&ci); ci 116 net/bluetooth/hidp/sock.c if (!err && copy_to_user(argp, &ci, sizeof(ci))) ci 160 net/bluetooth/hidp/sock.c cl.ci = compat_ptr(uci); ci 634 net/bridge/br_fdb.c struct nda_cacheinfo ci; ci 662 net/bridge/br_fdb.c ci.ndm_used = jiffies_to_clock_t(now - fdb->used); ci 663 net/bridge/br_fdb.c ci.ndm_confirmed = 0; ci 664 net/bridge/br_fdb.c ci.ndm_updated = jiffies_to_clock_t(now - fdb->updated); ci 665 net/bridge/br_fdb.c ci.ndm_refcnt = 0; ci 666 net/bridge/br_fdb.c if (nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) ci 2426 net/core/neighbour.c struct nda_cacheinfo ci; ci 2457 net/core/neighbour.c ci.ndm_used = jiffies_to_clock_t(now - neigh->used); ci 2458 net/core/neighbour.c ci.ndm_confirmed = jiffies_to_clock_t(now - neigh->confirmed); ci 2459 net/core/neighbour.c ci.ndm_updated = jiffies_to_clock_t(now - neigh->updated); ci 2460 net/core/neighbour.c ci.ndm_refcnt = refcount_read(&neigh->refcnt) - 1; ci 2464 net/core/neighbour.c nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) ci 804 net/core/rtnetlink.c struct rta_cacheinfo ci = { ci 810 net/core/rtnetlink.c ci.rta_lastuse = jiffies_delta_to_clock_t(jiffies - dst->lastuse); ci 811 net/core/rtnetlink.c ci.rta_used = dst->__use; ci 812 net/core/rtnetlink.c ci.rta_clntref = atomic_read(&dst->__refcnt); ci 819 net/core/rtnetlink.c ci.rta_expires = (expires > 0) ? clock : -clock; ci 821 net/core/rtnetlink.c return nla_put(skb, RTA_CACHEINFO, sizeof(ci), &ci); ci 892 net/ipv4/devinet.c struct ifa_cacheinfo *ci; ci 894 net/ipv4/devinet.c ci = nla_data(tb[IFA_CACHEINFO]); ci 895 net/ipv4/devinet.c if (!ci->ifa_valid || ci->ifa_prefered > ci->ifa_valid) { ci 899 net/ipv4/devinet.c *pvalid_lft = ci->ifa_valid; ci 900 net/ipv4/devinet.c *pprefered_lft = ci->ifa_prefered; ci 1639 net/ipv4/devinet.c struct ifa_cacheinfo ci; ci 1641 net/ipv4/devinet.c ci.cstamp = cstamp_delta(cstamp); ci 1642 net/ipv4/devinet.c ci.tstamp = cstamp_delta(tstamp); ci 1643 net/ipv4/devinet.c ci.ifa_prefered = preferred; ci 1644 net/ipv4/devinet.c ci.ifa_valid = valid; ci 1646 net/ipv4/devinet.c return nla_put(skb, IFA_CACHEINFO, sizeof(ci), &ci); ci 4787 net/ipv6/addrconf.c struct ifa_cacheinfo *ci; ci 4789 net/ipv6/addrconf.c ci = nla_data(tb[IFA_CACHEINFO]); ci 4790 net/ipv6/addrconf.c cfg.valid_lft = ci->ifa_valid; ci 4791 net/ipv6/addrconf.c cfg.preferred_lft = ci->ifa_prefered; ci 4857 net/ipv6/addrconf.c struct ifa_cacheinfo ci; ci 4859 net/ipv6/addrconf.c ci.cstamp = cstamp_delta(cstamp); ci 4860 net/ipv6/addrconf.c ci.tstamp = cstamp_delta(tstamp); ci 4861 net/ipv6/addrconf.c ci.ifa_prefered = preferred; ci 4862 net/ipv6/addrconf.c ci.ifa_valid = valid; ci 4864 net/ipv6/addrconf.c return nla_put(skb, IFA_CACHEINFO, sizeof(ci), &ci); ci 5555 net/ipv6/addrconf.c struct ifla_cacheinfo ci; ci 5559 net/ipv6/addrconf.c ci.max_reasm_len = IPV6_MAXPLEN; ci 5560 net/ipv6/addrconf.c ci.tstamp = cstamp_delta(idev->tstamp); ci 5561 net/ipv6/addrconf.c ci.reachable_time = jiffies_to_msecs(idev->nd_parms->reachable_time); ci 5562 net/ipv6/addrconf.c ci.retrans_time = jiffies_to_msecs(NEIGH_VAR(idev->nd_parms, RETRANS_TIME)); ci 5563 net/ipv6/addrconf.c if (nla_put(skb, IFLA_INET6_CACHEINFO, sizeof(ci), &ci)) ci 5932 net/ipv6/addrconf.c struct prefix_cacheinfo ci; ci 5954 net/ipv6/addrconf.c ci.preferred_time = ntohl(pinfo->prefered); ci 5955 net/ipv6/addrconf.c ci.valid_time = ntohl(pinfo->valid); ci 5956 net/ipv6/addrconf.c if (nla_put(skb, PREFIX_CACHEINFO, sizeof(ci), &ci)) ci 837 net/rxrpc/key.c struct crypto_skcipher *ci; ci 846 net/rxrpc/key.c ci = crypto_alloc_skcipher("pcbc(des)", 0, CRYPTO_ALG_ASYNC); ci 847 net/rxrpc/key.c if (IS_ERR(ci)) { ci 848 net/rxrpc/key.c _leave(" = %ld", PTR_ERR(ci)); ci 849 net/rxrpc/key.c return PTR_ERR(ci); ci 852 net/rxrpc/key.c if (crypto_skcipher_setkey(ci, prep->data, 8) < 0) ci 855 net/rxrpc/key.c prep->payload.data[0] = ci; ci 54 net/rxrpc/rxkad.c struct crypto_sync_skcipher *ci; ci 63 net/rxrpc/rxkad.c ci = crypto_alloc_sync_skcipher("pcbc(fcrypt)", 0, 0); ci 64 net/rxrpc/rxkad.c if (IS_ERR(ci)) { ci 66 net/rxrpc/rxkad.c ret = PTR_ERR(ci); ci 70 net/rxrpc/rxkad.c if (crypto_sync_skcipher_setkey(ci, token->kad->session_key, ci 90 net/rxrpc/rxkad.c conn->cipher = ci; ci 103 net/sched/act_connmark.c struct tcf_connmark_info *ci; ci 130 net/sched/act_connmark.c ci = to_connmark(*a); ci 136 net/sched/act_connmark.c ci->net = net; ci 137 net/sched/act_connmark.c ci->zone = parm->zone; ci 142 net/sched/act_connmark.c ci = to_connmark(*a); ci 154 net/sched/act_connmark.c spin_lock_bh(&ci->tcf_lock); ci 156 net/sched/act_connmark.c ci->zone = parm->zone; ci 157 net/sched/act_connmark.c spin_unlock_bh(&ci->tcf_lock); ci 173 net/sched/act_connmark.c struct tcf_connmark_info *ci = to_connmark(a); ci 175 net/sched/act_connmark.c .index = ci->tcf_index, ci 176 net/sched/act_connmark.c .refcnt = refcount_read(&ci->tcf_refcnt) - ref, ci 177 net/sched/act_connmark.c .bindcnt = atomic_read(&ci->tcf_bindcnt) - bind, ci 181 net/sched/act_connmark.c spin_lock_bh(&ci->tcf_lock); ci 182 net/sched/act_connmark.c opt.action = ci->tcf_action; ci 183 net/sched/act_connmark.c opt.zone = ci->zone; ci 187 net/sched/act_connmark.c tcf_tm_dump(&t, &ci->tcf_tm); ci 191 net/sched/act_connmark.c spin_unlock_bh(&ci->tcf_lock); ci 196 net/sched/act_connmark.c spin_unlock_bh(&ci->tcf_lock); ci 165 net/sched/act_ctinfo.c struct tcf_ctinfo *ci; ci 234 net/sched/act_ctinfo.c ci = to_ctinfo(*a); ci 258 net/sched/act_ctinfo.c spin_lock_bh(&ci->tcf_lock); ci 260 net/sched/act_ctinfo.c rcu_swap_protected(ci->params, cp_new, ci 261 net/sched/act_ctinfo.c lockdep_is_held(&ci->tcf_lock)); ci 262 net/sched/act_ctinfo.c spin_unlock_bh(&ci->tcf_lock); ci 285 net/sched/act_ctinfo.c struct tcf_ctinfo *ci = to_ctinfo(a); ci 287 net/sched/act_ctinfo.c .index = ci->tcf_index, ci 288 net/sched/act_ctinfo.c .refcnt = refcount_read(&ci->tcf_refcnt) - ref, ci 289 net/sched/act_ctinfo.c .bindcnt = atomic_read(&ci->tcf_bindcnt) - bind, ci 295 net/sched/act_ctinfo.c spin_lock_bh(&ci->tcf_lock); ci 296 net/sched/act_ctinfo.c cp = rcu_dereference_protected(ci->params, ci 297 net/sched/act_ctinfo.c lockdep_is_held(&ci->tcf_lock)); ci 299 net/sched/act_ctinfo.c tcf_tm_dump(&t, &ci->tcf_tm); ci 303 net/sched/act_ctinfo.c opt.action = ci->tcf_action; ci 326 net/sched/act_ctinfo.c ci->stats_dscp_set, TCA_CTINFO_PAD)) ci 330 net/sched/act_ctinfo.c ci->stats_dscp_error, TCA_CTINFO_PAD)) ci 334 net/sched/act_ctinfo.c ci->stats_cpmark_set, TCA_CTINFO_PAD)) ci 337 net/sched/act_ctinfo.c spin_unlock_bh(&ci->tcf_lock); ci 341 net/sched/act_ctinfo.c spin_unlock_bh(&ci->tcf_lock); ci 365 net/sched/act_ctinfo.c struct tcf_ctinfo *ci = to_ctinfo(a); ci 368 net/sched/act_ctinfo.c cp = rcu_dereference_protected(ci->params, 1); ci 864 sound/aoa/codecs/onyx.c struct codec_info *ci = &onyx_codec_info; ci 900 sound/aoa/codecs/onyx.c ci = onyx->codec_info; ci 901 sound/aoa/codecs/onyx.c *ci = onyx_codec_info; ci 902 sound/aoa/codecs/onyx.c ci->transfers++; ci 911 sound/aoa/codecs/onyx.c ci = onyx->codec_info; ci 914 sound/aoa/codecs/onyx.c *ci = onyx_codec_info; ci 915 sound/aoa/codecs/onyx.c ci->transfers[1].formats = 0; ci 920 sound/aoa/codecs/onyx.c ci, onyx)) { ci 98 sound/aoa/soundbus/i2sbus/i2sbus.h struct codec_info *ci, void *data); ci 881 sound/aoa/soundbus/i2sbus/pcm.c struct codec_info *ci, void *data) ci 898 sound/aoa/soundbus/i2sbus/pcm.c if (!ci->transfers || !ci->transfers->formats ci 899 sound/aoa/soundbus/i2sbus/pcm.c || !ci->transfers->rates || !ci->usable) ci 904 sound/aoa/soundbus/i2sbus/pcm.c if (ci->bus_factor != 32 && ci->bus_factor != 64) ci 911 sound/aoa/soundbus/i2sbus/pcm.c if (cii->codec->sysclock_factor != ci->sysclock_factor) { ci 916 sound/aoa/soundbus/i2sbus/pcm.c if (cii->codec->bus_factor != ci->bus_factor) { ci 923 sound/aoa/soundbus/i2sbus/pcm.c tmp = ci->transfers; ci 940 sound/aoa/soundbus/i2sbus/pcm.c cii->codec = ci; ci 956 sound/aoa/soundbus/i2sbus/pcm.c if (!try_module_get(ci->owner)) { ci 1036 sound/aoa/soundbus/i2sbus/pcm.c module_put(ci->owner); ci 164 sound/aoa/soundbus/soundbus.h struct codec_info *ci, void *data); ci 62 tools/lib/subcmd/help.c size_t ci, cj, ei; ci 65 tools/lib/subcmd/help.c ci = cj = ei = 0; ci 66 tools/lib/subcmd/help.c while (ci < cmds->cnt && ei < excludes->cnt) { ci 67 tools/lib/subcmd/help.c cmp = strcmp(cmds->names[ci]->name, excludes->names[ei]->name); ci 69 tools/lib/subcmd/help.c cmds->names[cj++] = cmds->names[ci++]; ci 71 tools/lib/subcmd/help.c ci++, ei++; ci 76 tools/lib/subcmd/help.c while (ci < cmds->cnt) ci 77 tools/lib/subcmd/help.c cmds->names[cj++] = cmds->names[ci++];