/linux-4.4.14/drivers/mfd/ |
D | mcp-core.c | 23 #define to_mcp(d) container_of(d, struct mcp, attached_device) 33 struct mcp *mcp = to_mcp(dev); in mcp_bus_probe() local 36 return drv->probe(mcp); in mcp_bus_probe() 41 struct mcp *mcp = to_mcp(dev); in mcp_bus_remove() local 44 drv->remove(mcp); in mcp_bus_remove() 63 void mcp_set_telecom_divisor(struct mcp *mcp, unsigned int div) in mcp_set_telecom_divisor() argument 67 spin_lock_irqsave(&mcp->lock, flags); in mcp_set_telecom_divisor() 68 mcp->ops->set_telecom_divisor(mcp, div); in mcp_set_telecom_divisor() 69 spin_unlock_irqrestore(&mcp->lock, flags); in mcp_set_telecom_divisor() 80 void mcp_set_audio_divisor(struct mcp *mcp, unsigned int div) in mcp_set_audio_divisor() argument [all …]
|
D | mcp-sa11x0.c | 45 #define priv(mcp) ((struct mcp_sa11x0 *)mcp_priv(mcp)) argument 48 mcp_sa11x0_set_telecom_divisor(struct mcp *mcp, unsigned int divisor) in mcp_sa11x0_set_telecom_divisor() argument 50 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_set_telecom_divisor() 60 mcp_sa11x0_set_audio_divisor(struct mcp *mcp, unsigned int divisor) in mcp_sa11x0_set_audio_divisor() argument 62 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_set_audio_divisor() 78 mcp_sa11x0_write(struct mcp *mcp, unsigned int reg, unsigned int val) in mcp_sa11x0_write() argument 80 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_write() 87 udelay(mcp->rw_timeout); in mcp_sa11x0_write() 105 mcp_sa11x0_read(struct mcp *mcp, unsigned int reg) in mcp_sa11x0_read() argument 107 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_read() [all …]
|
D | ucb1x00-core.c | 368 struct ucb1x00_plat_data *pdata = ucb->mcp->attached_device.platform_data; in ucb1x00_irq_set_wake() 499 static int ucb1x00_probe(struct mcp *mcp) in ucb1x00_probe() argument 501 struct ucb1x00_plat_data *pdata = mcp->attached_device.platform_data; in ucb1x00_probe() 511 mcp_enable(mcp); in ucb1x00_probe() 512 id = mcp_reg_read(mcp, UCB_ID); in ucb1x00_probe() 513 mcp_disable(mcp); in ucb1x00_probe() 527 ucb->dev.parent = &mcp->attached_device; in ucb1x00_probe() 535 ucb->mcp = mcp; in ucb1x00_probe() 588 mcp_set_drvdata(mcp, ucb); in ucb1x00_probe() 618 static void ucb1x00_remove(struct mcp *mcp) in ucb1x00_remove() argument [all …]
|
D | Makefile | 92 obj-$(CONFIG_MCP) += mcp-core.o 93 obj-$(CONFIG_MCP_SA11X0) += mcp-sa11x0.o
|
/linux-4.4.14/drivers/gpio/ |
D | gpio-mcp23s08.c | 60 int (*read)(struct mcp23s08 *mcp, unsigned reg); 61 int (*write)(struct mcp23s08 *mcp, unsigned reg, unsigned val); 62 int (*read_regs)(struct mcp23s08 *mcp, unsigned reg, 93 struct mcp23s08 *mcp[8]; member 106 static int mcp23008_read(struct mcp23s08 *mcp, unsigned reg) in mcp23008_read() argument 108 return i2c_smbus_read_byte_data(mcp->data, reg); in mcp23008_read() 111 static int mcp23008_write(struct mcp23s08 *mcp, unsigned reg, unsigned val) in mcp23008_write() argument 113 return i2c_smbus_write_byte_data(mcp->data, reg, val); in mcp23008_write() 117 mcp23008_read_regs(struct mcp23s08 *mcp, unsigned reg, u16 *vals, unsigned n) in mcp23008_read_regs() argument 120 int ret = mcp23008_read(mcp, reg++); in mcp23008_read_regs() [all …]
|
/linux-4.4.14/drivers/scsi/qla2xxx/ |
D | qla_mbx.c | 34 qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp) in qla2x00_mailbox_command() argument 82 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command() 93 if (!wait_for_completion_timeout(&ha->mbx_cmd_comp, mcp->tov * HZ)) { in qla2x00_mailbox_command() 97 mcp->mb[0]); in qla2x00_mailbox_command() 103 ha->mcp = mcp; in qla2x00_mailbox_command() 106 "Prepare to issue mbox cmd=0x%x.\n", mcp->mb[0]); in qla2x00_mailbox_command() 118 iptr = mcp->mb; in qla2x00_mailbox_command() 119 command = mcp->mb[0]; in qla2x00_mailbox_command() 120 mboxes = mcp->out_mb; in qla2x00_mailbox_command() 175 mcp->tov * HZ)) { in qla2x00_mailbox_command() [all …]
|
D | qla_mr.c | 38 qlafx00_mailbox_command(scsi_qla_host_t *vha, struct mbx_cmd_32 *mcp) in qlafx00_mailbox_command() argument 82 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qlafx00_mailbox_command() 94 if (!wait_for_completion_timeout(&ha->mbx_cmd_comp, mcp->tov * HZ)) { in qlafx00_mailbox_command() 98 mcp->mb[0]); in qlafx00_mailbox_command() 104 ha->mcp32 = mcp; in qlafx00_mailbox_command() 107 "Prepare to issue mbox cmd=0x%x.\n", mcp->mb[0]); in qlafx00_mailbox_command() 114 iptr = mcp->mb; in qlafx00_mailbox_command() 115 command = mcp->mb[0]; in qlafx00_mailbox_command() 116 mboxes = mcp->out_mb; in qlafx00_mailbox_command() 132 (uint8_t *)mcp->mb, 16); in qlafx00_mailbox_command() [all …]
|
D | qla_isr.c | 272 if (!ha->mcp) in qla2x00_mbx_completion() 275 mboxes = ha->mcp->in_mb; in qla2x00_mbx_completion() 2495 if (!ha->mcp) in qla24xx_mbx_completion() 2498 mboxes = ha->mcp->in_mb; in qla24xx_mbx_completion()
|
D | qla_def.h | 3247 mbx_cmd_t *mcp; member
|
D | qla_nx.c | 2001 if (!ha->mcp) in qla82xx_mbx_completion()
|
/linux-4.4.14/include/linux/mfd/ |
D | mcp.h | 17 struct mcp { struct 28 void (*set_telecom_divisor)(struct mcp *, unsigned int); argument 29 void (*set_audio_divisor)(struct mcp *, unsigned int); 30 void (*reg_write)(struct mcp *, unsigned int, unsigned int); 31 unsigned int (*reg_read)(struct mcp *, unsigned int); 32 void (*enable)(struct mcp *); 33 void (*disable)(struct mcp *); 36 void mcp_set_telecom_divisor(struct mcp *, unsigned int); 37 void mcp_set_audio_divisor(struct mcp *, unsigned int); 38 void mcp_reg_write(struct mcp *, unsigned int, unsigned int); [all …]
|
D | ucb1x00.h | 125 struct mcp *mcp; member 176 return mcp_get_sclk_rate(ucb->mcp); in ucb1x00_clkrate() 187 mcp_enable(ucb->mcp); in ucb1x00_enable() 200 mcp_disable(ucb->mcp); in ucb1x00_disable() 214 mcp_reg_write(ucb->mcp, reg, val); in ucb1x00_reg_write() 227 return mcp_reg_read(ucb->mcp, reg); in ucb1x00_reg_read() 236 mcp_set_audio_divisor(ucb->mcp, div); in ucb1x00_set_audio_divisor() 246 mcp_set_telecom_divisor(ucb->mcp, div); in ucb1x00_set_telecom_divisor()
|
/linux-4.4.14/Documentation/devicetree/bindings/gpio/ |
D | gpio-mcp23s08.txt | 6 - "mcp,mcp23s08" (DEPRECATED) for 8 GPIO SPI version 7 - "mcp,mcp23s17" (DEPRECATED) for 16 GPIO SPI version 8 - "mcp,mcp23008" (DEPRECATED) for 8 GPIO I2C version or 9 - "mcp,mcp23017" (DEPRECATED) for 16 GPIO I2C version of the chip 15 NOTE: Do not use the old mcp prefix any more. It is deprecated and will be 28 - mcp,spi-present-mask (DEPRECATED) 37 NOTE: Do not use the old mcp prefix any more. It is deprecated and will be
|
/linux-4.4.14/arch/sparc/kernel/ |
D | signal_64.c | 149 mcontext_t __user *mcp; in sparc64_get_context() local 164 mcp = &ucp->uc_mcontext; in sparc64_get_context() 165 grp = &mcp->mc_gregs; in sparc64_get_context() 207 err |= __put_user(fp, &(mcp->mc_fp)); in sparc64_get_context() 208 err |= __put_user(i7, &(mcp->mc_i7)); in sparc64_get_context() 210 err |= __put_user(fenab, &(mcp->mc_fpregs.mcfpu_enab)); in sparc64_get_context() 217 err |= copy_to_user(&(mcp->mc_fpregs.mcfpu_fregs), fpregs, in sparc64_get_context() 221 ((unsigned long __user *)&(mcp->mc_fpregs.mcfpu_fregs))+16, fpregs+16, in sparc64_get_context() 223 err |= __put_user(current_thread_info()->xfsr[0], &(mcp->mc_fpregs.mcfpu_fsr)); in sparc64_get_context() 224 err |= __put_user(current_thread_info()->gsr[0], &(mcp->mc_fpregs.mcfpu_gsr)); in sparc64_get_context() [all …]
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | signal_32.c | 1084 struct mcontext __user *mcp; in do_setcontext() local 1094 mcp = (struct mcontext __user *)(u64)cmcp; in do_setcontext() 1098 if (__get_user(mcp, &ucp->uc_regs)) in do_setcontext() 1100 if (!access_ok(VERIFY_READ, mcp, sizeof(*mcp))) in do_setcontext() 1104 if (restore_user_regs(regs, mcp, sig)) in do_setcontext() 1116 struct mcontext __user *mcp; in do_setcontext_tm() local 1127 mcp = (struct mcontext __user *)(u64)cmcp; in do_setcontext_tm() 1132 if (restore_tm_user_regs(regs, mcp, tm_mcp)) in do_setcontext_tm() 1150 struct mcontext __user *mcp; in sys_swapcontext() local 1160 mcp = (struct mcontext __user *)(u64)cmcp; in sys_swapcontext() [all …]
|
/linux-4.4.14/drivers/net/ |
D | eql.c | 545 static int eql_g_master_cfg(struct net_device *dev, master_config_t __user *mcp) in eql_g_master_cfg() argument 556 if (copy_to_user(mcp, &mc, sizeof (master_config_t))) in eql_g_master_cfg() 563 static int eql_s_master_cfg(struct net_device *dev, master_config_t __user *mcp) in eql_s_master_cfg() argument 568 if (copy_from_user(&mc, mcp, sizeof (master_config_t))) in eql_s_master_cfg()
|
/linux-4.4.14/arch/arm/boot/dts/ |
D | omap3-lilly-a83x.dtsi | 260 compatible = "mcp,mcp23017";
|