Home
last modified time | relevance | path

Searched refs:csd (Results 1 – 25 of 37) sorted by relevance

12

/Linux-v5.4/kernel/
Dsmp.c32 call_single_data_t __percpu *csd; member
55 cfd->csd = alloc_percpu(call_single_data_t); in smpcfd_prepare_cpu()
56 if (!cfd->csd) { in smpcfd_prepare_cpu()
71 free_percpu(cfd->csd); in smpcfd_dead_cpu()
107 static __always_inline void csd_lock_wait(call_single_data_t *csd) in csd_lock_wait() argument
109 smp_cond_load_acquire(&csd->flags, !(VAL & CSD_FLAG_LOCK)); in csd_lock_wait()
112 static __always_inline void csd_lock(call_single_data_t *csd) in csd_lock() argument
114 csd_lock_wait(csd); in csd_lock()
115 csd->flags |= CSD_FLAG_LOCK; in csd_lock()
125 static __always_inline void csd_unlock(call_single_data_t *csd) in csd_unlock() argument
[all …]
Dup.c27 int smp_call_function_single_async(int cpu, call_single_data_t *csd) in smp_call_function_single_async() argument
32 csd->func(csd->info); in smp_call_function_single_async()
/Linux-v5.4/drivers/mmc/core/
Dsd.c101 struct mmc_csd *csd = &card->csd; in mmc_decode_csd() local
111 csd->taac_ns = (taac_exp[e] * taac_mant[m] + 9) / 10; in mmc_decode_csd()
112 csd->taac_clks = UNSTUFF_BITS(resp, 104, 8) * 100; in mmc_decode_csd()
116 csd->max_dtr = tran_exp[e] * tran_mant[m]; in mmc_decode_csd()
117 csd->cmdclass = UNSTUFF_BITS(resp, 84, 12); in mmc_decode_csd()
121 csd->capacity = (1 + m) << (e + 2); in mmc_decode_csd()
123 csd->read_blkbits = UNSTUFF_BITS(resp, 80, 4); in mmc_decode_csd()
124 csd->read_partial = UNSTUFF_BITS(resp, 79, 1); in mmc_decode_csd()
125 csd->write_misalign = UNSTUFF_BITS(resp, 78, 1); in mmc_decode_csd()
126 csd->read_misalign = UNSTUFF_BITS(resp, 77, 1); in mmc_decode_csd()
[all …]
Dmmc.c76 switch (card->csd.mmca_vsn) { in mmc_decode_cid()
113 mmc_hostname(card->host), card->csd.mmca_vsn); in mmc_decode_cid()
125 card->erase_size = card->csd.erase_size; in mmc_set_erase_size()
135 struct mmc_csd *csd = &card->csd; in mmc_decode_csd() local
144 csd->structure = UNSTUFF_BITS(resp, 126, 2); in mmc_decode_csd()
145 if (csd->structure == 0) { in mmc_decode_csd()
147 mmc_hostname(card->host), csd->structure); in mmc_decode_csd()
151 csd->mmca_vsn = UNSTUFF_BITS(resp, 122, 4); in mmc_decode_csd()
154 csd->taac_ns = (taac_exp[e] * taac_mant[m] + 9) / 10; in mmc_decode_csd()
155 csd->taac_clks = UNSTUFF_BITS(resp, 104, 8) * 100; in mmc_decode_csd()
[all …]
Dmmc_ops.c297 static int mmc_spi_send_csd(struct mmc_card *card, u32 *csd) in mmc_spi_send_csd() argument
311 csd[i] = be32_to_cpu(csd_tmp[i]); in mmc_spi_send_csd()
318 int mmc_send_csd(struct mmc_card *card, u32 *csd) in mmc_send_csd() argument
321 return mmc_spi_send_csd(card, csd); in mmc_send_csd()
323 return mmc_send_cxd_native(card->host, card->rca << 16, csd, in mmc_send_csd()
893 return (card && card->csd.mmca_vsn > CSD_SPEC_VER_3); in mmc_can_ext_csd()
Dcore.c688 mult <<= card->csd.r2w_factor; in mmc_set_data_timeout()
690 data->timeout_ns = card->csd.taac_ns * mult; in mmc_set_data_timeout()
691 data->timeout_clks = card->csd.taac_clks * mult; in mmc_set_data_timeout()
1531 sz = (card->csd.capacity << (card->csd.read_blkbits - 9)) >> 11; in mmc_init_erase()
1567 unsigned int mult = (10 << card->csd.r2w_factor); in mmc_mmc_erase_timeout()
1568 unsigned int timeout_clks = card->csd.taac_clks * mult; in mmc_mmc_erase_timeout()
1572 if (card->csd.taac_ns < 1000000) in mmc_mmc_erase_timeout()
1573 timeout_us = (card->csd.taac_ns * mult) / 1000; in mmc_mmc_erase_timeout()
1575 timeout_us = (card->csd.taac_ns / 1000) * mult; in mmc_mmc_erase_timeout()
1866 !(card->csd.cmdclass & CCC_ERASE)) in mmc_erase()
[all …]
Dmmc_ops.h22 int mmc_send_csd(struct mmc_card *card, u32 *csd);
/Linux-v5.4/arch/s390/kernel/
Dperf_cpum_cf_diag.c443 static int cf_diag_diffctr(struct cf_diag_csd *csd, unsigned long auth) in cf_diag_diffctr() argument
451 ctrstart = (struct cf_ctrset_entry *)(csd->start + offset); in cf_diag_diffctr()
452 ctrstop = (struct cf_ctrset_entry *)(csd->data + offset); in cf_diag_diffctr()
473 trailer_start = (struct cf_trailer_entry *)(csd->start + offset); in cf_diag_diffctr()
474 trailer_stop = (struct cf_trailer_entry *)(csd->data + offset); in cf_diag_diffctr()
488 struct cf_diag_csd *csd) in cf_diag_push_sample() argument
503 raw.frag.size = csd->used; in cf_diag_push_sample()
504 raw.frag.data = csd->data; in cf_diag_push_sample()
505 raw.size = csd->used; in cf_diag_push_sample()
524 struct cf_diag_csd *csd = this_cpu_ptr(&cf_diag_csd); in cf_diag_start() local
[all …]
/Linux-v5.4/drivers/bus/
Dqcom-ebi2.c232 const struct cs_data *csd; in qcom_ebi2_setup_chipselect() local
238 csd = &cs_info[csindex]; in qcom_ebi2_setup_chipselect()
240 val |= csd->enable_mask; in qcom_ebi2_setup_chipselect()
287 writel(slowcfg, ebi2_xmem + csd->slow_cfg); in qcom_ebi2_setup_chipselect()
289 writel(fastcfg, ebi2_xmem + csd->fast_cfg); in qcom_ebi2_setup_chipselect()
/Linux-v5.4/drivers/cpuidle/
Dcoupled.c333 call_single_data_t *csd = &per_cpu(cpuidle_coupled_poke_cb, cpu); in cpuidle_coupled_poke() local
336 smp_call_function_single_async(cpu, csd); in cpuidle_coupled_poke()
645 call_single_data_t *csd; in cpuidle_coupled_register_device() local
675 csd = &per_cpu(cpuidle_coupled_poke_cb, dev->cpu); in cpuidle_coupled_register_device()
676 csd->func = cpuidle_coupled_handle_poke; in cpuidle_coupled_register_device()
677 csd->info = (void *)(unsigned long)dev->cpu; in cpuidle_coupled_register_device()
/Linux-v5.4/drivers/media/platform/qcom/camss/
Dcamss.c428 struct camss_async_subdev *csd) in camss_of_parse_endpoint_node() argument
430 struct csiphy_lanes_cfg *lncfg = &csd->interface.csi2.lane_cfg; in camss_of_parse_endpoint_node()
437 csd->interface.csiphy_id = vep.base.port; in camss_of_parse_endpoint_node()
473 struct camss_async_subdev *csd; in camss_of_parse_ports() local
488 sizeof(*csd)); in camss_of_parse_ports()
495 csd = container_of(asd, struct camss_async_subdev, asd); in camss_of_parse_ports()
497 ret = camss_of_parse_endpoint_node(dev, node, csd); in camss_of_parse_ports()
742 struct camss_async_subdev *csd = in camss_subdev_notifier_bound() local
744 u8 id = csd->interface.csiphy_id; in camss_subdev_notifier_bound()
747 csiphy->cfg.csi2 = &csd->interface.csi2; in camss_subdev_notifier_bound()
/Linux-v5.4/drivers/input/keyboard/
Dqt1050.c102 unsigned int csd; member
129 .csd = QT1050_CSD_0,
134 .csd = QT1050_CSD_1,
139 .csd = QT1050_CSD_2,
144 .csd = QT1050_CSD_3,
149 .csd = QT1050_CSD_4,
330 err = regmap_write(map, key_regs->csd, button->charge_delay); in qt1050_apply_fw_data()
/Linux-v5.4/arch/mips/kernel/
Dsmp.c705 call_single_data_t *csd; in tick_broadcast() local
710 csd = &per_cpu(tick_broadcast_csd, cpu); in tick_broadcast()
713 smp_call_function_single_async(cpu, csd); in tick_broadcast()
726 call_single_data_t *csd; in tick_broadcast_init() local
730 csd = &per_cpu(tick_broadcast_csd, cpu); in tick_broadcast_init()
731 csd->func = tick_broadcast_callee; in tick_broadcast_init()
Dprocess.c695 call_single_data_t *csd; in raise_backtrace() local
711 csd = &per_cpu(backtrace_csd, cpu); in raise_backtrace()
712 csd->func = handle_backtrace; in raise_backtrace()
713 smp_call_function_single_async(cpu, csd); in raise_backtrace()
/Linux-v5.4/arch/s390/pci/
Dpci_irq.c146 call_single_data_t csd; member
182 cpu_data->csd.func = zpci_handle_remote_irq; in zpci_handle_fallback_irq()
183 cpu_data->csd.info = &cpu_data->scheduled; in zpci_handle_fallback_irq()
184 cpu_data->csd.flags = 0; in zpci_handle_fallback_irq()
185 smp_call_function_single_async(cpu, &cpu_data->csd); in zpci_handle_fallback_irq()
/Linux-v5.4/arch/x86/kernel/
Dcpuid.c77 call_single_data_t csd = { in cpuid_read() local
85 err = smp_call_function_single_async(cpu, &csd); in cpuid_read()
/Linux-v5.4/kernel/debug/
Ddebug_core.c247 call_single_data_t *csd; in kgdb_roundup_cpus() local
257 csd = &per_cpu(kgdb_roundup_csd, cpu); in kgdb_roundup_cpus()
271 csd->func = kgdb_call_nmi_hook; in kgdb_roundup_cpus()
272 ret = smp_call_function_single_async(cpu, csd); in kgdb_roundup_cpus()
/Linux-v5.4/tools/testing/selftests/net/
Dnettest.c1168 int lsd, csd = -1; in do_server() local
1222 csd = accept(lsd, (void *) addr, &alen); in do_server()
1223 if (csd < 0) { in do_server()
1228 rc = show_sockstat(csd, args); in do_server()
1232 rc = check_device(csd, args); in do_server()
1237 rc = msg_loop(0, csd, (void *) addr, alen, args); in do_server()
1238 close(csd); in do_server()
/Linux-v5.4/arch/x86/lib/
Dmsr-smp.c172 call_single_data_t csd = { in rdmsr_safe_on_cpu() local
182 err = smp_call_function_single_async(cpu, &csd); in rdmsr_safe_on_cpu()
/Linux-v5.4/drivers/block/
Dnull_blk.h19 struct __call_single_data csd; member
/Linux-v5.4/block/
Dblk-softirq.c64 call_single_data_t *data = &rq->csd; in raise_blk_irq()
/Linux-v5.4/include/linux/
Dsmp.h60 int smp_call_function_single_async(int cpu, call_single_data_t *csd);
/Linux-v5.4/drivers/net/ethernet/cavium/liquidio/
Docteon_droq.h323 call_single_data_t csd; member
Dlio_core.c729 call_single_data_t *csd = &droq->csd; in liquidio_napi_drv_callback() local
731 csd->func = napi_schedule_wrapper; in liquidio_napi_drv_callback()
732 csd->info = &droq->napi; in liquidio_napi_drv_callback()
733 csd->flags = 0; in liquidio_napi_drv_callback()
735 smp_call_function_single_async(droq->cpu_id, csd); in liquidio_napi_drv_callback()
/Linux-v5.4/include/linux/mmc/
Dcard.h287 struct mmc_csd csd; /* card specific */ member

12