Lines Matching refs:dm
229 struct gs_device_mode *dm; in gs_cmd_reset() local
233 dm = kzalloc(sizeof(*dm), GFP_KERNEL); in gs_cmd_reset()
234 if (!dm) in gs_cmd_reset()
237 dm->mode = GS_CAN_MODE_RESET; in gs_cmd_reset()
245 dm, in gs_cmd_reset()
246 sizeof(*dm), in gs_cmd_reset()
569 struct gs_device_mode *dm; in gs_can_open() local
634 dm = kmalloc(sizeof(*dm), GFP_KERNEL); in gs_can_open()
635 if (!dm) in gs_can_open()
640 dm->flags = 0; in gs_can_open()
643 dm->flags |= GS_CAN_MODE_LOOP_BACK; in gs_can_open()
645 dm->flags |= GS_CAN_MODE_LISTEN_ONLY; in gs_can_open()
651 dm->flags |= GS_CAN_MODE_ONE_SHOT; in gs_can_open()
654 dm->flags |= GS_CAN_MODE_TRIPLE_SAMPLE; in gs_can_open()
657 dm->mode = GS_CAN_MODE_START; in gs_can_open()
664 dm, in gs_can_open()
665 sizeof(*dm), in gs_can_open()
670 kfree(dm); in gs_can_open()
674 kfree(dm); in gs_can_open()