/linux-6.6.21/drivers/net/ethernet/asix/ |
D | ax88796c_spi.c | 24 ax_spi->cmd_buf[0] = AX_SPICMD_EXIT_PWD; /* OP */ in axspi_wakeup() 25 ret = spi_write(ax_spi->spi, ax_spi->cmd_buf, 1); in axspi_wakeup() 36 ax_spi->cmd_buf[0] = AX_SPICMD_READ_STATUS; in axspi_read_status() 37 ret = spi_write_then_read(ax_spi->spi, ax_spi->cmd_buf, 1, (u8 *)status, 3); in axspi_read_status() 51 memcpy(ax_spi->cmd_buf, ax88796c_rx_cmd_buf, 5); in axspi_read_rxq() 53 xfer->tx_buf = ax_spi->cmd_buf; in axspi_read_rxq() 82 ax_spi->cmd_buf[0] = 0x03; /* OP code read register */ in axspi_read_reg() 83 ax_spi->cmd_buf[1] = reg; /* register address */ in axspi_read_reg() 84 ax_spi->cmd_buf[2] = 0xFF; /* dumy cycle */ in axspi_read_reg() 85 ax_spi->cmd_buf[3] = 0xFF; /* dumy cycle */ in axspi_read_reg() [all …]
|
/linux-6.6.21/drivers/net/wireless/ath/ath6kl/ |
D | bmi.c | 132 memset(ar->bmi.cmd_buf, 0, size); in ath6kl_bmi_read() 144 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); in ath6kl_bmi_read() 146 memcpy(&(ar->bmi.cmd_buf[offset]), &addr, sizeof(addr)); in ath6kl_bmi_read() 148 memcpy(&(ar->bmi.cmd_buf[offset]), &rx_len, sizeof(rx_len)); in ath6kl_bmi_read() 151 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_read() 157 ret = ath6kl_hif_bmi_read(ar, ar->bmi.cmd_buf, rx_len); in ath6kl_bmi_read() 163 memcpy(&buf[len - len_remain], ar->bmi.cmd_buf, rx_len); in ath6kl_bmi_read() 193 memset(ar->bmi.cmd_buf, 0, ar->bmi.max_data_size + header); in ath6kl_bmi_write() 216 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); in ath6kl_bmi_write() 218 memcpy(&(ar->bmi.cmd_buf[offset]), &addr, sizeof(addr)); in ath6kl_bmi_write() [all …]
|
/linux-6.6.21/drivers/net/ethernet/wiznet/ |
D | w5100-spi.c | 122 u8 cmd_buf[4] ____cacheline_aligned; member 190 .tx_buf = spi_priv->cmd_buf, in w5200_spi_readbulk() 191 .len = sizeof(spi_priv->cmd_buf), in w5200_spi_readbulk() 202 spi_priv->cmd_buf[0] = addr >> 8; in w5200_spi_readbulk() 203 spi_priv->cmd_buf[1] = addr; in w5200_spi_readbulk() 204 spi_priv->cmd_buf[2] = len >> 8; in w5200_spi_readbulk() 205 spi_priv->cmd_buf[3] = len; in w5200_spi_readbulk() 220 .tx_buf = spi_priv->cmd_buf, in w5200_spi_writebulk() 221 .len = sizeof(spi_priv->cmd_buf), in w5200_spi_writebulk() 232 spi_priv->cmd_buf[0] = addr >> 8; in w5200_spi_writebulk() [all …]
|
/linux-6.6.21/drivers/watchdog/ |
D | diag288_wdt.c | 72 static char *cmd_buf; variable 99 len = strscpy(cmd_buf, cmd, MAX_CMDLEN); in diag288_str() 102 ASCEBC(cmd_buf, MAX_CMDLEN); in diag288_str() 103 EBC_TOUPPER(cmd_buf, MAX_CMDLEN); in diag288_str() 105 return diag288(func, timeout, virt_to_phys(cmd_buf), len); in diag288_str() 196 cmd_buf = kmalloc(MAX_CMDLEN, GFP_KERNEL); in diag288_init() 197 if (!cmd_buf) { in diag288_init() 205 kfree(cmd_buf); in diag288_init() 227 kfree(cmd_buf); in diag288_exit()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/ |
D | dc_helper.c | 43 struct dmub_rb_cmd_read_modify_write *cmd_buf = &offload->cmd_data.read_modify_write; in submit_dmub_read_modify_write() local 47 cmd_buf->header.payload_bytes = in submit_dmub_read_modify_write() 52 memset(cmd_buf, 0, sizeof(*cmd_buf)); in submit_dmub_read_modify_write() 62 struct dmub_rb_cmd_burst_write *cmd_buf = &offload->cmd_data.burst_write; in submit_dmub_burst_write() local 64 cmd_buf->header.payload_bytes = in submit_dmub_burst_write() 69 memset(cmd_buf, 0, sizeof(*cmd_buf)); in submit_dmub_burst_write() 78 struct dmub_rb_cmd_reg_wait *cmd_buf = &offload->cmd_data.reg_wait; in submit_dmub_reg_wait() local 82 memset(cmd_buf, 0, sizeof(*cmd_buf)); in submit_dmub_reg_wait() 149 struct dmub_rb_cmd_burst_write *cmd_buf = &offload->cmd_data.burst_write; in dmub_reg_value_burst_set_pack() local 156 addr != cmd_buf->addr) { in dmub_reg_value_burst_set_pack() [all …]
|
/linux-6.6.21/drivers/gpu/drm/tiny/ |
D | gm12u320.c | 92 unsigned char *cmd_buf; member 172 gm12u320->cmd_buf = drmm_kmalloc(&gm12u320->dev, CMD_SIZE, GFP_KERNEL); in gm12u320_usb_alloc() 173 if (!gm12u320->cmd_buf) in gm12u320_usb_alloc() 206 memcpy(gm12u320->cmd_buf, &cmd_misc, CMD_SIZE); in gm12u320_misc_request() 207 gm12u320->cmd_buf[20] = req_a; in gm12u320_misc_request() 208 gm12u320->cmd_buf[21] = req_b; in gm12u320_misc_request() 209 gm12u320->cmd_buf[22] = arg_a; in gm12u320_misc_request() 210 gm12u320->cmd_buf[23] = arg_b; in gm12u320_misc_request() 211 gm12u320->cmd_buf[24] = arg_c; in gm12u320_misc_request() 212 gm12u320->cmd_buf[25] = arg_d; in gm12u320_misc_request() [all …]
|
/linux-6.6.21/drivers/net/ethernet/intel/i40e/ |
D | i40e_debugfs.c | 779 char *cmd_buf, *cmd_buf_tmp; in i40e_dbg_command_write() local 791 cmd_buf = kzalloc(count + 1, GFP_KERNEL); in i40e_dbg_command_write() 792 if (!cmd_buf) in i40e_dbg_command_write() 794 bytes_not_copied = copy_from_user(cmd_buf, buffer, count); in i40e_dbg_command_write() 796 kfree(cmd_buf); in i40e_dbg_command_write() 799 cmd_buf[count] = '\0'; in i40e_dbg_command_write() 801 cmd_buf_tmp = strchr(cmd_buf, '\n'); in i40e_dbg_command_write() 804 count = cmd_buf_tmp - cmd_buf + 1; in i40e_dbg_command_write() 807 if (strncmp(cmd_buf, "add vsi", 7) == 0) { in i40e_dbg_command_write() 809 cnt = sscanf(&cmd_buf[7], "%i", &vsi_seid); in i40e_dbg_command_write() [all …]
|
D | i40e_adminq.h | 18 struct i40e_virt_mem cmd_buf; /* command buffer memory */ member 52 (&(((struct i40e_asq_cmd_details *)((R).cmd_buf.va))[i]))
|
/linux-6.6.21/drivers/misc/cardreader/ |
D | rtsx_usb.c | 89 ucr->cmd_buf[PACKET_TYPE] = seq_type; in rtsx_usb_seq_cmd_hdr() 90 ucr->cmd_buf[5] = (u8)(len >> 8); in rtsx_usb_seq_cmd_hdr() 91 ucr->cmd_buf[6] = (u8)len; in rtsx_usb_seq_cmd_hdr() 92 ucr->cmd_buf[8] = (u8)(addr >> 8); in rtsx_usb_seq_cmd_hdr() 93 ucr->cmd_buf[9] = (u8)addr; in rtsx_usb_seq_cmd_hdr() 96 ucr->cmd_buf[STAGE_FLAG] = 0; in rtsx_usb_seq_cmd_hdr() 98 ucr->cmd_buf[STAGE_FLAG] = STAGE_R; in rtsx_usb_seq_cmd_hdr() 113 memcpy(ucr->cmd_buf + SEQ_WRITE_DATA_OFFSET, data, len); in rtsx_usb_seq_write_register() 117 ucr->cmd_buf, cmd_len, 0, NULL, 100); in rtsx_usb_seq_write_register() 135 ucr->cmd_buf, 12, 0, NULL, 100); in rtsx_usb_seq_read_register() [all …]
|
/linux-6.6.21/drivers/media/usb/as102/ |
D | as102_fw.c | 159 unsigned char *cmd_buf = NULL; in as102_fw_upload() local 173 cmd_buf = kzalloc(MAX_FW_PKT_SIZE, GFP_KERNEL); in as102_fw_upload() 174 if (cmd_buf == NULL) { in as102_fw_upload() 188 errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); in as102_fw_upload() 212 errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); in as102_fw_upload() 222 kfree(cmd_buf); in as102_fw_upload()
|
/linux-6.6.21/drivers/input/misc/ |
D | ims-pcu.c | 98 u8 cmd_buf[IMS_PCU_BUF_SIZE]; member 434 memcpy(pcu->cmd_buf, pcu->read_buf, pcu->read_pos); in ims_pcu_handle_response() 655 pcu->cmd_buf[0] = command; in __ims_pcu_execute_bl_command() 657 memcpy(&pcu->cmd_buf[1], data, len); in __ims_pcu_execute_bl_command() 660 IMS_PCU_CMD_BOOTLOADER, pcu->cmd_buf, len + 1, in __ims_pcu_execute_bl_command() 666 pcu->cmd_buf[0], error); in __ims_pcu_execute_bl_command() 670 if (expected_response && pcu->cmd_buf[2] != expected_response) { in __ims_pcu_execute_bl_command() 673 pcu->cmd_buf[2], expected_response); in __ims_pcu_execute_bl_command() 703 &pcu->cmd_buf[IMS_PCU_INFO_PART_OFFSET], in ims_pcu_get_info() 706 &pcu->cmd_buf[IMS_PCU_INFO_DOM_OFFSET], in ims_pcu_get_info() [all …]
|
/linux-6.6.21/drivers/macintosh/ |
D | smu.c | 85 struct smu_cmd_buf *cmd_buf; /* command buffer virtual */ member 129 smu->cmd_buf->cmd = cmd->cmd; in smu_start_cmd() 130 smu->cmd_buf->length = cmd->data_len; in smu_start_cmd() 131 memcpy(smu->cmd_buf->data, cmd->data_buf, cmd->data_len); in smu_start_cmd() 134 faddr = (unsigned long)smu->cmd_buf; in smu_start_cmd() 135 fend = faddr + smu->cmd_buf->length + 2; in smu_start_cmd() 197 faddr = (unsigned long)smu->cmd_buf; in smu_db_intr() 202 if (ack != smu->cmd_buf->cmd) { in smu_db_intr() 204 ack, smu->cmd_buf->cmd); in smu_db_intr() 207 reply_len = rc == 0 ? smu->cmd_buf->length : 0; in smu_db_intr() [all …]
|
/linux-6.6.21/drivers/net/wireless/ath/carl9170/ |
D | cmd.h | 88 __ar->cmd_buf[2 * __nreg + 1] = cpu_to_le32(r); \ 89 __ar->cmd_buf[2 * __nreg + 2] = cpu_to_le32(v); \ 95 (u8 *) &__ar->cmd_buf[1], 0, NULL); \ 111 (u8 *) &__ar->cmd_buf[1], 0, NULL); \
|
/linux-6.6.21/drivers/input/touchscreen/ |
D | wdt87xx_i2c.c | 359 u8 cmd_buf[CMD_BUF_SIZE]; in wdt87xx_send_command() local 362 cmd_buf[CMD_REPORT_ID_OFFSET] = VND_REQ_WRITE; in wdt87xx_send_command() 363 cmd_buf[CMD_TYPE_OFFSET] = VND_SET_COMMAND_DATA; in wdt87xx_send_command() 364 put_unaligned_le16((u16)cmd, &cmd_buf[CMD_INDEX_OFFSET]); in wdt87xx_send_command() 371 put_unaligned_le32((value & 0xFF), &cmd_buf[CMD_LENGTH_OFFSET]); in wdt87xx_send_command() 375 put_unaligned_le16(CMD_SFLCK_KEY, &cmd_buf[CMD_KEY_OFFSET]); in wdt87xx_send_command() 379 put_unaligned_le16(CMD_SFUNL_KEY, &cmd_buf[CMD_KEY_OFFSET]); in wdt87xx_send_command() 385 put_unaligned_le32(value, &cmd_buf[CMD_KEY_OFFSET]); in wdt87xx_send_command() 389 cmd_buf[CMD_REPORT_ID_OFFSET] = 0; in wdt87xx_send_command() 394 return wdt87xx_set_feature(client, cmd_buf, sizeof(cmd_buf)); in wdt87xx_send_command() [all …]
|
/linux-6.6.21/drivers/input/tablet/ |
D | pegasus_notetaker.c | 96 u8 *cmd_buf; in pegasus_control_msg() local 98 cmd_buf = kmalloc(sizeof_buf, GFP_KERNEL); in pegasus_control_msg() 99 if (!cmd_buf) in pegasus_control_msg() 102 cmd_buf[0] = NOTETAKER_REPORT_ID; in pegasus_control_msg() 103 cmd_buf[1] = len; in pegasus_control_msg() 104 memcpy(cmd_buf + 2, data, len); in pegasus_control_msg() 110 0, 0, cmd_buf, sizeof_buf, in pegasus_control_msg() 113 kfree(cmd_buf); in pegasus_control_msg()
|
/linux-6.6.21/drivers/net/wireless/marvell/mwifiex/ |
D | uap_cmd.c | 297 mwifiex_uap_bss_wpa(u8 **tlv_buf, void *cmd_buf, u16 *param_size) in mwifiex_uap_bss_wpa() argument 303 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_wpa() 409 mwifiex_uap_bss_wep(u8 **tlv_buf, void *cmd_buf, u16 *param_size) in mwifiex_uap_bss_wep() argument 415 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_wep() 469 mwifiex_uap_bss_param_prepare(u8 *tlv, void *cmd_buf, u16 *param_size) in mwifiex_uap_bss_param_prepare() argument 487 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_param_prepare() 604 mwifiex_uap_bss_wpa(&tlv, cmd_buf, &cmd_size); in mwifiex_uap_bss_param_prepare() 606 mwifiex_uap_bss_wep(&tlv, cmd_buf, &cmd_size); in mwifiex_uap_bss_param_prepare() 697 static int mwifiex_uap_custom_ie_prepare(u8 *tlv, void *cmd_buf, u16 *ie_size) in mwifiex_uap_custom_ie_prepare() argument 699 struct mwifiex_ie_list *ap_ie = cmd_buf; in mwifiex_uap_custom_ie_prepare() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/display/ |
D | intel_dsb.c | 29 u32 *cmd_buf; member 104 u32 *buf = dsb->cmd_buf; in intel_dsb_emit() 121 const u32 *buf = dsb->cmd_buf; in intel_dsb_prev_ins_is_write() 175 u32 *buf = dsb->cmd_buf; in intel_dsb_reg_write() 211 memset(&dsb->cmd_buf[dsb->free_pos], 0, in intel_dsb_align_tail() 327 dsb->cmd_buf = buf; in intel_dsb_prepare()
|
/linux-6.6.21/include/linux/ |
D | rtsx_usb.h | 50 u8 *cmd_buf; member 130 ucr->cmd_buf[0] = 'R'; \ 131 ucr->cmd_buf[1] = 'T'; \ 132 ucr->cmd_buf[2] = 'C'; \ 133 ucr->cmd_buf[3] = 'R'; \ 140 ucr->cmd_buf[PACKET_TYPE] = BATCH_CMD; in rtsx_usb_init_cmd()
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_controlq.h | 44 void *cmd_buf; /* command buffer memory */ member 74 #define ICE_CTL_Q_DETAILS(R, i) (&(((struct ice_sq_cd *)((R).cmd_buf))[i]))
|
/linux-6.6.21/drivers/net/ethernet/intel/iavf/ |
D | iavf_adminq.h | 19 struct iavf_virt_mem cmd_buf; /* command buffer memory */ member 53 (&(((struct iavf_asq_cmd_details *)((R).cmd_buf.va))[i]))
|
/linux-6.6.21/drivers/crypto/hisilicon/ |
D | debugfs.c | 448 static int qm_cmd_write_dump(struct hisi_qm *qm, const char *cmd_buf) in qm_cmd_write_dump() argument 454 s = kstrdup(cmd_buf, GFP_KERNEL); in qm_cmd_write_dump() 494 char *cmd_buf, *cmd_buf_tmp; in qm_cmd_write() local 515 cmd_buf = memdup_user_nul(buffer, count); in qm_cmd_write() 516 if (IS_ERR(cmd_buf)) { in qm_cmd_write() 517 ret = PTR_ERR(cmd_buf); in qm_cmd_write() 521 cmd_buf_tmp = strchr(cmd_buf, '\n'); in qm_cmd_write() 524 count = cmd_buf_tmp - cmd_buf + 1; in qm_cmd_write() 527 ret = qm_cmd_write_dump(qm, cmd_buf); in qm_cmd_write() 529 kfree(cmd_buf); in qm_cmd_write() [all …]
|
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/ |
D | hinic_port.c | 602 struct hinic_cmdq_buf cmd_buf; in hinic_rss_set_indir_tbl() local 616 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_rss_set_indir_tbl() 622 cmd_buf.size = sizeof(*indir_tbl); in hinic_rss_set_indir_tbl() 624 indir_tbl = cmd_buf.buf; in hinic_rss_set_indir_tbl() 643 &cmd_buf, &out_param); in hinic_rss_set_indir_tbl() 656 &cmd_buf, &out_param); in hinic_rss_set_indir_tbl() 663 hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_rss_set_indir_tbl() 703 struct hinic_cmdq_buf cmd_buf; in hinic_set_rss_type() local 716 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_set_rss_type() 732 cmd_buf.size = sizeof(struct hinic_rss_context_tbl); in hinic_set_rss_type() [all …]
|
/linux-6.6.21/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_pro.c | 354 pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_set_ts() 366 pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_set_bitrate() 387 pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_set_bus() 397 pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_set_silent() 407 pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_set_filter() 418 pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_set_led() 432 pc = pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_get_can_channel_id() 454 pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_set_can_channel_id()
|
D | pcan_usb.c | 164 dev->cmd_buf[PCAN_USB_CMD_FUNC] = f; in pcan_usb_send_cmd() 165 dev->cmd_buf[PCAN_USB_CMD_NUM] = n; in pcan_usb_send_cmd() 168 memcpy(dev->cmd_buf + PCAN_USB_CMD_ARGS, in pcan_usb_send_cmd() 173 dev->cmd_buf, PCAN_USB_CMD_LEN, &actual_length, in pcan_usb_send_cmd() 201 dev->cmd_buf, PCAN_USB_CMD_LEN, &actual_length, in pcan_usb_wait_rsp() 207 memcpy(p, dev->cmd_buf + PCAN_USB_CMD_ARGS, in pcan_usb_wait_rsp()
|
/linux-6.6.21/drivers/net/wireless/ath/ath9k/ |
D | wmi.c | 309 u8 *cmd_buf, u32 cmd_len, in ath9k_wmi_cmd() argument 330 if (cmd_len != 0 && cmd_buf != NULL) { in ath9k_wmi_cmd() 331 skb_put_data(skb, cmd_buf, cmd_len); in ath9k_wmi_cmd()
|