| /openbmc/u-boot/drivers/mtd/spi/ |
| H A D | sf.c | 13 const u8 *cmd, size_t cmd_len, in spi_flash_read_write() argument 23 ret = spi_xfer(spi, cmd_len * 8, cmd, NULL, flags); in spi_flash_read_write() 26 cmd_len, ret); in spi_flash_read_write() 39 size_t cmd_len, void *data, size_t data_len) in spi_flash_cmd_read() argument 41 return spi_flash_read_write(spi, cmd, cmd_len, NULL, data, data_len); in spi_flash_cmd_read() 49 int spi_flash_cmd_write(struct spi_slave *spi, const u8 *cmd, size_t cmd_len, in spi_flash_cmd_write() argument 52 return spi_flash_read_write(spi, cmd, cmd_len, data, NULL, data_len); in spi_flash_cmd_write()
|
| H A D | sf_internal.h | 83 size_t cmd_len, void *data, size_t data_len); 89 int spi_flash_cmd_write(struct spi_slave *spi, const u8 *cmd, size_t cmd_len,
|
| /openbmc/u-boot/drivers/spi/ |
| H A D | fsl_espi.c | 22 size_t cmd_len; member 253 size_t cmd_len = fsl->cmd_len; in spi_xfer() local 261 cmd_len = fsl->cmd_len = data_len; in spi_xfer() 262 memcpy(cmd_buf, data_out, cmd_len); in spi_xfer() 270 buf_len = 2 * cmd_len + min(data_len, (size_t)max_tran_len); in spi_xfer() 271 len = cmd_len + data_len; in spi_xfer() 272 rx_offset = cmd_len; in spi_xfer() 278 memcpy(buffer, cmd_buf, cmd_len); in spi_xfer() 280 memcpy(buffer + cmd_len, data_out, data_len); in spi_xfer() 291 cmd_len = 0; in spi_xfer() [all …]
|
| H A D | atcspi200_spi.c | 84 size_t cmd_len; member 124 ns->cmd_len = 0; in __atcspi200_spi_claim_bus() 144 if ((ns->din)&&(ns->cmd_len)) in __atcspi200_spi_start() 153 tc |= (ns->cmd_len+olen-1) << WCNT_OFFSET; in __atcspi200_spi_start() 161 for (i=0;i<ns->cmd_len;i++) in __atcspi200_spi_start() 199 size_t cmd_len = ns->cmd_len; in __atcspi200_spi_xfer() local 207 cmd_len = ns->cmd_len = data_len; in __atcspi200_spi_xfer() 208 memcpy(cmd_buf, data_out, cmd_len); in __atcspi200_spi_xfer() 225 cmd_len = ns->cmd_len = data_len; in __atcspi200_spi_xfer() 226 memcpy(cmd_buf, data_out, cmd_len); in __atcspi200_spi_xfer()
|
| H A D | cadence_qspi.c | 200 priv->cmd_len = bitlen / 8; in cadence_spi_xfer() 201 memcpy(cmd_buf, dout, priv->cmd_len); in cadence_spi_xfer() 217 if (priv->cmd_len == 0) { in cadence_spi_xfer() 225 if (!CQSPI_IS_ADDR(priv->cmd_len)) in cadence_spi_xfer() 231 if (!CQSPI_IS_ADDR(priv->cmd_len)) in cadence_spi_xfer() 240 base, priv->cmd_len, cmd_buf, in cadence_spi_xfer() 246 priv->cmd_len, cmd_buf, in cadence_spi_xfer() 251 priv->cmd_len, dm_plat->mode, cmd_buf); in cadence_spi_xfer() 259 (plat, priv->cmd_len, cmd_buf); in cadence_spi_xfer() 273 priv->cmd_len = 0; in cadence_spi_xfer()
|
| H A D | cadence_qspi.h | 10 #define CQSPI_IS_ADDR(cmd_len) (cmd_len > 1 ? 1 : 0) argument 37 size_t cmd_len; member
|
| H A D | aspeed_spi.c | 275 size_t cmd_len; member 1174 priv->cmd_len = bitlen / 8; in aspeed_spi_xfer() 1175 memcpy(cmd_buf, dout, priv->cmd_len); in aspeed_spi_xfer() 1186 din ? "read" : "write", priv->cmd_len, data_bytes); in aspeed_spi_xfer() 1189 if (priv->cmd_len == 0) { in aspeed_spi_xfer() 1195 if (priv->cmd_len == 1) { in aspeed_spi_xfer() 1201 priv->cmd_len, in aspeed_spi_xfer() 1209 priv->cmd_len, in aspeed_spi_xfer() 1215 priv->cmd_len, in aspeed_spi_xfer() 1220 if (priv->cmd_len == 1) { in aspeed_spi_xfer() [all …]
|
| H A D | ich.c | 405 trans->cmd_len = bytes; in ich_spi_xfer() 417 if (trans->cmd_len) { in ich_spi_xfer() 419 trans->bytesout = trans->cmd_len; in ich_spi_xfer() 421 debug_trace("ICH SPI: Using %d bytes\n", trans->cmd_len); in ich_spi_xfer()
|
| H A D | ich.h | 109 int cmd_len; member
|
| /openbmc/qemu/hw/ipmi/ |
| H A D | ipmi_bmc_sim.c | 643 uint8_t *cmd, unsigned int cmd_len, in ipmi_sim_handle_command() argument 665 if (cmd_len < 2) { in ipmi_sim_handle_command() 669 if (cmd_len > max_cmd_len) { in ipmi_sim_handle_command() 686 if (cmd_len < hdl->cmd_len_min) { in ipmi_sim_handle_command() 691 hdl->cmd_handler(ibs, cmd, cmd_len, &rsp); in ipmi_sim_handle_command() 775 uint8_t *cmd, unsigned int cmd_len, in chassis_capabilities() argument 786 uint8_t *cmd, unsigned int cmd_len, in chassis_status() argument 796 uint8_t *cmd, unsigned int cmd_len, in chassis_control() argument 829 uint8_t *cmd, unsigned int cmd_len, in chassis_get_sys_restart_cause() argument 838 uint8_t *cmd, unsigned int cmd_len, in get_device_id() argument [all …]
|
| H A D | ipmi_bmc_extern.c | 184 uint8_t *cmd, unsigned int cmd_len, in ipmi_bmc_extern_handle_command() argument 201 if (cmd_len < 2) { in ipmi_bmc_extern_handle_command() 203 } else if ((cmd_len > max_cmd_len) || (cmd_len > MAX_IPMI_MSG_SIZE)) { in ipmi_bmc_extern_handle_command() 220 for (i = 0; i < cmd_len; i++) { in ipmi_bmc_extern_handle_command() 224 addchar(ibe, -ipmb_checksum(cmd, cmd_len, csum)); in ipmi_bmc_extern_handle_command()
|
| /openbmc/qemu/hw/display/ |
| H A D | ssd0323.c | 55 uint32_t cmd_len; member 105 if (s->cmd_len == 0) { in OBJECT_DECLARE_SIMPLE_TYPE() 108 s->cmd_data[s->cmd_len - 1] = data; in OBJECT_DECLARE_SIMPLE_TYPE() 110 s->cmd_len++; in OBJECT_DECLARE_SIMPLE_TYPE() 112 #define DATA(x) if (s->cmd_len <= (x)) return 0 in OBJECT_DECLARE_SIMPLE_TYPE() 178 s->cmd_len = 0; in OBJECT_DECLARE_SIMPLE_TYPE() 294 if (s->cmd_len > ARRAY_SIZE(s->cmd_data)) { in ssd0323_post_load() 328 VMSTATE_UINT32(cmd_len, ssd0323_state),
|
| /openbmc/qemu/tests/qtest/ |
| H A D | ipmi-kcs-test.c | 108 static void kcs_cmd(uint8_t *cmd, unsigned int cmd_len, in kcs_cmd() argument 120 for (i = 0; i < cmd_len; i++) { in kcs_cmd() 153 static void kcs_abort(uint8_t *cmd, unsigned int cmd_len, in kcs_abort() argument 166 for (i = 0; i < cmd_len; i++) { in kcs_abort()
|
| H A D | ipmi-bt-test.c | 258 static void bt_cmd(uint8_t *cmd, unsigned int cmd_len, in bt_cmd() argument 269 bt_write_buf(cmd_len + 1); in bt_cmd() 272 for (i = 1; i < cmd_len; i++) { in bt_cmd()
|
| /openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/cdparanoia/files/ |
| H A D | 0002-interface-remove-C-reserved-keyword.patch | 189 long writebytes=SG_OFF+cmd_len+in_size; 196 - memcpy(d->private->sg_buffer,cmd,cmd_len+in_size); 197 + memcpy(d->priv->sg_buffer,cmd,cmd_len+in_size); 198 sg_hd->twelve_byte = cmd_len == 12; 205 - memset(d->private->sg_buffer+cmd_len+in_size,bytefill,out_size-in_size); 206 + memset(d->priv->sg_buffer+cmd_len+in_size,bytefill,out_size-in_size); 207 /* the size does not remove cmd_len due to the way the kernel 229 if(bytecheck && in_size+cmd_len<out_size){ 253 - memcpy(d->private->sg_buffer,cmd+cmd_len,in_size); 254 + memcpy(d->priv->sg_buffer,cmd+cmd_len,in_size); [all …]
|
| /openbmc/qemu/scsi/ |
| H A D | pr-manager-helper.c | 158 if (!io_hdr->cmd_len || io_hdr->cmd_len > PR_HELPER_CDB_SIZE) { in pr_manager_helper_run() 162 memcpy(cdb, io_hdr->cmdp, io_hdr->cmd_len); in pr_manager_helper_run()
|
| /openbmc/qemu/include/hw/ipmi/ |
| H A D | ipmi.h | 215 uint8_t *cmd, unsigned int cmd_len, 307 uint8_t *cmd, unsigned int cmd_len,
|
| /openbmc/qemu/semihosting/ |
| H A D | syscalls.c | 236 target_ulong cmd, target_ulong cmd_len) in gdb_system() argument 238 int len = validate_strlen(cs, cmd, cmd_len); in gdb_system() 487 target_ulong cmd, target_ulong cmd_len) in host_system() argument 493 ret = validate_lock_user_string(&p, cs, cmd, cmd_len); in host_system() 941 target_ulong cmd, target_ulong cmd_len) in semihost_sys_system() argument 944 gdb_system(cs, complete, cmd, cmd_len); in semihost_sys_system() 946 host_system(cs, complete, cmd, cmd_len); in semihost_sys_system()
|
| /openbmc/qemu/tests/qtest/fuzz/ |
| H A D | generic_fuzz.c | 647 size_t cmd_len; in generic_fuzz() local 661 cmd_len = nextcmd ? nextcmd - cmd : Size; in generic_fuzz() 663 if (cmd_len > 0) { in generic_fuzz() 666 ops[op](s, cmd + 1, cmd_len - 1); in generic_fuzz() 673 Size = Size - (cmd_len + sizeof(SEPARATOR) - 1); in generic_fuzz()
|
| /openbmc/qemu/include/semihosting/ |
| H A D | syscalls.h | 70 target_ulong cmd, target_ulong cmd_len);
|
| /openbmc/u-boot/drivers/net/ |
| H A D | dc2114x.c | 145 static int do_eeprom_cmd(struct eth_device *dev, u_long ioaddr,int cmd,int cmd_len); 603 static int do_eeprom_cmd(struct eth_device *dev, u_long ioaddr, int cmd, int cmd_len) in do_eeprom_cmd() argument 615 short dataval = (cmd & (1 << cmd_len)) ? EE_WRITE_1 : EE_WRITE_0; in do_eeprom_cmd() 626 } while (--cmd_len >= 0); in do_eeprom_cmd()
|
| /openbmc/qemu/hw/ide/ |
| H A D | ahci.c | 684 static char *ahci_pretty_buffer_fis(const uint8_t *fis, int cmd_len) in ahci_pretty_buffer_fis() argument 689 for (i = 0; i < cmd_len; i++) { in ahci_pretty_buffer_fis() 1315 dma_addr_t cmd_len; in handle_cmd() local 1339 cmd_len = 0x80; in handle_cmd() 1340 cmd_fis = dma_memory_map(s->as, tbl_addr, &cmd_len, in handle_cmd() 1345 } else if (cmd_len != 0x80) { in handle_cmd() 1347 trace_handle_cmd_badmap(s, port, cmd_len); in handle_cmd() 1366 dma_memory_unmap(s->as, cmd_fis, cmd_len, DMA_DIRECTION_TO_DEVICE, in handle_cmd() 1367 cmd_len); in handle_cmd()
|
| /openbmc/qemu/hw/usb/ |
| H A D | dev-storage.c | 36 uint8_t cmd_len; member 444 cbw.cmd_len, s->data_len); in usb_msd_handle_data() 447 s->req = scsi_req_new(scsi_dev, tag, cbw.lun, cbw.cmd, cbw.cmd_len, NULL); in usb_msd_handle_data()
|
| /openbmc/qemu/hw/ppc/ |
| H A D | pnv_bmc.c | 172 static void hiomap_cmd(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, in hiomap_cmd() argument
|
| /openbmc/qemu/hw/scsi/ |
| H A D | scsi-generic.c | 130 r->io_header.cmd_len = r->req.cmd.len; in execute_command() 540 io_header.cmd_len = cmd_size; in scsi_SG_IO_FROM_DEV()
|