/openbmc/linux/drivers/gpu/drm/i915/selftests/ |
H A D | i915_request.c | 964 u32 *cmd; in empty_batch() local 972 if (IS_ERR(cmd)) { in empty_batch() 973 err = PTR_ERR(cmd); in empty_batch() 1123 u32 *cmd; in recursive_batch() local 1141 if (IS_ERR(cmd)) { in recursive_batch() 1142 err = PTR_ERR(cmd); in recursive_batch() 1173 u32 *cmd; in recursive_batch_resolve() local 1176 if (IS_ERR(cmd)) in recursive_batch_resolve() 1177 return PTR_ERR(cmd); in recursive_batch_resolve() 1431 u32 *cmd; in live_sequential_engines() local [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | qcom_nandc.c | 311 __le32 cmd; member 701 return ®s->cmd; in offset_to_nandc_reg() 2549 int cmd; in qcom_op_cmd_mapping() local 2553 cmd = OP_RESET_DEVICE; in qcom_op_cmd_mapping() 2556 cmd = OP_FETCH_ID; in qcom_op_cmd_mapping() 2562 cmd = OP_PAGE_READ; in qcom_op_cmd_mapping() 2566 cmd = OP_BLOCK_ERASE; in qcom_op_cmd_mapping() 2569 cmd = OP_CHECK_STATUS; in qcom_op_cmd_mapping() 2572 cmd = OP_PROGRAM_PAGE; in qcom_op_cmd_mapping() 2581 cmd = OP_PAGE_READ; in qcom_op_cmd_mapping() [all …]
|
/openbmc/linux/drivers/net/ethernet/smsc/ |
H A D | smc91x.c | 1527 struct ethtool_link_ksettings *cmd) in smc_ethtool_get_link_ksettings() argument 1541 cmd->base.speed = SPEED_10; in smc_ethtool_get_link_ksettings() 1543 cmd->base.speed = SPEED_100; in smc_ethtool_get_link_ksettings() 1545 cmd->base.autoneg = AUTONEG_DISABLE; in smc_ethtool_get_link_ksettings() 1546 cmd->base.port = 0; in smc_ethtool_get_link_ksettings() 1551 cmd->link_modes.supported, supported); in smc_ethtool_get_link_ksettings() 1569 if (cmd->base.autoneg != AUTONEG_DISABLE || in smc_ethtool_set_link_ksettings() 1570 cmd->base.speed != SPEED_10 || in smc_ethtool_set_link_ksettings() 1571 (cmd->base.duplex != DUPLEX_HALF && in smc_ethtool_set_link_ksettings() 1572 cmd->base.duplex != DUPLEX_FULL) || in smc_ethtool_set_link_ksettings() [all …]
|
/openbmc/linux/net/bluetooth/ |
H A D | hci_sock.c | 1010 switch (cmd) { in hci_sock_bound_ioctl() 1043 BT_DBG("cmd %x arg %lx", cmd, arg); in hci_sock_ioctl() 1046 switch (cmd) { in hci_sock_ioctl() 1110 switch (cmd) { in hci_sock_ioctl() 1150 return hci_dev_cmd(cmd, argp); in hci_sock_ioctl() 1158 err = hci_sock_bound_ioctl(sk, cmd, arg); in hci_sock_ioctl() 1169 switch (cmd) { in hci_sock_compat_ioctl() 1174 return hci_sock_ioctl(sock, cmd, arg); in hci_sock_compat_ioctl() 1637 struct sk_buff *cmd; in hci_mgmt_cmd() local 1642 if (cmd) { in hci_mgmt_cmd() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | mac80211.c | 400 struct iwlagn_wowlan_status *cmd; member 410 if (iwl_rx_packet_payload_len(pkt) != sizeof(*resume_data->cmd)) { in iwl_resume_status_fn() 414 memcpy(resume_data->cmd, pkt->data, sizeof(*resume_data->cmd)); in iwl_resume_status_fn() 440 .cmd = &status_data, in iwlagn_mac_resume() 639 if (cmd == DISABLE_KEY && key->hw_key_idx == WEP_INVALID_OFFSET) in iwlagn_mac_set_key() 655 if (cmd == SET_KEY) in iwlagn_mac_set_key() 663 switch (cmd) { in iwlagn_mac_set_key() 1530 struct iwl_addsta_cmd cmd = { in iwl_sta_modify_ps_wake() local 1536 iwl_send_add_sta(priv, &cmd, CMD_ASYNC); in iwl_sta_modify_ps_wake() 1541 enum sta_notify_cmd cmd, in iwlagn_mac_sta_notify() argument [all …]
|
/openbmc/linux/drivers/net/ethernet/altera/ |
H A D | altera_tse_main.c | 693 unsigned int cmd = 0; in init_mac() local 743 cmd = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in init_mac() 745 cmd &= ~MAC_CMDCFG_CRC_FWD; /* CRC Removal */ in init_mac() 749 cmd |= MAC_CMDCFG_CNTL_FRM_ENA; in init_mac() 750 cmd &= ~MAC_CMDCFG_TX_ENA; in init_mac() 751 cmd &= ~MAC_CMDCFG_RX_ENA; in init_mac() 754 cmd &= ~MAC_CMDCFG_HD_ENA; in init_mac() 755 cmd &= ~MAC_CMDCFG_ETH_SPEED; in init_mac() 756 cmd &= ~MAC_CMDCFG_ENA_10; in init_mac() 758 csrwr32(cmd, priv->mac_dev, tse_csroffs(command_config)); in init_mac() [all …]
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-mem2mem.c | 1452 if (ec->cmd != V4L2_ENC_CMD_STOP && ec->cmd != V4L2_ENC_CMD_START) in v4l2_m2m_ioctl_try_encoder_cmd() 1463 if (dc->cmd != V4L2_DEC_CMD_STOP && dc->cmd != V4L2_DEC_CMD_START) in v4l2_m2m_ioctl_try_decoder_cmd() 1468 if (dc->cmd == V4L2_DEC_CMD_STOP) { in v4l2_m2m_ioctl_try_decoder_cmd() 1470 } else if (dc->cmd == V4L2_DEC_CMD_START) { in v4l2_m2m_ioctl_try_decoder_cmd() 1485 if (ec->cmd != V4L2_ENC_CMD_STOP && ec->cmd != V4L2_ENC_CMD_START) in v4l2_m2m_encoder_cmd() 1488 if (ec->cmd == V4L2_ENC_CMD_STOP) in v4l2_m2m_encoder_cmd() 1508 if (dc->cmd != V4L2_DEC_CMD_STOP && dc->cmd != V4L2_DEC_CMD_START) in v4l2_m2m_decoder_cmd() 1511 if (dc->cmd == V4L2_DEC_CMD_STOP) in v4l2_m2m_decoder_cmd() 1545 if (dc->cmd != V4L2_DEC_CMD_FLUSH) in v4l2_m2m_ioctl_stateless_try_decoder_cmd()
|
/openbmc/linux/fs/gfs2/ |
H A D | file.c | 326 switch(cmd) { in gfs2_ioctl() 339 switch(cmd) { in gfs2_compat_ioctl() 348 return gfs2_ioctl(filp, cmd, (unsigned long)compat_ptr(arg)); in gfs2_compat_ioctl() 1431 static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl) in gfs2_lock() argument 1444 if (cmd == F_CANCELLK) in gfs2_lock() 1446 else if (IS_GETLK(cmd)) in gfs2_lock() 1451 return dlm_posix_lock(ls->ls_dlm, ip->i_no_addr, file, cmd, fl); in gfs2_lock() 1469 static int do_flock(struct file *file, int cmd, struct file_lock *fl) in do_flock() argument 1482 if (!IS_SETLKW(cmd)) in do_flock() 1552 static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl) in gfs2_flock() argument [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-img-scb.c | 464 static const char *img_i2c_atomic_op_name(unsigned int cmd) in img_i2c_atomic_op_name() argument 466 if (unlikely(cmd >= ARRAY_SIZE(img_i2c_atomic_cmd_names))) in img_i2c_atomic_op_name() 468 return img_i2c_atomic_cmd_names[cmd]; in img_i2c_atomic_op_name() 472 static void img_i2c_atomic_op(struct img_i2c *i2c, int cmd, u8 data) in img_i2c_atomic_op() argument 474 i2c->at_cur_cmd = cmd; in img_i2c_atomic_op() 478 if (cmd == CMD_GEN_DATA && i2c->mode == MODE_ATOMIC) { in img_i2c_atomic_op() 491 img_i2c_atomic_op_name(cmd), cmd, data); in img_i2c_atomic_op() 492 i2c->at_t_done = (cmd == CMD_RET_DATA || cmd == CMD_RET_ACK); in img_i2c_atomic_op() 497 ((cmd & OVERRIDE_CMD_MASK) << OVERRIDE_CMD_SHIFT) | in img_i2c_atomic_op()
|
/openbmc/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 3945-mac.c | 351 struct il3945_tx_cmd *tx_cmd = (struct il3945_tx_cmd *)cmd->cmd.payload; in il3945_build_tx_cmd_hwcrypto() 395 struct il3945_tx_cmd *tx_cmd = (struct il3945_tx_cmd *)cmd->cmd.payload; in il3945_build_tx_cmd_basic() 524 out_cmd = txq->cmd[idx]; in il3945_tx_skb() 536 out_cmd->hdr.cmd = C_TX; in il3945_tx_skb() 643 struct il_host_cmd cmd = { in il3945_get_measurement() local 666 cmd.len = sizeof(spectrum); in il3945_get_measurement() 1225 il_get_cmd_string(pkt->hdr.cmd), pkt->hdr.cmd); in il3945_rx_handle() 1231 i, il_get_cmd_string(pkt->hdr.cmd), pkt->hdr.cmd); in il3945_rx_handle() 2624 cmd.len += in il3945_request_scan() 2627 cmd.data = scan; in il3945_request_scan() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_x550.c | 434 struct ixgbe_hic_phy_activity_req cmd; in ixgbe_fw_phy_activity() member 443 hic.cmd.hdr.cmd = FW_PHY_ACT_REQ_CMD; in ixgbe_fw_phy_activity() 446 hic.cmd.port_number = hw->bus.lan_id; in ixgbe_fw_phy_activity() 451 rc = ixgbe_host_interface_command(hw, &hic.cmd, sizeof(hic.cmd), in ixgbe_fw_phy_activity() 800 write_cmd.hdr.cmd = FW_INT_PHY_REQ_CMD; in ixgbe_write_iosf_sb_reg_x550a() 824 struct ixgbe_hic_internal_phy_req cmd; in ixgbe_read_iosf_sb_reg_x550a() member 830 hic.cmd.hdr.cmd = FW_INT_PHY_REQ_CMD; in ixgbe_read_iosf_sb_reg_x550a() 833 hic.cmd.port_number = hw->bus.lan_id; in ixgbe_read_iosf_sb_reg_x550a() 835 hic.cmd.address = cpu_to_be16(reg_addr); in ixgbe_read_iosf_sb_reg_x550a() 837 status = ixgbe_host_interface_command(hw, &hic.cmd, sizeof(hic.cmd), in ixgbe_read_iosf_sb_reg_x550a() [all …]
|
/openbmc/linux/sound/aoa/soundbus/i2sbus/ |
H A D | pcm.c | 334 unsigned int cmd, stopaddr; in i2sbus_pcm_prepare() local 385 cmd = (in? INPUT_MORE: OUTPUT_MORE) | BR_IFSET | INTR_ALWAYS; in i2sbus_pcm_prepare() 389 command->command = cpu_to_le16(cmd); in i2sbus_pcm_prepare() 530 static int i2sbus_pcm_trigger(struct i2sbus_dev *i2sdev, int in, int cmd) in i2sbus_pcm_trigger() argument 541 switch (cmd) { in i2sbus_pcm_trigger() 749 static int i2sbus_playback_trigger(struct snd_pcm_substream *substream, int cmd) in i2sbus_playback_trigger() argument 757 return i2sbus_pcm_trigger(i2sdev, 0, cmd); in i2sbus_playback_trigger() 817 static int i2sbus_record_trigger(struct snd_pcm_substream *substream, int cmd) in i2sbus_record_trigger() argument 825 return i2sbus_pcm_trigger(i2sdev, 1, cmd); in i2sbus_record_trigger()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | qp.c | 448 struct mlx4_update_qp_context *cmd; in mlx4_update_qp() local 460 cmd = (struct mlx4_update_qp_context *)mailbox->buf; in mlx4_update_qp() 464 cmd->qp_context.pri_path.grh_mylmc = params->smac_index; in mlx4_update_qp() 479 cmd->qp_context.pri_path.fl |= in mlx4_update_qp() 487 cmd->qp_context.param3 |= cpu_to_be32(MLX4_STRIP_VLAN); in mlx4_update_qp() 492 cmd->qp_context.rate_limit_params = cpu_to_be16((params->rate_unit << 14) | params->rate_val); in mlx4_update_qp() 503 cmd->qp_context.qos_vport = params->qos_vport; in mlx4_update_qp() 506 cmd->primary_addr_path_mask = cpu_to_be64(pri_addr_path_mask); in mlx4_update_qp() 507 cmd->qp_mask = cpu_to_be64(qp_mask); in mlx4_update_qp()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | cs35l41-lib.c | 1429 static bool cs35l41_check_cspl_mbox_sts(enum cs35l41_cspl_mbox_cmd cmd, in cs35l41_check_cspl_mbox_sts() argument 1432 switch (cmd) { in cs35l41_check_cspl_mbox_sts() 1453 enum cs35l41_cspl_mbox_cmd cmd) in cs35l41_set_cspl_mbox_cmd() argument 1459 ret = regmap_write(regmap, CS35L41_DSP_VIRT1_MBOX_1, cmd); in cs35l41_set_cspl_mbox_cmd() 1461 if (cmd != CSPL_MBOX_CMD_OUT_OF_HIBERNATE) in cs35l41_set_cspl_mbox_cmd() 1476 if (!cs35l41_check_cspl_mbox_sts(cmd, sts)) in cs35l41_set_cspl_mbox_cmd() 1477 dev_dbg(dev, "[%u] cmd %u returned invalid sts %u", i, cmd, sts); in cs35l41_set_cspl_mbox_cmd() 1482 if (cmd != CSPL_MBOX_CMD_OUT_OF_HIBERNATE) in cs35l41_set_cspl_mbox_cmd() 1483 dev_err(dev, "Failed to set mailbox cmd %u (status %u)\n", cmd, sts); in cs35l41_set_cspl_mbox_cmd()
|
/openbmc/linux/drivers/net/ethernet/qualcomm/ |
H A D | qca_spi.c | 108 __be16 cmd; in qcaspi_write_burst() local 116 cmd = cpu_to_be16(QCA7K_SPI_WRITE | QCA7K_SPI_EXTERNAL); in qcaspi_write_burst() 117 transfer[0].tx_buf = &cmd; in qcaspi_write_burst() 162 __be16 cmd; in qcaspi_read_burst() local 169 cmd = cpu_to_be16(QCA7K_SPI_READ | QCA7K_SPI_EXTERNAL); in qcaspi_read_burst() 170 transfer[0].tx_buf = &cmd; in qcaspi_read_burst() 212 qcaspi_tx_cmd(struct qcaspi *qca, u16 cmd) in qcaspi_tx_cmd() argument 223 tx_data = cpu_to_be16(cmd); in qcaspi_tx_cmd() 224 transfer.len = sizeof(cmd); in qcaspi_tx_cmd()
|
/openbmc/linux/net/wireless/ |
H A D | nl80211.c | 1060 int flags, u8 cmd) in nl80211hdr_put() argument 5859 switch (cmd) { in nl80211_valid_auth_type() 11660 switch (cmd) { in __cfg80211_alloc_event_skb() 16800 .cmd = NL80211_CMD_GET_KEY, 16807 .cmd = NL80211_CMD_SET_KEY, 16816 .cmd = NL80211_CMD_NEW_KEY, 16824 .cmd = NL80211_CMD_DEL_KEY, 17146 .cmd = NL80211_CMD_FRAME, 17408 .cmd = NL80211_CMD_VENDOR, 17721 u32 cmd) in nl80211_prep_scan_msg() argument [all …]
|
/openbmc/linux/drivers/platform/x86/ |
H A D | huawei-wmi.c | 44 u64 cmd; member 298 arg.cmd = MICMUTE_LED_SET; in huawei_wmi_micmute_led_set() 301 return huawei_wmi_cmd(arg.cmd, NULL, 0); in huawei_wmi_micmute_led_set() 351 arg.cmd = BATTERY_THRESH_SET; in huawei_wmi_battery_set() 368 err = huawei_wmi_cmd(arg.cmd, NULL, 0); in huawei_wmi_battery_set() 550 arg.cmd = FN_LOCK_SET; in huawei_wmi_fn_lock_set() 553 return huawei_wmi_cmd(arg.cmd, NULL, 0); in huawei_wmi_fn_lock_set()
|
/openbmc/linux/drivers/net/hamradio/ |
H A D | mkiss.c | 454 int cmd = (p[1] & 0xff); in ax_encaps() local 455 switch(cmd) { in ax_encaps() 468 cmd = 0; in ax_encaps() 470 ax->crcauto = (cmd ? 0 : 1); in ax_encaps() 472 ax->dev->name, cmd); in ax_encaps() 809 static int mkiss_ioctl(struct tty_struct *tty, unsigned int cmd, in mkiss_ioctl() argument 821 switch (cmd) { in mkiss_ioctl()
|
/openbmc/linux/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-isp.c | 479 int cmd, ret; in __ctrl_set_aewb_lock() local 481 cmd = ae_lock ? ISP_AA_COMMAND_STOP : ISP_AA_COMMAND_START; in __ctrl_set_aewb_lock() 482 isp->aa.cmd = cmd; in __ctrl_set_aewb_lock() 492 cmd = awb_lock ? ISP_AA_COMMAND_STOP : ISP_AA_COMMAND_START; in __ctrl_set_aewb_lock() 493 isp->aa.cmd = cmd; in __ctrl_set_aewb_lock()
|
/openbmc/linux/drivers/perf/ |
H A D | arm_pmu.c | 740 static void cpu_pm_pmu_setup(struct arm_pmu *armpmu, unsigned long cmd) in cpu_pm_pmu_setup() argument 751 switch (cmd) { in cpu_pm_pmu_setup() 771 static int cpu_pm_pmu_notify(struct notifier_block *b, unsigned long cmd, in cpu_pm_pmu_notify() argument 785 if (cmd == CPU_PM_EXIT && armpmu->reset) in cpu_pm_pmu_notify() 791 switch (cmd) { in cpu_pm_pmu_notify() 794 cpu_pm_pmu_setup(armpmu, cmd); in cpu_pm_pmu_notify() 798 cpu_pm_pmu_setup(armpmu, cmd); in cpu_pm_pmu_notify()
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | lm8323.c | 199 static int lm8323_read(struct lm8323_chip *lm, u8 cmd, u8 *buf, int len) in lm8323_read() argument 207 ret = i2c_master_send(lm->client, &cmd, 1); in lm8323_read() 209 ret = i2c_master_send(lm->client, &cmd, 1); in lm8323_read() 212 cmd); in lm8323_read() 416 static void lm8323_write_pwm_one(struct lm8323_pwm *pwm, int pos, u16 cmd) in lm8323_write_pwm_one() argument 419 (cmd & 0xff00) >> 8, cmd & 0x00ff); in lm8323_write_pwm_one()
|
/openbmc/linux/sound/soc/sof/intel/ |
H A D | hda.h | 624 struct snd_pcm_substream *substream, int cmd); 644 struct hdac_ext_stream *hext_stream, int cmd); 776 int hda_dsp_trace_trigger(struct snd_sof_dev *sdev, int cmd); 842 int sdw_hda_dai_trigger(struct snd_pcm_substream *substream, int cmd, 969 struct snd_pcm_substream *substream, int cmd); 971 struct snd_pcm_substream *substream, int cmd); 973 struct snd_pcm_substream *substream, int cmd);
|
/openbmc/qemu/hw/misc/macio/ |
H A D | pmu.c | 470 if (desc->command != s->cmd) { in pmu_dispatch_cmd() 487 trace_pmu_dispatch_unknown_cmd(s->cmd); in pmu_dispatch_cmd() 556 s->cmd = ms->sr; in pmu_update() 558 s->cmdlen = pmu_data_len[s->cmd][0]; in pmu_update() 559 s->rsplen = pmu_data_len[s->cmd][1]; in pmu_update() 565 trace_pmu_debug_protocol_cmd(s->cmd, s->cmdlen, s->rsplen); in pmu_update() 686 VMSTATE_UINT8(cmd, PMUState),
|
/openbmc/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptvf_reqmgr.c | 298 iq_cmd.cmd.u = 0; in process_request() 299 iq_cmd.cmd.s.opcode = cpu_to_be16(cpt_req->opcode.flags); in process_request() 300 iq_cmd.cmd.s.param1 = cpu_to_be16(cpt_req->param1); in process_request() 301 iq_cmd.cmd.s.param2 = cpu_to_be16(cpt_req->param2); in process_request() 302 iq_cmd.cmd.s.dlen = cpu_to_be16(cpt_req->dlen); in process_request() 305 cpu_to_be64s(&iq_cmd.cmd.u); in process_request()
|
/openbmc/linux/drivers/virt/ |
H A D | fsl_hypervisor.c | 412 static long fsl_hv_ioctl(struct file *file, unsigned int cmd, in fsl_hv_ioctl() argument 418 switch (cmd) { in fsl_hv_ioctl() 445 _IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), in fsl_hv_ioctl() 446 _IOC_SIZE(cmd)); in fsl_hv_ioctl()
|