Home
last modified time | relevance | path

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

1234

/Linux-v4.19/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-v4.19/drivers/staging/rtlwifi/phydm/
Dphydm_rainfo.c78 void odm_c2h_ra_para_report_handler(void *dm_void, u8 *cmd_buf, u8 cmd_len) in odm_c2h_ra_para_report_handler() argument
82 u8 para_idx = cmd_buf[0]; /*Retry Penalty, NH, NL*/ in odm_c2h_ra_para_report_handler()
87 cmd_buf[0]); in odm_c2h_ra_para_report_handler()
94 "RSSI =", cmd_buf[1]); in odm_c2h_ra_para_report_handler()
96 "rate =", cmd_buf[2] & 0x7f); in odm_c2h_ra_para_report_handler()
98 "SGI =", (cmd_buf[2] & 0x80) >> 7); in odm_c2h_ra_para_report_handler()
100 "BW =", cmd_buf[3]); in odm_c2h_ra_para_report_handler()
102 "BW_max =", cmd_buf[4]); in odm_c2h_ra_para_report_handler()
104 "multi_rate0 =", cmd_buf[5]); in odm_c2h_ra_para_report_handler()
106 "multi_rate1 =", cmd_buf[6]); in odm_c2h_ra_para_report_handler()
[all …]
/Linux-v4.19/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-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_debugfs.c705 char *cmd_buf, *cmd_buf_tmp; in i40e_dbg_command_write() local
717 cmd_buf = kzalloc(count + 1, GFP_KERNEL); in i40e_dbg_command_write()
718 if (!cmd_buf) in i40e_dbg_command_write()
720 bytes_not_copied = copy_from_user(cmd_buf, buffer, count); in i40e_dbg_command_write()
722 kfree(cmd_buf); in i40e_dbg_command_write()
725 cmd_buf[count] = '\0'; in i40e_dbg_command_write()
727 cmd_buf_tmp = strchr(cmd_buf, '\n'); in i40e_dbg_command_write()
730 count = cmd_buf_tmp - cmd_buf + 1; in i40e_dbg_command_write()
733 if (strncmp(cmd_buf, "add vsi", 7) == 0) { in i40e_dbg_command_write()
735 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-v4.19/drivers/misc/cardreader/
Drtsx_usb.c100 ucr->cmd_buf[PACKET_TYPE] = seq_type; in rtsx_usb_seq_cmd_hdr()
101 ucr->cmd_buf[5] = (u8)(len >> 8); in rtsx_usb_seq_cmd_hdr()
102 ucr->cmd_buf[6] = (u8)len; in rtsx_usb_seq_cmd_hdr()
103 ucr->cmd_buf[8] = (u8)(addr >> 8); in rtsx_usb_seq_cmd_hdr()
104 ucr->cmd_buf[9] = (u8)addr; in rtsx_usb_seq_cmd_hdr()
107 ucr->cmd_buf[STAGE_FLAG] = 0; in rtsx_usb_seq_cmd_hdr()
109 ucr->cmd_buf[STAGE_FLAG] = STAGE_R; in rtsx_usb_seq_cmd_hdr()
124 memcpy(ucr->cmd_buf + SEQ_WRITE_DATA_OFFSET, data, len); in rtsx_usb_seq_write_register()
128 ucr->cmd_buf, cmd_len, 0, NULL, 100); in rtsx_usb_seq_write_register()
146 ucr->cmd_buf, 12, 0, NULL, 100); in rtsx_usb_seq_read_register()
[all …]
/Linux-v4.19/drivers/media/usb/as102/
Das102_fw.c168 unsigned char *cmd_buf = NULL; in as102_fw_upload() local
182 cmd_buf = kzalloc(MAX_FW_PKT_SIZE, GFP_KERNEL); in as102_fw_upload()
183 if (cmd_buf == NULL) { in as102_fw_upload()
197 errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); in as102_fw_upload()
221 errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); in as102_fw_upload()
231 kfree(cmd_buf); in as102_fw_upload()
/Linux-v4.19/drivers/input/misc/
Dims-pcu.c103 u8 cmd_buf[IMS_PCU_BUF_SIZE]; member
439 memcpy(pcu->cmd_buf, pcu->read_buf, pcu->read_pos); in ims_pcu_handle_response()
660 pcu->cmd_buf[0] = command; in __ims_pcu_execute_bl_command()
662 memcpy(&pcu->cmd_buf[1], data, len); in __ims_pcu_execute_bl_command()
665 IMS_PCU_CMD_BOOTLOADER, pcu->cmd_buf, len + 1, in __ims_pcu_execute_bl_command()
671 pcu->cmd_buf[0], error); in __ims_pcu_execute_bl_command()
675 if (expected_response && pcu->cmd_buf[2] != expected_response) { in __ims_pcu_execute_bl_command()
678 pcu->cmd_buf[2], expected_response); in __ims_pcu_execute_bl_command()
708 &pcu->cmd_buf[IMS_PCU_INFO_PART_OFFSET], in ims_pcu_get_info()
711 &pcu->cmd_buf[IMS_PCU_INFO_DOM_OFFSET], in ims_pcu_get_info()
[all …]
/Linux-v4.19/drivers/macintosh/
Dsmu.c86 struct smu_cmd_buf *cmd_buf; /* command buffer virtual */ member
130 smu->cmd_buf->cmd = cmd->cmd; in smu_start_cmd()
131 smu->cmd_buf->length = cmd->data_len; in smu_start_cmd()
132 memcpy(smu->cmd_buf->data, cmd->data_buf, cmd->data_len); in smu_start_cmd()
135 faddr = (unsigned long)smu->cmd_buf; in smu_start_cmd()
136 fend = faddr + smu->cmd_buf->length + 2; in smu_start_cmd()
198 faddr = (unsigned long)smu->cmd_buf; in smu_db_intr()
203 if (ack != smu->cmd_buf->cmd) { in smu_db_intr()
205 ack, smu->cmd_buf->cmd); in smu_db_intr()
208 reply_len = rc == 0 ? smu->cmd_buf->length : 0; in smu_db_intr()
[all …]
/Linux-v4.19/drivers/uwb/i1480/dfu/
Dusb.c120 memcpy(i1480->cmd_buf, buffer + itr, buffer_size); in i1480_usb_write()
125 i1480->cmd_buf, buffer_size, 100 /* FIXME: arbitrary */); in i1480_usb_write()
170 i1480->cmd_buf + itr, itr_size, in i1480_usb_read()
297 struct uwb_rccb *cmd = i1480->cmd_buf; in i1480_usb_cmd()
379 i1480->cmd_buf = kmalloc_array(2, i1480->buf_size, GFP_KERNEL); in i1480_usb_probe()
380 if (i1480->cmd_buf == NULL) { in i1480_usb_probe()
385 i1480->evt_buf = i1480->cmd_buf + i1480->buf_size; in i1480_usb_probe()
412 kfree(i1480->cmd_buf); in i1480_usb_probe()
Dmac.c183 if (memcmp(i1480->cmd_buf, bin + src_itr, result)) { in i1480_fw_cmp()
184 u8 *buf = i1480->cmd_buf; in i1480_fw_cmp()
270 u32 *buffer = (u32 *)i1480->cmd_buf; in mac_fw_upload_enable()
294 u32 *buffer = (u32 *)i1480->cmd_buf; in mac_fw_upload_disable()
391 struct uwb_rccb *cmd = (void *) i1480->cmd_buf; in i1480_cmd_reset()
422 u32 *val = (u32 *) i1480->cmd_buf; in i1480_fw_is_running_q()
Dphy.c55 struct i1480_cmd_mpi_write *cmd = i1480->cmd_buf; in i1480_mpi_write()
103 struct i1480_cmd_mpi_read *cmd = i1480->cmd_buf; in i1480_mpi_read()
107 memset(i1480->cmd_buf, 0x69, 512); in i1480_mpi_read()
Ddfu.c97 struct uwb_rccb *cmd = i1480->cmd_buf; in i1480_cmd()
159 u32 *buf = (u32 *) i1480->cmd_buf; in i1480_print_state()
/Linux-v4.19/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-v4.19/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-v4.19/drivers/input/tablet/
Dpegasus_notetaker.c95 u8 *cmd_buf; in pegasus_control_msg() local
97 cmd_buf = kmalloc(sizeof_buf, GFP_KERNEL); in pegasus_control_msg()
98 if (!cmd_buf) in pegasus_control_msg()
101 cmd_buf[0] = NOTETAKER_REPORT_ID; in pegasus_control_msg()
102 cmd_buf[1] = len; in pegasus_control_msg()
103 memcpy(cmd_buf + 2, data, len); in pegasus_control_msg()
109 0, 0, cmd_buf, sizeof_buf, in pegasus_control_msg()
112 kfree(cmd_buf); in pegasus_control_msg()
/Linux-v4.19/drivers/net/wireless/marvell/mwifiex/
Duap_cmd.c303 mwifiex_uap_bss_wpa(u8 **tlv_buf, void *cmd_buf, u16 *param_size) in mwifiex_uap_bss_wpa() argument
309 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_wpa()
413 mwifiex_uap_bss_wep(u8 **tlv_buf, void *cmd_buf, u16 *param_size) in mwifiex_uap_bss_wep() argument
419 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_wep()
473 mwifiex_uap_bss_param_prepare(u8 *tlv, void *cmd_buf, u16 *param_size) in mwifiex_uap_bss_param_prepare() argument
490 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_param_prepare()
600 mwifiex_uap_bss_wpa(&tlv, cmd_buf, &cmd_size); in mwifiex_uap_bss_param_prepare()
602 mwifiex_uap_bss_wep(&tlv, cmd_buf, &cmd_size); in mwifiex_uap_bss_param_prepare()
693 static int mwifiex_uap_custom_ie_prepare(u8 *tlv, void *cmd_buf, u16 *ie_size) in mwifiex_uap_custom_ie_prepare() argument
695 struct mwifiex_ie_list *ap_ie = cmd_buf; in mwifiex_uap_custom_ie_prepare()
[all …]
/Linux-v4.19/drivers/net/wimax/i2400m/
Dfw.c799 } __packed *cmd_buf; in i2400m_dnload_finalize() local
808 cmd_buf = i2400m->bm_cmd_buf; in i2400m_dnload_finalize()
809 memcpy(&cmd_buf->cmd, cmd, sizeof(*cmd)); in i2400m_dnload_finalize()
810 cmd = &cmd_buf->cmd; in i2400m_dnload_finalize()
819 cmd_buf = i2400m->bm_cmd_buf; in i2400m_dnload_finalize()
820 memcpy(&cmd_buf->cmd, cmd, sizeof(*cmd)); in i2400m_dnload_finalize()
827 memcpy(cmd_buf->cmd_pl, in i2400m_dnload_finalize()
830 ret = i2400m_bm_cmd(i2400m, &cmd_buf->cmd, in i2400m_dnload_finalize()
831 sizeof(cmd_buf->cmd) + signature_block_size, in i2400m_dnload_finalize()
1119 } __packed *cmd_buf; in i2400m_dnload_init_signed() local
[all …]
/Linux-v4.19/include/linux/
Drtsx_usb.h61 u8 *cmd_buf; member
143 ucr->cmd_buf[0] = 'R'; \
144 ucr->cmd_buf[1] = 'T'; \
145 ucr->cmd_buf[2] = 'C'; \
146 ucr->cmd_buf[3] = 'R'; \
153 ucr->cmd_buf[PACKET_TYPE] = BATCH_CMD; in rtsx_usb_init_cmd()
/Linux-v4.19/drivers/staging/mt7621-mmc/
Ddbg.c51 static char cmd_buf[256]; variable
246 if (copy_from_user(cmd_buf, buf, count)) in msdc_debug_proc_write()
249 cmd_buf[count] = '\0'; in msdc_debug_proc_write()
250 pr_debug("msdc Write %s\n", cmd_buf); in msdc_debug_proc_write()
252 sscanf(cmd_buf, "%x %x %x", &cmd, &p1, &p2); in msdc_debug_proc_write()
/Linux-v4.19/drivers/uwb/
Dwhc-rc.c72 void *evt_buf, *cmd_buf; member
122 memmove(whcrc->cmd_buf, cmd, cmd_size); in whcrc_cmd()
249 whcrc->cmd_buf = dma_alloc_coherent(&umc_dev->dev, PAGE_SIZE, in whcrc_setup_rc_umc()
251 if (whcrc->cmd_buf == NULL) { in whcrc_setup_rc_umc()
265 dma_free_coherent(&umc_dev->dev, PAGE_SIZE, whcrc->cmd_buf, in whcrc_setup_rc_umc()
288 dma_free_coherent(&umc_dev->dev, PAGE_SIZE, whcrc->cmd_buf, in whcrc_release_rc_umc()
/Linux-v4.19/drivers/net/ethernet/intel/ice/
Dice_controlq.h39 void *cmd_buf; /* command buffer memory */ member
68 #define ICE_CTL_Q_DETAILS(R, i) (&(((struct ice_sq_cd *)((R).cmd_buf))[i]))
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/
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-v4.19/drivers/net/wan/
Dsdla.c434 struct sdla_cmd *cmd_buf; in sdla_cmd() local
442 cmd_buf = (struct sdla_cmd *)(dev->mem_start + (window & SDLA_ADDR_MASK)); in sdla_cmd()
449 cmd_buf->cmd = cmd; in sdla_cmd()
450 cmd_buf->dlci = dlci; in sdla_cmd()
451 cmd_buf->flags = flags; in sdla_cmd()
454 memcpy(cmd_buf->data, inbuf, inlen); in sdla_cmd()
456 cmd_buf->length = inlen; in sdla_cmd()
458 cmd_buf->opp_flag = 1; in sdla_cmd()
469 waiting = ((volatile int)(cmd_buf->opp_flag)); in sdla_cmd()
479 ret = cmd_buf->retval; in sdla_cmd()
[all …]
/Linux-v4.19/drivers/net/can/usb/peak_usb/
Dpcan_usb.c128 dev->cmd_buf[PCAN_USB_CMD_FUNC] = f; in pcan_usb_send_cmd()
129 dev->cmd_buf[PCAN_USB_CMD_NUM] = n; in pcan_usb_send_cmd()
132 memcpy(dev->cmd_buf + PCAN_USB_CMD_ARGS, in pcan_usb_send_cmd()
137 dev->cmd_buf, PCAN_USB_CMD_LEN, &actual_length, in pcan_usb_send_cmd()
165 dev->cmd_buf, PCAN_USB_CMD_LEN, &actual_length, in pcan_usb_wait_rsp()
171 memcpy(p, dev->cmd_buf + PCAN_USB_CMD_ARGS, in pcan_usb_wait_rsp()

1234