Home
last modified time | relevance | path

Searched refs:mcp (Results 1 – 12 of 12) sorted by relevance

/drivers/scsi/qla2xxx/
Dqla_mbx.c34 qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp) in qla2x00_mailbox_command() argument
80 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command()
91 if (!wait_for_completion_timeout(&ha->mbx_cmd_comp, mcp->tov * HZ)) { in qla2x00_mailbox_command()
95 mcp->mb[0]); in qla2x00_mailbox_command()
101 ha->mcp = mcp; in qla2x00_mailbox_command()
104 "Prepare to issue mbox cmd=0x%x.\n", mcp->mb[0]); in qla2x00_mailbox_command()
116 iptr = mcp->mb; in qla2x00_mailbox_command()
117 command = mcp->mb[0]; in qla2x00_mailbox_command()
118 mboxes = mcp->out_mb; in qla2x00_mailbox_command()
135 (uint8_t *)mcp->mb, 16); in qla2x00_mailbox_command()
[all …]
Dqla_mr.c38 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 …]
Dqla_isr.c241 if (!ha->mcp) in qla2x00_mbx_completion()
244 mboxes = ha->mcp->in_mb; in qla2x00_mbx_completion()
2350 if (!ha->mcp) in qla24xx_mbx_completion()
2353 mboxes = ha->mcp->in_mb; in qla24xx_mbx_completion()
Dqla_def.h3083 mbx_cmd_t *mcp; member
Dqla_nx.c1988 if (!ha->mcp) in qla82xx_mbx_completion()
/drivers/mfd/
Dmcp-core.c23 #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 …]
Dmcp-sa11x0.c46 #define priv(mcp) ((struct mcp_sa11x0 *)mcp_priv(mcp)) argument
49 mcp_sa11x0_set_telecom_divisor(struct mcp *mcp, unsigned int divisor) in mcp_sa11x0_set_telecom_divisor() argument
51 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_set_telecom_divisor()
61 mcp_sa11x0_set_audio_divisor(struct mcp *mcp, unsigned int divisor) in mcp_sa11x0_set_audio_divisor() argument
63 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_set_audio_divisor()
79 mcp_sa11x0_write(struct mcp *mcp, unsigned int reg, unsigned int val) in mcp_sa11x0_write() argument
81 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_write()
88 udelay(mcp->rw_timeout); in mcp_sa11x0_write()
106 mcp_sa11x0_read(struct mcp *mcp, unsigned int reg) in mcp_sa11x0_read() argument
108 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_read()
[all …]
Ducb1x00-core.c368 struct ucb1x00_plat_data *pdata = ucb->mcp->attached_device.platform_data; in ucb1x00_irq_set_wake()
497 static int ucb1x00_probe(struct mcp *mcp) in ucb1x00_probe() argument
499 struct ucb1x00_plat_data *pdata = mcp->attached_device.platform_data; in ucb1x00_probe()
509 mcp_enable(mcp); in ucb1x00_probe()
510 id = mcp_reg_read(mcp, UCB_ID); in ucb1x00_probe()
511 mcp_disable(mcp); in ucb1x00_probe()
525 ucb->dev.parent = &mcp->attached_device; in ucb1x00_probe()
533 ucb->mcp = mcp; in ucb1x00_probe()
586 mcp_set_drvdata(mcp, ucb); in ucb1x00_probe()
616 static void ucb1x00_remove(struct mcp *mcp) in ucb1x00_remove() argument
[all …]
DMakefile84 obj-$(CONFIG_MCP) += mcp-core.o
85 obj-$(CONFIG_MCP_SA11X0) += mcp-sa11x0.o
/drivers/gpio/
Dgpio-mcp23s08.c50 int (*read)(struct mcp23s08 *mcp, unsigned reg);
51 int (*write)(struct mcp23s08 *mcp, unsigned reg, unsigned val);
52 int (*read_regs)(struct mcp23s08 *mcp, unsigned reg,
76 struct mcp23s08 *mcp[8]; member
84 static int mcp23008_read(struct mcp23s08 *mcp, unsigned reg) in mcp23008_read() argument
86 return i2c_smbus_read_byte_data(mcp->data, reg); in mcp23008_read()
89 static int mcp23008_write(struct mcp23s08 *mcp, unsigned reg, unsigned val) in mcp23008_write() argument
91 return i2c_smbus_write_byte_data(mcp->data, reg, val); in mcp23008_write()
95 mcp23008_read_regs(struct mcp23s08 *mcp, unsigned reg, u16 *vals, unsigned n) in mcp23008_read_regs() argument
98 int ret = mcp23008_read(mcp, reg++); in mcp23008_read_regs()
[all …]
/drivers/staging/cxt1e1/
Dpmcc4_drv.c837 c4_musycc_rw (ci_t * ci, struct c4_musycc_param * mcp) in c4_musycc_rw() argument
843 int offset = mcp->offset % 0x800; /* group relative address in c4_musycc_rw()
853 portnum = (mcp->offset % 0x6000) / 0x800; in c4_musycc_rw()
857 if (mcp->offset >= 0x6000) in c4_musycc_rw()
863 if (mcp->offset < 0x6000) /* non MsgDesc Tbl accesses might require in c4_musycc_rw()
883 if (mcp->RWportnum & 0x80) in c4_musycc_rw()
886 if (mcp->value == data) in c4_musycc_rw()
888 ci->devname, (mcp->RWportnum & 0x7)); in c4_musycc_rw()
891 *dpr = mcp->value; in c4_musycc_rw()
893 pci_write_32 ((u_int32_t *) dph, mcp->value); in c4_musycc_rw()
[all …]
/drivers/net/
Deql.c556 static int eql_g_master_cfg(struct net_device *dev, master_config_t __user *mcp) in eql_g_master_cfg() argument
567 if (copy_to_user(mcp, &mc, sizeof (master_config_t))) in eql_g_master_cfg()
574 static int eql_s_master_cfg(struct net_device *dev, master_config_t __user *mcp) in eql_s_master_cfg() argument
579 if (copy_from_user(&mc, mcp, sizeof (master_config_t))) in eql_s_master_cfg()