• Home
  • Raw
  • Download

Lines Matching refs:filter

124 static void blk_set_cmd_filter_defaults(struct blk_cmd_filter *filter)  in blk_set_cmd_filter_defaults()  argument
127 __set_bit(TEST_UNIT_READY, filter->read_ok); in blk_set_cmd_filter_defaults()
128 __set_bit(REQUEST_SENSE, filter->read_ok); in blk_set_cmd_filter_defaults()
129 __set_bit(READ_6, filter->read_ok); in blk_set_cmd_filter_defaults()
130 __set_bit(READ_10, filter->read_ok); in blk_set_cmd_filter_defaults()
131 __set_bit(READ_12, filter->read_ok); in blk_set_cmd_filter_defaults()
132 __set_bit(READ_16, filter->read_ok); in blk_set_cmd_filter_defaults()
133 __set_bit(READ_BUFFER, filter->read_ok); in blk_set_cmd_filter_defaults()
134 __set_bit(READ_DEFECT_DATA, filter->read_ok); in blk_set_cmd_filter_defaults()
135 __set_bit(READ_CAPACITY, filter->read_ok); in blk_set_cmd_filter_defaults()
136 __set_bit(READ_LONG, filter->read_ok); in blk_set_cmd_filter_defaults()
137 __set_bit(INQUIRY, filter->read_ok); in blk_set_cmd_filter_defaults()
138 __set_bit(MODE_SENSE, filter->read_ok); in blk_set_cmd_filter_defaults()
139 __set_bit(MODE_SENSE_10, filter->read_ok); in blk_set_cmd_filter_defaults()
140 __set_bit(LOG_SENSE, filter->read_ok); in blk_set_cmd_filter_defaults()
141 __set_bit(START_STOP, filter->read_ok); in blk_set_cmd_filter_defaults()
142 __set_bit(GPCMD_VERIFY_10, filter->read_ok); in blk_set_cmd_filter_defaults()
143 __set_bit(VERIFY_16, filter->read_ok); in blk_set_cmd_filter_defaults()
144 __set_bit(REPORT_LUNS, filter->read_ok); in blk_set_cmd_filter_defaults()
145 __set_bit(SERVICE_ACTION_IN, filter->read_ok); in blk_set_cmd_filter_defaults()
146 __set_bit(RECEIVE_DIAGNOSTIC, filter->read_ok); in blk_set_cmd_filter_defaults()
147 __set_bit(MAINTENANCE_IN, filter->read_ok); in blk_set_cmd_filter_defaults()
148 __set_bit(GPCMD_READ_BUFFER_CAPACITY, filter->read_ok); in blk_set_cmd_filter_defaults()
151 __set_bit(GPCMD_PLAY_CD, filter->read_ok); in blk_set_cmd_filter_defaults()
152 __set_bit(GPCMD_PLAY_AUDIO_10, filter->read_ok); in blk_set_cmd_filter_defaults()
153 __set_bit(GPCMD_PLAY_AUDIO_MSF, filter->read_ok); in blk_set_cmd_filter_defaults()
154 __set_bit(GPCMD_PLAY_AUDIO_TI, filter->read_ok); in blk_set_cmd_filter_defaults()
155 __set_bit(GPCMD_PAUSE_RESUME, filter->read_ok); in blk_set_cmd_filter_defaults()
158 __set_bit(GPCMD_READ_CD, filter->read_ok); in blk_set_cmd_filter_defaults()
159 __set_bit(GPCMD_READ_CD_MSF, filter->read_ok); in blk_set_cmd_filter_defaults()
160 __set_bit(GPCMD_READ_DISC_INFO, filter->read_ok); in blk_set_cmd_filter_defaults()
161 __set_bit(GPCMD_READ_CDVD_CAPACITY, filter->read_ok); in blk_set_cmd_filter_defaults()
162 __set_bit(GPCMD_READ_DVD_STRUCTURE, filter->read_ok); in blk_set_cmd_filter_defaults()
163 __set_bit(GPCMD_READ_HEADER, filter->read_ok); in blk_set_cmd_filter_defaults()
164 __set_bit(GPCMD_READ_TRACK_RZONE_INFO, filter->read_ok); in blk_set_cmd_filter_defaults()
165 __set_bit(GPCMD_READ_SUBCHANNEL, filter->read_ok); in blk_set_cmd_filter_defaults()
166 __set_bit(GPCMD_READ_TOC_PMA_ATIP, filter->read_ok); in blk_set_cmd_filter_defaults()
167 __set_bit(GPCMD_REPORT_KEY, filter->read_ok); in blk_set_cmd_filter_defaults()
168 __set_bit(GPCMD_SCAN, filter->read_ok); in blk_set_cmd_filter_defaults()
169 __set_bit(GPCMD_GET_CONFIGURATION, filter->read_ok); in blk_set_cmd_filter_defaults()
170 __set_bit(GPCMD_READ_FORMAT_CAPACITIES, filter->read_ok); in blk_set_cmd_filter_defaults()
171 __set_bit(GPCMD_GET_EVENT_STATUS_NOTIFICATION, filter->read_ok); in blk_set_cmd_filter_defaults()
172 __set_bit(GPCMD_GET_PERFORMANCE, filter->read_ok); in blk_set_cmd_filter_defaults()
173 __set_bit(GPCMD_SEEK, filter->read_ok); in blk_set_cmd_filter_defaults()
174 __set_bit(GPCMD_STOP_PLAY_SCAN, filter->read_ok); in blk_set_cmd_filter_defaults()
177 __set_bit(WRITE_6, filter->write_ok); in blk_set_cmd_filter_defaults()
178 __set_bit(WRITE_10, filter->write_ok); in blk_set_cmd_filter_defaults()
179 __set_bit(WRITE_VERIFY, filter->write_ok); in blk_set_cmd_filter_defaults()
180 __set_bit(WRITE_12, filter->write_ok); in blk_set_cmd_filter_defaults()
181 __set_bit(WRITE_VERIFY_12, filter->write_ok); in blk_set_cmd_filter_defaults()
182 __set_bit(WRITE_16, filter->write_ok); in blk_set_cmd_filter_defaults()
183 __set_bit(WRITE_LONG, filter->write_ok); in blk_set_cmd_filter_defaults()
184 __set_bit(WRITE_LONG_2, filter->write_ok); in blk_set_cmd_filter_defaults()
185 __set_bit(WRITE_SAME, filter->write_ok); in blk_set_cmd_filter_defaults()
186 __set_bit(WRITE_SAME_16, filter->write_ok); in blk_set_cmd_filter_defaults()
187 __set_bit(WRITE_SAME_32, filter->write_ok); in blk_set_cmd_filter_defaults()
188 __set_bit(ERASE, filter->write_ok); in blk_set_cmd_filter_defaults()
189 __set_bit(GPCMD_MODE_SELECT_10, filter->write_ok); in blk_set_cmd_filter_defaults()
190 __set_bit(MODE_SELECT, filter->write_ok); in blk_set_cmd_filter_defaults()
191 __set_bit(LOG_SELECT, filter->write_ok); in blk_set_cmd_filter_defaults()
192 __set_bit(GPCMD_BLANK, filter->write_ok); in blk_set_cmd_filter_defaults()
193 __set_bit(GPCMD_CLOSE_TRACK, filter->write_ok); in blk_set_cmd_filter_defaults()
194 __set_bit(GPCMD_FLUSH_CACHE, filter->write_ok); in blk_set_cmd_filter_defaults()
195 __set_bit(GPCMD_FORMAT_UNIT, filter->write_ok); in blk_set_cmd_filter_defaults()
196 __set_bit(GPCMD_REPAIR_RZONE_TRACK, filter->write_ok); in blk_set_cmd_filter_defaults()
197 __set_bit(GPCMD_RESERVE_RZONE_TRACK, filter->write_ok); in blk_set_cmd_filter_defaults()
198 __set_bit(GPCMD_SEND_DVD_STRUCTURE, filter->write_ok); in blk_set_cmd_filter_defaults()
199 __set_bit(GPCMD_SEND_EVENT, filter->write_ok); in blk_set_cmd_filter_defaults()
200 __set_bit(GPCMD_SEND_KEY, filter->write_ok); in blk_set_cmd_filter_defaults()
201 __set_bit(GPCMD_SEND_OPC, filter->write_ok); in blk_set_cmd_filter_defaults()
202 __set_bit(GPCMD_SEND_CUE_SHEET, filter->write_ok); in blk_set_cmd_filter_defaults()
203 __set_bit(GPCMD_SET_SPEED, filter->write_ok); in blk_set_cmd_filter_defaults()
204 __set_bit(GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL, filter->write_ok); in blk_set_cmd_filter_defaults()
205 __set_bit(GPCMD_LOAD_UNLOAD, filter->write_ok); in blk_set_cmd_filter_defaults()
206 __set_bit(GPCMD_SET_STREAMING, filter->write_ok); in blk_set_cmd_filter_defaults()
207 __set_bit(GPCMD_SET_READ_AHEAD, filter->write_ok); in blk_set_cmd_filter_defaults()
212 struct blk_cmd_filter *filter = &blk_default_cmd_filter; in blk_verify_command() local
219 if (test_bit(cmd[0], filter->read_ok)) in blk_verify_command()
223 if (test_bit(cmd[0], filter->write_ok) && has_write_perm) in blk_verify_command()