Lines Matching refs:mcp2221
92 struct mcp2221 {
117 struct mcp2221 *mcp;
127 static int mcp_send_report(struct mcp2221 *mcp,
137 /* mcp2221 uses interrupt endpoint for out reports */
151 static int mcp_send_data_req_status(struct mcp2221 *mcp,
172 static int mcp_chk_last_cmd_status(struct mcp2221 *mcp)
181 static int mcp_cancel_last_cmd(struct mcp2221 *mcp)
190 static int mcp_set_i2c_speed(struct mcp2221 *mcp)
214 * mcp2221, from that point onwards it first collect all the data
217 static int mcp_i2c_write(struct mcp2221 *mcp,
275 static int mcp_i2c_smbus_read(struct mcp2221 *mcp,
325 struct mcp2221 *mcp = i2c_get_adapdata(adapter);
331 /* Setting speed before every transaction is required for mcp2221 */
380 static int mcp_smbus_write(struct mcp2221 *mcp, u16 addr,
434 struct mcp2221 *mcp = i2c_get_adapdata(adapter);
593 struct mcp2221 *mcp = gpiochip_get_data(gc);
609 struct mcp2221 *mcp = gpiochip_get_data(gc);
624 static int mcp_gpio_dir_set(struct mcp2221 *mcp,
642 struct mcp2221 *mcp = gpiochip_get_data(gc);
655 struct mcp2221 *mcp = gpiochip_get_data(gc);
674 struct mcp2221 *mcp = gpiochip_get_data(gc);
694 /* Gives current state of i2c engine inside mcp2221 */
695 static int mcp_get_i2c_eng_state(struct mcp2221 *mcp,
726 * is called by HID layer when it receives i/p report from mcp2221,
737 struct mcp2221 *mcp = hid_get_drvdata(hdev);
925 struct mcp2221 *mcp = hid_get_drvdata(hdev);
936 struct mcp2221 *mcp = priv->mcp;
976 struct mcp2221 *mcp = priv->mcp;
1002 static int mcp_iio_channels(struct mcp2221 *mcp)
1042 struct mcp2221 *mcp = container_of(work, struct mcp2221, init_work.work);
1074 indio_dev->name = "mcp2221";
1104 struct mcp2221 *mcp;
1206 .name = "mcp2221",