wd 260 arch/mips/include/asm/asmmacro.h .macro ld_b wd, off, base wd 269 arch/mips/include/asm/asmmacro.h .macro ld_h wd, off, base wd 278 arch/mips/include/asm/asmmacro.h .macro ld_w wd, off, base wd 287 arch/mips/include/asm/asmmacro.h .macro ld_d wd, off, base wd 296 arch/mips/include/asm/asmmacro.h .macro st_b wd, off, base wd 305 arch/mips/include/asm/asmmacro.h .macro st_h wd, off, base wd 314 arch/mips/include/asm/asmmacro.h .macro st_w wd, off, base wd 323 arch/mips/include/asm/asmmacro.h .macro st_d wd, off, base wd 350 arch/mips/include/asm/asmmacro.h .macro insert_w wd, n wd 359 arch/mips/include/asm/asmmacro.h .macro insert_d wd, n wd 392 arch/mips/include/asm/asmmacro.h .macro ld_b wd, off, base wd 402 arch/mips/include/asm/asmmacro.h .macro ld_h wd, off, base wd 412 arch/mips/include/asm/asmmacro.h .macro ld_w wd, off, base wd 422 arch/mips/include/asm/asmmacro.h .macro ld_d wd, off, base wd 432 arch/mips/include/asm/asmmacro.h .macro st_b wd, off, base wd 442 arch/mips/include/asm/asmmacro.h .macro st_h wd, off, base wd 452 arch/mips/include/asm/asmmacro.h .macro st_w wd, off, base wd 462 arch/mips/include/asm/asmmacro.h .macro st_d wd, off, base wd 490 arch/mips/include/asm/asmmacro.h .macro insert_w wd, n wd 499 arch/mips/include/asm/asmmacro.h .macro insert_d wd, n wd 608 arch/mips/include/asm/asmmacro.h .macro msa_init_upper wd wd 761 arch/mips/include/uapi/asm/inst.h __BITFIELD_FIELD(unsigned int wd : 5, wd 1238 arch/mips/kernel/unaligned.c unsigned int wd, preempted; wd 1253 arch/mips/kernel/unaligned.c wd = insn.msa_mi10_format.wd; wd 1254 arch/mips/kernel/unaligned.c fpr = ¤t->thread.fpu.fpr[wd]; wd 1286 arch/mips/kernel/unaligned.c write_msa_wr(wd, fpr, df); wd 1304 arch/mips/kernel/unaligned.c read_msa_wr(wd, fpr, df); wd 64 drivers/acpi/arm64/gtdt.c struct acpi_gtdt_watchdog *wd = platform_timer; wd 69 drivers/acpi/arm64/gtdt.c return !(wd->timer_flags & ACPI_GTDT_WATCHDOG_SECURE); wd 328 drivers/acpi/arm64/gtdt.c static int __init gtdt_import_sbsa_gwdt(struct acpi_gtdt_watchdog *wd, wd 332 drivers/acpi/arm64/gtdt.c int irq = map_gt_gsi(wd->timer_interrupt, wd->timer_flags); wd 339 drivers/acpi/arm64/gtdt.c DEFINE_RES_MEM(wd->control_frame_address, SZ_4K), wd 340 drivers/acpi/arm64/gtdt.c DEFINE_RES_MEM(wd->refresh_frame_address, SZ_4K), wd 346 drivers/acpi/arm64/gtdt.c wd->refresh_frame_address, wd->control_frame_address, wd 347 drivers/acpi/arm64/gtdt.c wd->timer_interrupt, wd->timer_flags); wd 349 drivers/acpi/arm64/gtdt.c if (!(wd->refresh_frame_address && wd->control_frame_address)) { wd 351 drivers/acpi/arm64/gtdt.c acpi_unregister_gsi(wd->timer_interrupt); wd 367 drivers/acpi/arm64/gtdt.c acpi_unregister_gsi(wd->timer_interrupt); wd 502 drivers/base/power/main.c #define DECLARE_DPM_WATCHDOG_ON_STACK(wd) \ wd 503 drivers/base/power/main.c struct dpm_watchdog wd wd 515 drivers/base/power/main.c struct dpm_watchdog *wd = from_timer(wd, t, timer); wd 517 drivers/base/power/main.c dev_emerg(wd->dev, "**** DPM device timeout ****\n"); wd 518 drivers/base/power/main.c show_stack(wd->tsk, NULL); wd 520 drivers/base/power/main.c dev_driver_string(wd->dev), dev_name(wd->dev)); wd 528 drivers/base/power/main.c static void dpm_watchdog_set(struct dpm_watchdog *wd, struct device *dev) wd 530 drivers/base/power/main.c struct timer_list *timer = &wd->timer; wd 532 drivers/base/power/main.c wd->dev = dev; wd 533 drivers/base/power/main.c wd->tsk = current; wd 545 drivers/base/power/main.c static void dpm_watchdog_clear(struct dpm_watchdog *wd) wd 547 drivers/base/power/main.c struct timer_list *timer = &wd->timer; wd 553 drivers/base/power/main.c #define DECLARE_DPM_WATCHDOG_ON_STACK(wd) wd 963 drivers/base/power/main.c DECLARE_DPM_WATCHDOG_ON_STACK(wd); wd 980 drivers/base/power/main.c dpm_watchdog_set(&wd, dev); wd 1033 drivers/base/power/main.c dpm_watchdog_clear(&wd); wd 1718 drivers/base/power/main.c DECLARE_DPM_WATCHDOG_ON_STACK(wd); wd 1768 drivers/base/power/main.c dpm_watchdog_set(&wd, dev); wd 1820 drivers/base/power/main.c dpm_watchdog_clear(&wd); wd 1752 drivers/hid/hid-logitech-hidpp.c struct hidpp_ff_work_data *wd = container_of(w, struct hidpp_ff_work_data, work); wd 1753 drivers/hid/hid-logitech-hidpp.c struct hidpp_ff_private_data *data = wd->data; wd 1759 drivers/hid/hid-logitech-hidpp.c switch (wd->effect_id) { wd 1761 drivers/hid/hid-logitech-hidpp.c wd->params[0] = data->slot_autocenter; wd 1768 drivers/hid/hid-logitech-hidpp.c wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id); wd 1774 drivers/hid/hid-logitech-hidpp.c wd->command, wd->params, wd->size, &response); wd 1782 drivers/hid/hid-logitech-hidpp.c switch (wd->command) { wd 1786 drivers/hid/hid-logitech-hidpp.c if (wd->effect_id >= 0) wd 1788 drivers/hid/hid-logitech-hidpp.c data->effect_ids[slot-1] = wd->effect_id; wd 1789 drivers/hid/hid-logitech-hidpp.c else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) wd 1795 drivers/hid/hid-logitech-hidpp.c if (wd->effect_id >= 0) wd 1797 drivers/hid/hid-logitech-hidpp.c data->effect_ids[wd->params[0]-1] = -1; wd 1798 drivers/hid/hid-logitech-hidpp.c else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) wd 1803 drivers/hid/hid-logitech-hidpp.c data->gain = (wd->params[0] << 8) + wd->params[1]; wd 1806 drivers/hid/hid-logitech-hidpp.c data->range = (wd->params[0] << 8) + wd->params[1]; wd 1815 drivers/hid/hid-logitech-hidpp.c kfree(wd); wd 1820 drivers/hid/hid-logitech-hidpp.c struct hidpp_ff_work_data *wd = kzalloc(sizeof(*wd), GFP_KERNEL); wd 1823 drivers/hid/hid-logitech-hidpp.c if (!wd) wd 1826 drivers/hid/hid-logitech-hidpp.c INIT_WORK(&wd->work, hidpp_ff_work_handler); wd 1828 drivers/hid/hid-logitech-hidpp.c wd->data = data; wd 1829 drivers/hid/hid-logitech-hidpp.c wd->effect_id = effect_id; wd 1830 drivers/hid/hid-logitech-hidpp.c wd->command = command; wd 1831 drivers/hid/hid-logitech-hidpp.c wd->size = size; wd 1832 drivers/hid/hid-logitech-hidpp.c memcpy(wd->params, params, size); wd 1835 drivers/hid/hid-logitech-hidpp.c queue_work(data->wq, &wd->work); wd 2213 drivers/hid/hid-logitech-hidpp.c struct wtp_data *wd = hidpp->private_data; wd 2220 drivers/hid/hid-logitech-hidpp.c input_set_abs_params(input_dev, ABS_MT_POSITION_X, 0, wd->x_size, 0, 0); wd 2221 drivers/hid/hid-logitech-hidpp.c input_abs_set_res(input_dev, ABS_MT_POSITION_X, wd->resolution); wd 2222 drivers/hid/hid-logitech-hidpp.c input_set_abs_params(input_dev, ABS_MT_POSITION_Y, 0, wd->y_size, 0, 0); wd 2223 drivers/hid/hid-logitech-hidpp.c input_abs_set_res(input_dev, ABS_MT_POSITION_Y, wd->resolution); wd 2235 drivers/hid/hid-logitech-hidpp.c input_mt_init_slots(input_dev, wd->maxcontacts, INPUT_MT_POINTER | wd 2242 drivers/hid/hid-logitech-hidpp.c struct wtp_data *wd = hidpp->private_data; wd 2258 drivers/hid/hid-logitech-hidpp.c wd->flip_y ? wd->y_size - touch_report->y : wd 2285 drivers/hid/hid-logitech-hidpp.c struct wtp_data *wd = hidpp->private_data; wd 2311 drivers/hid/hid-logitech-hidpp.c .finger_count = wd->maxcontacts, wd 2325 drivers/hid/hid-logitech-hidpp.c struct wtp_data *wd = hidpp->private_data; wd 2329 drivers/hid/hid-logitech-hidpp.c if (!wd || !hidpp->input) wd 2353 drivers/hid/hid-logitech-hidpp.c if ((report->fap.feature_index != wd->mt_feature_index) || wd 2367 drivers/hid/hid-logitech-hidpp.c struct wtp_data *wd = hidpp->private_data; wd 2373 drivers/hid/hid-logitech-hidpp.c &wd->mt_feature_index, &feature_type); wd 2378 drivers/hid/hid-logitech-hidpp.c ret = hidpp_touchpad_get_raw_info(hidpp, wd->mt_feature_index, wd 2383 drivers/hid/hid-logitech-hidpp.c wd->x_size = raw_info.x_size; wd 2384 drivers/hid/hid-logitech-hidpp.c wd->y_size = raw_info.y_size; wd 2385 drivers/hid/hid-logitech-hidpp.c wd->maxcontacts = raw_info.maxcontacts; wd 2386 drivers/hid/hid-logitech-hidpp.c wd->flip_y = raw_info.origin == TOUCHPAD_RAW_XY_ORIGIN_LOWER_LEFT; wd 2387 drivers/hid/hid-logitech-hidpp.c wd->resolution = raw_info.res; wd 2388 drivers/hid/hid-logitech-hidpp.c if (!wd->resolution) wd 2389 drivers/hid/hid-logitech-hidpp.c wd->resolution = WTP_MANUAL_RESOLUTION; wd 2397 drivers/hid/hid-logitech-hidpp.c struct wtp_data *wd; wd 2399 drivers/hid/hid-logitech-hidpp.c wd = devm_kzalloc(&hdev->dev, sizeof(struct wtp_data), wd 2401 drivers/hid/hid-logitech-hidpp.c if (!wd) wd 2404 drivers/hid/hid-logitech-hidpp.c hidpp->private_data = wd; wd 2412 drivers/hid/hid-logitech-hidpp.c struct wtp_data *wd = hidpp->private_data; wd 2415 drivers/hid/hid-logitech-hidpp.c if (!wd->x_size) { wd 2423 drivers/hid/hid-logitech-hidpp.c return hidpp_touchpad_set_raw_report_state(hidpp, wd->mt_feature_index, wd 4203 drivers/infiniband/hw/hfi1/tid_rdma.c struct tid_rdma_write_data *wd = &ohdr->u.tid_rdma.w_data; wd 4222 drivers/infiniband/hw/hfi1/tid_rdma.c KDETH_RESET(wd->kdeth0, KVER, 0x1); wd 4223 drivers/infiniband/hw/hfi1/tid_rdma.c KDETH_SET(wd->kdeth0, SH, !last_pkt); wd 4224 drivers/infiniband/hw/hfi1/tid_rdma.c KDETH_SET(wd->kdeth0, INTR, !!(!last_pkt && remote->urg)); wd 4225 drivers/infiniband/hw/hfi1/tid_rdma.c KDETH_SET(wd->kdeth0, TIDCTRL, EXP_TID_GET(tidentry, CTRL)); wd 4226 drivers/infiniband/hw/hfi1/tid_rdma.c KDETH_SET(wd->kdeth0, TID, EXP_TID_GET(tidentry, IDX)); wd 4227 drivers/infiniband/hw/hfi1/tid_rdma.c KDETH_SET(wd->kdeth0, OM, om == KDETH_OM_LARGE); wd 4228 drivers/infiniband/hw/hfi1/tid_rdma.c KDETH_SET(wd->kdeth0, OFFSET, flow->tid_offset / om); wd 4229 drivers/infiniband/hw/hfi1/tid_rdma.c KDETH_RESET(wd->kdeth1, JKEY, remote->jkey); wd 4230 drivers/infiniband/hw/hfi1/tid_rdma.c wd->verbs_qp = cpu_to_be32(qp->remote_qpn); wd 657 drivers/infiniband/hw/qib/qib_sd7220.c u32 wd, u32 mask) wd 712 drivers/infiniband/hw/qib/qib_sd7220.c wd = (wd & mask) | (transval & ~mask); wd 713 drivers/infiniband/hw/qib/qib_sd7220.c transval = loc | (wd & EPB_DATA_MASK); wd 628 drivers/media/dvb-frontends/stv0367.c int wd = 100; wd 636 drivers/media/dvb-frontends/stv0367.c while ((!SYR_var) && (wd > 0)) { wd 638 drivers/media/dvb-frontends/stv0367.c wd -= 2; wd 659 drivers/media/dvb-frontends/stv0367.c int wd = 0; wd 666 drivers/media/dvb-frontends/stv0367.c wd = 10; wd 670 drivers/media/dvb-frontends/stv0367.c wd = 55; wd 674 drivers/media/dvb-frontends/stv0367.c wd = 30; wd 681 drivers/media/dvb-frontends/stv0367.c dprintk("%s: CPAMPMin=%d wd=%d\n", __func__, CPAMPMin, wd); wd 684 drivers/media/dvb-frontends/stv0367.c while ((CPAMPvalue < CPAMPMin) && (wd > 0)) { wd 686 drivers/media/dvb-frontends/stv0367.c wd -= 1; wd 690 drivers/media/dvb-frontends/stv0367.c dprintk("******last CPAMPvalue= %d at wd=%d\n", CPAMPvalue, wd); wd 706 drivers/media/dvb-frontends/stv0367.c short int wd, tempo; wd 800 drivers/media/dvb-frontends/stv0367.c wd = stv0367ter_duration(mode, 125, 500, 250); wd 804 drivers/media/dvb-frontends/stv0367.c while (((!u_var1) || (!u_var2) || (!u_var3)) && (wd >= 0)) { wd 806 drivers/media/dvb-frontends/stv0367.c wd -= tempo; wd 853 drivers/media/dvb-frontends/stv0367.c wd = stv0367ter_duration(mode, 125, 500, 250); wd 856 drivers/media/dvb-frontends/stv0367.c while ((!u_var4) && (wd >= 0)) { wd 858 drivers/media/dvb-frontends/stv0367.c wd -= tempo; wd 2588 drivers/net/ethernet/intel/i40e/i40e_txrx.c bool wd = ring->xsk_umem ? wd 2592 drivers/net/ethernet/intel/i40e/i40e_txrx.c if (!wd) { wd 3171 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c bool wd = ring->xsk_umem ? wd 3175 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (!wd) wd 32 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c u32 wd[4]; wd 1309 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ms->wd[0] = QLCNIC_MS_WRTDATA_LO; wd 1311 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ms->wd[1] = QLCNIC_MS_WRTDATA_HI; wd 1313 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ms->wd[2] = QLCNIC_MS_WRTDATA_ULO; wd 1314 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ms->wd[3] = QLCNIC_MS_WRTDATA_UHI; wd 1318 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ms->wd[0] = QLCNIC_MS_WRTDATA_ULO; wd 1320 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ms->wd[1] = QLCNIC_MS_WRTDATA_UHI; wd 1322 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ms->wd[2] = QLCNIC_MS_WRTDATA_LO; wd 1323 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ms->wd[3] = QLCNIC_MS_WRTDATA_HI; wd 1377 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c qlcnic_ind_wr(adapter, ms.wd[0], qlcnic_ind_rd(adapter, ms.rd[0])); wd 1378 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c qlcnic_ind_wr(adapter, ms.wd[1], qlcnic_ind_rd(adapter, ms.rd[1])); wd 1380 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c qlcnic_ind_wr(adapter, ms.wd[2], data & 0xffffffff); wd 1381 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c qlcnic_ind_wr(adapter, ms.wd[3], (data >> 32) & 0xffffffff); wd 350 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h static inline struct brcmf_cfg80211_info *wdev_to_cfg(struct wireless_dev *wd) wd 352 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h return wiphy_to_cfg(wd->wiphy); wd 51 drivers/pinctrl/zte/pinctrl-zx.h #define TOP_PIN(pin, off, bp, wd, coff, cbp, ...) { \ wd 58 drivers/pinctrl/zte/pinctrl-zx.h .width = wd, \ wd 66 drivers/pinctrl/zte/pinctrl-zx.h #define AON_PIN(pin, off, bp, wd, coff, cbp, ...) { \ wd 73 drivers/pinctrl/zte/pinctrl-zx.h .width = wd, \ wd 317 drivers/scsi/qla2xxx/qla_dbg.c uint16_t wd; wd 337 drivers/scsi/qla2xxx/qla_dbg.c pci_read_config_word(ha->pdev, PCI_COMMAND, &wd); wd 2714 drivers/scsi/qla2xxx/qla_init.c uint16_t wd; wd 2740 drivers/scsi/qla2xxx/qla_init.c pci_read_config_word(ha->pdev, PCI_COMMAND, &wd); wd 2390 drivers/scsi/qla2xxx/qla_sup.c uint16_t wd; wd 2403 drivers/scsi/qla2xxx/qla_sup.c pci_read_config_word(ha->pdev, PCI_COMMAND, &wd); wd 50 drivers/scsi/wd719x.c static inline u8 wd719x_readb(struct wd719x *wd, u8 reg) wd 52 drivers/scsi/wd719x.c return ioread8(wd->base + reg); wd 55 drivers/scsi/wd719x.c static inline u32 wd719x_readl(struct wd719x *wd, u8 reg) wd 57 drivers/scsi/wd719x.c return ioread32(wd->base + reg); wd 60 drivers/scsi/wd719x.c static inline void wd719x_writeb(struct wd719x *wd, u8 reg, u8 val) wd 62 drivers/scsi/wd719x.c iowrite8(val, wd->base + reg); wd 65 drivers/scsi/wd719x.c static inline void wd719x_writew(struct wd719x *wd, u8 reg, u16 val) wd 67 drivers/scsi/wd719x.c iowrite16(val, wd->base + reg); wd 70 drivers/scsi/wd719x.c static inline void wd719x_writel(struct wd719x *wd, u8 reg, u32 val) wd 72 drivers/scsi/wd719x.c iowrite32(val, wd->base + reg); wd 76 drivers/scsi/wd719x.c static inline int wd719x_wait_ready(struct wd719x *wd) wd 81 drivers/scsi/wd719x.c if (wd719x_readb(wd, WD719X_AMR_COMMAND) == WD719X_CMD_READY) wd 86 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "command register is not ready: 0x%02x\n", wd 87 drivers/scsi/wd719x.c wd719x_readb(wd, WD719X_AMR_COMMAND)); wd 93 drivers/scsi/wd719x.c static inline int wd719x_wait_done(struct wd719x *wd, int timeout) wd 98 drivers/scsi/wd719x.c status = wd719x_readb(wd, WD719X_AMR_INT_STATUS); wd 106 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "direct command timed out\n"); wd 111 drivers/scsi/wd719x.c u8 sue = wd719x_readb(wd, WD719X_AMR_SCB_ERROR); wd 118 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "direct command failed, status 0x%02x, SUE 0x%02x\n", wd 126 drivers/scsi/wd719x.c static int wd719x_direct_cmd(struct wd719x *wd, u8 opcode, u8 dev, u8 lun, wd 132 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_INT_STATUS, WD719X_INT_NONE); wd 135 drivers/scsi/wd719x.c if (wd719x_wait_ready(wd)) wd 142 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_CMD_PARAM, dev); wd 143 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_CMD_PARAM_2, lun); wd 144 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_CMD_PARAM_3, tag); wd 146 drivers/scsi/wd719x.c wd719x_writel(wd, WD719X_AMR_SCB_IN, data); wd 149 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_INT_STATUS, WD719X_INT_NONE); wd 152 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_COMMAND, opcode); wd 155 drivers/scsi/wd719x.c ret = wd719x_wait_done(wd, timeout); wd 159 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_INT_STATUS, WD719X_INT_NONE); wd 164 drivers/scsi/wd719x.c static void wd719x_destroy(struct wd719x *wd) wd 167 drivers/scsi/wd719x.c if (wd719x_direct_cmd(wd, WD719X_CMD_SLEEP, 0, 0, 0, 0, wd 169 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "RISC sleep command failed\n"); wd 171 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_PCI_MODE_SELECT, 0); wd 173 drivers/scsi/wd719x.c WARN_ON_ONCE(!list_empty(&wd->active_scbs)); wd 176 drivers/scsi/wd719x.c dma_free_coherent(&wd->pdev->dev, wd->fw_size, wd->fw_virt, wd 177 drivers/scsi/wd719x.c wd->fw_phys); wd 178 drivers/scsi/wd719x.c wd->fw_virt = NULL; wd 179 drivers/scsi/wd719x.c dma_free_coherent(&wd->pdev->dev, WD719X_HASH_TABLE_SIZE, wd->hash_virt, wd 180 drivers/scsi/wd719x.c wd->hash_phys); wd 181 drivers/scsi/wd719x.c wd->hash_virt = NULL; wd 182 drivers/scsi/wd719x.c dma_free_coherent(&wd->pdev->dev, sizeof(struct wd719x_host_param), wd 183 drivers/scsi/wd719x.c wd->params, wd->params_phys); wd 184 drivers/scsi/wd719x.c wd->params = NULL; wd 185 drivers/scsi/wd719x.c free_irq(wd->pdev->irq, wd); wd 192 drivers/scsi/wd719x.c struct wd719x *wd = shost_priv(cmd->device->host); wd 196 drivers/scsi/wd719x.c dma_unmap_single(&wd->pdev->dev, scb->phys, wd 199 drivers/scsi/wd719x.c dma_unmap_single(&wd->pdev->dev, cmd->SCp.dma_handle, wd 212 drivers/scsi/wd719x.c struct wd719x *wd = shost_priv(sh); wd 224 drivers/scsi/wd719x.c scb->phys = dma_map_single(&wd->pdev->dev, scb, sizeof(*scb), wd 227 drivers/scsi/wd719x.c if (dma_mapping_error(&wd->pdev->dev, scb->phys)) wd 232 drivers/scsi/wd719x.c cmd->SCp.dma_handle = dma_map_single(&wd->pdev->dev, cmd->sense_buffer, wd 234 drivers/scsi/wd719x.c if (dma_mapping_error(&wd->pdev->dev, cmd->SCp.dma_handle)) wd 272 drivers/scsi/wd719x.c spin_lock_irqsave(wd->sh->host_lock, flags); wd 275 drivers/scsi/wd719x.c if (wd719x_readb(wd, WD719X_AMR_COMMAND) != WD719X_CMD_READY) { wd 276 drivers/scsi/wd719x.c spin_unlock_irqrestore(wd->sh->host_lock, flags); wd 280 drivers/scsi/wd719x.c list_add(&scb->list, &wd->active_scbs); wd 283 drivers/scsi/wd719x.c wd719x_writel(wd, WD719X_AMR_SCB_IN, scb->phys); wd 285 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_COMMAND, WD719X_CMD_PROCESS_SCB); wd 287 drivers/scsi/wd719x.c spin_unlock_irqrestore(wd->sh->host_lock, flags); wd 291 drivers/scsi/wd719x.c dma_unmap_single(&wd->pdev->dev, cmd->SCp.dma_handle, wd 294 drivers/scsi/wd719x.c dma_unmap_single(&wd->pdev->dev, scb->phys, sizeof(*scb), wd 302 drivers/scsi/wd719x.c static int wd719x_chip_init(struct wd719x *wd) wd 310 drivers/scsi/wd719x.c memset(wd->hash_virt, 0, WD719X_HASH_TABLE_SIZE); wd 313 drivers/scsi/wd719x.c ret = request_firmware(&fw_wcs, fwname_wcs, &wd->pdev->dev); wd 315 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "Unable to load firmware %s: %d\n", wd 320 drivers/scsi/wd719x.c ret = request_firmware(&fw_risc, fwname_risc, &wd->pdev->dev); wd 322 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "Unable to load firmware %s: %d\n", wd 327 drivers/scsi/wd719x.c wd->fw_size = ALIGN(fw_wcs->size, 4) + fw_risc->size; wd 329 drivers/scsi/wd719x.c if (!wd->fw_virt) wd 330 drivers/scsi/wd719x.c wd->fw_virt = dma_alloc_coherent(&wd->pdev->dev, wd->fw_size, wd 331 drivers/scsi/wd719x.c &wd->fw_phys, GFP_KERNEL); wd 332 drivers/scsi/wd719x.c if (!wd->fw_virt) { wd 338 drivers/scsi/wd719x.c memcpy(wd->fw_virt, fw_wcs->data, fw_wcs->size); wd 339 drivers/scsi/wd719x.c memcpy(wd->fw_virt + ALIGN(fw_wcs->size, 4), fw_risc->data, wd 343 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_PCI_PORT_RESET, WD719X_PCI_RESET); wd 346 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_CMD_PARAM, 0); wd 348 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_PCI_MODE_SELECT, 0); wd 350 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_COMMAND, 0); wd 351 drivers/scsi/wd719x.c if (wd719x_wait_ready(wd)) { wd 357 drivers/scsi/wd719x.c risc_init[0] = wd->fw_phys; /* WCS FW */ wd 358 drivers/scsi/wd719x.c risc_init[1] = wd->fw_phys + ALIGN(fw_wcs->size, 4); /* RISC FW */ wd 359 drivers/scsi/wd719x.c risc_init[2] = wd->hash_phys; /* hash table */ wd 362 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_PCI_CHANNEL2_3STATUS, 0); wd 365 drivers/scsi/wd719x.c wd719x_writel(wd, WD719X_PCI_EXTERNAL_ADDR, risc_init[1]); wd 367 drivers/scsi/wd719x.c wd719x_writew(wd, WD719X_PCI_INTERNAL_ADDR, WD719X_PRAM_BASE_ADDR); wd 369 drivers/scsi/wd719x.c wd719x_writew(wd, WD719X_PCI_DMA_TRANSFER_SIZE, 2048 * 2); wd 371 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_PCI_CHANNEL2_3CMD, WD719X_START_CHANNEL2_3DMA); wd 376 drivers/scsi/wd719x.c u8 status = wd719x_readb(wd, WD719X_PCI_CHANNEL2_3STATUS); wd 380 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "RISC bootstrap failed: DMA aborted\n"); wd 387 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "RISC bootstrap failed: DMA timeout\n"); wd 394 drivers/scsi/wd719x.c wd719x_writel(wd, WD719X_AMR_SCB_IN, risc_init[0]); wd 395 drivers/scsi/wd719x.c wd719x_writel(wd, WD719X_AMR_SCB_IN + 4, risc_init[1]); wd 396 drivers/scsi/wd719x.c wd719x_writel(wd, WD719X_AMR_SCB_IN + 8, risc_init[2]); wd 399 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_CMD_PARAM, WD719X_DISABLE_INT); wd 402 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_COMMAND, WD719X_CMD_INIT_RISC); wd 404 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_PCI_MODE_SELECT, WD719X_ENABLE_ADVANCE_MODE); wd 407 drivers/scsi/wd719x.c ret = wd719x_wait_done(wd, WD719X_WAIT_FOR_RISC); wd 409 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_INT_STATUS, WD719X_INT_NONE); wd 411 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "Unable to initialize RISC\n"); wd 417 drivers/scsi/wd719x.c ret = wd719x_direct_cmd(wd, WD719X_CMD_READ_FIRMVER, 0, 0, 0, 0, wd 420 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "Unable to read firmware version\n"); wd 423 drivers/scsi/wd719x.c dev_info(&wd->pdev->dev, "RISC initialized with firmware version %.2x.%.2x\n", wd 424 drivers/scsi/wd719x.c wd719x_readb(wd, WD719X_AMR_SCB_OUT + 1), wd 425 drivers/scsi/wd719x.c wd719x_readb(wd, WD719X_AMR_SCB_OUT)); wd 428 drivers/scsi/wd719x.c ret = wd719x_direct_cmd(wd, WD719X_CMD_BUSRESET, 0, 0, 0, 0, wd 431 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "SCSI bus reset failed\n"); wd 436 drivers/scsi/wd719x.c ret = wd719x_direct_cmd(wd, WD719X_CMD_SET_PARAM, 0, wd 438 drivers/scsi/wd719x.c wd->params_phys, WD719X_WAIT_FOR_RISC); wd 440 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "Failed to set HOST PARAMETERS\n"); wd 446 drivers/scsi/wd719x.c ret = wd719x_direct_cmd(wd, WD719X_CMD_INIT_SCAM, 0, 0, 0, 0, wd 449 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "SCAM initialization failed\n"); wd 454 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_BIOS_SHARE_INT, 0); wd 468 drivers/scsi/wd719x.c struct wd719x *wd = shost_priv(cmd->device->host); wd 470 drivers/scsi/wd719x.c dev_info(&wd->pdev->dev, "abort command, tag: %x\n", cmd->tag); wd 474 drivers/scsi/wd719x.c spin_lock_irqsave(wd->sh->host_lock, flags); wd 475 drivers/scsi/wd719x.c result = wd719x_direct_cmd(wd, action, cmd->device->id, wd 478 drivers/scsi/wd719x.c spin_unlock_irqrestore(wd->sh->host_lock, flags); wd 489 drivers/scsi/wd719x.c struct wd719x *wd = shost_priv(cmd->device->host); wd 492 drivers/scsi/wd719x.c dev_info(&wd->pdev->dev, "%s reset requested\n", wd 495 drivers/scsi/wd719x.c spin_lock_irqsave(wd->sh->host_lock, flags); wd 496 drivers/scsi/wd719x.c result = wd719x_direct_cmd(wd, opcode, device, 0, 0, 0, wd 499 drivers/scsi/wd719x.c list_for_each_entry_safe(scb, tmp, &wd->active_scbs, list) { wd 504 drivers/scsi/wd719x.c spin_unlock_irqrestore(wd->sh->host_lock, flags); wd 523 drivers/scsi/wd719x.c struct wd719x *wd = shost_priv(cmd->device->host); wd 527 drivers/scsi/wd719x.c dev_info(&wd->pdev->dev, "host reset requested\n"); wd 528 drivers/scsi/wd719x.c spin_lock_irqsave(wd->sh->host_lock, flags); wd 530 drivers/scsi/wd719x.c if (wd719x_direct_cmd(wd, WD719X_CMD_SLEEP, 0, 0, 0, 0, wd 532 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "RISC sleep command failed\n"); wd 534 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_PCI_MODE_SELECT, 0); wd 537 drivers/scsi/wd719x.c list_for_each_entry_safe(scb, tmp, &wd->active_scbs, list) wd 539 drivers/scsi/wd719x.c spin_unlock_irqrestore(wd->sh->host_lock, flags); wd 542 drivers/scsi/wd719x.c return wd719x_chip_init(wd) == 0 ? SUCCESS : FAILED; wd 561 drivers/scsi/wd719x.c static inline void wd719x_interrupt_SCB(struct wd719x *wd, wd 573 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "command rejected\n"); wd 577 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "SCB queue is full\n"); wd 581 drivers/scsi/wd719x.c dev_dbg(&wd->pdev->dev, "SCB terminated by direct command\n"); wd 587 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "DMA abort\n"); wd 592 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "DMA parity error\n"); wd 596 drivers/scsi/wd719x.c dev_dbg(&wd->pdev->dev, "selection timeout\n"); wd 599 drivers/scsi/wd719x.c dev_dbg(&wd->pdev->dev, "bus reset occurred\n"); wd 603 drivers/scsi/wd719x.c dev_dbg(&wd->pdev->dev, "SCSI bus error\n"); wd 607 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "wrong data transfer direction\n"); wd 611 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "invalid SCSI phase\n"); wd 615 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "record too long\n"); wd 619 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "unexpected bus free\n"); wd 623 drivers/scsi/wd719x.c dev_dbg(&wd->pdev->dev, "auto request sense\n"); wd 630 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "target id %d ignored command\n", wd 635 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "reversed tags\n"); wd 639 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "tag type not supported by target\n"); wd 643 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "no SCAM soft ID available\n"); wd 647 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "unknown SUE error code: 0x%x\n", wd 658 drivers/scsi/wd719x.c struct wd719x *wd = dev_id; wd 663 drivers/scsi/wd719x.c spin_lock_irqsave(wd->sh->host_lock, flags); wd 665 drivers/scsi/wd719x.c SCB_out = wd719x_readl(wd, WD719X_AMR_SCB_OUT); wd 667 drivers/scsi/wd719x.c regs.all = cpu_to_le32(wd719x_readl(wd, WD719X_AMR_OP_CODE)); wd 671 drivers/scsi/wd719x.c spin_unlock_irqrestore(wd->sh->host_lock, flags); wd 674 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "linked command completed with no status\n"); wd 677 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "unsolicited interrupt\n"); wd 686 drivers/scsi/wd719x.c list_for_each_entry(scb, &wd->active_scbs, list) wd 690 drivers/scsi/wd719x.c wd719x_interrupt_SCB(wd, regs, scb); wd 692 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "card returned invalid SCB pointer\n"); wd 694 drivers/scsi/wd719x.c dev_dbg(&wd->pdev->dev, "direct command 0x%x completed\n", wd 698 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "card indicates PIO data ready but we never use PIO\n"); wd 702 drivers/scsi/wd719x.c dev_err(&wd->pdev->dev, "unknown interrupt reason: %d\n", wd 707 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_INT_STATUS, WD719X_INT_NONE); wd 708 drivers/scsi/wd719x.c spin_unlock_irqrestore(wd->sh->host_lock, flags); wd 715 drivers/scsi/wd719x.c struct wd719x *wd = eeprom->data; wd 716 drivers/scsi/wd719x.c u8 reg = wd719x_readb(wd, WD719X_PCI_GPIO_DATA); wd 723 drivers/scsi/wd719x.c struct wd719x *wd = eeprom->data; wd 733 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_PCI_GPIO_DATA, reg); wd 737 drivers/scsi/wd719x.c static void wd719x_read_eeprom(struct wd719x *wd) wd 743 drivers/scsi/wd719x.c eeprom.data = wd; wd 749 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_PCI_GPIO_DATA, 0); wd 751 drivers/scsi/wd719x.c gpio = wd719x_readb(wd, WD719X_PCI_GPIO_CONTROL); wd 756 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_PCI_GPIO_CONTROL, gpio); wd 763 drivers/scsi/wd719x.c (u8 *)wd->params, wd 766 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "EEPROM signature is invalid (0x%02x 0x%02x), using default values\n", wd 768 drivers/scsi/wd719x.c wd->params->ch_1_th = 0x10; /* 16 DWs = 64 B */ wd 769 drivers/scsi/wd719x.c wd->params->scsi_conf = 0x4c; /* 48ma, spue, parity check */ wd 770 drivers/scsi/wd719x.c wd->params->own_scsi_id = 0x07; /* ID 7, SCAM disabled */ wd 771 drivers/scsi/wd719x.c wd->params->sel_timeout = 0x4d; /* 250 ms */ wd 772 drivers/scsi/wd719x.c wd->params->sleep_timer = 0x01; wd 773 drivers/scsi/wd719x.c wd->params->cdb_size = cpu_to_le16(0x5555); /* all 6 B */ wd 774 drivers/scsi/wd719x.c wd->params->scsi_pad = 0x1b; wd 775 drivers/scsi/wd719x.c if (wd->type == WD719X_TYPE_7193) /* narrow card - disable */ wd 776 drivers/scsi/wd719x.c wd->params->wide = cpu_to_le32(0x00000000); wd 778 drivers/scsi/wd719x.c wd->params->wide = cpu_to_le32(0xffffffff); wd 779 drivers/scsi/wd719x.c wd->params->sync = cpu_to_le32(0xffffffff); wd 780 drivers/scsi/wd719x.c wd->params->soft_mask = 0x00; /* all disabled */ wd 781 drivers/scsi/wd719x.c wd->params->unsol_mask = 0x00; /* all disabled */ wd 784 drivers/scsi/wd719x.c wd->params->tag_en = cpu_to_le16(0x0000); wd 788 drivers/scsi/wd719x.c static enum wd719x_card_type wd719x_detect_type(struct wd719x *wd) wd 790 drivers/scsi/wd719x.c u8 card = wd719x_readb(wd, WD719X_PCI_GPIO_CONTROL); wd 793 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_PCI_GPIO_CONTROL, card); wd 794 drivers/scsi/wd719x.c card = wd719x_readb(wd, WD719X_PCI_GPIO_DATA) & WD719X_GPIO_ID_BITS; wd 803 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "unknown card type 0x%x\n", card); wd 810 drivers/scsi/wd719x.c struct wd719x *wd = shost_priv(sh); wd 816 drivers/scsi/wd719x.c INIT_LIST_HEAD(&wd->active_scbs); wd 818 drivers/scsi/wd719x.c sh->base = pci_resource_start(wd->pdev, 0); wd 820 drivers/scsi/wd719x.c wd->type = wd719x_detect_type(wd); wd 822 drivers/scsi/wd719x.c wd->sh = sh; wd 823 drivers/scsi/wd719x.c sh->irq = wd->pdev->irq; wd 824 drivers/scsi/wd719x.c wd->fw_virt = NULL; wd 827 drivers/scsi/wd719x.c wd->params = dma_alloc_coherent(&wd->pdev->dev, wd 829 drivers/scsi/wd719x.c &wd->params_phys, GFP_KERNEL); wd 830 drivers/scsi/wd719x.c if (!wd->params) { wd 831 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "unable to allocate parameter buffer\n"); wd 836 drivers/scsi/wd719x.c wd->hash_virt = dma_alloc_coherent(&wd->pdev->dev, wd 838 drivers/scsi/wd719x.c &wd->hash_phys, GFP_KERNEL); wd 839 drivers/scsi/wd719x.c if (!wd->hash_virt) { wd 840 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "unable to allocate hash buffer\n"); wd 845 drivers/scsi/wd719x.c ret = request_irq(wd->pdev->irq, wd719x_interrupt, IRQF_SHARED, wd 846 drivers/scsi/wd719x.c "wd719x", wd); wd 848 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "unable to assign IRQ %d\n", wd 849 drivers/scsi/wd719x.c wd->pdev->irq); wd 854 drivers/scsi/wd719x.c wd719x_read_eeprom(wd); wd 856 drivers/scsi/wd719x.c ret = wd719x_chip_init(wd); wd 860 drivers/scsi/wd719x.c sh->this_id = wd->params->own_scsi_id & WD719X_EE_SCSI_ID_MASK; wd 862 drivers/scsi/wd719x.c dev_info(&wd->pdev->dev, "%s at I/O 0x%lx, IRQ %u, SCSI ID %d\n", wd 863 drivers/scsi/wd719x.c card_types[wd->type], sh->base, sh->irq, sh->this_id); wd 868 drivers/scsi/wd719x.c free_irq(wd->pdev->irq, wd); wd 870 drivers/scsi/wd719x.c dma_free_coherent(&wd->pdev->dev, WD719X_HASH_TABLE_SIZE, wd->hash_virt, wd 871 drivers/scsi/wd719x.c wd->hash_phys); wd 873 drivers/scsi/wd719x.c dma_free_coherent(&wd->pdev->dev, sizeof(struct wd719x_host_param), wd 874 drivers/scsi/wd719x.c wd->params, wd->params_phys); wd 899 drivers/scsi/wd719x.c struct wd719x *wd; wd 924 drivers/scsi/wd719x.c wd = shost_priv(sh); wd 925 drivers/scsi/wd719x.c wd->base = pci_iomap(pdev, 0, 0); wd 926 drivers/scsi/wd719x.c if (!wd->base) wd 928 drivers/scsi/wd719x.c wd->pdev = pdev; wd 934 drivers/scsi/wd719x.c err = scsi_add_host(sh, &wd->pdev->dev); wd 944 drivers/scsi/wd719x.c wd719x_destroy(wd); wd 946 drivers/scsi/wd719x.c pci_iounmap(pdev, wd->base); wd 961 drivers/scsi/wd719x.c struct wd719x *wd = shost_priv(sh); wd 964 drivers/scsi/wd719x.c wd719x_destroy(wd); wd 965 drivers/scsi/wd719x.c pci_iounmap(pdev, wd->base); wd 115 drivers/slimbus/qcom-ctrl.c struct work_struct wd; wd 258 drivers/slimbus/qcom-ctrl.c queue_work(ctrl->rxwq, &ctrl->wd); wd 445 drivers/slimbus/qcom-ctrl.c wd); wd 548 drivers/slimbus/qcom-ctrl.c INIT_WORK(&ctrl->wd, qcom_slim_rxwq); wd 184 drivers/video/fbdev/asiliantfb.c unsigned wd = (p->var.xres_virtual * ((p->var.bits_per_pixel+7)/8)) / 8; wd 210 drivers/video/fbdev/asiliantfb.c write_cr(0x13, wd & 0xff); wd 211 drivers/video/fbdev/asiliantfb.c write_cr(0x41, (wd & 0xf00) >> 8); wd 194 drivers/video/fbdev/matrox/matroxfb_misc.c unsigned int wd; wd 277 drivers/video/fbdev/matrox/matroxfb_misc.c wd = minfo->fbcon.var.xres_virtual * minfo->curr.final_bppShift / 64; wd 285 drivers/video/fbdev/matrox/matroxfb_misc.c wd <<= 1; wd 288 drivers/video/fbdev/matrox/matroxfb_misc.c hw->CRTCEXT[0] |= (wd & 0x300) >> 4; wd 329 drivers/video/fbdev/matrox/matroxfb_misc.c hw->CRTC[19] = wd /* & 0xFF */; wd 555 drivers/video/fbdev/tdfxfb.c u32 wd; wd 580 drivers/video/fbdev/tdfxfb.c wd = (hdispend >> 3) - 1; wd 581 drivers/video/fbdev/tdfxfb.c hd = wd; wd 661 drivers/video/fbdev/tdfxfb.c reg.crt[0x13] = wd; wd 41 drivers/watchdog/intel-mid_wdt.c static int wdt_start(struct watchdog_device *wd) wd 43 drivers/watchdog/intel-mid_wdt.c struct device *dev = watchdog_get_drvdata(wd); wd 45 drivers/watchdog/intel-mid_wdt.c int timeout = wd->timeout; wd 64 drivers/watchdog/intel-mid_wdt.c static int wdt_ping(struct watchdog_device *wd) wd 66 drivers/watchdog/intel-mid_wdt.c struct device *dev = watchdog_get_drvdata(wd); wd 76 drivers/watchdog/intel-mid_wdt.c static int wdt_stop(struct watchdog_device *wd) wd 78 drivers/watchdog/intel-mid_wdt.c struct device *dev = watchdog_get_drvdata(wd); wd 122 drivers/watchdog/xen_wdt.c struct sched_watchdog wd = { .id = ~0 }; wd 123 drivers/watchdog/xen_wdt.c int ret = HYPERVISOR_sched_op(SCHEDOP_watchdog, &wd); wd 95 fs/hfsplus/wrapper.c static int hfsplus_read_mdb(void *bufptr, struct hfsplus_wd *wd) wd 111 fs/hfsplus/wrapper.c wd->ablk_size = wd 113 fs/hfsplus/wrapper.c if (wd->ablk_size < HFSPLUS_SECTOR_SIZE) wd 115 fs/hfsplus/wrapper.c if (wd->ablk_size % HFSPLUS_SECTOR_SIZE) wd 117 fs/hfsplus/wrapper.c wd->ablk_start = wd 121 fs/hfsplus/wrapper.c wd->embed_start = (extent >> 16) & 0xFFFF; wd 122 fs/hfsplus/wrapper.c wd->embed_count = extent & 0xFFFF; wd 163 fs/hfsplus/wrapper.c struct hfsplus_wd wd; wd 199 fs/hfsplus/wrapper.c if (!hfsplus_read_mdb(sbi->s_vhdr, &wd)) wd 201 fs/hfsplus/wrapper.c wd.ablk_size >>= HFSPLUS_SECTOR_SHIFT; wd 202 fs/hfsplus/wrapper.c part_start += (sector_t)wd.ablk_start + wd 203 fs/hfsplus/wrapper.c (sector_t)wd.embed_start * wd.ablk_size; wd 204 fs/hfsplus/wrapper.c part_size = (sector_t)wd.embed_count * wd.ablk_size; wd 95 fs/notify/fdinfo.c inode_mark->wd, inode->i_ino, inode->i_sb->s_dev, wd 9 fs/notify/inotify/inotify.h int wd; wd 17 fs/notify/inotify/inotify.h int wd; wd 123 fs/notify/inotify/inotify_fsnotify.c event->wd = i_mark->wd; wd 177 fs/notify/inotify/inotify_fsnotify.c fsn_mark->group, i_mark->wd); wd 183 fs/notify/inotify/inotify_user.c inotify_event.wd = event->wd; wd 368 fs/notify/inotify/inotify_user.c i_mark->wd = ret; wd 378 fs/notify/inotify/inotify_user.c int wd) wd 386 fs/notify/inotify/inotify_user.c i_mark = idr_find(idr, wd); wd 399 fs/notify/inotify/inotify_user.c int wd) wd 405 fs/notify/inotify/inotify_user.c i_mark = inotify_idr_find_locked(group, wd); wd 421 fs/notify/inotify/inotify_user.c int wd; wd 424 fs/notify/inotify/inotify_user.c wd = i_mark->wd; wd 430 fs/notify/inotify/inotify_user.c if (wd == -1) { wd 432 fs/notify/inotify/inotify_user.c __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); wd 437 fs/notify/inotify/inotify_user.c found_i_mark = inotify_idr_find_locked(group, wd); wd 440 fs/notify/inotify/inotify_user.c __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); wd 453 fs/notify/inotify/inotify_user.c i_mark->wd, i_mark->fsn_mark.group, found_i_mark, wd 454 fs/notify/inotify/inotify_user.c found_i_mark->wd, found_i_mark->fsn_mark.group); wd 464 fs/notify/inotify/inotify_user.c __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); wd 469 fs/notify/inotify/inotify_user.c idr_remove(idr, wd); wd 473 fs/notify/inotify/inotify_user.c i_mark->wd = -1; wd 549 fs/notify/inotify/inotify_user.c ret = i_mark->wd; wd 576 fs/notify/inotify/inotify_user.c tmp_i_mark->wd = -1; wd 599 fs/notify/inotify/inotify_user.c ret = tmp_i_mark->wd; wd 640 fs/notify/inotify/inotify_user.c oevent->wd = -1; wd 762 fs/notify/inotify/inotify_user.c SYSCALL_DEFINE2(inotify_rm_watch, int, fd, __s32, wd) wd 781 fs/notify/inotify/inotify_user.c i_mark = inotify_idr_find(group, wd); wd 380 include/linux/syscalls.h asmlinkage long sys_inotify_rm_watch(int fd, __s32 wd); wd 75 include/net/pkt_sched.h void qdisc_watchdog_init_clockid(struct qdisc_watchdog *wd, struct Qdisc *qdisc, wd 77 include/net/pkt_sched.h void qdisc_watchdog_init(struct qdisc_watchdog *wd, struct Qdisc *qdisc); wd 78 include/net/pkt_sched.h void qdisc_watchdog_schedule_ns(struct qdisc_watchdog *wd, u64 expires); wd 80 include/net/pkt_sched.h static inline void qdisc_watchdog_schedule(struct qdisc_watchdog *wd, wd 83 include/net/pkt_sched.h qdisc_watchdog_schedule_ns(wd, PSCHED_TICKS2NS(expires)); wd 86 include/net/pkt_sched.h void qdisc_watchdog_cancel(struct qdisc_watchdog *wd); wd 22 include/uapi/linux/inotify.h __s32 wd; /* watch descriptor */ wd 596 net/sched/sch_api.c struct qdisc_watchdog *wd = container_of(timer, struct qdisc_watchdog, wd 600 net/sched/sch_api.c __netif_schedule(qdisc_root(wd->qdisc)); wd 606 net/sched/sch_api.c void qdisc_watchdog_init_clockid(struct qdisc_watchdog *wd, struct Qdisc *qdisc, wd 609 net/sched/sch_api.c hrtimer_init(&wd->timer, clockid, HRTIMER_MODE_ABS_PINNED); wd 610 net/sched/sch_api.c wd->timer.function = qdisc_watchdog; wd 611 net/sched/sch_api.c wd->qdisc = qdisc; wd 615 net/sched/sch_api.c void qdisc_watchdog_init(struct qdisc_watchdog *wd, struct Qdisc *qdisc) wd 617 net/sched/sch_api.c qdisc_watchdog_init_clockid(wd, qdisc, CLOCK_MONOTONIC); wd 621 net/sched/sch_api.c void qdisc_watchdog_schedule_ns(struct qdisc_watchdog *wd, u64 expires) wd 624 net/sched/sch_api.c &qdisc_root_sleeping(wd->qdisc)->state)) wd 627 net/sched/sch_api.c if (wd->last_expires == expires) wd 630 net/sched/sch_api.c wd->last_expires = expires; wd 631 net/sched/sch_api.c hrtimer_start(&wd->timer, wd 637 net/sched/sch_api.c void qdisc_watchdog_cancel(struct qdisc_watchdog *wd) wd 639 net/sched/sch_api.c hrtimer_cancel(&wd->timer); wd 368 sound/soc/au1x/psc-ac97.c struct au1xpsc_audio_data *wd; wd 370 sound/soc/au1x/psc-ac97.c wd = devm_kzalloc(&pdev->dev, sizeof(struct au1xpsc_audio_data), wd 372 sound/soc/au1x/psc-ac97.c if (!wd) wd 375 sound/soc/au1x/psc-ac97.c mutex_init(&wd->lock); wd 377 sound/soc/au1x/psc-ac97.c wd->mmio = devm_platform_ioremap_resource(pdev, 0); wd 378 sound/soc/au1x/psc-ac97.c if (IS_ERR(wd->mmio)) wd 379 sound/soc/au1x/psc-ac97.c return PTR_ERR(wd->mmio); wd 384 sound/soc/au1x/psc-ac97.c wd->dmaids[SNDRV_PCM_STREAM_PLAYBACK] = dmares->start; wd 389 sound/soc/au1x/psc-ac97.c wd->dmaids[SNDRV_PCM_STREAM_CAPTURE] = dmares->start; wd 392 sound/soc/au1x/psc-ac97.c wd->cfg = PSC_AC97CFG_RT_FIFO8 | PSC_AC97CFG_TT_FIFO8 | wd 396 sound/soc/au1x/psc-ac97.c sel = __raw_readl(PSC_SEL(wd)) & PSC_SEL_CLK_MASK; wd 397 sound/soc/au1x/psc-ac97.c __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); wd 399 sound/soc/au1x/psc-ac97.c __raw_writel(0, PSC_SEL(wd)); wd 401 sound/soc/au1x/psc-ac97.c __raw_writel(PSC_SEL_PS_AC97MODE | sel, PSC_SEL(wd)); wd 405 sound/soc/au1x/psc-ac97.c memcpy(&wd->dai_drv, &au1xpsc_ac97_dai_template, wd 407 sound/soc/au1x/psc-ac97.c wd->dai_drv.name = dev_name(&pdev->dev); wd 409 sound/soc/au1x/psc-ac97.c platform_set_drvdata(pdev, wd); wd 416 sound/soc/au1x/psc-ac97.c &wd->dai_drv, 1); wd 420 sound/soc/au1x/psc-ac97.c au1xpsc_ac97_workdata = wd; wd 426 sound/soc/au1x/psc-ac97.c struct au1xpsc_audio_data *wd = platform_get_drvdata(pdev); wd 431 sound/soc/au1x/psc-ac97.c __raw_writel(0, AC97_CFG(wd)); wd 433 sound/soc/au1x/psc-ac97.c __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); wd 444 sound/soc/au1x/psc-ac97.c struct au1xpsc_audio_data *wd = dev_get_drvdata(dev); wd 447 sound/soc/au1x/psc-ac97.c wd->pm[0] = __raw_readl(PSC_SEL(wd)); wd 449 sound/soc/au1x/psc-ac97.c __raw_writel(0, AC97_CFG(wd)); wd 451 sound/soc/au1x/psc-ac97.c __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); wd 459 sound/soc/au1x/psc-ac97.c struct au1xpsc_audio_data *wd = dev_get_drvdata(dev); wd 462 sound/soc/au1x/psc-ac97.c __raw_writel(wd->pm[0] | PSC_SEL_PS_AC97MODE, PSC_SEL(wd)); wd 296 sound/soc/au1x/psc-i2s.c struct au1xpsc_audio_data *wd; wd 298 sound/soc/au1x/psc-i2s.c wd = devm_kzalloc(&pdev->dev, sizeof(struct au1xpsc_audio_data), wd 300 sound/soc/au1x/psc-i2s.c if (!wd) wd 303 sound/soc/au1x/psc-i2s.c wd->mmio = devm_platform_ioremap_resource(pdev, 0); wd 304 sound/soc/au1x/psc-i2s.c if (IS_ERR(wd->mmio)) wd 305 sound/soc/au1x/psc-i2s.c return PTR_ERR(wd->mmio); wd 310 sound/soc/au1x/psc-i2s.c wd->dmaids[SNDRV_PCM_STREAM_PLAYBACK] = dmares->start; wd 315 sound/soc/au1x/psc-i2s.c wd->dmaids[SNDRV_PCM_STREAM_CAPTURE] = dmares->start; wd 320 sound/soc/au1x/psc-i2s.c sel = __raw_readl(PSC_SEL(wd)) & PSC_SEL_CLK_MASK; wd 321 sound/soc/au1x/psc-i2s.c __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); wd 323 sound/soc/au1x/psc-i2s.c __raw_writel(PSC_SEL_PS_I2SMODE | sel, PSC_SEL(wd)); wd 324 sound/soc/au1x/psc-i2s.c __raw_writel(0, I2S_CFG(wd)); wd 328 sound/soc/au1x/psc-i2s.c wd->cfg |= PSC_I2SCFG_RT_FIFO8 | PSC_I2SCFG_TT_FIFO8; wd 336 sound/soc/au1x/psc-i2s.c memcpy(&wd->dai_drv, &au1xpsc_i2s_dai_template, wd 338 sound/soc/au1x/psc-i2s.c wd->dai_drv.name = dev_name(&pdev->dev); wd 340 sound/soc/au1x/psc-i2s.c platform_set_drvdata(pdev, wd); wd 343 sound/soc/au1x/psc-i2s.c &au1xpsc_i2s_component, &wd->dai_drv, 1); wd 348 sound/soc/au1x/psc-i2s.c struct au1xpsc_audio_data *wd = platform_get_drvdata(pdev); wd 350 sound/soc/au1x/psc-i2s.c __raw_writel(0, I2S_CFG(wd)); wd 352 sound/soc/au1x/psc-i2s.c __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); wd 361 sound/soc/au1x/psc-i2s.c struct au1xpsc_audio_data *wd = dev_get_drvdata(dev); wd 364 sound/soc/au1x/psc-i2s.c wd->pm[0] = __raw_readl(PSC_SEL(wd)); wd 366 sound/soc/au1x/psc-i2s.c __raw_writel(0, I2S_CFG(wd)); wd 368 sound/soc/au1x/psc-i2s.c __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); wd 376 sound/soc/au1x/psc-i2s.c struct au1xpsc_audio_data *wd = dev_get_drvdata(dev); wd 379 sound/soc/au1x/psc-i2s.c __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); wd 381 sound/soc/au1x/psc-i2s.c __raw_writel(0, PSC_SEL(wd)); wd 383 sound/soc/au1x/psc-i2s.c __raw_writel(wd->pm[0], PSC_SEL(wd));