Home
last modified time | relevance | path

Searched refs:msc (Results 1 – 6 of 6) sorted by relevance

/drivers/hid/
Dhid-magicmouse.c121 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/
Dnx.c312 struct max_sync_cop *msc; in nx_of_update_msc() local
315 msc = (struct max_sync_cop *)p->value; in nx_of_update_msc()
327 trip = msc->trip; in nx_of_update_msc()
331 i < msc->triplets; in nx_of_update_msc()
333 if (msc->fc > NX_MAX_FC || msc->mode > NX_MAX_MODE) { in nx_of_update_msc()
335 "combo: %d/%d (ignored)\n", msc->fc, in nx_of_update_msc()
336 msc->mode); in nx_of_update_msc()
343 props->ap[msc->fc][msc->mode][0].databytelen = in nx_of_update_msc()
345 props->ap[msc->fc][msc->mode][0].sglen = in nx_of_update_msc()
349 props->ap[msc->fc][msc->mode][1].databytelen = in nx_of_update_msc()
[all …]
/drivers/iio/gyro/
Ditg3200_buffer.c83 u8 msc; in itg3200_data_rdy_trigger_set_state() local
85 ret = itg3200_read_reg_8(indio_dev, ITG3200_REG_IRQ_CONFIG, &msc); in itg3200_data_rdy_trigger_set_state()
90 msc |= ITG3200_IRQ_DATA_RDY_ENABLE; in itg3200_data_rdy_trigger_set_state()
92 msc &= ~ITG3200_IRQ_DATA_RDY_ENABLE; in itg3200_data_rdy_trigger_set_state()
94 ret = itg3200_write_reg_8(indio_dev, ITG3200_REG_IRQ_CONFIG, msc); in itg3200_data_rdy_trigger_set_state()
/drivers/iio/imu/
Dadis.c239 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/staging/lustre/include/linux/lnet/
Dlib-lnet.h324 struct lnet_msg_container *msc = the_lnet.ln_msg_containers[0]; in lnet_msg_alloc() local
330 msg = (lnet_msg_t *)lnet_freelist_alloc(&msc->msc_freelist); in lnet_msg_alloc()
344 struct lnet_msg_container *msc = the_lnet.ln_msg_containers[0]; in lnet_msg_free_locked() local
348 lnet_freelist_free(&msc->msc_freelist, msg); in lnet_msg_free_locked()
/drivers/input/
Dinput.c1474 INPUT_DEV_CAP_ATTR(MSC, msc);
2011 INPUT_CLEANSE_BITMASK(dev, MSC, msc); in input_cleanse_bitmasks()