Searched refs:mode (Results 276 - 300 of 6117) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/thermal/qcom/
H A Dtsens-v0_1.c30 .mode = { 0, 29, 1 },
46 .mode = { 1, 30 },
68 .mode = { 4, 30, 1 },
90 int mode, ret; local
106 mode = tsens_read_calibration_legacy(priv, &tsens_8916_nvmem,
110 compute_intercept_slope(priv, p1, p2, mode);
117 static void fixup_8974_points(int mode, u32 *p1, u32 *p2) argument
121 if (mode == NO_PT_CALIB) {
150 int ret, mode; local
158 mode
174 int mode, ret; local
[all...]
/linux-master/drivers/gpu/drm/pl111/
H A Dpl111_display.c52 const struct drm_display_mode *mode)
63 bw = mode->clock * 1000ULL; /* In Hz */
64 bw = bw * mode->hdisplay * mode->vdisplay * cpp;
65 bw = div_u64(bw, mode->htotal * mode->vtotal);
73 mode->hdisplay, mode->vdisplay,
74 mode->clock * 1000, cpp, bw);
79 mode
51 pl111_mode_valid(struct drm_simple_display_pipe *pipe, const struct drm_display_mode *mode) argument
89 const struct drm_display_mode *mode = &cstate->mode; local
127 const struct drm_display_mode *mode = &cstate->mode; local
[all...]
/linux-master/drivers/gpu/drm/tilcdc/
H A Dtilcdc_crtc.c77 end = start + (crtc->mode.vdisplay * fb->pitches[0]);
113 /* Set dma load mode for palette loading only. */
213 /* mode.clock is in KHz, set_rate wants parameter in Hz */
214 pclk_rate = crtc->mode.clock * 1000;
254 DBG("lcd_clk=%u, mode clock=%d, div=%u",
255 tilcdc_crtc->lcd_fck_rate, crtc->mode.clock, clkdiv);
267 static uint tilcdc_mode_hvtotal(const struct drm_display_mode *mode) argument
269 return (uint) div_u64(1000llu * mode->htotal * mode->vtotal,
270 mode
280 struct drm_display_mode *mode = &crtc->state->adjusted_mode; local
641 tilcdc_crtc_mode_fixup(struct drm_crtc *crtc, const struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) argument
771 tilcdc_crtc_mode_valid(struct drm_crtc *crtc, const struct drm_display_mode *mode) argument
[all...]
/linux-master/fs/
H A Dopen.c246 int vfs_fallocate(struct file *file, int mode, loff_t offset, loff_t len) argument
254 /* Return error if mode is not supported */
255 if (mode & ~FALLOC_FL_SUPPORTED_MASK)
259 if ((mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE)) ==
264 if ((mode & FALLOC_FL_PUNCH_HOLE) &&
265 !(mode & FALLOC_FL_KEEP_SIZE))
269 if ((mode & FALLOC_FL_COLLAPSE_RANGE) &&
270 (mode & ~FALLOC_FL_COLLAPSE_RANGE))
274 if ((mode & FALLOC_FL_INSERT_RANGE) &&
275 (mode
347 ksys_fallocate(int fd, int mode, loff_t offset, loff_t len) argument
464 do_faccessat(int dfd, const char __user *filename, int mode, int flags) argument
633 chmod_common(const struct path *path, umode_t mode) argument
663 vfs_fchmod(struct file *file, umode_t mode) argument
681 do_fchmodat(int dfd, const char __user *filename, umode_t mode, unsigned int flags) argument
1130 dentry_create(const struct path *path, int flags, umode_t mode, const struct cred *cred) argument
1190 build_open_how(int flags, umode_t mode) argument
1344 file_open_name(struct filename *name, int flags, umode_t mode) argument
1365 filp_open(const char *filename, int flags, umode_t mode) argument
1378 file_open_root(const struct path *root, const char *filename, int flags, umode_t mode) argument
1418 do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode) argument
[all...]
/linux-master/drivers/tty/serial/
H A Dsuncore.c87 const char *mode, *s; local
88 char mode_prop[] = "ttyX-mode";
95 mode = of_get_property(uart_dp,
97 if (!mode)
98 mode = "115200,8,n,1,-";
100 mode = "9600,8,n,1,-";
112 mode = of_get_property(dp, mode_prop, NULL);
113 if (!mode)
114 mode = "9600,8,n,1,-";
120 s = mode;
[all...]
/linux-master/tools/bpf/bpftool/
H A Dnetlink_dumper.c15 const char *mode,
23 NET_DUMP_STR("mode", " %s", mode);
33 unsigned char mode; local
41 mode = libbpf_nla_getattr_u8(tb[IFLA_XDP_ATTACHED]);
42 if (mode == XDP_ATTACHED_NONE)
50 if (mode == XDP_ATTACHED_MULTI) {
60 } else if (mode == XDP_ATTACHED_DRV) {
62 } else if (mode == XDP_ATTACHED_SKB) {
64 } else if (mode
14 xdp_dump_prog_id(struct nlattr **tb, int attr, const char *mode, bool new_json_object) argument
[all...]
/linux-master/drivers/leds/
H A Dleds-netxbig.c42 enum netxbig_led_mode mode; member in struct:netxbig_led_timer
115 enum netxbig_led_mode mode; member in struct:netxbig_led_data
120 static int netxbig_led_get_timer_mode(enum netxbig_led_mode *mode, argument
131 *mode = timer[i].mode;
144 enum netxbig_led_mode mode; local
148 /* Look for a LED mode with the requested timer frequency. */
149 ret = netxbig_led_get_timer_mode(&mode, *delay_on, *delay_off,
154 mode_val = led_dat->mode_val[mode];
161 led_dat->mode
173 enum netxbig_led_mode mode; local
215 enum netxbig_led_mode mode; local
554 int mode; local
[all...]
H A Dleds-lp5562.c50 #define LP5562_ENG1_IS_LOADING(mode) \
51 ((mode & LP5562_MODE_ENG1_M) == LP5562_LOAD_ENG1)
52 #define LP5562_ENG2_IS_LOADING(mode) \
53 ((mode & LP5562_MODE_ENG2_M) == LP5562_LOAD_ENG2)
54 #define LP5562_ENG3_IS_LOADING(mode) \
55 ((mode & LP5562_MODE_ENG3_M) == LP5562_LOAD_ENG3)
104 /* operation mode change needs to be longer than 153 us */
156 u8 mode; local
172 * operation mode and enable register should updated at the same time
175 ret = lp55xx_read(chip, LP5562_REG_OP_MODE, &mode);
356 lp5562_run_predef_led_pattern(struct lp55xx_chip *chip, int mode) argument
413 unsigned long mode; local
[all...]
H A Dleds-lp8501.c71 #define LP8501_ENG1_IS_LOADING(mode) \
72 ((mode & LP8501_MODE_ENG1_M) == LP8501_LOAD_ENG1)
73 #define LP8501_ENG2_IS_LOADING(mode) \
74 ((mode & LP8501_MODE_ENG2_M) == LP8501_LOAD_ENG2)
75 #define LP8501_ENG3_IS_LOADING(mode) \
76 ((mode & LP8501_MODE_ENG3_M) == LP8501_LOAD_ENG3)
161 u8 mode; local
173 * operation mode and enable register should updated at the same time
176 ret = lp55xx_read(chip, LP8501_REG_OP_MODE, &mode);
184 /* change operation mode t
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Ddebugfs.c8 switch (ldev->mode) {
23 char *mode = NULL; local
28 mode = get_str_mode_type(ldev);
30 if (!mode)
32 seq_printf(file, "%s\n", mode);
42 char *mode; local
47 mode = mlx5_get_str_port_sel_mode(ldev->mode, ldev->mode_flags);
54 seq_printf(file, "%s\n", mode);
/linux-master/net/
H A Dsysctl_net.c41 /* Return standard mode bits for table entry. */
49 int mode = (table->mode >> 6) & 7; local
50 return (mode << 6) | (mode << 3) | mode;
53 return table->mode;
135 pr_debug(" procname=%s mode=%o proc_handler=%ps data=%p\n",
136 ent->procname, ent->mode, ent->proc_handler, ent->data);
139 if ((ent->mode
[all...]
/linux-master/drivers/phy/starfive/
H A Dphy-jh7110-usb.c27 enum phy_mode mode; member in struct:jh7110_usb2_phy
34 /* Host mode enable the LS speed keep-alive signal */
45 enum phy_mode mode, int submode)
49 switch (mode) {
58 if (mode != phy->mode) {
59 dev_dbg(&_phy->dev, "Changing phy to %d\n", mode);
60 phy->mode = mode;
61 usb2_set_ls_keepalive(phy, (mode !
44 usb2_phy_set_mode(struct phy *_phy, enum phy_mode mode, int submode) argument
[all...]
/linux-master/lib/
H A Dtest_sysctl.c79 .mode = 0644,
88 .mode = 0644,
95 .mode = 0644,
102 .mode = 0444,
109 .mode = 0644,
118 .mode = 0644,
125 .mode = 0644,
132 .mode = 0644,
185 .mode = 0644,
/linux-master/drivers/gpu/drm/msm/disp/mdp4/
H A Dmdp4_lcdc_encoder.c202 struct drm_display_mode *mode,
212 mode = adjusted_mode;
214 DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode));
216 mdp4_lcdc_encoder->pixclock = mode->clock * 1000;
221 if (mode->flags & DRM_MODE_FLAG_NHSYNC)
223 if (mode->flags & DRM_MODE_FLAG_NVSYNC)
229 hsync_start_x = (mode->htotal - mode->hsync_start);
230 hsync_end_x = mode
201 mdp4_lcdc_encoder_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) argument
[all...]
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_panel.c72 * With VRR always pick a mode with equal/higher than requested
88 const struct drm_display_mode *mode)
91 int vrefresh = drm_mode_vrefresh(mode);
104 static bool is_alt_drrs_mode(const struct drm_display_mode *mode, argument
107 return drm_mode_match(mode, preferred_mode,
111 mode->clock != preferred_mode->clock;
114 static bool is_alt_fixed_mode(const struct drm_display_mode *mode, argument
120 return (mode->flags & ~sync_flags) == (preferred_mode->flags & ~sync_flags) &&
121 mode->hdisplay == preferred_mode->hdisplay &&
122 mode
87 intel_panel_fixed_mode(struct intel_connector *connector, const struct drm_display_mode *mode) argument
168 struct drm_display_mode *mode; local
256 struct drm_display_mode *mode, *next; local
305 struct drm_display_mode *mode, *next; local
351 const struct drm_display_mode *mode; local
365 const struct drm_display_mode *mode; local
694 intel_panel_mode_valid(struct intel_connector *connector, const struct drm_display_mode *mode) argument
[all...]
/linux-master/fs/vboxsf/
H A Dutils.c54 umode_t mode; local
58 #define mode_set(r) ((attr->mode & (SHFL_UNIX_##r)) ? (S_##r) : 0)
60 mode = mode_set(IRUSR);
61 mode |= mode_set(IWUSR);
62 mode |= mode_set(IXUSR);
64 mode |= mode_set(IRGRP);
65 mode |= mode_set(IWGRP);
66 mode |= mode_set(IXGRP);
68 mode |= mode_set(IROTH);
69 mode |
[all...]
/linux-master/drivers/gpu/drm/sun4i/
H A Dsun4i_rgb.c63 const struct drm_display_mode *mode)
67 u32 hsync = mode->hsync_end - mode->hsync_start;
68 u32 vsync = mode->vsync_end - mode->vsync_start;
69 unsigned long long rate = mode->clock * 1000;
81 if ((mode->hdisplay < 1) || (mode->htotal < 1))
84 if ((mode->hdisplay > 0x7ff) || (mode
62 sun4i_rgb_mode_valid(struct drm_encoder *crtc, const struct drm_display_mode *mode) argument
[all...]
/linux-master/drivers/gpu/drm/panel/
H A Dpanel-arm-versatile.c78 * @mode: the DRM display mode for this panel
80 struct drm_display_mode mode; member in struct:versatile_panel_type
136 .mode = {
159 .mode = {
181 .mode = {
204 .mode = {
263 struct drm_display_mode *mode; local
269 mode = drm_mode_duplicate(connector->dev, &vpanel->panel_type->mode);
[all...]
/linux-master/drivers/video/fbdev/core/
H A Dfbcvt.c260 struct fb_videomode *mode)
262 mode->refresh = cvt->f_refresh;
263 mode->pixclock = KHZ2PICOS(cvt->pixclock/1000);
264 mode->left_margin = cvt->h_back_porch;
265 mode->right_margin = cvt->h_front_porch;
266 mode->hsync_len = cvt->hsync;
267 mode->upper_margin = cvt->v_back_porch;
268 mode->lower_margin = cvt->v_front_porch;
269 mode->vsync_len = cvt->vsync;
271 mode
259 fb_cvt_convert_to_mode(struct fb_cvt_data *cvt, struct fb_videomode *mode) argument
294 fb_find_mode_cvt(struct fb_videomode *mode, int margins, int rb) argument
[all...]
/linux-master/drivers/gpu/drm/virtio/
H A Dvirtgpu_display.c93 crtc->mode.hdisplay,
94 crtc->mode.vdisplay, 0, 0);
147 struct drm_display_mode *mode,
164 struct drm_display_mode *mode = NULL; local
180 DRM_DEBUG("add mode: %dx%d\n", width, height);
181 mode = drm_cvt_mode(connector->dev, width, height, 60,
183 if (!mode)
185 mode->type |= DRM_MODE_TYPE_PREFERRED;
186 drm_mode_probed_add(connector, mode);
194 struct drm_display_mode *mode)
146 virtio_gpu_enc_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) argument
193 virtio_gpu_conn_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) argument
[all...]
/linux-master/fs/hostfs/
H A Dhostfs_user.c24 p->mode = buf->st_mode;
58 int mode = 0; local
61 mode = R_OK;
63 mode |= W_OK;
65 mode |= X_OK;
66 if (access(path, mode) != 0)
73 int mode = 0, fd; local
76 mode = O_RDONLY;
78 mode = O_WRONLY;
80 mode
185 file_create(char *name, int mode) argument
298 do_mkdir(const char *file, int mode) argument
318 do_mknod(const char *file, int mode, unsigned int major, unsigned int minor) argument
[all...]
/linux-master/drivers/scsi/aic94xx/
H A Daic94xx_dump.c32 u32 mode; member in struct:lseq_cio_regs
227 /* can also be used for MD when the register is mode aware already */
267 int mode; local
300 for (mode = 0; mode < 9; mode++)
301 PRINT_MREG_16bit(asd_ha, mode, MnSCBPTR, CMnSCBPTR(mode));
304 for (mode = 0; mode <
476 int mode; local
[all...]
/linux-master/net/netfilter/
H A Dxt_HL.c37 switch (info->mode) {
77 switch (info->mode) {
105 if (info->mode > IPT_TTL_MAXMODE)
107 if (info->mode != IPT_TTL_SET && info->ttl == 0)
116 if (info->mode > IP6T_HL_MAXMODE)
118 if (info->mode != IP6T_HL_SET && info->hop_limit == 0)
/linux-master/include/linux/
H A Dvmw_vmci_api.h65 const void *buf, size_t buf_size, int mode);
67 void *buf, size_t buf_size, int mode);
69 int mode);
71 struct msghdr *msg, size_t iov_size, int mode);
73 struct msghdr *msg, size_t iov_size, int mode);
75 int mode);
/linux-master/drivers/gpu/drm/
H A Ddrm_encoder_slave.c128 void drm_i2c_encoder_dpms(struct drm_encoder *encoder, int mode) argument
130 get_slave_funcs(encoder)->dpms(encoder, mode);
135 const struct drm_display_mode *mode,
141 return get_slave_funcs(encoder)->mode_fixup(encoder, mode, adjusted_mode);
158 struct drm_display_mode *mode,
161 get_slave_funcs(encoder)->mode_set(encoder, mode, adjusted_mode);
134 drm_i2c_encoder_mode_fixup(struct drm_encoder *encoder, const struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) argument
157 drm_i2c_encoder_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) argument

Completed in 420 milliseconds

<<11121314151617181920>>