Home
last modified time | relevance | path

Searched refs:cmd_buf (Results 1 – 25 of 90) sorted by relevance

1234

/Linux-v5.4/drivers/net/wireless/ath/ath6kl/
Dbmi.c132 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-v5.4/drivers/net/ethernet/wiznet/
Dw5100-spi.c122 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-v5.4/drivers/net/ethernet/hisilicon/hns3/
Dhns3_debugfs.c16 const char *cmd_buf) in hns3_dbg_queue_info() argument
32 cnt = kstrtouint(&cmd_buf[11], 0, &queue_num); in hns3_dbg_queue_info()
160 static int hns3_dbg_bd_info(struct hnae3_handle *h, const char *cmd_buf) in hns3_dbg_bd_info() argument
172 cnt = sscanf(&cmd_buf[8], "%u %u", &q_num, &tx_index); in hns3_dbg_bd_info()
318 char *cmd_buf, *cmd_buf_tmp; in hns3_dbg_cmd_write() local
333 cmd_buf = kzalloc(count + 1, GFP_KERNEL); in hns3_dbg_cmd_write()
334 if (!cmd_buf) in hns3_dbg_cmd_write()
337 uncopied_bytes = copy_from_user(cmd_buf, buffer, count); in hns3_dbg_cmd_write()
339 kfree(cmd_buf); in hns3_dbg_cmd_write()
343 cmd_buf[count] = '\0'; in hns3_dbg_cmd_write()
[all …]
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_debugfs.c704 char *cmd_buf, *cmd_buf_tmp; in i40e_dbg_command_write() local
716 cmd_buf = kzalloc(count + 1, GFP_KERNEL); in i40e_dbg_command_write()
717 if (!cmd_buf) in i40e_dbg_command_write()
719 bytes_not_copied = copy_from_user(cmd_buf, buffer, count); in i40e_dbg_command_write()
721 kfree(cmd_buf); in i40e_dbg_command_write()
724 cmd_buf[count] = '\0'; in i40e_dbg_command_write()
726 cmd_buf_tmp = strchr(cmd_buf, '\n'); in i40e_dbg_command_write()
729 count = cmd_buf_tmp - cmd_buf + 1; in i40e_dbg_command_write()
732 if (strncmp(cmd_buf, "add vsi", 7) == 0) { in i40e_dbg_command_write()
734 cnt = sscanf(&cmd_buf[7], "%i", &vsi_seid); in i40e_dbg_command_write()
[all …]
Di40e_adminq.h19 struct i40e_virt_mem cmd_buf; /* command buffer memory */ member
53 (&(((struct i40e_asq_cmd_details *)((R).cmd_buf.va))[i]))
/Linux-v5.4/drivers/gpu/drm/tiny/
Dgm12u320.c89 unsigned char *cmd_buf; member
163 gm12u320->cmd_buf = kmalloc(CMD_SIZE, GFP_KERNEL); in gm12u320_usb_alloc()
164 if (!gm12u320->cmd_buf) in gm12u320_usb_alloc()
203 kfree(gm12u320->cmd_buf); in gm12u320_usb_free()
212 memcpy(gm12u320->cmd_buf, &cmd_misc, CMD_SIZE); in gm12u320_misc_request()
213 gm12u320->cmd_buf[20] = req_a; in gm12u320_misc_request()
214 gm12u320->cmd_buf[21] = req_b; in gm12u320_misc_request()
215 gm12u320->cmd_buf[22] = arg_a; in gm12u320_misc_request()
216 gm12u320->cmd_buf[23] = arg_b; in gm12u320_misc_request()
217 gm12u320->cmd_buf[24] = arg_c; in gm12u320_misc_request()
[all …]
/Linux-v5.4/drivers/media/usb/as102/
Das102_fw.c159 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-v5.4/drivers/misc/cardreader/
Drtsx_usb.c89 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-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_debugfs.c121 const char *cmd_buf) in hclge_dbg_dump_reg_common() argument
125 const char *s = &cmd_buf[strlen(reg_info->reg_type) + IDX_OFFSET]; in hclge_dbg_dump_reg_common()
180 static void hclge_dbg_dump_dcb(struct hclge_dev *hdev, const char *cmd_buf) in hclge_dbg_dump_dcb() argument
190 cnt = sscanf(cmd_buf, "%i %i %i %i %i %i", in hclge_dbg_dump_dcb()
280 static void hclge_dbg_dump_reg_cmd(struct hclge_dev *hdev, const char *cmd_buf) in hclge_dbg_dump_reg_cmd() argument
288 if (!strncmp(cmd_buf, reg_info->reg_type, in hclge_dbg_dump_reg_cmd()
290 hclge_dbg_dump_reg_common(hdev, reg_info, cmd_buf); in hclge_dbg_dump_reg_cmd()
295 if (strncmp(cmd_buf, "dcb", 3) == 0) { in hclge_dbg_dump_reg_cmd()
296 hclge_dbg_dump_dcb(hdev, &cmd_buf[sizeof("dcb")]); in hclge_dbg_dump_reg_cmd()
553 const char *cmd_buf) in hclge_dbg_dump_tm_map() argument
[all …]
/Linux-v5.4/drivers/input/misc/
Dims-pcu.c98 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-v5.4/drivers/macintosh/
Dsmu.c84 struct smu_cmd_buf *cmd_buf; /* command buffer virtual */ member
128 smu->cmd_buf->cmd = cmd->cmd; in smu_start_cmd()
129 smu->cmd_buf->length = cmd->data_len; in smu_start_cmd()
130 memcpy(smu->cmd_buf->data, cmd->data_buf, cmd->data_len); in smu_start_cmd()
133 faddr = (unsigned long)smu->cmd_buf; in smu_start_cmd()
134 fend = faddr + smu->cmd_buf->length + 2; in smu_start_cmd()
196 faddr = (unsigned long)smu->cmd_buf; in smu_db_intr()
201 if (ack != smu->cmd_buf->cmd) { in smu_db_intr()
203 ack, smu->cmd_buf->cmd); in smu_db_intr()
206 reply_len = rc == 0 ? smu->cmd_buf->length : 0; in smu_db_intr()
[all …]
/Linux-v5.4/drivers/staging/uwb/i1480/dfu/
Dusb.c106 memcpy(i1480->cmd_buf, buffer + itr, buffer_size); in i1480_usb_write()
111 i1480->cmd_buf, buffer_size, 100 /* FIXME: arbitrary */); in i1480_usb_write()
156 i1480->cmd_buf + itr, itr_size, in i1480_usb_read()
283 struct uwb_rccb *cmd = i1480->cmd_buf; in i1480_usb_cmd()
365 i1480->cmd_buf = kmalloc_array(2, i1480->buf_size, GFP_KERNEL); in i1480_usb_probe()
366 if (i1480->cmd_buf == NULL) { in i1480_usb_probe()
371 i1480->evt_buf = i1480->cmd_buf + i1480->buf_size; in i1480_usb_probe()
398 kfree(i1480->cmd_buf); in i1480_usb_probe()
Dmac.c169 if (memcmp(i1480->cmd_buf, bin + src_itr, result)) { in i1480_fw_cmp()
170 u8 *buf = i1480->cmd_buf; in i1480_fw_cmp()
256 u32 *buffer = (u32 *)i1480->cmd_buf; in mac_fw_upload_enable()
280 u32 *buffer = (u32 *)i1480->cmd_buf; in mac_fw_upload_disable()
377 struct uwb_rccb *cmd = (void *) i1480->cmd_buf; in i1480_cmd_reset()
408 u32 *val = (u32 *) i1480->cmd_buf; in i1480_fw_is_running_q()
Dphy.c41 struct i1480_cmd_mpi_write *cmd = i1480->cmd_buf; in i1480_mpi_write()
89 struct i1480_cmd_mpi_read *cmd = i1480->cmd_buf; in i1480_mpi_read()
93 memset(i1480->cmd_buf, 0x69, 512); in i1480_mpi_read()
/Linux-v5.4/drivers/net/wireless/ath/carl9170/
Dcmd.h88 __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-v5.4/drivers/input/touchscreen/
Dwdt87xx_i2c.c359 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-v5.4/drivers/input/tablet/
Dpegasus_notetaker.c96 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-v5.4/drivers/net/wireless/marvell/mwifiex/
Duap_cmd.c308 mwifiex_uap_bss_wpa(u8 **tlv_buf, void *cmd_buf, u16 *param_size) in mwifiex_uap_bss_wpa() argument
314 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_wpa()
420 mwifiex_uap_bss_wep(u8 **tlv_buf, void *cmd_buf, u16 *param_size) in mwifiex_uap_bss_wep() argument
426 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_wep()
480 mwifiex_uap_bss_param_prepare(u8 *tlv, void *cmd_buf, u16 *param_size) in mwifiex_uap_bss_param_prepare() argument
497 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_param_prepare()
607 mwifiex_uap_bss_wpa(&tlv, cmd_buf, &cmd_size); in mwifiex_uap_bss_param_prepare()
609 mwifiex_uap_bss_wep(&tlv, cmd_buf, &cmd_size); in mwifiex_uap_bss_param_prepare()
700 static int mwifiex_uap_custom_ie_prepare(u8 *tlv, void *cmd_buf, u16 *ie_size) in mwifiex_uap_custom_ie_prepare() argument
702 struct mwifiex_ie_list *ap_ie = cmd_buf; in mwifiex_uap_custom_ie_prepare()
[all …]
/Linux-v5.4/drivers/net/wimax/i2400m/
Dfw.c796 } __packed *cmd_buf; in i2400m_dnload_finalize() local
805 cmd_buf = i2400m->bm_cmd_buf; in i2400m_dnload_finalize()
806 memcpy(&cmd_buf->cmd, cmd, sizeof(*cmd)); in i2400m_dnload_finalize()
807 cmd = &cmd_buf->cmd; in i2400m_dnload_finalize()
816 cmd_buf = i2400m->bm_cmd_buf; in i2400m_dnload_finalize()
817 memcpy(&cmd_buf->cmd, cmd, sizeof(*cmd)); in i2400m_dnload_finalize()
824 memcpy(cmd_buf->cmd_pl, in i2400m_dnload_finalize()
827 ret = i2400m_bm_cmd(i2400m, &cmd_buf->cmd, in i2400m_dnload_finalize()
828 sizeof(cmd_buf->cmd) + signature_block_size, in i2400m_dnload_finalize()
1116 } __packed *cmd_buf; in i2400m_dnload_init_signed() local
[all …]
/Linux-v5.4/include/linux/
Drtsx_usb.h50 u8 *cmd_buf; member
132 ucr->cmd_buf[0] = 'R'; \
133 ucr->cmd_buf[1] = 'T'; \
134 ucr->cmd_buf[2] = 'C'; \
135 ucr->cmd_buf[3] = 'R'; \
142 ucr->cmd_buf[PACKET_TYPE] = BATCH_CMD; in rtsx_usb_init_cmd()
/Linux-v5.4/drivers/staging/uwb/
Dwhc-rc.c58 void *evt_buf, *cmd_buf; member
108 memmove(whcrc->cmd_buf, cmd, cmd_size); in whcrc_cmd()
235 whcrc->cmd_buf = dma_alloc_coherent(&umc_dev->dev, PAGE_SIZE, in whcrc_setup_rc_umc()
237 if (whcrc->cmd_buf == NULL) { in whcrc_setup_rc_umc()
251 dma_free_coherent(&umc_dev->dev, PAGE_SIZE, whcrc->cmd_buf, in whcrc_setup_rc_umc()
274 dma_free_coherent(&umc_dev->dev, PAGE_SIZE, whcrc->cmd_buf, in whcrc_release_rc_umc()
/Linux-v5.4/drivers/net/ethernet/huawei/hinic/
Dhinic_port.c583 struct hinic_cmdq_buf cmd_buf; in hinic_rss_set_indir_tbl() local
597 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_rss_set_indir_tbl()
603 cmd_buf.size = sizeof(*indir_tbl); in hinic_rss_set_indir_tbl()
605 indir_tbl = cmd_buf.buf; in hinic_rss_set_indir_tbl()
624 &cmd_buf, &out_param); in hinic_rss_set_indir_tbl()
637 &cmd_buf, &out_param); in hinic_rss_set_indir_tbl()
644 hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_rss_set_indir_tbl()
684 struct hinic_cmdq_buf cmd_buf; in hinic_set_rss_type() local
697 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_set_rss_type()
713 cmd_buf.size = sizeof(struct hinic_rss_context_tbl); in hinic_set_rss_type()
[all …]
/Linux-v5.4/drivers/net/ethernet/intel/ice/
Dice_controlq.h40 void *cmd_buf; /* command buffer memory */ member
69 #define ICE_CTL_Q_DETAILS(R, i) (&(((struct ice_sq_cd *)((R).cmd_buf))[i]))
/Linux-v5.4/drivers/net/ethernet/intel/iavf/
Diavf_adminq.h19 struct iavf_virt_mem cmd_buf; /* command buffer memory */ member
53 (&(((struct iavf_asq_cmd_details *)((R).cmd_buf.va))[i]))
/Linux-v5.4/drivers/net/wan/
Dsdla.c431 struct sdla_cmd *cmd_buf; in sdla_cmd() local
439 cmd_buf = (struct sdla_cmd *)(dev->mem_start + (window & SDLA_ADDR_MASK)); in sdla_cmd()
446 cmd_buf->cmd = cmd; in sdla_cmd()
447 cmd_buf->dlci = dlci; in sdla_cmd()
448 cmd_buf->flags = flags; in sdla_cmd()
451 memcpy(cmd_buf->data, inbuf, inlen); in sdla_cmd()
453 cmd_buf->length = inlen; in sdla_cmd()
455 cmd_buf->opp_flag = 1; in sdla_cmd()
466 waiting = ((volatile int)(cmd_buf->opp_flag)); in sdla_cmd()
476 ret = cmd_buf->retval; in sdla_cmd()
[all …]

1234