/openbmc/linux/drivers/mtd/devices/ |
H A D | mchp48l640.c | 62 buf[0] = cmd; in mchp48l640_mkcmd() 75 cmd[1] = 0x00; in mchp48l640_read_status() 77 ret = spi_write_then_read(flash->spi, &cmd[0], 1, &cmd[1], 1); in mchp48l640_read_status() 80 *status = cmd[1]; in mchp48l640_read_status() 171 unsigned char *cmd; in mchp48l640_write_page() local 176 if (!cmd) in mchp48l640_write_page() 201 kfree(cmd); in mchp48l640_write_page() 204 kfree(cmd); in mchp48l640_write_page() 244 if (!cmd) in mchp48l640_read_page() 258 kfree(cmd); in mchp48l640_read_page() [all …]
|
/openbmc/phosphor-host-ipmid/test/ |
H A D | oemrouter_unittest.cpp | 24 EXPECT_EQ(IPMI_CMD_WILDCARD, cmd); in ipmi_register_callback() 68 EXPECT_EQ(0x78, cmd); in RegisterTwoWays() 82 EXPECT_EQ(*nextCmd, cmd); in RegisterTwoWays() 112 ipmi_cmd_t cmd; in TEST() local 116 RegisterTwoWays(&cmd); in TEST() 131 ipmi_cmd_t cmd; in TEST() local 135 RegisterTwoWays(&cmd); in TEST() 139 cmd = 0x89; in TEST() 145 cmd = 0x67; in TEST() 153 ipmi_cmd_t cmd; in TEST() local [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | fdomain.c | 225 offset = scsi_bufflen(cmd) - scsi_get_resid(cmd); in fdomain_read_data() 226 virt = scsi_kmap_atomic_sg(scsi_sglist(cmd), scsi_sg_count(cmd), in fdomain_read_data() 233 scsi_set_resid(cmd, scsi_get_resid(cmd) - len); in fdomain_read_data() 247 offset = scsi_bufflen(cmd) - scsi_get_resid(cmd); in fdomain_write_data() 253 virt = scsi_kmap_atomic_sg(scsi_sglist(cmd), scsi_sg_count(cmd), in fdomain_write_data() 260 scsi_set_resid(cmd, scsi_get_resid(cmd) - len); in fdomain_write_data() 289 outb(BIT(cmd->device->host->this_id) | BIT(scmd_id(cmd)), in fdomain_work() 298 if (fdomain_select(cmd->device->host, scmd_id(cmd))) { in fdomain_work() 366 fdomain_read_data(cmd); in fdomain_work() 416 scsi_set_resid(cmd, scsi_bufflen(cmd)); in fdomain_queue() [all …]
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | scsw.h | 141 struct cmd_scsw cmd; member 247 return scsw->cmd.key; in scsw_key() 262 return scsw->cmd.eswf; in scsw_eswf() 277 return scsw->cmd.cc; in scsw_cc() 292 return scsw->cmd.ectl; in scsw_ectl() 307 return scsw->cmd.pno; in scsw_pno() 322 return scsw->cmd.fctl; in scsw_fctl() 337 return scsw->cmd.actl; in scsw_actl() 352 return scsw->cmd.stctl; in scsw_stctl() 543 if (!scsw->cmd.fctl) in scsw_cmd_is_valid_pno() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | wmi.c | 373 memset(&cmd, 0, sizeof(cmd)); in ath6kl_wmi_implicit_create_pstream() 1637 cmd->rssi = rssi; in ath6kl_wmi_set_rssi_filter_cmd() 2171 cmd->flag = flag; in ath6kl_wmi_probedssid_cmd() 2397 memcpy(cmd->pmkid, pmkid, sizeof(cmd->pmkid)); in ath6kl_wmi_setpmkid_cmd() 2400 memset(cmd->pmkid, 0, sizeof(cmd->pmkid)); in ath6kl_wmi_setpmkid_cmd() 2579 memcpy(cmd, params, sizeof(*cmd)); in ath6kl_wmi_create_pstream_cmd() 3067 cmd->dbM = dbM; in ath6kl_wmi_set_tx_pwr_cmd() 3197 cmd->band, cmd->ht_enable, cmd->ht40_supported, in ath6kl_wmi_set_htcap_cmd() 3198 cmd->ht20_sgi, cmd->ht40_sgi, cmd->intolerant_40mhz, in ath6kl_wmi_set_htcap_cmd() 3358 le16_to_cpu(cmd->st_seq_no), cmd->win_sz); in ath6kl_wmi_addba_req_event_rx() [all …]
|
/openbmc/linux/drivers/net/wireless/ti/wl12xx/ |
H A D | scan.c | 94 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1271_scan_send() 96 if (!cmd || !trigger) { in wl1271_scan_send() 121 cmd->channels, in wl1271_scan_send() 163 wl1271_dump(DEBUG_SCAN, "SCAN: ", cmd, sizeof(*cmd)); in wl1271_scan_send() 165 ret = wl1271_cmd_send(wl, CMD_SCAN, cmd, sizeof(*cmd), 0); in wl1271_scan_send() 172 kfree(cmd); in wl1271_scan_send() 187 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_scan_stop() 188 if (!cmd) { in wl12xx_scan_stop() 200 kfree(cmd); in wl12xx_scan_stop() 295 memcpy(cmd->passive, cmd_channels->passive, sizeof(cmd->passive)); in wl12xx_adjust_channels() [all …]
|
/openbmc/qemu/tests/rocker/ |
H A D | bridge | 11 simp ssh tut sw1 --cmd "sudo /sbin/ip link add name br0 type bridge" 12 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p1 master br0" 13 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p2 master br0" 29 simp ssh tut sw1 --cmd "sudo ifconfig br0 up" 30 simp ssh tut sw1 --cmd "sudo ifconfig sw1p1 up" 31 simp ssh tut sw1 --cmd "sudo ifconfig sw1p2 up" 32 simp ssh tut sw1 --cmd "sudo ifconfig br0 11.0.0.3/24" 36 simp ssh tut h1 --cmd "sudo ifconfig sw1p1 11.0.0.1/24" 37 simp ssh tut h2 --cmd "sudo ifconfig sw1p1 11.0.0.2/24" 41 simp ssh tut h1 --cmd "ping -c10 11.0.0.2 >/dev/null" [all …]
|
/openbmc/linux/drivers/bus/fsl-mc/ |
H A D | dpmcp.c | 33 struct fsl_mc_command cmd = { 0 }; in dpmcp_open() local 38 cmd.header = mc_encode_cmd_header(DPMCP_CMDID_OPEN, in dpmcp_open() 40 cmd_params = (struct dpmcp_cmd_open *)cmd.params; in dpmcp_open() 44 err = mc_send_command(mc_io, &cmd); in dpmcp_open() 49 *token = mc_cmd_hdr_read_token(&cmd); in dpmcp_open() 69 struct fsl_mc_command cmd = { 0 }; in dpmcp_close() local 72 cmd.header = mc_encode_cmd_header(DPMCP_CMDID_CLOSE, in dpmcp_close() 76 return mc_send_command(mc_io, &cmd); in dpmcp_close() 91 struct fsl_mc_command cmd = { 0 }; in dpmcp_reset() local 94 cmd.header = mc_encode_cmd_header(DPMCP_CMDID_RESET, in dpmcp_reset() [all …]
|
/openbmc/linux/drivers/target/ |
H A D | target_core_pr.c | 92 switch (cmd->t_task_cdb[0]) { in target_scsi2_reservation_check() 231 cmd->se_lun->unpacked_lun, cmd->orig_fe_lun, in target_scsi2_reservation_release() 279 cmd->orig_fe_lun, in target_scsi2_reservation_reserve() 293 cmd->se_lun->unpacked_lun, cmd->orig_fe_lun, in target_scsi2_reservation_reserve() 1463 struct se_cmd *cmd, in core_scsi3_decode_spec_i_port() argument 1543 cmd->data_length); in core_scsi3_decode_spec_i_port() 2976 cmd); in core_scsi3_pro_preempt() 3221 cmd->data_length); in core_scsi3_emulate_pro_register_and_move() 3547 if (!cmd->se_sess || !cmd->se_lun) { in target_try_pr_out_pt() 3606 if (!cmd->se_sess) in target_scsi3_emulate_pr_out() [all …]
|
H A D | target_core_iblock.c | 371 bio->bi_private = cmd; in iblock_get_bio() 399 if (cmd) { in iblock_end_io_flush() 431 bio->bi_private = cmd; in iblock_execute_sync_cache() 501 if (cmd->prot_op) { in iblock_execute_write_same() 507 if (!cmd->t_data_nents) in iblock_execute_write_same() 510 sg = &cmd->t_data_sg[0]; in iblock_execute_write_same() 528 cmd->priv = ibr; in iblock_execute_write_same() 767 cmd->priv = ibr; in iblock_execute_rw() 786 sg_miter_start(&prot_miter, cmd->t_prot_sg, cmd->t_prot_nents, in iblock_execute_rw() 1059 if (cmd->data_length < 16) in iblock_pr_read_reservation() [all …]
|
/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | commands.c | 83 struct qlink_cmd *cmd; in qtnf_cmd_send_with_reply() local 94 mac_id = cmd->macid; in qtnf_cmd_send_with_reply() 95 vif_id = cmd->vifid; in qtnf_cmd_send_with_reply() 167 cmd->macid = macid; in qtnf_cmd_alloc_new_cmdskb() 168 cmd->vifid = vifid; in qtnf_cmd_alloc_new_cmdskb() 263 cmd->pbss = s->pbss; in qtnf_cmd_send_start_ap() 275 aen = &cmd->aen; in qtnf_cmd_send_start_ap() 1611 cmd->band = qband; in qtnf_cmd_band_info_get() 2119 memcpy(&cmd->ht_capa, &sme->ht_capa, sizeof(cmd->ht_capa)); in qtnf_cmd_send_connect() 2122 memcpy(&cmd->vht_capa, &sme->vht_capa, sizeof(cmd->vht_capa)); in qtnf_cmd_send_connect() [all …]
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | tcm_qla2xxx.c | 291 return cmd; in tcm_qla2xxx_get_cmd() 296 target_free_tag(cmd->sess->se_sess, &cmd->se_cmd); in tcm_qla2xxx_rel_cmd() 392 cmd, kref_read(&cmd->se_cmd.cmd_kref), in tcm_qla2xxx_write_pending() 635 cmd = NULL; in tcm_qla2xxx_find_cmd_by_tag() 639 return cmd; in tcm_qla2xxx_find_cmd_by_tag() 654 cmd, kref_read(&cmd->se_cmd.cmd_kref), in tcm_qla2xxx_queue_data_in() 667 cmd->offset = 0; in tcm_qla2xxx_queue_data_in() 695 cmd, kref_read(&cmd->se_cmd.cmd_kref), in tcm_qla2xxx_queue_status() 696 cmd->se_cmd.transport_state, cmd->se_cmd.t_state, in tcm_qla2xxx_queue_status() 701 cmd->sg = NULL; in tcm_qla2xxx_queue_status() [all …]
|
/openbmc/qemu/hw/scsi/ |
H A D | scsi-generic.c | 474 scsi_generic_command_dump(cmd, r->req.cmd.len); in scsi_send_command() 578 uint8_t cmd[6]; in scsi_generic_set_vpd_bl_emulation() local 583 memset(cmd, 0, sizeof(cmd)); in scsi_generic_set_vpd_bl_emulation() 586 cmd[1] = 1; in scsi_generic_set_vpd_bl_emulation() 587 cmd[2] = 0x00; in scsi_generic_set_vpd_bl_emulation() 590 ret = scsi_SG_IO_FROM_DEV(s->conf.blk, cmd, sizeof(cmd), in scsi_generic_set_vpd_bl_emulation() 619 memset(cmd, 0, sizeof(cmd)); in scsi_generic_read_device_identification() 622 cmd[1] = 1; in scsi_generic_read_device_identification() 623 cmd[2] = 0x83; in scsi_generic_read_device_identification() 626 ret = scsi_SG_IO_FROM_DEV(s->conf.blk, cmd, sizeof(cmd), in scsi_generic_read_device_identification() [all …]
|
/openbmc/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-mailbox.c | 179 write_sync(cmd, &mbox->cmd); in write_mailbox() 214 cmd < 0 || cmd > 255 || api_info[cmd].name == NULL) { in ivtv_api_call() 235 itv->api_cache[cmd].last_jiffies + in ivtv_api_call() 237 !memcmp(data, itv->api_cache[cmd].data, sizeof(itv->api_cache[cmd].data))) { in ivtv_api_call() 242 flags = api_info[cmd].flags; in ivtv_api_call() 270 write_mailbox(mbox, cmd, args, data); in ivtv_api_call() 272 memcpy(itv->api_cache[cmd].data, data, sizeof(itv->api_cache[cmd].data)); in ivtv_api_call() 305 api_info[cmd].name, in ivtv_api_call() 327 return ivtv_api(priv, cmd, in, data); in ivtv_api_func() 340 return ivtv_api(itv, cmd, args, data); in ivtv_vapi_result() [all …]
|
/openbmc/linux/drivers/crypto/ccp/ |
H A D | tee-dev.c | 90 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in tee_alloc_cmd_buffer() 91 if (!cmd) in tee_alloc_cmd_buffer() 99 cmd->hi_addr, cmd->low_addr, cmd->size); in tee_alloc_cmd_buffer() 101 return cmd; in tee_alloc_cmd_buffer() 106 kfree(cmd); in tee_free_cmd_buffer() 128 if (!cmd) { in tee_init_ring() 161 tee_free_cmd_buffer(cmd); in tee_init_ring() 248 struct tee_ring_cmd *cmd; in tee_submit_cmd() local 299 cmd->cmd_id = cmd_id; in tee_submit_cmd() 301 memset(&cmd->buf[0], 0, sizeof(cmd->buf)); in tee_submit_cmd() [all …]
|
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | sta_cmd.c | 78 cmd->size = in mwifiex_cmd_mac_control() 213 cmd->size = in mwifiex_cmd_tx_rate_cfg() 238 cmd->size = in mwifiex_cmd_tx_power_cfg() 254 cmd->size = cpu_to_le16(le16_to_cpu(cmd->size) + in mwifiex_cmd_tx_power_cfg() 434 cmd->result = 0; in mwifiex_cmd_802_11_mac_address() 829 cmd->size = in mwifiex_cmd_802_11_key_material_v1() 1022 &cmd->params.domain_info; in mwifiex_cmd_802_11d_domain_info() 1080 cmd->result = 0; in mwifiex_cmd_ibss_coalescing_status() 1202 &cmd->params.eeprom; in mwifiex_cmd_reg_access() 1238 cmd->result = 0; in mwifiex_cmd_pcie_host_spec() [all …]
|
/openbmc/linux/net/nfc/ |
H A D | digital_core.c | 121 if (!cmd) { in digital_wq_cmd_complete() 132 cmd->resp->data, cmd->resp->len, false); in digital_wq_cmd_complete() 134 cmd->cmd_cb(ddev, cmd->cb_context, cmd->resp); in digital_wq_cmd_complete() 137 kfree(cmd); in digital_wq_cmd_complete() 165 if (!cmd || cmd->pending) { in digital_wq_cmd() 174 if (cmd->req) in digital_wq_cmd() 176 cmd->req->data, cmd->req->len, false); in digital_wq_cmd() 180 rc = ddev->ops->in_send_cmd(ddev, cmd->req, cmd->timeout, in digital_wq_cmd() 222 kfree(cmd); in digital_wq_cmd() 234 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in digital_send_cmd() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | ftm-responder.c | 100 cmd->cmd_valid_fields |= in iwl_mvm_ftm_responder_set_ndp() 133 cmd.cmd_valid_fields |= in iwl_mvm_ftm_responder_cmd() 136 cmd.bss_color = 1; in iwl_mvm_ftm_responder_cmd() 137 cmd.min_time_between_msr = in iwl_mvm_ftm_responder_cmd() 180 .data[0] = &cmd, in iwl_mvm_ftm_responder_dyn_cfg_v2() 181 .len[0] = sizeof(cmd), in iwl_mvm_ftm_responder_dyn_cfg_v2() 222 .data[0] = &cmd, in iwl_mvm_ftm_responder_dyn_cfg_v3() 223 .len[0] = sizeof(cmd), in iwl_mvm_ftm_responder_dyn_cfg_v3() 230 cmd.valid_flags = 0; in iwl_mvm_ftm_responder_dyn_cfg_v3() 264 memcpy(cmd.addr, hltk_data->addr, sizeof(cmd.addr)); in iwl_mvm_ftm_responder_dyn_cfg_v3() [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | gotoolchain.py | 52 cmd = "cd %s/src/%s/%s; " % (self.go_path, proj, name) 53 cmd = cmd + ". %s; " % self.env_SDK 54 cmd = cmd + "export GOPATH=%s; " % self.go_path 55 cmd = cmd + "export GOFLAGS=-modcacherw; " 56 cmd = cmd + "export CGO_ENABLED=1; " 57 cmd = cmd + "export GOPROXY=https://proxy.golang.org,direct; " 58 cmd = cmd + "${CROSS_COMPILE}go %s" % gocmd 59 return runCmd(cmd).status
|
/openbmc/linux/drivers/infiniband/ulp/isert/ |
H A D | ib_isert.c | 1035 if (!cmd) { in isert_allocate_cmd() 1044 return cmd; in isert_allocate_cmd() 1098 if (cmd->write_data_done == cmd->se_cmd.data_length) { in isert_handle_scsi_cmd() 1243 if (!cmd) in isert_rx_opcode() 1258 if (!cmd) in isert_rx_opcode() 1271 if (!cmd) in isert_rx_opcode() 1279 if (!cmd) in isert_rx_opcode() 1290 if (!cmd) in isert_rx_opcode() 1606 transport_generic_request_failure(cmd, cmd->pi_err); in isert_rdma_write_done() 1675 iscsit_tmr_post_handler(cmd, cmd->conn); in isert_do_control_comp() [all …]
|
/openbmc/linux/drivers/net/wwan/t7xx/ |
H A D | t7xx_state_monitor.c | 103 *cmd->ret = result; in fsm_finish_command() 107 kfree(cmd); in fsm_finish_command() 126 list_del(&cmd->entry); in fsm_flush_event_cmd_qs() 175 if (cmd) in fsm_routine_exception() 205 if (cmd) in fsm_routine_exception() 376 fsm_routine_exception(ctl, cmd, FIELD_GET(FSM_CMD_EX_REASON, cmd->flag)); in fsm_main_thread() 405 if (!cmd) in t7xx_fsm_append_cmd() 409 cmd->cmd_id = cmd_id; in t7xx_fsm_append_cmd() 410 cmd->flag = flag; in t7xx_fsm_append_cmd() 412 cmd->done = &done; in t7xx_fsm_append_cmd() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-octeon-core.c | 406 u64 cmd; in octeon_i2c_hlc_read() local 418 cmd |= SW_TWSI_OP_10; in octeon_i2c_hlc_read() 420 cmd |= SW_TWSI_OP_7; in octeon_i2c_hlc_read() 448 u64 cmd; in octeon_i2c_hlc_write() local 460 cmd |= SW_TWSI_OP_10; in octeon_i2c_hlc_write() 462 cmd |= SW_TWSI_OP_7; in octeon_i2c_hlc_write() 492 u64 cmd; in octeon_i2c_hlc_comp_read() local 505 cmd |= SW_TWSI_OP_7_IA; in octeon_i2c_hlc_comp_read() 510 cmd |= SW_TWSI_EIA; in octeon_i2c_hlc_comp_read() 547 u64 cmd, ext = 0; in octeon_i2c_hlc_comp_write() local [all …]
|
/openbmc/linux/drivers/comedi/drivers/ |
H A D | usbduxfast.c | 229 struct comedi_cmd *cmd = &async->cmd; in usbduxfast_ai_handle_urb() local 321 struct comedi_cmd *cmd) in usbduxfast_ai_check_chanlist() argument 326 if (cmd->chanlist_len > 3 && cmd->chanlist_len != 16) { in usbduxfast_ai_check_chanlist() 351 struct comedi_cmd *cmd) in usbduxfast_ai_cmdtest() argument 384 if (!cmd->chanlist_len) in usbduxfast_ai_cmdtest() 389 cmd->chanlist_len != 1 && cmd->chanlist_len != 16) in usbduxfast_ai_cmdtest() 393 cmd->chanlist_len); in usbduxfast_ai_cmdtest() 426 if (cmd->chanlist && cmd->chanlist_len > 0) in usbduxfast_ai_cmdtest() 439 struct comedi_cmd *cmd = &s->async->cmd; in usbduxfast_ai_inttrig() local 468 struct comedi_cmd *cmd = &s->async->cmd; in usbduxfast_ai_cmd() local [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | init.c | 59 struct iwl_soc_configuration_cmd cmd = {}; in iwl_set_soc_latency() local 62 .data[0] = &cmd, in iwl_set_soc_latency() 63 .len[0] = sizeof(cmd), in iwl_set_soc_latency() 107 struct iwl_rfh_queue_config *cmd; in iwl_configure_rxq() local 128 cmd = kzalloc(size, GFP_KERNEL); in iwl_configure_rxq() 129 if (!cmd) in iwl_configure_rxq() 132 cmd->num_queues = num_queues; in iwl_configure_rxq() 137 cmd->data[i].q_num = i + 1; in iwl_configure_rxq() 141 cmd->data[i].urbd_stts_wrptr = in iwl_configure_rxq() 147 hcmd.data[0] = cmd; in iwl_configure_rxq() [all …]
|
/openbmc/linux/drivers/misc/ibmasm/ |
H A D | dot_command.h | 41 struct dot_command_header *cmd = (struct dot_command_header *)buffer; in get_dot_command_size() local 42 return sizeof(struct dot_command_header) + cmd->command_size + cmd->data_size; in get_dot_command_size() 48 unsigned char *cmd = buffer + sizeof(struct dot_command_header); in get_dot_command_timeout() local 53 if ((cmd[0] == 6) && (cmd[1] == 3) && (cmd[2] == 1)) in get_dot_command_timeout() 56 if ((cmd[0] == 7) && (cmd[1] == 1)) in get_dot_command_timeout() 58 if (cmd[0] == 8) in get_dot_command_timeout()
|