/linux-4.19.296/drivers/memory/tegra/ |
D | mc.c | 75 static int terga_mc_block_dma_common(struct tegra_mc *mc, in terga_mc_block_dma_common() argument 81 spin_lock_irqsave(&mc->lock, flags); in terga_mc_block_dma_common() 83 value = mc_readl(mc, rst->control) | BIT(rst->bit); in terga_mc_block_dma_common() 84 mc_writel(mc, value, rst->control); in terga_mc_block_dma_common() 86 spin_unlock_irqrestore(&mc->lock, flags); in terga_mc_block_dma_common() 91 static bool terga_mc_dma_idling_common(struct tegra_mc *mc, in terga_mc_dma_idling_common() argument 94 return (mc_readl(mc, rst->status) & BIT(rst->bit)) != 0; in terga_mc_dma_idling_common() 97 static int terga_mc_unblock_dma_common(struct tegra_mc *mc, in terga_mc_unblock_dma_common() argument 103 spin_lock_irqsave(&mc->lock, flags); in terga_mc_unblock_dma_common() 105 value = mc_readl(mc, rst->control) & ~BIT(rst->bit); in terga_mc_unblock_dma_common() [all …]
|
D | tegra20.c | 201 static int terga20_mc_hotreset_assert(struct tegra_mc *mc, in terga20_mc_hotreset_assert() argument 207 spin_lock_irqsave(&mc->lock, flags); in terga20_mc_hotreset_assert() 209 value = mc_readl(mc, rst->reset); in terga20_mc_hotreset_assert() 210 mc_writel(mc, value & ~BIT(rst->bit), rst->reset); in terga20_mc_hotreset_assert() 212 spin_unlock_irqrestore(&mc->lock, flags); in terga20_mc_hotreset_assert() 217 static int terga20_mc_hotreset_deassert(struct tegra_mc *mc, in terga20_mc_hotreset_deassert() argument 223 spin_lock_irqsave(&mc->lock, flags); in terga20_mc_hotreset_deassert() 225 value = mc_readl(mc, rst->reset); in terga20_mc_hotreset_deassert() 226 mc_writel(mc, value | BIT(rst->bit), rst->reset); in terga20_mc_hotreset_deassert() 228 spin_unlock_irqrestore(&mc->lock, flags); in terga20_mc_hotreset_deassert() [all …]
|
D | Makefile | 2 tegra-mc-y := mc.o 4 tegra-mc-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20.o 5 tegra-mc-$(CONFIG_ARCH_TEGRA_3x_SOC) += tegra30.o 6 tegra-mc-$(CONFIG_ARCH_TEGRA_114_SOC) += tegra114.o 7 tegra-mc-$(CONFIG_ARCH_TEGRA_124_SOC) += tegra124.o 8 tegra-mc-$(CONFIG_ARCH_TEGRA_132_SOC) += tegra124.o 9 tegra-mc-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210.o 11 obj-$(CONFIG_TEGRA_MC) += tegra-mc.o
|
D | mc.h | 27 static inline u32 mc_readl(struct tegra_mc *mc, unsigned long offset) in mc_readl() argument 29 if (mc->regs2 && offset >= 0x24) in mc_readl() 30 return readl(mc->regs2 + offset - 0x3c); in mc_readl() 32 return readl(mc->regs + offset); in mc_readl() 35 static inline void mc_writel(struct tegra_mc *mc, u32 value, in mc_writel() argument 38 if (mc->regs2 && offset >= 0x24) in mc_writel() 39 return writel(value, mc->regs2 + offset - 0x3c); in mc_writel() 41 writel(value, mc->regs + offset); in mc_writel()
|
D | tegra186.c | 541 struct tegra_mc *mc; in tegra186_mc_probe() local 545 mc = devm_kzalloc(&pdev->dev, sizeof(*mc), GFP_KERNEL); in tegra186_mc_probe() 546 if (!mc) in tegra186_mc_probe() 550 mc->regs = devm_ioremap_resource(&pdev->dev, res); in tegra186_mc_probe() 551 if (IS_ERR(mc->regs)) in tegra186_mc_probe() 552 return PTR_ERR(mc->regs); in tegra186_mc_probe() 554 mc->dev = &pdev->dev; in tegra186_mc_probe() 560 override = readl(mc->regs + client->regs.override); in tegra186_mc_probe() 561 security = readl(mc->regs + client->regs.security); in tegra186_mc_probe() 568 writel(client->sid, mc->regs + client->regs.override); in tegra186_mc_probe() [all …]
|
/linux-4.19.296/drivers/gpio/ |
D | gpio-mc33880.c | 55 static int mc33880_write_config(struct mc33880 *mc) in mc33880_write_config() argument 57 return spi_write(mc->spi, &mc->port_config, sizeof(mc->port_config)); in mc33880_write_config() 61 static int __mc33880_set(struct mc33880 *mc, unsigned offset, int value) in __mc33880_set() argument 64 mc->port_config |= 1 << offset; in __mc33880_set() 66 mc->port_config &= ~(1 << offset); in __mc33880_set() 68 return mc33880_write_config(mc); in __mc33880_set() 74 struct mc33880 *mc = gpiochip_get_data(chip); in mc33880_set() local 76 mutex_lock(&mc->lock); in mc33880_set() 78 __mc33880_set(mc, offset, value); in mc33880_set() 80 mutex_unlock(&mc->lock); in mc33880_set() [all …]
|
/linux-4.19.296/drivers/misc/ |
D | pti.c | 59 struct pti_masterchannel *mc; member 107 static void pti_write_to_aperture(struct pti_masterchannel *mc, in pti_write_to_aperture() argument 122 aperture = drv_data->pti_ioaddr + (mc->master << 15) in pti_write_to_aperture() 123 + (mc->channel << 8); in pti_write_to_aperture() 165 static void pti_control_frame_built_and_sent(struct pti_masterchannel *mc, in pti_control_frame_built_and_sent() argument 195 snprintf(control_frame, CONTROL_FRAME_LEN, control_format, mc->master, in pti_control_frame_built_and_sent() 196 mc->channel, thread_name_p); in pti_control_frame_built_and_sent() 214 static void pti_write_full_frame_to_aperture(struct pti_masterchannel *mc, in pti_write_full_frame_to_aperture() argument 218 pti_control_frame_built_and_sent(mc, NULL); in pti_write_full_frame_to_aperture() 219 pti_write_to_aperture(mc, (u8 *)buf, len); in pti_write_full_frame_to_aperture() [all …]
|
/linux-4.19.296/drivers/clk/mediatek/ |
D | clk-mtk.c | 147 struct clk *mtk_clk_register_composite(const struct mtk_composite *mc, in mtk_clk_register_composite() argument 161 if (mc->mux_shift >= 0) { in mtk_clk_register_composite() 166 mux->reg = base + mc->mux_reg; in mtk_clk_register_composite() 167 mux->mask = BIT(mc->mux_width) - 1; in mtk_clk_register_composite() 168 mux->shift = mc->mux_shift; in mtk_clk_register_composite() 174 parent_names = mc->parent_names; in mtk_clk_register_composite() 175 num_parents = mc->num_parents; in mtk_clk_register_composite() 177 parent = mc->parent; in mtk_clk_register_composite() 182 if (mc->gate_shift >= 0) { in mtk_clk_register_composite() 189 gate->reg = base + mc->gate_reg; in mtk_clk_register_composite() [all …]
|
/linux-4.19.296/drivers/slimbus/ |
D | slimbus.h | 136 u8 mc; member 146 #define DEFINE_SLIM_LDEST_TXN(name, mc, rl, la, msg) \ argument 147 struct slim_msg_txn name = { rl, 0, mc, SLIM_MSG_DEST_LOGICALADDR, 0,\ 150 #define DEFINE_SLIM_BCAST_TXN(name, mc, rl, la, msg) \ argument 151 struct slim_msg_txn name = { rl, 0, mc, SLIM_MSG_DEST_BROADCAST, 0,\ 154 #define DEFINE_SLIM_EDEST_TXN(name, mc, rl, la, msg) \ argument 155 struct slim_msg_txn name = { rl, 0, mc, SLIM_MSG_DEST_ENUMADDR, 0,\ 442 static inline bool slim_tid_txn(u8 mt, u8 mc) in slim_tid_txn() argument 445 (mc == SLIM_MSG_MC_REQUEST_INFORMATION || in slim_tid_txn() 446 mc == SLIM_MSG_MC_REQUEST_CLEAR_INFORMATION || in slim_tid_txn() [all …]
|
D | messaging.c | 122 txn->mc >= SLIM_MSG_MC_BEGIN_RECONFIGURATION && in slim_do_transfer() 123 txn->mc <= SLIM_MSG_MC_RECONFIGURE_NOW)) in slim_do_transfer() 136 need_tid = slim_tid_txn(txn->mt, txn->mc); in slim_do_transfer() 164 txn->mt, txn->mc, txn->la, ret); in slim_do_transfer() 180 struct slim_val_inf *msg, u8 mc) in slim_val_inf_sanity() argument 185 switch (mc) { in slim_val_inf_sanity() 207 msg->start_offset, mc); in slim_val_inf_sanity() 234 u8 mc) in slim_xfer_msg() argument 236 DEFINE_SLIM_LDEST_TXN(txn_stack, mc, 6, sbdev->laddr, msg); in slim_xfer_msg() 245 ret = slim_val_inf_sanity(ctrl, msg, mc); in slim_xfer_msg() [all …]
|
D | stream.c | 129 u8 mc = SLIM_MSG_MC_CONNECT_SOURCE; in slim_connect_port_channel() local 130 DEFINE_SLIM_LDEST_TXN(txn, mc, 6, stream->dev->laddr, &msg); in slim_connect_port_channel() 133 txn.mc = SLIM_MSG_MC_CONNECT_SINK; in slim_connect_port_channel() 149 u8 mc = SLIM_MSG_MC_DISCONNECT_PORT; in slim_disconnect_port() local 150 DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); in slim_disconnect_port() 165 u8 mc = SLIM_MSG_MC_NEXT_DEACTIVATE_CHANNEL; in slim_deactivate_remove_channel() local 166 DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); in slim_deactivate_remove_channel() 174 txn.mc = SLIM_MSG_MC_NEXT_REMOVE_CHANNEL; in slim_deactivate_remove_channel() 269 u8 mc = SLIM_MSG_MC_NEXT_DEFINE_CONTENT; in slim_define_channel_content() local 270 DEFINE_SLIM_LDEST_TXN(txn, mc, 8, stream->dev->laddr, &msg); in slim_define_channel_content() [all …]
|
D | qcom-ngd-ctrl.c | 91 #define SLIM_MSG_ASM_FIRST_WORD(l, mt, mc, dt, ad) \ argument 92 ((l) | ((mt) << 5) | ((mc) << 8) | ((dt) << 15) | ((ad) << 16)) 594 u8 mc, mt, len; in qcom_slim_ngd_rx() local 598 mc = SLIM_HEADER_GET_MC(buf[1]); in qcom_slim_ngd_rx() 600 if (mc == SLIM_USR_MC_MASTER_CAPABILITY && in qcom_slim_ngd_rx() 604 if (mc == SLIM_MSG_MC_REPLY_INFORMATION || in qcom_slim_ngd_rx() 605 mc == SLIM_MSG_MC_REPLY_VALUE || (mc == SLIM_USR_MC_ADDR_REPLY && in qcom_slim_ngd_rx() 607 (mc == SLIM_USR_MC_GENERIC_ACK && in qcom_slim_ngd_rx() 780 if (txn->mc & SLIM_MSG_CLK_PAUSE_SEQ_FLG) in qcom_slim_ngd_xfer_msg() 784 (txn->mc >= SLIM_MSG_MC_BEGIN_RECONFIGURATION && in qcom_slim_ngd_xfer_msg() [all …]
|
D | qcom-ctrl.c | 64 #define SLIM_MSG_ASM_FIRST_WORD(l, mt, mc, dt, ad) \ argument 65 ((l) | ((mt) << 5) | ((mc) << 8) | ((dt) << 15) | ((ad) << 16)) 212 u8 mc, mt, len; in qcom_slim_handle_rx_irq() local 217 mc = SLIM_HEADER_GET_MC(pkt[0]>>8); in qcom_slim_handle_rx_irq() 223 if (mt == SLIM_MSG_MT_CORE && mc == SLIM_MSG_MC_REPORT_PRESENT) { in qcom_slim_handle_rx_irq() 239 switch (mc) { in qcom_slim_handle_rx_irq() 251 mc, mt); in qcom_slim_handle_rx_irq() 357 txn->mc, 0, la); in qcom_xfer_msg() 361 txn->mc, 1, la); in qcom_xfer_msg() 365 if (slim_tid_txn(txn->mt, txn->mc)) in qcom_xfer_msg() [all …]
|
/linux-4.19.296/drivers/bus/fsl-mc/ |
D | Makefile | 7 obj-$(CONFIG_FSL_MC_BUS) += mc-bus-driver.o 9 mc-bus-driver-objs := fsl-mc-bus.o \ 10 mc-sys.o \ 11 mc-io.o \ 16 fsl-mc-allocator.o \ 17 fsl-mc-msi.o \
|
D | fsl-mc-bus.c | 403 struct fsl_mc *mc; in translate_mc_addr() local 406 mc = dev_get_drvdata(root_dprc_dev->parent); in translate_mc_addr() 408 if (mc->num_translation_ranges == 0) { in translate_mc_addr() 416 for (i = 0; i < mc->num_translation_ranges; i++) { in translate_mc_addr() 418 &mc->translation_ranges[i]; in translate_mc_addr() 792 struct fsl_mc *mc; in fsl_mc_bus_probe() local 801 mc = devm_kzalloc(&pdev->dev, sizeof(*mc), GFP_KERNEL); in fsl_mc_bus_probe() 802 if (!mc) in fsl_mc_bus_probe() 805 platform_set_drvdata(pdev, mc); in fsl_mc_bus_probe() 837 &mc->translation_ranges, in fsl_mc_bus_probe() [all …]
|
D | Kconfig | 3 # DPAA2 fsl-mc bus 9 bool "QorIQ DPAA2 fsl-mc bus driver" 14 architecture. The fsl-mc bus driver handles discovery of
|
/linux-4.19.296/include/soc/tegra/ |
D | mc.h | 84 struct tegra_mc *mc); 89 struct tegra_mc *mc) in tegra_smmu_probe() argument 109 int (*hotreset_assert)(struct tegra_mc *mc, 111 int (*hotreset_deassert)(struct tegra_mc *mc, 113 int (*block_dma)(struct tegra_mc *mc, 115 bool (*dma_idling)(struct tegra_mc *mc, 117 int (*unblock_dma)(struct tegra_mc *mc, 119 int (*reset_status)(struct tegra_mc *mc, 162 void tegra_mc_write_emem_configuration(struct tegra_mc *mc, unsigned long rate); 163 unsigned int tegra_mc_get_emem_device_count(struct tegra_mc *mc);
|
/linux-4.19.296/drivers/clk/ |
D | clk-asm9260.c | 298 const struct asm9260_mux_clock *mc = &asm9260_mux_clks[n]; in asm9260_acc_init() local 300 mc->parent_names[0] = ref_clk; in asm9260_acc_init() 301 mc->parent_names[1] = pll_clk; in asm9260_acc_init() 302 hw = clk_hw_register_mux_table(NULL, mc->name, mc->parent_names, in asm9260_acc_init() 303 mc->num_parents, mc->flags, base + mc->offset, in asm9260_acc_init() 304 0, mc->mask, 0, mc->table, &asm9260_clk_lock); in asm9260_acc_init()
|
/linux-4.19.296/drivers/edac/ |
D | i5100_edac.c | 95 static inline u32 i5100_mc_scrben(u32 mc) in i5100_mc_scrben() argument 97 return mc >> 7 & 1; in i5100_mc_scrben() 100 static inline u32 i5100_mc_errdeten(u32 mc) in i5100_mc_errdeten() argument 102 return mc >> 5 & 1; in i5100_mc_errdeten() 105 static inline u32 i5100_mc_scrbdone(u32 mc) in i5100_mc_scrbdone() argument 107 return mc >> 4 & 1; in i5100_mc_scrbdone() 344 struct pci_dev *mc; /* device 16 func 1 */ member 555 pci_read_config_dword(priv->mc, I5100_FERR_NF_MEM, &dw); in i5100_check_error() 558 pci_read_config_dword(priv->mc, I5100_NERR_NF_MEM, &dw2); in i5100_check_error() 564 pci_write_config_dword(priv->mc, I5100_NERR_NF_MEM, dw2); in i5100_check_error() [all …]
|
D | octeon_edac-lmc.c | 229 int mc = pdev->id; in octeon_lmc_edac_probe() local 246 mci = edac_mc_alloc(mc, ARRAY_SIZE(layers), layers, sizeof(struct octeon_lmc_pvt)); in octeon_lmc_edac_probe() 263 cfg0.u64 = cvmx_read_csr(CVMX_LMCX_MEM_CFG0(mc)); in octeon_lmc_edac_probe() 266 cvmx_write_csr(CVMX_LMCX_MEM_CFG0(mc), cfg0.u64); in octeon_lmc_edac_probe() 278 mci = edac_mc_alloc(mc, ARRAY_SIZE(layers), layers, sizeof(struct octeon_lmc_pvt)); in octeon_lmc_edac_probe() 295 en.u64 = cvmx_read_csr(CVMX_LMCX_MEM_CFG0(mc)); in octeon_lmc_edac_probe() 298 cvmx_write_csr(CVMX_LMCX_MEM_CFG0(mc), en.u64); in octeon_lmc_edac_probe()
|
D | skx_edac.c | 79 u8 mc; /* system wide mc# */ member 368 imc->mc, chan, dimmno, size, npages, in get_dimm_info() 428 imc->mc, chan, dimmno, size >> 20, dimm->nr_pages); in get_nvdimm_info() 472 skx_printk(KERN_ERR, "ECC is disabled on imc %d\n", imc->mc); in skx_get_dimm_config() 487 edac_dbg(0, "MC%d: mci = %p\n", imc->mc, mci); in skx_unregister_mci() 512 mci = edac_mc_alloc(imc->mc, ARRAY_SIZE(layers), layers, in skx_register_mci() 518 edac_dbg(0, "MC#%d: mci = %p\n", imc->mc, mci); in skx_register_mci() 692 #define SKX_GET_TADBASE(d, mc, i, reg) \ argument 693 pci_read_config_dword((d)->imc[mc].chan[0].cdev, 0x850 + 4 * (i), ®) 694 #define SKX_GET_TADWAYNESS(d, mc, i, reg) \ argument [all …]
|
D | sb_edac.c | 356 u8 bus, mc; member 580 #define knl_channel_remap(mc, chan) ((mc) ? (chan) : (chan) + 3) argument 1117 const int mc, in knl_get_tad() argument 1126 switch (mc) { in knl_get_tad() 1221 int mc, chan; in knl_get_mc_route() local 1225 mc = GET_BITFIELD(reg, entry*3, (entry*3)+2); in knl_get_mc_route() 1228 return knl_channel_remap(mc, chan); in knl_get_mc_route() 1326 int mc; in knl_get_dimm_capacity() local 1447 for (mc = 0; mc < 2; mc++) { in knl_get_dimm_capacity() 1448 sad_actual_size[mc] = 0; in knl_get_dimm_capacity() [all …]
|
/linux-4.19.296/include/linux/ |
D | intel-pti.h | 38 void pti_writedata(struct pti_masterchannel *mc, u8 *buf, int count); 41 void pti_release_masterchannel(struct pti_masterchannel *mc);
|
/linux-4.19.296/drivers/base/ |
D | component.c | 171 struct component_match_array *mc = &match->compare[i]; in find_components() local 179 c = find_component(master, mc->compare, mc->data); in find_components() 278 struct component_match_array *mc = &match->compare[i]; in component_match_release() local 280 if (mc->release) in component_match_release() 281 mc->release(master, mc->data); in component_match_release()
|
/linux-4.19.296/drivers/s390/char/ |
D | tape_3590.h | 87 unsigned int mc:8; member 151 __u8 mc; member
|