Home
last modified time | relevance | path

Searched refs:prg (Results 1 – 14 of 14) sorted by relevance

/titanic_41/usr/src/uts/i86pc/io/pci/
H A Dpci_tools.c81 static int pcitool_cfg_access(pcitool_reg_t *prg, boolean_t write_flag,
83 static int pcitool_io_access(pcitool_reg_t *prg, boolean_t write_flag);
84 static int pcitool_mem_access(pcitool_reg_t *prg, uint64_t virt_addr,
582 pcitool_cfg_access(pcitool_reg_t *prg, boolean_t write_flag, in pcitool_cfg_access() argument
585 int size = PCITOOL_ACC_ATTR_SIZE(prg->acc_attr); in pcitool_cfg_access()
586 boolean_t big_endian = PCITOOL_ACC_IS_BIG_ENDIAN(prg->acc_attr); in pcitool_cfg_access()
593 prg->status = PCITOOL_INVALID_SIZE; in pcitool_cfg_access()
607 if (prg->offset + size - 1 > max_offset) { in pcitool_cfg_access()
608 prg->status = PCITOOL_INVALID_ADDRESS; in pcitool_cfg_access()
612 prg->status = PCITOOL_SUCCESS; in pcitool_cfg_access()
[all …]
/titanic_41/usr/src/uts/sun4u/io/pci/
H A Dpci_tools.c108 static int pcitool_validate_barnum_bdf(pcitool_reg_t *prg);
109 static int pcitool_get_bar(pci_t *pci_p, pcitool_reg_t *prg,
112 static int pcitool_config_request(pci_t *pci_p, pcitool_reg_t *prg,
629 pcitool_reg_t prg; in pcitool_bus_reg_ops() local
642 if (ddi_copyin(arg, &prg, sizeof (pcitool_reg_t), mode) != in pcitool_bus_reg_ops()
655 prg.status = PCITOOL_REGPROP_NOTWELLFORMED; in pcitool_bus_reg_ops()
662 if (prg.barnum >= in pcitool_bus_reg_ops()
664 prg.status = PCITOOL_OUT_OF_RANGE; in pcitool_bus_reg_ops()
669 size = PCITOOL_ACC_ATTR_SIZE(prg.acc_attr); in pcitool_bus_reg_ops()
670 base_addr = pci_rp[prg.barnum].phys_addr; in pcitool_bus_reg_ops()
[all …]
/titanic_41/usr/src/uts/sun4u/chicago/io/fpc/
H A Dfpc-impl-4u.c260 pcitool_reg_t prg; in fpc_event_io() local
265 prg.user_version = PCITOOL_VERSION; in fpc_event_io()
268 prg.barnum = JBUS_BANK; in fpc_event_io()
269 prg.offset = counter_select_offsets[group] - in fpc_event_io()
272 prg.barnum = PCIE_BANK; in fpc_event_io()
280 prg.offset = counter_select_offsets[group]; in fpc_event_io()
282 prg.acc_attr = PCITOOL_ACC_ATTR_SIZE_8 | PCITOOL_ACC_ATTR_ENDN_BIG; in fpc_event_io()
283 prg.data = *reg_data; in fpc_event_io()
286 if (((rval = ldi_ioctl(handle_impl->devhandle, cmd, (intptr_t)&prg, in fpc_event_io()
288 *reg_data = prg.data; in fpc_event_io()
[all …]
/titanic_41/usr/src/uts/sun4/io/px/
H A Dpx_tools.c428 pxtool_validate_barnum_bdf(pcitool_reg_t *prg) in pxtool_validate_barnum_bdf() argument
432 if (prg->barnum >= (sizeof (pci_bars) / sizeof (pci_bars[0]))) { in pxtool_validate_barnum_bdf()
433 prg->status = PCITOOL_OUT_OF_RANGE; in pxtool_validate_barnum_bdf()
437 } else if (((prg->bus_no & in pxtool_validate_barnum_bdf()
438 (PCI_REG_BUS_M >> PCI_REG_BUS_SHIFT)) != prg->bus_no) || in pxtool_validate_barnum_bdf()
439 ((prg->dev_no & in pxtool_validate_barnum_bdf()
440 (PCI_REG_DEV_M >> PCI_REG_DEV_SHIFT)) != prg->dev_no) || in pxtool_validate_barnum_bdf()
441 ((prg->func_no & in pxtool_validate_barnum_bdf()
442 (PCI_REG_FUNC_M >> PCI_REG_FUNC_SHIFT)) != prg->func_no)) { in pxtool_validate_barnum_bdf()
443 prg->status = PCITOOL_INVALID_ADDRESS; in pxtool_validate_barnum_bdf()
[all …]
/titanic_41/usr/src/uts/sun4u/io/px/
H A Dpx_tools_4u.c347 pcitool_reg_t prg; in pxtool_bus_reg_ops() local
362 if (ddi_copyin(arg, &prg, sizeof (pcitool_reg_t), mode) != in pxtool_bus_reg_ops()
374 prg.status = PCITOOL_REGPROP_NOTWELLFORMED; in pxtool_bus_reg_ops()
383 if (prg.barnum >= numbanks) { in pxtool_bus_reg_ops()
384 prg.status = PCITOOL_OUT_OF_RANGE; in pxtool_bus_reg_ops()
389 base_addr = px_rp[prg.barnum].phys_addr; in pxtool_bus_reg_ops()
390 prg.phys_addr = base_addr + prg.offset; in pxtool_bus_reg_ops()
395 base_addr, prg.offset, prg.phys_addr, px_rp[prg.barnum].size); in pxtool_bus_reg_ops()
397 if (prg.offset >= px_rp[prg.barnum].size) { in pxtool_bus_reg_ops()
398 prg.status = PCITOOL_OUT_OF_RANGE; in pxtool_bus_reg_ops()
[all …]
/titanic_41/usr/src/uts/sun4v/io/px/
H A Dpx_tools_4v.c460 pcitool_reg_t prg; in pxtool_bus_reg_ops() local
472 if (ddi_copyin(arg, &prg, sizeof (pcitool_reg_t), in pxtool_bus_reg_ops()
478 size = PCITOOL_ACC_ATTR_SIZE(prg.acc_attr); in pxtool_bus_reg_ops()
481 prg.bus_no, prg.dev_no, prg.func_no); in pxtool_bus_reg_ops()
483 prg.barnum, prg.offset, prg.acc_attr); in pxtool_bus_reg_ops()
485 prg.data, prg.phys_addr); in pxtool_bus_reg_ops()
493 if (prg.barnum != PCITOOL_BASE) { in pxtool_bus_reg_ops()
494 prg.status = PCITOOL_OUT_OF_RANGE; in pxtool_bus_reg_ops()
501 prg.status = PCITOOL_INVALID_SIZE; in pxtool_bus_reg_ops()
507 if (!IS_P2ALIGNED(prg.offset, size)) { in pxtool_bus_reg_ops()
[all …]
/titanic_41/usr/src/cmd/sendmail/aux/
H A Dsmrsh.c99 char *prg, *par; variable
130 "%s: command too long: %s\n", prg, par);
173 prg = argv[0];
178 "Usage: %s -c command\n", prg);
213 "%s: command too long: %s\n", prg, par);
240 prg);
299 prg, cmd);
318 prg, cmd);
336 prg, cmd);
350 prg, cmd);
[all …]
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/opl/common/
H A Dopl_picl.c575 pcitool_reg_t prg; in read_long() local
577 prg.user_version = PCITOOL_VERSION; in read_long()
578 prg.barnum = 0; in read_long()
579 prg.acc_attr = PCITOOL_ACC_ATTR_SIZE_4 + in read_long()
581 prg.bus_no = bus; in read_long()
582 prg.dev_no = dev; in read_long()
583 prg.func_no = func; in read_long()
584 prg.offset = offset; in read_long()
585 rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, &prg); in read_long()
591 return ((uint32_t)prg.data); in read_long()
[all …]
/titanic_41/usr/src/cmd/pcidr/
H A Dpcidr.h75 char *prg; member
99 extern char *prg;
102 extern char *prg;
H A Dpcidr.c156 prg, MIN_DLVL, MAX_DLVL, dlvl, in help()
157 prg, MAX_DLVL, /* Example 1 */ in help()
158 prg, DWARN); /* Example 2 */ in help()
559 prg = argv[0]; in main()
563 openlog(prg, LOG_PID | LOG_CONS, LOG_DAEMON); in main()
634 plugin_opt.logopt.prg = prg; in main()
H A Dpcidr_common.c64 char *prg = ""; /* program name */ variable
142 prg = logopt->prg; in pcidr_set_logopt()
/titanic_41/usr/src/cmd/sendmail/libsm/
H A Dt-memstat.c31 usage(prg) in usage() argument
32 char *prg; in usage()
34 fprintf(stderr, "usage: %s [options]\n", prg);
/titanic_41/usr/src/cmd/pcitool/
H A Dpcitool.c751 pcitool_reg_t prg; in do_probe() local
760 prg.barnum = 0; /* Config space. */ in do_probe()
763 prg.acc_attr = PCITOOL_ACC_ATTR_SIZE_4 + NATIVE_ENDIAN; in do_probe()
765 prg.data = 0; in do_probe()
827 prg.bus_no = bus; in do_probe()
841 prg.dev_no = dev; in do_probe()
842 rval = probe_dev(fd, &prg, input_args_p); in do_probe()
1325 pcitool_reg_t prg; /* Request details given to the driver. */ in do_device_or_nexus() local
1331 prg.data = input_args_p->write_value; in do_device_or_nexus()
1358 prg.barnum = PCITOOL_BASE; in do_device_or_nexus()
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsafechown.c77 usage(char *prg) in usage() argument
79 fprintf(stderr, "Usage %s [-u uid] [-m mode] source\n", prg); in usage()