/linux/drivers/hid/ |
A D | hid-mcp2221.c | 179 mcp->txbuf[4] = mcp->cur_i2c_clk_div; in mcp_set_i2c_speed() 181 ret = mcp_send_data_req_status(mcp, mcp->txbuf, 8); in mcp_set_i2c_speed() 594 mcp->txbuf[mcp->gp_idx - 1] = 1; in mcp_gpio_set() 595 mcp->txbuf[mcp->gp_idx] = !!value; in mcp_gpio_set() 598 mcp_send_data_req_status(mcp, mcp->txbuf, 18); in mcp_gpio_set() 610 mcp->txbuf[mcp->gp_idx - 1] = 1; in mcp_gpio_dir_set() 611 mcp->txbuf[mcp->gp_idx] = val; in mcp_gpio_dir_set() 771 mcp->rxbuf_idx = mcp->rxbuf_idx + data[3]; in mcp2221_raw_event() 790 mcp->status = !!data[mcp->gp_idx]; in mcp2221_raw_event() 791 mcp->gpio_dir = data[mcp->gp_idx + 1]; in mcp2221_raw_event() [all …]
|
/linux/drivers/mfd/ |
A D | mcp-core.c | 30 struct mcp *mcp = to_mcp(dev); in mcp_bus_probe() local 38 struct mcp *mcp = to_mcp(dev); in mcp_bus_remove() local 100 mcp->ops->reg_write(mcp, reg, val); in mcp_reg_write() 119 val = mcp->ops->reg_read(mcp, reg); in mcp_reg_read() 133 void mcp_enable(struct mcp *mcp) in mcp_enable() argument 139 mcp->ops->enable(mcp); in mcp_enable() 152 void mcp_disable(struct mcp *mcp) in mcp_disable() argument 158 mcp->ops->disable(mcp); in mcp_disable() 165 struct mcp *mcp = container_of(dev, struct mcp, attached_device); in mcp_release() local 172 struct mcp *mcp; in mcp_host_alloc() local [all …]
|
A D | mcp-sa11x0.c | 42 #define priv(mcp) ((struct mcp_sa11x0 *)mcp_priv(mcp)) argument 45 mcp_sa11x0_set_telecom_divisor(struct mcp *mcp, unsigned int divisor) in mcp_sa11x0_set_telecom_divisor() argument 57 mcp_sa11x0_set_audio_divisor(struct mcp *mcp, unsigned int divisor) in mcp_sa11x0_set_audio_divisor() argument 75 mcp_sa11x0_write(struct mcp *mcp, unsigned int reg, unsigned int val) in mcp_sa11x0_write() argument 102 mcp_sa11x0_read(struct mcp *mcp, unsigned int reg) in mcp_sa11x0_read() argument 124 static void mcp_sa11x0_enable(struct mcp *mcp) in mcp_sa11x0_enable() argument 133 static void mcp_sa11x0_disable(struct mcp *mcp) in mcp_sa11x0_disable() argument 158 struct mcp *mcp; in mcp_sa11x0_probe() local 182 if (!mcp) { in mcp_sa11x0_probe() 191 m = priv(mcp); in mcp_sa11x0_probe() [all …]
|
A D | ucb1x00-core.c | 492 static int ucb1x00_probe(struct mcp *mcp) in ucb1x00_probe() argument 494 struct ucb1x00_plat_data *pdata = mcp->attached_device.platform_data; in ucb1x00_probe() 504 mcp_enable(mcp); in ucb1x00_probe() 505 id = mcp_reg_read(mcp, UCB_ID); in ucb1x00_probe() 506 mcp_disable(mcp); in ucb1x00_probe() 520 ucb->dev.parent = &mcp->attached_device; in ucb1x00_probe() 528 ucb->mcp = mcp; in ucb1x00_probe() 581 mcp_set_drvdata(mcp, ucb); in ucb1x00_probe() 611 static void ucb1x00_remove(struct mcp *mcp) in ucb1x00_remove() argument 613 struct ucb1x00_plat_data *pdata = mcp->attached_device.platform_data; in ucb1x00_remove() [all …]
|
A D | Makefile | 126 obj-$(CONFIG_MCP) += mcp-core.o 127 obj-$(CONFIG_MCP_SA11X0) += mcp-sa11x0.o
|
/linux/drivers/scsi/qla2xxx/ |
A D | qla_mbx.c | 199 ha->mcp = mcp; in qla2x00_mailbox_command() 1906 rval, mcp->mb[0], mcp->mb[1], mcp->mb[2], mcp->mb[3]); in qla2x00_init_firmware() 2673 rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); in qla2x00_login_fabric() 2748 rval, mcp->mb[0], mcp->mb[1], mcp->mb[6], mcp->mb[7]); in qla2x00_login_local_device() 3021 mcp->mb[3], mcp->mb[6], mcp->mb[7], mcp->mb[10], in qla2x00_get_resource_cnts() 4753 rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); in qla81xx_fac_erase_sector() 4789 rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); in qla81xx_fac_semaphore_access() 5211 rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); in qla2x00_get_xgmac_stats() 5253 rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); in qla2x00_get_dcbx_params() 5346 mcp->mb[3], mcp->mb[18], mcp->mb[19]); in qla2x00_loopback_test() [all …]
|
A D | qla_mr.c | 97 mcp->mb[0]); in qlafx00_mailbox_command() 103 ha->mcp32 = mcp; in qlafx00_mailbox_command() 113 iptr = mcp->mb; in qlafx00_mailbox_command() 275 rval, mcp->mb[0], mcp->mb[1], mcp->mb[2], mcp->mb[3], in qlafx00_mailbox_command() 465 if (mcp->mb[17] != 0xAAAA || mcp->mb[18] != 0x5555 || in qlafx00_mbx_reg_test() 466 mcp->mb[19] != 0xAA55 || mcp->mb[20] != 0x55AA) in qlafx00_mbx_reg_test() 468 if (mcp->mb[21] != 0xA5A5 || mcp->mb[22] != 0x5A5A || in qlafx00_mbx_reg_test() 469 mcp->mb[23] != 0x2525 || mcp->mb[24] != 0xBBBB) in qlafx00_mbx_reg_test() 471 if (mcp->mb[25] != 0x6666 || mcp->mb[26] != 0xBB66 || in qlafx00_mbx_reg_test() 472 mcp->mb[27] != 0x66BB || mcp->mb[28] != 0xB6B6) in qlafx00_mbx_reg_test() [all …]
|
A D | qla_isr.c | 561 if (!ha->mcp) in qla2x00_mbx_completion() 564 mboxes = ha->mcp->in_mb; in qla2x00_mbx_completion() 3647 if (!ha->mcp) in qla24xx_mbx_completion() 3650 mboxes = ha->mcp->in_mb; in qla24xx_mbx_completion()
|
A D | qla_nx.c | 1967 if (!ha->mcp) in qla82xx_mbx_completion()
|
A D | qla_def.h | 4400 mbx_cmd_t *mcp; member
|
/linux/drivers/pinctrl/ |
A D | pinctrl-mcp23s08.c | 139 return regmap_read(mcp->regmap, reg << mcp->reg_shift, val); in mcp_read() 144 return regmap_write(mcp->regmap, reg << mcp->reg_shift, val); in mcp_write() 151 return regmap_update_bits(mcp->regmap, reg << mcp->reg_shift, in mcp_set_mask() 519 mcp->irq, err); in mcp23s08_irq_setup() 537 mcp->dev = dev; in mcp23s08_probe_one() 574 if (mcp->irq && mcp->irq_controller) { in mcp23s08_probe_one() 607 if (mcp->irq && mcp->irq_controller) { in mcp23s08_probe_one() 620 ret = devm_gpiochip_add_data(dev, &mcp->chip, mcp); in mcp23s08_probe_one() 626 mcp->pinctrl_desc.npins = mcp->chip.ngpio; in mcp23s08_probe_one() 633 mcp->pctldev = devm_pinctrl_register(dev, &mcp->pinctrl_desc, mcp); in mcp23s08_probe_one() [all …]
|
A D | pinctrl-mcp23s08_i2c.c | 15 struct mcp23s08 *mcp; in mcp230xx_probe() local 18 mcp = devm_kzalloc(dev, sizeof(*mcp), GFP_KERNEL); in mcp230xx_probe() 19 if (!mcp) in mcp230xx_probe() 25 mcp->reg_shift = 0; in mcp230xx_probe() 26 mcp->chip.ngpio = 8; in mcp230xx_probe() 32 mcp->reg_shift = 1; in mcp230xx_probe() 33 mcp->chip.ngpio = 16; in mcp230xx_probe() 39 mcp->reg_shift = 1; in mcp230xx_probe() 40 mcp->chip.ngpio = 16; in mcp230xx_probe() 49 if (IS_ERR(mcp->regmap)) in mcp230xx_probe() [all …]
|
A D | pinctrl-mcp23s08_spi.c | 22 struct mcp23s08 *mcp[8]; member 28 struct mcp23s08 *mcp = context; in mcp23sxx_spi_write() local 70 tx[0] = mcp->addr | 0x01; in mcp23sxx_spi_read() 91 mcp->reg_shift = 0; in mcp23s08_spi_regmap_init() 92 mcp->chip.ngpio = 8; in mcp23s08_spi_regmap_init() 100 mcp->reg_shift = 1; in mcp23s08_spi_regmap_init() 101 mcp->chip.ngpio = 16; in mcp23s08_spi_regmap_init() 109 mcp->reg_shift = 1; in mcp23s08_spi_regmap_init() 110 mcp->chip.ngpio = 16; in mcp23s08_spi_regmap_init() 128 mcp->regmap = devm_regmap_init(dev, &mcp23sxx_spi_regmap, mcp, copy); in mcp23s08_spi_regmap_init() [all …]
|
A D | pinctrl-mcp23s08.h | 52 int mcp23s08_probe_one(struct mcp23s08 *mcp, struct device *dev,
|
/linux/include/linux/mfd/ |
A D | mcp.h | 14 struct mcp { struct 29 void (*enable)(struct mcp *); 37 void mcp_enable(struct mcp *); 38 void mcp_disable(struct mcp *); 39 #define mcp_get_sclk_rate(mcp) ((mcp)->sclk_rate) argument 48 int (*probe)(struct mcp *); 49 void (*remove)(struct mcp *); 55 #define mcp_get_drvdata(mcp) dev_get_drvdata(&(mcp)->attached_device) argument 56 #define mcp_set_drvdata(mcp,d) dev_set_drvdata(&(mcp)->attached_device, d) argument 58 static inline void *mcp_priv(struct mcp *mcp) in mcp_priv() argument [all …]
|
A D | ucb1x00.h | 122 struct mcp *mcp; member 173 return mcp_get_sclk_rate(ucb->mcp); in ucb1x00_clkrate() 184 mcp_enable(ucb->mcp); in ucb1x00_enable() 197 mcp_disable(ucb->mcp); in ucb1x00_disable() 211 mcp_reg_write(ucb->mcp, reg, val); in ucb1x00_reg_write() 224 return mcp_reg_read(ucb->mcp, reg); in ucb1x00_reg_read() 233 mcp_set_audio_divisor(ucb->mcp, div); in ucb1x00_set_audio_divisor() 243 mcp_set_telecom_divisor(ucb->mcp, div); in ucb1x00_set_telecom_divisor()
|
/linux/drivers/regulator/ |
A D | mcp16502.c | 161 gpiod_set_value(mcp->lpm, 0); in mcp16502_gpio_set_mode() 165 gpiod_set_value(mcp->lpm, 1); in mcp16502_gpio_set_mode() 508 struct mcp16502 *mcp; in mcp16502_probe() local 515 mcp = devm_kzalloc(dev, sizeof(*mcp), GFP_KERNEL); in mcp16502_probe() 516 if (!mcp) in mcp16502_probe() 526 i2c_set_clientdata(client, mcp); in mcp16502_probe() 528 config.driver_data = mcp; in mcp16502_probe() 531 if (IS_ERR(mcp->lpm)) { in mcp16502_probe() 533 return PTR_ERR(mcp->lpm); in mcp16502_probe() 555 struct mcp16502 *mcp = i2c_get_clientdata(client); in mcp16502_suspend_noirq() local [all …]
|
/linux/arch/powerpc/kernel/ |
A D | signal_32.c | 910 struct mcontext __user *mcp; in do_setcontext() local 921 mcp = (struct mcontext __user *)(u64)cmcp; in do_setcontext() 929 if (restore_user_regs(regs, mcp, sig)) in do_setcontext() 945 struct mcontext __user *mcp; in do_setcontext_tm() local 960 mcp = (struct mcontext __user *)(u64)cmcp; in do_setcontext_tm() 991 struct mcontext __user *mcp; in COMPAT_SYSCALL_DEFINE3() local 1001 mcp = (struct mcontext __user *)(u64)cmcp; in COMPAT_SYSCALL_DEFINE3() 1119 struct mcontext __user *mcp; in COMPAT_SYSCALL_DEFINE0() local 1123 mcp = (struct mcontext __user *)(u64)cmcp; in COMPAT_SYSCALL_DEFINE0() 1293 struct mcontext __user *mcp; in COMPAT_SYSCALL_DEFINE0() local [all …]
|
/linux/arch/sparc/kernel/ |
A D | signal_64.c | 146 mcontext_t __user *mcp; in sparc64_get_context() local 161 mcp = &ucp->uc_mcontext; in sparc64_get_context() 162 grp = &mcp->mc_gregs; in sparc64_get_context() 204 err |= __put_user(fp, &(mcp->mc_fp)); in sparc64_get_context() 205 err |= __put_user(i7, &(mcp->mc_i7)); in sparc64_get_context() 207 err |= __put_user(fenab, &(mcp->mc_fpregs.mcfpu_enab)); in sparc64_get_context() 214 err |= copy_to_user(&(mcp->mc_fpregs.mcfpu_fregs), fpregs, in sparc64_get_context() 218 ((unsigned long __user *)&(mcp->mc_fpregs.mcfpu_fregs))+16, fpregs+16, in sparc64_get_context() 220 err |= __put_user(current_thread_info()->xfsr[0], &(mcp->mc_fpregs.mcfpu_fsr)); in sparc64_get_context() 221 err |= __put_user(current_thread_info()->gsr[0], &(mcp->mc_fpregs.mcfpu_gsr)); in sparc64_get_context() [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
A D | pinctrl-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 17 NOTE: Do not use the old mcp prefix any more. It is deprecated and will be 32 - mcp,spi-present-mask (DEPRECATED) 41 NOTE: Do not use the old mcp prefix any more. It is deprecated and will be
|
/linux/drivers/net/ |
A D | eql.c | 549 static int eql_g_master_cfg(struct net_device *dev, master_config_t __user *mcp) in eql_g_master_cfg() argument 560 if (copy_to_user(mcp, &mc, sizeof (master_config_t))) in eql_g_master_cfg() 567 static int eql_s_master_cfg(struct net_device *dev, master_config_t __user *mcp) in eql_s_master_cfg() argument 572 if (copy_from_user(&mc, mcp, sizeof (master_config_t))) in eql_s_master_cfg()
|