/openbmc/linux/drivers/mmc/core/ |
H A D | sd_ops.c | 36 cmd.arg = 0; in mmc_app_cmd() 75 memset(cmd->resp, 0, sizeof(cmd->resp)); in mmc_wait_for_app_cmd() 78 mrq.cmd = cmd; in mmc_wait_for_app_cmd() 127 cmd.arg = ocr; in mmc_send_app_op_cond() 244 cmd.arg = 0; in mmc_send_relative_addr() 278 mrq.cmd = &cmd; in mmc_app_send_scr() 282 cmd.arg = 0; in mmc_app_send_scr() 302 if (cmd.error) in mmc_app_send_scr() 342 mrq.cmd = &cmd; in mmc_app_sd_status() 346 cmd.arg = 0; in mmc_app_sd_status() [all …]
|
/openbmc/linux/drivers/target/iscsi/ |
H A D | iscsi_target_erl2.c | 29 struct iscsit_cmd *cmd, in iscsit_create_conn_recovery_datain_values() argument 62 cmd->data_sn = 0; in iscsit_create_conn_recovery_dataout_values() 135 cmd->conn = NULL; in iscsit_free_connection_recovery_entries() 157 cmd->conn = NULL; in iscsit_free_connection_recovery_entries() 205 if (!cmd->cr) { in iscsit_remove_cmd_from_connection_recovery() 210 cr = cmd->cr; in iscsit_remove_cmd_from_connection_recovery() 345 cmd->init_task_tag, cmd->cmd_sn, conn->cid); in iscsit_prepare_cmds_for_reallegiance() 365 if (!(cmd->cmd_flags & ICF_OOO_CMDSN) && !cmd->immediate_cmd && in iscsit_prepare_cmds_for_reallegiance() 378 cmd->init_task_tag, cmd->cmd_sn, cmd->stat_sn, in iscsit_prepare_cmds_for_reallegiance() 381 cmd->deferred_i_state = cmd->i_state; in iscsit_prepare_cmds_for_reallegiance() [all …]
|
H A D | iscsi_target_erl0.c | 40 cmd->seq_start_offset = cmd->write_data_done; in iscsit_set_dataout_sequence_values() 41 cmd->seq_end_offset = min(cmd->se_cmd.data_length, in iscsit_set_dataout_sequence_values() 49 if (!cmd->seq_start_offset && !cmd->seq_end_offset) { in iscsit_set_dataout_sequence_values() 50 cmd->seq_start_offset = cmd->write_data_done; in iscsit_set_dataout_sequence_values() 51 cmd->seq_end_offset = (cmd->se_cmd.data_length > in iscsit_set_dataout_sequence_values() 56 cmd->seq_start_offset = cmd->seq_end_offset; in iscsit_set_dataout_sequence_values() 57 cmd->seq_end_offset = ((cmd->seq_end_offset + in iscsit_set_dataout_sequence_values() 59 cmd->se_cmd.data_length) ? cmd->se_cmd.data_length : in iscsit_set_dataout_sequence_values() 197 " error.\n", cmd->init_task_tag, cmd->se_cmd.data_length); in iscsit_dataout_check_unsolicited_sequence() 562 cmd->data_sn++; in iscsit_dataout_post_crc_passed() [all …]
|
H A D | iscsi_target_seq_pdu_list.c | 27 cmd->init_task_tag); in iscsit_dump_seq_list() 525 if (!cmd->immediate_data && !cmd->unsolicited_data) in iscsit_build_pdu_and_seq_lists() 527 else if (cmd->immediate_data && !cmd->unsolicited_data) in iscsit_build_pdu_and_seq_lists() 529 else if (!cmd->immediate_data && cmd->unsolicited_data) in iscsit_build_pdu_and_seq_lists() 531 else if (cmd->immediate_data && cmd->unsolicited_data) in iscsit_build_pdu_and_seq_lists() 600 pdu = &cmd->pdu_list[cmd->pdu_start]; in iscsit_get_pdu_holder_for_seq() 615 cmd->pdu_start += cmd->pdu_send_order; in iscsit_get_pdu_holder_for_seq() 617 cmd->seq_no++; in iscsit_get_pdu_holder_for_seq() 619 if (cmd->pdu_start < cmd->pdu_count) in iscsit_get_pdu_holder_for_seq() 624 cmd->init_task_tag, cmd->pdu_send_order); in iscsit_get_pdu_holder_for_seq() [all …]
|
H A D | iscsi_target_util.c | 185 return cmd; in iscsit_allocate_cmd() 390 return cmd; in iscsit_find_cmd_from_itt() 414 return cmd; in iscsit_find_cmd_from_itt_or_dump() 514 qr->cmd = cmd; in iscsit_add_cmd_to_immediate_queue() 540 if (qr->cmd) in iscsit_get_cmd_from_immediate_queue() 560 if (qr->cmd != cmd) in iscsit_remove_cmd_from_immediate_queue() 590 qr->cmd = cmd; in iscsit_add_cmd_to_response_queue() 616 if (qr->cmd) in iscsit_get_cmd_from_response_queue() 637 if (qr->cmd != cmd) in iscsit_remove_cmd_from_response_queue() 876 if (!cmd) in iscsit_add_nopin() [all …]
|
/openbmc/linux/include/scsi/ |
H A D | scsi_cmnd.h | 158 return cmd + 1; in scsi_cmd_priv() 193 return cmd->sdb.length; in scsi_bufflen() 198 cmd->resid_len = resid; in scsi_set_resid() 203 return cmd->resid_len; in scsi_get_resid() 212 return sg_copy_from_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_sg_copy_from_buffer() 219 return sg_copy_to_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_sg_copy_to_buffer() 318 return cmd->prot_sdb ? cmd->prot_sdb->table.nents : 0; in scsi_prot_sg_count() 323 return cmd->prot_sdb ? cmd->prot_sdb->table.sgl : NULL; in scsi_prot_sglist() 328 return cmd->prot_sdb; in scsi_prot() 336 cmd->result = (cmd->result & 0xffffff00) | status; in set_status_byte() [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | si2168.c | 17 cmd->wlen = wlen; in cmd_init() 18 cmd->rlen = rlen; in cmd_init() 30 if (cmd->wlen) { in si2168_cmd_execute() 32 ret = i2c_master_send(client, cmd->args, cmd->wlen); in si2168_cmd_execute() 41 if (cmd->rlen) { in si2168_cmd_execute() 46 ret = i2c_master_recv(client, cmd->args, cmd->rlen); in si2168_cmd_execute() 171 *status, cmd.rlen, cmd.args); in si2168_read_status() 193 utmp1, utmp2, cmd.args[2], cmd.args[1]); in si2168_read_status() 211 utmp1 = cmd.args[2] << 8 | cmd.args[1] << 0; in si2168_read_status() 713 cmd.args[3] << 8 | cmd.args[4] << 0; in si2168_probe() [all …]
|
/openbmc/linux/arch/powerpc/platforms/powermac/ |
H A D | pfunc_core.c | 99 if ((cmd->cmdend - cmd->cmdptr) < 4) { in pmf_next32() 100 cmd->error = 1; in pmf_next32() 104 cmd->cmdptr += 4; in pmf_next32() 111 if ((cmd->cmdend - cmd->cmdptr) < count) { in pmf_next_blob() 112 cmd->error = 1; in pmf_next_blob() 115 value = cmd->cmdptr; in pmf_next_blob() 126 if (cmd->error) \ 131 return handlers->name(cmd->func, cmd->instdata, \ 591 cmd.args = args; in pmf_parse_one() 592 cmd.error = 0; in pmf_parse_one() [all …]
|
/openbmc/linux/drivers/cdx/controller/ |
H A D | mcdi.c | 237 mcdi->seq_held_by[cmd->seq] = cmd; in cdx_mcdi_send_request() 255 MC_CMD_V2_EXTN_IN_EXTENDED_CMD, cmd->cmd, in cdx_mcdi_send_request() 332 cmd->completer(cdx, cmd->cookie, cmd->rc, in cdx_mcdi_process_cleanup_list() 333 cmd->outbuf, cmd->outlen); in cdx_mcdi_process_cleanup_list() 363 cmd->cmd, cmd->inlen); in _cdx_mcdi_cancel_cmd() 459 cmd_item->cmd = cmd; in cdx_mcdi_rpc_sync() 523 cmd->rc = 0; in cdx_mcdi_rpc_async_internal() 581 if (cmd) { in cdx_mcdi_process_cmd() 675 _cdx_mcdi_display_error(cdx, cmd->cmd, in cdx_mcdi_complete_cmd() 723 cmd->cmd, cmd->inlen, cmd->state, in cdx_mcdi_timeout_cmd() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | power.c | 66 len, cmd); in iwl_mvm_beacon_filter_send_cmd() 157 cmd->flags |= in iwl_mvm_power_configure_uapsd() 416 cmd->flags |= in iwl_mvm_power_build_cmd() 419 cmd->flags &= in iwl_mvm_power_build_cmd() 440 cmd->flags |= in iwl_mvm_power_build_cmd() 443 cmd->flags &= in iwl_mvm_power_build_cmd() 468 sizeof(cmd), &cmd); in iwl_mvm_power_send_cmd() 486 cmd.flags &= in iwl_mvm_power_update_device() 494 cmd.flags); in iwl_mvm_power_update_device() 497 &cmd); in iwl_mvm_power_update_device() [all …]
|
H A D | mld-mac.c | 33 cmd->he_support = 0; in iwl_mvm_mld_mac_ctxt_cmd_common() 34 cmd->eht_support = 0; in iwl_mvm_mld_mac_ctxt_cmd_common() 37 cmd->filter_flags = 0; in iwl_mvm_mld_mac_ctxt_cmd_common() 39 cmd->nic_not_ack_enabled = in iwl_mvm_mld_mac_ctxt_cmd_common() 87 0, sizeof(*cmd), cmd); in iwl_mvm_mld_mac_ctxt_send_cmd() 113 cmd.client.ctwin = in iwl_mvm_mld_mac_ctxt_cmd_sta() 119 cmd.client.is_assoc = 1; in iwl_mvm_mld_mac_ctxt_cmd_sta() 124 cmd.client.data_policy |= in iwl_mvm_mld_mac_ctxt_cmd_sta() 128 cmd.client.is_assoc = 0; in iwl_mvm_mld_mac_ctxt_cmd_sta() 153 cmd.client.data_policy |= in iwl_mvm_mld_mac_ctxt_cmd_sta() [all …]
|
/openbmc/linux/drivers/media/tuners/ |
H A D | si2157.c | 25 if (cmd->wlen) { in si2157_cmd_execute() 27 ret = i2c_master_send(client, cmd->args, cmd->wlen); in si2157_cmd_execute() 36 if (cmd->rlen) { in si2157_cmd_execute() 41 ret = i2c_master_recv(client, cmd->args, cmd->rlen); in si2157_cmd_execute() 159 cmd.wlen = 1; in si2157_find_and_load_firmware() 184 part_id, cmd.args[1], cmd.args[3], cmd.args[4], rom_id); in si2157_find_and_load_firmware() 193 part_id, cmd.args[1], cmd.args[3], cmd.args[4], rom_id); in si2157_find_and_load_firmware() 229 cmd.wlen = 4; in si2157_init() 230 cmd.rlen = 4; in si2157_init() 233 xtal_trim = cmd.args[2] | (cmd.args[3] << 8); in si2157_init() [all …]
|
/openbmc/linux/drivers/crypto/ |
H A D | atmel-i2c.c | 47 u8 *data = &cmd->count; in atmel_i2c_checksum() 77 cmd->param1 = 0; in atmel_i2c_init_random_cmd() 78 cmd->param2 = 0; in atmel_i2c_init_random_cmd() 229 ret = i2c_master_send(client, (u8 *)cmd, cmd->count + WORD_ADDR_SIZE); in atmel_i2c_send_receive() 234 msleep(cmd->msecs); in atmel_i2c_send_receive() 237 ret = i2c_master_recv(client, cmd->data, cmd->rxsize); in atmel_i2c_send_receive() 258 struct atmel_i2c_cmd *cmd = &work_data->cmd; in atmel_i2c_work_handler() local 300 cmd = kmalloc(sizeof(*cmd), GFP_KERNEL); in device_sanity_check() 301 if (!cmd) in device_sanity_check() 316 if (cmd->data[LOCK_CONFIG_IDX] || cmd->data[LOCK_VALUE_IDX]) { in device_sanity_check() [all …]
|
/openbmc/qemu/hw/scsi/ |
H A D | megasas.c | 273 if (next >= (uint8_t *)cmd->frame + cmd->pa_size) { in megasas_sgl_next() 287 cmd->flags = le16_to_cpu(cmd->frame->header.flags); in megasas_map_sgl() 536 trace_megasas_qf_enqueue(cmd->index, cmd->count, cmd->context, in megasas_enqueue_frame() 606 megasas_unmap_frame(cmd->state, cmd); in megasas_complete_command() 607 megasas_complete_frame(cmd->state, cmd->context); in megasas_complete_command() 1066 cmd->req = scsi_req_new(sdev, cmd->index, lun, cmdbuf, sizeof(cmdbuf), cmd); in megasas_pd_get_info_submit() 1084 cmd->req = scsi_req_new(sdev, cmd->index, lun, cmdbuf, sizeof(cmdbuf), cmd); in megasas_pd_get_info_submit() 1272 cmd->req = scsi_req_new(sdev, cmd->index, lun, cdb, sizeof(cdb), cmd); in megasas_ld_get_info_submit() 1664 megasas_finish_dcmd(cmd, cmd->iov_size); in megasas_finish_internal_dcmd() 1752 cmd->req = scsi_req_new(sdev, cmd->index, lun_id, cdb, cdb_len, cmd); in megasas_handle_scsi() [all …]
|
/openbmc/linux/drivers/target/tcm_fc/ |
H A D | tfc_cmd.c | 41 caller, cmd, cmd->sess, cmd->seq, se_cmd); in _ft_dump_cmd() 50 caller, cmd, sg, in _ft_dump_cmd() 53 sp = cmd->seq; in _ft_dump_cmd() 74 if (!cmd) in ft_free_cmd() 76 sess = cmd->sess; in ft_free_cmd() 148 cmd->seq = fc_seq_start_next(cmd->seq); in ft_queue_status() 201 cmd->seq = fc_seq_start_next(cmd->seq); in ft_write_pending() 365 rc = target_submit_tmr(&cmd->se_cmd, cmd->sess->se_sess, in ft_send_tm() 539 fc_seq_set_resp(cmd->seq, ft_recv_seq, cmd); in ft_send_work() 540 cmd->se_cmd.tag = fc_seq_exch(cmd->seq)->rxid; in ft_send_work() [all …]
|
/openbmc/linux/drivers/net/wireless/ti/wl1251/ |
H A D | cmd.c | 29 cmd = buf; in wl1251_cmd_send() 30 cmd->id = id; in wl1251_cmd_send() 213 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1251_cmd_data_path_rx() 214 if (!cmd) in wl1251_cmd_data_path_rx() 247 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1251_cmd_data_path_tx() 248 if (!cmd) in wl1251_cmd_data_path_tx() 350 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1251_cmd_read_memory() 351 if (!cmd) in wl1251_cmd_read_memory() 394 if (!cmd) in wl1251_cmd_template_set() 424 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1251_cmd_scan() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn31/ |
H A D | dcn31_panel_cntl.c | 49 memset(cmd, 0, sizeof(*cmd)); in dcn31_query_backlight_info() 52 cmd->panel_cntl.header.payload_bytes = sizeof(cmd->panel_cntl.data); in dcn31_query_backlight_info() 60 union dmub_rb_cmd cmd; in dcn31_get_16_bit_backlight_from_pwm() local 72 union dmub_rb_cmd cmd; in dcn31_panel_cntl_hw_init() local 77 memset(&cmd, 0, sizeof(cmd)); in dcn31_panel_cntl_hw_init() 80 cmd.panel_cntl.header.payload_bytes = sizeof(cmd.panel_cntl.data); in dcn31_panel_cntl_hw_init() 84 cmd.panel_cntl.data.bl_pwm_ref_div1 = in dcn31_panel_cntl_hw_init() 86 cmd.panel_cntl.data.bl_pwm_ref_div2 = in dcn31_panel_cntl_hw_init() 112 union dmub_rb_cmd cmd; in dcn31_is_panel_backlight_on() local 122 union dmub_rb_cmd cmd; in dcn31_is_panel_powered_on() local [all …]
|
/openbmc/u-boot/drivers/net/fsl-mc/dpio/ |
H A D | dpio.c | 16 struct mc_command cmd = { 0 }; in dpio_open() local 23 DPIO_CMD_OPEN(cmd, dpio_id); in dpio_open() 40 struct mc_command cmd = { 0 }; in dpio_close() local 57 struct mc_command cmd = { 0 }; in dpio_create() local 64 DPIO_CMD_CREATE(cmd, cfg); in dpio_create() 82 struct mc_command cmd = { 0 }; in dpio_destroy() local 100 struct mc_command cmd = { 0 }; in dpio_enable() local 115 struct mc_command cmd = { 0 }; in dpio_disable() local 130 struct mc_command cmd = { 0 }; in dpio_reset() local 146 struct mc_command cmd = { 0 }; in dpio_get_attributes() local [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | generate-cmdlist.sh | 15 while read cmd 18 /^NAME/,/perf-'"$cmd"'/H 21 s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/ 29 while read cmd 32 /^NAME/,/perf-'"$cmd"'/H 35 s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/ 44 while read cmd 47 /^NAME/,/perf-'"$cmd"'/H 50 s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/ 59 while read cmd [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpni.c | 100 struct fsl_mc_command cmd = { 0 }; in dpni_open() local 113 err = mc_send_command(mc_io, &cmd); in dpni_open() 138 struct fsl_mc_command cmd = { 0 }; in dpni_close() local 166 struct fsl_mc_command cmd = { 0 }; in dpni_set_pools() local 204 struct fsl_mc_command cmd = { 0 }; in dpni_enable() local 227 struct fsl_mc_command cmd = { 0 }; in dpni_disable() local 252 struct fsl_mc_command cmd = { 0 }; in dpni_is_enabled() local 285 struct fsl_mc_command cmd = { 0 }; in dpni_reset() local 317 struct fsl_mc_command cmd = { 0 }; in dpni_set_irq_enable() local 348 struct fsl_mc_command cmd = { 0 }; in dpni_get_irq_enable() local [all …]
|
H A D | dpsw.c | 41 struct fsl_mc_command cmd = { 0 }; in dpsw_open() local 53 err = mc_send_command(mc_io, &cmd); in dpsw_open() 58 *token = mc_cmd_hdr_read_token(&cmd); in dpsw_open() 76 struct fsl_mc_command cmd = { 0 }; in dpsw_close() local 84 return mc_send_command(mc_io, &cmd); in dpsw_close() 97 struct fsl_mc_command cmd = { 0 }; in dpsw_enable() local 118 struct fsl_mc_command cmd = { 0 }; in dpsw_disable() local 139 struct fsl_mc_command cmd = { 0 }; in dpsw_reset() local 168 struct fsl_mc_command cmd = { 0 }; in dpsw_set_irq_enable() local 202 struct fsl_mc_command cmd = { 0 }; in dpsw_set_irq_mask() local [all …]
|
/openbmc/u-boot/drivers/net/fsl-mc/ |
H A D | dpbp.c | 17 struct mc_command cmd = { 0 }; in dpbp_open() local 24 DPBP_CMD_OPEN(cmd, dpbp_id); in dpbp_open() 27 err = mc_send_command(mc_io, &cmd); in dpbp_open() 41 struct mc_command cmd = { 0 }; in dpbp_close() local 57 struct mc_command cmd = { 0 }; in dpbp_create() local 83 struct mc_command cmd = { 0 }; in dpbp_destroy() local 101 struct mc_command cmd = { 0 }; in dpbp_enable() local 115 struct mc_command cmd = { 0 }; in dpbp_disable() local 130 struct mc_command cmd = { 0 }; in dpbp_reset() local 146 struct mc_command cmd = { 0 }; in dpbp_get_attributes() local [all …]
|
/openbmc/linux/drivers/nvme/target/ |
H A D | tcp.c | 210 return nvme_is_write(cmd->req.cmd) && in nvmet_tcp_has_data_in() 221 return !nvme_is_write(cmd->req.cmd) && in nvmet_tcp_need_data_out() 228 return nvme_is_write(cmd->req.cmd) && cmd->pdu_len && in nvmet_tcp_has_inline_data() 348 sg = &cmd->req.sg[cmd->sg_idx]; in nvmet_tcp_build_pdu_iovec() 394 if (!nvme_is_write(cmd->req.cmd)) in nvmet_tcp_map_data() 406 cmd->cur_sg = cmd->req.sg; in nvmet_tcp_map_data() 553 if (unlikely(cmd == queue->cmd)) { in nvmet_tcp_queue_response() 564 nvme_is_write(cmd->req.cmd)) in nvmet_tcp_queue_response() 577 cmd->req.execute(&cmd->req); in nvmet_tcp_execute_request() 998 queue->cmd = cmd; in nvmet_tcp_handle_h2c_data_pdu() [all …]
|
/openbmc/qemu/qapi/ |
H A D | qmp-registry.c | 22 QmpCommand *cmd = g_malloc0(sizeof(*cmd)); in qmp_register_command() local 27 cmd->name = name; in qmp_register_command() 28 cmd->fn = fn; in qmp_register_command() 29 cmd->enabled = true; in qmp_register_command() 30 cmd->options = options; in qmp_register_command() 37 QmpCommand *cmd; in qmp_find_command() local 41 return cmd; in qmp_find_command() 50 QmpCommand *cmd; in qmp_toggle_command() local 74 return cmd->enabled; in qmp_command_is_enabled() 79 return cmd->name; in qmp_command_name() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | power.c | 43 struct iwl_powertable_cmd cmd; member 166 memset(cmd, 0, sizeof(*cmd)); in iwl_static_sleep_cmd() 168 *cmd = table[lvl].cmd; in iwl_static_sleep_cmd() 221 cmd->sleep_interval[i] = in iwl_static_sleep_cmd() 226 cmd->sleep_interval[i] = in iwl_static_sleep_cmd() 227 cmd->sleep_interval[i+1]; in iwl_static_sleep_cmd() 246 memset(cmd, 0, sizeof(*cmd)); in iwl_power_sleep_cam_cmd() 324 if (!memcmp(&priv->power_data.sleep_cmd, cmd, sizeof(*cmd)) && !force) in iwl_power_set_mode() 331 memcpy(&priv->power_data.sleep_cmd_next, cmd, sizeof(*cmd)); in iwl_power_set_mode() 353 memcpy(&priv->power_data.sleep_cmd, cmd, sizeof(*cmd)); in iwl_power_set_mode() [all …]
|