/kernel/linux/linux-5.10/fs/gfs2/ |
D | log.c | 35 static void gfs2_log_shutdown(struct gfs2_sbd *sdp); 48 unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct) in gfs2_struct2blk() argument 54 first = sdp->sd_ldptrs; in gfs2_struct2blk() 57 second = sdp->sd_inptrs; in gfs2_struct2blk() 90 static int gfs2_ail1_start_one(struct gfs2_sbd *sdp, in gfs2_ail1_start_one() argument 93 __releases(&sdp->sd_ail_lock) in gfs2_ail1_start_one() 94 __acquires(&sdp->sd_ail_lock) in gfs2_ail1_start_one() 105 gfs2_assert(sdp, bd->bd_tr == tr); in gfs2_ail1_start_one() 113 if (!cmpxchg(&sdp->sd_log_error, 0, -EIO)) { in gfs2_ail1_start_one() 114 gfs2_io_error_bh(sdp, bh); in gfs2_ail1_start_one() [all …]
|
D | util.c | 38 void gfs2_assert_i(struct gfs2_sbd *sdp) in gfs2_assert_i() argument 40 fs_emerg(sdp, "fatal assertion failed\n"); in gfs2_assert_i() 50 int check_journal_clean(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd, in check_journal_clean() argument 63 fs_err(sdp, "Error %d locking journal for spectator " in check_journal_clean() 70 fs_err(sdp, "Error checking journal for spectator " in check_journal_clean() 77 fs_err(sdp, "Error parsing journal for spectator " in check_journal_clean() 84 fs_err(sdp, "jid=%u: Journal is dirty, so the first " in check_journal_clean() 100 int gfs2_freeze_lock(struct gfs2_sbd *sdp, struct gfs2_holder *freeze_gh, in gfs2_freeze_lock() argument 106 error = gfs2_glock_nq_init(sdp->sd_freeze_gl, LM_ST_SHARED, flags, in gfs2_freeze_lock() 109 fs_err(sdp, "can't lock the freeze lock: %d\n", error); in gfs2_freeze_lock() [all …]
|
D | ops_fstype.c | 65 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 …]
|
D | sys.c | 39 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 …]
|
D | super.c | 59 void gfs2_jindex_free(struct gfs2_sbd *sdp) in gfs2_jindex_free() argument 64 spin_lock(&sdp->sd_jindex_spin); in gfs2_jindex_free() 65 list_add(&list, &sdp->sd_jindex_list); in gfs2_jindex_free() 66 list_del_init(&sdp->sd_jindex_list); in gfs2_jindex_free() 67 sdp->sd_journals = 0; in gfs2_jindex_free() 68 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jindex_free() 70 sdp->sd_jdesc = NULL; in gfs2_jindex_free() 99 struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid) in gfs2_jdesc_find() argument 103 spin_lock(&sdp->sd_jindex_spin); in gfs2_jdesc_find() 104 jd = jdesc_find_i(&sdp->sd_jindex_list, jid); in gfs2_jdesc_find() [all …]
|
D | util.h | 28 void gfs2_assert_i(struct gfs2_sbd *sdp); 30 #define gfs2_assert(sdp, assertion) \ argument 33 gfs2_assert_i(sdp); \ 39 void gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion, 43 #define gfs2_assert_withdraw(sdp, assertion) \ argument 47 gfs2_assert_withdraw_i((sdp), #assertion, \ 52 #define gfs2_assert_withdraw_delayed(sdp, assertion) \ argument 56 gfs2_assert_withdraw_i((sdp), #assertion, \ 61 void gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, 64 #define gfs2_assert_warn(sdp, assertion) \ argument [all …]
|
D | trans.c | 28 static void gfs2_print_trans(struct gfs2_sbd *sdp, const struct gfs2_trans *tr) in gfs2_print_trans() argument 30 fs_warn(sdp, "Transaction created at: %pSR\n", (void *)tr->tr_ip); in gfs2_print_trans() 31 fs_warn(sdp, "blocks=%u revokes=%u reserved=%u touched=%u\n", in gfs2_print_trans() 34 fs_warn(sdp, "Buf %u/%u Databuf %u/%u Revoke %u/%u\n", in gfs2_print_trans() 40 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, in gfs2_trans_begin() argument 47 gfs2_print_trans(sdp, current->journal_info); in gfs2_trans_begin() 52 if (!test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) in gfs2_trans_begin() 67 tr->tr_reserved += gfs2_struct2blk(sdp, revokes); in gfs2_trans_begin() 74 sb_start_intwrite(sdp->sd_vfs); in gfs2_trans_begin() 76 error = gfs2_log_reserve(sdp, tr->tr_reserved); in gfs2_trans_begin() [all …]
|
D | log.h | 22 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 …]
|
D | lops.c | 42 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 …]
|
D | lock_dlm.c | 189 static int make_mode(struct gfs2_sbd *sdp, const unsigned int lmstate) in make_mode() argument 201 fs_err(sdp, "unknown LM state %d\n", lmstate); in make_mode() 285 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gdlm_put_lock() local 286 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gdlm_put_lock() 306 if (test_bit(SDF_SKIP_DLM_UNLOCK, &sdp->sd_flags) && in gdlm_put_lock() 315 fs_err(sdp, "gdlm_unlock %x,%llx err=%d\n", in gdlm_put_lock() 501 static int sync_unlock(struct gfs2_sbd *sdp, struct dlm_lksb *lksb, char *name) in sync_unlock() argument 503 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in sync_unlock() 508 fs_err(sdp, "%s lkid %x error %d\n", in sync_unlock() 516 fs_err(sdp, "%s lkid %x status %d\n", in sync_unlock() [all …]
|
D | quota.c | 85 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 …]
|
D | super.h | 14 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); 29 extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename, 32 extern int gfs2_make_fs_rw(struct gfs2_sbd *sdp); 33 extern int gfs2_make_fs_ro(struct gfs2_sbd *sdp); [all …]
|
D | recovery.c | 120 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() 170 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in get_log_header() local 178 error = __get_log_header(sdp, (const struct gfs2_log_header *)bh->b_data, in get_log_header() 200 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in foreach_descriptor() local 214 if (gfs2_meta_check(sdp, bh)) { in foreach_descriptor() 235 } else if (gfs2_metatype_check(sdp, bh, GFS2_METATYPE_LD)) { in foreach_descriptor() 266 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in clean_journal() local 270 gfs2_write_log_header(sdp, jd, head->lh_sequence + 1, 0, lblock, in clean_journal() 273 if (jd->jd_jid == sdp->sd_lockstruct.ls_jid) { in clean_journal() [all …]
|
D | glops.c | 59 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in __gfs2_ail_flush() local 65 gfs2_log_lock(sdp); in __gfs2_ail_flush() 66 spin_lock(&sdp->sd_ail_lock); in __gfs2_ail_flush() 76 gfs2_trans_add_revoke(sdp, bd); in __gfs2_ail_flush() 80 spin_unlock(&sdp->sd_ail_lock); in __gfs2_ail_flush() 81 gfs2_log_unlock(sdp); in __gfs2_ail_flush() 87 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_empty_gl() local 114 gfs2_log_lock(sdp); in gfs2_ail_empty_gl() 115 have_revokes = !list_empty(&sdp->sd_log_revokes); in gfs2_ail_empty_gl() 116 log_in_flight = atomic_read(&sdp->sd_log_in_flight); in gfs2_ail_empty_gl() [all …]
|
D | meta_io.c | 113 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(gfs2_withdrawn(sdp)) && in gfs2_meta_read() 255 (!sdp->sd_jdesc || gl != sdp->sd_jinode_gl)) { in gfs2_meta_read() 294 gfs2_io_error_bh_wd(sdp, bh); in gfs2_meta_read() 311 int gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_meta_wait() argument [all …]
|
D | aops.c | 93 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_writepage() local 96 if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) in gfs2_writepage() 155 struct gfs2_sbd *sdp = GFS2_SB(inode); in __gfs2_jdata_writepage() local 163 gfs2_page_add_databufs(ip, page, 0, sdp->sd_vfs->s_blocksize); in __gfs2_jdata_writepage() 181 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_jdata_writepage() local 183 if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) in gfs2_jdata_writepage() 206 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_writepages() local 218 set_bit(SDF_FORCE_AIL_FLUSH, &sdp->sd_flags); in gfs2_writepages() 240 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_write_jdata_pagevec() local 245 ret = gfs2_trans_begin(sdp, nrblocks, nrblocks); in gfs2_write_jdata_pagevec() [all …]
|
D | lops.h | 21 extern void gfs2_log_incr_head(struct gfs2_sbd *sdp); 23 extern void gfs2_log_write(struct gfs2_sbd *sdp, struct page *page, 25 extern void gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page); 27 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 …]
|
D | rgrp.c | 91 struct gfs2_sbd *sdp = rbm->rgd->rd_sbd; in gfs2_setbit() local 93 fs_warn(sdp, "buf_blk = 0x%x old_state=%d, new_state=%d\n", in gfs2_setbit() 95 fs_warn(sdp, "rgrp=0x%llx bi_start=0x%x biblk: 0x%llx\n", in gfs2_setbit() 98 fs_warn(sdp, "bi_offset=0x%x bi_bytes=0x%x block=0x%llx\n", in gfs2_setbit() 441 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_verify() local 460 gfs2_lm(sdp, "free data mismatch: %u != %u\n", in gfs2_rgrp_verify() 468 gfs2_lm(sdp, "used data mismatch: %u != %u\n", in gfs2_rgrp_verify() 475 gfs2_lm(sdp, "used metadata mismatch: %u != %u\n", in gfs2_rgrp_verify() 498 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact) in gfs2_blk2rgrpd() argument 503 spin_lock(&sdp->sd_rindex_spin); in gfs2_blk2rgrpd() [all …]
|
D | bmap.c | 238 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); in gfs2_walk_metadata() local 487 factor *= sdp->sd_inptrs; in gfs2_walk_metadata() 497 ptrs = (hgt >= 1 ? sdp->sd_inptrs : sdp->sd_diptrs) - start; in gfs2_walk_metadata() 527 factor *= sdp->sd_inptrs; in gfs2_walk_metadata() 532 if (mp->mp_list[hgt] >= sdp->sd_inptrs) in gfs2_walk_metadata() 535 if (mp->mp_list[hgt] >= sdp->sd_diptrs) in gfs2_walk_metadata() [all …]
|
D | glock.c | 52 struct gfs2_sbd *sdp; /* incore superblock */ member 150 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in glock_blocked_by_withdraw() local 152 if (likely(!gfs2_withdrawn(sdp))) in glock_blocked_by_withdraw() 156 if (!sdp->sd_jdesc || in glock_blocked_by_withdraw() 157 gl->gl_name.ln_number == sdp->sd_jdesc->jd_no_addr) in glock_blocked_by_withdraw() 164 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_glock_free() local 171 if (atomic_dec_and_test(&sdp->sd_glock_disposal)) in gfs2_glock_free() 172 wake_up(&sdp->sd_glock_wait); in gfs2_glock_free() 265 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in __gfs2_glock_put() local 275 if (!gfs2_withdrawn(sdp)) in __gfs2_glock_put() [all …]
|
D | quota.h | 32 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 48 sdp->sd_args.ar_quota == GFS2_QUOTA_OFF) in gfs2_quota_lock_check() 53 if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON) in gfs2_quota_lock_check()
|
/kernel/linux/linux-5.10/kernel/rcu/ |
D | srcutree.c | 89 struct srcu_data *sdp; in init_srcu_struct_nodes() local 132 WARN_ON_ONCE(ARRAY_SIZE(sdp->srcu_lock_count) != in init_srcu_struct_nodes() 133 ARRAY_SIZE(sdp->srcu_unlock_count)); in init_srcu_struct_nodes() 137 sdp = per_cpu_ptr(ssp->sda, cpu); in init_srcu_struct_nodes() 138 spin_lock_init(&ACCESS_PRIVATE(sdp, lock)); in init_srcu_struct_nodes() 139 rcu_segcblist_init(&sdp->srcu_cblist); in init_srcu_struct_nodes() 140 sdp->srcu_cblist_invoking = false; in init_srcu_struct_nodes() 141 sdp->srcu_gp_seq_needed = ssp->srcu_gp_seq; in init_srcu_struct_nodes() 142 sdp->srcu_gp_seq_needed_exp = ssp->srcu_gp_seq; in init_srcu_struct_nodes() 143 sdp->mynode = &snp_first[cpu / levelspread[level]]; in init_srcu_struct_nodes() [all …]
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/shmobile/ |
D | pm.c | 49 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 …]
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | sg.c | 191 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 …]
|
D | sd.c | 161 struct scsi_device *sdp = sdkp->device; in cache_type_store() local 169 if (sdp->type != TYPE_DISK && sdp->type != TYPE_ZBC) in cache_type_store() 196 if (scsi_mode_sense(sdp, 0x08, 8, buffer, sizeof(buffer), SD_TIMEOUT, in cache_type_store() 214 if (scsi_mode_select(sdp, 1, sp, 8, buffer_data, len, SD_TIMEOUT, in cache_type_store() 229 struct scsi_device *sdp = sdkp->device; in manage_start_stop_show() local 231 return sprintf(buf, "%u\n", sdp->manage_start_stop); in manage_start_stop_show() 239 struct scsi_device *sdp = sdkp->device; in manage_start_stop_store() local 248 sdp->manage_start_stop = v; in manage_start_stop_store() 268 struct scsi_device *sdp = sdkp->device; in allow_restart_store() local 273 if (sdp->type != TYPE_DISK && sdp->type != TYPE_ZBC) in allow_restart_store() [all …]
|