/haiku/src/add-ons/kernel/drivers/disk/nvme/libnvme/ |
H A D | nvme_admin.c | 41 struct nvme_cmd *cmd, in nvme_admin_submit_cmd() argument 55 memcpy(&req->cmd, cmd, sizeof(req->cmd)); in nvme_admin_submit_cmd() 84 struct nvme_cmd *cmd, in nvme_admin_exec_cmd() argument 92 ret = nvme_admin_submit_cmd(ctrlr, cmd, buf, len, in nvme_admin_exec_cmd() 108 struct nvme_cmd cmd; in nvme_admin_identify_ctrlr() local 111 memset(&cmd, 0, sizeof(struct nvme_cmd)); in nvme_admin_identify_ctrlr() 112 cmd.opc = NVME_OPC_IDENTIFY; in nvme_admin_identify_ctrlr() 113 cmd.cdw10 = NVME_IDENTIFY_CTRLR; in nvme_admin_identify_ctrlr() 116 return nvme_admin_exec_cmd(ctrlr, &cmd, in nvme_admin_identify_ctrlr() 130 struct nvme_cmd cmd; in nvme_admin_get_feature() local [all …]
|
H A D | nvme_ns.c | 307 struct nvme_cmd *cmd; in _nvme_ns_rw() local 352 cmd = &req->cmd; in _nvme_ns_rw() 353 cmd->opc = opc; in _nvme_ns_rw() 354 cmd->nsid = ns->id; in _nvme_ns_rw() 356 tmp_lba = (uint64_t *)&cmd->cdw10; in _nvme_ns_rw() 363 cmd->cdw14 = (uint32_t)lba; in _nvme_ns_rw() 368 cmd->cdw12 = lba_count - 1; in _nvme_ns_rw() 369 cmd->cdw12 |= io_flags; in _nvme_ns_rw() 371 cmd->cdw15 = apptag_mask; in _nvme_ns_rw() 372 cmd->cdw15 = (cmd->cdw15 << 16 | apptag); in _nvme_ns_rw() [all …]
|
/haiku/src/data/package_infos/generic/ |
H A D | haiku | 27 cmd:arp 28 cmd:chop 29 cmd:clear 30 cmd:df 31 cmd:ftpd 32 cmd:hd 33 cmd:hey 34 cmd:login 35 cmd:more 36 cmd:passwd [all …]
|
/haiku/src/add-ons/kernel/bus_managers/ps2/ |
H A D | ps2_service.cpp | 53 ps2_service_cmd cmd; in ps2_service_notify_device_added() local 57 cmd.id = PS2_SERVICE_NOTIFY_DEVICE_ADDED; in ps2_service_notify_device_added() 58 cmd.dev = dev; in ps2_service_notify_device_added() 60 packet_buffer_write(sServiceCmdBuffer, (const uint8 *)&cmd, sizeof(cmd)); in ps2_service_notify_device_added() 70 ps2_service_cmd cmd; in ps2_service_notify_device_republish() local 74 cmd.id = PS2_SERVICE_NOTIFY_DEVICE_REPUBLISH; in ps2_service_notify_device_republish() 75 cmd.dev = dev; in ps2_service_notify_device_republish() 77 packet_buffer_write(sServiceCmdBuffer, (const uint8 *)&cmd, sizeof(cmd)); in ps2_service_notify_device_republish() 87 ps2_service_cmd cmd; in ps2_service_notify_device_removed() local 91 cmd.id = PS2_SERVICE_NOTIFY_DEVICE_REMOVED; in ps2_service_notify_device_removed() [all …]
|
/haiku/src/add-ons/kernel/generic/scsi_periph/ |
H A D | io.cpp | 54 scsi_cmd_inquiry* cmd = (scsi_cmd_inquiry*)ccb->cdb; in vpd_page_inquiry() local 55 memset(cmd, 0, sizeof(scsi_cmd_inquiry)); in vpd_page_inquiry() 56 cmd->opcode = SCSI_OP_INQUIRY; in vpd_page_inquiry() 57 cmd->lun = ccb->target_lun; in vpd_page_inquiry() 58 cmd->evpd = 1; in vpd_page_inquiry() 59 cmd->page_code = page; in vpd_page_inquiry() 64 cmd->allocation_length = length; in vpd_page_inquiry() 118 scsi_cmd_prevent_allow cmd; in prevent_allow() local 122 memset(&cmd, 0, sizeof(cmd)); in prevent_allow() 123 cmd.opcode = SCSI_OP_PREVENT_ALLOW; in prevent_allow() [all …]
|
H A D | sync.cpp | 24 scsi_cmd_sync_cache* cmd = (scsi_cmd_sync_cache*)request->cdb; in periph_synchronize_cache() local 34 memset(cmd, 0, sizeof(*cmd)); in periph_synchronize_cache() 36 cmd->opcode = SCSI_OP_SYNCHRONIZE_CACHE; in periph_synchronize_cache() 37 cmd->immediately = 0; in periph_synchronize_cache() 40 cmd->block_count = 0; in periph_synchronize_cache() 42 request->cdb_length = sizeof(*cmd); in periph_synchronize_cache()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8335/dev/malo/ |
H A D | if_malohal.c | 65 pCmd->cmdhdr.cmd = htole16(_cmd); \ 192 malo_hal_waitforcmd(struct malo_hal *mh, uint16_t cmd) in malo_hal_waitforcmd() argument 198 if (mh->mh_cmdbuf[0] == le16toh(cmd)) in malo_hal_waitforcmd() 209 malo_hal_execute_cmd(struct malo_hal *mh, unsigned short cmd) in malo_hal_execute_cmd() argument 216 cmd); in malo_hal_execute_cmd() 227 if (!malo_hal_waitforcmd(mh, cmd | 0x8000)) { in malo_hal_execute_cmd() 229 "timeout waiting for f/w cmd 0x%x\n", cmd); in malo_hal_execute_cmd() 243 struct malo_cmd_caltable *cmd; in malo_hal_get_cal_table() local 248 _CMD_SETUP(cmd, struct malo_cmd_caltable, MALO_HOSTCMD_GET_CALTABLE); in malo_hal_get_cal_table() 249 cmd->annex = annex; in malo_hal_get_cal_table() [all …]
|
/haiku/src/add-ons/kernel/busses/scsi/usb/ |
H A D | transform_procs.c | 37 transform_6_to_10(uint8 *cmd, uint8 len, uint8 **rcmd, uint8 *rlen) in transform_6_to_10() argument 39 scsi_cmd_generic_6 *from = (scsi_cmd_generic_6 *)cmd; in transform_6_to_10() 97 transform_cmd_6_to_10(usb_device_info *udi, uint8 *cmd, uint8 len, in transform_cmd_6_to_10() argument 100 scsi_cmd_generic_6 *from = (scsi_cmd_generic_6 *)cmd; in transform_cmd_6_to_10() 107 transform_6_to_10(cmd, len, rcmd, rlen); in transform_cmd_6_to_10() 117 transform_6_to_10(cmd, len, rcmd, rlen); in transform_cmd_6_to_10() 139 transform_cmd_test_unit_ready(usb_device_info *udi, uint8 *cmd, uint8 len, in transform_cmd_test_unit_ready() argument 173 scsi_transform(usb_device_info *udi, uint8 *cmd, uint8 len, uint8 **rcmd, in scsi_transform() argument 177 scsi_cmd_generic *command = (scsi_cmd_generic *)cmd; in scsi_transform() 178 TRACE_SCSI_COMMAND(cmd, len); in scsi_transform() [all …]
|
/haiku/src/apps/codycam/ |
H A D | FtpClient.cpp | 43 string cmd = "CWD "; in ChangeDir() local 46 cmd += dir; in ChangeDir() 49 cmd += '/'; in ChangeDir() 51 if (_SendRequest(cmd) == true) { in ChangeDir() 65 string cmd, replyString; in ListDirContents() local 69 cmd = "TYPE A"; in ListDirContents() 71 if (_SendRequest(cmd)) in ListDirContents() 75 cmd = "LIST"; in ListDirContents() 77 if (_SendRequest(cmd)) { in ListDirContents() 110 string cmd = "PWD"; in PrintWorkingDir() local [all …]
|
H A D | SftpClient.cpp | 33 BString cmd("cd"); in ChangeDir() local 36 cmd << " " << dir.c_str() << "\n"; in ChangeDir() 37 SendCommand(cmd.String()); in ChangeDir() 88 BString cmd("sftp "); in Connect() local 97 cmd << "-oPort=" << port << " "; in Connect() 99 cmd << login.c_str(); in Connect() 100 cmd << "@" << host.String(); in Connect() 101 printf("COMMAND: '%s'\n", cmd.String()); in Connect() 102 SetCommandLine(cmd.String()); in Connect() 161 BString cmd("put"); in PutFile() local [all …]
|
/haiku/src/bin/ |
H A D | checkitout.cpp | 173 BString cmd("git clone "); in _DoCheckItOut() local 174 cmd << url; in _DoCheckItOut() 175 cmd << " '" << refPath.Path() << "/" << name << "'"; in _DoCheckItOut() 176 PRINT(("CMD='%s'\n", cmd.String())); in _DoCheckItOut() 177 cmd << " && open '" << refPath.Path() << "/" << name << "'"; in _DoCheckItOut() 178 cmd << failc; in _DoCheckItOut() 179 PRINT(("CMD='%s'\n", cmd.String())); in _DoCheckItOut() 180 args[2] = (char*)cmd.String(); in _DoCheckItOut() 185 BString cmd("rsync "); in _DoCheckItOut() local 186 cmd << url; in _DoCheckItOut() [all …]
|
H A D | urlwrapper.cpp | 279 BString cmd("telnet "); in ArgvReceived() local 281 cmd << "-l " << user << " "; in ArgvReceived() 282 cmd << host; in ArgvReceived() 284 cmd << " " << port; in ArgvReceived() 285 PRINT(("CMD='%s'\n", cmd.String())); in ArgvReceived() 286 cmd << failc; in ArgvReceived() 287 args[2] = (char*)cmd.String(); in ArgvReceived() 295 BString cmd("ssh "); in ArgvReceived() local 298 cmd << "-l " << user << " "; in ArgvReceived() 300 cmd << "-oPort=" << port << " "; in ArgvReceived() [all …]
|
/haiku/src/add-ons/kernel/drivers/disk/scsi/scsi_cd/ |
H A D | scsi_cd.cpp | 237 scsi_cmd_read_toc *cmd; in get_toc() local 250 cmd = (scsi_cmd_read_toc *)ccb->cdb; in get_toc() 252 memset(cmd, 0, sizeof(*cmd)); in get_toc() 253 cmd->opcode = SCSI_OP_READ_TOC; in get_toc() 254 cmd->time = 1; in get_toc() 255 cmd->format = SCSI_TOC_FORMAT_TOC; in get_toc() 256 cmd->track = 1; in get_toc() 257 cmd->allocation_length = B_HOST_TO_BENDIAN_INT16(sizeof(scsi_toc_general)); in get_toc() 259 ccb->cdb_length = sizeof(*cmd); in get_toc() 284 cmd->allocation_length = B_HOST_TO_BENDIAN_INT16(dataLength); in get_toc() [all …]
|
/haiku/src/add-ons/accelerants/skeleton/engine/ |
H A D | agp.c | 11 static void eng_agp_list_active(uint32 cmd); 112 nca.cmd = 0x00000000; in eng_agp_setup() 121 nca.cmd = 0xfffffff7; in eng_agp_setup() 123 if (eng_ai.interface.agp_stat & AGP_rate_rev) nca.cmd |= AGP_rate_rev; in eng_agp_setup() 129 eng_agp_list_active(nca.cmd | (eng_ai.interface.agp_stat & AGP_rate_rev)); in eng_agp_setup() 187 static void eng_agp_list_active(uint32 cmd) in eng_agp_list_active() argument 190 if (!(cmd & AGP_rate_rev)) in eng_agp_list_active() 193 if (cmd & AGP_2_1x) in eng_agp_list_active() 195 if (cmd & AGP_2_2x) in eng_agp_list_active() 197 if (cmd & AGP_2_4x) in eng_agp_list_active() [all …]
|
/haiku/src/add-ons/accelerants/s3/ |
H A D | virge_draw.cpp | 30 int cmd = DRAW | rop << 17 | CMD_RECT | CMD_XP | CMD_YP ; in Virge_FillRectangle() local 34 cmd |= gInfo.sharedInfo->commonCmd; in Virge_FillRectangle() 46 WriteReg32(CMD_SET, cmd); in Virge_FillRectangle() 58 int cmd = DRAW | rop << 17 | CMD_RECT | CMD_XP | CMD_YP ; in Virge_FillSpan() local 62 cmd |= gInfo.sharedInfo->commonCmd; in Virge_FillSpan() 84 WriteReg32(CMD_SET, cmd); in Virge_FillSpan() 94 int cmd = DRAW | rop << 17 | CMD_RECT | CMD_XP | CMD_YP; in Virge_InvertRectangle() local 98 cmd |= gInfo.sharedInfo->commonCmd; in Virge_InvertRectangle() 109 WriteReg32(CMD_SET, cmd); in Virge_InvertRectangle() 121 int cmd = DRAW | rop << 17 | CMD_BITBLT | CMD_XP | CMD_YP; in Virge_ScreenToScreenBlit() local [all …]
|
H A D | savage_draw.cpp | 23 int cmd = BCI_CMD_RECT | BCI_CMD_RECT_XP | BCI_CMD_RECT_YP in Savage_FillRectangle() local 28 BCI_CMD_SET_ROP(cmd, 0xF0); // use GXcopy for rop in Savage_FillRectangle() 40 BCI_SEND(cmd); in Savage_FillRectangle() 56 int cmd = BCI_CMD_RECT | BCI_CMD_RECT_XP | BCI_CMD_RECT_YP in Savage_FillSpan() local 61 BCI_CMD_SET_ROP(cmd, 0xF0); // use GXcopy for rop in Savage_FillSpan() 80 BCI_SEND(cmd); in Savage_FillSpan() 94 int cmd = BCI_CMD_RECT | BCI_CMD_RECT_XP | BCI_CMD_RECT_YP in Savage_InvertRectangle() local 99 BCI_CMD_SET_ROP(cmd, 0x55); // use GXinvert for rop in Savage_InvertRectangle() 111 BCI_SEND(cmd); in Savage_InvertRectangle() 129 int cmd; in Savage_ScreenToScreenBlit() local [all …]
|
/haiku/src/add-ons/accelerants/nvidia/engine/ |
H A D | nv_agp.c | 11 static void nv_agp_list_active(uint32 cmd); 113 nca.cmd = 0x00000000; in nv_agp_setup() 120 nca.cmd = 0xfffffff7; in nv_agp_setup() 123 nca.cmd |= AGP_3_MODE; in nv_agp_setup() 126 if (nca.cmd & AGP_ENABLE) in nv_agp_setup() 132 nv_agp_list_active(nca.cmd | (nv_ai.interface.status & AGP_3_MODE)); in nv_agp_setup() 194 nv_agp_list_active(uint32 cmd) in nv_agp_list_active() argument 197 if (!(cmd & AGP_3_MODE)) { in nv_agp_list_active() 199 if (cmd & AGP_2_1x) in nv_agp_list_active() 201 if (cmd & AGP_2_2x) in nv_agp_list_active() [all …]
|
/haiku/src/libs/stdc++/legacy/ |
H A D | PlotFile.cc | 62 PlotFile& PlotFile:: cmd(char c) in cmd() function in PlotFile 91 return cmd('a') << xi << yi << x0 << y0 << x1 << y1; in arc() 106 return cmd('c') << x << y << r; in circle() 111 return cmd('n') << xi << yi; in cont() 117 cmd('d') << xi << yi << dx << n; in dot() 124 return cmd('e'); in erase() 129 return cmd('t') << s << "\n"; in label() 135 return cmd('l') << x0 << y0 << x1 << y1; in line() 140 return cmd('f') << s << "\n"; in linemod() 145 return cmd('m') << xi << yi; in move() [all …]
|
/haiku/src/libs/agg/src/ |
H A D | agg_vcgen_contour.cpp | 50 void vcgen_contour::add_vertex(double x, double y, unsigned cmd) in add_vertex() argument 53 if(is_move_to(cmd)) in add_vertex() 59 if(is_vertex(cmd)) in add_vertex() 65 if(is_end_poly(cmd)) in add_vertex() 67 m_closed = get_close_flag(cmd); in add_vertex() 70 m_orientation = get_orientation(cmd); in add_vertex() 104 unsigned cmd = path_cmd_line_to; in vertex() local 105 while(!is_stop(cmd)) in vertex() 115 cmd = path_cmd_stop; in vertex() 119 cmd = path_cmd_move_to; in vertex() [all …]
|
H A D | agg_vcgen_stroke.cpp | 49 void vcgen_stroke::add_vertex(double x, double y, unsigned cmd) in add_vertex() argument 52 if(is_move_to(cmd)) in add_vertex() 58 if(is_vertex(cmd)) in add_vertex() 64 m_closed = get_close_flag(cmd); in add_vertex() 87 unsigned cmd = path_cmd_line_to; in vertex() local 88 while(!is_stop(cmd)) in vertex() 98 cmd = path_cmd_stop; in vertex() 102 cmd = path_cmd_move_to; in vertex() 160 cmd = path_cmd_move_to; in vertex() 193 return cmd; in vertex() [all …]
|
/haiku/headers/libs/agg/ |
H A D | agg_conv_close_polygon.h | 64 unsigned cmd = path_cmd_stop; in vertex() local 71 cmd = m_cmd[m_vertex]; in vertex() 76 cmd = m_source->vertex(x, y); in vertex() 78 if(is_end_poly(cmd)) in vertex() 80 cmd |= path_flags_close; in vertex() 84 if(is_stop(cmd)) in vertex() 97 if(is_move_to(cmd)) in vertex() 106 m_cmd[1] = cmd; in vertex() 114 if(is_vertex(cmd)) in vertex() 120 return cmd; in vertex()
|
H A D | agg_conv_adaptor_vcgen.h | 91 unsigned cmd = path_cmd_stop; in vertex() local 111 cmd = m_source->vertex(x, y); in vertex() 112 if(is_vertex(cmd)) in vertex() 114 m_last_cmd = cmd; in vertex() 115 if(is_move_to(cmd)) in vertex() 121 m_generator.add_vertex(*x, *y, cmd); in vertex() 126 if(is_stop(cmd)) in vertex() 131 if(is_end_poly(cmd)) in vertex() 133 m_generator.add_vertex(*x, *y, cmd); in vertex() 142 cmd = m_generator.vertex(x, y); in vertex() [all …]
|
H A D | agg_conv_adaptor_vpgen.h | 69 unsigned cmd = path_cmd_stop; in vertex() local 72 cmd = m_vpgen.vertex(x, y); in vertex() 73 if(!is_stop(cmd)) break; in vertex() 79 cmd = m_poly_flags; in vertex() 97 cmd = m_source->vertex(&tx, &ty); in vertex() 98 if(is_vertex(cmd)) in vertex() 100 if(is_move_to(cmd)) in vertex() 124 if(is_end_poly(cmd)) in vertex() 126 m_poly_flags = cmd; in vertex() 127 if(is_closed(cmd) || m_vpgen.auto_close()) in vertex() [all …]
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192c/ |
H A D | r92c_fw.c | 65 struct r92c_fw_cmd cmd; in r92c_fw_cmd() local 68 KASSERT(len <= sizeof(cmd.msg), in r92c_fw_cmd() 70 __func__, len, sizeof(cmd.msg))); in r92c_fw_cmd() 90 memset(&cmd, 0, sizeof(cmd)); in r92c_fw_cmd() 91 cmd.id = id; in r92c_fw_cmd() 94 cmd.id |= R92C_CMD_FLAG_EXT; in r92c_fw_cmd() 95 memcpy(cmd.msg, (const uint8_t *)buf + 2, len - 2); in r92c_fw_cmd() 96 memcpy(cmd.msg + 3, buf, 2); in r92c_fw_cmd() 98 memcpy(cmd.msg, buf, len); in r92c_fw_cmd() 103 *(uint16_t *)((uint8_t *)&cmd + 4)); in r92c_fw_cmd() [all …]
|
/haiku/src/add-ons/kernel/drivers/bus/scsi/ |
H A D | scsi_raw.c | 73 raw_command(raw_device_info *device, raw_device_command *cmd) in raw_command() argument 85 if (cmd->flags & B_RAW_DEVICE_DATA_IN) in raw_command() 87 else if (cmd->data_length) in raw_command() 92 request->data = cmd->data; in raw_command() 94 request->data_len = cmd->data_length; in raw_command() 96 request->timeout = cmd->timeout; in raw_command() 98 memcpy(request->cdb, cmd->command, SCSI_MAX_CDB_SIZE); in raw_command() 99 request->cdb_len = cmd->command_length; in raw_command() 106 cmd->cam_status = request->subsys_status; in raw_command() 107 cmd->scsi_status = request->device_status; in raw_command() [all …]
|