Home
last modified time | relevance | path

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

1234

/Linux-v5.4/fs/gfs2/
Dlog.c46 unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct, in gfs2_struct2blk() argument
53 first = (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_log_descriptor)) / ssize; in gfs2_struct2blk()
56 second = (sdp->sd_sb.sb_bsize - in gfs2_struct2blk()
90 static int gfs2_ail1_start_one(struct gfs2_sbd *sdp, in gfs2_ail1_start_one() argument
94 __releases(&sdp->sd_ail_lock) in gfs2_ail1_start_one()
95 __acquires(&sdp->sd_ail_lock) in gfs2_ail1_start_one()
105 gfs2_assert(sdp, bd->bd_tr == tr); in gfs2_ail1_start_one()
110 &sdp->sd_flags)) { in gfs2_ail1_start_one()
111 gfs2_io_error_bh(sdp, bh); in gfs2_ail1_start_one()
127 spin_unlock(&sdp->sd_ail_lock); in gfs2_ail1_start_one()
[all …]
Dops_fstype.c65 void free_sbd(struct gfs2_sbd *sdp) in free_sbd() argument
67 if (sdp->sd_lkstats) in free_sbd()
68 free_percpu(sdp->sd_lkstats); in free_sbd()
69 kfree(sdp); in free_sbd()
74 struct gfs2_sbd *sdp; in init_sbd() local
77 sdp = kzalloc(sizeof(struct gfs2_sbd), GFP_KERNEL); in init_sbd()
78 if (!sdp) in init_sbd()
81 sdp->sd_vfs = sb; in init_sbd()
82 sdp->sd_lkstats = alloc_percpu(struct gfs2_pcpu_lkstats); in init_sbd()
83 if (!sdp->sd_lkstats) in init_sbd()
[all …]
Dutil.c31 void gfs2_assert_i(struct gfs2_sbd *sdp) in gfs2_assert_i() argument
33 fs_emerg(sdp, "fatal assertion failed\n"); in gfs2_assert_i()
36 int gfs2_lm_withdraw(struct gfs2_sbd *sdp, const char *fmt, ...) in gfs2_lm_withdraw() argument
38 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gfs2_lm_withdraw()
43 if (sdp->sd_args.ar_errors == GFS2_ERRORS_WITHDRAW && in gfs2_lm_withdraw()
44 test_and_set_bit(SDF_WITHDRAWN, &sdp->sd_flags)) in gfs2_lm_withdraw()
53 fs_err(sdp, "%pV", &vaf); in gfs2_lm_withdraw()
58 if (sdp->sd_args.ar_errors == GFS2_ERRORS_WITHDRAW) { in gfs2_lm_withdraw()
59 fs_err(sdp, "about to withdraw this file system\n"); in gfs2_lm_withdraw()
60 BUG_ON(sdp->sd_args.ar_debug); in gfs2_lm_withdraw()
[all …]
Dsys.c39 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_show() local
41 return a->show ? a->show(sdp, buf) : 0; in gfs2_attr_show()
47 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_store() local
49 return a->store ? a->store(sdp, buf, len) : len; in gfs2_attr_store()
60 static ssize_t id_show(struct gfs2_sbd *sdp, char *buf) in id_show() argument
63 MAJOR(sdp->sd_vfs->s_dev), MINOR(sdp->sd_vfs->s_dev)); in id_show()
66 static ssize_t fsname_show(struct gfs2_sbd *sdp, char *buf) in fsname_show() argument
68 return snprintf(buf, PAGE_SIZE, "%s\n", sdp->sd_fsname); in fsname_show()
71 static ssize_t uuid_show(struct gfs2_sbd *sdp, char *buf) in uuid_show() argument
73 struct super_block *s = sdp->sd_vfs; in uuid_show()
[all …]
Dsuper.c53 void gfs2_jindex_free(struct gfs2_sbd *sdp) in gfs2_jindex_free() argument
58 spin_lock(&sdp->sd_jindex_spin); in gfs2_jindex_free()
59 list_add(&list, &sdp->sd_jindex_list); in gfs2_jindex_free()
60 list_del_init(&sdp->sd_jindex_list); in gfs2_jindex_free()
61 sdp->sd_journals = 0; in gfs2_jindex_free()
62 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jindex_free()
91 struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid) in gfs2_jdesc_find() argument
95 spin_lock(&sdp->sd_jindex_spin); in gfs2_jdesc_find()
96 jd = jdesc_find_i(&sdp->sd_jindex_list, jid); in gfs2_jdesc_find()
97 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jdesc_find()
[all …]
Dlog.h22 static inline void gfs2_log_lock(struct gfs2_sbd *sdp) in gfs2_log_lock() argument
23 __acquires(&sdp->sd_log_lock) in gfs2_log_lock()
25 spin_lock(&sdp->sd_log_lock); in gfs2_log_lock()
34 static inline void gfs2_log_unlock(struct gfs2_sbd *sdp) in gfs2_log_unlock() argument
35 __releases(&sdp->sd_log_lock) in gfs2_log_unlock()
37 spin_unlock(&sdp->sd_log_lock); in gfs2_log_unlock()
40 static inline void gfs2_log_pointers_init(struct gfs2_sbd *sdp, in gfs2_log_pointers_init() argument
43 if (++value == sdp->sd_jdesc->jd_blocks) { in gfs2_log_pointers_init()
46 sdp->sd_log_head = sdp->sd_log_tail = value; in gfs2_log_pointers_init()
51 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_ordered_add_inode() local
[all …]
Dtrans.c28 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, in gfs2_trans_begin() argument
37 if (!test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) in gfs2_trans_begin()
52 tr->tr_reserved += gfs2_struct2blk(sdp, revokes, in gfs2_trans_begin()
57 sb_start_intwrite(sdp->sd_vfs); in gfs2_trans_begin()
59 error = gfs2_log_reserve(sdp, tr->tr_reserved); in gfs2_trans_begin()
68 sb_end_intwrite(sdp->sd_vfs); in gfs2_trans_begin()
74 static void gfs2_print_trans(struct gfs2_sbd *sdp, const struct gfs2_trans *tr) in gfs2_print_trans() argument
76 fs_warn(sdp, "Transaction created at: %pSR\n", (void *)tr->tr_ip); in gfs2_print_trans()
77 fs_warn(sdp, "blocks=%u revokes=%u reserved=%u touched=%u\n", in gfs2_print_trans()
80 fs_warn(sdp, "Buf %u/%u Databuf %u/%u Revoke %u\n", in gfs2_print_trans()
[all …]
Dutil.h28 void gfs2_assert_i(struct gfs2_sbd *sdp);
30 #define gfs2_assert(sdp, assertion) \ argument
33 gfs2_assert_i(sdp); \
39 int gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion,
42 #define gfs2_assert_withdraw(sdp, assertion) \ argument
43 ((likely(assertion)) ? 0 : gfs2_assert_withdraw_i((sdp), #assertion, \
47 int gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion,
50 #define gfs2_assert_warn(sdp, assertion) \ argument
51 ((likely(assertion)) ? 0 : gfs2_assert_warn_i((sdp), #assertion, \
55 int gfs2_consist_i(struct gfs2_sbd *sdp, int cluster_wide,
[all …]
Dquota.c85 static unsigned int gfs2_qd_hash(const struct gfs2_sbd *sdp, in gfs2_qd_hash() argument
90 h = jhash(&sdp, sizeof(struct gfs2_sbd *), 0); in gfs2_qd_hash()
115 struct gfs2_sbd *sdp; in gfs2_qd_dispose() local
119 sdp = qd->qd_gl->gl_name.ln_sbd; in gfs2_qd_dispose()
132 gfs2_assert_warn(sdp, !qd->qd_change); in gfs2_qd_dispose()
133 gfs2_assert_warn(sdp, !qd->qd_slot_count); in gfs2_qd_dispose()
134 gfs2_assert_warn(sdp, !qd->qd_bh_count); in gfs2_qd_dispose()
137 atomic_dec(&sdp->sd_quota_count); in gfs2_qd_dispose()
211 static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid) in qd_alloc() argument
220 qd->qd_sbd = sdp; in qd_alloc()
[all …]
Dlops.c41 void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_pin() argument
49 gfs2_assert_withdraw(sdp, 0); in gfs2_pin()
51 gfs2_io_error_bh_wd(sdp, bh); in gfs2_pin()
56 spin_lock(&sdp->sd_ail_lock); in gfs2_pin()
59 spin_unlock(&sdp->sd_ail_lock); in gfs2_pin()
61 atomic_inc(&sdp->sd_log_pinned); in gfs2_pin()
73 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in maybe_release_space() local
80 if (sdp->sd_args.ar_discard) in maybe_release_space()
81 gfs2_rgrp_send_discards(sdp, rgd->rd_data0, bd->bd_bh, bi, 1, NULL); in maybe_release_space()
98 static void gfs2_unpin(struct gfs2_sbd *sdp, struct buffer_head *bh, in gfs2_unpin() argument
[all …]
Dlock_dlm.c185 static int make_mode(struct gfs2_sbd *sdp, const unsigned int lmstate) in make_mode() argument
197 fs_err(sdp, "unknown LM state %d\n", lmstate); in make_mode()
281 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gdlm_put_lock() local
282 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gdlm_put_lock()
301 if (test_bit(SDF_SKIP_DLM_UNLOCK, &sdp->sd_flags) && in gdlm_put_lock()
310 fs_err(sdp, "gdlm_unlock %x,%llx err=%d\n", in gdlm_put_lock()
495 static int sync_unlock(struct gfs2_sbd *sdp, struct dlm_lksb *lksb, char *name) in sync_unlock() argument
497 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in sync_unlock()
502 fs_err(sdp, "%s lkid %x error %d\n", in sync_unlock()
510 fs_err(sdp, "%s lkid %x status %d\n", in sync_unlock()
[all …]
Dsuper.h14 extern void gfs2_lm_unmount(struct gfs2_sbd *sdp);
16 static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp) in gfs2_jindex_size() argument
19 spin_lock(&sdp->sd_jindex_spin); in gfs2_jindex_size()
20 x = sdp->sd_journals; in gfs2_jindex_size()
21 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jindex_size()
25 extern void gfs2_jindex_free(struct gfs2_sbd *sdp);
27 extern struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid);
30 extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename,
33 extern int gfs2_make_fs_rw(struct gfs2_sbd *sdp);
34 extern int gfs2_make_fs_ro(struct gfs2_sbd *sdp);
[all …]
Drecovery.c120 int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh, in __get_log_header() argument
137 sdp->sd_sb.sb_bsize - LH_V1_SIZE - 4); in __get_log_header()
166 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in get_log_header() local
174 error = __get_log_header(sdp, (const struct gfs2_log_header *)bh->b_data, in get_log_header()
196 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in foreach_descriptor() local
210 if (gfs2_meta_check(sdp, bh)) { in foreach_descriptor()
231 } else if (gfs2_metatype_check(sdp, bh, GFS2_METATYPE_LD)) { in foreach_descriptor()
262 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in clean_journal() local
266 if (jd->jd_jid == sdp->sd_lockstruct.ls_jid) in clean_journal()
267 sdp->sd_log_flush_head = lblock; in clean_journal()
[all …]
Dglops.c56 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in __gfs2_ail_flush() local
62 gfs2_log_lock(sdp); in __gfs2_ail_flush()
63 spin_lock(&sdp->sd_ail_lock); in __gfs2_ail_flush()
73 gfs2_trans_add_revoke(sdp, bd); in __gfs2_ail_flush()
77 spin_unlock(&sdp->sd_ail_lock); in __gfs2_ail_flush()
78 gfs2_log_unlock(sdp); in __gfs2_ail_flush()
84 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_empty_gl() local
98 tr.tr_reserved = 1 + gfs2_struct2blk(sdp, tr.tr_revokes, sizeof(u64)); in gfs2_ail_empty_gl()
100 if (gfs2_log_reserve(sdp, tr.tr_reserved) < 0) in gfs2_ail_empty_gl()
107 gfs2_trans_end(sdp); in gfs2_ail_empty_gl()
[all …]
Drgrp.c101 struct gfs2_sbd *sdp = rbm->rgd->rd_sbd; in gfs2_setbit() local
103 fs_warn(sdp, "buf_blk = 0x%x old_state=%d, new_state=%d\n", in gfs2_setbit()
105 fs_warn(sdp, "rgrp=0x%llx bi_start=0x%x biblk: 0x%llx\n", in gfs2_setbit()
108 fs_warn(sdp, "bi_offset=0x%x bi_bytes=0x%x block=0x%llx\n", in gfs2_setbit()
451 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_verify() local
471 fs_err(sdp, "free data mismatch: %u != %u\n", in gfs2_rgrp_verify()
479 fs_err(sdp, "used data mismatch: %u != %u\n", in gfs2_rgrp_verify()
486 fs_err(sdp, "used metadata mismatch: %u != %u\n", in gfs2_rgrp_verify()
508 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact) in gfs2_blk2rgrpd() argument
513 spin_lock(&sdp->sd_rindex_spin); in gfs2_blk2rgrpd()
[all …]
Daops.c93 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_writepage() local
98 if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) in gfs2_writepage()
159 struct gfs2_sbd *sdp = GFS2_SB(inode); in __gfs2_jdata_writepage() local
167 gfs2_page_add_databufs(ip, page, 0, sdp->sd_vfs->s_blocksize); in __gfs2_jdata_writepage()
185 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_jdata_writepage() local
188 if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) in gfs2_jdata_writepage()
212 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_writepages() local
222 set_bit(SDF_FORCE_AIL_FLUSH, &sdp->sd_flags); in gfs2_writepages()
245 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_write_jdata_pagevec() local
250 ret = gfs2_trans_begin(sdp, nrblocks, nrblocks); in gfs2_write_jdata_pagevec()
[all …]
Dlops.h21 extern u64 gfs2_log_bmap(struct gfs2_sbd *sdp);
22 extern void gfs2_log_write(struct gfs2_sbd *sdp, struct page *page,
24 extern void gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page);
26 extern void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh);
30 static inline unsigned int buf_limit(struct gfs2_sbd *sdp) in buf_limit() argument
34 limit = (sdp->sd_sb.sb_bsize - BUF_OFFSET) / sizeof(__be64); in buf_limit()
38 static inline unsigned int databuf_limit(struct gfs2_sbd *sdp) in databuf_limit() argument
42 limit = (sdp->sd_sb.sb_bsize - DATABUF_OFFSET) / (2 * sizeof(__be64)); in databuf_limit()
46 static inline void lops_before_commit(struct gfs2_sbd *sdp, in lops_before_commit() argument
52 gfs2_log_ops[x]->lo_before_commit(sdp, tr); in lops_before_commit()
[all …]
Dmeta_io.c113 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_getbuf() local
121 mapping = &sdp->sd_aspace; in gfs2_getbuf()
123 shift = PAGE_SHIFT - sdp->sd_sb.sb_bsize_shift; in gfs2_getbuf()
142 create_empty_buffers(page, sdp->sd_sb.sb_bsize, 0); in gfs2_getbuf()
150 map_bh(bh, sdp->sd_vfs, blkno); in gfs2_getbuf()
250 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_meta_read() local
254 if (unlikely(test_bit(SDF_WITHDRAWN, &sdp->sd_flags))) { in gfs2_meta_read()
293 gfs2_io_error_bh_wd(sdp, bh); in gfs2_meta_read()
310 int gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_meta_wait() argument
312 if (unlikely(test_bit(SDF_WITHDRAWN, &sdp->sd_flags))) in gfs2_meta_wait()
[all …]
Dbmap.c238 static void find_metapath(const struct gfs2_sbd *sdp, u64 block, in find_metapath() argument
245 mp->mp_list[i] = do_div(block, sdp->sd_inptrs); in find_metapath()
393 static sector_t metapath_to_block(struct gfs2_sbd *sdp, struct metapath *mp) in metapath_to_block() argument
401 factor *= sdp->sd_inptrs; in metapath_to_block()
474 struct gfs2_sbd *sdp = GFS2_SB(inode);
487 factor *= sdp->sd_inptrs;
497 ptrs = (hgt >= 1 ? sdp->sd_inptrs : sdp->sd_diptrs) - start;
527 factor *= sdp->sd_inptrs;
531 if (mp->mp_list[hgt] >= sdp->sd_inptrs) {
544 do_div(factor, sdp->sd_inptrs);
[all …]
Dquota.h32 extern int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid);
34 extern int gfs2_quota_init(struct gfs2_sbd *sdp);
35 extern void gfs2_quota_cleanup(struct gfs2_sbd *sdp);
38 extern void gfs2_wake_up_statfs(struct gfs2_sbd *sdp);
43 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_quota_lock_check() local
47 if (sdp->sd_args.ar_quota == GFS2_QUOTA_OFF) in gfs2_quota_lock_check()
52 if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON) in gfs2_quota_lock_check()
Dglock.h122 int (*lm_mount) (struct gfs2_sbd *sdp, const char *table);
123 void (*lm_first_done) (struct gfs2_sbd *sdp);
124 void (*lm_recovery_result) (struct gfs2_sbd *sdp, unsigned int jid,
126 void (*lm_unmount) (struct gfs2_sbd *sdp);
127 void (*lm_withdraw) (struct gfs2_sbd *sdp);
179 extern int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number,
197 extern int gfs2_glock_nq_num(struct gfs2_sbd *sdp, u64 number,
238 extern void gfs2_gl_hash_clear(struct gfs2_sbd *sdp);
240 extern void gfs2_glock_thaw(struct gfs2_sbd *sdp);
247 extern void gfs2_create_debugfs_file(struct gfs2_sbd *sdp);
[all …]
/Linux-v5.4/kernel/rcu/
Dsrcutree.c89 struct srcu_data *sdp; in init_srcu_struct_nodes() local
129 WARN_ON_ONCE(ARRAY_SIZE(sdp->srcu_lock_count) != in init_srcu_struct_nodes()
130 ARRAY_SIZE(sdp->srcu_unlock_count)); in init_srcu_struct_nodes()
134 sdp = per_cpu_ptr(ssp->sda, cpu); in init_srcu_struct_nodes()
135 spin_lock_init(&ACCESS_PRIVATE(sdp, lock)); in init_srcu_struct_nodes()
136 rcu_segcblist_init(&sdp->srcu_cblist); in init_srcu_struct_nodes()
137 sdp->srcu_cblist_invoking = false; in init_srcu_struct_nodes()
138 sdp->srcu_gp_seq_needed = ssp->srcu_gp_seq; in init_srcu_struct_nodes()
139 sdp->srcu_gp_seq_needed_exp = ssp->srcu_gp_seq; in init_srcu_struct_nodes()
140 sdp->mynode = &snp_first[cpu / levelspread[level]]; in init_srcu_struct_nodes()
[all …]
/Linux-v5.4/arch/sh/kernel/cpu/shmobile/
Dpm.c49 struct sh_sleep_data *sdp = onchip_mem; in sh_mobile_call_standby() local
53 standby_onchip_mem = (void *)(sdp + 1); in sh_mobile_call_standby()
83 struct sh_sleep_data *sdp; in sh_mobile_register_self_refresh() local
87 sdp = onchip_mem; in sh_mobile_register_self_refresh()
88 sdp->addr.stbcr = 0xa4150020; /* STBCR */ in sh_mobile_register_self_refresh()
89 sdp->addr.bar = 0xa4150040; /* BAR */ in sh_mobile_register_self_refresh()
90 sdp->addr.pteh = 0xff000000; /* PTEH */ in sh_mobile_register_self_refresh()
91 sdp->addr.ptel = 0xff000004; /* PTEL */ in sh_mobile_register_self_refresh()
92 sdp->addr.ttb = 0xff000008; /* TTB */ in sh_mobile_register_self_refresh()
93 sdp->addr.tea = 0xff00000c; /* TEA */ in sh_mobile_register_self_refresh()
[all …]
/Linux-v5.4/drivers/scsi/
Dsg.c191 static Sg_fd *sg_add_sfp(Sg_device * sdp);
204 #define sg_printk(prefix, sdp, fmt, a...) \ argument
205 sdev_prefix_printk(prefix, (sdp)->device, \
206 (sdp)->disk->disk_name, fmt, ##a)
246 open_wait(Sg_device *sdp, int flags) in open_wait() argument
251 while (sdp->open_cnt > 0) { in open_wait()
252 mutex_unlock(&sdp->open_rel_lock); in open_wait()
253 retval = wait_event_interruptible(sdp->open_wait, in open_wait()
254 (atomic_read(&sdp->detaching) || in open_wait()
255 !sdp->open_cnt)); in open_wait()
[all …]
Dsd.c163 struct scsi_device *sdp = sdkp->device; in cache_type_store() local
171 if (sdp->type != TYPE_DISK && sdp->type != TYPE_ZBC) in cache_type_store()
198 if (scsi_mode_sense(sdp, 0x08, 8, buffer, sizeof(buffer), SD_TIMEOUT, in cache_type_store()
216 if (scsi_mode_select(sdp, 1, sp, 8, buffer_data, len, SD_TIMEOUT, in cache_type_store()
231 struct scsi_device *sdp = sdkp->device; in manage_start_stop_show() local
233 return sprintf(buf, "%u\n", sdp->manage_start_stop); in manage_start_stop_show()
241 struct scsi_device *sdp = sdkp->device; in manage_start_stop_store() local
250 sdp->manage_start_stop = v; in manage_start_stop_store()
270 struct scsi_device *sdp = sdkp->device; in allow_restart_store() local
275 if (sdp->type != TYPE_DISK && sdp->type != TYPE_ZBC) in allow_restart_store()
[all …]

1234