Home
last modified time | relevance | path

Searched full:direction (Results 1 – 25 of 1666) sorted by relevance

12345678910>>...67

/linux/drivers/thermal/
H A Dthermal_thresholds.c79 if (!(t->direction & THERMAL_THRESHOLD_WAY_UP)) in thermal_thresholds_handle_raising()
97 if (!(t->direction & THERMAL_THRESHOLD_WAY_DOWN)) in thermal_thresholds_handle_dropping()
115 (t->direction & THERMAL_THRESHOLD_WAY_UP) && in thermal_threshold_find_boundaries()
122 (t->direction & THERMAL_THRESHOLD_WAY_DOWN) && in thermal_threshold_find_boundaries()
169 int temperature, int direction) in thermal_thresholds_add() argument
178 if (t->direction == direction) in thermal_thresholds_add()
181 t->direction |= direction; in thermal_thresholds_add()
190 t->direction = direction; in thermal_thresholds_add()
195 thermal_notify_threshold_add(tz, temperature, direction); in thermal_thresholds_add()
203 int temperature, int direction) in thermal_thresholds_delete() argument
[all …]
/linux/drivers/media/platform/rockchip/rkisp1/
H A Drkisp1-common.c17 .direction = RKISP1_ISP_SD_SRC,
24 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
31 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
38 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
45 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
52 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
59 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
66 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
73 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
80 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
[all …]
/linux/tools/testing/selftests/net/forwarding/
H A Dmirror_gre_lib.sh41 local direction=$1; shift
50 mirror_install $swp1 $direction $tundev "matchall"
53 mirror_uninstall $swp1 $direction
55 log_test "$direction $what"
61 local direction=$1; shift
71 mirror_install $swp1 $direction $tundev "matchall"
82 mirror_uninstall $swp1 $direction
84 log_test "$direction $what"
107 local direction=$1; shift
112 full_test_span_gre_dir_ips "$tundev" "$direction" "$forward_type" \
[all …]
H A Dmirror_vlan.sh64 local direction=$1; shift
70 mirror_install $swp1 $direction $swp3.555 "matchall"
72 mirror_uninstall $swp1 $direction
74 log_test "$direction mirror to vlan"
85 local direction=$1; shift
91 mirror_install $swp1 $direction $swp3.555 "matchall"
94 mirror_uninstall $swp1 $direction
96 log_test "$direction mirror tagged to vlan"
H A Dmirror_gre.sh65 local direction=$1; shift
68 case "$direction" in
77 mirror_install $swp1 $direction $tundev "matchall"
83 mirror_uninstall $swp1 $direction
85 log_test "$direction $what: envelope MAC"
/linux/sound/soc/sdw_utils/
H A Dsoc_sdw_utils.c82 .direction = {true, false},
96 .direction = {false, true},
105 .direction = {true, true},
126 .direction = {true, true},
140 .direction = {false, true},
149 .direction = {true, true},
170 .direction = {true, true},
184 .direction = {false, true},
193 .direction = {true, true},
213 .direction
[all...]
/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_pcie.h84 * @direction: DMA direction
90 int direction; member
117 * @direction: Data direction
122 size_t size, dma_addr_t *mapping, int direction);
129 * @direction: Data direction
132 dma_addr_t mapping, int direction);
140 * @direction: DMA data direction
147 int direction, size_t headroom);
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_dcb.c56 * @direction: Configuring either Tx or Rx
64 int max_frame, u8 direction) in ixgbe_dcb_calculate_tc_credits() argument
85 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits()
86 bw_percent = dcb_config->bw_percentage[direction][p->bwg_id]; in ixgbe_dcb_calculate_tc_credits()
107 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits()
108 bw_percent = dcb_config->bw_percentage[direction][p->bwg_id]; in ixgbe_dcb_calculate_tc_credits()
140 if (direction == DCB_TX_CONFIG) { in ixgbe_dcb_calculate_tc_credits()
173 void ixgbe_dcb_unpack_refill(struct ixgbe_dcb_config *cfg, int direction, in ixgbe_dcb_unpack_refill() argument
180 refill[tc] = tc_config[tc].path[direction].data_credits_refill; in ixgbe_dcb_unpack_refill()
192 void ixgbe_dcb_unpack_bwgid(struct ixgbe_dcb_config *cfg, int direction, in ixgbe_dcb_unpack_bwgid() argument
[all …]
/linux/sound/soc/sof/
H A Dcompress.c71 sof_set_transferred_bytes(sstream, spcm->stream[cstream->direction].posn.host_posn, in snd_sof_compr_fragment_elapsed()
75 schedule_work(&spcm->stream[cstream->direction].period_elapsed_work); in snd_sof_compr_fragment_elapsed()
84 int dir = cstream->direction; in create_page_table()
114 dir = cstream->direction; in sof_compr_open()
147 stream.comp_id = spcm->stream[cstream->direction].comp_id; in sof_compr_free()
149 if (spcm->prepared[cstream->direction]) { in sof_compr_free()
152 spcm->prepared[cstream->direction] = false; in sof_compr_free()
155 cancel_work_sync(&spcm->stream[cstream->direction].period_elapsed_work); in sof_compr_free()
156 spcm->stream[cstream->direction].cstream = NULL; in sof_compr_free()
224 pcm->comp_id = spcm->stream[cstream->direction] in sof_compr_set_params()
[all...]
/linux/drivers/gpio/
H A Dgpio-reg.c3 * gpio-reg: single register individually fixed-direction GPIOs
24 u32 direction; member
37 return r->direction & BIT(offset) ? GPIO_LINE_DIRECTION_IN : in gpio_reg_get_direction()
46 if (r->direction & BIT(offset)) in gpio_reg_direction_output()
57 return r->direction & BIT(offset) ? 0 : -ENOTSUPP; in gpio_reg_direction_input()
84 if (r->direction & mask) { in gpio_reg_get()
128 * @direction: bitmask of fixed direction, one per GPIO signal, 1 = in
144 int base, int num, const char *label, u32 direction, u32 def_out, in gpio_reg_init() argument
172 r->direction = direction; in gpio_reg_init()
/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_ktls.c19 enum tls_offload_ctx_dir direction, in fun_ktls_add() argument
35 if (direction != TLS_OFFLOAD_CTX_DIR_TX) in fun_ktls_add()
64 tx_ctx = tls_driver_ctx(sk, direction); in fun_ktls_add()
73 enum tls_offload_ctx_dir direction) in fun_ktls_del() argument
79 if (direction != TLS_OFFLOAD_CTX_DIR_TX) in fun_ktls_del()
82 tx_ctx = __tls_driver_ctx(tls_ctx, direction); in fun_ktls_del()
96 u8 *rcd_sn, enum tls_offload_ctx_dir direction) in fun_ktls_resync() argument
103 if (direction != TLS_OFFLOAD_CTX_DIR_TX) in fun_ktls_resync()
106 tx_ctx = tls_driver_ctx(sk, direction); in fun_ktls_resync()
/linux/Documentation/devicetree/bindings/input/
H A Dpwm-vibrator.yaml17 The binding supports an optional direction PWM channel, that can be
28 - const: direction
39 direction-duty-cycle-ns:
41 Duty cycle of the direction PWM channel in nanoseconds,
57 pwm-names = "enable", "direction";
58 direction-duty-cycle-ns = <1000000000>;
/linux/sound/hda/common/
H A Dhda_local.h46 #define HDA_CODEC_VOLUME_IDX(xname, xcidx, nid, xindex, direction) \ argument
47 HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, 3, xindex, direction, 0)
49 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument
50 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction, 0)
52 #define HDA_CODEC_VOLUME(xname, nid, xindex, direction) \ argument
53 HDA_CODEC_VOLUME_MONO(xname, nid, 3, xindex, direction)
55 #define HDA_CODEC_VOLUME_MIN_MUTE(xname, nid, xindex, direction) \ argument
56 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, 3, xindex, direction, \
59 #define HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
65 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
67 HDA_CODEC_MUTE_IDX(xname,xcidx,nid,xindex,direction) global() argument
70 HDA_CODEC_MUTE_MONO(xname,nid,channel,xindex,direction) global() argument
73 HDA_CODEC_MUTE(xname,nid,xindex,direction) global() argument
77 HDA_CODEC_MUTE_BEEP_MONO_IDX(xname,xcidx,nid,channel,xindex,direction) global() argument
90 HDA_CODEC_MUTE_BEEP_MONO(xname,nid,channel,xindex,direction) global() argument
93 HDA_CODEC_MUTE_BEEP(xname,nid,xindex,direction) global() argument
[all...]
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_mgmt.c120 * @direction: the direction of the message
129 enum mgmt_direction_type direction, in prepare_header() argument
141 HINIC_MSG_HEADER_SET(direction, DIRECTION) | in prepare_header()
195 * @direction: the direction of the original message
204 enum mgmt_direction_type direction, in send_msg_to_mgmt() argument
213 if (direction == MGMT_RESP) { in send_msg_to_mgmt()
215 direction, cmd, resp_msg_id); in send_msg_to_mgmt()
219 direction, cmd, msg_id); in send_msg_to_mgmt()
239 * @direction: the direction of the original message
249 enum mgmt_direction_type direction, in msg_to_mgmt_sync() argument
[all …]
/linux/drivers/iio/buffer/
H A Dindustrialio-triggered-buffer.c22 * @direction: Direction of the data stream (in/out).
42 enum iio_buffer_direction direction, in iio_triggered_buffer_setup_ext() argument
83 buffer->direction = direction; in iio_triggered_buffer_setup_ext()
121 enum iio_buffer_direction direction, in devm_iio_triggered_buffer_setup_ext() argument
127 ret = iio_triggered_buffer_setup_ext(indio_dev, h, thread, direction, in devm_iio_triggered_buffer_setup_ext()
/linux/drivers/input/
H A Dff-memless.c211 * Only left/right direction should be used (under/over 0x8000) for
212 * forward/reverse motor direction (to keep calculation fast & simple).
214 static u16 ml_calculate_direction(u16 direction, u16 force, in ml_calculate_direction() argument
220 return direction; in ml_calculate_direction()
221 return (((u32)(direction >> 1) * force + in ml_calculate_direction()
252 i = new->direction * 360 / 0xffff; in ml_combine_effects()
274 effect->direction = ml_calculate_direction( in ml_combine_effects()
275 effect->direction, in ml_combine_effects()
277 new->direction, strong); in ml_combine_effects()
279 effect->direction = ml_calculate_direction( in ml_combine_effects()
[all …]
/linux/arch/powerpc/include/asm/
H A Diommu.h42 * When called with direction==DMA_NONE, it is equal to clear().
48 enum dma_data_direction direction,
52 * Exchanges existing TCE with new TCE plus direction bits;
53 * returns old TCE and DMA direction mask.
59 enum dma_data_direction *direction);
218 enum dma_data_direction *direction);
222 enum dma_data_direction *direction);
264 enum dma_data_direction direction,
269 enum dma_data_direction direction,
280 enum dma_data_direction direction,
[all …]
/linux/drivers/iio/imu/
H A Dadis_trigger.c31 unsigned long direction = adis->irq_flag & IRQF_TRIGGER_MASK; in adis_validate_irq_flag() local
45 if (direction == IRQF_TRIGGER_NONE) { in adis_validate_irq_flag()
48 } else if (direction != IRQF_TRIGGER_RISING && in adis_validate_irq_flag()
49 direction != IRQF_TRIGGER_FALLING && !adis->data->has_fifo) { in adis_validate_irq_flag()
53 } else if (direction != IRQF_TRIGGER_HIGH && in adis_validate_irq_flag()
54 direction != IRQF_TRIGGER_LOW && adis->data->has_fifo) { in adis_validate_irq_flag()
/linux/drivers/dma-buf/
H A Dudmabuf.c132 enum dma_data_direction direction) in get_sg_table() argument
148 ret = dma_map_sgtable(dev, sg, direction, DMA_ATTR_SKIP_CPU_SYNC); in get_sg_table()
161 enum dma_data_direction direction) in put_sg_table() argument
163 dma_unmap_sgtable(dev, sg, direction, DMA_ATTR_SKIP_CPU_SYNC); in put_sg_table()
169 enum dma_data_direction direction) in map_udmabuf() argument
171 return get_sg_table(at->dev, at->dmabuf, direction); in map_udmabuf()
176 enum dma_data_direction direction) in unmap_udmabuf() argument
178 return put_sg_table(at->dev, sg, direction); in unmap_udmabuf()
223 enum dma_data_direction direction) in begin_cpu_udmabuf() argument
229 ubuf->sg = get_sg_table(dev, buf, direction); in begin_cpu_udmabuf()
[all …]
/linux/drivers/media/dvb-frontends/
H A Ddibx000_common.h243 /* mask, direction and value are used specify which GPIO to change GPIO0
245 * mask is used for the direction and the value. Direction == 1 is OUT,
246 * 0 == IN. For direction "OUT" value is either 1 or 0, for direction IN
250 * used to do the PWM. Direction gives the PWModulator to be used.
254 u32 direction; member
/linux/arch/sparc/kernel/
H A Diommu.c264 size_t sz, enum dma_data_direction direction, in dma_4u_map_phys() argument
288 if (unlikely(direction == DMA_NONE)) in dma_4u_map_phys()
312 if (direction != DMA_TO_DEVICE) in dma_4u_map_phys()
332 enum dma_data_direction direction) in strbuf_flush() argument
375 if (direction == DMA_TO_DEVICE) in strbuf_flush()
397 size_t sz, enum dma_data_direction direction, in dma_4u_unmap_phys() argument
405 if (unlikely(direction == DMA_NONE)) { in dma_4u_unmap_phys()
430 npages, direction); in dma_4u_unmap_phys()
443 int nelems, enum dma_data_direction direction, in dma_4u_map_sg() argument
456 BUG_ON(direction == DMA_NONE); in dma_4u_map_sg()
[all …]
/linux/sound/virtio/
H A Dvirtio_chmap.c92 switch (info->direction) { in virtsnd_chmap_parse_cfg()
101 "chmap #%u: unknown direction (%u)\n", i, in virtsnd_chmap_parse_cfg()
102 info->direction); in virtsnd_chmap_parse_cfg()
115 * @direction: PCM stream direction (SNDRV_PCM_STREAM_XXX).
121 static int virtsnd_chmap_add_ctls(struct snd_pcm *pcm, int direction, in virtsnd_chmap_add_ctls() argument
131 return snd_pcm_add_chmap_ctls(pcm, direction, vs->chmaps, max_channels, in virtsnd_chmap_add_ctls()
179 if (info->direction == VIRTIO_SND_D_OUTPUT) in virtsnd_chmap_build_devs()
/linux/include/dt-bindings/sound/
H A Dcs35l45.h25 * - gpio-dir : GPIO pin direction. Valid only when 'gpio-ctrl'
57 * 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir'
58 * 2 = Pin acts as MDSYNC, direction controlled by MDSYNC
63 * 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir'
72 * 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir'
/linux/drivers/staging/sm750fb/
H A Dsm750_accel.c143 unsigned int direction, de_ctrl; in sm750_hw_copyarea() local
146 direction = LEFT_TO_RIGHT; in sm750_hw_copyarea()
147 /* Direction of ROP2 operation: 1 = Left to Right, (-1) = Right to Left */ in sm750_hw_copyarea()
151 /* Determine direction of operation */ in sm750_hw_copyarea()
163 direction = BOTTOM_TO_TOP; in sm750_hw_copyarea()
175 direction = TOP_TO_BOTTOM; in sm750_hw_copyarea()
188 direction = RIGHT_TO_LEFT; in sm750_hw_copyarea()
200 direction = LEFT_TO_RIGHT; in sm750_hw_copyarea()
205 if ((direction == BOTTOM_TO_TOP) || (direction == RIGHT_TO_LEFT)) { in sm750_hw_copyarea()
268 ((direction == RIGHT_TO_LEFT) ? DE_CONTROL_DIRECTION : 0) | in sm750_hw_copyarea()
/linux/drivers/staging/greybus/
H A Dgpio.c24 direction: 1, /* 0 = output, 1 = input */ member
114 u8 direction; in gb_gpio_get_direction_operation() local
123 direction = response.direction; in gb_gpio_get_direction_operation()
124 if (direction && direction != 1) { in gb_gpio_get_direction_operation()
125 dev_warn(dev, "gpio %u direction was %u (should be 0 or 1)\n", in gb_gpio_get_direction_operation()
126 which, direction); in gb_gpio_get_direction_operation()
128 ggc->lines[which].direction = direction ? 1 : 0; in gb_gpio_get_direction_operation()
142 ggc->lines[which].direction = 1; in gb_gpio_direction_in_operation()
157 ggc->lines[which].direction = 0; in gb_gpio_direction_out_operation()
424 return ggc->lines[which].direction ? 1 : 0; in gb_gpio_get_direction()

12345678910>>...67