Home
last modified time | relevance | path

Searched refs:oc (Results 1 – 59 of 59) sorted by relevance

/linux-4.4.14/mm/
Doom_kill.c125 static inline bool is_sysrq_oom(struct oom_control *oc) in is_sysrq_oom() argument
127 return oc->order == -1; in is_sysrq_oom()
208 static enum oom_constraint constrained_alloc(struct oom_control *oc, in constrained_alloc() argument
213 enum zone_type high_zoneidx = gfp_zone(oc->gfp_mask); in constrained_alloc()
220 if (!oc->zonelist) in constrained_alloc()
227 if (oc->gfp_mask & __GFP_THISNODE) in constrained_alloc()
235 if (oc->nodemask && in constrained_alloc()
236 !nodes_subset(node_states[N_MEMORY], *oc->nodemask)) { in constrained_alloc()
238 for_each_node_mask(nid, *oc->nodemask) in constrained_alloc()
244 for_each_zone_zonelist_nodemask(zone, z, oc->zonelist, in constrained_alloc()
[all …]
Dmemcontrol.c1339 struct oom_control oc = { in mem_cgroup_out_of_memory() local
1363 check_panic_on_oom(&oc, CONSTRAINT_MEMCG, memcg); in mem_cgroup_out_of_memory()
1371 switch (oom_scan_process_thread(&oc, task, totalpages)) { in mem_cgroup_out_of_memory()
1409 oom_kill_process(&oc, chosen, points, totalpages, memcg, in mem_cgroup_out_of_memory()
Dpage_alloc.c2706 struct oom_control oc = { in __alloc_pages_may_oom() local
2763 if (out_of_memory(&oc) || WARN_ON_ONCE(gfp_mask & __GFP_NOFAIL)) in __alloc_pages_may_oom()
/linux-4.4.14/include/scsi/
Dosd_ore.h81 const struct ore_components *oc, unsigned i) in ore_comp_dev() argument
83 BUG_ON((i < oc->first_dev) || (oc->first_dev + oc->numdevs <= i)); in ore_comp_dev()
84 return oc->ods[i - oc->first_dev]->od; in ore_comp_dev()
88 struct ore_components *oc, unsigned i, struct osd_dev *od) in ore_comp_set_dev() argument
90 oc->ods[i - oc->first_dev]->od = od; in ore_comp_set_dev()
124 struct ore_components *oc; member
/linux-4.4.14/fs/exofs/
Dexofs.h78 struct ore_components oc; /* comps for the partition */ member
93 struct ore_components oc; /* inode view of the device table */ member
220 static inline void exofs_init_comps(struct ore_components *oc, in exofs_init_comps() argument
230 oc->first_dev = 0; in exofs_init_comps()
231 oc->numdevs = sbi->layout.group_width * sbi->layout.mirrors_p1 * in exofs_init_comps()
233 oc->single_comp = EC_SINGLE_COMP; in exofs_init_comps()
234 oc->comps = one_comp; in exofs_init_comps()
237 first_dev = (dev_mod * sbi->layout.mirrors_p1) % sbi->oc.numdevs; in exofs_init_comps()
238 oc->ods = &sbi->oc.ods[first_dev]; in exofs_init_comps()
Dsuper.c274 ret = ore_get_io_state(&sbi->layout, &sbi->oc, &ios); in __sbi_read_stats()
329 ret = ore_get_io_state(&sbi->layout, &sbi->oc, &ios); in exofs_sbi_write_stats()
368 struct ore_components oc; in exofs_sync_fs() local
386 exofs_init_comps(&oc, &one_comp, sbi, EXOFS_SUPER_ID); in exofs_sync_fs()
388 ret = ore_get_io_state(&sbi->layout, &oc, &ios); in exofs_sync_fs()
425 unsigned numdevs = sbi->oc.numdevs; in exofs_free_sbi()
429 struct osd_dev *od = ore_comp_dev(&sbi->oc, i); in exofs_free_sbi()
432 ore_comp_set_dev(&sbi->oc, i, NULL); in exofs_free_sbi()
436 kfree(sbi->oc.ods); in exofs_free_sbi()
463 _exofs_print_device("Unmounting", NULL, ore_comp_dev(&sbi->oc, 0), in exofs_put_super()
[all …]
Dore.c126 return ios->oc->comps[index & ios->oc->single_comp].cred; in _ios_cred()
131 return &ios->oc->comps[index & ios->oc->single_comp].obj; in _ios_obj()
137 ios->oc->first_dev, ios->oc->numdevs, index, in _ios_od()
138 ios->oc->ods); in _ios_od()
140 return ore_comp_dev(ios->oc, index); in _ios_od()
144 struct ore_components *oc, unsigned numdevs, in _ore_get_io_state() argument
221 ios->oc = oc; in _ore_get_io_state()
242 int ore_get_rw_state(struct ore_layout *layout, struct ore_components *oc, in ore_get_rw_state() argument
282 ret = _ore_get_io_state(layout, oc, numdevs, sgs_per_dev, max_par_pages, in ore_get_rw_state()
311 int ore_get_io_state(struct ore_layout *layout, struct ore_components *oc, in ore_get_io_state() argument
[all …]
Dinode.c319 int ret = ore_get_rw_state(&pcol->sbi->layout, &oi->oc, true, in read_exec()
635 ret = ore_get_rw_state(&pcol->sbi->layout, &oi->oc, false, in write_exec()
1013 ret = ore_truncate(&sbi->layout, &oi->oc, (u64)newsize); in _do_truncate()
1080 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_get_inode()
1086 attrs[1].len = exofs_on_disk_inode_layout_size(sbi->oc.numdevs); in exofs_get_inode()
1087 attrs[2].len = exofs_on_disk_inode_layout_size(sbi->oc.numdevs); in exofs_get_inode()
1170 exofs_init_comps(&oi->oc, &oi->one_comp, sb->s_fs_info, in exofs_iget()
1323 exofs_init_comps(&oi->oc, &oi->one_comp, sb->s_fs_info, in exofs_new_inode()
1329 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_new_inode()
1418 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_update_inode()
[all …]
Dore_raid.h55 struct ore_components *oc, unsigned numdevs,
Dore_raid.c328 ret = _ore_get_io_state(layout, ios->oc, in _alloc_read_4_write()
374 q = osd_request_queue(ore_comp_dev(read_ios->oc, per_dev->dev)); in _add_to_r4w()
/linux-4.4.14/fs/nfs/objlayout/
Dobjio_osd.c67 struct ore_components oc; member
160 static void copy_single_comp(struct ore_components *oc, unsigned c, in copy_single_comp() argument
163 struct ore_comp *ocomp = &oc->comps[c]; in copy_single_comp()
191 numdevs * sizeof(lseg->oc.ods[0]) + in __alloc_objio_seg()
192 numdevs * sizeof(*lseg->oc.comps); in __alloc_objio_seg()
201 lseg->oc.numdevs = numdevs; in __alloc_objio_seg()
202 lseg->oc.single_comp = EC_MULTPLE_COMPS; in __alloc_objio_seg()
203 lseg->oc.ods = (void *)(lseg + 1); in __alloc_objio_seg()
204 lseg->oc.comps = (void *)(lseg->oc.ods + numdevs); in __alloc_objio_seg()
243 objio_seg->oc.first_dev = layout.olo_comps_index; in objio_alloc_lseg()
[all …]
/linux-4.4.14/include/linux/
Doom.h81 extern void oom_kill_process(struct oom_control *oc, struct task_struct *p,
85 extern void check_panic_on_oom(struct oom_control *oc,
89 extern enum oom_scan_t oom_scan_process_thread(struct oom_control *oc,
92 extern bool out_of_memory(struct oom_control *oc);
/linux-4.4.14/arch/arm/mach-omap2/
Ddisplay.c523 struct omap_hwmod_opt_clk *oc; in omap_dss_reset() local
532 for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) in omap_dss_reset()
533 if (oc->_clk) in omap_dss_reset()
534 clk_prepare_enable(oc->_clk); in omap_dss_reset()
559 for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) in omap_dss_reset()
560 if (oc->_clk) in omap_dss_reset()
561 clk_disable_unprepare(oc->_clk); in omap_dss_reset()
Domap_hwmod.c865 struct omap_hwmod_opt_clk *oc; in _init_opt_clks() local
870 for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) { in _init_opt_clks()
871 c = clk_get(NULL, oc->clk); in _init_opt_clks()
874 oh->name, oc->clk); in _init_opt_clks()
878 oc->_clk = c; in _init_opt_clks()
887 clk_prepare(oc->_clk); in _init_opt_clks()
895 struct omap_hwmod_opt_clk *oc; in _enable_optional_clocks() local
900 for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) in _enable_optional_clocks()
901 if (oc->_clk) { in _enable_optional_clocks()
902 pr_debug("omap_hwmod: enable %s:%s\n", oc->role, in _enable_optional_clocks()
[all …]
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
Dbfa_cs.h47 #define bfa_fsm_state_decl(oc, st, otype, etype) \ argument
48 static void oc ## _sm_ ## st(otype * fsm, etype event); \
49 static void oc ## _sm_ ## st ## _entry(otype * fsm)
/linux-4.4.14/arch/arm/boot/dts/
Dstih410-pinctrl.dtsi18 usb-oc-detect = <&pio35 0 ALT1 IN>;
27 usb-oc-detect = <&pio35 2 ALT1 IN>;
Dstih416-pinctrl.dtsi153 oc-detect = <&pio40 0 ALT1 IN>;
364 oc-detect = <&pio9 4 ALT1 IN>;
563 oc-detect = <&pio18 0 ALT1 IN>;
569 oc-detect = <&pio18 2 ALT1 IN>;
Dkirkwood-openblocks_a6.dts80 pmx_usb_oc: pmx-usb-oc {
Dkirkwood-openblocks_a7.dts98 pmx_usb_oc: pmx-usb-oc {
Dstih407-pinctrl.dtsi1023 usb-oc-detect = <&pio35 4 ALT1 IN>;
/linux-4.4.14/drivers/scsi/bfa/
Dbfa_cs.h227 #define bfa_sm_state_decl(oc, st, otype, etype) \ argument
228 static void oc ## _sm_ ## st(otype * fsm, etype event)
256 #define bfa_fsm_state_decl(oc, st, otype, etype) \ argument
257 static void oc ## _sm_ ## st(otype * fsm, etype event); \
258 static void oc ## _sm_ ## st ## _entry(otype * fsm)
/linux-4.4.14/Documentation/devicetree/bindings/usb/
Dpxa-usb.txt18 - "marvell,no-oc-protection" - disable over-current protection.
19 - "marvell,oc-mode-perport" - enable per-port over-current protection.
Datmel-usb.txt18 - atmel,oc-gpio: If present, specifies a gpio that needs to be
/linux-4.4.14/drivers/block/drbd/
Ddrbd_state.c690 is_valid_conn_transition(enum drbd_conns oc, enum drbd_conns nc) in is_valid_conn_transition() argument
693 if (oc == nc) in is_valid_conn_transition()
697 if (oc == C_STANDALONE && nc == C_DISCONNECTING) in is_valid_conn_transition()
701 if (oc == C_STANDALONE && nc != C_UNCONNECTED) in is_valid_conn_transition()
706 if (oc < C_WF_REPORT_PARAMS && nc >= C_CONNECTED) in is_valid_conn_transition()
710 if (oc >= C_TIMEOUT && oc <= C_TEAR_DOWN && nc != C_UNCONNECTED && nc != C_DISCONNECTING) in is_valid_conn_transition()
714 if (oc == C_DISCONNECTING && nc != C_STANDALONE) in is_valid_conn_transition()
1570 enum drbd_conns oc; member
1582 enum drbd_conns oc = acscw->oc; in w_after_conn_state_ch() local
1590 if (oc == C_STANDALONE && ns_max.conn == C_UNCONNECTED) in w_after_conn_state_ch()
[all …]
Ddrbd_receiver.c4651 enum drbd_conns oc; in conn_disconnect() local
4691 oc = connection->cstate; in conn_disconnect()
4692 if (oc >= C_UNCONNECTED) in conn_disconnect()
4697 if (oc == C_DISCONNECTING) in conn_disconnect()
/linux-4.4.14/drivers/s390/block/
Dscm_blk_cluster.c148 msb->oc = MSB_OC_READ; in scm_prepare_cluster_request()
174 msb->oc = MSB_OC_WRITE; in scm_prepare_cluster_request()
Dscm_blk.c199 msb->oc = (rq_data_dir(req) == READ) ? MSB_OC_READ : MSB_OC_WRITE; in scm_request_prepare()
/linux-4.4.14/arch/powerpc/boot/dts/
Deiger.dts326 has-inverted-stacr-oc;
356 has-inverted-stacr-oc;
386 has-inverted-stacr-oc;
416 has-inverted-stacr-oc;
Darches.dts291 has-inverted-stacr-oc;
320 has-inverted-stacr-oc;
349 has-inverted-stacr-oc;
Dklondike.dts187 has-inverted-stacr-oc;
217 has-inverted-stacr-oc;
Dglacier.dts363 has-inverted-stacr-oc;
393 has-inverted-stacr-oc;
423 has-inverted-stacr-oc;
453 has-inverted-stacr-oc;
Dobs600.dts270 has-inverted-stacr-oc;
300 has-inverted-stacr-oc;
Drainier.dts283 has-inverted-stacr-oc;
312 has-inverted-stacr-oc;
Dsequoia.dts341 has-inverted-stacr-oc;
370 has-inverted-stacr-oc;
Dmakalu.dts236 has-inverted-stacr-oc;
266 has-inverted-stacr-oc;
Dkilauea.dts290 has-inverted-stacr-oc;
320 has-inverted-stacr-oc;
Dcanyonlands.dts386 has-inverted-stacr-oc;
416 has-inverted-stacr-oc;
Dhaleakala.dts235 has-inverted-stacr-oc;
Dbluestone.dts338 has-inverted-stacr-oc;
Dredwood.dts234 has-inverted-stacr-oc;
Dakebono.dts204 has-inverted-stacr-oc;
Dicon.dts281 has-inverted-stacr-oc;
Dkatmai.dts271 has-inverted-stacr-oc;
/linux-4.4.14/arch/s390/include/asm/
Deadm.h41 u8 oc:4; member
Dpci_clp.h149 u8 oc; /* operation controls */ member
/linux-4.4.14/Documentation/devicetree/bindings/mfd/
Das3722.txt73 voltage-in-standby, oc-pg-sd0, oc-pg-sd6,
/linux-4.4.14/drivers/pinctrl/
Dpinctrl-as3722.c146 FUNCTION_GROUP(oc-pg-sd0, OC_PG_SD0),
147 FUNCTION_GROUP(oc-pg-sd6, OC_PG_SD6),
/linux-4.4.14/drivers/s390/cio/
Dchsc.h223 u8 oc; member
Dchsc.c1321 brinfo_area->oc = 0; /* Store-network-bridging-information list */ in chsc_pnso_brinfo()
/linux-4.4.14/security/selinux/ss/
Dservices.c1857 struct ocontext *oc; in convert_context() local
1949 oc = args->newp->ocontexts[OCON_ISID]; in convert_context()
1950 while (oc && oc->sid[0] != SECINITSID_UNLABELED) in convert_context()
1951 oc = oc->next; in convert_context()
1953 if (!oc) { in convert_context()
1958 range = &oc->context[0].range; in convert_context()
/linux-4.4.14/drivers/tty/
Dsysrq.c357 struct oom_control oc = { in moom_callback() local
365 if (!out_of_memory(&oc)) in moom_callback()
/linux-4.4.14/sound/pci/echoaudio/
Dechoaudio.c503 int oc; in pcm_close() local
510 oc = atomic_read(&chip->opencount); in pcm_close()
511 dev_dbg(chip->card->dev, "pcm_close oc=%d cs=%d rs=%d\n", oc, in pcm_close()
513 if (oc < 2) in pcm_close()
515 if (oc == 0) in pcm_close()
517 dev_dbg(chip->card->dev, "pcm_close2 oc=%d cs=%d rs=%d\n", oc, in pcm_close()
/linux-4.4.14/drivers/spi/
DMakefile55 obj-$(CONFIG_SPI_OC_TINY) += spi-oc-tiny.o
/linux-4.4.14/arch/s390/pci/
Dpci_clp.c214 rrb->request.oc = command; in clp_set_pci_fn()
/linux-4.4.14/fs/nfsd/
Dxdr4.h689 struct nfsd4_compound_state *, struct nfsd4_open_confirm *oc);
Dnfs4state.c5016 struct nfsd4_open_confirm *oc) in nfsd4_open_confirm() argument
5031 oc->oc_seqid, &oc->oc_req_stateid, in nfsd4_open_confirm()
5042 nfs4_inc_and_copy_stateid(&oc->oc_resp_stateid, &stp->st_stid); in nfsd4_open_confirm()
5045 __func__, oc->oc_seqid, STATEID_VAL(&stp->st_stid.sc_stateid)); in nfsd4_open_confirm()
Dnfs4xdr.c3319 …4_encode_open_confirm(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open_confirm *oc) in nfsd4_encode_open_confirm() argument
3324 nfserr = nfsd4_encode_stateid(xdr, &oc->oc_resp_stateid); in nfsd4_encode_open_confirm()
/linux-4.4.14/fs/dlm/
Dlock.c5269 int error = 0, mstype, err, oc, ou; in dlm_recover_waiters_post() local
5287 oc = is_overlap_cancel(lkb); in dlm_recover_waiters_post()
5295 dlm_dir_nodeid(r), oc, ou); in dlm_recover_waiters_post()
5311 if (oc || ou) { in dlm_recover_waiters_post()
5321 if (oc) { in dlm_recover_waiters_post()
5351 dlm_dir_nodeid(r), oc, ou); in dlm_recover_waiters_post()
/linux-4.4.14/Documentation/filesystems/
Dcoda.txt511 44..22.. TThhee ppiiooccttll iinntteerrffaaccee
1058 44..1177.. iiooccttll