Searched refs:res (Results 201 - 225 of 3701) sorted by relevance

1234567891011>>

/linux-master/drivers/gpu/drm/display/
H A Ddrm_dp_aux_dev.c108 ssize_t res; local
115 res = sprintf(buf, "%s\n", aux_dev->aux->name);
118 return res;
150 ssize_t res = 0; local
162 res = -ERESTARTSYS;
166 res = drm_dp_dpcd_read(aux_dev->aux, pos, buf, todo);
168 if (res <= 0)
171 if (copy_to_iter(buf, res, to) != res) {
172 res
193 ssize_t res = 0; local
306 int res; local
331 int res; local
[all...]
/linux-master/fs/bcachefs/
H A Djournal.h194 journal_res_entry(struct journal *j, struct journal_res *res) argument
196 return vstruct_idx(j->buf[res->idx].data, res->offset);
224 bch2_journal_add_entry(struct journal *j, struct journal_res *res, argument
228 struct jset_entry *entry = journal_res_entry(j, res);
231 EBUG_ON(!res->ref);
232 EBUG_ON(actual > res->u64s);
234 res->offset += actual;
235 res->u64s -= actual;
296 struct journal_res *res)
295 bch2_journal_res_put(struct journal *j, struct journal_res *res) argument
325 journal_res_get_fast(struct journal *j, struct journal_res *res, unsigned flags) argument
369 bch2_journal_res_get(struct journal *j, struct journal_res *res, unsigned u64s, unsigned flags) argument
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Drbtree_fail.c76 struct bpf_rb_node *res; local
92 res = bpf_rbtree_remove(&groot, &n->node);
93 n = container_of(res, struct node_data, node);
96 res = bpf_rbtree_remove(&groot, &m->node);
97 m = container_of(res, struct node_data, node);
111 struct bpf_rb_node *res; local
115 res = bpf_rbtree_first(&groot);
116 if (!res)
119 res = bpf_rbtree_remove(&groot, res);
158 struct bpf_rb_node *res; local
208 struct bpf_rb_node *res; local
[all...]
/linux-master/drivers/mfd/
H A Dntxec.c39 int res; local
52 res = i2c_transfer(poweroff_restart_client->adapter, msgs, ARRAY_SIZE(msgs));
53 if (res < 0)
55 "Failed to power off (err = %d)\n", res);
68 int res; local
86 res = i2c_transfer(poweroff_restart_client->adapter, msgs, ARRAY_SIZE(msgs));
87 if (res < 0)
89 "Failed to restart (err = %d)\n", res);
152 int res; local
169 res
[all...]
/linux-master/security/apparmor/
H A Dpath.c91 char *res; local
99 res = dentry_path(path->dentry, buf, buflen);
100 *name = res;
101 if (IS_ERR(res)) {
103 return PTR_ERR(res);
122 res = __d_path(path, &root, buf, buflen);
125 res = d_absolute_path(path, buf, buflen);
133 if (!res || IS_ERR(res)) {
134 if (PTR_ERR(res)
[all...]
/linux-master/drivers/i2c/busses/
H A Di2c-pxa-pci.c27 struct resource res[2]; local
33 memset(&res, 0, sizeof(res));
35 res[0].flags = IORESOURCE_MEM;
36 res[0].start = pci_resource_start(dev, bar);
37 res[0].end = pci_resource_end(dev, bar);
39 res[1].flags = IORESOURCE_IRQ;
40 res[1].start = dev->irq;
41 res[1].end = dev->irq;
51 if (r.start != res[
[all...]
/linux-master/drivers/hid/
H A Dhid-uclogic-params-test.c17 int res; member in struct:uclogic_parse_ugee_v2_desc_case
27 .res = -EINVAL,
35 .res = 0,
59 .res = 0,
83 .res = 0,
107 .res = 0,
141 int res; local
146 res = uclogic_params_parse_ugee_v2_desc(params->str_desc,
151 KUNIT_ASSERT_EQ(test, res, params->res);
183 int res, n; local
[all...]
/linux-master/drivers/acpi/
H A Dacpi_watchdog.c134 struct resource res = {}; local
139 res.start = gas->address;
140 res.end = res.start + ACPI_ACCESS_BYTE_WIDTH(gas->access_width) - 1;
142 res.flags = IORESOURCE_MEM;
144 res.flags = IORESOURCE_IO;
153 if (rentry->res->flags == res.flags &&
154 resource_union(rentry->res, &res, rentr
[all...]
/linux-master/arch/mips/ath25/
H A Ddevices.c94 struct resource *res; local
97 res = &ath25_wmac[nr].resource[0];
98 res->start = base;
99 res->end = base + 0x10000 - 1;
100 res++;
101 res->start = irq;
102 res->end = irq;
/linux-master/drivers/net/ethernet/cisco/enic/
H A Denic_clsf.c23 int res; local
45 res = vnic_dev_classifier(enic->vdev, CLSF_ADD, &rq, &data);
47 res = (res == 0) ? rq : res;
49 return res;
129 bool res; local
140 res = rps_may_expire_flow(enic->netdev, n->rq_id,
142 if (res) {
143 res
178 int res, i; local
[all...]
/linux-master/arch/arm/lib/
H A Ddelay.c68 u64 res; local
72 res = cyc_to_ns(1ULL, new_mult, new_shift);
74 if (res > 1000) {
76 timer, res);
80 if (!delay_calibrated && (!delay_res || (res < delay_res))) {
81 pr_info("Switching to timer-based delay loop, resolution %lluns\n", res);
84 delay_res = res;
/linux-master/drivers/usb/host/
H A Dxhci-ext-caps.c34 struct resource res = { 0, }; local
44 res.start = hcd->rsrc_start + cap_offset;
45 res.end = res.start + USB_SW_RESOURCE_SIZE - 1;
46 res.name = USB_SW_DRV_NAME;
47 res.flags = IORESOURCE_MEM;
49 ret = platform_device_add_resources(pdev, &res, 1);
/linux-master/sound/soc/amd/raven/
H A Dpci-acp3x.c20 struct resource *res; member in struct:acp3x_dev_data
178 adata->res = devm_kzalloc(&pci->dev,
181 if (!adata->res) {
186 adata->res[0].name = "acp3x_i2s_iomem";
187 adata->res[0].flags = IORESOURCE_MEM;
188 adata->res[0].start = addr;
189 adata->res[0].end = addr + (ACP3x_REG_END - ACP3x_REG_START);
191 adata->res[1].name = "acp3x_i2s_sp";
192 adata->res[1].flags = IORESOURCE_MEM;
193 adata->res[
[all...]
/linux-master/lib/
H A Dusercopy.c13 unsigned long res = n; local
23 res = raw_copy_from_user(to, from, n);
24 instrument_copy_from_user_after(to, from, n, res);
26 if (unlikely(res))
27 memset(to + (n - res), 0, res);
28 return res;
/linux-master/arch/mips/ralink/
H A Dof.c58 struct resource res; local
65 if (of_address_to_resource(np, 0, &res))
68 if (!request_mem_region(res.start,
69 resource_size(&res),
70 res.name))
75 return ioremap(res.start, resource_size(&res));
/linux-master/arch/powerpc/platforms/powernv/
H A Dpci-sriov.c146 struct resource *res; local
159 res = &pdev->resource[i + PCI_IOV_RESOURCES];
160 if (!res->flags || res->parent)
162 if (!pnv_pci_is_m64_flags(res->flags)) {
164 i, res);
190 i, res);
202 pci_dbg(pdev, " Fixing VF BAR%d: %pR to\n", i, res);
203 res->end = res
420 struct resource *res; local
505 struct resource *res, res2; local
[all...]
/linux-master/drivers/vdpa/mlx5/core/
H A Dresources.c101 MLX5_SET(create_tis_in, in, uid, mvdev->res.uid);
114 MLX5_SET(destroy_tis_in, in, uid, mvdev->res.uid);
136 MLX5_SET(modify_rqt_in, in, uid, mvdev->res.uid);
147 MLX5_SET(destroy_rqt_in, in, uid, mvdev->res.uid);
170 MLX5_SET(destroy_tir_in, in, uid, mvdev->res.uid);
182 MLX5_SET(alloc_transport_domain_in, in, uid, mvdev->res.uid);
196 MLX5_SET(dealloc_transport_domain_in, in, uid, mvdev->res.uid);
209 MLX5_SET(create_mkey_in, in, uid, mvdev->res.uid);
224 MLX5_SET(destroy_mkey_in, in, uid, mvdev->res.uid);
250 struct mlx5_vdpa_resources *res local
310 struct mlx5_vdpa_resources *res = &mvdev->res; local
[all...]
/linux-master/drivers/thunderbolt/
H A Dctl.c238 struct tb_cfg_result res = { 0 }; local
239 res.response_route = tb_cfg_get_route(&pkg->header);
240 res.response_port = 0;
241 res.err = check_header(response, sizeof(*pkg), TB_CFG_PKG_ERROR,
243 if (res.err)
244 return res;
246 res.err = 1;
247 res.tb_error = pkg->error;
248 res.response_port = pkg->port;
249 return res;
257 struct tb_cfg_result res = { 0 }; local
268 tb_cfg_print_error(struct tb_ctl *ctl, const struct tb_cfg_result *res) argument
359 int res; local
606 struct tb_cfg_result res = { 0 }; local
868 struct tb_cfg_result res; local
894 struct tb_cfg_result res = { 0 }; local
937 struct tb_cfg_result res = { 0 }; local
1008 struct tb_cfg_result res = { 0 }; local
1062 tb_cfg_get_error(struct tb_ctl *ctl, enum tb_cfg_space space, const struct tb_cfg_result *res) argument
1088 struct tb_cfg_result res = tb_cfg_read_raw(ctl, buffer, route, port, local
1114 struct tb_cfg_result res = tb_cfg_write_raw(ctl, buffer, route, port, local
1151 struct tb_cfg_result res = tb_cfg_read_raw(ctl, &dummy, route, 0, local
[all...]
/linux-master/drivers/mtd/parsers/
H A Dscpart.c51 int res = 0; local
61 res = -ENOMEM;
67 res = -EIO;
85 res = -ENOMEM;
91 res = cnt;
98 return res;
105 int res = 0; local
116 res = -EIO;
122 res = scpart_scan_partmap(master, offs, ppdesc);
123 if (res >
146 int res = 0; local
[all...]
/linux-master/fs/ext4/
H A Dcrypto.c142 int res, res2, credits, retries = 0; local
159 res = ext4_convert_inline_data(inode);
160 if (res)
161 return res;
172 res = ext4_xattr_set_handle(handle, inode,
176 if (!res) {
186 return res;
189 res = dquot_initialize(inode);
190 if (res)
191 return res;
[all...]
/linux-master/drivers/firmware/qcom/
H A Dqcom_scm-smc.c37 struct arm_smccc_res *res)
47 quirk.state.a6, smc->args[7], res, &quirk);
49 if (res->a0 == QCOM_SCM_INTERRUPTED)
50 a0 = res->a0;
52 } while (res->a0 == QCOM_SCM_INTERRUPTED);
92 struct arm_smccc_res *res)
100 __scm_smc_do_quirk(smc, res);
102 if (res->a0 == QCOM_SCM_WAITQ_SLEEP) {
103 wq_ctx = res->a1;
104 smc_call_ctx = res
36 __scm_smc_do_quirk(const struct arm_smccc_args *smc, struct arm_smccc_res *res) argument
91 __scm_smc_do_quirk_handle_waitq(struct device *dev, struct arm_smccc_args *waitq, struct arm_smccc_res *res) argument
118 __scm_smc_do(struct device *dev, struct arm_smccc_args *smc, struct arm_smccc_res *res, bool atomic) argument
149 __scm_smc_call(struct device *dev, const struct qcom_scm_desc *desc, enum qcom_scm_convention qcom_convention, struct qcom_scm_res *res, bool atomic) argument
[all...]
/linux-master/drivers/pcmcia/
H A Dpcmcia_resource.c57 * @res: resource to release
60 static void release_io_space(struct pcmcia_socket *s, struct resource *res) argument
62 resource_size_t num = resource_size(res);
65 dev_dbg(&s->dev, "release_io_space for %pR\n", res);
68 if (!s->io[i].res)
70 if ((s->io[i].res->start <= res->start) &&
71 (s->io[i].res->end >= res->end)) {
73 if (res
96 alloc_io_space(struct pcmcia_socket *s, struct resource *res, unsigned int lines) argument
223 pcmcia_map_mem_page(struct pcmcia_device *p_dev, struct resource *res, unsigned int offset) argument
425 pcmcia_release_window(struct pcmcia_device *p_dev, struct resource *res) argument
833 pcmcia_request_window(struct pcmcia_device *p_dev, struct resource *res, unsigned int speed) argument
943 struct resource *res = p_dev->resource[MAX_IO_WIN + i]; local
[all...]
/linux-master/drivers/staging/nvec/
H A Dnvec_power.c89 struct bat_response *res = data; local
94 if (res->sub_type == 0) {
95 if (power->on != res->plu) {
96 power->on = res->plu;
125 struct bat_response *res = data; local
131 switch (res->sub_type) {
133 if (res->plc[0] & 1) {
141 switch ((res->plc[0] >> 1) & 3) {
164 power->bat_cap = res->plc[1];
169 power->bat_voltage_now = res
[all...]
/linux-master/fs/hfs/
H A Ddir.c26 int res; local
28 res = hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd);
29 if (res)
30 return ERR_PTR(res);
32 res = hfs_brec_read(&fd, &rec, sizeof(rec));
33 if (res) {
34 if (res != -ENOENT)
35 inode = ERR_PTR(res);
196 int res; local
202 res
226 int res; local
258 int res; local
287 int res; local
[all...]
/linux-master/net/mac80211/
H A Dfils_aead.c75 int res; local
91 res = crypto_shash_setkey(tfm, key, key_len);
92 if (!res)
93 res = aes_s2v(tfm, num_elem, addr, len, v);
95 if (res)
96 return res;
122 res = crypto_skcipher_setkey(tfm2, key + key_len, key_len);
123 if (res)
128 res = -ENOMEM;
135 res
154 int res; local
277 int res; local
[all...]

Completed in 264 milliseconds

1234567891011>>