/kernel/linux/linux-6.6/drivers/net/ethernet/mediatek/ |
H A D | mtk_wed_wo.c | 21 mtk_wed_mmio_r32(struct mtk_wed_wo *wo, u32 reg) in mtk_wed_mmio_r32() argument 25 if (regmap_read(wo->mmio.regs, reg, &val)) in mtk_wed_mmio_r32() 32 mtk_wed_mmio_w32(struct mtk_wed_wo *wo, u32 reg, u32 val) in mtk_wed_mmio_w32() argument 34 regmap_write(wo->mmio.regs, reg, val); in mtk_wed_mmio_w32() 38 mtk_wed_wo_get_isr(struct mtk_wed_wo *wo) in mtk_wed_wo_get_isr() argument 40 u32 val = mtk_wed_mmio_r32(wo, MTK_WED_WO_CCIF_RCHNUM); in mtk_wed_wo_get_isr() 46 mtk_wed_wo_set_isr(struct mtk_wed_wo *wo, u32 mask) in mtk_wed_wo_set_isr() argument 48 mtk_wed_mmio_w32(wo, MTK_WED_WO_CCIF_IRQ0_MASK, mask); in mtk_wed_wo_set_isr() 52 mtk_wed_wo_set_ack(struct mtk_wed_wo *wo, u32 mask) in mtk_wed_wo_set_ack() argument 54 mtk_wed_mmio_w32(wo, MTK_WED_WO_CCIF_AC in mtk_wed_wo_set_ack() 58 mtk_wed_wo_set_isr_mask(struct mtk_wed_wo *wo, u32 mask, u32 val, bool set) mtk_wed_wo_set_isr_mask() argument 71 mtk_wed_wo_irq_enable(struct mtk_wed_wo *wo, u32 mask) mtk_wed_wo_irq_enable() argument 78 mtk_wed_wo_irq_disable(struct mtk_wed_wo *wo, u32 mask) mtk_wed_wo_irq_disable() argument 84 mtk_wed_wo_kickout(struct mtk_wed_wo *wo) mtk_wed_wo_kickout() argument 91 mtk_wed_wo_queue_kick(struct mtk_wed_wo *wo, struct mtk_wed_wo_queue *q, u32 val) mtk_wed_wo_queue_kick() argument 99 mtk_wed_wo_dequeue(struct mtk_wed_wo *wo, struct mtk_wed_wo_queue *q, u32 *len, bool flush) mtk_wed_wo_dequeue() argument 134 mtk_wed_wo_queue_refill(struct mtk_wed_wo *wo, struct mtk_wed_wo_queue *q, bool rx) mtk_wed_wo_queue_refill() argument 178 mtk_wed_wo_rx_complete(struct mtk_wed_wo *wo) mtk_wed_wo_rx_complete() argument 185 mtk_wed_wo_rx_run_queue(struct mtk_wed_wo *wo, struct mtk_wed_wo_queue *q) mtk_wed_wo_rx_run_queue() argument 226 struct mtk_wed_wo *wo = data; mtk_wed_wo_irq_handler() local 236 struct mtk_wed_wo *wo = from_tasklet(wo, t, mmio.irq_tasklet); mtk_wed_wo_irq_tasklet() local 256 mtk_wed_wo_queue_alloc(struct mtk_wed_wo *wo, struct mtk_wed_wo_queue *q, int n_desc, int buf_size, int index, struct mtk_wed_wo_queue_regs *regs) mtk_wed_wo_queue_alloc() argument 278 mtk_wed_wo_queue_free(struct mtk_wed_wo *wo, struct mtk_wed_wo_queue *q) mtk_wed_wo_queue_free() argument 286 mtk_wed_wo_queue_tx_clean(struct mtk_wed_wo *wo, struct mtk_wed_wo_queue *q) mtk_wed_wo_queue_tx_clean() argument 312 mtk_wed_wo_queue_rx_clean(struct mtk_wed_wo *wo, struct mtk_wed_wo_queue *q) mtk_wed_wo_queue_rx_clean() argument 334 mtk_wed_wo_queue_reset(struct mtk_wed_wo *wo, struct mtk_wed_wo_queue *q) mtk_wed_wo_queue_reset() argument 341 mtk_wed_wo_queue_tx_skb(struct mtk_wed_wo *wo, struct mtk_wed_wo_queue *q, struct sk_buff *skb) mtk_wed_wo_queue_tx_skb() argument 385 mtk_wed_wo_exception_init(struct mtk_wed_wo *wo) mtk_wed_wo_exception_init() argument 391 mtk_wed_wo_hardware_init(struct mtk_wed_wo *wo) mtk_wed_wo_hardware_init() argument 459 mtk_wed_wo_hw_deinit(struct mtk_wed_wo *wo) mtk_wed_wo_hw_deinit() argument 477 struct mtk_wed_wo *wo; mtk_wed_wo_init() local 500 struct mtk_wed_wo *wo = hw->wed_wo; mtk_wed_wo_deinit() local [all...] |
H A D | mtk_wed_mcu.c | 19 static u32 wo_r32(struct mtk_wed_wo *wo, u32 reg) in wo_r32() argument 21 return readl(wo->boot.addr + reg); in wo_r32() 24 static void wo_w32(struct mtk_wed_wo *wo, u32 reg, u32 val) in wo_w32() argument 26 writel(val, wo->boot.addr + reg); in wo_w32() 48 mtk_wed_mcu_get_response(struct mtk_wed_wo *wo, unsigned long expires) in mtk_wed_mcu_get_response() argument 53 wait_event_timeout(wo->mcu.wait, !skb_queue_empty(&wo->mcu.res_q), in mtk_wed_mcu_get_response() 55 return skb_dequeue(&wo->mcu.res_q); in mtk_wed_mcu_get_response() 58 void mtk_wed_mcu_rx_event(struct mtk_wed_wo *wo, struct sk_buff *skb) in mtk_wed_mcu_rx_event() argument 60 skb_queue_tail(&wo in mtk_wed_mcu_rx_event() 79 mtk_wed_mcu_rx_unsolicited_event(struct mtk_wed_wo *wo, struct sk_buff *skb) mtk_wed_mcu_rx_unsolicited_event() argument 115 mtk_wed_mcu_skb_send_msg(struct mtk_wed_wo *wo, struct sk_buff *skb, int id, int cmd, u16 *wait_seq, bool wait_resp) mtk_wed_mcu_skb_send_msg() argument 144 mtk_wed_mcu_parse_response(struct mtk_wed_wo *wo, struct sk_buff *skb, int cmd, int seq) mtk_wed_mcu_parse_response() argument 171 mtk_wed_mcu_send_msg(struct mtk_wed_wo *wo, int id, int cmd, const void *data, int len, bool wait_resp) mtk_wed_mcu_send_msg() argument 205 struct mtk_wed_wo *wo = dev->hw->wed_wo; mtk_wed_mcu_msg_update() local 218 mtk_wed_get_memory_region(struct mtk_wed_wo *wo, struct mtk_wed_wo_memory_region *region) mtk_wed_get_memory_region() argument 248 mtk_wed_mcu_run_firmware(struct mtk_wed_wo *wo, const struct firmware *fw, struct mtk_wed_wo_memory_region *region) mtk_wed_mcu_run_firmware() argument 292 mtk_wed_mcu_load_firmware(struct mtk_wed_wo *wo) mtk_wed_mcu_load_firmware() argument 370 mtk_wed_mcu_read_fw_dl(struct mtk_wed_wo *wo) mtk_wed_mcu_read_fw_dl() argument 376 mtk_wed_mcu_init(struct mtk_wed_wo *wo) mtk_wed_mcu_init() argument [all...] |
H A D | mtk_wed_wo.h | 256 mtk_wed_mcu_check_msg(struct mtk_wed_wo *wo, struct sk_buff *skb) in mtk_wed_mcu_check_msg() argument 269 void mtk_wed_mcu_rx_event(struct mtk_wed_wo *wo, struct sk_buff *skb); 270 void mtk_wed_mcu_rx_unsolicited_event(struct mtk_wed_wo *wo, 272 int mtk_wed_mcu_send_msg(struct mtk_wed_wo *wo, int id, int cmd, 276 int mtk_wed_mcu_init(struct mtk_wed_wo *wo);
|
H A D | mtk_wed.c | 177 struct mtk_wed_wo *wo = dev->hw->wed_wo; in mtk_wed_wo_reset() local 185 if (mtk_wed_mcu_send_msg(wo, MTK_WED_MODULE_ID_WO, in mtk_wed_wo_reset() 193 dev_err(dev->hw->dev, "failed to disable wed-wo\n"); in mtk_wed_wo_reset() 819 "wo-dlm"); in mtk_wed_rro_alloc() 843 struct mtk_wed_wo *wo = dev->hw->wed_wo; in mtk_wed_rro_cfg() local 866 return mtk_wed_mcu_send_msg(wo, MTK_WED_MODULE_ID_WO, in mtk_wed_rro_cfg() 1031 struct mtk_wed_wo *wo = dev->hw->wed_wo; in mtk_wed_rx_reset() local 1035 ret = mtk_wed_mcu_send_msg(wo, MTK_WED_MODULE_ID_WO, in mtk_wed_rx_reset() 1117 /* wo change to enable state */ in mtk_wed_rx_reset() 1119 ret = mtk_wed_mcu_send_msg(wo, MTK_WED_MODULE_ID_W in mtk_wed_rx_reset() [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | exit.c | 1032 static int eligible_pid(struct wait_opts *wo, struct task_struct *p) in eligible_pid() argument 1034 return wo->wo_type == PIDTYPE_MAX || in eligible_pid() 1035 task_pid_type(p, wo->wo_type) == wo->wo_pid; in eligible_pid() 1039 eligible_child(struct wait_opts *wo, bool ptrace, struct task_struct *p) in eligible_child() argument 1041 if (!eligible_pid(wo, p)) in eligible_child() 1048 if (ptrace || (wo->wo_flags & __WALL)) in eligible_child() 1059 if ((p->exit_signal != SIGCHLD) ^ !!(wo->wo_flags & __WCLONE)) in eligible_child() 1071 static int wait_task_zombie(struct wait_opts *wo, struct task_struct *p) in wait_task_zombie() argument 1078 if (!likely(wo in wait_task_zombie() 1230 wait_task_stopped(struct wait_opts *wo, int ptrace, struct task_struct *p) wait_task_stopped() argument 1302 wait_task_continued(struct wait_opts *wo, struct task_struct *p) wait_task_continued() argument 1354 wait_consider_task(struct wait_opts *wo, int ptrace, struct task_struct *p) wait_consider_task() argument 1466 do_wait_thread(struct wait_opts *wo, struct task_struct *tsk) do_wait_thread() argument 1480 ptrace_do_wait(struct wait_opts *wo, struct task_struct *tsk) ptrace_do_wait() argument 1497 struct wait_opts *wo = container_of(wait, struct wait_opts, child_wait_callback() local 1516 do_wait(struct wait_opts *wo) do_wait() argument 1573 struct wait_opts wo; kernel_waitid() local 1672 struct wait_opts wo; kernel_wait4() local 1714 struct wait_opts wo = { kernel_wait() local [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | exit.c | 1072 static int eligible_pid(struct wait_opts *wo, struct task_struct *p) in eligible_pid() argument 1074 return wo->wo_type == PIDTYPE_MAX || in eligible_pid() 1075 task_pid_type(p, wo->wo_type) == wo->wo_pid; in eligible_pid() 1079 eligible_child(struct wait_opts *wo, bool ptrace, struct task_struct *p) in eligible_child() argument 1081 if (!eligible_pid(wo, p)) in eligible_child() 1088 if (ptrace || (wo->wo_flags & __WALL)) in eligible_child() 1099 if ((p->exit_signal != SIGCHLD) ^ !!(wo->wo_flags & __WCLONE)) in eligible_child() 1111 static int wait_task_zombie(struct wait_opts *wo, struct task_struct *p) in wait_task_zombie() argument 1118 if (!likely(wo in wait_task_zombie() 1271 wait_task_stopped(struct wait_opts *wo, int ptrace, struct task_struct *p) wait_task_stopped() argument 1343 wait_task_continued(struct wait_opts *wo, struct task_struct *p) wait_task_continued() argument 1395 wait_consider_task(struct wait_opts *wo, int ptrace, struct task_struct *p) wait_consider_task() argument 1507 do_wait_thread(struct wait_opts *wo, struct task_struct *tsk) do_wait_thread() argument 1521 ptrace_do_wait(struct wait_opts *wo, struct task_struct *tsk) ptrace_do_wait() argument 1538 struct wait_opts *wo = container_of(wait, struct wait_opts, child_wait_callback() local 1557 is_effectively_child(struct wait_opts *wo, bool ptrace, struct task_struct *target) is_effectively_child() argument 1571 do_wait_pid(struct wait_opts *wo) do_wait_pid() argument 1597 do_wait(struct wait_opts *wo) do_wait() argument 1661 struct wait_opts wo; kernel_waitid() local 1760 struct wait_opts wo; kernel_wait4() local 1802 struct wait_opts wo = { kernel_wait() local [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/ |
H A D | dibusb-common.c | 141 int ret, wo, len; in dibusb_i2c_msg() local 144 wo = (rbuf == NULL || rlen == 0); in dibusb_i2c_msg() 146 len = 2 + wlen + (wo ? 0 : 2); in dibusb_i2c_msg() 158 sndbuf[0] = wo ? DIBUSB_REQ_I2C_WRITE : DIBUSB_REQ_I2C_READ; in dibusb_i2c_msg() 159 sndbuf[1] = (addr << 1) | (wo ? 0 : 1); in dibusb_i2c_msg() 163 if (!wo) { in dibusb_i2c_msg()
|
H A D | digitv.c | 29 int ret, wo; in digitv_ctrl_msg() local 31 wo = (rbuf == NULL || rlen == 0); /* write-only */ in digitv_ctrl_msg() 41 st->sndbuf[2] = wo ? wlen : rlen; in digitv_ctrl_msg() 43 if (wo) { in digitv_ctrl_msg()
|
/kernel/linux/linux-6.6/drivers/media/usb/dvb-usb/ |
H A D | dibusb-common.c | 141 int ret, wo, len; in dibusb_i2c_msg() local 144 wo = (rbuf == NULL || rlen == 0); in dibusb_i2c_msg() 146 len = 2 + wlen + (wo ? 0 : 2); in dibusb_i2c_msg() 158 sndbuf[0] = wo ? DIBUSB_REQ_I2C_WRITE : DIBUSB_REQ_I2C_READ; in dibusb_i2c_msg() 159 sndbuf[1] = (addr << 1) | (wo ? 0 : 1); in dibusb_i2c_msg() 163 if (!wo) { in dibusb_i2c_msg()
|
H A D | digitv.c | 29 int ret, wo; in digitv_ctrl_msg() local 31 wo = (rbuf == NULL || rlen == 0); /* write-only */ in digitv_ctrl_msg() 41 st->sndbuf[2] = wo ? wlen : rlen; in digitv_ctrl_msg() 43 if (wo) { in digitv_ctrl_msg()
|
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb-v2/ |
H A D | au6610.c | 70 u8 wo = (rbuf == NULL || rlen == 0); /* write-only */ in au6610_i2c_msg() local 72 if (wo) { in au6610_i2c_msg()
|
H A D | mxl111sf.c | 56 int wo = (rbuf == NULL || rlen == 0); /* write-only */ in mxl111sf_ctrl_msg() local 73 ret = (wo) ? dvb_usbv2_generic_write(d, state->sndbuf, 1+wlen) : in mxl111sf_ctrl_msg()
|
/kernel/linux/linux-6.6/drivers/media/usb/dvb-usb-v2/ |
H A D | au6610.c | 70 u8 wo = (rbuf == NULL || rlen == 0); /* write-only */ in au6610_i2c_msg() local 72 if (wo) { in au6610_i2c_msg()
|
H A D | mxl111sf.c | 56 int wo = (rbuf == NULL || rlen == 0); /* write-only */ in mxl111sf_ctrl_msg() local 73 ret = (wo) ? dvb_usbv2_generic_write(d, state->sndbuf, 1+wlen) : in mxl111sf_ctrl_msg()
|
/kernel/linux/linux-5.10/drivers/block/drbd/ |
H A D | drbd_receiver.c | 1428 max_allowed_wo(struct drbd_backing_dev *bdev, enum write_ordering_e wo) in max_allowed_wo() argument 1434 if (wo == WO_BDEV_FLUSH && !dc->disk_flushes) in max_allowed_wo() 1435 wo = WO_DRAIN_IO; in max_allowed_wo() 1436 if (wo == WO_DRAIN_IO && !dc->disk_drain) in max_allowed_wo() 1437 wo = WO_NONE; in max_allowed_wo() 1439 return wo; in max_allowed_wo() 1445 * @wo: Write ordering method to try. 1448 enum write_ordering_e wo) in drbd_bump_write_ordering() 1460 if (wo != WO_BDEV_FLUSH) in drbd_bump_write_ordering() 1461 wo in drbd_bump_write_ordering() 1447 drbd_bump_write_ordering(struct drbd_resource *resource, struct drbd_backing_dev *bdev, enum write_ordering_e wo) drbd_bump_write_ordering() argument [all...] |
H A D | drbd_int.h | 1596 enum write_ordering_e wo);
|
/kernel/linux/linux-6.6/drivers/block/drbd/ |
H A D | drbd_receiver.c | 1430 max_allowed_wo(struct drbd_backing_dev *bdev, enum write_ordering_e wo) in max_allowed_wo() argument 1436 if (wo == WO_BDEV_FLUSH && !dc->disk_flushes) in max_allowed_wo() 1437 wo = WO_DRAIN_IO; in max_allowed_wo() 1438 if (wo == WO_DRAIN_IO && !dc->disk_drain) in max_allowed_wo() 1439 wo = WO_NONE; in max_allowed_wo() 1441 return wo; in max_allowed_wo() 1446 * @wo: Write ordering method to try. 1449 enum write_ordering_e wo) in drbd_bump_write_ordering() 1461 if (wo != WO_BDEV_FLUSH) in drbd_bump_write_ordering() 1462 wo in drbd_bump_write_ordering() 1448 drbd_bump_write_ordering(struct drbd_resource *resource, struct drbd_backing_dev *bdev, enum write_ordering_e wo) drbd_bump_write_ordering() argument [all...] |
H A D | drbd_int.h | 1533 enum write_ordering_e wo);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
H A D | selftest_workarounds.c | 957 static const struct regmask wo[] = { in writeonly_reg() local 961 return find_reg(i915, reg, wo, ARRAY_SIZE(wo)); in writeonly_reg()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/ |
H A D | selftest_workarounds.c | 999 static const struct regmask wo[] = { in writeonly_reg() local 1003 return find_reg(i915, reg, wo, ARRAY_SIZE(wo)); in writeonly_reg()
|