/linux-4.1.27/sound/firewire/ |
H A D | scs1x.c | 32 struct scs { struct 59 struct scs *scs = stream->rmidi->private_data; scs_output_open() local 61 scs->output_status = 0; scs_output_open() 62 scs->output_bytes = 1; scs_output_open() 63 scs->output_escaped = false; scs_output_open() 75 struct scs *scs = stream->rmidi->private_data; scs_output_trigger() local 77 ACCESS_ONCE(scs->output) = up ? stream : NULL; scs_output_trigger() 79 scs->output_idle = false; scs_output_trigger() 80 tasklet_schedule(&scs->tasklet); scs_output_trigger() 87 struct scs *scs = callback_data; scs_write_callback() local 93 scs->transaction_running = false; scs_write_callback() 94 tasklet_schedule(&scs->tasklet); scs_write_callback() 132 struct scs *scs = (void *)data; scs_output_tasklet() local 139 if (scs->transaction_running) scs_output_tasklet() 142 stream = ACCESS_ONCE(scs->output); scs_output_tasklet() 144 scs->output_idle = true; scs_output_tasklet() 145 wake_up(&scs->idle_wait); scs_output_tasklet() 149 i = scs->output_bytes; scs_output_tasklet() 152 scs->output_bytes = i; scs_output_tasklet() 153 scs->output_idle = true; scs_output_tasklet() 154 wake_up(&scs->idle_wait); scs_output_tasklet() 161 if (scs->output_escaped && byte < 0x80) { scs_output_tasklet() 162 if (scs->output_escape_high_nibble) { scs_output_tasklet() 164 scs->buffer[i] = byte << 4; scs_output_tasklet() 165 scs->output_escape_high_nibble = false; scs_output_tasklet() 168 scs->buffer[i++] |= byte & 0x0f; scs_output_tasklet() 169 scs->output_escape_high_nibble = true; scs_output_tasklet() 173 if (!is_valid_running_status(scs->output_status)) scs_output_tasklet() 175 scs->buffer[0] = HSS1394_TAG_USER_DATA; scs_output_tasklet() 176 scs->buffer[i++] = scs->output_status; scs_output_tasklet() 178 scs->buffer[i++] = byte; scs_output_tasklet() 179 if ((i == 3 && is_two_bytes_cmd(scs->output_status)) || scs_output_tasklet() 180 (i == 4 && is_three_bytes_cmd(scs->output_status))) scs_output_tasklet() 183 !memcmp(scs->buffer + 1, sysex_escape_prefix, scs_output_tasklet() 185 scs->output_escaped = true; scs_output_tasklet() 186 scs->output_escape_high_nibble = true; scs_output_tasklet() 192 if (scs->output_escaped) { scs_output_tasklet() 193 if (i >= 1 && scs->output_escape_high_nibble && scs_output_tasklet() 194 scs->buffer[0] != HSS1394_TAG_CHANGE_ADDRESS) scs_output_tasklet() 197 if (i > 1 && scs->output_status == 0xf0) { scs_output_tasklet() 198 scs->buffer[i++] = 0xf7; scs_output_tasklet() 203 scs->output_escaped = false; scs_output_tasklet() 207 scs->buffer[0] = HSS1394_TAG_USER_DATA; scs_output_tasklet() 208 scs->buffer[i++] = byte; scs_output_tasklet() 209 scs->output_status = byte; scs_output_tasklet() 210 scs->output_escaped = false; scs_output_tasklet() 215 scs->output_bytes = 1; scs_output_tasklet() 216 scs->output_escaped = false; scs_output_tasklet() 218 scs->transaction_running = true; scs_output_tasklet() 219 dev = fw_parent_device(scs->unit); scs_output_tasklet() 222 fw_send_request(dev->card, &scs->transaction, TCODE_WRITE_BLOCK_REQUEST, scs_output_tasklet() 224 HSS1394_ADDRESS, scs->buffer, i, scs_output_tasklet() 225 scs_write_callback, scs); scs_output_tasklet() 230 struct scs *scs = stream->rmidi->private_data; scs_output_drain() local 232 wait_event(scs->idle_wait, scs->output_idle); scs_output_drain() 244 struct scs *scs = stream->rmidi->private_data; scs_input_open() local 246 scs->input_escape_count = 0; scs_input_open() 258 struct scs *scs = stream->rmidi->private_data; scs_input_trigger() local 260 ACCESS_ONCE(scs->input) = up ? stream : NULL; scs_input_trigger() 273 static void scs_input_midi_byte(struct scs *scs, scs_input_midi_byte() argument 277 if (scs->input_escape_count > 0) { scs_input_midi_byte() 279 scs->input_escape_count--; scs_input_midi_byte() 280 if (scs->input_escape_count == 0) snd_rawmidi_receive() 287 scs->input_escape_count = 3; 293 static void scs_input_packet(struct scs *scs, scs_input_packet() argument 301 scs_input_midi_byte(scs, stream, data[i]); scs_input_packet() 317 static int scs_create_midi(struct scs *scs) scs_create_midi() argument 322 err = snd_rawmidi_new(scs->card, "SCS.1x", 0, 1, 1, &rmidi); scs_create_midi() 326 "%s MIDI", scs->card->shortname); scs_create_midi() 330 rmidi->private_data = scs; scs_create_midi() 342 struct scs *scs = callback_data; handle_hss() local 345 if (offset != scs->hss_handler.offset) { handle_hss() 356 stream = ACCESS_ONCE(scs->input); handle_hss() 358 scs_input_packet(scs, stream, data, length); handle_hss() 364 static int scs_init_hss_address(struct scs *scs) scs_init_hss_address() argument 370 scs->hss_handler.offset); scs_init_hss_address() 371 err = snd_fw_transaction(scs->unit, TCODE_WRITE_BLOCK_REQUEST, scs_init_hss_address() 374 dev_err(&scs->unit->device, "HSS1394 communication failed\n"); scs_init_hss_address() 381 struct scs *scs = card->private_data; scs_card_free() local 383 fw_core_remove_address_handler(&scs->hss_handler); scs_card_free() 384 kfree(scs->buffer); scs_card_free() 391 struct scs *scs; scs_probe() local 395 sizeof(*scs), &card); scs_probe() 399 scs = card->private_data; scs_probe() 400 scs->card = card; scs_probe() 401 scs->unit = unit; scs_probe() 402 tasklet_init(&scs->tasklet, scs_output_tasklet, (unsigned long)scs); scs_probe() 403 init_waitqueue_head(&scs->idle_wait); scs_probe() 404 scs->output_idle = true; scs_probe() 406 scs->buffer = kmalloc(HSS1394_MAX_PACKET_SIZE, GFP_KERNEL); scs_probe() 407 if (!scs->buffer) { scs_probe() 412 scs->hss_handler.length = HSS1394_MAX_PACKET_SIZE; scs_probe() 413 scs->hss_handler.address_callback = handle_hss; scs_probe() 414 scs->hss_handler.callback_data = scs; scs_probe() 415 err = fw_core_add_address_handler(&scs->hss_handler, scs_probe() 432 err = scs_init_hss_address(scs); scs_probe() 436 err = scs_create_midi(scs); scs_probe() 444 dev_set_drvdata(&unit->device, scs); scs_probe() 449 kfree(scs->buffer); scs_probe() 457 struct scs *scs = dev_get_drvdata(&unit->device); scs_update() local 462 scs->hss_handler.offset); scs_update() 465 snd_fw_transaction(scs->unit, TCODE_WRITE_BLOCK_REQUEST, scs_update() 472 struct scs *scs = dev_get_drvdata(&unit->device); scs_remove() local 474 snd_card_disconnect(scs->card); scs_remove() 476 ACCESS_ONCE(scs->output) = NULL; scs_remove() 477 ACCESS_ONCE(scs->input) = NULL; scs_remove() 479 wait_event(scs->idle_wait, scs->output_idle); scs_remove() 481 tasklet_kill(&scs->tasklet); scs_remove() 483 snd_card_free_when_closed(scs->card); scs_remove()
|
/linux-4.1.27/drivers/isdn/gigaset/ |
H A D | ser-gigaset.c | 395 struct ser_cardstate *scs; gigaset_initcshw() local 397 scs = kzalloc(sizeof(struct ser_cardstate), GFP_KERNEL); gigaset_initcshw() 398 if (!scs) { gigaset_initcshw() 402 cs->hw.ser = scs; gigaset_initcshw()
|
/linux-4.1.27/arch/m68k/fpsp040/ |
H A D | srem_mod.S | 255 scs %d6 | ...set Carry if 2(R) overflows
|
/linux-4.1.27/arch/m68k/math-emu/ |
H A D | multi_arith.h | 161 asm ("subx.l %2,%1; scs %0" : "=d" (carry), "=d" (dest.m32[0]) \
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/ |
H A D | d3.c | 1351 static void iwl_mvm_set_aes_rx_seq(struct aes_sc *scs, iwl_mvm_set_aes_rx_seq() argument 1361 iwl_mvm_aes_sc_to_seq(&scs[tid], &seq); iwl_mvm_set_aes_rx_seq() 1366 static void iwl_mvm_set_tkip_rx_seq(struct tkip_sc *scs, iwl_mvm_set_tkip_rx_seq() argument 1376 iwl_mvm_tkip_sc_to_seq(&scs[tid], &seq); iwl_mvm_set_tkip_rx_seq()
|
/linux-4.1.27/fs/ocfs2/cluster/ |
H A D | netdebug.c | 245 /* use sc_page to detect real scs in the list */ next_sc()
|
/linux-4.1.27/drivers/usb/serial/ |
H A D | ftdi_sio_ids.h | 121 /* SCS HF Radio Modems PID's (http://www.scs-ptc.com) */
|
/linux-4.1.27/drivers/net/ethernet/myricom/myri10ge/ |
H A D | myri10ge.c | 34 * http://www.myri.com/scs/download-Myri10GE.html
|
/linux-4.1.27/drivers/scsi/ |
H A D | gdth.c | 1954 TRACE2(("gdth_search_dr() cdr. %d size %d hds %d scs %d\n", gdth_analyse_hdrive()
|
/linux-4.1.27/arch/m68k/ifpsp060/src/ |
H A D | fplsp.S | 9578 scs %d6 # set Carry if 2(R) overflows
|
H A D | fpsp.S | 9937 scs %d6 # set Carry if 2(R) overflows
|