/linux-6.3-rc2/drivers/hid/ |
A D | hid-mcp2221.c | 197 mcp->txbuf[4] = mcp->cur_i2c_clk_div; in mcp_set_i2c_speed() 616 mcp->txbuf[mcp->gp_idx - 1] = 1; in mcp_gpio_set() 617 mcp->txbuf[mcp->gp_idx] = !!value; in mcp_gpio_set() 632 mcp->txbuf[mcp->gp_idx - 1] = 1; in mcp_gpio_dir_set() 633 mcp->txbuf[mcp->gp_idx] = val; in mcp_gpio_dir_set() 816 mcp->status = !!data[mcp->gp_idx]; in mcp2221_raw_event() 817 mcp->gpio_dir = data[mcp->gp_idx + 1]; in mcp2221_raw_event() 936 struct mcp2221 *mcp = priv->mcp; in mcp2221_read_raw() local 976 struct mcp2221 *mcp = priv->mcp; in mcp2221_write_raw() local 1072 data->mcp = mcp; in mcp_init_work() [all …]
|
/linux-6.3-rc2/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 | 120 obj-$(CONFIG_MCP) += mcp-core.o 121 obj-$(CONFIG_MCP_SA11X0) += mcp-sa11x0.o
|
/linux-6.3-rc2/drivers/scsi/qla2xxx/ |
A D | qla_mbx.c | 205 ha->mcp = mcp; in qla2x00_mailbox_command() 1923 rval, mcp->mb[0], mcp->mb[1], mcp->mb[2], mcp->mb[3]); in qla2x00_init_firmware() 2690 rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); in qla2x00_login_fabric() 2765 rval, mcp->mb[0], mcp->mb[1], mcp->mb[6], mcp->mb[7]); in qla2x00_login_local_device() 3038 mcp->mb[3], mcp->mb[6], mcp->mb[7], mcp->mb[10], in qla2x00_get_resource_cnts() 4772 rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); in qla81xx_fac_erase_sector() 4808 rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); in qla81xx_fac_semaphore_access() 5230 rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); in qla2x00_get_xgmac_stats() 5272 rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); in qla2x00_get_dcbx_params() 5365 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_bsg.c | 2437 mbx_cmd_t *mcp = &mc; in qla2x00_do_dport_diagnostics_v2() local 2475 rval = qla26xx_dport_diagnostics_v2(vha, dd, mcp); in qla2x00_do_dport_diagnostics_v2() 2482 dd->mbx1 = mcp->mb[0]; in qla2x00_do_dport_diagnostics_v2() 2483 dd->mbx2 = mcp->mb[1]; in qla2x00_do_dport_diagnostics_v2() 2490 dd->mbx1 = mcp->mb[0]; in qla2x00_do_dport_diagnostics_v2() 2491 dd->mbx2 = mcp->mb[1]; in qla2x00_do_dport_diagnostics_v2()
|
A D | qla_isr.c | 561 if (!ha->mcp) in qla2x00_mbx_completion() 564 mboxes = ha->mcp->in_mb; in qla2x00_mbx_completion() 3654 if (!ha->mcp) in qla24xx_mbx_completion() 3657 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 | 4458 mbx_cmd_t *mcp; member
|
/linux-6.3-rc2/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() 570 if (mcp->irq && mcp->irq_controller) { in mcp23s08_probe_one() 603 if (mcp->irq && mcp->irq_controller) { in mcp23s08_probe_one() 616 ret = devm_gpiochip_add_data(dev, &mcp->chip, mcp); in mcp23s08_probe_one() 622 mcp->pinctrl_desc.npins = mcp->chip.ngpio; in mcp23s08_probe_one() 629 mcp->pctldev = devm_pinctrl_register(dev, &mcp->pinctrl_desc, mcp); in mcp23s08_probe_one() [all …]
|
A D | pinctrl-mcp23s08_i2c.c | 16 struct mcp23s08 *mcp; in mcp230xx_probe() local 19 mcp = devm_kzalloc(dev, sizeof(*mcp), GFP_KERNEL); in mcp230xx_probe() 20 if (!mcp) in mcp230xx_probe() 26 mcp->reg_shift = 0; in mcp230xx_probe() 27 mcp->chip.ngpio = 8; in mcp230xx_probe() 33 mcp->reg_shift = 1; in mcp230xx_probe() 34 mcp->chip.ngpio = 16; in mcp230xx_probe() 40 mcp->reg_shift = 1; in mcp230xx_probe() 41 mcp->chip.ngpio = 16; in mcp230xx_probe() 50 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-6.3-rc2/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-6.3-rc2/drivers/regulator/ |
A D | mcp16502.c | 162 gpiod_set_value(mcp->lpm, 0); in mcp16502_gpio_set_mode() 166 gpiod_set_value(mcp->lpm, 1); in mcp16502_gpio_set_mode() 509 struct mcp16502 *mcp; in mcp16502_probe() local 516 mcp = devm_kzalloc(dev, sizeof(*mcp), GFP_KERNEL); in mcp16502_probe() 517 if (!mcp) in mcp16502_probe() 527 i2c_set_clientdata(client, mcp); in mcp16502_probe() 529 config.driver_data = mcp; in mcp16502_probe() 532 if (IS_ERR(mcp->lpm)) { in mcp16502_probe() 534 return PTR_ERR(mcp->lpm); in mcp16502_probe() 556 struct mcp16502 *mcp = i2c_get_clientdata(client); in mcp16502_suspend_noirq() local [all …]
|
/linux-6.3-rc2/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-6.3-rc2/arch/powerpc/kernel/ |
A D | signal_32.c | 920 struct mcontext __user *mcp; in do_setcontext() local 931 mcp = (struct mcontext __user *)(u64)cmcp; in do_setcontext() 939 if (restore_user_regs(regs, mcp, sig)) in do_setcontext() 955 struct mcontext __user *mcp; in do_setcontext_tm() local 970 mcp = (struct mcontext __user *)(u64)cmcp; in do_setcontext_tm() 1001 struct mcontext __user *mcp; in COMPAT_SYSCALL_DEFINE3() local 1011 mcp = (struct mcontext __user *)(u64)cmcp; in COMPAT_SYSCALL_DEFINE3() 1129 struct mcontext __user *mcp; in COMPAT_SYSCALL_DEFINE0() local 1133 mcp = (struct mcontext __user *)(u64)cmcp; in COMPAT_SYSCALL_DEFINE0() 1303 struct mcontext __user *mcp; in COMPAT_SYSCALL_DEFINE0() local [all …]
|
/linux-6.3-rc2/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-6.3-rc2/drivers/net/ |
A D | eql.c | 548 static int eql_g_master_cfg(struct net_device *dev, master_config_t __user *mcp) in eql_g_master_cfg() argument 559 if (copy_to_user(mcp, &mc, sizeof (master_config_t))) in eql_g_master_cfg() 566 static int eql_s_master_cfg(struct net_device *dev, master_config_t __user *mcp) in eql_s_master_cfg() argument 571 if (copy_from_user(&mc, mcp, sizeof (master_config_t))) in eql_s_master_cfg()
|