Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 25 of 100) sorted by relevance

1234

/drivers/block/null_blk/
Dzoned.c139 zone->cond = BLK_ZONE_COND_NOT_WP; in null_init_zoned_dev()
157 zone->cond = BLK_ZONE_COND_FULL; in null_init_zoned_dev()
160 zone->cond = BLK_ZONE_COND_EMPTY; in null_init_zoned_dev()
224 blkz.cond = zone->cond; in null_report_zones()
273 if (zone->cond == BLK_ZONE_COND_IMP_OPEN) { in null_close_imp_open_zone()
276 zone->cond = BLK_ZONE_COND_EMPTY; in null_close_imp_open_zone()
278 zone->cond = BLK_ZONE_COND_CLOSED; in null_close_imp_open_zone()
335 switch (zone->cond) { in null_check_zone_resources()
358 trace_nullb_zone_op(cmd, zno, zone->cond); in null_zone_write()
392 if (zone->cond == BLK_ZONE_COND_CLOSED || in null_zone_write()
[all …]
Dnull_blk.h46 enum blk_zone_cond cond; member
145 size_t count, enum blk_zone_cond cond);
171 enum blk_zone_cond cond) in zone_cond_store() argument
/drivers/gpu/drm/nouveau/include/nvif/
Dtimer.h22 #define nvif_nsec(d,n,cond...) ({ \ argument
28 cond \
33 #define nvif_usec(d,u,cond...) nvif_nsec((d), (u) * 1000, ##cond) argument
34 #define nvif_msec(d,m,cond...) nvif_usec((d), (m) * 1000, ##cond) argument
/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dtimer.h52 #define nvkm_nsec(d,n,cond...) ({ \ argument
59 cond \
66 #define nvkm_usec(d, u, cond...) nvkm_nsec((d), (u) * 1000ULL, ##cond) argument
67 #define nvkm_msec(d, m, cond...) nvkm_usec((d), (m) * 1000ULL, ##cond) argument
/drivers/gpu/drm/amd/pm/powerplay/inc/
Dpp_debug.h37 #define PP_ASSERT_WITH_CODE(cond, msg, code) \ argument
39 if (!(cond)) { \
45 #define PP_ASSERT(cond, msg) \ argument
47 if (!(cond)) { \
/drivers/gpu/drm/xe/
Dxe_macros.h13 #define XE_IOCTL_DBG(xe, cond) \ argument
14 ((cond) && (drm_dbg(&(xe)->drm, \
16 __FILE__, __LINE__, #cond), 1))
/drivers/dma/
Dpl330.c608 static inline u32 _emit_LD(unsigned dry_run, u8 buf[], enum pl330_cond cond) in _emit_LD() argument
615 if (cond == SINGLE) in _emit_LD()
617 else if (cond == BURST) in _emit_LD()
621 cond == SINGLE ? 'S' : (cond == BURST ? 'B' : 'A')); in _emit_LD()
627 enum pl330_cond cond, u8 peri) in _emit_LDP() argument
634 if (cond == BURST) in _emit_LDP()
642 cond == SINGLE ? 'S' : 'B', peri >> 3); in _emit_LDP()
667 enum pl330_cond cond; member
676 enum pl330_cond cond = arg->cond; in _emit_LPEND() local
692 if (cond == SINGLE) in _emit_LPEND()
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Drunl.h120 #define nvkm_runl_find_engn(engn,runl,cond) nvkm_list_find(engn, &(runl)->engns, head, (cond)) argument
124 #define nvkm_runl_foreach_cond(runl,fifo,cond) nvkm_list_foreach(runl, &(fifo)->runls, head, (cond)) argument
126 #define nvkm_runl_foreach_engn_cond(engn,runl,cond) \ argument
127 nvkm_list_foreach(engn, &(runl)->engns, head, (cond))
Drunq.h25 #define nvkm_runq_foreach_cond(runq,fifo,cond) nvkm_list_foreach(runq, &(fifo)->runqs, head, (cond)) argument
/drivers/phy/freescale/
Dphy-fsl-imx8qm-hsio.c291 u32 val, addr, cond; in imx_hsio_pcie_power_on() local
307 cond = HSIO_PM_REQ_CORE_RST; in imx_hsio_pcie_power_on()
309 (val & cond) == 0, in imx_hsio_pcie_power_on()
320 u32 val, cond; in imx_hsio_sata_power_on() local
332 cond = HSIO_REG48_PMA_RDY; in imx_hsio_sata_power_on()
333 ret = read_poll_timeout(readb, val, ((val & cond) == cond), in imx_hsio_sata_power_on()
348 u32 val, cond; in imx_hsio_power_on() local
367 cond = HSIO_LANE1_TX_PLL_LOCK; in imx_hsio_power_on()
373 cond = HSIO_LANE0_TX_PLL_LOCK; in imx_hsio_power_on()
376 val, ((val & cond) == cond), in imx_hsio_power_on()
/drivers/gpu/host1x/hw/
Dopcodes.h43 unsigned cond, unsigned indx) in host1x_class_host_incr_syncpt() argument
45 return host1x_uclass_incr_syncpt_cond_f(cond) in host1x_class_host_incr_syncpt()
97 static inline u32 host1x_opcode_imm_incr_syncpt(unsigned cond, unsigned indx) in host1x_opcode_imm_incr_syncpt() argument
100 host1x_class_host_incr_syncpt(cond, indx)); in host1x_opcode_imm_incr_syncpt()
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dinit.c479 init_condition_met(struct nvbios_init *init, u8 cond) in init_condition_met() argument
484 u32 reg = nvbios_rd32(bios, table + (cond * 12) + 0); in init_condition_met()
485 u32 msk = nvbios_rd32(bios, table + (cond * 12) + 4); in init_condition_met()
486 u32 val = nvbios_rd32(bios, table + (cond * 12) + 8); in init_condition_met()
488 cond, reg, msk, val); in init_condition_met()
495 init_io_condition_met(struct nvbios_init *init, u8 cond) in init_io_condition_met() argument
500 u16 port = nvbios_rd16(bios, table + (cond * 5) + 0); in init_io_condition_met()
501 u8 index = nvbios_rd08(bios, table + (cond * 5) + 2); in init_io_condition_met()
502 u8 mask = nvbios_rd08(bios, table + (cond * 5) + 3); in init_io_condition_met()
503 u8 value = nvbios_rd08(bios, table + (cond * 5) + 4); in init_io_condition_met()
[all …]
/drivers/net/wireless/zydas/zd1211rw/
Dzd_def.h27 # define dev_dbg_f_cond(dev, cond, fmt, args...) ({ \ argument
28 bool __cond = !!(cond); \
35 # define dev_dbg_f_cond(dev, cond, fmt, args...) do { (void)(dev); } while (0) argument
/drivers/gpu/drm/msm/adreno/
Da6xx_gmu.h140 #define gmu_poll_timeout(gmu, addr, val, cond, interval, timeout) \ argument
141 readl_poll_timeout((gmu)->mmio + ((addr) << 2), val, cond, \
154 #define gmu_poll_timeout_rscc(gmu, addr, val, cond, interval, timeout) \ argument
155 readl_poll_timeout((gmu)->rscc + ((addr) << 2), val, cond, \
/drivers/gpu/drm/i915/
Di915_gem.h91 #define __GEM_BUG(cond) BUG() argument
93 #define __GEM_BUG(cond) \ argument
94 WARN(1, "%s:%d GEM_BUG_ON(%s)\n", __func__, __LINE__, __stringify(cond))
/drivers/staging/media/atomisp/pci/hive_isp_css_include/
Dassert_support.h45 static inline void compile_time_assert(unsigned int cond) in compile_time_assert() argument
49 if (!cond) _compile_time_assert(); in compile_time_assert()
/drivers/net/dsa/mv88e6xxx/
Ddevlink.c709 bool (*cond)(struct mv88e6xxx_chip *chip); member
730 .cond = mv88e6xxx_has_stu,
736 .cond = mv88e6xxx_has_pvt,
776 bool (*cond)(struct mv88e6xxx_chip *chip); in mv88e6xxx_setup_devlink_regions_global() local
786 cond = mv88e6xxx_regions[i].cond; in mv88e6xxx_setup_devlink_regions_global()
788 if (cond && !cond(chip)) in mv88e6xxx_setup_devlink_regions_global()
/drivers/net/fddi/skfp/
Dsrf.c176 void smt_srf_event(struct s_smc *smc, int code, int index, int cond) in smt_srf_event() argument
185 if (code == SMT_COND_MAC_DUP_ADDR && cond) { in smt_srf_event()
200 if (*evc->evc_cond_state == cond) in smt_srf_event()
209 DB_SMT("SRF: condition is %s", cond ? "ON" : "OFF"); in smt_srf_event()
210 if (cond) { in smt_srf_event()
/drivers/net/wireless/realtek/rtw88/
Dphy.c21 struct rtw_phy_cond cond; member
1044 struct rtw_phy_cond cond = {0}; in rtw_phy_setup_phy_cond() local
1046 cond.cut = hal->cut_version ? hal->cut_version : 15; in rtw_phy_setup_phy_cond()
1047 cond.pkg = pkg ? pkg : 15; in rtw_phy_setup_phy_cond()
1048 cond.plat = 0x04; in rtw_phy_setup_phy_cond()
1049 cond.rfe = efuse->rfe_option; in rtw_phy_setup_phy_cond()
1053 cond.intf = INTF_USB; in rtw_phy_setup_phy_cond()
1056 cond.intf = INTF_SDIO; in rtw_phy_setup_phy_cond()
1060 cond.intf = INTF_PCIE; in rtw_phy_setup_phy_cond()
1064 hal->phy_cond = cond; in rtw_phy_setup_phy_cond()
[all …]
/drivers/md/dm-vdo/indexer/
Dindex.c61 struct cond_var cond; member
186 uds_wait_cond(&writer->cond, &writer->mutex); in finish_previous_chapter()
223 uds_broadcast_cond(&writer->cond); in start_closing_chapter()
691 uds_wait_cond(&writer->cond, &writer->mutex); in close_chapters()
727 uds_broadcast_cond(&writer->cond); in close_chapters()
740 uds_broadcast_cond(&writer->cond); in stop_chapter_writer()
775 uds_init_cond(&writer->cond); in make_chapter_writer()
960 uds_broadcast_cond(&index->load_context->cond); in check_for_suspend()
964 uds_wait_cond(&index->load_context->cond, &index->load_context->mutex); in check_for_suspend()
1262 uds_broadcast_cond(&index->load_context->cond); in uds_make_index()
[all …]
/drivers/md/bcache/
Dbcache.h871 #define btree_bug_on(cond, b, ...) \ argument
873 if (cond) \
877 #define cache_bug_on(cond, c, ...) \ argument
879 if (cond) \
883 #define cache_set_err_on(cond, c, ...) \ argument
885 if (cond) \
/drivers/scsi/csiostor/
Dcsio_defs.h127 #define CSIO_ASSERT(cond) BUG_ON(!(cond)) argument
/drivers/i2c/busses/
Di2c-brcmstb.c455 u32 cond, cond_per_msg; in brcmstb_i2c_xfer() local
469 cond = ~COND_START_STOP; in brcmstb_i2c_xfer()
471 cond = COND_RESTART | COND_NOSTOP; in brcmstb_i2c_xfer()
473 brcmstb_set_i2c_start_stop(dev, cond); in brcmstb_i2c_xfer()
486 cond_per_msg = cond; in brcmstb_i2c_xfer()
497 cond_per_msg = cond; in brcmstb_i2c_xfer()
/drivers/clk/
Dclk-plldig.c154 unsigned int val, cond; in plldig_set_rate() local
170 return readl_poll_timeout_atomic(data->regs + PLLDIG_REG_PLLSR, cond, in plldig_set_rate()
171 cond & PLLDIG_LOCK_MASK, 0, in plldig_set_rate()
/drivers/nfc/
Dnfcsim.c62 u8 cond; member
87 link->cond = 1; in nfcsim_link_recv_wake()
134 link->cond, in nfcsim_link_recv_skb()
165 link->cond = 0; in nfcsim_link_recv_skb()

1234