/external/libevent/ |
D | event_iocp.c | 66 struct event_iocp_port *port = port_; in loop() local 67 long ms = port->ms; in loop() 68 HANDLE p = port->port; in loop() 79 EnterCriticalSection(&port->lock); in loop() 80 if (port->shutdown) { in loop() 81 if (--port->n_live_threads == 0) in loop() 82 ReleaseSemaphore(port->shutdownSemaphore, 1, in loop() 84 LeaveCriticalSection(&port->lock); in loop() 87 LeaveCriticalSection(&port->lock); in loop() 95 EnterCriticalSection(&port->lock); in loop() [all …]
|
/external/u-boot/arch/powerpc/cpu/mpc8xxx/ |
D | srio.c | 71 static int srio_erratum_a004034(u8 port) in srio_erratum_a004034() argument 83 >> (12 - port * 4)) & 0x3; in srio_erratum_a004034() 85 .port[port].pccsr) >> 27) & 0x7; in srio_erratum_a004034() 104 .port[port].pescsr) & 0x2) { in srio_erratum_a004034() 120 .port[port].pccsr, in srio_erratum_a004034() 126 setbits_be32((void *)&srio_regs->impl.port[port].pcr, in srio_erratum_a004034() 133 if (port) in srio_erratum_a004034() 179 out_be32((void *)&srio_regs->impl.port[port].slcsr, in srio_erratum_a004034() 182 clrbits_be32((void *)&srio_regs->impl.port[port].pcr, in srio_erratum_a004034() 186 .port[port].pccsr, in srio_erratum_a004034() [all …]
|
/external/selinux/libsepol/src/ |
D | port_record.c | 63 const sepol_port_t * port, in hidden_def() 68 (handle, port->low, port->high, port->proto, key_ptr) < 0) { in hidden_def() 71 sepol_port_get_proto_str(port->proto), in hidden_def() 72 port->low, port->high); in hidden_def() 85 int sepol_port_compare(const sepol_port_t * port, const sepol_port_key_t * key) in sepol_port_compare() argument 88 if ((port->low == key->low) && in sepol_port_compare() 89 (port->high == key->high) && (port->proto == key->proto)) in sepol_port_compare() 92 if (port->low < key->low) in sepol_port_compare() 95 else if (key->low < port->low) in sepol_port_compare() 98 else if (port->high < key->high) in sepol_port_compare() [all …]
|
/external/u-boot/drivers/serial/ |
D | serial_sh.c | 26 static int scif_rxfill(struct uart_port *port) in scif_rxfill() argument 28 return sci_in(port, SCRFDR) & 0xff; in scif_rxfill() 31 static int scif_rxfill(struct uart_port *port) in scif_rxfill() argument 33 if ((port->mapbase == 0xffe00000) || in scif_rxfill() 34 (port->mapbase == 0xffe08000)) { in scif_rxfill() 36 return sci_in(port, SCRFDR) & 0xff; in scif_rxfill() 39 return sci_in(port, SCFDR) & SCIF2_RFDC_MASK; in scif_rxfill() 43 static int scif_rxfill(struct uart_port *port) in scif_rxfill() argument 45 if (port->type == PORT_SCIFA) in scif_rxfill() 46 return sci_in(port, SCFDR) & SCIF_RFDC_MASK; in scif_rxfill() [all …]
|
D | serial_sh.h | 28 # define SCSCR_INIT(port) 0x30 /* TIE=0,RIE=0,TE=1,RE=1 */ argument 41 # define SCSCR_INIT(port) (port->mapbase == SCIF2) ? 0xF3 : 0xF0 argument 49 # define SCSCR_INIT(port) 0x0030 /* TIE=0,RIE=0,TE=1,RE=1 */ argument 57 # define SCSCR_INIT(port) 0x3a /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument 67 # define SCSCR_INIT(port) (((port)->type == PORT_SCI) ? \ argument 75 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument 81 # define SCSCR_INIT(port) 0x3B argument 87 # define SCSCR_INIT(port) 0x32 /* TIE=0,RIE=0,TE=1,RE=1,REIE=0,CKE=1 */ argument 95 # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument 100 # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument [all …]
|
/external/u-boot/drivers/bios_emulator/ |
D | besys.c | 249 #define IS_TIMER_PORT(port) (0x40 <= port && port <= 0x43) argument 250 #define IS_CMOS_PORT(port) (0x70 <= port && port <= 0x71) argument 252 #define IS_VGA_PORT(port) (0x3C0 <= port && port <= 0x3DA) argument 253 #define IS_PCI_PORT(port) (0xCF8 <= port && port <= 0xCFF) argument 254 #define IS_SPKR_PORT(port) (port == 0x61) argument 267 static u8 VGA_inpb (const int port) in VGA_inpb() argument 271 debug_io("vga_inb.%04X -> ", (u16) port); in VGA_inpb() 272 switch (port) { in VGA_inpb() 343 static void VGA_outpb (int port, u8 val) in VGA_outpb() argument 345 switch (port) { in VGA_outpb() [all …]
|
D | biosemui.h | 131 #define PM_inpb(port) inb(port+VIDEO_IO_OFFSET) argument 132 #define PM_inpw(port) inw(port+VIDEO_IO_OFFSET) argument 133 #define PM_inpd(port) inl(port+VIDEO_IO_OFFSET) argument 134 #define PM_outpb(port,val) outb(val,port+VIDEO_IO_OFFSET) argument 135 #define PM_outpw(port,val) outw(val,port+VIDEO_IO_OFFSET) argument 136 #define PM_outpd(port,val) outl(val,port+VIDEO_IO_OFFSET) argument 138 #define LOG_inpb(port) PM_inpb(port) argument 139 #define LOG_inpw(port) PM_inpw(port) argument 140 #define LOG_inpd(port) PM_inpd(port) argument 141 #define LOG_outpb(port,val) PM_outpb(port,val) argument [all …]
|
/external/u-boot/drivers/ata/ |
D | sata_sil3114.c | 39 static struct sata_port port[CONFIG_SYS_SATA_MAX_DEVICE]; variable 60 port[num].dev_mask = 1; in sata_bus_softreset() 62 port[num].ctl_reg = 0x08; /*Default value of control reg */ in sata_bus_softreset() 63 writeb (port[num].ctl_reg, port[num].ioaddr.ctl_addr); in sata_bus_softreset() 65 writeb (port[num].ctl_reg | ATA_SRST, port[num].ioaddr.ctl_addr); in sata_bus_softreset() 67 writeb (port[num].ctl_reg, port[num].ioaddr.ctl_addr); in sata_bus_softreset() 78 status = sata_busy_wait (&port[num].ioaddr, ATA_BUSY, 300, 0); in sata_bus_softreset() 81 status = sata_busy_wait (&port[num].ioaddr, ATA_BUSY, 3, 0); in sata_bus_softreset() 90 status = sata_chk_status (&port[num].ioaddr, 0); in sata_bus_softreset() 96 port[num].dev_mask = 0; in sata_bus_softreset() [all …]
|
/external/u-boot/arch/arm/cpu/arm926ejs/mx27/ |
D | generic.c | 209 unsigned int port = (gpio_mode & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT; in imx_gpio_mode() local 217 writel(readl(®s->port[port].puen) | (1 << pin), in imx_gpio_mode() 218 ®s->port[port].puen); in imx_gpio_mode() 220 writel(readl(®s->port[port].puen) & ~(1 << pin), in imx_gpio_mode() 221 ®s->port[port].puen); in imx_gpio_mode() 226 writel(readl(®s->port[port].gpio_dir) | 1 << pin, in imx_gpio_mode() 227 ®s->port[port].gpio_dir); in imx_gpio_mode() 229 writel(readl(®s->port[port].gpio_dir) & ~(1 << pin), in imx_gpio_mode() 230 ®s->port[port].gpio_dir); in imx_gpio_mode() 235 writel(readl(®s->port[port].gpr) | (1 << pin), in imx_gpio_mode() [all …]
|
/external/u-boot/drivers/net/ |
D | mvpp2.c | 81 #define MVPP2_RX_DATA_FIFO_SIZE_REG(port) (0x00 + 4 * (port)) argument 82 #define MVPP2_RX_ATTR_FIFO_SIZE_REG(port) (0x20 + 4 * (port)) argument 87 #define MVPP2_RX_CTRL_REG(port) (0x140 + 4 * (port)) argument 108 #define MVPP2_PRS_PORT_LU_MASK(port) (0xff << ((port) * 4)) argument 109 #define MVPP2_PRS_PORT_LU_VAL(port, val) ((val) << ((port) * 4)) argument 110 #define MVPP2_PRS_INIT_OFFS_REG(port) (0x1004 + ((port) & 4)) argument 111 #define MVPP2_PRS_INIT_OFF_MASK(port) (0x3f << (((port) % 4) * 8)) argument 112 #define MVPP2_PRS_INIT_OFF_VAL(port, val) ((val) << (((port) % 4) * 8)) argument 113 #define MVPP2_PRS_MAX_LOOP_REG(port) (0x100c + ((port) & 4)) argument 114 #define MVPP2_PRS_MAX_LOOP_MASK(port) (0xff << (((port) % 4) * 8)) argument [all …]
|
/external/u-boot/drivers/misc/ |
D | smsc_sio1007.c | 11 static inline u8 sio1007_read(int port, int reg) in sio1007_read() argument 13 outb(reg, port); in sio1007_read() 15 return inb(port + 1); in sio1007_read() 18 static inline void sio1007_write(int port, int reg, int val) in sio1007_write() argument 20 outb(reg, port); in sio1007_write() 21 outb(val, port + 1); in sio1007_write() 24 static inline void sio1007_clrsetbits(int port, int reg, u8 clr, u8 set) in sio1007_clrsetbits() argument 26 sio1007_write(port, reg, (sio1007_read(port, reg) & ~clr) | set); in sio1007_clrsetbits() 29 void sio1007_enable_serial(int port, int num, int iobase, int irq) in sio1007_enable_serial() argument 35 outb(0x55, port); in sio1007_enable_serial() [all …]
|
/external/u-boot/arch/m68k/include/asm/ |
D | io.h | 46 #define insb(port, buf, ns) _insb((u8 *)((port)+_IO_BASE), (buf), (ns)) argument 47 #define outsb(port, buf, ns) _outsb((u8 *)((port)+_IO_BASE), (buf), (ns)) argument 48 #define insw(port, buf, ns) _insw_ns((u16 *)((port)+_IO_BASE), (buf), (ns)) argument 49 #define outsw(port, buf, ns) _outsw_ns((u16 *)((port)+_IO_BASE), (buf), (ns)) argument 50 #define insl(port, buf, nl) _insl_ns((u32 *)((port)+_IO_BASE), (buf), (nl)) argument 51 #define outsl(port, buf, nl) _outsl_ns((u32 *)((port)+_IO_BASE), (buf), (nl)) argument 53 #define inb(port) in_8((u8 *)((port)+_IO_BASE)) argument 54 #define outb(val, port) out_8((u8 *)((port)+_IO_BASE), (val)) argument 56 #define inw(port) in_be16((u16 *)((port)+_IO_BASE)) argument 57 #define outw(val, port) out_be16((u16 *)((port)+_IO_BASE), (val)) argument [all …]
|
/external/libchrome/mojo/core/ports/ |
D | node.cc | 82 bool CanAcceptMoreMessages(const Port* port) { in CanAcceptMoreMessages() argument 85 uint64_t next_sequence_num = port->message_queue.next_sequence_num(); in CanAcceptMoreMessages() 86 if (port->state == Port::kClosed) in CanAcceptMoreMessages() 88 if (port->peer_closed || port->remove_proxy_on_last_message) { in CanAcceptMoreMessages() 89 if (port->last_sequence_num_to_receive == next_sequence_num - 1) in CanAcceptMoreMessages() 133 auto* port = locker.port(); in CanShutdownCleanly() local 134 if (port->peer_node_name != name_ && port->state != Port::kReceiving) { in CanShutdownCleanly() 138 << port->peer_node_name << " is blocking shutdown of " in CanShutdownCleanly() 139 << "node " << name_ << " (state=" << port->state << ")"; in CanShutdownCleanly() 170 scoped_refptr<Port> port(new Port(kInitialSequenceNum, kInitialSequenceNum)); in CreateUninitializedPort() local [all …]
|
/external/u-boot/arch/arm/mach-mvebu/serdes/axp/ |
D | board_env_spec.h | 130 #define SATA_BASE_REG(port) (0xA2000 + (port)*0x2000) argument 132 #define SATA_PWR_PLL_CTRL_REG(port) (SATA_BASE_REG(port) + 0x804) argument 133 #define SATA_DIG_LP_ENA_REG(port) (SATA_BASE_REG(port) + 0x88C) argument 134 #define SATA_REF_CLK_SEL_REG(port) (SATA_BASE_REG(port) + 0x918) argument 135 #define SATA_COMPHY_CTRL_REG(port) (SATA_BASE_REG(port) + 0x920) argument 136 #define SATA_LP_PHY_EXT_CTRL_REG(port) (SATA_BASE_REG(port) + 0x058) argument 137 #define SATA_LP_PHY_EXT_STAT_REG(port) (SATA_BASE_REG(port) + 0x05C) argument 138 #define SATA_IMP_TX_SSC_CTRL_REG(port) (SATA_BASE_REG(port) + 0x810) argument 139 #define SATA_GEN_1_SET_0_REG(port) (SATA_BASE_REG(port) + 0x834) argument 140 #define SATA_GEN_1_SET_1_REG(port) (SATA_BASE_REG(port) + 0x838) argument [all …]
|
/external/tensorflow/tensorflow/stream_executor/platform/default/ |
D | dso_loader.h | 37 port::StatusOr<void*> GetCudaDriverDsoHandle(); 38 port::StatusOr<void*> GetCudaRuntimeDsoHandle(); 39 port::StatusOr<void*> GetCublasDsoHandle(); 40 port::StatusOr<void*> GetCufftDsoHandle(); 41 port::StatusOr<void*> GetCurandDsoHandle(); 42 port::StatusOr<void*> GetCuptiDsoHandle(); 43 port::StatusOr<void*> GetCudnnDsoHandle(); 45 port::StatusOr<void*> GetRocblasDsoHandle(); 46 port::StatusOr<void*> GetMiopenDsoHandle(); 47 port::StatusOr<void*> GetRocfftDsoHandle(); [all …]
|
D | dso_loader.cc | 36 port::StatusOr<void*> GetDsoHandle(const string& name, const string& version) { in GetDsoHandle() 37 auto filename = port::Env::Default()->FormatLibraryFileName(name, version); in GetDsoHandle() 39 port::Status status = in GetDsoHandle() 40 port::Env::Default()->LoadLibrary(filename.c_str(), &dso_handle); in GetDsoHandle() 54 return port::Status(port::error::FAILED_PRECONDITION, message); in GetDsoHandle() 59 port::StatusOr<void*> GetCudaDriverDsoHandle() { in GetCudaDriverDsoHandle() 73 port::StatusOr<void*> GetCudaRuntimeDsoHandle() { in GetCudaRuntimeDsoHandle() 77 port::StatusOr<void*> GetCublasDsoHandle() { in GetCublasDsoHandle() 81 port::StatusOr<void*> GetCufftDsoHandle() { in GetCufftDsoHandle() 85 port::StatusOr<void*> GetCurandDsoHandle() { in GetCurandDsoHandle() [all …]
|
/external/u-boot/arch/powerpc/include/asm/ |
D | io.h | 43 #define insb(port, buf, ns) _insb((u8 *)((port)+_IO_BASE), (buf), (ns)) argument 44 #define outsb(port, buf, ns) _outsb((u8 *)((port)+_IO_BASE), (buf), (ns)) argument 45 #define insw(port, buf, ns) _insw_ns((u16 *)((port)+_IO_BASE), (buf), (ns)) argument 46 #define outsw(port, buf, ns) _outsw_ns((u16 *)((port)+_IO_BASE), (buf), (ns)) argument 47 #define insl(port, buf, nl) _insl_ns((u32 *)((port)+_IO_BASE), (buf), (nl)) argument 48 #define outsl(port, buf, nl) _outsl_ns((u32 *)((port)+_IO_BASE), (buf), (nl)) argument 50 #define inb(port) in_8((u8 *)((port)+_IO_BASE)) argument 51 #define outb(val, port) out_8((u8 *)((port)+_IO_BASE), (val)) argument 53 #define inw(port) in_be16((u16 *)((port)+_IO_BASE)) argument 54 #define outw(val, port) out_be16((u16 *)((port)+_IO_BASE), (val)) argument [all …]
|
/external/u-boot/arch/x86/include/asm/arch-quark/ |
D | msg_port.h | 44 void msg_port_setup(int op, int port, int reg); 54 u32 msg_port_read(u8 port, u32 reg); 63 void msg_port_write(u8 port, u32 reg, u32 value); 73 u32 msg_port_alt_read(u8 port, u32 reg); 82 void msg_port_alt_write(u8 port, u32 reg, u32 value); 92 u32 msg_port_io_read(u8 port, u32 reg); 101 void msg_port_io_write(u8 port, u32 reg, u32 value); 108 #define msg_port_generic_clrsetbits(type, port, reg, clr, set) \ argument 109 msg_port_##type##_write(port, reg, \ 110 (msg_port_##type##_read(port, reg) \ [all …]
|
/external/autotest/client/site_tests/usbpd_GFU/ |
D | usbpd_GFU.py | 65 def _is_gfu(self, port): argument 72 return port.is_amode_supported(self.GOOGLE_VID) 74 def _is_in_rw(self, port): argument 81 flash_info = port.get_flash_info() 95 def _modify_rw(self, port, rw=None, tries=3): argument 117 port.ec_command('flashpd 0 %d %s' % (port.index, rw), 126 if rw != '/dev/null' and not self._is_in_rw(port): 128 port.index) 135 msg = self._reader.get_last_msg([r'%s.*is in RO' % port.index, 140 port.index) [all …]
|
/external/selinux/libsemanage/src/ |
D | port_record.c | 27 int semanage_port_compare(const semanage_port_t * port, in semanage_port_compare() argument 31 return sepol_port_compare(port, key); in semanage_port_compare() 36 int semanage_port_compare2(const semanage_port_t * port, in hidden_def() 40 return sepol_port_compare2(port, port2); in hidden_def() 45 hidden int semanage_port_compare2_qsort(const semanage_port_t ** port, in hidden_def() 49 return sepol_port_compare2(*port, *port2); in hidden_def() 61 const semanage_port_t * port, in semanage_port_key_extract() argument 65 return sepol_port_key_extract(handle->sepolh, port, key_ptr); in semanage_port_key_extract() 79 int semanage_port_get_proto(const semanage_port_t * port) in hidden_def() 82 return sepol_port_get_proto(port); in hidden_def() [all …]
|
/external/u-boot/arch/xtensa/include/asm/ |
D | io.h | 59 #define inb(port) readb((u8 *)((port))) argument 60 #define outb(val, port) writeb((val), (u8 *)((unsigned long)(port))) argument 61 #define inw(port) readw((u16 *)((port))) argument 62 #define outw(val, port) writew((val), (u16 *)((unsigned long)(port))) argument 63 #define inl(port) readl((u32 *)((port))) argument 64 #define outl(val, port) writel((val), (u32 *)((unsigned long)(port))) argument 66 #define inb_p(port) inb((port)) argument 67 #define outb_p(val, port) outb((val), (port)) argument 68 #define inw_p(port) inw((port)) argument 69 #define outw_p(val, port) outw((val), (port)) argument [all …]
|
/external/tensorflow/tensorflow/stream_executor/cuda/ |
D | cuda_diagnostics.cc | 56 return port::Printf("%d.%d.%d", std::get<0>(version), std::get<1>(version), std::get<2>(version)); in DriverVersionToString() 59 string DriverVersionStatusToString(port::StatusOr<DriverVersion> version) { in DriverVersionStatusToString() 67 port::StatusOr<DriverVersion> StringToDriverVersion(const string &value) { in StringToDriverVersion() 68 std::vector<string> pieces = port::Split(value, '.'); in StringToDriverVersion() 70 return port::Status( in StringToDriverVersion() 71 port::error::INVALID_ARGUMENT, in StringToDriverVersion() 72 port::Printf("expected %%d.%%d, %%d.%%d.%%d, or %%d.%%d.%%d.%%d form " in StringToDriverVersion() 80 if (!port::safe_strto32(pieces[0], &major)) { in StringToDriverVersion() 81 return port::Status( in StringToDriverVersion() 82 port::error::INVALID_ARGUMENT, in StringToDriverVersion() [all …]
|
/external/u-boot/drivers/net/fm/ |
D | init.c | 116 static int fm_port_to_index(enum fm_port port) in fm_port_to_index() argument 121 if (fm_info[i].port == port) in fm_port_to_index() 140 enet_if = fman_port_enet_if(fm_info[i].port); in fman_enet_init() 152 void fm_disable_port(enum fm_port port) in fm_disable_port() argument 154 int i = fm_port_to_index(port); in fm_disable_port() 161 fman_disable_port(port); in fm_disable_port() 165 void fm_enable_port(enum fm_port port) in fm_enable_port() argument 167 int i = fm_port_to_index(port); in fm_enable_port() 173 fman_enable_port(port); in fm_enable_port() 176 void fm_info_set_mdio(enum fm_port port, struct mii_dev *bus) in fm_info_set_mdio() argument [all …]
|
/external/tensorflow/tensorflow/stream_executor/rocm/ |
D | rocm_diagnostics.cc | 50 string DriverVersionStatusToString(port::StatusOr<DriverVersion> version) { in DriverVersionStatusToString() 58 port::StatusOr<DriverVersion> StringToDriverVersion(const string& value) { in StringToDriverVersion() 59 std::vector<string> pieces = port::Split(value, '.'); in StringToDriverVersion() 61 return port::Status{port::error::INVALID_ARGUMENT, in StringToDriverVersion() 70 if (!port::safe_strto32(pieces[0], &major)) { in StringToDriverVersion() 71 return port::Status{ in StringToDriverVersion() 72 port::error::INVALID_ARGUMENT, in StringToDriverVersion() 77 if (!port::safe_strto32(pieces[1], &minor)) { in StringToDriverVersion() 78 return port::Status{ in StringToDriverVersion() 79 port::error::INVALID_ARGUMENT, in StringToDriverVersion() [all …]
|
/external/u-boot/drivers/gpio/ |
D | at91_gpio.c | 22 static struct at91_port *at91_pio_get_port(unsigned port) in at91_pio_get_port() argument 24 switch (port) { in at91_pio_get_port() 58 int at91_set_pio_pullup(unsigned port, unsigned pin, int use_pullup) in at91_set_pio_pullup() argument 60 struct at91_port *at91_port = at91_pio_get_port(port); in at91_set_pio_pullup() 71 int at91_set_pio_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_pio_periph() argument 73 struct at91_port *at91_port = at91_pio_get_port(port); in at91_set_pio_periph() 79 at91_set_pio_pullup(port, pin, use_pullup); in at91_set_pio_periph() 89 int at91_set_a_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_a_periph() argument 91 struct at91_port *at91_port = at91_pio_get_port(port); in at91_set_a_periph() 97 at91_set_pio_pullup(port, pin, use_pullup); in at91_set_a_periph() [all …]
|