Searched refs:msc (Results 1 – 5 of 5) sorted by relevance
/drivers/hid/ |
D | hid-magicmouse.c | 121 static int magicmouse_firm_touch(struct magicmouse_sc *msc) in magicmouse_firm_touch() argument 129 for (ii = 0; ii < msc->ntouches; ii++) { in magicmouse_firm_touch() 130 int idx = msc->tracking_ids[ii]; in magicmouse_firm_touch() 131 if (msc->touches[idx].size < 8) { in magicmouse_firm_touch() 144 static void magicmouse_emit_buttons(struct magicmouse_sc *msc, int state) in magicmouse_emit_buttons() argument 146 int last_state = test_bit(BTN_LEFT, msc->input->key) << 0 | in magicmouse_emit_buttons() 147 test_bit(BTN_RIGHT, msc->input->key) << 1 | in magicmouse_emit_buttons() 148 test_bit(BTN_MIDDLE, msc->input->key) << 2; in magicmouse_emit_buttons() 161 } else if ((id = magicmouse_firm_touch(msc)) >= 0) { in magicmouse_emit_buttons() 162 int x = msc->touches[id].x; in magicmouse_emit_buttons() [all …]
|
/drivers/crypto/nx/ |
D | nx.c | 291 struct max_sync_cop *msc; in nx_of_update_msc() local 294 msc = (struct max_sync_cop *)p->value; in nx_of_update_msc() 306 trip = msc->trip; in nx_of_update_msc() 310 i < msc->triplets; in nx_of_update_msc() 312 if (msc->fc > NX_MAX_FC || msc->mode > NX_MAX_MODE) { in nx_of_update_msc() 314 "combo: %d/%d (ignored)\n", msc->fc, in nx_of_update_msc() 315 msc->mode); in nx_of_update_msc() 322 props->ap[msc->fc][msc->mode][0].databytelen = in nx_of_update_msc() 324 props->ap[msc->fc][msc->mode][0].sglen = in nx_of_update_msc() 328 props->ap[msc->fc][msc->mode][1].databytelen = in nx_of_update_msc() [all …]
|
/drivers/iio/gyro/ |
D | itg3200_buffer.c | 86 u8 msc; in itg3200_data_rdy_trigger_set_state() local 88 ret = itg3200_read_reg_8(indio_dev, ITG3200_REG_IRQ_CONFIG, &msc); in itg3200_data_rdy_trigger_set_state() 93 msc |= ITG3200_IRQ_DATA_RDY_ENABLE; in itg3200_data_rdy_trigger_set_state() 95 msc &= ~ITG3200_IRQ_DATA_RDY_ENABLE; in itg3200_data_rdy_trigger_set_state() 97 ret = itg3200_write_reg_8(indio_dev, ITG3200_REG_IRQ_CONFIG, msc); in itg3200_data_rdy_trigger_set_state()
|
/drivers/iio/imu/ |
D | adis.c | 239 uint16_t msc; in adis_enable_irq() local 244 ret = adis_read_reg_16(adis, adis->data->msc_ctrl_reg, &msc); in adis_enable_irq() 248 msc |= ADIS_MSC_CTRL_DATA_RDY_POL_HIGH; in adis_enable_irq() 249 msc &= ~ADIS_MSC_CTRL_DATA_RDY_DIO2; in adis_enable_irq() 251 msc |= ADIS_MSC_CTRL_DATA_RDY_EN; in adis_enable_irq() 253 msc &= ~ADIS_MSC_CTRL_DATA_RDY_EN; in adis_enable_irq() 255 ret = adis_write_reg_16(adis, adis->data->msc_ctrl_reg, msc); in adis_enable_irq()
|
/drivers/input/ |
D | input.c | 1468 INPUT_DEV_CAP_ATTR(MSC, msc); 1958 INPUT_CLEANSE_BITMASK(dev, MSC, msc); in input_cleanse_bitmasks()
|