Home
last modified time | relevance | path

Searched refs:stat1 (Results 1 – 25 of 27) sorted by relevance

12

/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
Dgk104.c33 u32 stat1 = nvkm_rd32(device, 0x00dc88) & intr1; in gk104_gpio_intr_stat() local
34 *lo = (stat1 & 0xffff0000) | (stat0 >> 16); in gk104_gpio_intr_stat()
35 *hi = (stat1 << 16) | (stat0 & 0x0000ffff); in gk104_gpio_intr_stat()
Dg94.c33 u32 stat1 = nvkm_rd32(device, 0x00e070) & intr1; in g94_gpio_intr_stat() local
34 *lo = (stat1 & 0xffff0000) | (stat0 >> 16); in g94_gpio_intr_stat()
35 *hi = (stat1 << 16) | (stat0 & 0x0000ffff); in g94_gpio_intr_stat()
Dga102.c77 u32 stat1 = nvkm_rd32(device, 0x021654) & intr1; in ga102_gpio_intr_stat() local
78 *lo = (stat1 & 0xffff0000) | (stat0 >> 16); in ga102_gpio_intr_stat()
79 *hi = (stat1 << 16) | (stat0 & 0x0000ffff); in ga102_gpio_intr_stat()
/drivers/net/wireless/mediatek/mt7601u/
Dtrace.h331 TP_PROTO(struct mt7601u_dev *dev, u32 stat1, u32 stat2),
332 TP_ARGS(dev, stat1, stat2),
335 __field(u32, stat1) __field(u32, stat2)
339 __entry->stat1 = stat1;
343 DEV_PR_ARG, __entry->stat1, __entry->stat2)
/drivers/hwmon/
Damc6821.c160 u8 stat1; member
181 data->stat1 = i2c_smbus_read_byte_data(client, in amc6821_update_device()
308 flag = data->stat1 & AMC6821_STAT1_LTL; in temp_alarm_show()
311 flag = data->stat1 & AMC6821_STAT1_LTH; in temp_alarm_show()
317 flag = data->stat1 & AMC6821_STAT1_RTL; in temp_alarm_show()
320 flag = data->stat1 & AMC6821_STAT1_RTH; in temp_alarm_show()
339 if (data->stat1 & AMC6821_STAT1_RTF) in temp2_fault_show()
606 if (data->stat1 & AMC6821_STAT1_FANS) in fan1_fault_show()
/drivers/net/phy/
Dphy-c45.c17 int stat1; in genphy_c45_pma_can_sleep() local
19 stat1 = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_STAT1); in genphy_c45_pma_can_sleep()
20 if (stat1 < 0) in genphy_c45_pma_can_sleep()
23 return !!(stat1 & MDIO_STAT1_LPOWERABLE); in genphy_c45_pma_can_sleep()
Dicplus.c309 int oldpage, ret, stat1, stat2; in ip101a_g_read_status() local
322 stat1 = ret; in ip101a_g_read_status()
329 if (stat1 & IP101A_G_AUTO_MDIX_DIS) { in ip101a_g_read_status()
/drivers/comedi/drivers/
Dni_labpc_common.c219 devpriv->stat1 = devpriv->read_byte(dev, STAT1_REG); in labpc_ai_eoc()
220 if (devpriv->stat1 & STAT1_DAVAIL) in labpc_ai_eoc()
776 devpriv->stat1 = devpriv->read_byte(dev, STAT1_REG); in labpc_drain_fifo()
778 for (i = 0; (devpriv->stat1 & STAT1_DAVAIL) && i < timeout; in labpc_drain_fifo()
788 devpriv->stat1 = devpriv->read_byte(dev, STAT1_REG); in labpc_drain_fifo()
832 devpriv->stat1 = devpriv->read_byte(dev, STAT1_REG); in labpc_interrupt()
836 if ((devpriv->stat1 & (STAT1_GATA0 | STAT1_CNTINT | STAT1_OVERFLOW | in labpc_interrupt()
843 if (devpriv->stat1 & STAT1_OVERRUN) { in labpc_interrupt()
857 if (devpriv->stat1 & STAT1_CNTINT) { in labpc_interrupt()
863 if (devpriv->stat1 & STAT1_OVERFLOW) { in labpc_interrupt()
Dni_labpc.h37 unsigned int stat1; member
Dni_labpc_isadma.c138 if (devpriv->stat1 & STAT1_GATA0 || in labpc_handle_dma_status()
/drivers/net/ethernet/chelsio/cxgb3/
Dael1002.c180 unsigned int stat0, stat1, stat2; in get_link_status_r() local
186 MDIO_PCS_10GBRT_STAT1, &stat1); in get_link_status_r()
192 *link_ok = (stat0 & stat1 & (stat2 >> 12)) & 1; in get_link_status_r()
833 unsigned int stat0, stat1, stat2; in get_link_status_x() local
839 MDIO_PCS_10GBX_STAT1, &stat1); in get_link_status_x()
845 *link_ok = (stat0 & (stat1 >> 12) & (stat2 >> 12)) & 1; in get_link_status_x()
/drivers/gpu/drm/omapdrm/dss/
Dhdmi4_cec.c112 u32 stat1 = hdmi_read_reg(core->base, HDMI_CEC_INT_STATUS_1); in hdmi4_cec_irq() local
115 hdmi_write_reg(core->base, HDMI_CEC_INT_STATUS_1, stat1); in hdmi4_cec_irq()
121 } else if (stat1 & 0x02) { in hdmi4_cec_irq()
/drivers/soc/ixp4xx/
Dixp4xx-qmgr.c55 return (__raw_readl(&qmgr_regs->stat1[queue >> 3]) in __qmgr_get_stat1()
154 stat = __raw_readl(&qmgr_regs->stat1[i >> 3]); in qmgr_irq1_a0()
401 __raw_writel(0x33333333, &qmgr_regs->stat1[i]); in ixp4xx_qmgr_probe()
/drivers/power/supply/
Dbq2515x_charger.c698 unsigned int stat1; in bq2515x_charger_get_health() local
708 ret = regmap_read(bq2515x->regmap, BQ2515X_STAT1, &stat1); in bq2515x_charger_get_health()
712 if (stat1 & BQ2515X_HEALTH_MASK) { in bq2515x_charger_get_health()
713 switch (stat1 & BQ2515X_HEALTH_MASK) { in bq2515x_charger_get_health()
732 if (stat1 & BQ2515X_VIN_OVP_FAULT_STAT) in bq2515x_charger_get_health()
Drn5t618_power.c699 unsigned int ctrl, stat1, stat2, err; in rn5t618_charger_irq() local
703 regmap_read(info->rn5t618->regmap, RN5T618_CHGSTAT_IRR1, &stat1); in rn5t618_charger_irq()
712 err, ctrl, stat1, stat2); in rn5t618_charger_irq()
Dbq25980_charger.c563 unsigned int stat1; in bq25980_get_state() local
570 ret = regmap_read(bq->regmap, BQ25980_STAT1, &stat1); in bq25980_get_state()
595 state->ovp = (stat1 & BQ25980_STAT1_OVP_MASK) | in bq25980_get_state()
597 state->ocp = (stat1 & BQ25980_STAT1_OCP_MASK) | in bq25980_get_state()
/drivers/net/wireless/mediatek/mt76/
Dmt76x02_mac.c255 u32 stat1, stat2; in mt76x02_mac_load_tx_status() local
258 stat1 = mt76_rr(dev, MT_TX_STAT_FIFO); in mt76x02_mac_load_tx_status()
260 stat->valid = !!(stat1 & MT_TX_STAT_FIFO_VALID); in mt76x02_mac_load_tx_status()
264 stat->success = !!(stat1 & MT_TX_STAT_FIFO_SUCCESS); in mt76x02_mac_load_tx_status()
265 stat->aggr = !!(stat1 & MT_TX_STAT_FIFO_AGGR); in mt76x02_mac_load_tx_status()
266 stat->ack_req = !!(stat1 & MT_TX_STAT_FIFO_ACKREQ); in mt76x02_mac_load_tx_status()
267 stat->wcid = FIELD_GET(MT_TX_STAT_FIFO_WCID, stat1); in mt76x02_mac_load_tx_status()
268 stat->rate = FIELD_GET(MT_TX_STAT_FIFO_RATE, stat1); in mt76x02_mac_load_tx_status()
/drivers/staging/iio/addac/
Dadt7316.c1734 u8 stat1, stat2; in adt7316_event_handler() local
1738 ret = chip->bus.read(chip->bus.client, ADT7316_INT_STAT1, &stat1); in adt7316_event_handler()
1741 stat1 &= 0x1F; in adt7316_event_handler()
1744 if (stat1 & BIT(0)) in adt7316_event_handler()
1750 if (stat1 & BIT(1)) in adt7316_event_handler()
1756 if (stat1 & BIT(2)) in adt7316_event_handler()
1762 if (stat1 & BIT(3)) in adt7316_event_handler()
1768 if (stat1 & BIT(5)) in adt7316_event_handler()
1774 if (stat1 & BIT(6)) in adt7316_event_handler()
1780 if (stat1 & BIT(7)) in adt7316_event_handler()
/drivers/usb/gadget/udc/aspeed-vhub/
Depn.c245 u32 stat, stat1; in ast_vhub_epn_handle_ack_desc() local
250 stat1 = readl(ep->epn.regs + AST_VHUB_EP_DESC_STATUS); in ast_vhub_epn_handle_ack_desc()
251 } while(stat != stat1); in ast_vhub_epn_handle_ack_desc()
/drivers/scsi/
Daha152x.c2184 unsigned int stat1 = GETPORT(SSTAT1); in update_state() local
2189 if(stat1 & SCSIRSTI) { in update_state()
2197 } else if(stat1 & SELTO) { in update_state()
2199 } else if(stat1 & BUSFREE) { in update_state()
2202 } else if(stat1 & SCSIPERR) { in update_state()
2205 } else if(stat1 & REQINIT) { in update_state()
/drivers/usb/host/
Disp1362.h438 unsigned long stat1, stat2, stat4, stat8, stat16; member
520 isp1362_hcd->stat1++; in ALIGNSTAT()
Disp116x.h263 unsigned long stat1, stat2, stat4, stat8, stat16; member
/drivers/scsi/csiostor/
Dt4fw_api_stor.h397 __be64 stat1; member
/drivers/usb/gadget/udc/
Dnet2272.c1599 u8 stat0, stat1; in net2272_handle_ep() local
1609 stat1 = net2272_ep_read(ep, EP_STAT1); in net2272_handle_ep()
1613 ep->ep.name, stat0, stat1, req ? &req->req : NULL); in net2272_handle_ep()
1618 net2272_ep_write(ep, EP_STAT1, stat1); in net2272_handle_ep()
/drivers/scsi/lpfc/
Dlpfc_attr.c2987 int stat1 = 0, stat2 = 0; in lpfc_soft_wwpn_store() local
3025 stat1 = lpfc_do_offline(phba, LPFC_EVT_OFFLINE); in lpfc_soft_wwpn_store()
3026 if (stat1) in lpfc_soft_wwpn_store()
3029 "reinit adapter - %d\n", stat1); in lpfc_soft_wwpn_store()
3041 return (stat1 || stat2) ? -EIO : count; in lpfc_soft_wwpn_store()

12