Home
last modified time | relevance | path

Searched refs:cmd_len (Results 1 – 25 of 222) sorted by relevance

123456789

/linux/include/trace/events/
A Dscsi.h168 __field( unsigned int, cmd_len )
172 __dynamic_array(unsigned char, cmnd, cmd->cmd_len)
181 __entry->cmd_len = cmd->cmd_len;
185 memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len);
194 __parse_cdb(__get_dynamic_array(cmnd), __entry->cmd_len),
211 __field( unsigned int, cmd_len )
215 __dynamic_array(unsigned char, cmnd, cmd->cmd_len)
225 __entry->cmd_len = cmd->cmd_len;
256 __field( unsigned int, cmd_len )
260 __dynamic_array(unsigned char, cmnd, cmd->cmd_len)
[all …]
/linux/drivers/net/wireless/microchip/wilc1000/
A Dspi.c430 int cmd_len, resp_len, i; in wilc_spi_single_read() local
460 cmd_len += 1; in wilc_spi_single_read()
467 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read()
525 int cmd_len, resp_len; in wilc_spi_write_cmd() local
557 cmd_len += 1; in wilc_spi_write_cmd()
564 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_write_cmd()
600 int cmd_len, resp_len; in wilc_spi_dma_rw() local
635 cmd_len += 1; in wilc_spi_dma_rw()
641 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_dma_rw()
729 int cmd_len, resp_len = 0; in wilc_spi_special_cmd() local
[all …]
/linux/drivers/mtd/devices/
A Dmchp23k256.c67 int ret, cmd_len; in mchp23k256_write() local
71 cmd_len = mchp23k256_cmdsz(flash); in mchp23k256_write()
77 transfer[0].len = cmd_len; in mchp23k256_write()
93 if (retlen && message.actual_length > cmd_len) in mchp23k256_write()
94 *retlen += message.actual_length - cmd_len; in mchp23k256_write()
106 int ret, cmd_len; in mchp23k256_read() local
110 cmd_len = mchp23k256_cmdsz(flash); in mchp23k256_read()
117 transfer[0].len = cmd_len; in mchp23k256_read()
133 if (retlen && message.actual_length > cmd_len) in mchp23k256_read()
134 *retlen += message.actual_length - cmd_len; in mchp23k256_read()
/linux/drivers/usb/storage/
A Dprotocol.c54 for (; srb->cmd_len < 12; srb->cmd_len++) in usb_stor_pad12_command()
55 srb->cmnd[srb->cmd_len] = 0; in usb_stor_pad12_command()
72 for (; srb->cmd_len < 12; srb->cmd_len++) in usb_stor_ufi_command()
73 srb->cmnd[srb->cmd_len] = 0; in usb_stor_ufi_command()
76 srb->cmd_len = 12; in usb_stor_ufi_command()
/linux/drivers/acpi/acpica/
A Ddbhistry.c45 u16 cmd_len; in acpi_db_add_to_history() local
50 cmd_len = (u16)strlen(command_line); in acpi_db_add_to_history()
51 if (!cmd_len) { in acpi_db_add_to_history()
62 if (cmd_len > buffer_len) { in acpi_db_add_to_history()
66 command = acpi_os_allocate(cmd_len + 1); in acpi_db_add_to_history()
70 acpi_os_allocate(cmd_len + 1); in acpi_db_add_to_history()
/linux/drivers/fsi/
A Dfsi-occ.c258 size_t cmd_len, parsed_len, resp_data_len; in occ_getsram() local
271 cmd_len = 5; in occ_getsram()
277 cmd_len = 6; in occ_getsram()
284 cmd[0] = cpu_to_be32(cmd_len); in occ_getsram()
319 size_t cmd_len, parsed_len, resp_data_len; in occ_putsram() local
325 cmd_len = (occ->version == occ_p10) ? 6 : 5; in occ_putsram()
326 cmd_len += data_len >> 2; in occ_putsram()
332 buf[0] = cpu_to_be32(cmd_len); in occ_putsram()
396 size_t cmd_len, parsed_len, resp_data_len; in occ_trigger_attn() local
403 cmd_len = 7; in occ_trigger_attn()
[all …]
A Dfsi-sbefifo.c488 const __be32 *command, size_t cmd_len) in sbefifo_send_command() argument
491 size_t len, chunk, vacant = 0, remaining = cmd_len; in sbefifo_send_command()
497 cmd_len, be32_to_cpu(command[1])); in sbefifo_send_command()
625 const __be32 *command, size_t cmd_len, in sbefifo_do_command() argument
629 int rc = sbefifo_send_command(sbefifo, command, cmd_len); in sbefifo_do_command()
679 const __be32 *command, size_t cmd_len, in __sbefifo_submit() argument
688 if (cmd_len < 2 || be32_to_cpu(command[0]) != cmd_len) { in __sbefifo_submit()
690 cmd_len, be32_to_cpu(command[0])); in __sbefifo_submit()
703 rc = sbefifo_do_command(sbefifo, command, cmd_len, response); in __sbefifo_submit()
809 size_t cmd_len; in sbefifo_user_read() local
[all …]
/linux/drivers/gpu/drm/i915/gvt/
A Dtrace.h230 u32 cmd_len, u32 buf_type, u32 buf_addr_type,
233 TP_ARGS(vgpu_id, ring_id, ip_gma, cmd_va, cmd_len, buf_type,
242 __field(u32, cmd_len)
244 __dynamic_array(u32, raw_cmd, cmd_len)
254 __entry->cmd_len = cmd_len;
257 memcpy(__get_dynamic_array(raw_cmd), cmd_va, cmd_len * sizeof(*cmd_va));
268 __entry->cmd_len,
270 __entry->cmd_len, 4),
/linux/drivers/staging/r8188eu/core/
A Drtw_iol.c41 int rtw_IOL_append_cmds(struct xmit_frame *xmit_frame, u8 *IOL_cmds, u32 cmd_len) in rtw_IOL_append_cmds() argument
51 if (ori_len + cmd_len + 8 > MAX_XMITBUF_SZ) { in rtw_IOL_append_cmds()
53 __func__, ori_len + cmd_len + 8, MAX_XMITBUF_SZ); in rtw_IOL_append_cmds()
57 memcpy(xmit_frame->buf_addr + buf_offset + pattrib->pktlen, IOL_cmds, cmd_len); in rtw_IOL_append_cmds()
58 pattrib->pktlen += cmd_len; in rtw_IOL_append_cmds()
59 pattrib->last_txcmdsz += cmd_len; in rtw_IOL_append_cmds()
/linux/drivers/media/usb/gspca/
A Dkinect.c121 unsigned int cmd_len, void *replybuf, unsigned int reply_len) in send_cmd() argument
131 if (cmd_len & 1 || cmd_len > (0x400 - sizeof(*chdr))) { in send_cmd()
132 pr_err("send_cmd: Invalid command length (0x%x)\n", cmd_len); in send_cmd()
140 chdr->len = cpu_to_le16(cmd_len / 2); in send_cmd()
142 memcpy(obuf+sizeof(*chdr), cmdbuf, cmd_len); in send_cmd()
144 res = kinect_write(udev, obuf, cmd_len + sizeof(*chdr)); in send_cmd()
147 sd->cam_tag, cmd_len, res); in send_cmd()
/linux/drivers/firmware/
A Dqcom_scm-legacy.c141 const size_t cmd_len = arglen * sizeof(__le32); in scm_legacy_call() local
143 size_t alloc_len = sizeof(*cmd) + cmd_len + sizeof(*rsp) + resp_len; in scm_legacy_call()
154 cmd->resp_hdr_offset = cpu_to_le32(sizeof(*cmd) + cmd_len); in scm_legacy_call()
182 dma_sync_single_for_cpu(dev, cmd_phys + sizeof(*cmd) + cmd_len, in scm_legacy_call()
186 dma_sync_single_for_cpu(dev, cmd_phys + sizeof(*cmd) + cmd_len + in scm_legacy_call()
/linux/drivers/scsi/
A Dscsi_bsg.c36 sreq->cmd_len = hdr->request_len; in scsi_bsg_sg_io_fn()
37 if (sreq->cmd_len > BLK_MAX_CDB) { in scsi_bsg_sg_io_fn()
38 sreq->cmd = kzalloc(sreq->cmd_len, GFP_KERNEL); in scsi_bsg_sg_io_fn()
44 if (copy_from_user(sreq->cmd, uptr64(hdr->request), sreq->cmd_len)) in scsi_bsg_sg_io_fn()
A Dscsi_ioctl.c350 if (hdr->cmd_len < 6) in scsi_fill_sghdr_rq()
352 if (copy_from_user(req->cmd, hdr->cmdp, hdr->cmd_len)) in scsi_fill_sghdr_rq()
360 req->cmd_len = hdr->cmd_len; in scsi_fill_sghdr_rq()
449 if (hdr->cmd_len > BLK_MAX_CDB) { in sg_io()
450 req->cmd = kzalloc(hdr->cmd_len, GFP_KERNEL); in sg_io()
579 req->cmd_len = cmdlen; in sg_scsi_ioctl()
654 .cmd_len = hdr->cmd_len, in put_sg_io_hdr()
702 .cmd_len = hdr32.cmd_len, in get_sg_io_hdr()
823 hdr.cmd_len = sizeof(cgc.cmd); in scsi_cdrom_send_packet()
848 hdr.cmd_len = sizeof(cgc.cmd); in scsi_cdrom_send_packet()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
A Dfw.c27 u32 cmd_len, u8 *p_cmdbuffer) in _rtl8723be_fill_h2c_command() argument
140 switch (cmd_len) { in _rtl8723be_fill_h2c_command()
146 p_cmdbuffer + buf_index, cmd_len); in _rtl8723be_fill_h2c_command()
159 p_cmdbuffer + buf_index+3, cmd_len-3); in _rtl8723be_fill_h2c_command()
175 cmd_len); in _rtl8723be_fill_h2c_command()
198 u32 cmd_len, u8 *p_cmdbuffer) in rtl8723be_fill_h2c_cmd() argument
210 memcpy(tmp_cmdbuf, p_cmdbuffer, cmd_len); in rtl8723be_fill_h2c_cmd()
211 _rtl8723be_fill_h2c_command(hw, element_id, cmd_len, in rtl8723be_fill_h2c_cmd()
/linux/drivers/nfc/st95hf/
A Dcore.c88 int cmd_len; member
122 .cmd_len = 0x2,
128 .cmd_len = 0x7,
135 .cmd_len = 0x7,
142 .cmd_len = 0x7,
149 .cmd_len = 0x7,
156 .cmd_len = 0x7,
163 .cmd_len = 0x6,
170 .cmd_len = 0x5,
177 .cmd_len = 0x5,
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
A Dfw.c164 u32 cmd_len, u8 *cmdbuffer) in _rtl92ee_fill_h2c_command() argument
298 switch (cmd_len) { in _rtl92ee_fill_h2c_command()
304 cmdbuffer + buf_index, cmd_len); in _rtl92ee_fill_h2c_command()
317 cmdbuffer + buf_index+3, cmd_len-3); in _rtl92ee_fill_h2c_command()
333 "switch case %#x not processed\n", cmd_len); in _rtl92ee_fill_h2c_command()
356 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in rtl92ee_fill_h2c_cmd() argument
368 memcpy(tmp_cmdbuf, cmdbuffer, cmd_len); in rtl92ee_fill_h2c_cmd()
369 _rtl92ee_fill_h2c_command(hw, element_id, cmd_len, (u8 *)&tmp_cmdbuf); in rtl92ee_fill_h2c_cmd()
857 u8 *cmd_buf, u8 cmd_len) in rtl92ee_c2h_ra_report_handler() argument
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
A Dfw.c507 u32 cmd_len = 0; in _rtl92s_firmware_set_h2c_cmd() local
513 cmd_len = sizeof(struct h2c_set_pwrmode_parm); in _rtl92s_firmware_set_h2c_cmd()
517 cmd_len = sizeof(struct h2c_joinbss_rpt_parm); in _rtl92s_firmware_set_h2c_cmd()
521 cmd_len = sizeof(struct h2c_wpa_two_way_parm); in _rtl92s_firmware_set_h2c_cmd()
525 cmd_len = sizeof(unsigned long long); in _rtl92s_firmware_set_h2c_cmd()
529 cmd_len = sizeof(u8); in _rtl92s_firmware_set_h2c_cmd()
535 len = _rtl92s_get_h2c_cmdlen(MAX_TRANSMIT_BUFFER_SIZE, 1, &cmd_len); in _rtl92s_firmware_set_h2c_cmd()
545 &cmd_len, &pcmd_buffer, &rtlhal->h2c_txcmd_seq); in _rtl92s_firmware_set_h2c_cmd()
/linux/drivers/net/wireless/ath/ath9k/
A Dwmi.c295 u8 *cmd_buf, u32 cmd_len, in ath9k_wmi_cmd() argument
310 skb = alloc_skb(headroom + cmd_len, GFP_ATOMIC); in ath9k_wmi_cmd()
316 if (cmd_len != 0 && cmd_buf != NULL) { in ath9k_wmi_cmd()
317 skb_put_data(skb, cmd_buf, cmd_len); in ath9k_wmi_cmd()
332 ret = ath9k_wmi_cmd_issue(wmi, skb, cmd_id, cmd_len); in ath9k_wmi_cmd()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
A Dfw.c166 u8 element_id, u32 cmd_len, in _rtl88e_fill_h2c_command() argument
278 switch (cmd_len) { in _rtl88e_fill_h2c_command()
284 cmd_b + buf_index, cmd_len); in _rtl88e_fill_h2c_command()
297 cmd_b + buf_index+3, cmd_len-3); in _rtl88e_fill_h2c_command()
313 "switch case %#x not processed\n", cmd_len); in _rtl88e_fill_h2c_command()
336 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in rtl88e_fill_h2c_cmd() argument
348 memcpy(tmp_cmdbuf, cmdbuffer, cmd_len); in rtl88e_fill_h2c_cmd()
349 _rtl88e_fill_h2c_command(hw, element_id, cmd_len, (u8 *)&tmp_cmdbuf); in rtl88e_fill_h2c_cmd()
/linux/net/bluetooth/
A Dl2cap_core.c4066 if (cmd_len < sizeof(*rej)) in l2cap_command_rej()
4257 if (cmd_len < sizeof(*rsp)) in l2cap_connect_create_rsp()
4369 if (cmd_len < sizeof(*req)) in l2cap_config_req()
4479 if (cmd_len < sizeof(*rsp)) in l2cap_config_rsp()
4734 if (cmd_len < sizeof(*rsp)) in l2cap_information_rsp()
5938 if (cmd_len < sizeof(*req) || (cmd_len - sizeof(*req)) % sizeof(u16)) { in l2cap_ecred_conn_req()
5943 cmd_len -= sizeof(*req); in l2cap_ecred_conn_req()
6086 cmd_len -= sizeof(*rsp); in l2cap_ecred_conn_rsp()
6106 cmd_len -= sizeof(u16); in l2cap_ecred_conn_rsp()
6189 if (cmd_len < sizeof(*req) || cmd_len - sizeof(*req) % sizeof(u16)) { in l2cap_ecred_reconf_req()
[all …]
/linux/drivers/net/can/usb/kvaser_usb/
A Dkvaser_usb_hydra.c230 u8 cmd_len; member
625 size_t cmd_len; in kvaser_usb_hydra_wait_cmd() local
636 memcpy(cmd, tmp_cmd, cmd_len); in kvaser_usb_hydra_wait_cmd()
639 pos += cmd_len; in kvaser_usb_hydra_wait_cmd()
1375 int *cmd_len, u16 transid) in kvaser_usb_hydra_frame_to_cmd_ext() argument
1455 int *cmd_len, u16 transid) in kvaser_usb_hydra_frame_to_cmd_std() argument
1936 size_t cmd_len; in kvaser_usb_hydra_read_bulk_callback() local
1981 if (pos + cmd_len > len) { in kvaser_usb_hydra_read_bulk_callback()
2000 pos += cmd_len; in kvaser_usb_hydra_read_bulk_callback()
2013 cmd_len, transid); in kvaser_usb_hydra_frame_to_cmd()
[all …]
/linux/drivers/input/mouse/
A Dcyapa_gen5.c538 u8 *cmd, size_t cmd_len, in cyapa_do_i2c_pip_cmd_irq_sync() argument
567 u8 *cmd, size_t cmd_len, in cyapa_do_i2c_pip_cmd_polling() argument
607 u8 *cmd, int cmd_len, in cyapa_i2c_pip_cmd_irq_sync() argument
616 if (!cmd || !cmd_len) in cyapa_i2c_pip_cmd_irq_sync()
628 if (cmd_len >= PIP_MIN_APP_CMD_LENGTH && in cyapa_i2c_pip_cmd_irq_sync()
1053 int cmd_len; in cyapa_pip_bl_initiate() local
1105 cmd, cmd_len, in cyapa_pip_bl_initiate()
1322 u16 cmd_len; in cyapa_pip_write_fw_block() local
1341 cmd_len = sizeof(struct pip_bl_cmd_head) + in cyapa_pip_write_fw_block()
1436 int cmd_len; in cyapa_gen5_set_interval_time() local
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
A Dfw.c29 u32 cmd_len, u8 *cmdbuffer) in _rtl8723e_fill_h2c_command() argument
143 switch (cmd_len) { in _rtl8723e_fill_h2c_command()
210 cmd_len); in _rtl8723e_fill_h2c_command()
233 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in rtl8723e_fill_h2c_cmd() argument
244 memcpy(tmp_cmdbuf, cmdbuffer, cmd_len); in rtl8723e_fill_h2c_cmd()
245 _rtl8723e_fill_h2c_command(hw, element_id, cmd_len, in rtl8723e_fill_h2c_cmd()
/linux/drivers/media/cec/usb/pulse8/
A Dpulse8-cec.c210 static int pulse8_send(struct serio *serio, const u8 *command, u8 cmd_len) in pulse8_send() argument
217 for (; !err && cmd_len; command++, cmd_len--) { in pulse8_send()
233 const u8 *cmd, u8 cmd_len, in pulse8_send_and_wait_once() argument
240 pulse8_msgname(cmd[0]), cmd_len, cmd); in pulse8_send_and_wait_once()
243 err = pulse8_send(pulse8->serio, cmd, cmd_len); in pulse8_send_and_wait_once()
265 const u8 *cmd, u8 cmd_len, u8 response, u8 size) in pulse8_send_and_wait() argument
270 err = pulse8_send_and_wait_once(pulse8, cmd, cmd_len, response, size); in pulse8_send_and_wait()
279 err = pulse8_send_and_wait_once(pulse8, cmd, cmd_len, in pulse8_send_and_wait()
/linux/drivers/media/pci/ddbridge/
A Dddbridge-mci.c62 u32 *cmd, u32 cmd_len, in _mci_cmd_unlocked() argument
72 if (cmd && cmd_len) in _mci_cmd_unlocked()
73 for (i = 0; i < cmd_len; i++) in _mci_cmd_unlocked()

Completed in 124 milliseconds

123456789