Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 161) sorted by relevance

1234567

/drivers/thunderbolt/
Dpath.c37 struct tb_path *path = kzalloc(sizeof(*path), GFP_KERNEL); in tb_path_alloc() local
38 if (!path) in tb_path_alloc()
40 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_alloc()
41 if (!path->hops) { in tb_path_alloc()
42 kfree(path); in tb_path_alloc()
45 path->tb = tb; in tb_path_alloc()
46 path->path_length = num_hops; in tb_path_alloc()
47 return path; in tb_path_alloc()
53 void tb_path_free(struct tb_path *path) in tb_path_free() argument
55 if (path->activated) { in tb_path_free()
[all …]
Dtunnel_pci.c31 static void tb_pci_init_path(struct tb_path *path) in tb_pci_init_path() argument
33 path->egress_fc_enable = TB_PATH_SOURCE | TB_PATH_INTERNAL; in tb_pci_init_path()
34 path->egress_shared_buffer = TB_PATH_NONE; in tb_pci_init_path()
35 path->ingress_fc_enable = TB_PATH_ALL; in tb_pci_init_path()
36 path->ingress_shared_buffer = TB_PATH_NONE; in tb_pci_init_path()
37 path->priority = 3; in tb_pci_init_path()
38 path->weight = 1; in tb_pci_init_path()
39 path->drop_packages = 0; in tb_pci_init_path()
40 path->nfc_credits = 0; in tb_pci_init_path()
/drivers/video/fbdev/mmp/
Dcore.c28 static struct mmp_overlay *path_get_overlay(struct mmp_path *path, in path_get_overlay() argument
31 if (path && overlay_id < path->overlay_num) in path_get_overlay()
32 return &path->overlays[overlay_id]; in path_get_overlay()
36 static int path_check_status(struct mmp_path *path) in path_check_status() argument
39 for (i = 0; i < path->overlay_num; i++) in path_check_status()
40 if (path->overlays[i].status) in path_check_status()
53 static int path_get_modelist(struct mmp_path *path, in path_get_modelist() argument
56 BUG_ON(!path || !modelist); in path_get_modelist()
58 if (path->panel && path->panel->get_modelist) in path_get_modelist()
59 return path->panel->get_modelist(path->panel, modelist); in path_get_modelist()
[all …]
/drivers/video/fbdev/mmp/hw/
Dmmp_ctrl.c135 struct mmp_path *path = overlay->path; in dmafetch_set_fmt() local
136 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt()
139 writel_relaxed(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt()
144 struct lcd_regs *regs = path_regs(overlay->path); in overlay_set_win()
177 struct mmp_path *path = overlay->path; in dmafetch_onoff() local
180 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff()
183 writel(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff()
187 static void path_enabledisable(struct mmp_path *path, int on) in path_enabledisable() argument
190 mutex_lock(&path->access_ok); in path_enabledisable()
191 tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path)); in path_enabledisable()
[all …]
/drivers/infiniband/ulp/ipoib/
Dipoib_main.c78 struct ipoib_path path; member
285 struct ipoib_path *path; in __path_find() local
289 path = rb_entry(n, struct ipoib_path, rb_node); in __path_find()
291 ret = memcmp(gid, path->pathrec.dgid.raw, in __path_find()
299 return path; in __path_find()
305 static int __path_add(struct net_device *dev, struct ipoib_path *path) in __path_add() argument
317 ret = memcmp(path->pathrec.dgid.raw, tpath->pathrec.dgid.raw, in __path_add()
327 rb_link_node(&path->rb_node, pn, n); in __path_add()
328 rb_insert_color(&path->rb_node, &priv->path_tree); in __path_add()
330 list_add_tail(&path->list, &priv->path_list); in __path_add()
[all …]
Dipoib_fs.c200 struct ipoib_path path; in ipoib_path_seq_show() local
206 ipoib_path_iter_read(iter, &path); in ipoib_path_seq_show()
208 format_gid(&path.pathrec.dgid, gid_buf); in ipoib_path_seq_show()
213 gid_buf, path.pathrec.dlid ? "yes" : "no"); in ipoib_path_seq_show()
215 if (path.pathrec.dlid) { in ipoib_path_seq_show()
216 rate = ib_rate_to_mbps(path.pathrec.rate); in ipoib_path_seq_show()
222 be16_to_cpu(path.pathrec.dlid), in ipoib_path_seq_show()
223 path.pathrec.sl, in ipoib_path_seq_show()
/drivers/isdn/hardware/eicon/
Dmaintidi.c857 const char *path = (char *)&pVar->path_length + 1; in process_idi_event() local
861 if (!strncmp("State\\B Event", path, pVar->path_length)) { in process_idi_event()
877 if (!strncmp("State\\FAX Event", path, pVar->path_length)) { in process_idi_event()
893 if (!strncmp("State\\Modem Event", path, pVar->path_length)) { in process_idi_event()
942 if (!strncmp("Events Down", path, pVar->path_length)) { in process_idi_event()
951 if (!strncmp("State\\Layer1", path, pVar->path_length)) { in process_idi_event()
960 if (!strncmp("State\\Layer2 No1", path, pVar->path_length)) { in process_idi_event()
1020 if (!strncmp("Statistics\\Incoming Calls\\Calls", path, pVar->path_length) || in process_idi_event()
1021 !strncmp("Statistics\\Incoming Calls\\Connected", path, pVar->path_length)) { in process_idi_event()
1025 if (!strncmp("Statistics\\Outgoing Calls\\Calls", path, pVar->path_length) || in process_idi_event()
[all …]
/drivers/base/
Ddevtmpfs.c153 struct path path; in dev_mkdir() local
156 dentry = kern_path_create(AT_FDCWD, name, &path, LOOKUP_DIRECTORY); in dev_mkdir()
160 err = vfs_mkdir(path.dentry->d_inode, dentry, mode); in dev_mkdir()
164 done_path_create(&path, dentry); in dev_mkdir()
170 char *path; in create_path() local
175 path = kstrdup(nodepath, GFP_KERNEL); in create_path()
176 if (!path) in create_path()
179 s = path; in create_path()
185 err = dev_mkdir(path, 0755); in create_path()
191 kfree(path); in create_path()
[all …]
/drivers/md/
Ddm-queue-length.c36 struct dm_path *path; member
84 static int ql_status(struct path_selector *ps, struct dm_path *path, in ql_status() argument
91 if (!path) in ql_status()
94 pi = path->pscontext; in ql_status()
109 static int ql_add_path(struct path_selector *ps, struct dm_path *path, in ql_add_path() argument
139 pi->path = path; in ql_add_path()
143 path->pscontext = pi; in ql_add_path()
150 static void ql_fail_path(struct path_selector *ps, struct dm_path *path) in ql_fail_path() argument
153 struct path_info *pi = path->pscontext; in ql_fail_path()
158 static int ql_reinstate_path(struct path_selector *ps, struct dm_path *path) in ql_reinstate_path() argument
[all …]
Ddm-service-time.c31 struct dm_path *path; member
80 static int st_status(struct path_selector *ps, struct dm_path *path, in st_status() argument
86 if (!path) in st_status()
89 pi = path->pscontext; in st_status()
106 static int st_add_path(struct path_selector *ps, struct dm_path *path, in st_add_path() argument
151 pi->path = path; in st_add_path()
156 path->pscontext = pi; in st_add_path()
163 static void st_fail_path(struct path_selector *ps, struct dm_path *path) in st_fail_path() argument
166 struct path_info *pi = path->pscontext; in st_fail_path()
171 static int st_reinstate_path(struct path_selector *ps, struct dm_path *path) in st_reinstate_path() argument
[all …]
Ddm-round-robin.c26 struct dm_path *path; member
85 static int rr_status(struct path_selector *ps, struct dm_path *path, in rr_status() argument
91 if (!path) in rr_status()
98 pi = path->pscontext; in rr_status()
111 static int rr_add_path(struct path_selector *ps, struct dm_path *path, in rr_add_path() argument
137 pi->path = path; in rr_add_path()
140 path->pscontext = pi; in rr_add_path()
177 return pi ? pi->path : NULL; in rr_select_path()
Ddm-mpath.c38 struct dm_path path; member
42 #define path_to_pgpath(__pgp) container_of((__pgp), struct pgpath, path)
166 scsi_dh_detach(bdev_get_queue(pgpath->path.dev->bdev)); in free_pgpaths()
167 dm_put_device(ti, pgpath->path.dev); in free_pgpaths()
301 struct dm_path *path; in __choose_path_in_pg() local
303 path = pg->ps.type->select_path(&pg->ps, &m->repeat_count, nr_bytes); in __choose_path_in_pg()
304 if (!path) in __choose_path_in_pg()
307 m->current_pgpath = path_to_pgpath(path); in __choose_path_in_pg()
414 bdev = pgpath->path.dev->bdev; in multipath_map()
423 &pgpath->path, in multipath_map()
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb_nl.c73 if (dst->path[tx].prio_type != src->path[tx].prio_type) { in ixgbe_copy_dcb_cfg()
74 dst->path[tx].prio_type = src->path[tx].prio_type; in ixgbe_copy_dcb_cfg()
78 if (dst->path[tx].bwg_id != src->path[tx].bwg_id) { in ixgbe_copy_dcb_cfg()
79 dst->path[tx].bwg_id = src->path[tx].bwg_id; in ixgbe_copy_dcb_cfg()
83 if (dst->path[tx].bwg_percent != src->path[tx].bwg_percent) { in ixgbe_copy_dcb_cfg()
84 dst->path[tx].bwg_percent = src->path[tx].bwg_percent; in ixgbe_copy_dcb_cfg()
88 if (dst->path[tx].up_to_tc_bitmap != in ixgbe_copy_dcb_cfg()
89 src->path[tx].up_to_tc_bitmap) { in ixgbe_copy_dcb_cfg()
90 dst->path[tx].up_to_tc_bitmap = in ixgbe_copy_dcb_cfg()
91 src->path[tx].up_to_tc_bitmap; in ixgbe_copy_dcb_cfg()
[all …]
/drivers/xen/xenbus/
Dxenbus_xs.c390 char *strings, *path; in xenbus_directory() local
393 path = join(dir, node); in xenbus_directory()
394 if (IS_ERR(path)) in xenbus_directory()
395 return (char **)path; in xenbus_directory()
397 strings = xs_single(t, XS_DIRECTORY, path, &len); in xenbus_directory()
398 kfree(path); in xenbus_directory()
428 char *path; in xenbus_read() local
431 path = join(dir, node); in xenbus_read()
432 if (IS_ERR(path)) in xenbus_read()
433 return (void *)path; in xenbus_read()
[all …]
/drivers/staging/lustre/lustre/include/linux/
Dlustre_compat25.h51 struct path path; in ll_set_fs_pwd() local
52 struct path old_pwd; in ll_set_fs_pwd()
54 path.mnt = mnt; in ll_set_fs_pwd()
55 path.dentry = dentry; in ll_set_fs_pwd()
58 path_get(&path); in ll_set_fs_pwd()
59 fs->pwd = path; in ll_set_fs_pwd()
117 #define cfs_path_put(nd) path_put(&(nd)->path)
132 struct path path; in ll_quota_on() local
134 rc = kern_path(name, LOOKUP_FOLLOW, &path); in ll_quota_on()
138 , &path in ll_quota_on()
[all …]
/drivers/tty/hvc/
Dhvc_iucv.c69 struct iucv_path *path; /* IUCV path pointer */ member
248 rc = __iucv_message_receive(priv->path, &rb->msg, 0, in hvc_iucv_write()
413 rc = __iucv_message_send(priv->path, &sb->msg, 0, 0, in hvc_iucv_send()
590 struct iucv_path *path; in hvc_iucv_hangup() local
592 path = NULL; in hvc_iucv_hangup()
595 path = priv->path; in hvc_iucv_hangup()
596 priv->path = NULL; in hvc_iucv_hangup()
611 if (path) { in hvc_iucv_hangup()
612 iucv_path_sever(path, NULL); in hvc_iucv_hangup()
613 iucv_path_free(path); in hvc_iucv_hangup()
[all …]
/drivers/net/wireless/rtlwifi/rtl8821ae/
Dphy.c765 u8 band, u8 path, in _rtl8821ae_phy_set_txpower_by_rate_base() argument
772 if (path > RF90_PATH_D) { in _rtl8821ae_phy_set_txpower_by_rate_base()
774 "Invalid Rf Path %d in phy_SetTxPowerByRatBase()\n", path); in _rtl8821ae_phy_set_txpower_by_rate_base()
781 rtlphy->txpwr_by_rate_base_24g[path][txnum][0] = value; in _rtl8821ae_phy_set_txpower_by_rate_base()
784 rtlphy->txpwr_by_rate_base_24g[path][txnum][1] = value; in _rtl8821ae_phy_set_txpower_by_rate_base()
787 rtlphy->txpwr_by_rate_base_24g[path][txnum][2] = value; in _rtl8821ae_phy_set_txpower_by_rate_base()
790 rtlphy->txpwr_by_rate_base_24g[path][txnum][3] = value; in _rtl8821ae_phy_set_txpower_by_rate_base()
793 rtlphy->txpwr_by_rate_base_24g[path][txnum][4] = value; in _rtl8821ae_phy_set_txpower_by_rate_base()
796 rtlphy->txpwr_by_rate_base_24g[path][txnum][5] = value; in _rtl8821ae_phy_set_txpower_by_rate_base()
801 rate_section, path, txnum); in _rtl8821ae_phy_set_txpower_by_rate_base()
[all …]
/drivers/s390/char/
Dmonreader.c48 struct iucv_path *path; member
154 rc = iucv_message_reply(monpriv->path, &monmsg->msg, in mon_send_reply()
232 static void mon_iucv_path_complete(struct iucv_path *path, u8 ipuser[16]) in mon_iucv_path_complete() argument
234 struct mon_private *monpriv = path->private; in mon_iucv_path_complete()
240 static void mon_iucv_path_severed(struct iucv_path *path, u8 ipuser[16]) in mon_iucv_path_severed() argument
242 struct mon_private *monpriv = path->private; in mon_iucv_path_severed()
246 iucv_path_sever(path, NULL); in mon_iucv_path_severed()
252 static void mon_iucv_message_pending(struct iucv_path *path, in mon_iucv_message_pending() argument
255 struct mon_private *monpriv = path->private; in mon_iucv_message_pending()
297 monpriv->path = iucv_path_alloc(MON_MSGLIM, IUCV_IPRMDATA, GFP_KERNEL); in mon_open()
[all …]
Dvmlogrdr.c65 struct iucv_path *path; member
163 static void vmlogrdr_iucv_path_complete(struct iucv_path *path, u8 ipuser[16]) in vmlogrdr_iucv_path_complete() argument
165 struct vmlogrdr_priv_t * logptr = path->private; in vmlogrdr_iucv_path_complete()
174 static void vmlogrdr_iucv_path_severed(struct iucv_path *path, u8 ipuser[16]) in vmlogrdr_iucv_path_severed() argument
176 struct vmlogrdr_priv_t * logptr = path->private; in vmlogrdr_iucv_path_severed()
181 iucv_path_sever(path, NULL); in vmlogrdr_iucv_path_severed()
182 kfree(path); in vmlogrdr_iucv_path_severed()
183 logptr->path = NULL; in vmlogrdr_iucv_path_severed()
196 static void vmlogrdr_iucv_message_pending(struct iucv_path *path, in vmlogrdr_iucv_message_pending() argument
199 struct vmlogrdr_priv_t * logptr = path->private; in vmlogrdr_iucv_message_pending()
[all …]
/drivers/acpi/acpica/
Dnsaccess.c289 char *path = pathname; in acpi_ns_lookup() local
359 path = ""; in acpi_ns_lookup()
378 if (*path == (u8) AML_ROOT_PREFIX) { in acpi_ns_lookup()
387 path++; in acpi_ns_lookup()
406 while (*path == (u8) AML_PARENT_PREFIX) { in acpi_ns_lookup()
416 path++; in acpi_ns_lookup()
455 switch (*path) { in acpi_ns_lookup()
478 path++; in acpi_ns_lookup()
493 path++; in acpi_ns_lookup()
494 num_segments = (u32) (u8) * path; in acpi_ns_lookup()
[all …]
Duteval.c72 char *path, in acpi_ut_evaluate_object() argument
90 info->relative_pathname = path; in acpi_ut_evaluate_object()
100 path)); in acpi_ut_evaluate_object()
103 prefix_node, path, status); in acpi_ut_evaluate_object()
114 prefix_node, path, AE_NOT_EXIST); in acpi_ut_evaluate_object()
165 prefix_node, path, AE_TYPE); in acpi_ut_evaluate_object()
169 path, in acpi_ut_evaluate_object()
Ddswload.c147 char *path; in acpi_ds_load1_begin_op() local
172 path = acpi_ps_get_next_namestring(&walk_state->parser_state); in acpi_ds_load1_begin_op()
190 acpi_ns_lookup(walk_state->scope_info, path, object_type, in acpi_ds_load1_begin_op()
200 acpi_dm_add_op_to_external_list(op, path, in acpi_ds_load1_begin_op()
203 acpi_ns_lookup(walk_state->scope_info, path, in acpi_ds_load1_begin_op()
210 ACPI_ERROR_NAMESPACE(path, status); in acpi_ds_load1_begin_op()
335 acpi_ns_lookup(walk_state->scope_info, path, object_type, in acpi_ds_load1_begin_op()
369 ACPI_ERROR_NAMESPACE(path, status); in acpi_ds_load1_begin_op()
391 op->named.path = ACPI_CAST_PTR(u8, path); in acpi_ds_load1_begin_op()
/drivers/net/wireless/rtlwifi/rtl8723be/
Dhw.c1762 u32 path, addr = EEPROM_TX_PWR_INX, group, cnt = 0; in _rtl8723be_read_power_value_fromprom() local
1773 for (path = 0; path < MAX_RF_PATH; path++) { in _rtl8723be_read_power_value_fromprom()
1776 pw2g->index_cck_base[path][group] = 0x2D; in _rtl8723be_read_power_value_fromprom()
1777 pw2g->index_bw40_base[path][group] = 0x2D; in _rtl8723be_read_power_value_fromprom()
1781 pw2g->bw20_diff[path][0] = 0x02; in _rtl8723be_read_power_value_fromprom()
1782 pw2g->ofdm_diff[path][0] = 0x04; in _rtl8723be_read_power_value_fromprom()
1784 pw2g->bw20_diff[path][cnt] = 0xFE; in _rtl8723be_read_power_value_fromprom()
1785 pw2g->bw40_diff[path][cnt] = 0xFE; in _rtl8723be_read_power_value_fromprom()
1786 pw2g->cck_diff[path][cnt] = 0xFE; in _rtl8723be_read_power_value_fromprom()
1787 pw2g->ofdm_diff[path][cnt] = 0xFE; in _rtl8723be_read_power_value_fromprom()
[all …]
/drivers/s390/net/
Dnetiucv.c191 struct iucv_path *path; member
533 static void netiucv_callback_rx(struct iucv_path *path, in netiucv_callback_rx() argument
536 struct iucv_connection *conn = path->private; in netiucv_callback_rx()
544 static void netiucv_callback_txdone(struct iucv_path *path, in netiucv_callback_txdone() argument
547 struct iucv_connection *conn = path->private; in netiucv_callback_txdone()
555 static void netiucv_callback_connack(struct iucv_path *path, u8 ipuser[16]) in netiucv_callback_connack() argument
557 struct iucv_connection *conn = path->private; in netiucv_callback_connack()
562 static int netiucv_callback_connreq(struct iucv_path *path, in netiucv_callback_connreq() argument
565 struct iucv_connection *conn = path->private; in netiucv_callback_connreq()
581 conn->path = path; in netiucv_callback_connreq()
[all …]
/drivers/staging/rts5208/
Dtrace.h30 static inline char *filename(char *path) in filename() argument
34 if (path == NULL) in filename()
37 ptr = path; in filename()
41 path = ptr + 1; in filename()
46 return path; in filename()

1234567