Home
last modified time | relevance | path

Searched refs:sdp (Results 1 – 25 of 79) sorted by relevance

1234

/Linux-v4.19/fs/gfs2/
Dlog.c49 unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct, in gfs2_struct2blk() argument
56 first = (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_log_descriptor)) / ssize; in gfs2_struct2blk()
59 second = (sdp->sd_sb.sb_bsize - in gfs2_struct2blk()
93 static int gfs2_ail1_start_one(struct gfs2_sbd *sdp, in gfs2_ail1_start_one() argument
97 __releases(&sdp->sd_ail_lock) in gfs2_ail1_start_one()
98 __acquires(&sdp->sd_ail_lock) in gfs2_ail1_start_one()
108 gfs2_assert(sdp, bd->bd_tr == tr); in gfs2_ail1_start_one()
112 gfs2_io_error_bh(sdp, bh); in gfs2_ail1_start_one()
128 spin_unlock(&sdp->sd_ail_lock); in gfs2_ail1_start_one()
130 spin_lock(&sdp->sd_ail_lock); in gfs2_ail1_start_one()
[all …]
Dops_fstype.c68 struct gfs2_sbd *sdp; in init_sbd() local
71 sdp = kzalloc(sizeof(struct gfs2_sbd), GFP_KERNEL); in init_sbd()
72 if (!sdp) in init_sbd()
75 sb->s_fs_info = sdp; in init_sbd()
76 sdp->sd_vfs = sb; in init_sbd()
77 sdp->sd_lkstats = alloc_percpu(struct gfs2_pcpu_lkstats); in init_sbd()
78 if (!sdp->sd_lkstats) { in init_sbd()
79 kfree(sdp); in init_sbd()
83 set_bit(SDF_NOJOURNALID, &sdp->sd_flags); in init_sbd()
84 gfs2_tune_init(&sdp->sd_tune); in init_sbd()
[all …]
Dsys.c42 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_show() local
44 return a->show ? a->show(sdp, buf) : 0; in gfs2_attr_show()
50 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_store() local
52 return a->store ? a->store(sdp, buf, len) : len; in gfs2_attr_store()
63 static ssize_t id_show(struct gfs2_sbd *sdp, char *buf) in id_show() argument
66 MAJOR(sdp->sd_vfs->s_dev), MINOR(sdp->sd_vfs->s_dev)); in id_show()
69 static ssize_t fsname_show(struct gfs2_sbd *sdp, char *buf) in fsname_show() argument
71 return snprintf(buf, PAGE_SIZE, "%s\n", sdp->sd_fsname); in fsname_show()
74 static ssize_t uuid_show(struct gfs2_sbd *sdp, char *buf) in uuid_show() argument
76 struct super_block *s = sdp->sd_vfs; in uuid_show()
[all …]
Dutil.c33 void gfs2_assert_i(struct gfs2_sbd *sdp) in gfs2_assert_i() argument
35 fs_emerg(sdp, "fatal assertion failed\n"); in gfs2_assert_i()
38 int gfs2_lm_withdraw(struct gfs2_sbd *sdp, const char *fmt, ...) in gfs2_lm_withdraw() argument
40 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gfs2_lm_withdraw()
45 if (sdp->sd_args.ar_errors == GFS2_ERRORS_WITHDRAW && in gfs2_lm_withdraw()
46 test_and_set_bit(SDF_SHUTDOWN, &sdp->sd_flags)) in gfs2_lm_withdraw()
55 fs_err(sdp, "%pV", &vaf); in gfs2_lm_withdraw()
60 if (sdp->sd_args.ar_errors == GFS2_ERRORS_WITHDRAW) { in gfs2_lm_withdraw()
61 fs_err(sdp, "about to withdraw this file system\n"); in gfs2_lm_withdraw()
62 BUG_ON(sdp->sd_args.ar_debug); in gfs2_lm_withdraw()
[all …]
Dlog.h25 static inline void gfs2_log_lock(struct gfs2_sbd *sdp) in gfs2_log_lock() argument
26 __acquires(&sdp->sd_log_lock) in gfs2_log_lock()
28 spin_lock(&sdp->sd_log_lock); in gfs2_log_lock()
37 static inline void gfs2_log_unlock(struct gfs2_sbd *sdp) in gfs2_log_unlock() argument
38 __releases(&sdp->sd_log_lock) in gfs2_log_unlock()
40 spin_unlock(&sdp->sd_log_lock); in gfs2_log_unlock()
43 static inline void gfs2_log_pointers_init(struct gfs2_sbd *sdp, in gfs2_log_pointers_init() argument
46 if (++value == sdp->sd_jdesc->jd_blocks) { in gfs2_log_pointers_init()
49 sdp->sd_log_head = sdp->sd_log_tail = value; in gfs2_log_pointers_init()
54 struct gfs2_sbd *sdp; in gfs2_ordered_add_inode() local
[all …]
Dlops.c42 void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_pin() argument
50 gfs2_assert_withdraw(sdp, 0); in gfs2_pin()
52 gfs2_io_error_bh_wd(sdp, bh); in gfs2_pin()
57 spin_lock(&sdp->sd_ail_lock); in gfs2_pin()
60 spin_unlock(&sdp->sd_ail_lock); in gfs2_pin()
62 atomic_inc(&sdp->sd_log_pinned); in gfs2_pin()
74 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in maybe_release_space() local
81 if (sdp->sd_args.ar_discard) in maybe_release_space()
82 gfs2_rgrp_send_discards(sdp, rgd->rd_data0, bd->bd_bh, bi, 1, NULL); in maybe_release_space()
99 static void gfs2_unpin(struct gfs2_sbd *sdp, struct buffer_head *bh, in gfs2_unpin() argument
[all …]
Dsuper.c307 void gfs2_jindex_free(struct gfs2_sbd *sdp) in gfs2_jindex_free() argument
312 spin_lock(&sdp->sd_jindex_spin); in gfs2_jindex_free()
313 list_add(&list, &sdp->sd_jindex_list); in gfs2_jindex_free()
314 list_del_init(&sdp->sd_jindex_list); in gfs2_jindex_free()
315 sdp->sd_journals = 0; in gfs2_jindex_free()
316 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jindex_free()
345 struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid) in gfs2_jdesc_find() argument
349 spin_lock(&sdp->sd_jindex_spin); in gfs2_jdesc_find()
350 jd = jdesc_find_i(&sdp->sd_jindex_list, jid); in gfs2_jdesc_find()
351 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jdesc_find()
[all …]
Dquota.c88 static unsigned int gfs2_qd_hash(const struct gfs2_sbd *sdp, in gfs2_qd_hash() argument
93 h = jhash(&sdp, sizeof(struct gfs2_sbd *), 0); in gfs2_qd_hash()
118 struct gfs2_sbd *sdp; in gfs2_qd_dispose() local
122 sdp = qd->qd_gl->gl_name.ln_sbd; in gfs2_qd_dispose()
135 gfs2_assert_warn(sdp, !qd->qd_change); in gfs2_qd_dispose()
136 gfs2_assert_warn(sdp, !qd->qd_slot_count); in gfs2_qd_dispose()
137 gfs2_assert_warn(sdp, !qd->qd_bh_count); in gfs2_qd_dispose()
140 atomic_dec(&sdp->sd_quota_count); in gfs2_qd_dispose()
214 static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid) in qd_alloc() argument
223 qd->qd_sbd = sdp; in qd_alloc()
[all …]
Dutil.h31 void gfs2_assert_i(struct gfs2_sbd *sdp);
33 #define gfs2_assert(sdp, assertion) \ argument
36 gfs2_assert_i(sdp); \
42 int gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion,
45 #define gfs2_assert_withdraw(sdp, assertion) \ argument
46 ((likely(assertion)) ? 0 : gfs2_assert_withdraw_i((sdp), #assertion, \
50 int gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion,
53 #define gfs2_assert_warn(sdp, assertion) \ argument
54 ((likely(assertion)) ? 0 : gfs2_assert_warn_i((sdp), #assertion, \
58 int gfs2_consist_i(struct gfs2_sbd *sdp, int cluster_wide,
[all …]
Dlock_dlm.c283 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gdlm_put_lock() local
284 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gdlm_put_lock()
303 if (test_bit(SDF_SKIP_DLM_UNLOCK, &sdp->sd_flags) && in gdlm_put_lock()
497 static int sync_unlock(struct gfs2_sbd *sdp, struct dlm_lksb *lksb, char *name) in sync_unlock() argument
499 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in sync_unlock()
504 fs_err(sdp, "%s lkid %x error %d\n", in sync_unlock()
512 fs_err(sdp, "%s lkid %x status %d\n", in sync_unlock()
519 static int sync_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags, in sync_lock() argument
522 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in sync_lock()
533 fs_err(sdp, "%s lkid %x flags %x mode %d error %d\n", in sync_lock()
[all …]
Dtrans.c31 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, in gfs2_trans_begin() argument
40 if (!test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) in gfs2_trans_begin()
55 tr->tr_reserved += gfs2_struct2blk(sdp, revokes, in gfs2_trans_begin()
60 sb_start_intwrite(sdp->sd_vfs); in gfs2_trans_begin()
62 error = gfs2_log_reserve(sdp, tr->tr_reserved); in gfs2_trans_begin()
71 sb_end_intwrite(sdp->sd_vfs); in gfs2_trans_begin()
89 void gfs2_trans_end(struct gfs2_sbd *sdp) in gfs2_trans_end() argument
98 gfs2_log_release(sdp, tr->tr_reserved); in gfs2_trans_end()
101 sb_end_intwrite(sdp->sd_vfs); in gfs2_trans_end()
110 if (gfs2_assert_withdraw(sdp, (nbuf <= tr->tr_blocks) && in gfs2_trans_end()
[all …]
Dsuper.h17 extern void gfs2_lm_unmount(struct gfs2_sbd *sdp);
19 static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp) in gfs2_jindex_size() argument
22 spin_lock(&sdp->sd_jindex_spin); in gfs2_jindex_size()
23 x = sdp->sd_journals; in gfs2_jindex_size()
24 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jindex_size()
28 extern void gfs2_jindex_free(struct gfs2_sbd *sdp);
32 extern struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid);
35 extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename,
38 extern int gfs2_make_fs_rw(struct gfs2_sbd *sdp);
39 extern void gfs2_online_uevent(struct gfs2_sbd *sdp);
[all …]
Dglops.c58 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in __gfs2_ail_flush() local
64 gfs2_log_lock(sdp); in __gfs2_ail_flush()
65 spin_lock(&sdp->sd_ail_lock); in __gfs2_ail_flush()
75 gfs2_trans_add_revoke(sdp, bd); in __gfs2_ail_flush()
79 spin_unlock(&sdp->sd_ail_lock); in __gfs2_ail_flush()
80 gfs2_log_unlock(sdp); in __gfs2_ail_flush()
86 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_empty_gl() local
100 tr.tr_reserved = 1 + gfs2_struct2blk(sdp, tr.tr_revokes, sizeof(u64)); in gfs2_ail_empty_gl()
102 if (gfs2_log_reserve(sdp, tr.tr_reserved) < 0) in gfs2_ail_empty_gl()
109 gfs2_trans_end(sdp); in gfs2_ail_empty_gl()
[all …]
Drecovery.c311 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in foreach_descriptor() local
325 if (gfs2_meta_check(sdp, bh)) { in foreach_descriptor()
346 } else if (gfs2_metatype_check(sdp, bh, GFS2_METATYPE_LD)) { in foreach_descriptor()
377 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in clean_journal() local
379 sdp->sd_log_flush_head = head->lh_blkno; in clean_journal()
380 gfs2_replay_incr_blk(jd, &sdp->sd_log_flush_head); in clean_journal()
381 gfs2_write_log_header(sdp, jd, head->lh_sequence + 1, 0, in clean_journal()
387 static void gfs2_recovery_done(struct gfs2_sbd *sdp, unsigned int jid, in gfs2_recovery_done() argument
393 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gfs2_recovery_done()
400 kobject_uevent_env(&sdp->sd_kobj, KOBJ_CHANGE, envp); in gfs2_recovery_done()
[all …]
Dlops.h29 extern u64 gfs2_log_bmap(struct gfs2_sbd *sdp);
30 extern void gfs2_log_write(struct gfs2_sbd *sdp, struct page *page,
32 extern void gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page);
33 extern void gfs2_log_flush_bio(struct gfs2_sbd *sdp, int op, int op_flags);
34 extern void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh);
36 static inline unsigned int buf_limit(struct gfs2_sbd *sdp) in buf_limit() argument
40 limit = (sdp->sd_sb.sb_bsize - BUF_OFFSET) / sizeof(__be64); in buf_limit()
44 static inline unsigned int databuf_limit(struct gfs2_sbd *sdp) in databuf_limit() argument
48 limit = (sdp->sd_sb.sb_bsize - DATABUF_OFFSET) / (2 * sizeof(__be64)); in databuf_limit()
52 static inline void lops_before_commit(struct gfs2_sbd *sdp, in lops_before_commit() argument
[all …]
Daops.c100 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_writepage_common() local
105 if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) in gfs2_writepage_common()
182 struct gfs2_sbd *sdp = GFS2_SB(inode); in __gfs2_jdata_writepage() local
190 gfs2_page_add_databufs(ip, page, 0, sdp->sd_vfs->s_blocksize); in __gfs2_jdata_writepage()
208 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_jdata_writepage() local
211 if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) in gfs2_jdata_writepage()
235 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_writepages() local
245 set_bit(SDF_FORCE_AIL_FLUSH, &sdp->sd_flags); in gfs2_writepages()
268 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_write_jdata_pagevec() local
273 ret = gfs2_trans_begin(sdp, nrblocks, nrblocks); in gfs2_write_jdata_pagevec()
[all …]
Drgrp.c455 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_verify() local
475 fs_err(sdp, "free data mismatch: %u != %u\n", in gfs2_rgrp_verify()
483 fs_err(sdp, "used data mismatch: %u != %u\n", in gfs2_rgrp_verify()
490 fs_err(sdp, "used metadata mismatch: %u != %u\n", in gfs2_rgrp_verify()
512 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact) in gfs2_blk2rgrpd() argument
517 spin_lock(&sdp->sd_rindex_spin); in gfs2_blk2rgrpd()
518 n = sdp->sd_rindex_tree.rb_node; in gfs2_blk2rgrpd()
527 spin_unlock(&sdp->sd_rindex_spin); in gfs2_blk2rgrpd()
538 spin_unlock(&sdp->sd_rindex_spin); in gfs2_blk2rgrpd()
550 struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp) in gfs2_rgrpd_get_first() argument
[all …]
Dmeta_io.c116 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_getbuf() local
124 mapping = &sdp->sd_aspace; in gfs2_getbuf()
126 shift = PAGE_SHIFT - sdp->sd_sb.sb_bsize_shift; in gfs2_getbuf()
145 create_empty_buffers(page, sdp->sd_sb.sb_bsize, 0); in gfs2_getbuf()
153 map_bh(bh, sdp->sd_vfs, blkno); in gfs2_getbuf()
253 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_meta_read() local
257 if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) { in gfs2_meta_read()
296 gfs2_io_error_bh_wd(sdp, bh); in gfs2_meta_read()
313 int gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_meta_wait() argument
315 if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) in gfs2_meta_wait()
[all …]
Dbmap.c240 static void find_metapath(const struct gfs2_sbd *sdp, u64 block, in find_metapath() argument
247 mp->mp_list[i] = do_div(block, sdp->sd_inptrs); in find_metapath()
449 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_walk_metadata() local
456 factor *= sdp->sd_inptrs; in gfs2_walk_metadata()
492 factor *= sdp->sd_inptrs; in gfs2_walk_metadata()
516 do_div(factor, sdp->sd_inptrs); in gfs2_walk_metadata()
630 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_iomap_alloc() local
678 gfs2_trans_add_unrevoke(sdp, bn, n); in gfs2_iomap_alloc()
763 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_alloc_size() local
776 sdp->sd_inptrs : sdp->sd_diptrs; in gfs2_alloc_size()
[all …]
Dquota.h35 extern int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid);
37 extern int gfs2_quota_init(struct gfs2_sbd *sdp);
38 extern void gfs2_quota_cleanup(struct gfs2_sbd *sdp);
41 extern void gfs2_wake_up_statfs(struct gfs2_sbd *sdp);
46 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_quota_lock_check() local
50 if (sdp->sd_args.ar_quota == GFS2_QUOTA_OFF) in gfs2_quota_lock_check()
55 if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON) in gfs2_quota_lock_check()
Dglock.h125 int (*lm_mount) (struct gfs2_sbd *sdp, const char *table);
126 void (*lm_first_done) (struct gfs2_sbd *sdp);
127 void (*lm_recovery_result) (struct gfs2_sbd *sdp, unsigned int jid,
129 void (*lm_unmount) (struct gfs2_sbd *sdp);
130 void (*lm_withdraw) (struct gfs2_sbd *sdp);
182 extern int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number,
199 extern int gfs2_glock_nq_num(struct gfs2_sbd *sdp, u64 number,
237 extern void gfs2_gl_hash_clear(struct gfs2_sbd *sdp);
239 extern void gfs2_glock_thaw(struct gfs2_sbd *sdp);
246 extern int gfs2_create_debugfs_file(struct gfs2_sbd *sdp);
[all …]
/Linux-v4.19/kernel/rcu/
Dsrcutree.c97 struct srcu_data *sdp; in init_srcu_struct_nodes() local
137 WARN_ON_ONCE(ARRAY_SIZE(sdp->srcu_lock_count) != in init_srcu_struct_nodes()
138 ARRAY_SIZE(sdp->srcu_unlock_count)); in init_srcu_struct_nodes()
142 sdp = per_cpu_ptr(sp->sda, cpu); in init_srcu_struct_nodes()
143 spin_lock_init(&ACCESS_PRIVATE(sdp, lock)); in init_srcu_struct_nodes()
144 rcu_segcblist_init(&sdp->srcu_cblist); in init_srcu_struct_nodes()
145 sdp->srcu_cblist_invoking = false; in init_srcu_struct_nodes()
146 sdp->srcu_gp_seq_needed = sp->srcu_gp_seq; in init_srcu_struct_nodes()
147 sdp->srcu_gp_seq_needed_exp = sp->srcu_gp_seq; in init_srcu_struct_nodes()
148 sdp->mynode = &snp_first[cpu / levelspread[level]]; in init_srcu_struct_nodes()
[all …]
/Linux-v4.19/arch/sh/kernel/cpu/shmobile/
Dpm.c52 struct sh_sleep_data *sdp = onchip_mem; in sh_mobile_call_standby() local
56 standby_onchip_mem = (void *)(sdp + 1); in sh_mobile_call_standby()
86 struct sh_sleep_data *sdp; in sh_mobile_register_self_refresh() local
90 sdp = onchip_mem; in sh_mobile_register_self_refresh()
91 sdp->addr.stbcr = 0xa4150020; /* STBCR */ in sh_mobile_register_self_refresh()
92 sdp->addr.bar = 0xa4150040; /* BAR */ in sh_mobile_register_self_refresh()
93 sdp->addr.pteh = 0xff000000; /* PTEH */ in sh_mobile_register_self_refresh()
94 sdp->addr.ptel = 0xff000004; /* PTEL */ in sh_mobile_register_self_refresh()
95 sdp->addr.ttb = 0xff000008; /* TTB */ in sh_mobile_register_self_refresh()
96 sdp->addr.tea = 0xff00000c; /* TEA */ in sh_mobile_register_self_refresh()
[all …]
/Linux-v4.19/drivers/scsi/
Dsg.c196 static Sg_fd *sg_add_sfp(Sg_device * sdp);
209 #define sg_printk(prefix, sdp, fmt, a...) \ argument
210 sdev_prefix_printk(prefix, (sdp)->device, \
211 (sdp)->disk->disk_name, fmt, ##a)
251 open_wait(Sg_device *sdp, int flags) in open_wait() argument
256 while (sdp->open_cnt > 0) { in open_wait()
257 mutex_unlock(&sdp->open_rel_lock); in open_wait()
258 retval = wait_event_interruptible(sdp->open_wait, in open_wait()
259 (atomic_read(&sdp->detaching) || in open_wait()
260 !sdp->open_cnt)); in open_wait()
[all …]
Dsd.c160 struct scsi_device *sdp = sdkp->device; in cache_type_store() local
168 if (sdp->type != TYPE_DISK && sdp->type != TYPE_ZBC) in cache_type_store()
195 if (scsi_mode_sense(sdp, 0x08, 8, buffer, sizeof(buffer), SD_TIMEOUT, in cache_type_store()
207 if (scsi_mode_select(sdp, 1, sp, 8, buffer_data, len, SD_TIMEOUT, in cache_type_store()
222 struct scsi_device *sdp = sdkp->device; in manage_start_stop_show() local
224 return sprintf(buf, "%u\n", sdp->manage_start_stop); in manage_start_stop_show()
232 struct scsi_device *sdp = sdkp->device; in manage_start_stop_store() local
241 sdp->manage_start_stop = v; in manage_start_stop_store()
261 struct scsi_device *sdp = sdkp->device; in allow_restart_store() local
266 if (sdp->type != TYPE_DISK && sdp->type != TYPE_ZBC) in allow_restart_store()
[all …]

1234