Home
last modified time | relevance | path

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

1234

/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 …]
/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 …]
/drivers/gpu/drm/amd/display/dc/
Ddc_helper.c42 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()
57 memset(cmd_buf, 0, sizeof(*cmd_buf)); in submit_dmub_read_modify_write()
67 struct dmub_rb_cmd_burst_write *cmd_buf = &offload->cmd_data.burst_write; in submit_dmub_burst_write() local
70 cmd_buf->header.payload_bytes = in submit_dmub_burst_write()
80 memset(cmd_buf, 0, sizeof(*cmd_buf)); in submit_dmub_burst_write()
89 struct dmub_rb_cmd_reg_wait *cmd_buf = &offload->cmd_data.reg_wait; in submit_dmub_reg_wait() local
97 memset(cmd_buf, 0, sizeof(*cmd_buf)); in submit_dmub_reg_wait()
168 struct dmub_rb_cmd_burst_write *cmd_buf = &offload->cmd_data.burst_write; in dmub_reg_value_burst_set_pack() local
175 addr != cmd_buf->addr) { in dmub_reg_value_burst_set_pack()
[all …]
/drivers/net/ethernet/intel/i40e/
Di40e_debugfs.c779 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 …]
Di40e_adminq.h19 struct i40e_virt_mem cmd_buf; /* command buffer memory */ member
53 (&(((struct i40e_asq_cmd_details *)((R).cmd_buf.va))[i]))
/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()
172 static int hns3_dbg_bd_info(struct hnae3_handle *h, const char *cmd_buf) in hns3_dbg_bd_info() argument
183 cnt = sscanf(&cmd_buf[8], "%u %u", &q_num, &tx_index); in hns3_dbg_bd_info()
388 char *cmd_buf, *cmd_buf_tmp; in hns3_dbg_cmd_write() local
403 cmd_buf = kzalloc(count + 1, GFP_KERNEL); in hns3_dbg_cmd_write()
404 if (!cmd_buf) in hns3_dbg_cmd_write()
407 uncopied_bytes = copy_from_user(cmd_buf, buffer, count); in hns3_dbg_cmd_write()
409 kfree(cmd_buf); in hns3_dbg_cmd_write()
413 cmd_buf[count] = '\0'; in hns3_dbg_cmd_write()
[all …]
/drivers/gpu/drm/tiny/
Dgm12u320.c90 unsigned char *cmd_buf; member
164 gm12u320->cmd_buf = drmm_kmalloc(&gm12u320->dev, CMD_SIZE, GFP_KERNEL); in gm12u320_usb_alloc()
165 if (!gm12u320->cmd_buf) in gm12u320_usb_alloc()
197 memcpy(gm12u320->cmd_buf, &cmd_misc, CMD_SIZE); in gm12u320_misc_request()
198 gm12u320->cmd_buf[20] = req_a; in gm12u320_misc_request()
199 gm12u320->cmd_buf[21] = req_b; in gm12u320_misc_request()
200 gm12u320->cmd_buf[22] = arg_a; in gm12u320_misc_request()
201 gm12u320->cmd_buf[23] = arg_b; in gm12u320_misc_request()
202 gm12u320->cmd_buf[24] = arg_c; in gm12u320_misc_request()
203 gm12u320->cmd_buf[25] = arg_d; in gm12u320_misc_request()
[all …]
/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 …]
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_debugfs.c119 const char *cmd_buf) in hclge_dbg_dump_reg_common() argument
123 const char *s = &cmd_buf[strlen(reg_info->reg_type) + IDX_OFFSET]; in hclge_dbg_dump_reg_common()
284 static void hclge_dbg_dump_dcb(struct hclge_dev *hdev, const char *cmd_buf) in hclge_dbg_dump_dcb() argument
295 cnt = sscanf(cmd_buf, "%i %i %i %i %i %i", in hclge_dbg_dump_dcb()
400 static void hclge_dbg_dump_reg_cmd(struct hclge_dev *hdev, const char *cmd_buf) in hclge_dbg_dump_reg_cmd() argument
408 if (!strncmp(cmd_buf, reg_info->reg_type, in hclge_dbg_dump_reg_cmd()
410 hclge_dbg_dump_reg_common(hdev, reg_info, cmd_buf); in hclge_dbg_dump_reg_cmd()
415 if (strncmp(cmd_buf, "mac", strlen("mac")) == 0) { in hclge_dbg_dump_reg_cmd()
420 if (strncmp(cmd_buf, "dcb", 3) == 0) { in hclge_dbg_dump_reg_cmd()
421 hclge_dbg_dump_dcb(hdev, &cmd_buf[sizeof("dcb")]); in hclge_dbg_dump_reg_cmd()
[all …]
/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 …]
/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()
/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 …]
/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 …]
/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
498 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_param_prepare()
615 mwifiex_uap_bss_wpa(&tlv, cmd_buf, &cmd_size); in mwifiex_uap_bss_param_prepare()
617 mwifiex_uap_bss_wep(&tlv, cmd_buf, &cmd_size); in mwifiex_uap_bss_param_prepare()
708 static int mwifiex_uap_custom_ie_prepare(u8 *tlv, void *cmd_buf, u16 *ie_size) in mwifiex_uap_custom_ie_prepare() argument
710 struct mwifiex_ie_list *ap_ie = cmd_buf; in mwifiex_uap_custom_ie_prepare()
[all …]
/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()
/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); \
/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 …]
/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_debugfs.c418 char *cmd_buf, *cmd_buf_tmp, *subtoken; in rvu_dbg_qsize_write() local
423 cmd_buf = memdup_user(buffer, count + 1); in rvu_dbg_qsize_write()
424 if (IS_ERR(cmd_buf)) in rvu_dbg_qsize_write()
427 cmd_buf[count] = '\0'; in rvu_dbg_qsize_write()
429 cmd_buf_tmp = strchr(cmd_buf, '\n'); in rvu_dbg_qsize_write()
432 count = cmd_buf_tmp - cmd_buf + 1; in rvu_dbg_qsize_write()
435 cmd_buf_tmp = cmd_buf; in rvu_dbg_qsize_write()
436 subtoken = strsep(&cmd_buf, " "); in rvu_dbg_qsize_write()
438 if (cmd_buf) in rvu_dbg_qsize_write()
691 static int parse_cmd_buffer_ctx(char *cmd_buf, size_t *count, in parse_cmd_buffer_ctx() argument
[all …]
/drivers/gpu/drm/i915/display/
Dintel_dsb.c105 buf = dsb->cmd_buf; in intel_dsb_indexed_reg_write()
183 buf = dsb->cmd_buf; in intel_dsb_reg_write()
228 memset(&dsb->cmd_buf[dsb->free_pos], 0, in intel_dsb_commit()
306 dsb->cmd_buf = buf; in intel_dsb_prepare()
/drivers/net/ethernet/intel/ice/
Dice_controlq.h43 void *cmd_buf; /* command buffer memory */ member
73 #define ICE_CTL_Q_DETAILS(R, i) (&(((struct ice_sq_cd *)((R).cmd_buf))[i]))
/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 …]
/drivers/net/ethernet/huawei/hinic/
Dhinic_port.c587 struct hinic_cmdq_buf cmd_buf; in hinic_rss_set_indir_tbl() local
601 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_rss_set_indir_tbl()
607 cmd_buf.size = sizeof(*indir_tbl); in hinic_rss_set_indir_tbl()
609 indir_tbl = cmd_buf.buf; in hinic_rss_set_indir_tbl()
628 &cmd_buf, &out_param); in hinic_rss_set_indir_tbl()
641 &cmd_buf, &out_param); in hinic_rss_set_indir_tbl()
648 hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_rss_set_indir_tbl()
688 struct hinic_cmdq_buf cmd_buf; in hinic_set_rss_type() local
701 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_set_rss_type()
717 cmd_buf.size = sizeof(struct hinic_rss_context_tbl); in hinic_set_rss_type()
[all …]
/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]))
/drivers/crypto/ccp/
Dsev-dev.c179 memcpy(sev->cmd_buf, data, buf_len); in __sev_do_cmd_locked()
182 phys_lsb = data ? lower_32_bits(__psp_pa(sev->cmd_buf)) : 0; in __sev_do_cmd_locked()
183 phys_msb = data ? upper_32_bits(__psp_pa(sev->cmd_buf)) : 0; in __sev_do_cmd_locked()
232 memcpy(data, sev->cmd_buf, buf_len); in __sev_do_cmd_locked()
1000 sev->cmd_buf = (void *)devm_get_free_pages(dev, GFP_KERNEL, 0); in sev_dev_init()
1001 if (!sev->cmd_buf) in sev_dev_init()
1031 devm_free_pages(dev, (unsigned long)sev->cmd_buf); in sev_dev_init()
/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.c352 pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_set_ts()
364 pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_set_bitrate()
385 pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_set_bus()
395 pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_set_silent()
405 pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_set_filter()
416 pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_set_led()
430 pc = pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); in pcan_usb_pro_get_device_id()

1234