/freebsd/bin/cp/ |
H A D | cp.c | 67 while ((p).p_end > (p).p_path + 1 && (p).p_end[-1] == '/') \ 73 PATH_T to = { to.p_path, emptystring, "" }; 180 if (strlcpy(to.p_path, target, sizeof(to.p_path)) >= sizeof(to.p_path)) in main() 182 to.p_end = to.p_path + strlen(to.p_path); in main() 183 if (to.p_path == to.p_end) { in main() 209 r = stat(to.p_path, &to_stat); in main() 211 err(1, "%s", to.p_path); in main() [all...] |
H A D | extern.h | 35 char p_path[PATH_MAX]; /* pointer to the start of a path */ member
|
/freebsd/contrib/ofed/opensm/include/opensm/ |
H A D | osm_path.h | 109 static inline void osm_dr_path_construct(IN osm_dr_path_t * p_path) in osm_dr_path_construct() argument 112 memset(p_path, 0, sizeof(*p_path)); in osm_dr_path_construct() 147 osm_dr_path_init(IN osm_dr_path_t * p_path, IN uint8_t hop_count, in osm_dr_path_init() argument 153 p_path->hop_count = hop_count; in osm_dr_path_init() 154 memcpy(p_path->path, path, hop_count + 1); in osm_dr_path_init() 187 static inline int osm_dr_path_extend(IN osm_dr_path_t * p_path, in osm_dr_path_extend() argument 190 p_path->hop_count++; in osm_dr_path_extend() 192 if (p_path->hop_count >= IB_SUBNET_PATH_HOPS_MAX) in osm_dr_path_extend() 197 p_path->path[p_path->hop_count] = port_num; in osm_dr_path_extend()
|
H A D | osm_sm.h | 403 ib_api_status_t osm_req_get(IN osm_sm_t * sm, IN const osm_dr_path_t * p_path, 475 osm_madw_t *osm_prepare_req_set(IN osm_sm_t * sm, IN const osm_dr_path_t * p_path, 529 ib_api_status_t osm_req_set(IN osm_sm_t * sm, IN const osm_dr_path_t * p_path,
|
H A D | osm_helper.h | 600 void osm_dump_dr_path(IN osm_log_t * p_log, IN const osm_dr_path_t * p_path, 603 void osm_dump_dr_path_v2(IN osm_log_t * p_log, IN const osm_dr_path_t * p_path, 625 void osm_dump_dr_path_as_buf(IN size_t max_len, IN const osm_dr_path_t * p_path,
|
/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_req.c | 67 IN const osm_dr_path_t * p_path) in req_determine_mkey() argument 82 if (p_path->hop_count == 0) { in req_determine_mkey() 90 p_physp = osm_node_get_physp_ptr(p_node, p_path->path[1]); in req_determine_mkey() 96 for (hop = 2; p_physp && hop <= p_path->hop_count; hop++) { in req_determine_mkey() 101 p_physp = osm_node_get_physp_ptr(p_node, p_path->path[hop]); in req_determine_mkey() 110 osm_dump_dr_path_v2(sm->p_log, p_path, FILE_ID, OSM_LOG_ERROR); in req_determine_mkey() 156 ib_api_status_t osm_req_get(IN osm_sm_t * sm, IN const osm_dr_path_t * p_path, in osm_req_get() argument 171 CL_ASSERT(p_path); in osm_req_get() 197 m_key_calc = req_determine_mkey(sm, p_path); in osm_req_get() 210 tid, attr_id, attr_mod, p_path->hop_count, in osm_req_get() [all …]
|
H A D | osm_trap_rcv.c | 380 osm_dr_path_t *p_path; in trap_rcv_process_request() local 583 p_path = (p_physp) ? in trap_rcv_process_request() 585 if (p_path) { in trap_rcv_process_request() 590 "Path = ", p_path->hop_count); in trap_rcv_process_request() 592 osm_dump_dr_path_as_buf(sizeof(buf) - n, p_path, in trap_rcv_process_request()
|
H A D | osm_port.c | 320 IN osm_dr_path_t const *p_path, in physp_get_dr_physp_set() argument 348 for (hop = 1; hop < p_path->hop_count - 1; hop++) { in physp_get_dr_physp_set() 350 p_physp = osm_node_get_physp_ptr(p_node, p_path->path[hop]); in physp_get_dr_physp_set() 369 p_path->path[hop]); in physp_get_dr_physp_set()
|
H A D | osm_mcast_mgr.c | 336 osm_dr_path_t *p_path; in mcast_mgr_set_mft_block() local 355 p_path = osm_physp_get_dr_path_ptr(p_physp); in mcast_mgr_set_mft_block() 377 status = osm_req_set(sm, p_path, (void *)block, sizeof(block), in mcast_mgr_set_mft_block() 1044 osm_dr_path_t *p_path; in mcast_mgr_set_mfttop() local 1061 p_path = osm_physp_get_dr_path_ptr(p_physp); in mcast_mgr_set_mfttop() 1093 status = osm_req_set(sm, p_path, (uint8_t *) & si, in mcast_mgr_set_mfttop()
|
H A D | osm_helper.c | 2863 static void osm_dump_dr_path_to_buf(IN const osm_dr_path_t * p_path, in osm_dump_dr_path_to_buf() argument 2866 if (!buf || !p_path) in osm_dump_dr_path_to_buf() 2872 "Path = ", p_path->hop_count); in osm_dump_dr_path_to_buf() 2874 sprint_uint8_arr(buf + n, buf_size - n, p_path->path, in osm_dump_dr_path_to_buf() 2875 p_path->hop_count + 1); in osm_dump_dr_path_to_buf() 2879 void osm_dump_dr_path(IN osm_log_t * p_log, IN const osm_dr_path_t * p_path, in osm_dump_dr_path() argument 2885 osm_dump_dr_path_to_buf(p_path, buf, BUF_SIZE); in osm_dump_dr_path() 2891 void osm_dump_dr_path_v2(IN osm_log_t * p_log, IN const osm_dr_path_t * p_path, in osm_dump_dr_path_v2() argument 2897 osm_dump_dr_path_to_buf(p_path, buf, BUF_SIZE); in osm_dump_dr_path_v2() 2948 IN const osm_dr_path_t * p_path, in osm_dump_dr_path_as_buf() argument [all …]
|
H A D | osm_ucast_mgr.c | 906 osm_dr_path_t *p_path; in ucast_mgr_set_fwd_top() local 931 p_path = osm_physp_get_dr_path_ptr(p_physp); in ucast_mgr_set_fwd_top() 959 status = osm_req_set(p_mgr->sm, p_path, (uint8_t *) & si, in ucast_mgr_set_fwd_top() 978 osm_dr_path_t *p_path; in set_lft_block() local 998 p_path = osm_physp_get_dr_path_ptr(p_physp); in set_lft_block() 1020 status = osm_req_set(p_mgr->sm, p_path, in set_lft_block()
|
H A D | osm_state_mgr.c | 650 osm_dr_path_t *p_path; in state_mgr_reset_state_change_bit() local 663 p_path = osm_physp_get_dr_path_ptr(p_physp); in state_mgr_reset_state_change_bit() 681 status = osm_req_set(sm, p_path, (uint8_t *) &si, in state_mgr_reset_state_change_bit()
|
/freebsd/usr.bin/netstat/ |
H A D | route_netlink.c | 163 p_path(struct snl_parsed_route *rt, bool is_mpath) in p_path() function 249 p_path(&rt, true); in p_rtentry_netlink() 265 p_path(&rt, false); in p_rtentry_netlink()
|
/freebsd/contrib/ofed/libibcm/ |
H A D | cm.c | 385 struct ib_user_path_rec p_path; in ib_cm_send_req() local 412 ibv_copy_path_rec_to_kern(&p_path, param->primary_path); in ib_cm_send_req() 413 cmd->primary_path = (uintptr_t) &p_path; in ib_cm_send_req()
|